]>
Commit | Line | Data |
---|---|---|
6de9cd9a 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 Fortran Runtime Library 0.3. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
6de9cd9a | 8 | # |
6de9cd9a 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 | ## -------------------- ## | |
6de9cd9a | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
6de9cd9a | 31 | fi |
6de9cd9a | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
6de9cd9a DN |
79 | fi |
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.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
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 | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
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. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
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. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
6de9cd9a DN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export 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. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $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 | |
156 | as_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 |
160 | if 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 | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -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 | |
21be0a5a | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
43e02a8a RW |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
21be0a5a | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
5213506e RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6de9cd9a | 219 | do |
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 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
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 | |
242 | fi; } | |
243 | IFS=$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. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $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 | |
265 | exit 255 | |
5213506e RW |
266 | fi |
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." | |
6de9cd9a | 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." | |
6de9cd9a | 279 | fi |
5213506e RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_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. | |
313 | as_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. | |
323 | as_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. | |
371 | as_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. | |
381 | if (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 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # 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. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # 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 |
416 | as_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 | |
6de9cd9a | 426 | |
5213506e RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
6de9cd9a | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
6de9cd9a 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'` | |
c0e7e2bf | 464 | |
38d24731 RW |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f489fba1 | 471 | |
6de9cd9a | 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 | | |
6de9cd9a | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
6de9cd9a | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
6de9cd9a | 490 | t loop |
5213506e | 491 | s/-\n.*// |
6de9cd9a | 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; } | |
6de9cd9a | 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 | |
6de9cd9a 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" | |
6de9cd9a DN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
5213506e RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `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';; | |
6de9cd9a DN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 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' |
38d24731 | 541 | fi |
6de9cd9a | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
6de9cd9a | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
6de9cd9a DN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_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. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
6de9cd9a | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
6de9cd9a DN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
6de9cd9a DN |
575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
5213506e | 579 | ac_clean_files= |
6de9cd9a | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
6de9cd9a DN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
38d24731 | 586 | |
6de9cd9a DN |
587 | # Identity of this package. |
588 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
589 | PACKAGE_TARNAME='libgfortran' | |
0dce3ca1 FXC |
590 | PACKAGE_VERSION='0.3' |
591 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
6de9cd9a | 592 | PACKAGE_BUGREPORT='' |
5213506e | 593 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
6de9cd9a DN |
594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
5213506e | 598 | #ifdef HAVE_SYS_TYPES_H |
6de9cd9a DN |
599 | # include <sys/types.h> |
600 | #endif | |
5213506e | 601 | #ifdef HAVE_SYS_STAT_H |
6de9cd9a DN |
602 | # include <sys/stat.h> |
603 | #endif | |
5213506e | 604 | #ifdef STDC_HEADERS |
6de9cd9a DN |
605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
5213506e | 608 | # ifdef HAVE_STDLIB_H |
6de9cd9a 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 | |
6de9cd9a DN |
614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
5213506e | 618 | #ifdef HAVE_STRINGS_H |
6de9cd9a DN |
619 | # include <strings.h> |
620 | #endif | |
5213506e | 621 | #ifdef HAVE_INTTYPES_H |
6de9cd9a | 622 | # include <inttypes.h> |
6de9cd9a | 623 | #endif |
5213506e RW |
624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
6de9cd9a DN |
628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
74544378 JB |
631 | ac_header_list= |
632 | ac_func_list= | |
1ec601bf | 633 | ac_c_werror_flag= |
828012a5 | 634 | ac_c_werror_flag= |
5213506e RW |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
3c36aa6b | 639 | get_gcc_base_ver |
1d5cf7fc TK |
640 | HAVE_AVX128_FALSE |
641 | HAVE_AVX128_TRUE | |
5213506e | 642 | IEEE_FLAGS |
8b198102 FXC |
643 | IEEE_SUPPORT |
644 | IEEE_SUPPORT_FALSE | |
645 | IEEE_SUPPORT_TRUE | |
5213506e | 646 | FPU_HOST_HEADER |
1ec601bf FXC |
647 | LIBGFOR_BUILD_QUAD_FALSE |
648 | LIBGFOR_BUILD_QUAD_TRUE | |
649 | LIBQUADINCLUDE | |
650 | LIBQUADLIB_DEP | |
651 | LIBQUADLIB | |
652 | LIBQUADSPEC | |
5213506e RW |
653 | extra_ldflags_libgfortran |
654 | ac_ct_FC | |
655 | FCFLAGS | |
656 | FC | |
657 | enable_static | |
658 | enable_shared | |
7de6ba7a | 659 | lt_host_flags |
5213506e RW |
660 | OTOOL64 |
661 | OTOOL | |
662 | LIPO | |
663 | NMEDIT | |
664 | DSYMUTIL | |
5213506e RW |
665 | OBJDUMP |
666 | LN_S | |
667 | NM | |
668 | ac_ct_DUMPBIN | |
669 | DUMPBIN | |
5213506e RW |
670 | LIBTOOL |
671 | RANLIB | |
672 | AR | |
673 | AS | |
66dbcf2d RO |
674 | HAVE_HWCAP_FALSE |
675 | HAVE_HWCAP_TRUE | |
676 | HWCAP_LDFLAGS | |
677 | LD | |
678 | FGREP | |
679 | SED | |
5213506e | 680 | SECTION_FLAGS |
ee95f928 BS |
681 | LIBGFOR_MINIMAL_FALSE |
682 | LIBGFOR_MINIMAL_TRUE | |
49ea7a0e RO |
683 | LIBGFOR_USE_SYMVER_SUN_FALSE |
684 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
685 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
686 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
5213506e RW |
687 | LIBGFOR_USE_SYMVER_FALSE |
688 | LIBGFOR_USE_SYMVER_TRUE | |
689 | AM_CFLAGS | |
690 | AM_FCFLAGS | |
21be0a5a JB |
691 | toolexeclibdir |
692 | toolexecdir | |
693 | EGREP | |
694 | GREP | |
695 | CPP | |
5213506e RW |
696 | am__fastdepCC_FALSE |
697 | am__fastdepCC_TRUE | |
698 | CCDEPMODE | |
c20fdb91 | 699 | am__nodep |
5213506e RW |
700 | AMDEPBACKSLASH |
701 | AMDEP_FALSE | |
702 | AMDEP_TRUE | |
703 | am__quote | |
704 | am__include | |
705 | DEPDIR | |
706 | OBJEXT | |
707 | EXEEXT | |
708 | ac_ct_CC | |
709 | CPPFLAGS | |
710 | LDFLAGS | |
711 | CFLAGS | |
712 | CC | |
5213506e RW |
713 | multi_basedir |
714 | MAINT | |
715 | MAINTAINER_MODE_FALSE | |
716 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
717 | AM_BACKSLASH |
718 | AM_DEFAULT_VERBOSITY | |
719 | AM_DEFAULT_V | |
720 | AM_V | |
5213506e RW |
721 | am__untar |
722 | am__tar | |
723 | AMTAR | |
724 | am__leading_dot | |
725 | SET_MAKE | |
726 | AWK | |
727 | mkdir_p | |
728 | MKDIR_P | |
729 | INSTALL_STRIP_PROGRAM | |
730 | STRIP | |
731 | install_sh | |
732 | MAKEINFO | |
733 | AUTOHEADER | |
734 | AUTOMAKE | |
735 | AUTOCONF | |
736 | ACLOCAL | |
737 | VERSION | |
738 | PACKAGE | |
739 | CYGPATH_W | |
740 | am__isrc | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
60858d8a | 744 | target_noncanonical |
5213506e RW |
745 | target_os |
746 | target_vendor | |
747 | target_cpu | |
748 | target | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | onestep | |
754 | onestep_FALSE | |
755 | onestep_TRUE | |
756 | target_subdir | |
757 | host_subdir | |
758 | build_subdir | |
759 | build_libsubdir | |
760 | build_os | |
761 | build_vendor | |
762 | build_cpu | |
763 | build | |
764 | target_alias | |
765 | host_alias | |
766 | build_alias | |
767 | LIBS | |
768 | ECHO_T | |
769 | ECHO_N | |
770 | ECHO_C | |
771 | DEFS | |
772 | mandir | |
773 | localedir | |
774 | libdir | |
775 | psdir | |
776 | pdfdir | |
777 | dvidir | |
778 | htmldir | |
779 | infodir | |
780 | docdir | |
781 | oldincludedir | |
782 | includedir | |
783 | localstatedir | |
784 | sharedstatedir | |
785 | sysconfdir | |
786 | datadir | |
787 | datarootdir | |
788 | libexecdir | |
789 | sbindir | |
790 | bindir | |
791 | program_transform_name | |
792 | prefix | |
793 | exec_prefix | |
794 | PACKAGE_URL | |
795 | PACKAGE_BUGREPORT | |
796 | PACKAGE_STRING | |
797 | PACKAGE_VERSION | |
798 | PACKAGE_TARNAME | |
799 | PACKAGE_NAME | |
800 | PATH_SEPARATOR | |
801 | SHELL' | |
6de9cd9a | 802 | ac_subst_files='' |
5213506e RW |
803 | ac_user_opts=' |
804 | enable_option_checking | |
805 | with_build_libsubdir | |
806 | enable_version_specific_runtime_libs | |
807 | enable_intermodule | |
22e05272 | 808 | enable_silent_rules |
5213506e RW |
809 | enable_maintainer_mode |
810 | enable_multilib | |
811 | enable_dependency_tracking | |
26724ef9 | 812 | enable_cet |
bf382f5f | 813 | enable_symvers |
66dbcf2d | 814 | with_gnu_ld |
5213506e RW |
815 | enable_shared |
816 | enable_static | |
817 | with_pic | |
818 | enable_fast_install | |
5213506e RW |
819 | enable_libtool_lock |
820 | enable_largefile | |
87e6d9dc | 821 | enable_libquadmath_support |
3c36aa6b | 822 | with_gcc_major_version_only |
5213506e RW |
823 | ' |
824 | ac_precious_vars='build_alias | |
825 | host_alias | |
826 | target_alias | |
21be0a5a JB |
827 | CC |
828 | CFLAGS | |
829 | LDFLAGS | |
830 | LIBS | |
5213506e | 831 | CPPFLAGS |
21be0a5a | 832 | CPP |
5213506e | 833 | FC |
21be0a5a | 834 | FCFLAGS' |
5213506e | 835 | |
6de9cd9a DN |
836 | |
837 | # Initialize some variables set by options. | |
838 | ac_init_help= | |
839 | ac_init_version=false | |
5213506e RW |
840 | ac_unrecognized_opts= |
841 | ac_unrecognized_sep= | |
6de9cd9a DN |
842 | # The variables have the same names as the options, with |
843 | # dashes changed to underlines. | |
844 | cache_file=/dev/null | |
845 | exec_prefix=NONE | |
846 | no_create= | |
847 | no_recursion= | |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
855 | verbose= | |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
858 | ||
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 864 | # (The list follows the same order as the GNU Coding Standards.) |
6de9cd9a DN |
865 | bindir='${exec_prefix}/bin' |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
868 | datarootdir='${prefix}/share' |
869 | datadir='${datarootdir}' | |
6de9cd9a DN |
870 | sysconfdir='${prefix}/etc' |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
6de9cd9a DN |
873 | includedir='${prefix}/include' |
874 | oldincludedir='/usr/include' | |
5213506e RW |
875 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
876 | infodir='${datarootdir}/info' | |
877 | htmldir='${docdir}' | |
878 | dvidir='${docdir}' | |
879 | pdfdir='${docdir}' | |
880 | psdir='${docdir}' | |
881 | libdir='${exec_prefix}/lib' | |
882 | localedir='${datarootdir}/locale' | |
883 | mandir='${datarootdir}/man' | |
6de9cd9a DN |
884 | |
885 | ac_prev= | |
5213506e | 886 | ac_dashdash= |
6de9cd9a DN |
887 | for ac_option |
888 | do | |
889 | # If the previous option needs an argument, assign it. | |
890 | if test -n "$ac_prev"; then | |
5213506e | 891 | eval $ac_prev=\$ac_option |
6de9cd9a DN |
892 | ac_prev= |
893 | continue | |
894 | fi | |
895 | ||
5213506e | 896 | case $ac_option in |
22e05272 JM |
897 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
898 | *=) ac_optarg= ;; | |
899 | *) ac_optarg=yes ;; | |
5213506e | 900 | esac |
6de9cd9a DN |
901 | |
902 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
903 | ||
5213506e RW |
904 | case $ac_dashdash$ac_option in |
905 | --) | |
906 | ac_dashdash=yes ;; | |
6de9cd9a DN |
907 | |
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
909 | ac_prev=bindir ;; | |
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
911 | bindir=$ac_optarg ;; | |
912 | ||
913 | -build | --build | --buil | --bui | --bu) | |
914 | ac_prev=build_alias ;; | |
915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
916 | build_alias=$ac_optarg ;; | |
917 | ||
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
920 | ac_prev=cache_file ;; | |
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
923 | cache_file=$ac_optarg ;; | |
924 | ||
925 | --config-cache | -C) | |
926 | cache_file=config.cache ;; | |
927 | ||
5213506e | 928 | -datadir | --datadir | --datadi | --datad) |
6de9cd9a | 929 | ac_prev=datadir ;; |
5213506e | 930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6de9cd9a DN |
931 | datadir=$ac_optarg ;; |
932 | ||
5213506e RW |
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
934 | | --dataroo | --dataro | --datar) | |
935 | ac_prev=datarootdir ;; | |
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
938 | datarootdir=$ac_optarg ;; | |
939 | ||
6de9cd9a | 940 | -disable-* | --disable-*) |
5213506e | 941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6de9cd9a | 942 | # Reject names that are not valid shell variable names. |
5213506e | 943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 944 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
945 | ac_useropt_orig=$ac_useropt |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=no ;; | |
955 | ||
956 | -docdir | --docdir | --docdi | --doc | --do) | |
957 | ac_prev=docdir ;; | |
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
959 | docdir=$ac_optarg ;; | |
960 | ||
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
962 | ac_prev=dvidir ;; | |
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
964 | dvidir=$ac_optarg ;; | |
6de9cd9a DN |
965 | |
966 | -enable-* | --enable-*) | |
5213506e | 967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6de9cd9a | 968 | # Reject names that are not valid shell variable names. |
5213506e | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 970 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
971 | ac_useropt_orig=$ac_useropt |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
38d24731 | 979 | esac |
5213506e | 980 | eval enable_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
981 | |
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
989 | exec_prefix=$ac_optarg ;; | |
990 | ||
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
995 | -help | --help | --hel | --he | -h) | |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
1001 | ||
1002 | -host | --host | --hos | --ho) | |
1003 | ac_prev=host_alias ;; | |
1004 | -host=* | --host=* | --hos=* | --ho=*) | |
1005 | host_alias=$ac_optarg ;; | |
1006 | ||
5213506e RW |
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
6de9cd9a DN |
1013 | -includedir | --includedir | --includedi | --included | --include \ |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1018 | includedir=$ac_optarg ;; | |
1019 | ||
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1023 | infodir=$ac_optarg ;; | |
1024 | ||
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1028 | libdir=$ac_optarg ;; | |
1029 | ||
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
1035 | libexecdir=$ac_optarg ;; | |
1036 | ||
5213506e RW |
1037 | -localedir | --localedir | --localedi | --localed | --locale) |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
6de9cd9a | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
6de9cd9a DN |
1044 | ac_prev=localstatedir ;; |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6de9cd9a DN |
1047 | localstatedir=$ac_optarg ;; |
1048 | ||
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1052 | mandir=$ac_optarg ;; | |
1053 | ||
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1059 | | --no-cr | --no-c | -n) | |
1060 | no_create=yes ;; | |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1073 | oldincludedir=$ac_optarg ;; | |
1074 | ||
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1078 | prefix=$ac_optarg ;; | |
1079 | ||
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1085 | program_prefix=$ac_optarg ;; | |
1086 | ||
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1092 | program_suffix=$ac_optarg ;; | |
1093 | ||
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1109 | program_transform_name=$ac_optarg ;; | |
1110 | ||
5213506e RW |
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
6de9cd9a DN |
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
1129 | sbindir=$ac_optarg ;; | |
1130 | ||
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
1140 | sharedstatedir=$ac_optarg ;; | |
1141 | ||
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
1145 | site=$ac_optarg ;; | |
1146 | ||
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1150 | srcdir=$ac_optarg ;; | |
1151 | ||
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1157 | sysconfdir=$ac_optarg ;; | |
1158 | ||
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1160 | ac_prev=target_alias ;; | |
1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1162 | target_alias=$ac_optarg ;; | |
1163 | ||
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
1167 | -version | --version | --versio | --versi | --vers | -V) | |
1168 | ac_init_version=: ;; | |
1169 | ||
1170 | -with-* | --with-*) | |
5213506e | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6de9cd9a | 1172 | # Reject names that are not valid shell variable names. |
5213506e | 1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1174 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1175 | ac_useropt_orig=$ac_useropt |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
38d24731 | 1183 | esac |
5213506e | 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
1185 | |
1186 | -without-* | --without-*) | |
5213506e | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6de9cd9a | 1188 | # Reject names that are not valid shell variable names. |
5213506e | 1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1190 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1191 | ac_useropt_orig=$ac_useropt |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=no ;; | |
6de9cd9a DN |
1201 | |
1202 | --x) | |
1203 | # Obsolete; use --with-x. | |
1204 | with_x=yes ;; | |
1205 | ||
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1207 | | --x-incl | --x-inc | --x-in | --x-i) | |
1208 | ac_prev=x_includes ;; | |
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1211 | x_includes=$ac_optarg ;; | |
1212 | ||
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1215 | ac_prev=x_libraries ;; | |
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1218 | x_libraries=$ac_optarg ;; | |
1219 | ||
22e05272 JM |
1220 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1221 | Try \`$0 --help' for more information" | |
6de9cd9a DN |
1222 | ;; |
1223 | ||
1224 | *=*) | |
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1226 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1227 | case $ac_envvar in #( |
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1229 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1230 | esac |
1231 | eval $ac_envvar=\$ac_optarg | |
6de9cd9a DN |
1232 | export $ac_envvar ;; |
1233 | ||
1234 | *) | |
1235 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6de9cd9a | 1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1239 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6de9cd9a DN |
1240 | ;; |
1241 | ||
1242 | esac | |
1243 | done | |
1244 | ||
1245 | if test -n "$ac_prev"; then | |
1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1247 | as_fn_error $? "missing argument to $ac_option" |
6de9cd9a DN |
1248 | fi |
1249 | ||
5213506e RW |
1250 | if test -n "$ac_unrecognized_opts"; then |
1251 | case $enable_option_checking in | |
1252 | no) ;; | |
22e05272 | 1253 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
38d24731 | 1255 | esac |
5213506e | 1256 | fi |
38d24731 | 1257 | |
5213506e RW |
1258 | # Check all directory arguments for consistency. |
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e9085da5 | 1262 | libdir localedir mandir |
38d24731 | 1263 | do |
5213506e RW |
1264 | eval ac_val=\$$ac_var |
1265 | # Remove trailing slashes. | |
1266 | case $ac_val in | |
1267 | */ ) | |
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1269 | eval $ac_var=\$ac_val;; | |
1270 | esac | |
1271 | # Be sure to have absolute directory names. | |
38d24731 | 1272 | case $ac_val in |
5213506e RW |
1273 | [\\/$]* | ?:[\\/]* ) continue;; |
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6de9cd9a | 1275 | esac |
22e05272 | 1276 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6de9cd9a DN |
1277 | done |
1278 | ||
1279 | # There might be people who depend on the old broken behavior: `$host' | |
1280 | # used to hold the argument of --host etc. | |
1281 | # FIXME: To remove some day. | |
1282 | build=$build_alias | |
1283 | host=$host_alias | |
1284 | target=$target_alias | |
1285 | ||
1286 | # FIXME: To remove some day. | |
1287 | if test "x$host_alias" != x; then | |
1288 | if test "x$build_alias" = x; then | |
1289 | cross_compiling=maybe | |
6de9cd9a DN |
1290 | elif test "x$build_alias" != "x$host_alias"; then |
1291 | cross_compiling=yes | |
1292 | fi | |
1293 | fi | |
1294 | ||
1295 | ac_tool_prefix= | |
1296 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1297 | ||
1298 | test "$silent" = yes && exec 6>/dev/null | |
1299 | ||
1300 | ||
5213506e RW |
1301 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1302 | ac_ls_di=`ls -di .` && | |
1303 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1304 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1305 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1306 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1307 | |
1308 | ||
6de9cd9a DN |
1309 | # Find the source files, if location was not specified. |
1310 | if test -z "$srcdir"; then | |
1311 | ac_srcdir_defaulted=yes | |
5213506e RW |
1312 | # Try the directory containing this script, then the parent directory. |
1313 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1314 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1315 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1316 | X"$as_myself" : 'X\(//\)$' \| \ | |
1317 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1318 | $as_echo X"$as_myself" | | |
1319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1320 | s//\1/ | |
1321 | q | |
1322 | } | |
1323 | /^X\(\/\/\)[^/].*/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)$/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\).*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | s/.*/./; q'` | |
6de9cd9a | 1336 | srcdir=$ac_confdir |
5213506e | 1337 | if test ! -r "$srcdir/$ac_unique_file"; then |
6de9cd9a DN |
1338 | srcdir=.. |
1339 | fi | |
1340 | else | |
1341 | ac_srcdir_defaulted=no | |
1342 | fi | |
5213506e RW |
1343 | if test ! -r "$srcdir/$ac_unique_file"; then |
1344 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1345 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1346 | fi |
1347 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1348 | ac_abs_confdir=`( | |
22e05272 | 1349 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1350 | pwd)` |
1351 | # When building in place, set srcdir=. | |
1352 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1353 | srcdir=. | |
1354 | fi | |
1355 | # Remove unnecessary trailing slashes from srcdir. | |
1356 | # Double slashes in file names in object file debugging info | |
1357 | # mess up M-x gdb in Emacs. | |
1358 | case $srcdir in | |
1359 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1360 | esac | |
1361 | for ac_var in $ac_precious_vars; do | |
1362 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1363 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1364 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1365 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1366 | done | |
6de9cd9a DN |
1367 | |
1368 | # | |
1369 | # Report the --help message. | |
1370 | # | |
1371 | if test "$ac_init_help" = "long"; then | |
1372 | # Omit some internal or obsolete options to make the list less imposing. | |
1373 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1374 | cat <<_ACEOF | |
0dce3ca1 | 1375 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
1376 | |
1377 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1378 | ||
1379 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1380 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1381 | ||
1382 | Defaults for the options are specified in brackets. | |
1383 | ||
1384 | Configuration: | |
1385 | -h, --help display this help and exit | |
1386 | --help=short display options specific to this package | |
1387 | --help=recursive display the short help of all the included packages | |
1388 | -V, --version display version information and exit | |
22e05272 | 1389 | -q, --quiet, --silent do not print \`checking ...' messages |
6de9cd9a DN |
1390 | --cache-file=FILE cache test results in FILE [disabled] |
1391 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1392 | -n, --no-create do not create output files | |
1393 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1394 | ||
6de9cd9a DN |
1395 | Installation directories: |
1396 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1397 | [$ac_default_prefix] |
6de9cd9a | 1398 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1399 | [PREFIX] |
6de9cd9a DN |
1400 | |
1401 | By default, \`make install' will install all the files in | |
1402 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1403 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1404 | for instance \`--prefix=\$HOME'. | |
1405 | ||
1406 | For better control, use the options below. | |
1407 | ||
1408 | Fine tuning of the installation directories: | |
5213506e RW |
1409 | --bindir=DIR user executables [EPREFIX/bin] |
1410 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1411 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1412 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1413 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1414 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1415 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1416 | --includedir=DIR C header files [PREFIX/include] | |
1417 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1418 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1419 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1420 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1421 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1422 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1423 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1424 | --htmldir=DIR html documentation [DOCDIR] | |
1425 | --dvidir=DIR dvi documentation [DOCDIR] | |
1426 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1427 | --psdir=DIR ps documentation [DOCDIR] | |
6de9cd9a DN |
1428 | _ACEOF |
1429 | ||
1430 | cat <<\_ACEOF | |
1431 | ||
1432 | Program names: | |
1433 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1434 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1435 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1436 | ||
1437 | System types: | |
1438 | --build=BUILD configure for building on BUILD [guessed] | |
1439 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 1440 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
1441 | _ACEOF |
1442 | fi | |
1443 | ||
1444 | if test -n "$ac_init_help"; then | |
1445 | case $ac_init_help in | |
0dce3ca1 | 1446 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
1447 | esac |
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Optional Features: | |
5213506e | 1451 | --disable-option-checking ignore unrecognized --enable/--with options |
6de9cd9a DN |
1452 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1453 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87e6d9dc TB |
1454 | --enable-version-specific-runtime-libs |
1455 | specify that runtime libraries should be installed | |
1456 | in a compiler-specific directory | |
b808ac33 | 1457 | --enable-intermodule build the library in one step |
22e05272 JM |
1458 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1459 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1460 | --enable-maintainer-mode | |
1461 | enable make rules and dependencies not useful (and | |
1462 | sometimes confusing) to the casual installer | |
96b8a615 | 1463 | --enable-multilib build many library versions (default) |
22e05272 JM |
1464 | --enable-dependency-tracking |
1465 | do not reject slow dependency extractors | |
1466 | --disable-dependency-tracking | |
1467 | speeds up one-time build | |
a0e1df88 | 1468 | --enable-cet enable Intel CET in target libraries [default=no] |
bf382f5f | 1469 | --disable-symvers disable symbol versioning for libgfortran |
5213506e RW |
1470 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1471 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1472 | --enable-fast-install[=PKGS] |
1473 | optimize for fast installation [default=yes] | |
6de9cd9a | 1474 | --disable-libtool-lock avoid locking (might break parallel builds) |
9cdc381b | 1475 | --disable-largefile omit support for large files |
87e6d9dc TB |
1476 | --disable-libquadmath-support |
1477 | disable libquadmath support for Fortran | |
6de9cd9a DN |
1478 | |
1479 | Optional Packages: | |
1480 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1481 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 1482 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
66dbcf2d | 1483 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1cf3d07d SE |
1484 | --with-pic try to use only PIC/non-PIC objects [default=use |
1485 | both] | |
3c36aa6b JJ |
1486 | --with-gcc-major-version-only |
1487 | use only GCC major number in filesystem paths | |
6de9cd9a DN |
1488 | |
1489 | Some influential environment variables: | |
1490 | CC C compiler command | |
1491 | CFLAGS C compiler flags | |
1492 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1493 | nonstandard directory <lib dir> | |
5213506e | 1494 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1495 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1496 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1497 | CPP C preprocessor |
c7a35fe9 AS |
1498 | FC Fortran compiler command |
1499 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
1500 | |
1501 | Use these variables to override the choices made by `configure' or to help | |
1502 | it to find libraries and programs with nonstandard names/locations. | |
1503 | ||
5213506e RW |
1504 | Report bugs to the package provider. |
1505 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1506 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
6de9cd9a | 1507 | _ACEOF |
5213506e | 1508 | ac_status=$? |
6de9cd9a DN |
1509 | fi |
1510 | ||
1511 | if test "$ac_init_help" = "recursive"; then | |
1512 | # If there are subdirs, report their specific --help. | |
6de9cd9a | 1513 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1514 | test -d "$ac_dir" || |
1515 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1516 | continue | |
6de9cd9a DN |
1517 | ac_builddir=. |
1518 | ||
5213506e RW |
1519 | case "$ac_dir" in |
1520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1521 | *) | |
1522 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1523 | # A ".." for each directory in $ac_dir_suffix. | |
1524 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1525 | case $ac_top_builddir_sub in | |
1526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1528 | esac ;; | |
1529 | esac | |
1530 | ac_abs_top_builddir=$ac_pwd | |
1531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1532 | # for backward compatibility: | |
1533 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
1534 | |
1535 | case $srcdir in | |
5213506e | 1536 | .) # We are building in place. |
6de9cd9a | 1537 | ac_srcdir=. |
5213506e RW |
1538 | ac_top_srcdir=$ac_top_builddir_sub |
1539 | ac_abs_top_srcdir=$ac_pwd ;; | |
1540 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 1541 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1542 | ac_top_srcdir=$srcdir |
1543 | ac_abs_top_srcdir=$srcdir ;; | |
1544 | *) # Relative name. | |
1545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1546 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
78511f8b | 1548 | esac |
5213506e RW |
1549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1550 | ||
1551 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1552 | # Check for guested configure. | |
1553 | if test -f "$ac_srcdir/configure.gnu"; then | |
1554 | echo && | |
1555 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1556 | elif test -f "$ac_srcdir/configure"; then | |
1557 | echo && | |
1558 | $SHELL "$ac_srcdir/configure" --help=recursive | |
6de9cd9a | 1559 | else |
5213506e RW |
1560 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1561 | fi || ac_status=$? | |
1562 | cd "$ac_pwd" || { ac_status=$?; break; } | |
6de9cd9a DN |
1563 | done |
1564 | fi | |
1565 | ||
5213506e | 1566 | test -n "$ac_init_help" && exit $ac_status |
6de9cd9a DN |
1567 | if $ac_init_version; then |
1568 | cat <<\_ACEOF | |
0dce3ca1 | 1569 | GNU Fortran Runtime Library configure 0.3 |
22e05272 | 1570 | generated by GNU Autoconf 2.69 |
6de9cd9a | 1571 | |
22e05272 | 1572 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
1573 | This configure script is free software; the Free Software Foundation |
1574 | gives unlimited permission to copy, distribute and modify it. | |
1575 | _ACEOF | |
5213506e | 1576 | exit |
6de9cd9a | 1577 | fi |
6de9cd9a | 1578 | |
5213506e RW |
1579 | ## ------------------------ ## |
1580 | ## Autoconf initialization. ## | |
1581 | ## ------------------------ ## | |
6de9cd9a | 1582 | |
5213506e RW |
1583 | # ac_fn_c_try_compile LINENO |
1584 | # -------------------------- | |
1585 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1586 | ac_fn_c_try_compile () | |
1587 | { | |
1588 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1589 | rm -f conftest.$ac_objext | |
1590 | if { { ac_try="$ac_compile" | |
1591 | case "(($ac_try" in | |
1592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1593 | *) ac_try_echo=$ac_try;; | |
1594 | esac | |
1595 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1596 | $as_echo "$ac_try_echo"; } >&5 | |
1597 | (eval "$ac_compile") 2>conftest.err | |
1598 | ac_status=$? | |
1599 | if test -s conftest.err; then | |
1600 | grep -v '^ *+' conftest.err >conftest.er1 | |
1601 | cat conftest.er1 >&5 | |
1602 | mv -f conftest.er1 conftest.err | |
1603 | fi | |
1604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1605 | test $ac_status = 0; } && { | |
1606 | test -z "$ac_c_werror_flag" || | |
1607 | test ! -s conftest.err | |
1608 | } && test -s conftest.$ac_objext; then : | |
1609 | ac_retval=0 | |
1610 | else | |
1611 | $as_echo "$as_me: failed program was:" >&5 | |
1612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1613 | |
5213506e RW |
1614 | ac_retval=1 |
1615 | fi | |
22e05272 JM |
1616 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1617 | as_fn_set_status $ac_retval | |
5213506e RW |
1618 | |
1619 | } # ac_fn_c_try_compile | |
1620 | ||
21be0a5a JB |
1621 | # ac_fn_c_try_cpp LINENO |
1622 | # ---------------------- | |
1623 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1624 | ac_fn_c_try_cpp () | |
6de9cd9a | 1625 | { |
5213506e | 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
21be0a5a | 1627 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
5213506e RW |
1628 | case "(($ac_try" in |
1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1630 | *) ac_try_echo=$ac_try;; | |
1631 | esac | |
1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1633 | $as_echo "$ac_try_echo"; } >&5 | |
21be0a5a | 1634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
5213506e RW |
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 | |
22e05272 | 1642 | test $ac_status = 0; } > conftest.i && { |
21be0a5a | 1643 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5213506e | 1644 | test ! -s conftest.err |
5213506e RW |
1645 | }; then : |
1646 | ac_retval=0 | |
1647 | else | |
1648 | $as_echo "$as_me: failed program was:" >&5 | |
1649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1650 | |
21be0a5a | 1651 | ac_retval=1 |
5213506e | 1652 | fi |
22e05272 JM |
1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1654 | as_fn_set_status $ac_retval | |
6de9cd9a | 1655 | |
21be0a5a | 1656 | } # ac_fn_c_try_cpp |
6de9cd9a | 1657 | |
21be0a5a | 1658 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
5213506e | 1659 | # ------------------------------------------------------- |
21be0a5a JB |
1660 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1661 | # the include files in INCLUDES and setting the cache variable VAR | |
1662 | # accordingly. | |
1663 | ac_fn_c_check_header_mongrel () | |
5213506e RW |
1664 | { |
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1666 | if eval \${$3+:} false; then : |
5213506e RW |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1668 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1669 | if eval \${$3+:} false; then : |
5213506e | 1670 | $as_echo_n "(cached) " >&6 |
21be0a5a JB |
1671 | fi |
1672 | eval ac_res=\$$3 | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1674 | $as_echo "$ac_res" >&6; } | |
5213506e | 1675 | else |
21be0a5a JB |
1676 | # Is the header compilable? |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1678 | $as_echo_n "checking $2 usability... " >&6; } | |
1679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
1680 | /* end confdefs.h. */ |
1681 | $4 | |
1682 | #include <$2> | |
1683 | _ACEOF | |
1684 | if ac_fn_c_try_compile "$LINENO"; then : | |
21be0a5a | 1685 | ac_header_compiler=yes |
5213506e | 1686 | else |
21be0a5a | 1687 | ac_header_compiler=no |
5213506e RW |
1688 | fi |
1689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21be0a5a JB |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1691 | $as_echo "$ac_header_compiler" >&6; } | |
6de9cd9a | 1692 | |
21be0a5a JB |
1693 | # Is the header present? |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1695 | $as_echo_n "checking $2 presence... " >&6; } | |
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1697 | /* end confdefs.h. */ | |
1698 | #include <$2> | |
1699 | _ACEOF | |
1700 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1701 | ac_header_preproc=yes | |
1702 | else | |
1703 | ac_header_preproc=no | |
1704 | fi | |
22e05272 | 1705 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1707 | $as_echo "$ac_header_preproc" >&6; } | |
6de9cd9a | 1708 | |
21be0a5a JB |
1709 | # So? What about this header? |
1710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1711 | yes:no: ) | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1715 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1716 | ;; | |
1717 | no:yes:* ) | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1728 | ;; | |
5213506e | 1729 | esac |
21be0a5a JB |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1731 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1732 | if eval \${$3+:} false; then : |
21be0a5a | 1733 | $as_echo_n "(cached) " >&6 |
5213506e | 1734 | else |
21be0a5a JB |
1735 | eval "$3=\$ac_header_compiler" |
1736 | fi | |
1737 | eval ac_res=\$$3 | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1739 | $as_echo "$ac_res" >&6; } | |
5213506e | 1740 | fi |
22e05272 | 1741 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1742 | |
21be0a5a | 1743 | } # ac_fn_c_check_header_mongrel |
6de9cd9a | 1744 | |
5213506e RW |
1745 | # ac_fn_c_try_run LINENO |
1746 | # ---------------------- | |
1747 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1748 | # that executables *can* be run. | |
1749 | ac_fn_c_try_run () | |
1750 | { | |
1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1752 | if { { ac_try="$ac_link" | |
1753 | case "(($ac_try" in | |
1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1755 | *) ac_try_echo=$ac_try;; | |
1756 | esac | |
1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1758 | $as_echo "$ac_try_echo"; } >&5 | |
1759 | (eval "$ac_link") 2>&5 | |
1760 | ac_status=$? | |
1761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1762 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1763 | { { case "(($ac_try" in | |
1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1765 | *) ac_try_echo=$ac_try;; | |
1766 | esac | |
1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1768 | $as_echo "$ac_try_echo"; } >&5 | |
1769 | (eval "$ac_try") 2>&5 | |
1770 | ac_status=$? | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; }; }; then : | |
1773 | ac_retval=0 | |
1774 | else | |
1775 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1776 | $as_echo "$as_me: failed program was:" >&5 | |
1777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1778 | |
5213506e RW |
1779 | ac_retval=$ac_status |
1780 | fi | |
1781 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1782 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1783 | as_fn_set_status $ac_retval | |
6de9cd9a | 1784 | |
5213506e | 1785 | } # ac_fn_c_try_run |
6de9cd9a | 1786 | |
21be0a5a JB |
1787 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1788 | # ------------------------------------------------------- | |
1789 | # Tests whether HEADER exists and can be compiled using the include files in | |
1790 | # INCLUDES, setting the cache variable VAR accordingly. | |
1791 | ac_fn_c_check_header_compile () | |
1792 | { | |
1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1795 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1796 | if eval \${$3+:} false; then : |
21be0a5a JB |
1797 | $as_echo_n "(cached) " >&6 |
1798 | else | |
1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1800 | /* end confdefs.h. */ | |
1801 | $4 | |
1802 | #include <$2> | |
1803 | _ACEOF | |
1804 | if ac_fn_c_try_compile "$LINENO"; then : | |
1805 | eval "$3=yes" | |
1806 | else | |
1807 | eval "$3=no" | |
1808 | fi | |
1809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1810 | fi | |
1811 | eval ac_res=\$$3 | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1813 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
21be0a5a JB |
1815 | |
1816 | } # ac_fn_c_check_header_compile | |
1817 | ||
1818 | # ac_fn_c_try_link LINENO | |
1819 | # ----------------------- | |
1820 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1821 | ac_fn_c_try_link () | |
1822 | { | |
1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1825 | if { { ac_try="$ac_link" | |
1826 | case "(($ac_try" in | |
1827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1828 | *) ac_try_echo=$ac_try;; | |
1829 | esac | |
1830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1831 | $as_echo "$ac_try_echo"; } >&5 | |
1832 | (eval "$ac_link") 2>conftest.err | |
1833 | ac_status=$? | |
1834 | if test -s conftest.err; then | |
1835 | grep -v '^ *+' conftest.err >conftest.er1 | |
1836 | cat conftest.er1 >&5 | |
1837 | mv -f conftest.er1 conftest.err | |
1838 | fi | |
1839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1840 | test $ac_status = 0; } && { | |
1841 | test -z "$ac_c_werror_flag" || | |
1842 | test ! -s conftest.err | |
1843 | } && test -s conftest$ac_exeext && { | |
1844 | test "$cross_compiling" = yes || | |
22e05272 | 1845 | test -x conftest$ac_exeext |
21be0a5a JB |
1846 | }; then : |
1847 | ac_retval=0 | |
1848 | else | |
1849 | $as_echo "$as_me: failed program was:" >&5 | |
1850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1851 | ||
1852 | ac_retval=1 | |
1853 | fi | |
1854 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1855 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1856 | # interfere with the next link command; also delete a directory that is | |
1857 | # left behind by Apple's compiler. We do this before executing the actions. | |
1858 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1859 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1860 | as_fn_set_status $ac_retval | |
21be0a5a JB |
1861 | |
1862 | } # ac_fn_c_try_link | |
1863 | ||
5213506e RW |
1864 | # ac_fn_c_check_func LINENO FUNC VAR |
1865 | # ---------------------------------- | |
1866 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1867 | ac_fn_c_check_func () | |
1868 | { | |
1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1871 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1872 | if eval \${$3+:} false; then : |
5213506e RW |
1873 | $as_echo_n "(cached) " >&6 |
1874 | else | |
1875 | if test x$gcc_no_link = xyes; then | |
22e05272 | 1876 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
1877 | fi |
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1879 | /* end confdefs.h. */ | |
1880 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1882 | #define $2 innocuous_$2 | |
6de9cd9a | 1883 | |
5213506e RW |
1884 | /* System header to define __stub macros and hopefully few prototypes, |
1885 | which can conflict with char $2 (); below. | |
1886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1887 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 1888 | |
5213506e RW |
1889 | #ifdef __STDC__ |
1890 | # include <limits.h> | |
1891 | #else | |
1892 | # include <assert.h> | |
1893 | #endif | |
6de9cd9a | 1894 | |
5213506e RW |
1895 | #undef $2 |
1896 | ||
1897 | /* Override any GCC internal prototype to avoid an error. | |
1898 | Use char because int might match the return type of a GCC | |
1899 | builtin and then its argument prototype would still apply. */ | |
1900 | #ifdef __cplusplus | |
1901 | extern "C" | |
1902 | #endif | |
1903 | char $2 (); | |
1904 | /* The GNU C library defines this for functions which it implements | |
1905 | to always fail with ENOSYS. Some functions are actually named | |
1906 | something starting with __ and the normal name is an alias. */ | |
1907 | #if defined __stub_$2 || defined __stub___$2 | |
1908 | choke me | |
1909 | #endif | |
1910 | ||
1911 | int | |
1912 | main () | |
38d24731 | 1913 | { |
5213506e RW |
1914 | return $2 (); |
1915 | ; | |
1916 | return 0; | |
38d24731 | 1917 | } |
5213506e RW |
1918 | _ACEOF |
1919 | if ac_fn_c_try_link "$LINENO"; then : | |
1920 | eval "$3=yes" | |
1921 | else | |
1922 | eval "$3=no" | |
1923 | fi | |
1924 | rm -f core conftest.err conftest.$ac_objext \ | |
1925 | conftest$ac_exeext conftest.$ac_ext | |
1926 | fi | |
1927 | eval ac_res=\$$3 | |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1929 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1931 | |
5213506e | 1932 | } # ac_fn_c_check_func |
6de9cd9a | 1933 | |
5213506e RW |
1934 | # ac_fn_fc_try_compile LINENO |
1935 | # --------------------------- | |
1936 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1937 | ac_fn_fc_try_compile () | |
1938 | { | |
1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1940 | rm -f conftest.$ac_objext | |
1941 | if { { ac_try="$ac_compile" | |
1942 | case "(($ac_try" in | |
1943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1944 | *) ac_try_echo=$ac_try;; | |
1945 | esac | |
1946 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1947 | $as_echo "$ac_try_echo"; } >&5 | |
1948 | (eval "$ac_compile") 2>conftest.err | |
1949 | ac_status=$? | |
1950 | if test -s conftest.err; then | |
1951 | grep -v '^ *+' conftest.err >conftest.er1 | |
1952 | cat conftest.er1 >&5 | |
1953 | mv -f conftest.er1 conftest.err | |
1954 | fi | |
1955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1956 | test $ac_status = 0; } && { | |
1957 | test -z "$ac_fc_werror_flag" || | |
1958 | test ! -s conftest.err | |
1959 | } && test -s conftest.$ac_objext; then : | |
1960 | ac_retval=0 | |
1961 | else | |
1962 | $as_echo "$as_me: failed program was:" >&5 | |
1963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1964 | |
5213506e RW |
1965 | ac_retval=1 |
1966 | fi | |
22e05272 JM |
1967 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1968 | as_fn_set_status $ac_retval | |
6de9cd9a | 1969 | |
5213506e | 1970 | } # ac_fn_fc_try_compile |
6de9cd9a | 1971 | |
5213506e RW |
1972 | # ac_fn_fc_try_link LINENO |
1973 | # ------------------------ | |
1974 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1975 | ac_fn_fc_try_link () | |
1976 | { | |
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1979 | if { { ac_try="$ac_link" | |
1980 | case "(($ac_try" in | |
1981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1982 | *) ac_try_echo=$ac_try;; | |
1983 | esac | |
1984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1985 | $as_echo "$ac_try_echo"; } >&5 | |
1986 | (eval "$ac_link") 2>conftest.err | |
1987 | ac_status=$? | |
1988 | if test -s conftest.err; then | |
1989 | grep -v '^ *+' conftest.err >conftest.er1 | |
1990 | cat conftest.er1 >&5 | |
1991 | mv -f conftest.er1 conftest.err | |
1992 | fi | |
1993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1994 | test $ac_status = 0; } && { | |
1995 | test -z "$ac_fc_werror_flag" || | |
1996 | test ! -s conftest.err | |
1997 | } && test -s conftest$ac_exeext && { | |
1998 | test "$cross_compiling" = yes || | |
22e05272 | 1999 | test -x conftest$ac_exeext |
5213506e RW |
2000 | }; then : |
2001 | ac_retval=0 | |
2002 | else | |
2003 | $as_echo "$as_me: failed program was:" >&5 | |
2004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 2005 | |
5213506e RW |
2006 | ac_retval=1 |
2007 | fi | |
2008 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2009 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2010 | # interfere with the next link command; also delete a directory that is | |
2011 | # left behind by Apple's compiler. We do this before executing the actions. | |
2012 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2013 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2014 | as_fn_set_status $ac_retval | |
6de9cd9a | 2015 | |
5213506e | 2016 | } # ac_fn_fc_try_link |
6de9cd9a | 2017 | |
5213506e RW |
2018 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2019 | # ------------------------------------------- | |
2020 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2021 | # variable VAR accordingly. | |
2022 | ac_fn_c_check_type () | |
2023 | { | |
2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2026 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2027 | if eval \${$3+:} false; then : |
5213506e RW |
2028 | $as_echo_n "(cached) " >&6 |
2029 | else | |
2030 | eval "$3=no" | |
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2032 | /* end confdefs.h. */ | |
2033 | $4 | |
2034 | int | |
2035 | main () | |
2036 | { | |
2037 | if (sizeof ($2)) | |
2038 | return 0; | |
2039 | ; | |
2040 | return 0; | |
2041 | } | |
6de9cd9a | 2042 | _ACEOF |
5213506e RW |
2043 | if ac_fn_c_try_compile "$LINENO"; then : |
2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2045 | /* end confdefs.h. */ | |
2046 | $4 | |
2047 | int | |
2048 | main () | |
2049 | { | |
2050 | if (sizeof (($2))) | |
2051 | return 0; | |
2052 | ; | |
2053 | return 0; | |
2054 | } | |
6de9cd9a | 2055 | _ACEOF |
5213506e | 2056 | if ac_fn_c_try_compile "$LINENO"; then : |
6de9cd9a | 2057 | |
5213506e RW |
2058 | else |
2059 | eval "$3=yes" | |
2060 | fi | |
2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2062 | fi | |
2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2064 | fi | |
2065 | eval ac_res=\$$3 | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2067 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2069 | |
5213506e | 2070 | } # ac_fn_c_check_type |
6de9cd9a | 2071 | |
21be0a5a JB |
2072 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2073 | # -------------------------------------------- | |
2074 | # Tries to find the compile-time value of EXPR in a program that includes | |
2075 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2076 | # computed | |
2077 | ac_fn_c_compute_int () | |
5213506e RW |
2078 | { |
2079 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c13e029b PB |
2080 | if test "$cross_compiling" = yes; then |
2081 | # Depending upon the size, compute the lo and hi bounds. | |
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2083 | /* end confdefs.h. */ |
c13e029b | 2084 | $4 |
5213506e RW |
2085 | int |
2086 | main () | |
2087 | { | |
c13e029b | 2088 | static int test_array [1 - 2 * !(($2) >= 0)]; |
22e05272 JM |
2089 | test_array [0] = 0; |
2090 | return test_array [0]; | |
6de9cd9a | 2091 | |
5213506e RW |
2092 | ; |
2093 | return 0; | |
2094 | } | |
2095 | _ACEOF | |
2096 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2097 | ac_lo=0 ac_mid=0 |
2098 | while :; do | |
2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2100 | /* end confdefs.h. */ |
c13e029b | 2101 | $4 |
5213506e RW |
2102 | int |
2103 | main () | |
2104 | { | |
c13e029b | 2105 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2106 | test_array [0] = 0; |
2107 | return test_array [0]; | |
6de9cd9a | 2108 | |
5213506e RW |
2109 | ; |
2110 | return 0; | |
2111 | } | |
2112 | _ACEOF | |
2113 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b | 2114 | ac_hi=$ac_mid; break |
5213506e | 2115 | else |
c13e029b PB |
2116 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2117 | if test $ac_lo -le $ac_mid; then | |
2118 | ac_lo= ac_hi= | |
2119 | break | |
2120 | fi | |
2121 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
5213506e RW |
2122 | fi |
2123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2124 | done |
2125 | else | |
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2127 | /* end confdefs.h. */ | |
2128 | $4 | |
2129 | int | |
2130 | main () | |
2131 | { | |
2132 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2133 | test_array [0] = 0; |
2134 | return test_array [0]; | |
c13e029b PB |
2135 | |
2136 | ; | |
2137 | return 0; | |
2138 | } | |
2139 | _ACEOF | |
2140 | if ac_fn_c_try_compile "$LINENO"; then : | |
2141 | ac_hi=-1 ac_mid=-1 | |
2142 | while :; do | |
2143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2144 | /* end confdefs.h. */ | |
2145 | $4 | |
2146 | int | |
2147 | main () | |
2148 | { | |
2149 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2150 | test_array [0] = 0; |
2151 | return test_array [0]; | |
c13e029b PB |
2152 | |
2153 | ; | |
2154 | return 0; | |
2155 | } | |
2156 | _ACEOF | |
2157 | if ac_fn_c_try_compile "$LINENO"; then : | |
2158 | ac_lo=$ac_mid; break | |
2159 | else | |
2160 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2161 | if test $ac_mid -le $ac_hi; then | |
2162 | ac_lo= ac_hi= | |
2163 | break | |
2164 | fi | |
2165 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
5213506e RW |
2166 | fi |
2167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b | 2168 | done |
d72a3ac1 | 2169 | else |
c13e029b | 2170 | ac_lo= ac_hi= |
5213506e | 2171 | fi |
c13e029b | 2172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d72a3ac1 | 2173 | fi |
c13e029b PB |
2174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2175 | # Binary search between lo and hi bounds. | |
2176 | while test "x$ac_lo" != "x$ac_hi"; do | |
2177 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2179 | /* end confdefs.h. */ |
c13e029b | 2180 | $4 |
5213506e RW |
2181 | int |
2182 | main () | |
2183 | { | |
c13e029b | 2184 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2185 | test_array [0] = 0; |
2186 | return test_array [0]; | |
6de9cd9a | 2187 | |
5213506e RW |
2188 | ; |
2189 | return 0; | |
2190 | } | |
2191 | _ACEOF | |
2192 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2193 | ac_hi=$ac_mid |
2194 | else | |
2195 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
5213506e RW |
2196 | fi |
2197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2198 | done |
2199 | case $ac_lo in #(( | |
2200 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2201 | '') ac_retval=1 ;; | |
2202 | esac | |
2203 | else | |
2204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2205 | /* end confdefs.h. */ | |
2206 | $4 | |
2207 | static long int longval () { return $2; } | |
2208 | static unsigned long int ulongval () { return $2; } | |
2209 | #include <stdio.h> | |
2210 | #include <stdlib.h> | |
2211 | int | |
2212 | main () | |
2213 | { | |
6de9cd9a | 2214 | |
c13e029b PB |
2215 | FILE *f = fopen ("conftest.val", "w"); |
2216 | if (! f) | |
2217 | return 1; | |
2218 | if (($2) < 0) | |
2219 | { | |
2220 | long int i = longval (); | |
2221 | if (i != ($2)) | |
2222 | return 1; | |
2223 | fprintf (f, "%ld", i); | |
2224 | } | |
2225 | else | |
2226 | { | |
2227 | unsigned long int i = ulongval (); | |
2228 | if (i != ($2)) | |
2229 | return 1; | |
2230 | fprintf (f, "%lu", i); | |
2231 | } | |
2232 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2233 | on some platforms. */ | |
2234 | return ferror (f) || fclose (f) != 0; | |
2235 | ||
2236 | ; | |
2237 | return 0; | |
2238 | } | |
2239 | _ACEOF | |
2240 | if ac_fn_c_try_run "$LINENO"; then : | |
2241 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
5213506e | 2242 | else |
c13e029b | 2243 | ac_retval=1 |
d72a3ac1 | 2244 | fi |
c13e029b PB |
2245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2246 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2247 | rm -f conftest.val | |
2248 | ||
2249 | fi | |
22e05272 JM |
2250 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2251 | as_fn_set_status $ac_retval | |
6de9cd9a | 2252 | |
c13e029b | 2253 | } # ac_fn_c_compute_int |
6de9cd9a | 2254 | |
5213506e RW |
2255 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2256 | # ---------------------------------------------------- | |
2257 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2258 | # INCLUDES, setting cache variable VAR accordingly. | |
2259 | ac_fn_c_check_member () | |
2260 | { | |
2261 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2263 | $as_echo_n "checking for $2.$3... " >&6; } | |
22e05272 | 2264 | if eval \${$4+:} false; then : |
5213506e RW |
2265 | $as_echo_n "(cached) " >&6 |
2266 | else | |
2267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2268 | /* end confdefs.h. */ | |
2269 | $5 | |
2270 | int | |
2271 | main () | |
2272 | { | |
2273 | static $2 ac_aggr; | |
2274 | if (ac_aggr.$3) | |
2275 | return 0; | |
2276 | ; | |
2277 | return 0; | |
2278 | } | |
2279 | _ACEOF | |
2280 | if ac_fn_c_try_compile "$LINENO"; then : | |
2281 | eval "$4=yes" | |
2282 | else | |
2283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2284 | /* end confdefs.h. */ | |
2285 | $5 | |
2286 | int | |
2287 | main () | |
2288 | { | |
2289 | static $2 ac_aggr; | |
2290 | if (sizeof ac_aggr.$3) | |
2291 | return 0; | |
2292 | ; | |
2293 | return 0; | |
2294 | } | |
2295 | _ACEOF | |
2296 | if ac_fn_c_try_compile "$LINENO"; then : | |
2297 | eval "$4=yes" | |
2298 | else | |
2299 | eval "$4=no" | |
2300 | fi | |
2301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2302 | fi | |
2303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2304 | fi | |
2305 | eval ac_res=\$$4 | |
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2307 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2308 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2309 | |
5213506e RW |
2310 | } # ac_fn_c_check_member |
2311 | cat >config.log <<_ACEOF | |
2312 | This file contains any messages produced by compilers while | |
2313 | running configure, to aid debugging if configure makes a mistake. | |
6de9cd9a | 2314 | |
5213506e | 2315 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 2316 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a | 2317 | |
5213506e | 2318 | $ $0 $@ |
6de9cd9a | 2319 | |
5213506e RW |
2320 | _ACEOF |
2321 | exec 5>>config.log | |
2322 | { | |
2323 | cat <<_ASUNAME | |
2324 | ## --------- ## | |
2325 | ## Platform. ## | |
2326 | ## --------- ## | |
6de9cd9a | 2327 | |
5213506e RW |
2328 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2329 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2330 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2331 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2332 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
6de9cd9a | 2333 | |
5213506e RW |
2334 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2335 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
6de9cd9a | 2336 | |
5213506e RW |
2337 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2338 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2339 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2340 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2341 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2342 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2343 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
6de9cd9a | 2344 | |
5213506e | 2345 | _ASUNAME |
18c04407 | 2346 | |
5213506e RW |
2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2348 | for as_dir in $PATH | |
2349 | do | |
2350 | IFS=$as_save_IFS | |
2351 | test -z "$as_dir" && as_dir=. | |
2352 | $as_echo "PATH: $as_dir" | |
2353 | done | |
2354 | IFS=$as_save_IFS | |
18c04407 | 2355 | |
5213506e | 2356 | } >&5 |
18c04407 | 2357 | |
5213506e | 2358 | cat >&5 <<_ACEOF |
6de9cd9a DN |
2359 | |
2360 | ||
5213506e RW |
2361 | ## ----------- ## |
2362 | ## Core tests. ## | |
2363 | ## ----------- ## | |
78511f8b | 2364 | |
5213506e | 2365 | _ACEOF |
38d24731 | 2366 | |
96b8a615 | 2367 | |
5213506e RW |
2368 | # Keep a trace of the command line. |
2369 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2370 | # Strip out --silent because we don't want to record it for future runs. | |
2371 | # Also quote any args containing shell meta-characters. | |
2372 | # Make two passes to allow for proper duplicate-argument suppression. | |
2373 | ac_configure_args= | |
2374 | ac_configure_args0= | |
2375 | ac_configure_args1= | |
2376 | ac_must_keep_next=false | |
2377 | for ac_pass in 1 2 | |
2378 | do | |
2379 | for ac_arg | |
2380 | do | |
2381 | case $ac_arg in | |
2382 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2383 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2384 | | -silent | --silent | --silen | --sile | --sil) | |
2385 | continue ;; | |
2386 | *\'*) | |
2387 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2388 | esac | |
2389 | case $ac_pass in | |
2390 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2391 | 2) | |
2392 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2393 | if test $ac_must_keep_next = true; then | |
2394 | ac_must_keep_next=false # Got value, back to normal. | |
2395 | else | |
2396 | case $ac_arg in | |
2397 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2398 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2399 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2400 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2401 | case "$ac_configure_args0 " in | |
2402 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2403 | esac | |
2404 | ;; | |
2405 | -* ) ac_must_keep_next=true ;; | |
2406 | esac | |
2407 | fi | |
2408 | as_fn_append ac_configure_args " '$ac_arg'" | |
2409 | ;; | |
2410 | esac | |
2411 | done | |
6de9cd9a | 2412 | done |
5213506e RW |
2413 | { ac_configure_args0=; unset ac_configure_args0;} |
2414 | { ac_configure_args1=; unset ac_configure_args1;} | |
96b8a615 | 2415 | |
5213506e RW |
2416 | # When interrupted or exit'd, cleanup temporary files, and complete |
2417 | # config.log. We remove comments because anyway the quotes in there | |
2418 | # would cause problems or look ugly. | |
2419 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2420 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2421 | trap 'exit_status=$? | |
2422 | # Save into config.log some information that might help in debugging. | |
2423 | { | |
2424 | echo | |
96b8a615 | 2425 | |
22e05272 | 2426 | $as_echo "## ---------------- ## |
5213506e | 2427 | ## Cache variables. ## |
22e05272 | 2428 | ## ---------------- ##" |
5213506e RW |
2429 | echo |
2430 | # The following way of writing the cache mishandles newlines in values, | |
2431 | ( | |
2432 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2433 | eval ac_val=\$$ac_var | |
2434 | case $ac_val in #( | |
2435 | *${as_nl}*) | |
2436 | case $ac_var in #( | |
2437 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2438 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2439 | esac | |
2440 | case $ac_var in #( | |
2441 | _ | IFS | as_nl) ;; #( | |
2442 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2443 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2444 | esac ;; | |
2445 | esac | |
2446 | done | |
2447 | (set) 2>&1 | | |
2448 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2449 | *${as_nl}ac_space=\ *) | |
2450 | sed -n \ | |
2451 | "s/'\''/'\''\\\\'\'''\''/g; | |
2452 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2453 | ;; #( | |
2454 | *) | |
2455 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2456 | ;; | |
2457 | esac | | |
2458 | sort | |
2459 | ) | |
2460 | echo | |
2461 | ||
22e05272 | 2462 | $as_echo "## ----------------- ## |
5213506e | 2463 | ## Output variables. ## |
22e05272 | 2464 | ## ----------------- ##" |
5213506e RW |
2465 | echo |
2466 | for ac_var in $ac_subst_vars | |
2467 | do | |
2468 | eval ac_val=\$$ac_var | |
2469 | case $ac_val in | |
2470 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2471 | esac | |
2472 | $as_echo "$ac_var='\''$ac_val'\''" | |
2473 | done | sort | |
2474 | echo | |
2475 | ||
2476 | if test -n "$ac_subst_files"; then | |
22e05272 | 2477 | $as_echo "## ------------------- ## |
5213506e | 2478 | ## File substitutions. ## |
22e05272 | 2479 | ## ------------------- ##" |
5213506e RW |
2480 | echo |
2481 | for ac_var in $ac_subst_files | |
2482 | do | |
2483 | eval ac_val=\$$ac_var | |
2484 | case $ac_val in | |
2485 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2486 | esac | |
2487 | $as_echo "$ac_var='\''$ac_val'\''" | |
2488 | done | sort | |
2489 | echo | |
2490 | fi | |
2491 | ||
2492 | if test -s confdefs.h; then | |
22e05272 | 2493 | $as_echo "## ----------- ## |
5213506e | 2494 | ## confdefs.h. ## |
22e05272 | 2495 | ## ----------- ##" |
5213506e RW |
2496 | echo |
2497 | cat confdefs.h | |
2498 | echo | |
2499 | fi | |
2500 | test "$ac_signal" != 0 && | |
2501 | $as_echo "$as_me: caught signal $ac_signal" | |
2502 | $as_echo "$as_me: exit $exit_status" | |
2503 | } >&5 | |
2504 | rm -f core *.core core.conftest.* && | |
2505 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2506 | exit $exit_status | |
2507 | ' 0 | |
2508 | for ac_signal in 1 2 13 15; do | |
2509 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2510 | done | |
2511 | ac_signal=0 | |
2512 | ||
2513 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2514 | rm -f -r conftest* confdefs.h | |
2515 | ||
2516 | $as_echo "/* confdefs.h */" > confdefs.h | |
2517 | ||
2518 | # Predefined preprocessor variables. | |
2519 | ||
2520 | cat >>confdefs.h <<_ACEOF | |
2521 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2522 | _ACEOF | |
2523 | ||
2524 | cat >>confdefs.h <<_ACEOF | |
2525 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2526 | _ACEOF | |
2527 | ||
2528 | cat >>confdefs.h <<_ACEOF | |
2529 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2530 | _ACEOF | |
2531 | ||
2532 | cat >>confdefs.h <<_ACEOF | |
2533 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2534 | _ACEOF | |
2535 | ||
2536 | cat >>confdefs.h <<_ACEOF | |
2537 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2538 | _ACEOF | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define PACKAGE_URL "$PACKAGE_URL" | |
2542 | _ACEOF | |
2543 | ||
2544 | ||
2545 | # Let the site file select an alternate cache file if it wants to. | |
2546 | # Prefer an explicitly selected file to automatically selected ones. | |
2547 | ac_site_file1=NONE | |
2548 | ac_site_file2=NONE | |
2549 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2550 | # We do not want a PATH search for config.site. |
2551 | case $CONFIG_SITE in #(( | |
2552 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2553 | */*) ac_site_file1=$CONFIG_SITE;; | |
2554 | *) ac_site_file1=./$CONFIG_SITE;; | |
2555 | esac | |
5213506e RW |
2556 | elif test "x$prefix" != xNONE; then |
2557 | ac_site_file1=$prefix/share/config.site | |
2558 | ac_site_file2=$prefix/etc/config.site | |
2559 | else | |
2560 | ac_site_file1=$ac_default_prefix/share/config.site | |
2561 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2562 | fi | |
2563 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2564 | do | |
2565 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2566 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2568 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2569 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2570 | . "$ac_site_file" \ |
2571 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2573 | as_fn_error $? "failed to load site script $ac_site_file | |
2574 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2575 | fi |
2576 | done | |
2577 | ||
2578 | if test -r "$cache_file"; then | |
22e05272 JM |
2579 | # Some versions of bash will fail to source /dev/null (special files |
2580 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2581 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2583 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2584 | case $cache_file in | |
2585 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2586 | *) . "./$cache_file";; | |
2587 | esac | |
2588 | fi | |
2589 | else | |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2591 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2592 | >$cache_file | |
2593 | fi | |
2594 | ||
74544378 | 2595 | as_fn_append ac_header_list " unistd.h" |
864c28e1 | 2596 | as_fn_append ac_header_list " sys/random.h" |
74544378 JB |
2597 | as_fn_append ac_header_list " sys/time.h" |
2598 | as_fn_append ac_header_list " sys/times.h" | |
2599 | as_fn_append ac_header_list " sys/resource.h" | |
2600 | as_fn_append ac_header_list " sys/types.h" | |
2601 | as_fn_append ac_header_list " sys/stat.h" | |
edaaef60 | 2602 | as_fn_append ac_header_list " sys/uio.h" |
74544378 JB |
2603 | as_fn_append ac_header_list " sys/wait.h" |
2604 | as_fn_append ac_header_list " floatingpoint.h" | |
2605 | as_fn_append ac_header_list " ieeefp.h" | |
2606 | as_fn_append ac_header_list " fenv.h" | |
2607 | as_fn_append ac_header_list " fptrap.h" | |
fa86f4f9 | 2608 | as_fn_append ac_header_list " fpxcp.h" |
74544378 JB |
2609 | as_fn_append ac_header_list " pwd.h" |
2610 | as_fn_append ac_header_list " complex.h" | |
9cbecd06 | 2611 | as_fn_append ac_header_list " xlocale.h" |
74544378 JB |
2612 | as_fn_append ac_func_list " getrusage" |
2613 | as_fn_append ac_func_list " times" | |
2614 | as_fn_append ac_func_list " mkstemp" | |
2615 | as_fn_append ac_func_list " strtof" | |
2616 | as_fn_append ac_func_list " strtold" | |
2617 | as_fn_append ac_func_list " snprintf" | |
2618 | as_fn_append ac_func_list " ftruncate" | |
2619 | as_fn_append ac_func_list " chsize" | |
2620 | as_fn_append ac_func_list " chdir" | |
d66d6d15 | 2621 | as_fn_append ac_func_list " getentropy" |
74544378 JB |
2622 | as_fn_append ac_func_list " getlogin" |
2623 | as_fn_append ac_func_list " gethostname" | |
2624 | as_fn_append ac_func_list " kill" | |
2625 | as_fn_append ac_func_list " link" | |
2626 | as_fn_append ac_func_list " symlink" | |
2627 | as_fn_append ac_func_list " sleep" | |
2628 | as_fn_append ac_func_list " ttyname" | |
ef536b41 JB |
2629 | as_fn_append ac_func_list " sigaction" |
2630 | as_fn_append ac_func_list " waitpid" | |
74544378 JB |
2631 | as_fn_append ac_func_list " alarm" |
2632 | as_fn_append ac_func_list " access" | |
2633 | as_fn_append ac_func_list " fork" | |
f8886038 | 2634 | as_fn_append ac_func_list " posix_spawn" |
74544378 | 2635 | as_fn_append ac_func_list " setmode" |
b5b58343 | 2636 | as_fn_append ac_func_list " fcntl" |
edaaef60 | 2637 | as_fn_append ac_func_list " writev" |
74544378 JB |
2638 | as_fn_append ac_func_list " gettimeofday" |
2639 | as_fn_append ac_func_list " stat" | |
2640 | as_fn_append ac_func_list " fstat" | |
2641 | as_fn_append ac_func_list " lstat" | |
2642 | as_fn_append ac_func_list " getpwuid" | |
2643 | as_fn_append ac_func_list " vsnprintf" | |
2644 | as_fn_append ac_func_list " dup" | |
2645 | as_fn_append ac_func_list " getcwd" | |
2646 | as_fn_append ac_func_list " localtime_r" | |
2647 | as_fn_append ac_func_list " gmtime_r" | |
74544378 JB |
2648 | as_fn_append ac_func_list " getpwuid_r" |
2649 | as_fn_append ac_func_list " ttyname_r" | |
2650 | as_fn_append ac_func_list " clock_gettime" | |
74544378 JB |
2651 | as_fn_append ac_func_list " getgid" |
2652 | as_fn_append ac_func_list " getpid" | |
74544378 JB |
2653 | as_fn_append ac_func_list " getuid" |
2654 | as_fn_append ac_func_list " geteuid" | |
8ecd1c0d | 2655 | as_fn_append ac_func_list " umask" |
68ee9c08 | 2656 | as_fn_append ac_func_list " getegid" |
227e441f | 2657 | as_fn_append ac_func_list " secure_getenv" |
68ee9c08 | 2658 | as_fn_append ac_func_list " __secure_getenv" |
c20fdb91 | 2659 | as_fn_append ac_func_list " mkostemp" |
4269f19c JB |
2660 | as_fn_append ac_func_list " strnlen" |
2661 | as_fn_append ac_func_list " strndup" | |
9cbecd06 JB |
2662 | as_fn_append ac_func_list " newlocale" |
2663 | as_fn_append ac_func_list " freelocale" | |
2664 | as_fn_append ac_func_list " uselocale" | |
2665 | as_fn_append ac_func_list " strerror_l" | |
db9f46a9 | 2666 | as_fn_append ac_header_list " math.h" |
5213506e RW |
2667 | # Check that the precious variables saved in the cache have kept the same |
2668 | # value. | |
2669 | ac_cache_corrupted=false | |
2670 | for ac_var in $ac_precious_vars; do | |
2671 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2672 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2673 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2674 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2675 | case $ac_old_set,$ac_new_set in | |
2676 | set,) | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2678 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2679 | ac_cache_corrupted=: ;; | |
2680 | ,set) | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2682 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2683 | ac_cache_corrupted=: ;; | |
2684 | ,);; | |
2685 | *) | |
2686 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2687 | # differences in whitespace do not lead to failure. | |
2688 | ac_old_val_w=`echo x $ac_old_val` | |
2689 | ac_new_val_w=`echo x $ac_new_val` | |
2690 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2692 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2693 | ac_cache_corrupted=: | |
2694 | else | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2696 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2697 | eval $ac_var=\$ac_old_val | |
2698 | fi | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2700 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2702 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2703 | fi;; | |
2704 | esac | |
2705 | # Pass precious variables to config.status. | |
2706 | if test "$ac_new_set" = set; then | |
2707 | case $ac_new_val in | |
2708 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2709 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2710 | esac | |
2711 | case " $ac_configure_args " in | |
2712 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2713 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2714 | esac | |
2715 | fi | |
2716 | done | |
2717 | if $ac_cache_corrupted; then | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2721 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2722 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2723 | fi |
2724 | ## -------------------- ## | |
2725 | ## Main body of script. ## | |
2726 | ## -------------------- ## | |
2727 | ||
2728 | ac_ext=c | |
2729 | ac_cpp='$CPP $CPPFLAGS' | |
2730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2733 | ||
2734 | ||
2735 | ||
2736 | ||
2737 | ||
2738 | ac_config_headers="$ac_config_headers config.h" | |
2739 | ||
2740 | ac_aux_dir= | |
2741 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2742 | if test -f "$ac_dir/install-sh"; then |
2743 | ac_aux_dir=$ac_dir | |
2744 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2745 | break | |
2746 | elif test -f "$ac_dir/install.sh"; then | |
2747 | ac_aux_dir=$ac_dir | |
2748 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2749 | break | |
2750 | elif test -f "$ac_dir/shtool"; then | |
2751 | ac_aux_dir=$ac_dir | |
2752 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2753 | break | |
2754 | fi | |
5213506e RW |
2755 | done |
2756 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2757 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
5213506e RW |
2758 | fi |
2759 | ||
2760 | # These three variables are undocumented and unsupported, | |
2761 | # and are intended to be withdrawn in a future Autoconf release. | |
2762 | # They can cause serious problems if a builder's source tree is in a directory | |
2763 | # whose full name contains unusual characters. | |
2764 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2765 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2766 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2767 | ||
2768 | ||
2769 | # Make sure we can run config.sub. | |
2770 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2771 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2772 | |
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2774 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2775 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2776 | $as_echo_n "(cached) " >&6 |
2777 | else | |
2778 | ac_build_alias=$build_alias | |
2779 | test "x$ac_build_alias" = x && | |
2780 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2781 | test "x$ac_build_alias" = x && | |
22e05272 | 2782 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2783 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2784 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2785 | |
2786 | fi | |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2788 | $as_echo "$ac_cv_build" >&6; } | |
2789 | case $ac_cv_build in | |
2790 | *-*-*) ;; | |
22e05272 | 2791 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2792 | esac |
2793 | build=$ac_cv_build | |
2794 | ac_save_IFS=$IFS; IFS='-' | |
2795 | set x $ac_cv_build | |
2796 | shift | |
2797 | build_cpu=$1 | |
2798 | build_vendor=$2 | |
2799 | shift; shift | |
2800 | # Remember, the first character of IFS is used to create $*, | |
2801 | # except with old shells: | |
2802 | build_os=$* | |
2803 | IFS=$ac_save_IFS | |
2804 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2805 | ||
2806 | ||
2807 | case ${build_alias} in | |
2808 | "") build_noncanonical=${build} ;; | |
2809 | *) build_noncanonical=${build_alias} ;; | |
2810 | esac | |
891c05b1 JJ |
2811 | |
2812 | case ${host_alias} in | |
2813 | "") host_noncanonical=${build_noncanonical} ;; | |
2814 | *) host_noncanonical=${host_alias} ;; | |
2815 | esac | |
2816 | ||
2817 | case ${target_alias} in | |
2818 | "") target_noncanonical=${host_noncanonical} ;; | |
2819 | *) target_noncanonical=${target_alias} ;; | |
2820 | esac | |
2821 | ||
57255173 PB |
2822 | |
2823 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2824 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2825 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2826 | # However, they still use the build modules, because the corresponding | |
2827 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2828 | # finishes. So: | |
2829 | # - build_subdir is where we find build modules, and never changes. | |
2830 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2831 | ||
2832 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 2833 | build_subdir="build-${build_noncanonical}" |
57255173 | 2834 | |
5213506e RW |
2835 | # Check whether --with-build-libsubdir was given. |
2836 | if test "${with_build_libsubdir+set}" = set; then : | |
2837 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
2838 | else |
2839 | build_libsubdir="$build_subdir" | |
5213506e RW |
2840 | fi |
2841 | ||
891c05b1 JJ |
2842 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2843 | if ( test $srcdir = . && test -d gcc ) \ | |
2844 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2845 | host_subdir="host-${host_noncanonical}" | |
2846 | else | |
2847 | host_subdir=. | |
2848 | fi | |
2849 | # No prefix. | |
2850 | target_subdir=${target_noncanonical} | |
2851 | ||
2852 | ||
2853 | # ------- | |
2854 | # Options | |
2855 | # ------- | |
2856 | ||
5213506e RW |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2858 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2859 | # Check whether --enable-version-specific-runtime-libs was given. | |
2860 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2861 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
891c05b1 JJ |
2862 | yes) version_specific_libs=yes ;; |
2863 | no) version_specific_libs=no ;; | |
22e05272 | 2864 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
891c05b1 JJ |
2865 | esac |
2866 | else | |
2867 | version_specific_libs=no | |
5213506e RW |
2868 | fi |
2869 | ||
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2871 | $as_echo "$version_specific_libs" >&6; } | |
891c05b1 | 2872 | |
b808ac33 | 2873 | # Build with intermodule optimisations |
5213506e RW |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2875 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2876 | # Check whether --enable-intermodule was given. | |
2877 | if test "${enable_intermodule+set}" = set; then : | |
2878 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
b808ac33 BF |
2879 | yes) onestep="-onestep";; |
2880 | *) onestep="";; | |
2881 | esac | |
2882 | else | |
2883 | onestep="" | |
5213506e | 2884 | fi |
b808ac33 | 2885 | |
5213506e RW |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2887 | $as_echo "$enable_intermodule" >&6; } | |
2888 | if test x$onestep = x-onestep; then | |
b808ac33 BF |
2889 | onestep_TRUE= |
2890 | onestep_FALSE='#' | |
2891 | else | |
2892 | onestep_TRUE='#' | |
2893 | onestep_FALSE= | |
2894 | fi | |
2895 | ||
2896 | ||
891c05b1 JJ |
2897 | |
2898 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2899 | # | |
2900 | # You will slowly go insane if you do not grok the following fact: when | |
2901 | # building this library, the top-level /target/ becomes the library's /host/. | |
2902 | # | |
2903 | # configure then causes --target to default to --host, exactly like any | |
2904 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2905 | # always be the same. This makes sense both for native and cross compilers | |
2906 | # just think about it for a little while. :-) | |
2907 | # | |
2908 | # Also, if this library is being configured as part of a cross compiler, the | |
2909 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2910 | # | |
2911 | # Do not delete or change the following two lines. For why, see | |
2912 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
5213506e RW |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2914 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2915 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2916 | $as_echo_n "(cached) " >&6 |
2917 | else | |
2918 | if test "x$host_alias" = x; then | |
2919 | ac_cv_host=$ac_cv_build | |
2920 | else | |
2921 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2922 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e RW |
2923 | fi |
2924 | ||
2925 | fi | |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2927 | $as_echo "$ac_cv_host" >&6; } | |
2928 | case $ac_cv_host in | |
2929 | *-*-*) ;; | |
22e05272 | 2930 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2931 | esac |
96b8a615 | 2932 | host=$ac_cv_host |
5213506e RW |
2933 | ac_save_IFS=$IFS; IFS='-' |
2934 | set x $ac_cv_host | |
2935 | shift | |
2936 | host_cpu=$1 | |
2937 | host_vendor=$2 | |
2938 | shift; shift | |
2939 | # Remember, the first character of IFS is used to create $*, | |
2940 | # except with old shells: | |
2941 | host_os=$* | |
2942 | IFS=$ac_save_IFS | |
2943 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
38d24731 RW |
2944 | |
2945 | ||
5213506e RW |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2947 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2948 | if ${ac_cv_target+:} false; then : |
5213506e | 2949 | $as_echo_n "(cached) " >&6 |
96b8a615 | 2950 | else |
5213506e RW |
2951 | if test "x$target_alias" = x; then |
2952 | ac_cv_target=$ac_cv_host | |
2953 | else | |
2954 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2955 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2956 | fi |
96b8a615 AJ |
2957 | |
2958 | fi | |
5213506e RW |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2960 | $as_echo "$ac_cv_target" >&6; } | |
2961 | case $ac_cv_target in | |
2962 | *-*-*) ;; | |
22e05272 | 2963 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2964 | esac |
96b8a615 | 2965 | target=$ac_cv_target |
5213506e RW |
2966 | ac_save_IFS=$IFS; IFS='-' |
2967 | set x $ac_cv_target | |
2968 | shift | |
2969 | target_cpu=$1 | |
2970 | target_vendor=$2 | |
2971 | shift; shift | |
2972 | # Remember, the first character of IFS is used to create $*, | |
2973 | # except with old shells: | |
2974 | target_os=$* | |
2975 | IFS=$ac_save_IFS | |
2976 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
96b8a615 AJ |
2977 | |
2978 | ||
2979 | # The aliases save the names the user supplied, while $host etc. | |
2980 | # will get canonicalized. | |
2981 | test -n "$target_alias" && | |
2982 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2983 | NONENONEs,x,x, && | |
2984 | program_prefix=${target_alias}- | |
5213506e | 2985 | |
60858d8a TB |
2986 | |
2987 | ||
2988 | ||
96b8a615 AJ |
2989 | target_alias=${target_alias-$host_alias} |
2990 | ||
60858d8a | 2991 | |
96b8a615 AJ |
2992 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
2993 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 2994 | # 1.9.6: minimum required version |
96b8a615 AJ |
2995 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
2996 | # of other PACKAGE_* variables will, however, and there's nothing | |
2997 | # we can do about that; they come from AC_INIT). | |
2998 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2999 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 3000 | # no-dist: we don't want 'dist' and related rules. |
96b8a615 AJ |
3001 | # -Wall: turns on all automake warnings... |
3002 | # -Wno-portability: ...except this one, since GNU make is required. | |
22e05272 | 3003 | am__api_version='1.15' |
5213506e | 3004 | |
6de9cd9a DN |
3005 | # Find a good install program. We prefer a C program (faster), |
3006 | # so one script is as good as another. But avoid the broken or | |
3007 | # incompatible versions: | |
3008 | # SysV /etc/install, /usr/sbin/install | |
3009 | # SunOS /usr/etc/install | |
3010 | # IRIX /sbin/install | |
3011 | # AIX /bin/install | |
3012 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3013 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3014 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3015 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3016 | # OS/2's system install, which has a completely different semantic | |
3017 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 3018 | # Reject install programs that cannot install multiple files. |
5213506e RW |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3020 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6de9cd9a | 3021 | if test -z "$INSTALL"; then |
22e05272 | 3022 | if ${ac_cv_path_install+:} false; then : |
5213506e | 3023 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3024 | else |
3025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3026 | for as_dir in $PATH | |
3027 | do | |
3028 | IFS=$as_save_IFS | |
3029 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3030 | # Account for people who put trailing slashes in PATH elements. |
3031 | case $as_dir/ in #(( | |
3032 | ./ | .// | /[cC]/* | \ | |
6de9cd9a | 3033 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 3034 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6de9cd9a DN |
3035 | /usr/ucb/* ) ;; |
3036 | *) | |
3037 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3038 | # Don't use installbsd from OSF since it installs stuff as root | |
3039 | # by default. | |
3040 | for ac_prog in ginstall scoinst install; do | |
3041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3042 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6de9cd9a DN |
3043 | if test $ac_prog = install && |
3044 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3045 | # AIX install. It has an incompatible calling convention. | |
3046 | : | |
3047 | elif test $ac_prog = install && | |
3048 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3049 | # program-specific install script used by HP pwplus--don't use. | |
3050 | : | |
3051 | else | |
38d24731 RW |
3052 | rm -rf conftest.one conftest.two conftest.dir |
3053 | echo one > conftest.one | |
3054 | echo two > conftest.two | |
3055 | mkdir conftest.dir | |
3056 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3057 | test -s conftest.one && test -s conftest.two && | |
3058 | test -s conftest.dir/conftest.one && | |
3059 | test -s conftest.dir/conftest.two | |
3060 | then | |
3061 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3062 | break 3 | |
3063 | fi | |
6de9cd9a DN |
3064 | fi |
3065 | fi | |
3066 | done | |
3067 | done | |
3068 | ;; | |
3069 | esac | |
5213506e RW |
3070 | |
3071 | done | |
3072 | IFS=$as_save_IFS | |
6de9cd9a | 3073 | |
38d24731 | 3074 | rm -rf conftest.one conftest.two conftest.dir |
6de9cd9a DN |
3075 | |
3076 | fi | |
3077 | if test "${ac_cv_path_install+set}" = set; then | |
3078 | INSTALL=$ac_cv_path_install | |
3079 | else | |
f489fba1 FXC |
3080 | # As a last resort, use the slow shell script. Don't cache a |
3081 | # value for INSTALL within a source directory, because that will | |
6de9cd9a | 3082 | # break other packages using the cache if that directory is |
f489fba1 | 3083 | # removed, or if the value is a relative name. |
6de9cd9a DN |
3084 | INSTALL=$ac_install_sh |
3085 | fi | |
3086 | fi | |
5213506e RW |
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3088 | $as_echo "$INSTALL" >&6; } | |
6de9cd9a DN |
3089 | |
3090 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3091 | # It thinks the first close brace ends the variable substitution. | |
3092 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3093 | ||
3094 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3095 | ||
3096 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3097 | ||
5213506e RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3099 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
3100 | # Reject unsafe characters in $srcdir or the absolute working directory |
3101 | # name. Accept space and tab only in the latter. | |
3102 | am_lf=' | |
3103 | ' | |
3104 | case `pwd` in | |
3105 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3106 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
3107 | esac |
3108 | case $srcdir in | |
3109 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3110 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
3111 | esac |
3112 | ||
22e05272 | 3113 | # Do 'set' in a subshell so we don't clobber the current shell's |
6de9cd9a DN |
3114 | # arguments. Must try -L first in case configure is actually a |
3115 | # symlink; some systems play weird games with the mod time of symlinks | |
3116 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3117 | # directory). | |
3118 | if ( | |
22e05272 JM |
3119 | am_has_slept=no |
3120 | for am_try in 1 2; do | |
3121 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3122 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3123 | if test "$*" = "X"; then | |
3124 | # -L didn't work. | |
3125 | set X `ls -t "$srcdir/configure" conftest.file` | |
3126 | fi | |
3127 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3128 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3129 | ||
3130 | # If neither matched, then we have a broken ls. This can happen | |
3131 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3132 | # broken ls alias from the environment. This has actually | |
3133 | # happened. Such a system could not be considered "sane". | |
3134 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3135 | alias in your environment" "$LINENO" 5 | |
3136 | fi | |
3137 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3138 | break | |
3139 | fi | |
3140 | # Just in case. | |
3141 | sleep 1 | |
3142 | am_has_slept=yes | |
3143 | done | |
6de9cd9a DN |
3144 | test "$2" = conftest.file |
3145 | ) | |
3146 | then | |
3147 | # Ok. | |
3148 | : | |
3149 | else | |
22e05272 | 3150 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3151 | Check your system clock" "$LINENO" 5 |
6de9cd9a | 3152 | fi |
5213506e RW |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3154 | $as_echo "yes" >&6; } | |
22e05272 JM |
3155 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3156 | # generated files are strictly newer. | |
3157 | am_sleep_pid= | |
3158 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3159 | ( sleep 1 ) & | |
3160 | am_sleep_pid=$! | |
3161 | fi | |
3162 | ||
3163 | rm -f conftest.file | |
3164 | ||
6de9cd9a | 3165 | test "$program_prefix" != NONE && |
5213506e | 3166 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
6de9cd9a DN |
3167 | # Use a double $ so make ignores it. |
3168 | test "$program_suffix" != NONE && | |
5213506e RW |
3169 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3170 | # Double any \ or $. | |
6de9cd9a | 3171 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3172 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3173 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6de9cd9a | 3174 | |
22e05272 JM |
3175 | # Expand $ac_aux_dir to an absolute path. |
3176 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6de9cd9a | 3177 | |
5213506e RW |
3178 | if test x"${MISSING+set}" != xset; then |
3179 | case $am_aux_dir in | |
3180 | *\ * | *\ *) | |
3181 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3182 | *) | |
3183 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3184 | esac | |
3185 | fi | |
6de9cd9a | 3186 | # Use eval to expand $SHELL |
22e05272 JM |
3187 | if eval "$MISSING --is-lightweight"; then |
3188 | am_missing_run="$MISSING " | |
6de9cd9a DN |
3189 | else |
3190 | am_missing_run= | |
22e05272 JM |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3192 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
6de9cd9a DN |
3193 | fi |
3194 | ||
22e05272 | 3195 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3196 | case $am_aux_dir in |
3197 | *\ * | *\ *) | |
3198 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3199 | *) | |
3200 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3201 | esac | |
3202 | fi | |
3203 | ||
22e05272 JM |
3204 | # Installed binaries are usually stripped using 'strip' when the user |
3205 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3206 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3207 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3208 | if test "$cross_compiling" != no; then |
3209 | if test -n "$ac_tool_prefix"; then | |
3210 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3211 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3214 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3215 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3216 | else |
5213506e RW |
3217 | if test -n "$STRIP"; then |
3218 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6de9cd9a DN |
3219 | else |
3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3221 | for as_dir in $PATH | |
3222 | do | |
3223 | IFS=$as_save_IFS | |
3224 | test -z "$as_dir" && as_dir=. | |
5213506e | 3225 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3227 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6de9cd9a DN |
3229 | break 2 |
3230 | fi | |
3231 | done | |
5213506e RW |
3232 | done |
3233 | IFS=$as_save_IFS | |
6de9cd9a DN |
3234 | |
3235 | fi | |
3236 | fi | |
5213506e RW |
3237 | STRIP=$ac_cv_prog_STRIP |
3238 | if test -n "$STRIP"; then | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3240 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 3241 | else |
5213506e RW |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3243 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3244 | fi |
3245 | ||
6de9cd9a | 3246 | |
5213506e RW |
3247 | fi |
3248 | if test -z "$ac_cv_prog_STRIP"; then | |
3249 | ac_ct_STRIP=$STRIP | |
3250 | # Extract the first word of "strip", so it can be a program name with args. | |
3251 | set dummy strip; ac_word=$2 | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3253 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3254 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3255 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3256 | else |
5213506e RW |
3257 | if test -n "$ac_ct_STRIP"; then |
3258 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38d24731 | 3259 | else |
5213506e RW |
3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3261 | for as_dir in $PATH | |
3262 | do | |
3263 | IFS=$as_save_IFS | |
3264 | test -z "$as_dir" && as_dir=. | |
3265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3267 | ac_cv_prog_ac_ct_STRIP="strip" |
3268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3269 | break 2 | |
3270 | fi | |
3271 | done | |
3272 | done | |
3273 | IFS=$as_save_IFS | |
3274 | ||
38d24731 | 3275 | fi |
6de9cd9a | 3276 | fi |
5213506e RW |
3277 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3278 | if test -n "$ac_ct_STRIP"; then | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3280 | $as_echo "$ac_ct_STRIP" >&6; } | |
3281 | else | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3283 | $as_echo "no" >&6; } | |
3284 | fi | |
3285 | ||
3286 | if test "x$ac_ct_STRIP" = x; then | |
3287 | STRIP=":" | |
3288 | else | |
3289 | case $cross_compiling:$ac_tool_warned in | |
3290 | yes:) | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3293 | ac_tool_warned=yes ;; | |
3294 | esac | |
3295 | STRIP=$ac_ct_STRIP | |
3296 | fi | |
3297 | else | |
3298 | STRIP="$ac_cv_prog_STRIP" | |
3299 | fi | |
3300 | ||
3301 | fi | |
3302 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3303 | ||
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3305 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3306 | if test -z "$MKDIR_P"; then | |
22e05272 | 3307 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3308 | $as_echo_n "(cached) " >&6 |
3309 | else | |
3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3311 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3312 | do | |
3313 | IFS=$as_save_IFS | |
3314 | test -z "$as_dir" && as_dir=. | |
3315 | for ac_prog in mkdir gmkdir; do | |
3316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3317 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3318 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3319 | 'mkdir (GNU coreutils) '* | \ | |
3320 | 'mkdir (coreutils) '* | \ | |
3321 | 'mkdir (fileutils) '4.1*) | |
3322 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3323 | break 3;; | |
3324 | esac | |
3325 | done | |
3326 | done | |
3327 | done | |
3328 | IFS=$as_save_IFS | |
3329 | ||
3330 | fi | |
3331 | ||
22e05272 | 3332 | test -d ./--version && rmdir ./--version |
5213506e RW |
3333 | if test "${ac_cv_path_mkdir+set}" = set; then |
3334 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3335 | else | |
3336 | # As a last resort, use the slow shell script. Don't cache a | |
3337 | # value for MKDIR_P within a source directory, because that will | |
3338 | # break other packages using the cache if that directory is | |
3339 | # removed, or if the value is a relative name. | |
5213506e RW |
3340 | MKDIR_P="$ac_install_sh -d" |
3341 | fi | |
3342 | fi | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3344 | $as_echo "$MKDIR_P" >&6; } | |
3345 | ||
5213506e RW |
3346 | for ac_prog in gawk mawk nawk awk |
3347 | do | |
3348 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3349 | set dummy $ac_prog; ac_word=$2 | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3352 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e RW |
3353 | $as_echo_n "(cached) " >&6 |
3354 | else | |
3355 | if test -n "$AWK"; then | |
3356 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3357 | else | |
3358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3359 | for as_dir in $PATH | |
3360 | do | |
3361 | IFS=$as_save_IFS | |
3362 | test -z "$as_dir" && as_dir=. | |
3363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3365 | ac_cv_prog_AWK="$ac_prog" |
3366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3367 | break 2 | |
3368 | fi | |
3369 | done | |
3370 | done | |
3371 | IFS=$as_save_IFS | |
3372 | ||
3373 | fi | |
3374 | fi | |
3375 | AWK=$ac_cv_prog_AWK | |
3376 | if test -n "$AWK"; then | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3378 | $as_echo "$AWK" >&6; } | |
3379 | else | |
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3381 | $as_echo "no" >&6; } | |
3382 | fi | |
3383 | ||
3384 | ||
3385 | test -n "$AWK" && break | |
3386 | done | |
3387 | ||
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3389 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3390 | set x ${MAKE-make} | |
3391 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3392 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
3393 | $as_echo_n "(cached) " >&6 |
3394 | else | |
3395 | cat >conftest.make <<\_ACEOF | |
3396 | SHELL = /bin/sh | |
3397 | all: | |
3398 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3399 | _ACEOF | |
22e05272 | 3400 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3401 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3402 | *@@@%%%=?*=@@@%%%*) | |
3403 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3404 | *) | |
3405 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3406 | esac | |
3407 | rm -f conftest.make | |
3408 | fi | |
3409 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3411 | $as_echo "yes" >&6; } | |
6de9cd9a DN |
3412 | SET_MAKE= |
3413 | else | |
5213506e RW |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3415 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3416 | SET_MAKE="MAKE=${MAKE-make}" |
3417 | fi | |
3418 | ||
3419 | rm -rf .tst 2>/dev/null | |
3420 | mkdir .tst 2>/dev/null | |
3421 | if test -d .tst; then | |
3422 | am__leading_dot=. | |
3423 | else | |
3424 | am__leading_dot=_ | |
3425 | fi | |
3426 | rmdir .tst 2>/dev/null | |
3427 | ||
22e05272 JM |
3428 | # Check whether --enable-silent-rules was given. |
3429 | if test "${enable_silent_rules+set}" = set; then : | |
3430 | enableval=$enable_silent_rules; | |
3431 | fi | |
3432 | ||
3433 | case $enable_silent_rules in # ((( | |
3434 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3435 | no) AM_DEFAULT_VERBOSITY=1;; | |
3436 | *) AM_DEFAULT_VERBOSITY=1;; | |
3437 | esac | |
3438 | am_make=${MAKE-make} | |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3440 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3441 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3442 | $as_echo_n "(cached) " >&6 | |
3443 | else | |
3444 | if $as_echo 'TRUE=$(BAR$(V)) | |
3445 | BAR0=false | |
3446 | BAR1=true | |
3447 | V=1 | |
3448 | am__doit: | |
3449 | @$(TRUE) | |
3450 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3451 | am_cv_make_support_nested_variables=yes | |
3452 | else | |
3453 | am_cv_make_support_nested_variables=no | |
3454 | fi | |
3455 | fi | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3457 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3458 | if test $am_cv_make_support_nested_variables = yes; then | |
3459 | AM_V='$(V)' | |
3460 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3461 | else | |
3462 | AM_V=$AM_DEFAULT_VERBOSITY | |
3463 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3464 | fi | |
3465 | AM_BACKSLASH='\' | |
3466 | ||
5213506e RW |
3467 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3468 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3469 | # is not polluted with repeated "-I." | |
3470 | am__isrc=' -I$(srcdir)' | |
3471 | # test to see if srcdir already configured | |
3472 | if test -f $srcdir/config.status; then | |
22e05272 | 3473 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3474 | fi |
6de9cd9a DN |
3475 | fi |
3476 | ||
3477 | # test whether we have cygpath | |
3478 | if test -z "$CYGPATH_W"; then | |
3479 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3480 | CYGPATH_W='cygpath -w' | |
3481 | else | |
3482 | CYGPATH_W=echo | |
3483 | fi | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | # Define the identity of the package. | |
3488 | PACKAGE='libgfortran' | |
0dce3ca1 | 3489 | VERSION='0.3' |
6de9cd9a DN |
3490 | |
3491 | ||
6de9cd9a DN |
3492 | # Some tools Automake needs. |
3493 | ||
3494 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3495 | ||
3496 | ||
3497 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3498 | ||
3499 | ||
3500 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3501 | ||
3502 | ||
3503 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3504 | ||
3505 | ||
3506 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3507 | ||
22e05272 JM |
3508 | # For better backward compatibility. To be removed once Automake 1.9.x |
3509 | # dies out for good. For more background, see: | |
3510 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3511 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3512 | mkdir_p='$(MKDIR_P)' | |
3513 | ||
3514 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3515 | # system "awk" is bad on some platforms. | |
c20fdb91 JB |
3516 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3517 | # in the wild :-( We should find a proper way to deprecate it ... | |
3518 | AMTAR='$${TAR-tar}' | |
d49ec2d1 | 3519 | |
22e05272 JM |
3520 | |
3521 | # We'll loop over all known methods to create a tar archive until one works. | |
3522 | _am_tools='gnutar pax cpio none' | |
3523 | ||
c20fdb91 | 3524 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d49ec2d1 KC |
3525 | |
3526 | ||
6de9cd9a DN |
3527 | |
3528 | ||
3529 | ||
6de9cd9a | 3530 | |
22e05272 JM |
3531 | # POSIX will say in a future version that running "rm -f" with no argument |
3532 | # is OK; and we want to be able to make that assumption in our Makefile | |
3533 | # recipes. So use an aggressive probe to check that the usage we want is | |
3534 | # actually supported "in the wild" to an acceptable degree. | |
3535 | # See automake bug#10828. | |
3536 | # To make any issue more visible, cause the running configure to be aborted | |
3537 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3538 | # user can still override this though. | |
3539 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3540 | cat >&2 <<'END' | |
3541 | Oops! | |
3542 | ||
3543 | Your 'rm' program seems unable to run without file operands specified | |
3544 | on the command line, even when the '-f' option is present. This is contrary | |
3545 | to the behaviour of most rm programs out there, and not conforming with | |
3546 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3547 | ||
3548 | Please tell bug-automake@gnu.org about your system, including the value | |
3549 | of your $PATH and any error possibly output before this message. This | |
3550 | can help us improve future automake versions. | |
3551 | ||
3552 | END | |
3553 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3554 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3555 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3556 | echo >&2 | |
3557 | else | |
3558 | cat >&2 <<'END' | |
3559 | Aborting the configuration process, to ensure you take notice of the issue. | |
3560 | ||
3561 | You can download and install GNU coreutils to get an 'rm' implementation | |
3562 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3563 | ||
3564 | If you want to complete the configuration process using your problematic | |
3565 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3566 | to "yes", and re-run configure. | |
3567 | ||
3568 | END | |
3569 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3570 | fi | |
3571 | fi | |
3572 | ||
3573 | ||
5213506e RW |
3574 | |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3576 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3577 | # Check whether --enable-maintainer-mode was given. | |
3578 | if test "${enable_maintainer_mode+set}" = set; then : | |
3579 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
6de9cd9a DN |
3580 | else |
3581 | USE_MAINTAINER_MODE=no | |
5213506e | 3582 | fi |
6de9cd9a | 3583 | |
5213506e RW |
3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3585 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3586 | if test $USE_MAINTAINER_MODE = yes; then | |
6de9cd9a DN |
3587 | MAINTAINER_MODE_TRUE= |
3588 | MAINTAINER_MODE_FALSE='#' | |
3589 | else | |
3590 | MAINTAINER_MODE_TRUE='#' | |
3591 | MAINTAINER_MODE_FALSE= | |
3592 | fi | |
3593 | ||
3594 | MAINT=$MAINTAINER_MODE_TRUE | |
3595 | ||
3596 | ||
96b8a615 | 3597 | # Default to --enable-multilib |
5213506e RW |
3598 | # Check whether --enable-multilib was given. |
3599 | if test "${enable_multilib+set}" = set; then : | |
3600 | enableval=$enable_multilib; case "$enableval" in | |
96b8a615 AJ |
3601 | yes) multilib=yes ;; |
3602 | no) multilib=no ;; | |
22e05272 | 3603 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
96b8a615 AJ |
3604 | esac |
3605 | else | |
3606 | multilib=yes | |
5213506e RW |
3607 | fi |
3608 | ||
96b8a615 AJ |
3609 | |
3610 | # We may get other options which we leave undocumented: | |
3611 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3612 | # See config-ml.in if you want the gory details. | |
3613 | ||
3614 | if test "$srcdir" = "."; then | |
3615 | if test "$with_target_subdir" != "."; then | |
3616 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3617 | else | |
3618 | multi_basedir="$srcdir/$with_multisrctop.." | |
3619 | fi | |
3620 | else | |
3621 | multi_basedir="$srcdir/.." | |
3622 | fi | |
3623 | ||
3624 | ||
9f9ef303 FXC |
3625 | # Even if the default multilib is not a cross compilation, |
3626 | # it may be that some of the other multilibs are. | |
3627 | if test $cross_compiling = no && test $multilib = yes \ | |
3628 | && test "x${with_multisubdir}" != x ; then | |
3629 | cross_compiling=maybe | |
3630 | fi | |
3631 | ||
5213506e | 3632 | ac_config_commands="$ac_config_commands default-1" |
96b8a615 AJ |
3633 | |
3634 | ||
3635 | # Handy for debugging: | |
3636 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3637 | ||
3638 | # Are we being configured with some form of cross compiler? | |
3639 | # NB: We don't actually need to know this just now, but when, say, a test | |
3640 | # suite is included, we'll have to know. | |
3641 | if test "$build" != "$host"; then | |
3642 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 3643 | |
96b8a615 AJ |
3644 | else |
3645 | LIBGFOR_IS_NATIVE=true | |
3646 | fi | |
3647 | ||
21be0a5a | 3648 | DEPDIR="${am__leading_dot}deps" |
96b8a615 | 3649 | |
21be0a5a | 3650 | ac_config_commands="$ac_config_commands depfiles" |
96b8a615 | 3651 | |
6de9cd9a | 3652 | |
21be0a5a JB |
3653 | am_make=${MAKE-make} |
3654 | cat > confinc << 'END' | |
3655 | am__doit: | |
3656 | @echo this is the am__doit target | |
3657 | .PHONY: am__doit | |
3658 | END | |
3659 | # If we don't find an include directive, just comment out the code. | |
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3661 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3662 | am__include="#" | |
3663 | am__quote= | |
3664 | _am_result=none | |
3665 | # First try GNU make style include. | |
3666 | echo "include confinc" > confmf | |
22e05272 | 3667 | # Ignore all kinds of additional output from 'make'. |
21be0a5a JB |
3668 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3669 | *the\ am__doit\ target*) | |
3670 | am__include=include | |
3671 | am__quote= | |
3672 | _am_result=GNU | |
3673 | ;; | |
3674 | esac | |
3675 | # Now try BSD make style include. | |
3676 | if test "$am__include" = "#"; then | |
3677 | echo '.include "confinc"' > confmf | |
3678 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3679 | *the\ am__doit\ target*) | |
3680 | am__include=.include | |
3681 | am__quote="\"" | |
3682 | _am_result=BSD | |
3683 | ;; | |
3684 | esac | |
3685 | fi | |
1ec601bf | 3686 | |
6de9cd9a | 3687 | |
21be0a5a JB |
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3689 | $as_echo "$_am_result" >&6; } | |
3690 | rm -f confinc confmf | |
3691 | ||
3692 | # Check whether --enable-dependency-tracking was given. | |
3693 | if test "${enable_dependency_tracking+set}" = set; then : | |
3694 | enableval=$enable_dependency_tracking; | |
3695 | fi | |
3696 | ||
3697 | if test "x$enable_dependency_tracking" != xno; then | |
3698 | am_depcomp="$ac_aux_dir/depcomp" | |
3699 | AMDEPBACKSLASH='\' | |
c20fdb91 | 3700 | am__nodep='_no' |
21be0a5a JB |
3701 | fi |
3702 | if test "x$enable_dependency_tracking" != xno; then | |
3703 | AMDEP_TRUE= | |
3704 | AMDEP_FALSE='#' | |
3705 | else | |
3706 | AMDEP_TRUE='#' | |
3707 | AMDEP_FALSE= | |
3708 | fi | |
6de9cd9a DN |
3709 | |
3710 | ||
6de9cd9a DN |
3711 | ac_ext=c |
3712 | ac_cpp='$CPP $CPPFLAGS' | |
3713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3716 | if test -n "$ac_tool_prefix"; then | |
3717 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3718 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3720 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3721 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3722 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3723 | else |
3724 | if test -n "$CC"; then | |
3725 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3726 | else | |
3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3728 | for as_dir in $PATH | |
3729 | do | |
3730 | IFS=$as_save_IFS | |
3731 | test -z "$as_dir" && as_dir=. | |
5213506e | 3732 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3734 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3736 | break 2 |
3737 | fi | |
3738 | done | |
5213506e RW |
3739 | done |
3740 | IFS=$as_save_IFS | |
6de9cd9a DN |
3741 | |
3742 | fi | |
3743 | fi | |
3744 | CC=$ac_cv_prog_CC | |
3745 | if test -n "$CC"; then | |
5213506e RW |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3747 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3748 | else |
5213506e RW |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3750 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3751 | fi |
3752 | ||
5213506e | 3753 | |
6de9cd9a DN |
3754 | fi |
3755 | if test -z "$ac_cv_prog_CC"; then | |
3756 | ac_ct_CC=$CC | |
3757 | # Extract the first word of "gcc", so it can be a program name with args. | |
3758 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3760 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3761 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3762 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3763 | else |
3764 | if test -n "$ac_ct_CC"; then | |
3765 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3766 | else | |
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3768 | for as_dir in $PATH | |
3769 | do | |
3770 | IFS=$as_save_IFS | |
3771 | test -z "$as_dir" && as_dir=. | |
5213506e | 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3774 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3776 | break 2 |
3777 | fi | |
3778 | done | |
5213506e RW |
3779 | done |
3780 | IFS=$as_save_IFS | |
6de9cd9a DN |
3781 | |
3782 | fi | |
3783 | fi | |
3784 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3785 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3787 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3788 | else |
5213506e RW |
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3790 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3791 | fi |
3792 | ||
5213506e RW |
3793 | if test "x$ac_ct_CC" = x; then |
3794 | CC="" | |
3795 | else | |
3796 | case $cross_compiling:$ac_tool_warned in | |
3797 | yes:) | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3799 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3800 | ac_tool_warned=yes ;; | |
3801 | esac | |
3802 | CC=$ac_ct_CC | |
3803 | fi | |
6de9cd9a DN |
3804 | else |
3805 | CC="$ac_cv_prog_CC" | |
3806 | fi | |
3807 | ||
3808 | if test -z "$CC"; then | |
5213506e RW |
3809 | if test -n "$ac_tool_prefix"; then |
3810 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6de9cd9a | 3811 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3813 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3814 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3815 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3816 | else |
3817 | if test -n "$CC"; then | |
3818 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3819 | else | |
3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3821 | for as_dir in $PATH | |
3822 | do | |
3823 | IFS=$as_save_IFS | |
3824 | test -z "$as_dir" && as_dir=. | |
5213506e | 3825 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3827 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3829 | break 2 |
3830 | fi | |
3831 | done | |
5213506e RW |
3832 | done |
3833 | IFS=$as_save_IFS | |
6de9cd9a DN |
3834 | |
3835 | fi | |
3836 | fi | |
3837 | CC=$ac_cv_prog_CC | |
3838 | if test -n "$CC"; then | |
5213506e RW |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3840 | $as_echo "$CC" >&6; } | |
38d24731 | 3841 | else |
5213506e RW |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3843 | $as_echo "no" >&6; } | |
38d24731 RW |
3844 | fi |
3845 | ||
38d24731 | 3846 | |
5213506e | 3847 | fi |
6de9cd9a DN |
3848 | fi |
3849 | if test -z "$CC"; then | |
3850 | # Extract the first word of "cc", so it can be a program name with args. | |
3851 | set dummy cc; ac_word=$2 | |
5213506e RW |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3853 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3854 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3855 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3856 | else |
3857 | if test -n "$CC"; then | |
3858 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3859 | else | |
3860 | ac_prog_rejected=no | |
3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3862 | for as_dir in $PATH | |
3863 | do | |
3864 | IFS=$as_save_IFS | |
3865 | test -z "$as_dir" && as_dir=. | |
5213506e | 3866 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a DN |
3868 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3869 | ac_prog_rejected=yes | |
3870 | continue | |
3871 | fi | |
3872 | ac_cv_prog_CC="cc" | |
5213506e | 3873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3874 | break 2 |
3875 | fi | |
3876 | done | |
5213506e RW |
3877 | done |
3878 | IFS=$as_save_IFS | |
6de9cd9a DN |
3879 | |
3880 | if test $ac_prog_rejected = yes; then | |
3881 | # We found a bogon in the path, so make sure we never use it. | |
3882 | set dummy $ac_cv_prog_CC | |
3883 | shift | |
3884 | if test $# != 0; then | |
3885 | # We chose a different compiler from the bogus one. | |
3886 | # However, it has the same basename, so the bogon will be chosen | |
3887 | # first if we set CC to just the basename; use the full file name. | |
3888 | shift | |
3889 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3890 | fi | |
3891 | fi | |
3892 | fi | |
3893 | fi | |
3894 | CC=$ac_cv_prog_CC | |
3895 | if test -n "$CC"; then | |
5213506e RW |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3897 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3898 | else |
5213506e RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3900 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3901 | fi |
3902 | ||
5213506e | 3903 | |
6de9cd9a DN |
3904 | fi |
3905 | if test -z "$CC"; then | |
3906 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3907 | for ac_prog in cl.exe |
6de9cd9a DN |
3908 | do |
3909 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3910 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3912 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3913 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3914 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3915 | else |
3916 | if test -n "$CC"; then | |
3917 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3918 | else | |
3919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3920 | for as_dir in $PATH | |
3921 | do | |
3922 | IFS=$as_save_IFS | |
3923 | test -z "$as_dir" && as_dir=. | |
5213506e | 3924 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3926 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3928 | break 2 |
3929 | fi | |
3930 | done | |
5213506e RW |
3931 | done |
3932 | IFS=$as_save_IFS | |
6de9cd9a DN |
3933 | |
3934 | fi | |
3935 | fi | |
3936 | CC=$ac_cv_prog_CC | |
3937 | if test -n "$CC"; then | |
5213506e RW |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3939 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3940 | else |
5213506e RW |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3942 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3943 | fi |
3944 | ||
5213506e | 3945 | |
6de9cd9a DN |
3946 | test -n "$CC" && break |
3947 | done | |
3948 | fi | |
3949 | if test -z "$CC"; then | |
3950 | ac_ct_CC=$CC | |
5213506e | 3951 | for ac_prog in cl.exe |
6de9cd9a DN |
3952 | do |
3953 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3954 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3956 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3957 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3958 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3959 | else |
3960 | if test -n "$ac_ct_CC"; then | |
3961 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3962 | else | |
3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3964 | for as_dir in $PATH | |
3965 | do | |
3966 | IFS=$as_save_IFS | |
3967 | test -z "$as_dir" && as_dir=. | |
5213506e | 3968 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3970 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3972 | break 2 |
3973 | fi | |
3974 | done | |
5213506e RW |
3975 | done |
3976 | IFS=$as_save_IFS | |
6de9cd9a DN |
3977 | |
3978 | fi | |
3979 | fi | |
3980 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3981 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3983 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3984 | else |
5213506e RW |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3986 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3987 | fi |
3988 | ||
5213506e | 3989 | |
6de9cd9a DN |
3990 | test -n "$ac_ct_CC" && break |
3991 | done | |
3992 | ||
5213506e RW |
3993 | if test "x$ac_ct_CC" = x; then |
3994 | CC="" | |
3995 | else | |
3996 | case $cross_compiling:$ac_tool_warned in | |
3997 | yes:) | |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3999 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4000 | ac_tool_warned=yes ;; | |
4001 | esac | |
4002 | CC=$ac_ct_CC | |
4003 | fi | |
6de9cd9a DN |
4004 | fi |
4005 | ||
4006 | fi | |
4007 | ||
4008 | ||
5213506e RW |
4009 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4011 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4012 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a DN |
4013 | |
4014 | # Provide some information about the compiler. | |
5213506e RW |
4015 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4016 | set X $ac_compile | |
4017 | ac_compiler=$2 | |
4018 | for ac_option in --version -v -V -qversion; do | |
4019 | { { ac_try="$ac_compiler $ac_option >&5" | |
4020 | case "(($ac_try" in | |
4021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4022 | *) ac_try_echo=$ac_try;; | |
4023 | esac | |
4024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4025 | $as_echo "$ac_try_echo"; } >&5 | |
4026 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6de9cd9a | 4027 | ac_status=$? |
5213506e RW |
4028 | if test -s conftest.err; then |
4029 | sed '10a\ | |
4030 | ... rest of stderr output deleted ... | |
4031 | 10q' conftest.err >conftest.er1 | |
4032 | cat conftest.er1 >&5 | |
5213506e | 4033 | fi |
22e05272 | 4034 | rm -f conftest.er1 conftest.err |
5213506e RW |
4035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4036 | test $ac_status = 0; } | |
4037 | done | |
6de9cd9a | 4038 | |
5213506e | 4039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4040 | /* end confdefs.h. */ |
4041 | ||
f02d008e JD |
4042 | int |
4043 | main () | |
4044 | { | |
4045 | ||
4046 | ; | |
4047 | return 0; | |
4048 | } | |
4049 | _ACEOF | |
4050 | # FIXME: Cleanup? | |
5213506e | 4051 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
f02d008e JD |
4052 | (eval $ac_link) 2>&5 |
4053 | ac_status=$? | |
5213506e RW |
4054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4055 | test $ac_status = 0; }; then : | |
f02d008e JD |
4056 | gcc_no_link=no |
4057 | else | |
4058 | gcc_no_link=yes | |
4059 | fi | |
f02d008e JD |
4060 | if test x$gcc_no_link = xyes; then |
4061 | # Setting cross_compile will disable run tests; it will | |
4062 | # also disable AC_CHECK_FILE but that's generally | |
4063 | # correct if we can't link. | |
4064 | cross_compiling=yes | |
4065 | EXEEXT= | |
4066 | else | |
5213506e | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
4068 | /* end confdefs.h. */ |
4069 | ||
6de9cd9a DN |
4070 | int |
4071 | main () | |
4072 | { | |
4073 | ||
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
4078 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4079 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6de9cd9a DN |
4080 | # Try to create an executable without -o first, disregard a.out. |
4081 | # It will help us diagnose broken compilers, and finding out an intuition | |
4082 | # of exeext. | |
22e05272 JM |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4084 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4085 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4086 | ||
4087 | # The possible output files: | |
4088 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4089 | ||
4090 | ac_rmfiles= | |
4091 | for ac_file in $ac_files | |
4092 | do | |
4093 | case $ac_file in | |
4094 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4095 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4096 | esac | |
4097 | done | |
4098 | rm -f $ac_rmfiles | |
4099 | ||
4100 | if { { ac_try="$ac_link_default" | |
4101 | case "(($ac_try" in | |
4102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4103 | *) ac_try_echo=$ac_try;; | |
4104 | esac | |
4105 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4106 | $as_echo "$ac_try_echo"; } >&5 | |
4107 | (eval "$ac_link_default") 2>&5 | |
4108 | ac_status=$? | |
4109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4110 | test $ac_status = 0; }; then : | |
4111 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4112 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4113 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4114 | # so that the user can short-circuit this test for compilers unknown to | |
4115 | # Autoconf. | |
4116 | for ac_file in $ac_files '' | |
6de9cd9a DN |
4117 | do |
4118 | test -f "$ac_file" || continue | |
4119 | case $ac_file in | |
5213506e | 4120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6de9cd9a DN |
4121 | ;; |
4122 | [ab].out ) | |
4123 | # We found the default executable, but exeext='' is most | |
4124 | # certainly right. | |
4125 | break;; | |
4126 | *.* ) | |
5213506e RW |
4127 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4128 | then :; else | |
4129 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4130 | fi | |
4131 | # We set ac_cv_exeext here because the later test for it is not | |
4132 | # safe: cross compilers may not add the suffix if given an `-o' | |
4133 | # argument, so we may need to know it at that point already. | |
4134 | # Even if this section looks crufty: it has the advantage of | |
4135 | # actually working. | |
6de9cd9a DN |
4136 | break;; |
4137 | * ) | |
4138 | break;; | |
4139 | esac | |
4140 | done | |
5213506e RW |
4141 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4142 | ||
6de9cd9a | 4143 | else |
5213506e RW |
4144 | ac_file='' |
4145 | fi | |
5213506e | 4146 | if test -z "$ac_file"; then : |
22e05272 JM |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | $as_echo "no" >&6; } | |
4149 | $as_echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
4150 | sed 's/^/| /' conftest.$ac_ext >&5 |
4151 | ||
5213506e RW |
4152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4154 | as_fn_error 77 "C compiler cannot create executables |
4155 | See \`config.log' for more details" "$LINENO" 5; } | |
4156 | else | |
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4158 | $as_echo "yes" >&6; } | |
6de9cd9a | 4159 | fi |
22e05272 JM |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4161 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4163 | $as_echo "$ac_file" >&6; } | |
6de9cd9a | 4164 | ac_exeext=$ac_cv_exeext |
6de9cd9a | 4165 | |
22e05272 | 4166 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6de9cd9a | 4167 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4169 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4170 | if { { ac_try="$ac_link" | |
4171 | case "(($ac_try" in | |
4172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4173 | *) ac_try_echo=$ac_try;; | |
4174 | esac | |
4175 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4176 | $as_echo "$ac_try_echo"; } >&5 | |
4177 | (eval "$ac_link") 2>&5 | |
6de9cd9a | 4178 | ac_status=$? |
5213506e RW |
4179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4180 | test $ac_status = 0; }; then : | |
6de9cd9a DN |
4181 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4182 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4183 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4184 | # `rm'. | |
4185 | for ac_file in conftest.exe conftest conftest.*; do | |
4186 | test -f "$ac_file" || continue | |
4187 | case $ac_file in | |
5213506e | 4188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6de9cd9a | 4189 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6de9cd9a DN |
4190 | break;; |
4191 | * ) break;; | |
4192 | esac | |
4193 | done | |
4194 | else | |
5213506e RW |
4195 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4196 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4197 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4198 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a | 4199 | fi |
22e05272 | 4200 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4202 | $as_echo "$ac_cv_exeext" >&6; } | |
6de9cd9a DN |
4203 | |
4204 | rm -f conftest.$ac_ext | |
4205 | EXEEXT=$ac_cv_exeext | |
4206 | ac_exeext=$EXEEXT | |
22e05272 JM |
4207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4208 | /* end confdefs.h. */ | |
4209 | #include <stdio.h> | |
4210 | int | |
4211 | main () | |
4212 | { | |
4213 | FILE *f = fopen ("conftest.out", "w"); | |
4214 | return ferror (f) || fclose (f) != 0; | |
4215 | ||
4216 | ; | |
4217 | return 0; | |
4218 | } | |
4219 | _ACEOF | |
4220 | ac_clean_files="$ac_clean_files conftest.out" | |
4221 | # Check that the compiler produces executables we can run. If not, either | |
4222 | # the compiler is broken, or we cross compile. | |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4224 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4225 | if test "$cross_compiling" != yes; then | |
4226 | { { ac_try="$ac_link" | |
4227 | case "(($ac_try" in | |
4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4229 | *) ac_try_echo=$ac_try;; | |
4230 | esac | |
4231 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4232 | $as_echo "$ac_try_echo"; } >&5 | |
4233 | (eval "$ac_link") 2>&5 | |
4234 | ac_status=$? | |
4235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4236 | test $ac_status = 0; } | |
4237 | if { ac_try='./conftest$ac_cv_exeext' | |
4238 | { { case "(($ac_try" in | |
4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4240 | *) ac_try_echo=$ac_try;; | |
4241 | esac | |
4242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4243 | $as_echo "$ac_try_echo"; } >&5 | |
4244 | (eval "$ac_try") 2>&5 | |
4245 | ac_status=$? | |
4246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4247 | test $ac_status = 0; }; }; then | |
4248 | cross_compiling=no | |
4249 | else | |
4250 | if test "$cross_compiling" = maybe; then | |
4251 | cross_compiling=yes | |
4252 | else | |
4253 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4255 | as_fn_error $? "cannot run C compiled programs. | |
4256 | If you meant to cross compile, use \`--host'. | |
4257 | See \`config.log' for more details" "$LINENO" 5; } | |
4258 | fi | |
4259 | fi | |
4260 | fi | |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4262 | $as_echo "$cross_compiling" >&6; } | |
4263 | ||
4264 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4265 | ac_clean_files=$ac_clean_files_save | |
f02d008e | 4266 | fi |
5213506e RW |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4268 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4269 | if ${ac_cv_objext+:} false; then : |
5213506e | 4270 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4271 | else |
5213506e | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4273 | /* end confdefs.h. */ |
4274 | ||
4275 | int | |
4276 | main () | |
4277 | { | |
4278 | ||
4279 | ; | |
4280 | return 0; | |
4281 | } | |
4282 | _ACEOF | |
4283 | rm -f conftest.o conftest.obj | |
5213506e RW |
4284 | if { { ac_try="$ac_compile" |
4285 | case "(($ac_try" in | |
4286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4287 | *) ac_try_echo=$ac_try;; | |
4288 | esac | |
4289 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4290 | $as_echo "$ac_try_echo"; } >&5 | |
4291 | (eval "$ac_compile") 2>&5 | |
4292 | ac_status=$? | |
4293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4294 | test $ac_status = 0; }; then : | |
4295 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4296 | test -f "$ac_file" || continue; | |
6de9cd9a | 4297 | case $ac_file in |
5213506e | 4298 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6de9cd9a DN |
4299 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4300 | break;; | |
4301 | esac | |
4302 | done | |
4303 | else | |
5213506e | 4304 | $as_echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
4305 | sed 's/^/| /' conftest.$ac_ext >&5 |
4306 | ||
5213506e RW |
4307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4309 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4310 | See \`config.log' for more details" "$LINENO" 5; } | |
78511f8b | 4311 | fi |
78511f8b JB |
4312 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4313 | fi | |
5213506e RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4315 | $as_echo "$ac_cv_objext" >&6; } | |
78511f8b JB |
4316 | OBJEXT=$ac_cv_objext |
4317 | ac_objext=$OBJEXT | |
5213506e RW |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4319 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4320 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4321 | $as_echo_n "(cached) " >&6 |
78511f8b | 4322 | else |
5213506e | 4323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4324 | /* end confdefs.h. */ |
6de9cd9a | 4325 | |
6de9cd9a DN |
4326 | int |
4327 | main () | |
4328 | { | |
78511f8b JB |
4329 | #ifndef __GNUC__ |
4330 | choke me | |
4331 | #endif | |
c0e7e2bf | 4332 | |
6de9cd9a DN |
4333 | ; |
4334 | return 0; | |
4335 | } | |
4336 | _ACEOF | |
5213506e | 4337 | if ac_fn_c_try_compile "$LINENO"; then : |
78511f8b | 4338 | ac_compiler_gnu=yes |
6de9cd9a | 4339 | else |
5213506e | 4340 | ac_compiler_gnu=no |
78511f8b | 4341 | fi |
5213506e | 4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
78511f8b JB |
4343 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4344 | ||
4345 | fi | |
5213506e RW |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4347 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4348 | if test $ac_compiler_gnu = yes; then | |
4349 | GCC=yes | |
4350 | else | |
4351 | GCC= | |
4352 | fi | |
78511f8b JB |
4353 | ac_test_CFLAGS=${CFLAGS+set} |
4354 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4356 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4357 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e | 4358 | $as_echo_n "(cached) " >&6 |
78511f8b | 4359 | else |
5213506e RW |
4360 | ac_save_c_werror_flag=$ac_c_werror_flag |
4361 | ac_c_werror_flag=yes | |
4362 | ac_cv_prog_cc_g=no | |
4363 | CFLAGS="-g" | |
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6de9cd9a | 4365 | /* end confdefs.h. */ |
c0e7e2bf | 4366 | |
6de9cd9a DN |
4367 | int |
4368 | main () | |
4369 | { | |
c0e7e2bf | 4370 | |
6de9cd9a DN |
4371 | ; |
4372 | return 0; | |
4373 | } | |
4374 | _ACEOF | |
5213506e | 4375 | if ac_fn_c_try_compile "$LINENO"; then : |
f489fba1 FXC |
4376 | ac_cv_prog_cc_g=yes |
4377 | else | |
5213506e RW |
4378 | CFLAGS="" |
4379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4380 | /* end confdefs.h. */ | |
4381 | ||
4382 | int | |
4383 | main () | |
4384 | { | |
4385 | ||
4386 | ; | |
4387 | return 0; | |
4388 | } | |
4389 | _ACEOF | |
4390 | if ac_fn_c_try_compile "$LINENO"; then : | |
4391 | ||
4392 | else | |
4393 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4394 | CFLAGS="-g" | |
4395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4396 | /* end confdefs.h. */ | |
f489fba1 | 4397 | |
5213506e RW |
4398 | int |
4399 | main () | |
4400 | { | |
4401 | ||
4402 | ; | |
4403 | return 0; | |
4404 | } | |
4405 | _ACEOF | |
4406 | if ac_fn_c_try_compile "$LINENO"; then : | |
4407 | ac_cv_prog_cc_g=yes | |
4408 | fi | |
4409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38d24731 | 4410 | fi |
5213506e | 4411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38d24731 | 4412 | fi |
5213506e RW |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4414 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4415 | fi | |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4417 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
38d24731 RW |
4418 | if test "$ac_test_CFLAGS" = set; then |
4419 | CFLAGS=$ac_save_CFLAGS | |
4420 | elif test $ac_cv_prog_cc_g = yes; then | |
4421 | if test "$GCC" = yes; then | |
4422 | CFLAGS="-g -O2" | |
4423 | else | |
4424 | CFLAGS="-g" | |
4425 | fi | |
4426 | else | |
4427 | if test "$GCC" = yes; then | |
4428 | CFLAGS="-O2" | |
4429 | else | |
4430 | CFLAGS= | |
4431 | fi | |
4432 | fi | |
5213506e RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4434 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4435 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4436 | $as_echo_n "(cached) " >&6 |
38d24731 | 4437 | else |
5213506e | 4438 | ac_cv_prog_cc_c89=no |
38d24731 | 4439 | ac_save_CC=$CC |
5213506e | 4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f489fba1 | 4441 | /* end confdefs.h. */ |
38d24731 RW |
4442 | #include <stdarg.h> |
4443 | #include <stdio.h> | |
22e05272 | 4444 | struct stat; |
38d24731 RW |
4445 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4446 | struct buf { int x; }; | |
4447 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4448 | static char *e (p, i) | |
4449 | char **p; | |
4450 | int i; | |
4451 | { | |
4452 | return p[i]; | |
4453 | } | |
4454 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4455 | { | |
4456 | char *s; | |
4457 | va_list v; | |
4458 | va_start (v,p); | |
4459 | s = g (p, va_arg (v,int)); | |
4460 | va_end (v); | |
4461 | return s; | |
4462 | } | |
f489fba1 | 4463 | |
38d24731 RW |
4464 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4465 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4466 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4467 | as 'x'. The following induces an error, until -std is added to get |
38d24731 RW |
4468 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4469 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4470 | that's true only with -std. */ |
38d24731 RW |
4471 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4472 | ||
5213506e RW |
4473 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4474 | inside strings and character constants. */ | |
4475 | #define FOO(x) 'x' | |
4476 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4477 | ||
38d24731 RW |
4478 | int test (int i, double x); |
4479 | struct s1 {int (*f) (int a);}; | |
4480 | struct s2 {int (*f) (double a);}; | |
4481 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4482 | int argc; | |
4483 | char **argv; | |
f489fba1 FXC |
4484 | int |
4485 | main () | |
4486 | { | |
38d24731 | 4487 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
f489fba1 FXC |
4488 | ; |
4489 | return 0; | |
4490 | } | |
4491 | _ACEOF | |
5213506e RW |
4492 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4493 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
38d24731 RW |
4494 | do |
4495 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4496 | if ac_fn_c_try_compile "$LINENO"; then : |
4497 | ac_cv_prog_cc_c89=$ac_arg | |
38d24731 | 4498 | fi |
5213506e RW |
4499 | rm -f core conftest.err conftest.$ac_objext |
4500 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
38d24731 | 4501 | done |
5213506e | 4502 | rm -f conftest.$ac_ext |
38d24731 RW |
4503 | CC=$ac_save_CC |
4504 | ||
4505 | fi | |
5213506e RW |
4506 | # AC_CACHE_VAL |
4507 | case "x$ac_cv_prog_cc_c89" in | |
4508 | x) | |
4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4510 | $as_echo "none needed" >&6; } ;; | |
4511 | xno) | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4513 | $as_echo "unsupported" >&6; } ;; | |
38d24731 | 4514 | *) |
5213506e RW |
4515 | CC="$CC $ac_cv_prog_cc_c89" |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4517 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
38d24731 | 4518 | esac |
5213506e | 4519 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6de9cd9a DN |
4520 | |
4521 | fi | |
6de9cd9a | 4522 | |
6de9cd9a DN |
4523 | ac_ext=c |
4524 | ac_cpp='$CPP $CPPFLAGS' | |
4525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a | 4528 | |
22e05272 JM |
4529 | ac_ext=c |
4530 | ac_cpp='$CPP $CPPFLAGS' | |
4531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4535 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4536 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4537 | $as_echo_n "(cached) " >&6 | |
4538 | else | |
4539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4540 | /* end confdefs.h. */ | |
4541 | ||
4542 | int | |
4543 | main () | |
4544 | { | |
4545 | ||
4546 | ; | |
4547 | return 0; | |
4548 | } | |
4549 | _ACEOF | |
4550 | # Make sure it works both with $CC and with simple cc. | |
4551 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4552 | # compilers refuse to overwrite an existing .o file with -o, | |
4553 | # though they will create one. | |
4554 | am_cv_prog_cc_c_o=yes | |
4555 | for am_i in 1 2; do | |
4556 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4557 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4558 | ac_status=$? | |
4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4560 | (exit $ac_status); } \ | |
4561 | && test -f conftest2.$ac_objext; then | |
4562 | : OK | |
4563 | else | |
4564 | am_cv_prog_cc_c_o=no | |
4565 | break | |
4566 | fi | |
4567 | done | |
4568 | rm -f core conftest* | |
4569 | unset am_i | |
4570 | fi | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4572 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4573 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4574 | # Losing compiler, so override with the script. | |
4575 | # FIXME: It is wrong to rewrite CC. | |
4576 | # But if we don't then we get into trouble of one sort or another. | |
4577 | # A longer-term fix would be to have automake use am__CC in this case, | |
4578 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4579 | CC="$am_aux_dir/compile $CC" | |
4580 | fi | |
4581 | ac_ext=c | |
4582 | ac_cpp='$CPP $CPPFLAGS' | |
4583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4586 | ||
4587 | ||
679c0f9a TT |
4588 | depcc="$CC" am_compiler_list= |
4589 | ||
5213506e RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4591 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4592 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4593 | $as_echo_n "(cached) " >&6 |
679c0f9a TT |
4594 | else |
4595 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4596 | # We make a subdir and do the tests there. Otherwise we can end up | |
4597 | # making bogus files that we don't know about and never remove. For | |
4598 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4599 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4600 | # in D". | |
c20fdb91 | 4601 | rm -rf conftest.dir |
679c0f9a TT |
4602 | mkdir conftest.dir |
4603 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4604 | # using a relative directory. | |
4605 | cp "$am_depcomp" conftest.dir | |
4606 | cd conftest.dir | |
4607 | # We will build objects and dependencies in a subdirectory because | |
4608 | # it helps to detect inapplicable dependency modes. For instance | |
4609 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4610 | # side effect of compilation, but ICC will put the dependencies in | |
4611 | # the current directory while Tru64 will put them in the object | |
4612 | # directory. | |
4613 | mkdir sub | |
4614 | ||
4615 | am_cv_CC_dependencies_compiler_type=none | |
4616 | if test "$am_compiler_list" = ""; then | |
4617 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4618 | fi | |
5213506e RW |
4619 | am__universal=false |
4620 | case " $depcc " in #( | |
4621 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4622 | esac | |
4623 | ||
679c0f9a TT |
4624 | for depmode in $am_compiler_list; do |
4625 | # Setup a source with many dependencies, because some compilers | |
4626 | # like to wrap large dependency lists on column 80 (with \), and | |
4627 | # we should not choose a depcomp mode which is confused by this. | |
4628 | # | |
4629 | # We need to recreate these files for each test, as the compiler may | |
4630 | # overwrite some of them when testing with obscure command lines. | |
4631 | # This happens at least with the AIX C compiler. | |
4632 | : > sub/conftest.c | |
4633 | for i in 1 2 3 4 5 6; do | |
4634 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4635 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4636 | # Solaris 10 /bin/sh. | |
4637 | echo '/* dummy */' > sub/conftst$i.h | |
679c0f9a TT |
4638 | done |
4639 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4640 | ||
22e05272 | 4641 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4642 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4643 | # handle '-M -o', and we need to detect this. Also, some Intel |
4644 | # versions had trouble with output in subdirs. | |
5213506e RW |
4645 | am__obj=sub/conftest.${OBJEXT-o} |
4646 | am__minus_obj="-o $am__obj" | |
679c0f9a | 4647 | case $depmode in |
5213506e RW |
4648 | gcc) |
4649 | # This depmode causes a compiler race in universal mode. | |
4650 | test "$am__universal" = false || continue | |
4651 | ;; | |
679c0f9a | 4652 | nosideeffect) |
22e05272 JM |
4653 | # After this tag, mechanisms are not by side-effect, so they'll |
4654 | # only be used when explicitly requested. | |
679c0f9a TT |
4655 | if test "x$enable_dependency_tracking" = xyes; then |
4656 | continue | |
4657 | else | |
4658 | break | |
4659 | fi | |
4660 | ;; | |
c20fdb91 | 4661 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4662 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4663 | # not run yet. These depmodes are late enough in the game, and |
4664 | # so weak that their functioning should not be impacted. | |
4665 | am__obj=conftest.${OBJEXT-o} | |
4666 | am__minus_obj= | |
4667 | ;; | |
679c0f9a TT |
4668 | none) break ;; |
4669 | esac | |
679c0f9a | 4670 | if depmode=$depmode \ |
5213506e | 4671 | source=sub/conftest.c object=$am__obj \ |
679c0f9a | 4672 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4673 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
679c0f9a | 4674 | >/dev/null 2>conftest.err && |
5213506e | 4675 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a | 4676 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4677 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a TT |
4678 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4679 | # icc doesn't choke on unknown options, it will just issue warnings | |
4680 | # or remarks (even with -Werror). So we grep stderr for any message | |
4681 | # that says an option was ignored or not supported. | |
4682 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4683 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4684 | # The diagnosis changed in icc 8.0: | |
4685 | # icc: Command line remark: option '-MP' not supported | |
4686 | if (grep 'ignoring option' conftest.err || | |
4687 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4688 | am_cv_CC_dependencies_compiler_type=$depmode | |
4689 | break | |
4690 | fi | |
4691 | fi | |
4692 | done | |
4693 | ||
4694 | cd .. | |
4695 | rm -rf conftest.dir | |
4696 | else | |
4697 | am_cv_CC_dependencies_compiler_type=none | |
4698 | fi | |
4699 | ||
4700 | fi | |
5213506e RW |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4702 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
679c0f9a TT |
4703 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4704 | ||
5213506e | 4705 | if |
679c0f9a TT |
4706 | test "x$enable_dependency_tracking" != xno \ |
4707 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4708 | am__fastdepCC_TRUE= | |
4709 | am__fastdepCC_FALSE='#' | |
4710 | else | |
4711 | am__fastdepCC_TRUE='#' | |
4712 | am__fastdepCC_FALSE= | |
4713 | fi | |
4714 | ||
6de9cd9a | 4715 | |
6de9cd9a | 4716 | |
21be0a5a JB |
4717 | ac_ext=c |
4718 | ac_cpp='$CPP $CPPFLAGS' | |
4719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4723 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4724 | # On Suns, sometimes $CPP names a directory. | |
4725 | if test -n "$CPP" && test -d "$CPP"; then | |
4726 | CPP= | |
6de9cd9a | 4727 | fi |
21be0a5a | 4728 | if test -z "$CPP"; then |
22e05272 | 4729 | if ${ac_cv_prog_CPP+:} false; then : |
21be0a5a JB |
4730 | $as_echo_n "(cached) " >&6 |
4731 | else | |
4732 | # Double quotes because CPP needs to be expanded | |
4733 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4734 | do | |
4735 | ac_preproc_ok=false | |
4736 | for ac_c_preproc_warn_flag in '' yes | |
4737 | do | |
4738 | # Use a header file that comes with gcc, so configuring glibc | |
4739 | # with a fresh cross-compiler works. | |
4740 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4741 | # <limits.h> exists even on freestanding compilers. | |
4742 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4743 | # not just through cpp. "Syntax error" is here to catch this case. | |
4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c0e7e2bf | 4745 | /* end confdefs.h. */ |
21be0a5a JB |
4746 | #ifdef __STDC__ |
4747 | # include <limits.h> | |
4748 | #else | |
4749 | # include <assert.h> | |
4750 | #endif | |
4751 | Syntax error | |
c0e7e2bf | 4752 | _ACEOF |
21be0a5a JB |
4753 | if ac_fn_c_try_cpp "$LINENO"; then : |
4754 | ||
49ea7a0e | 4755 | else |
21be0a5a JB |
4756 | # Broken: fails on valid input. |
4757 | continue | |
49ea7a0e | 4758 | fi |
22e05272 | 4759 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4760 | |
21be0a5a JB |
4761 | # OK, works on sane cases. Now check whether nonexistent headers |
4762 | # can be detected and how. | |
4763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4764 | /* end confdefs.h. */ | |
4765 | #include <ac_nonexistent.h> | |
49ea7a0e | 4766 | _ACEOF |
21be0a5a JB |
4767 | if ac_fn_c_try_cpp "$LINENO"; then : |
4768 | # Broken: success on invalid input. | |
4769 | continue | |
c0e7e2bf | 4770 | else |
21be0a5a JB |
4771 | # Passes both tests. |
4772 | ac_preproc_ok=: | |
4773 | break | |
49ea7a0e | 4774 | fi |
22e05272 | 4775 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4776 | |
4777 | done | |
4778 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4779 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4780 | if $ac_preproc_ok; then : |
4781 | break | |
c0e7e2bf JB |
4782 | fi |
4783 | ||
21be0a5a JB |
4784 | done |
4785 | ac_cv_prog_CPP=$CPP | |
4786 | ||
4787 | fi | |
4788 | CPP=$ac_cv_prog_CPP | |
49ea7a0e | 4789 | else |
21be0a5a | 4790 | ac_cv_prog_CPP=$CPP |
49ea7a0e | 4791 | fi |
21be0a5a JB |
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4793 | $as_echo "$CPP" >&6; } | |
4794 | ac_preproc_ok=false | |
4795 | for ac_c_preproc_warn_flag in '' yes | |
4796 | do | |
4797 | # Use a header file that comes with gcc, so configuring glibc | |
4798 | # with a fresh cross-compiler works. | |
4799 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4800 | # <limits.h> exists even on freestanding compilers. | |
4801 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4802 | # not just through cpp. "Syntax error" is here to catch this case. | |
4803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4804 | /* end confdefs.h. */ | |
4805 | #ifdef __STDC__ | |
4806 | # include <limits.h> | |
4807 | #else | |
4808 | # include <assert.h> | |
4809 | #endif | |
4810 | Syntax error | |
4811 | _ACEOF | |
4812 | if ac_fn_c_try_cpp "$LINENO"; then : | |
49ea7a0e | 4813 | |
49ea7a0e | 4814 | else |
21be0a5a JB |
4815 | # Broken: fails on valid input. |
4816 | continue | |
49ea7a0e | 4817 | fi |
22e05272 | 4818 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4819 | |
21be0a5a JB |
4820 | # OK, works on sane cases. Now check whether nonexistent headers |
4821 | # can be detected and how. | |
4822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c049309d | 4823 | /* end confdefs.h. */ |
21be0a5a | 4824 | #include <ac_nonexistent.h> |
c049309d | 4825 | _ACEOF |
21be0a5a JB |
4826 | if ac_fn_c_try_cpp "$LINENO"; then : |
4827 | # Broken: success on invalid input. | |
4828 | continue | |
c049309d | 4829 | else |
21be0a5a JB |
4830 | # Passes both tests. |
4831 | ac_preproc_ok=: | |
4832 | break | |
c049309d | 4833 | fi |
22e05272 | 4834 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4835 | |
4836 | done | |
4837 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4838 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4839 | if $ac_preproc_ok; then : |
4840 | ||
c049309d | 4841 | else |
21be0a5a JB |
4842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4844 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4845 | See \`config.log' for more details" "$LINENO" 5; } | |
c049309d | 4846 | fi |
c049309d | 4847 | |
21be0a5a JB |
4848 | ac_ext=c |
4849 | ac_cpp='$CPP $CPPFLAGS' | |
4850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c049309d | 4853 | |
21be0a5a JB |
4854 | |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4856 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4857 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4858 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4859 | else |
21be0a5a JB |
4860 | if test -z "$GREP"; then |
4861 | ac_path_GREP_found=false | |
4862 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
96b8a615 AJ |
4865 | do |
4866 | IFS=$as_save_IFS | |
4867 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4868 | for ac_prog in grep ggrep; do |
5213506e | 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4870 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4871 | as_fn_executable_p "$ac_path_GREP" || continue |
21be0a5a JB |
4872 | # Check for GNU ac_path_GREP and select it if it is found. |
4873 | # Check for GNU $ac_path_GREP | |
4874 | case `"$ac_path_GREP" --version 2>&1` in | |
4875 | *GNU*) | |
4876 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4877 | *) | |
4878 | ac_count=0 | |
4879 | $as_echo_n 0123456789 >"conftest.in" | |
4880 | while : | |
4881 | do | |
4882 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4883 | mv "conftest.tmp" "conftest.in" | |
4884 | cp "conftest.in" "conftest.nl" | |
4885 | $as_echo 'GREP' >> "conftest.nl" | |
4886 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4888 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4889 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4890 | # Best one so far, save it but keep looking for a better one | |
4891 | ac_cv_path_GREP="$ac_path_GREP" | |
4892 | ac_path_GREP_max=$ac_count | |
4893 | fi | |
4894 | # 10*(2^10) chars as input seems more than enough | |
4895 | test $ac_count -gt 10 && break | |
5213506e | 4896 | done |
21be0a5a JB |
4897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4898 | esac | |
6de9cd9a | 4899 | |
21be0a5a JB |
4900 | $ac_path_GREP_found && break 3 |
4901 | done | |
4902 | done | |
4903 | done | |
4904 | IFS=$as_save_IFS | |
4905 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4906 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4907 | fi |
6de9cd9a | 4908 | else |
21be0a5a | 4909 | ac_cv_path_GREP=$GREP |
6de9cd9a DN |
4910 | fi |
4911 | ||
6de9cd9a | 4912 | fi |
21be0a5a JB |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4914 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4915 | GREP="$ac_cv_path_GREP" | |
6de9cd9a | 4916 | |
21be0a5a JB |
4917 | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4919 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4920 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4921 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4922 | else |
21be0a5a JB |
4923 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4924 | then ac_cv_path_EGREP="$GREP -E" | |
4925 | else | |
4926 | if test -z "$EGREP"; then | |
4927 | ac_path_EGREP_found=false | |
4928 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4930 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6de9cd9a DN |
4931 | do |
4932 | IFS=$as_save_IFS | |
4933 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4934 | for ac_prog in egrep; do |
5213506e | 4935 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4936 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4937 | as_fn_executable_p "$ac_path_EGREP" || continue |
21be0a5a JB |
4938 | # Check for GNU ac_path_EGREP and select it if it is found. |
4939 | # Check for GNU $ac_path_EGREP | |
4940 | case `"$ac_path_EGREP" --version 2>&1` in | |
4941 | *GNU*) | |
4942 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4943 | *) | |
4944 | ac_count=0 | |
4945 | $as_echo_n 0123456789 >"conftest.in" | |
4946 | while : | |
4947 | do | |
4948 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4949 | mv "conftest.tmp" "conftest.in" | |
4950 | cp "conftest.in" "conftest.nl" | |
4951 | $as_echo 'EGREP' >> "conftest.nl" | |
4952 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4953 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4954 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4955 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4956 | # Best one so far, save it but keep looking for a better one | |
4957 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4958 | ac_path_EGREP_max=$ac_count | |
4959 | fi | |
4960 | # 10*(2^10) chars as input seems more than enough | |
4961 | test $ac_count -gt 10 && break | |
5213506e | 4962 | done |
21be0a5a JB |
4963 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4964 | esac | |
6de9cd9a | 4965 | |
21be0a5a JB |
4966 | $ac_path_EGREP_found && break 3 |
4967 | done | |
4968 | done | |
4969 | done | |
4970 | IFS=$as_save_IFS | |
4971 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4972 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4973 | fi |
6de9cd9a | 4974 | else |
21be0a5a | 4975 | ac_cv_path_EGREP=$EGREP |
6de9cd9a DN |
4976 | fi |
4977 | ||
21be0a5a | 4978 | fi |
6de9cd9a | 4979 | fi |
21be0a5a JB |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4981 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4982 | EGREP="$ac_cv_path_EGREP" | |
4983 | ||
4984 | ||
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4986 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4987 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4988 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4989 | else |
21be0a5a JB |
4990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4991 | /* end confdefs.h. */ | |
4992 | #include <stdlib.h> | |
4993 | #include <stdarg.h> | |
4994 | #include <string.h> | |
4995 | #include <float.h> | |
4996 | ||
4997 | int | |
4998 | main () | |
4999 | { | |
5000 | ||
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
5005 | if ac_fn_c_try_compile "$LINENO"; then : | |
5006 | ac_cv_header_stdc=yes | |
6de9cd9a | 5007 | else |
21be0a5a JB |
5008 | ac_cv_header_stdc=no |
5009 | fi | |
5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5011 | |
21be0a5a JB |
5012 | if test $ac_cv_header_stdc = yes; then |
5013 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5015 | /* end confdefs.h. */ | |
5016 | #include <string.h> | |
5017 | ||
5018 | _ACEOF | |
5019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5020 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5021 | ||
5022 | else | |
5023 | ac_cv_header_stdc=no | |
6de9cd9a | 5024 | fi |
21be0a5a JB |
5025 | rm -f conftest* |
5026 | ||
6de9cd9a | 5027 | fi |
21be0a5a JB |
5028 | |
5029 | if test $ac_cv_header_stdc = yes; then | |
5030 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5032 | /* end confdefs.h. */ | |
5033 | #include <stdlib.h> | |
5034 | ||
5035 | _ACEOF | |
5036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5037 | $EGREP "free" >/dev/null 2>&1; then : | |
5038 | ||
6de9cd9a | 5039 | else |
21be0a5a | 5040 | ac_cv_header_stdc=no |
6de9cd9a | 5041 | fi |
21be0a5a | 5042 | rm -f conftest* |
6de9cd9a | 5043 | |
6de9cd9a DN |
5044 | fi |
5045 | ||
21be0a5a JB |
5046 | if test $ac_cv_header_stdc = yes; then |
5047 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5048 | if test "$cross_compiling" = yes; then : | |
5049 | : | |
5050 | else | |
5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5052 | /* end confdefs.h. */ | |
5053 | #include <ctype.h> | |
5054 | #include <stdlib.h> | |
5055 | #if ((' ' & 0x0FF) == 0x020) | |
5056 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5057 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5058 | #else | |
5059 | # define ISLOWER(c) \ | |
5060 | (('a' <= (c) && (c) <= 'i') \ | |
5061 | || ('j' <= (c) && (c) <= 'r') \ | |
5062 | || ('s' <= (c) && (c) <= 'z')) | |
5063 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5064 | #endif | |
5065 | ||
5066 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5067 | int | |
5068 | main () | |
5069 | { | |
5070 | int i; | |
5071 | for (i = 0; i < 256; i++) | |
5072 | if (XOR (islower (i), ISLOWER (i)) | |
5073 | || toupper (i) != TOUPPER (i)) | |
5074 | return 2; | |
5075 | return 0; | |
5076 | } | |
5077 | _ACEOF | |
5078 | if ac_fn_c_try_run "$LINENO"; then : | |
5079 | ||
5080 | else | |
5081 | ac_cv_header_stdc=no | |
5082 | fi | |
5083 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5084 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5085 | fi | |
5086 | ||
5087 | fi | |
5088 | fi | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5090 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5091 | if test $ac_cv_header_stdc = yes; then | |
5092 | ||
5093 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5094 | ||
5095 | fi | |
5096 | ||
5097 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5098 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5099 | inttypes.h stdint.h unistd.h | |
5100 | do : | |
5101 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5102 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5103 | " | |
22e05272 | 5104 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21be0a5a JB |
5105 | cat >>confdefs.h <<_ACEOF |
5106 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5107 | _ACEOF | |
5108 | ||
5109 | fi | |
5110 | ||
5111 | done | |
5112 | ||
5113 | ||
5114 | ||
5115 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 5116 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
21be0a5a JB |
5117 | MINIX=yes |
5118 | else | |
5119 | MINIX= | |
5120 | fi | |
5121 | ||
5122 | ||
5123 | if test "$MINIX" = yes; then | |
5124 | ||
5125 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5126 | ||
5127 | ||
5128 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5129 | ||
5130 | ||
5131 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5132 | ||
5133 | fi | |
5134 | ||
5135 | ||
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5137 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 5138 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
21be0a5a JB |
5139 | $as_echo_n "(cached) " >&6 |
5140 | else | |
5141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5142 | /* end confdefs.h. */ | |
5143 | ||
22e05272 JM |
5144 | # define __EXTENSIONS__ 1 |
5145 | $ac_includes_default | |
21be0a5a JB |
5146 | int |
5147 | main () | |
5148 | { | |
5149 | ||
5150 | ; | |
5151 | return 0; | |
5152 | } | |
5153 | _ACEOF | |
5154 | if ac_fn_c_try_compile "$LINENO"; then : | |
5155 | ac_cv_safe_to_define___extensions__=yes | |
5156 | else | |
5157 | ac_cv_safe_to_define___extensions__=no | |
5158 | fi | |
5159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5160 | fi | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5162 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5163 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5164 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5165 | ||
5166 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5167 | ||
5168 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5169 | ||
5170 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5171 | ||
5172 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5173 | ||
5174 | ||
5175 | ||
5176 | # Calculate toolexeclibdir | |
5177 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5178 | case ${version_specific_libs} in | |
5179 | yes) | |
5180 | # Need the gcc compiler version to know where to install libraries | |
5181 | # and header files if --enable-version-specific-runtime-libs option | |
5182 | # is selected. | |
5183 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5184 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5185 | ;; | |
5186 | no) | |
5187 | if test -n "$with_cross_host" && | |
5188 | test x"$with_cross_host" != x"no"; then | |
5189 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5190 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
5191 | toolexeclibdir='$(toolexecdir)/lib' | |
5192 | else | |
5193 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5194 | toolexeclibdir='$(libdir)' | |
5195 | fi | |
5196 | multi_os_directory=`$CC -print-multi-os-directory` | |
5197 | case $multi_os_directory in | |
5198 | .) ;; # Avoid trailing /. | |
5199 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5200 | esac | |
5201 | ;; | |
5202 | esac | |
5203 | ||
5204 | ||
5205 | ||
5206 | # Create a spec file, so that compile/link tests don't fail | |
5207 | test -f libgfortran.spec || touch libgfortran.spec | |
5208 | ||
60858d8a TB |
5209 | ac_ext=c |
5210 | ac_cpp='$CPP $CPPFLAGS' | |
5211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5214 | ||
21be0a5a JB |
5215 | # Check the compiler. |
5216 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5217 | # We must force CC to /not/ be precious variables; otherwise | |
5218 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5219 | # As a side effect, we have to subst CFLAGS ourselves. | |
5220 | ||
5221 | ||
5222 | ||
5223 | ac_ext=c | |
5224 | ac_cpp='$CPP $CPPFLAGS' | |
5225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5228 | if test -n "$ac_tool_prefix"; then | |
5229 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5230 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5232 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5233 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5234 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5235 | else |
21be0a5a JB |
5236 | if test -n "$CC"; then |
5237 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5238 | else |
96b8a615 AJ |
5239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5240 | for as_dir in $PATH | |
5241 | do | |
5242 | IFS=$as_save_IFS | |
5243 | test -z "$as_dir" && as_dir=. | |
5213506e | 5244 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5246 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 5247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5248 | break 2 |
5249 | fi | |
5250 | done | |
5213506e RW |
5251 | done |
5252 | IFS=$as_save_IFS | |
6de9cd9a | 5253 | |
6de9cd9a | 5254 | fi |
96b8a615 | 5255 | fi |
21be0a5a JB |
5256 | CC=$ac_cv_prog_CC |
5257 | if test -n "$CC"; then | |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5259 | $as_echo "$CC" >&6; } | |
96b8a615 | 5260 | else |
5213506e RW |
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5262 | $as_echo "no" >&6; } | |
96b8a615 | 5263 | fi |
6de9cd9a | 5264 | |
5213506e | 5265 | |
6de9cd9a | 5266 | fi |
21be0a5a JB |
5267 | if test -z "$ac_cv_prog_CC"; then |
5268 | ac_ct_CC=$CC | |
5269 | # Extract the first word of "gcc", so it can be a program name with args. | |
5270 | set dummy gcc; ac_word=$2 | |
5213506e RW |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5272 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5273 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 5274 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5275 | else |
21be0a5a JB |
5276 | if test -n "$ac_ct_CC"; then |
5277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6de9cd9a | 5278 | else |
96b8a615 AJ |
5279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5280 | for as_dir in $PATH | |
5281 | do | |
5282 | IFS=$as_save_IFS | |
5283 | test -z "$as_dir" && as_dir=. | |
5213506e | 5284 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5286 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 5287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5288 | break 2 |
5289 | fi | |
5290 | done | |
5213506e RW |
5291 | done |
5292 | IFS=$as_save_IFS | |
6de9cd9a | 5293 | |
6de9cd9a | 5294 | fi |
6de9cd9a | 5295 | fi |
21be0a5a JB |
5296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5297 | if test -n "$ac_ct_CC"; then | |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5299 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 5300 | else |
5213506e RW |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5302 | $as_echo "no" >&6; } | |
6de9cd9a DN |
5303 | fi |
5304 | ||
21be0a5a JB |
5305 | if test "x$ac_ct_CC" = x; then |
5306 | CC="" | |
5213506e RW |
5307 | else |
5308 | case $cross_compiling:$ac_tool_warned in | |
5309 | yes:) | |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5311 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5312 | ac_tool_warned=yes ;; | |
5313 | esac | |
21be0a5a | 5314 | CC=$ac_ct_CC |
5213506e | 5315 | fi |
96b8a615 | 5316 | else |
21be0a5a | 5317 | CC="$ac_cv_prog_CC" |
6de9cd9a | 5318 | fi |
96b8a615 | 5319 | |
21be0a5a JB |
5320 | if test -z "$CC"; then |
5321 | if test -n "$ac_tool_prefix"; then | |
5322 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5323 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5325 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5326 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5327 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5328 | else |
21be0a5a JB |
5329 | if test -n "$CC"; then |
5330 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5331 | else |
21be0a5a JB |
5332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5333 | for as_dir in $PATH | |
5334 | do | |
5335 | IFS=$as_save_IFS | |
5336 | test -z "$as_dir" && as_dir=. | |
5337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5339 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5341 | break 2 | |
5342 | fi | |
5343 | done | |
5344 | done | |
5345 | IFS=$as_save_IFS | |
5346 | ||
5347 | fi | |
5348 | fi | |
5349 | CC=$ac_cv_prog_CC | |
5350 | if test -n "$CC"; then | |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5352 | $as_echo "$CC" >&6; } | |
5353 | else | |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5355 | $as_echo "no" >&6; } | |
5356 | fi | |
5357 | ||
5358 | ||
5359 | fi | |
5360 | fi | |
5361 | if test -z "$CC"; then | |
5362 | # Extract the first word of "cc", so it can be a program name with args. | |
5363 | set dummy cc; ac_word=$2 | |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5365 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5366 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5367 | $as_echo_n "(cached) " >&6 |
5368 | else | |
5369 | if test -n "$CC"; then | |
5370 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5371 | else | |
5372 | ac_prog_rejected=no | |
5373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5374 | for as_dir in $PATH | |
5375 | do | |
5376 | IFS=$as_save_IFS | |
5377 | test -z "$as_dir" && as_dir=. | |
5378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5380 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5381 | ac_prog_rejected=yes | |
5382 | continue | |
5383 | fi | |
5384 | ac_cv_prog_CC="cc" | |
5385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5386 | break 2 | |
5387 | fi | |
5388 | done | |
5389 | done | |
5390 | IFS=$as_save_IFS | |
5391 | ||
5392 | if test $ac_prog_rejected = yes; then | |
5393 | # We found a bogon in the path, so make sure we never use it. | |
5394 | set dummy $ac_cv_prog_CC | |
5395 | shift | |
5396 | if test $# != 0; then | |
5397 | # We chose a different compiler from the bogus one. | |
5398 | # However, it has the same basename, so the bogon will be chosen | |
5399 | # first if we set CC to just the basename; use the full file name. | |
5400 | shift | |
5401 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5402 | fi | |
5403 | fi | |
5404 | fi | |
5405 | fi | |
5406 | CC=$ac_cv_prog_CC | |
5407 | if test -n "$CC"; then | |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5409 | $as_echo "$CC" >&6; } | |
5410 | else | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5412 | $as_echo "no" >&6; } | |
5413 | fi | |
5414 | ||
5415 | ||
5416 | fi | |
5417 | if test -z "$CC"; then | |
5418 | if test -n "$ac_tool_prefix"; then | |
5419 | for ac_prog in cl.exe | |
5420 | do | |
5421 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5422 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5424 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5425 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5426 | $as_echo_n "(cached) " >&6 |
5427 | else | |
5428 | if test -n "$CC"; then | |
5429 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5430 | else | |
5431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5432 | for as_dir in $PATH | |
5433 | do | |
5434 | IFS=$as_save_IFS | |
5435 | test -z "$as_dir" && as_dir=. | |
5436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5438 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5440 | break 2 | |
5441 | fi | |
5442 | done | |
5443 | done | |
5444 | IFS=$as_save_IFS | |
5445 | ||
5446 | fi | |
5447 | fi | |
5448 | CC=$ac_cv_prog_CC | |
5449 | if test -n "$CC"; then | |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5451 | $as_echo "$CC" >&6; } | |
5452 | else | |
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5454 | $as_echo "no" >&6; } | |
5455 | fi | |
5456 | ||
5457 | ||
5458 | test -n "$CC" && break | |
5459 | done | |
5460 | fi | |
5461 | if test -z "$CC"; then | |
5462 | ac_ct_CC=$CC | |
5463 | for ac_prog in cl.exe | |
5464 | do | |
5465 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5466 | set dummy $ac_prog; ac_word=$2 | |
5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5469 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
21be0a5a JB |
5470 | $as_echo_n "(cached) " >&6 |
5471 | else | |
5472 | if test -n "$ac_ct_CC"; then | |
5473 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5474 | else | |
5475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5476 | for as_dir in $PATH | |
5477 | do | |
5478 | IFS=$as_save_IFS | |
5479 | test -z "$as_dir" && as_dir=. | |
5480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5482 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5484 | break 2 | |
5485 | fi | |
5486 | done | |
5487 | done | |
5488 | IFS=$as_save_IFS | |
5489 | ||
5490 | fi | |
5491 | fi | |
5492 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5493 | if test -n "$ac_ct_CC"; then | |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5495 | $as_echo "$ac_ct_CC" >&6; } | |
5496 | else | |
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5498 | $as_echo "no" >&6; } | |
5499 | fi | |
5500 | ||
5501 | ||
5502 | test -n "$ac_ct_CC" && break | |
5503 | done | |
5504 | ||
5505 | if test "x$ac_ct_CC" = x; then | |
5506 | CC="" | |
5507 | else | |
5508 | case $cross_compiling:$ac_tool_warned in | |
5509 | yes:) | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5512 | ac_tool_warned=yes ;; | |
5513 | esac | |
5514 | CC=$ac_ct_CC | |
5515 | fi | |
5516 | fi | |
5517 | ||
5518 | fi | |
5519 | ||
5520 | ||
5521 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5523 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5524 | See \`config.log' for more details" "$LINENO" 5; } | |
21be0a5a JB |
5525 | |
5526 | # Provide some information about the compiler. | |
5527 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5528 | set X $ac_compile | |
5529 | ac_compiler=$2 | |
5530 | for ac_option in --version -v -V -qversion; do | |
5531 | { { ac_try="$ac_compiler $ac_option >&5" | |
5532 | case "(($ac_try" in | |
5533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5534 | *) ac_try_echo=$ac_try;; | |
5535 | esac | |
5536 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5537 | $as_echo "$ac_try_echo"; } >&5 | |
5538 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5539 | ac_status=$? | |
5540 | if test -s conftest.err; then | |
5541 | sed '10a\ | |
5542 | ... rest of stderr output deleted ... | |
5543 | 10q' conftest.err >conftest.er1 | |
5544 | cat conftest.er1 >&5 | |
21be0a5a | 5545 | fi |
22e05272 | 5546 | rm -f conftest.er1 conftest.err |
21be0a5a JB |
5547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5548 | test $ac_status = 0; } | |
5549 | done | |
5550 | ||
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5552 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5553 | if ${ac_cv_c_compiler_gnu+:} false; then : |
21be0a5a JB |
5554 | $as_echo_n "(cached) " >&6 |
5555 | else | |
5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5557 | /* end confdefs.h. */ | |
5558 | ||
5559 | int | |
5560 | main () | |
5561 | { | |
5562 | #ifndef __GNUC__ | |
5563 | choke me | |
5564 | #endif | |
5565 | ||
5566 | ; | |
5567 | return 0; | |
5568 | } | |
5569 | _ACEOF | |
5570 | if ac_fn_c_try_compile "$LINENO"; then : | |
5571 | ac_compiler_gnu=yes | |
5572 | else | |
5573 | ac_compiler_gnu=no | |
5574 | fi | |
5575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5576 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5577 | ||
5578 | fi | |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5580 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5581 | if test $ac_compiler_gnu = yes; then | |
5582 | GCC=yes | |
5583 | else | |
5584 | GCC= | |
5585 | fi | |
5586 | ac_test_CFLAGS=${CFLAGS+set} | |
5587 | ac_save_CFLAGS=$CFLAGS | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5589 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5590 | if ${ac_cv_prog_cc_g+:} false; then : |
21be0a5a JB |
5591 | $as_echo_n "(cached) " >&6 |
5592 | else | |
5593 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5594 | ac_c_werror_flag=yes | |
5595 | ac_cv_prog_cc_g=no | |
5596 | CFLAGS="-g" | |
5597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5598 | /* end confdefs.h. */ | |
5599 | ||
5600 | int | |
5601 | main () | |
5602 | { | |
5603 | ||
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | if ac_fn_c_try_compile "$LINENO"; then : | |
5609 | ac_cv_prog_cc_g=yes | |
5610 | else | |
5611 | CFLAGS="" | |
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5613 | /* end confdefs.h. */ | |
5614 | ||
5615 | int | |
5616 | main () | |
5617 | { | |
5618 | ||
5619 | ; | |
5620 | return 0; | |
5621 | } | |
5622 | _ACEOF | |
5623 | if ac_fn_c_try_compile "$LINENO"; then : | |
5624 | ||
5625 | else | |
5626 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5627 | CFLAGS="-g" | |
5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5629 | /* end confdefs.h. */ | |
5630 | ||
5631 | int | |
5632 | main () | |
5633 | { | |
5634 | ||
5635 | ; | |
5636 | return 0; | |
5637 | } | |
5638 | _ACEOF | |
5639 | if ac_fn_c_try_compile "$LINENO"; then : | |
5640 | ac_cv_prog_cc_g=yes | |
5641 | fi | |
5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5643 | fi | |
5644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5645 | fi | |
5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5647 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5648 | fi | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5650 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5651 | if test "$ac_test_CFLAGS" = set; then | |
5652 | CFLAGS=$ac_save_CFLAGS | |
5653 | elif test $ac_cv_prog_cc_g = yes; then | |
5654 | if test "$GCC" = yes; then | |
5655 | CFLAGS="-g -O2" | |
5656 | else | |
5657 | CFLAGS="-g" | |
5658 | fi | |
5659 | else | |
5660 | if test "$GCC" = yes; then | |
5661 | CFLAGS="-O2" | |
5662 | else | |
5663 | CFLAGS= | |
5664 | fi | |
5665 | fi | |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5667 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5668 | if ${ac_cv_prog_cc_c89+:} false; then : |
21be0a5a JB |
5669 | $as_echo_n "(cached) " >&6 |
5670 | else | |
5671 | ac_cv_prog_cc_c89=no | |
5672 | ac_save_CC=$CC | |
5673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5674 | /* end confdefs.h. */ | |
5675 | #include <stdarg.h> | |
5676 | #include <stdio.h> | |
22e05272 | 5677 | struct stat; |
21be0a5a JB |
5678 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5679 | struct buf { int x; }; | |
5680 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5681 | static char *e (p, i) | |
5682 | char **p; | |
5683 | int i; | |
5684 | { | |
5685 | return p[i]; | |
5686 | } | |
5687 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5688 | { | |
5689 | char *s; | |
5690 | va_list v; | |
5691 | va_start (v,p); | |
5692 | s = g (p, va_arg (v,int)); | |
5693 | va_end (v); | |
5694 | return s; | |
5695 | } | |
5696 | ||
5697 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5698 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5699 | These don't provoke an error unfortunately, instead are silently treated | |
5700 | as 'x'. The following induces an error, until -std is added to get | |
5701 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5702 | array size at least. It's necessary to write '\x00'==0 to get something | |
5703 | that's true only with -std. */ | |
5704 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5705 | ||
5706 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5707 | inside strings and character constants. */ | |
5708 | #define FOO(x) 'x' | |
5709 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5710 | ||
5711 | int test (int i, double x); | |
5712 | struct s1 {int (*f) (int a);}; | |
5713 | struct s2 {int (*f) (double a);}; | |
5714 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5715 | int argc; | |
5716 | char **argv; | |
5717 | int | |
5718 | main () | |
5719 | { | |
5720 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5721 | ; | |
5722 | return 0; | |
5723 | } | |
5724 | _ACEOF | |
5725 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5726 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5727 | do | |
5728 | CC="$ac_save_CC $ac_arg" | |
5729 | if ac_fn_c_try_compile "$LINENO"; then : | |
5730 | ac_cv_prog_cc_c89=$ac_arg | |
5731 | fi | |
5732 | rm -f core conftest.err conftest.$ac_objext | |
5733 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5734 | done | |
5735 | rm -f conftest.$ac_ext | |
5736 | CC=$ac_save_CC | |
5737 | ||
5738 | fi | |
5739 | # AC_CACHE_VAL | |
5740 | case "x$ac_cv_prog_cc_c89" in | |
5741 | x) | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5743 | $as_echo "none needed" >&6; } ;; | |
5744 | xno) | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5746 | $as_echo "unsupported" >&6; } ;; | |
5747 | *) | |
5748 | CC="$CC $ac_cv_prog_cc_c89" | |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5750 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5751 | esac | |
5752 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5753 | ||
5754 | fi | |
5755 | ||
5756 | ac_ext=c | |
5757 | ac_cpp='$CPP $CPPFLAGS' | |
5758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5761 | ||
22e05272 JM |
5762 | ac_ext=c |
5763 | ac_cpp='$CPP $CPPFLAGS' | |
5764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5768 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5769 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5770 | $as_echo_n "(cached) " >&6 | |
5771 | else | |
5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5773 | /* end confdefs.h. */ | |
5774 | ||
5775 | int | |
5776 | main () | |
5777 | { | |
5778 | ||
5779 | ; | |
5780 | return 0; | |
5781 | } | |
5782 | _ACEOF | |
5783 | # Make sure it works both with $CC and with simple cc. | |
5784 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5785 | # compilers refuse to overwrite an existing .o file with -o, | |
5786 | # though they will create one. | |
5787 | am_cv_prog_cc_c_o=yes | |
5788 | for am_i in 1 2; do | |
5789 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5790 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5791 | ac_status=$? | |
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 | (exit $ac_status); } \ | |
5794 | && test -f conftest2.$ac_objext; then | |
5795 | : OK | |
5796 | else | |
5797 | am_cv_prog_cc_c_o=no | |
5798 | break | |
5799 | fi | |
5800 | done | |
5801 | rm -f core conftest* | |
5802 | unset am_i | |
5803 | fi | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5805 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5806 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5807 | # Losing compiler, so override with the script. | |
5808 | # FIXME: It is wrong to rewrite CC. | |
5809 | # But if we don't then we get into trouble of one sort or another. | |
5810 | # A longer-term fix would be to have automake use am__CC in this case, | |
5811 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5812 | CC="$am_aux_dir/compile $CC" | |
5813 | fi | |
5814 | ac_ext=c | |
5815 | ac_cpp='$CPP $CPPFLAGS' | |
5816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5819 | ||
5820 | ||
21be0a5a JB |
5821 | depcc="$CC" am_compiler_list= |
5822 | ||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5824 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5825 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
21be0a5a JB |
5826 | $as_echo_n "(cached) " >&6 |
5827 | else | |
5828 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5829 | # We make a subdir and do the tests there. Otherwise we can end up | |
5830 | # making bogus files that we don't know about and never remove. For | |
5831 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5832 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5833 | # in D". | |
c20fdb91 | 5834 | rm -rf conftest.dir |
21be0a5a JB |
5835 | mkdir conftest.dir |
5836 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5837 | # using a relative directory. | |
5838 | cp "$am_depcomp" conftest.dir | |
5839 | cd conftest.dir | |
5840 | # We will build objects and dependencies in a subdirectory because | |
5841 | # it helps to detect inapplicable dependency modes. For instance | |
5842 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5843 | # side effect of compilation, but ICC will put the dependencies in | |
5844 | # the current directory while Tru64 will put them in the object | |
5845 | # directory. | |
5846 | mkdir sub | |
5847 | ||
5848 | am_cv_CC_dependencies_compiler_type=none | |
5849 | if test "$am_compiler_list" = ""; then | |
5850 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5851 | fi | |
5852 | am__universal=false | |
5853 | case " $depcc " in #( | |
5854 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5855 | esac | |
5856 | ||
5857 | for depmode in $am_compiler_list; do | |
5858 | # Setup a source with many dependencies, because some compilers | |
5859 | # like to wrap large dependency lists on column 80 (with \), and | |
5860 | # we should not choose a depcomp mode which is confused by this. | |
5861 | # | |
5862 | # We need to recreate these files for each test, as the compiler may | |
5863 | # overwrite some of them when testing with obscure command lines. | |
5864 | # This happens at least with the AIX C compiler. | |
5865 | : > sub/conftest.c | |
5866 | for i in 1 2 3 4 5 6; do | |
5867 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5868 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5869 | # Solaris 10 /bin/sh. | |
5870 | echo '/* dummy */' > sub/conftst$i.h | |
21be0a5a JB |
5871 | done |
5872 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5873 | ||
22e05272 | 5874 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
21be0a5a | 5875 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5876 | # handle '-M -o', and we need to detect this. Also, some Intel |
5877 | # versions had trouble with output in subdirs. | |
21be0a5a JB |
5878 | am__obj=sub/conftest.${OBJEXT-o} |
5879 | am__minus_obj="-o $am__obj" | |
5880 | case $depmode in | |
5881 | gcc) | |
5882 | # This depmode causes a compiler race in universal mode. | |
5883 | test "$am__universal" = false || continue | |
5884 | ;; | |
5885 | nosideeffect) | |
22e05272 JM |
5886 | # After this tag, mechanisms are not by side-effect, so they'll |
5887 | # only be used when explicitly requested. | |
21be0a5a JB |
5888 | if test "x$enable_dependency_tracking" = xyes; then |
5889 | continue | |
5890 | else | |
5891 | break | |
5892 | fi | |
5893 | ;; | |
c20fdb91 | 5894 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5895 | # This compiler won't grok '-c -o', but also, the minuso test has |
21be0a5a JB |
5896 | # not run yet. These depmodes are late enough in the game, and |
5897 | # so weak that their functioning should not be impacted. | |
5898 | am__obj=conftest.${OBJEXT-o} | |
5899 | am__minus_obj= | |
5900 | ;; | |
5901 | none) break ;; | |
5902 | esac | |
5903 | if depmode=$depmode \ | |
5904 | source=sub/conftest.c object=$am__obj \ | |
5905 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5906 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5907 | >/dev/null 2>conftest.err && | |
5908 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5909 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5910 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5911 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5912 | # icc doesn't choke on unknown options, it will just issue warnings | |
5913 | # or remarks (even with -Werror). So we grep stderr for any message | |
5914 | # that says an option was ignored or not supported. | |
5915 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5916 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5917 | # The diagnosis changed in icc 8.0: | |
5918 | # icc: Command line remark: option '-MP' not supported | |
5919 | if (grep 'ignoring option' conftest.err || | |
5920 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5921 | am_cv_CC_dependencies_compiler_type=$depmode | |
5922 | break | |
5923 | fi | |
5924 | fi | |
5925 | done | |
5926 | ||
5927 | cd .. | |
5928 | rm -rf conftest.dir | |
5929 | else | |
5930 | am_cv_CC_dependencies_compiler_type=none | |
5931 | fi | |
5932 | ||
5933 | fi | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5935 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5936 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5937 | ||
5938 | if | |
5939 | test "x$enable_dependency_tracking" != xno \ | |
5940 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5941 | am__fastdepCC_TRUE= | |
5942 | am__fastdepCC_FALSE='#' | |
5943 | else | |
5944 | am__fastdepCC_TRUE='#' | |
5945 | am__fastdepCC_FALSE= | |
5946 | fi | |
5947 | ||
5948 | ||
5949 | ||
5950 | ||
60858d8a TB |
5951 | |
5952 | ||
60858d8a TB |
5953 | |
5954 | ||
21be0a5a JB |
5955 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5956 | if test "x$GCC" = "xyes"; then | |
5957 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
f7b6856f JB |
5958 | ## We like to use C11 and C99 routines when available. This makes |
5959 | ## sure that | |
21be0a5a | 5960 | ## __STDC_VERSION__ is set such that libc includes make them available. |
581d2326 | 5961 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
21be0a5a JB |
5962 | ## Compile the following tests with the same system header contents |
5963 | ## that we'll encounter when compiling our own source files. | |
f7b6856f | 5964 | CFLAGS="-std=gnu11 $CFLAGS" |
21be0a5a JB |
5965 | fi |
5966 | ||
26724ef9 IT |
5967 | # Add CET specific flags if CET is enabled |
5968 | # Check whether --enable-cet was given. | |
5969 | if test "${enable_cet+set}" = set; then : | |
5970 | enableval=$enable_cet; | |
5971 | case "$enableval" in | |
a0e1df88 | 5972 | yes|no|auto) ;; |
22e05272 | 5973 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
26724ef9 IT |
5974 | esac |
5975 | ||
5976 | else | |
a0e1df88 | 5977 | enable_cet=no |
26724ef9 IT |
5978 | fi |
5979 | ||
5980 | ||
14e335ed IT |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
5982 | $as_echo_n "checking for CET support... " >&6; } | |
5983 | ||
26724ef9 IT |
5984 | case "$host" in |
5985 | i[34567]86-*-linux* | x86_64-*-linux*) | |
5986 | case "$enable_cet" in | |
a0e1df88 | 5987 | auto) |
14e335ed IT |
5988 | # Check if target supports multi-byte NOPs |
5989 | # and if assembler supports CET insn. | |
26724ef9 IT |
5990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5991 | /* end confdefs.h. */ | |
5992 | ||
5993 | int | |
5994 | main () | |
5995 | { | |
14e335ed IT |
5996 | |
5997 | #if !defined(__SSE2__) | |
5998 | #error target does not support multi-byte NOPs | |
5999 | #else | |
26724ef9 | 6000 | asm ("setssbsy"); |
14e335ed IT |
6001 | #endif |
6002 | ||
26724ef9 IT |
6003 | ; |
6004 | return 0; | |
6005 | } | |
6006 | _ACEOF | |
6007 | if ac_fn_c_try_compile "$LINENO"; then : | |
6008 | enable_cet=yes | |
6009 | else | |
6010 | enable_cet=no | |
6011 | fi | |
6012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6013 | ;; | |
6014 | yes) | |
6015 | # Check if assembler supports CET. | |
6016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6017 | /* end confdefs.h. */ | |
6018 | ||
6019 | int | |
6020 | main () | |
6021 | { | |
6022 | asm ("setssbsy"); | |
6023 | ; | |
6024 | return 0; | |
6025 | } | |
6026 | _ACEOF | |
6027 | if ac_fn_c_try_compile "$LINENO"; then : | |
6028 | ||
6029 | else | |
22e05272 | 6030 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
26724ef9 IT |
6031 | fi |
6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6033 | ;; | |
6034 | esac | |
6035 | ;; | |
6036 | *) | |
6037 | enable_cet=no | |
6038 | ;; | |
6039 | esac | |
6040 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 6041 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6043 | $as_echo "yes" >&6; } | |
6044 | else | |
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6046 | $as_echo "no" >&6; } | |
26724ef9 IT |
6047 | fi |
6048 | ||
6049 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6050 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6051 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6052 | ||
6053 | ||
21be0a5a JB |
6054 | |
6055 | ||
6056 | ||
6057 | # Check for symbol versioning (copied from libssp). | |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6059 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bf382f5f RO |
6060 | # Check whether --enable-symvers was given. |
6061 | if test "${enable_symvers+set}" = set; then : | |
6062 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6063 | else | |
6064 | gfortran_use_symver=yes | |
6065 | fi | |
6066 | ||
19af62db | 6067 | if test "x$gfortran_use_symver" != xno; then |
bf382f5f RO |
6068 | save_LDFLAGS="$LDFLAGS" |
6069 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6070 | cat > conftest.map <<EOF | |
21be0a5a JB |
6071 | FOO_1.0 { |
6072 | global: *foo*; bar; local: *; | |
6073 | }; | |
6074 | EOF | |
bf382f5f | 6075 | if test x$gcc_no_link = xyes; then |
22e05272 | 6076 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6077 | fi |
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6079 | /* end confdefs.h. */ | |
6080 | int foo; | |
6081 | int | |
6082 | main () | |
6083 | { | |
6084 | ||
6085 | ; | |
6086 | return 0; | |
6087 | } | |
6088 | _ACEOF | |
6089 | if ac_fn_c_try_link "$LINENO"; then : | |
6090 | gfortran_use_symver=gnu | |
6091 | else | |
6092 | gfortran_use_symver=no | |
6093 | fi | |
6094 | rm -f core conftest.err conftest.$ac_objext \ | |
6095 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6096 | if test x$gfortran_use_symver = xno; then |
6097 | case "$target_os" in | |
6098 | solaris2*) | |
6099 | LDFLAGS="$save_LDFLAGS" | |
6100 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6101 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6102 | cat > conftest.map <<EOF | |
21be0a5a JB |
6103 | FOO_1.0 { |
6104 | global: foo; local: *; | |
6105 | }; | |
6106 | EOF | |
bf382f5f | 6107 | if test x$gcc_no_link = xyes; then |
22e05272 | 6108 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6109 | fi |
6110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6111 | /* end confdefs.h. */ | |
6112 | int foo; | |
6113 | int | |
6114 | main () | |
6115 | { | |
6116 | ||
6117 | ; | |
6118 | return 0; | |
6119 | } | |
6120 | _ACEOF | |
6121 | if ac_fn_c_try_link "$LINENO"; then : | |
6122 | gfortran_use_symver=sun | |
6123 | else | |
6124 | gfortran_use_symver=no | |
6125 | fi | |
6126 | rm -f core conftest.err conftest.$ac_objext \ | |
6127 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6128 | ;; |
6129 | esac | |
6130 | fi | |
6131 | LDFLAGS="$save_LDFLAGS" | |
21be0a5a | 6132 | fi |
21be0a5a JB |
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6134 | $as_echo "$gfortran_use_symver" >&6; } | |
6135 | if test "x$gfortran_use_symver" != xno; then | |
6136 | LIBGFOR_USE_SYMVER_TRUE= | |
6137 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6138 | else | |
6139 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6140 | LIBGFOR_USE_SYMVER_FALSE= | |
6141 | fi | |
6142 | ||
6143 | if test "x$gfortran_use_symver" = xgnu; then | |
6144 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6145 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6146 | else | |
6147 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6148 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6149 | fi | |
6150 | ||
6151 | if test "x$gfortran_use_symver" = xsun; then | |
6152 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6153 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6154 | else | |
6155 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6156 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6157 | fi | |
6158 | ||
6159 | ||
ee95f928 BS |
6160 | # For GPU offloading, not everything in libfortran can be supported. |
6161 | # Currently, the only target that has this problem is nvptx. The | |
6162 | # following is a (partial) list of features that are unsupportable on | |
6163 | # this particular target: | |
6164 | # * Constructors | |
6165 | # * alloca | |
6166 | # * C library support for I/O, with printf as the one notable exception | |
6167 | # * C library support for other features such as signal, environment | |
6168 | # variables, time functions | |
6169 | ||
b1e86e33 | 6170 | if test "x${target_cpu}" = xnvptx; then |
ee95f928 BS |
6171 | LIBGFOR_MINIMAL_TRUE= |
6172 | LIBGFOR_MINIMAL_FALSE='#' | |
6173 | else | |
6174 | LIBGFOR_MINIMAL_TRUE='#' | |
6175 | LIBGFOR_MINIMAL_FALSE= | |
6176 | fi | |
6177 | ||
6178 | ||
21be0a5a JB |
6179 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6180 | # similarly to how libstdc++ does it | |
6181 | ac_test_CFLAGS="${CFLAGS+set}" | |
6182 | ac_save_CFLAGS="$CFLAGS" | |
6183 | ||
6184 | # Check for -ffunction-sections -fdata-sections | |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6186 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6187 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6189 | /* end confdefs.h. */ | |
6190 | ||
6191 | int | |
6192 | main () | |
6193 | { | |
6194 | int foo; | |
6195 | ; | |
6196 | return 0; | |
6197 | } | |
6198 | _ACEOF | |
6199 | if ac_fn_c_try_compile "$LINENO"; then : | |
6200 | ac_fdsections=yes | |
6201 | else | |
6202 | ac_fdsections=no | |
6203 | fi | |
6204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6205 | if test "$ac_test_CFLAGS" = set; then | |
6206 | CFLAGS="$ac_save_CFLAGS" | |
6207 | else | |
6208 | # this is the suspicious part | |
6209 | CFLAGS="" | |
6210 | fi | |
6211 | if test x"$ac_fdsections" = x"yes"; then | |
6212 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6213 | fi | |
6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6215 | $as_echo "$ac_fdsections" >&6; } | |
6216 | ||
6217 | ||
66dbcf2d RO |
6218 | # Check linker hardware capability support. |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6220 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6221 | if ${ac_cv_path_SED+:} false; then : |
21be0a5a JB |
6222 | $as_echo_n "(cached) " >&6 |
6223 | else | |
66dbcf2d RO |
6224 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6225 | for ac_i in 1 2 3 4 5 6 7; do | |
6226 | ac_script="$ac_script$as_nl$ac_script" | |
6227 | done | |
6228 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6229 | { ac_script=; unset ac_script;} | |
6230 | if test -z "$SED"; then | |
6231 | ac_path_SED_found=false | |
6232 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21be0a5a JB |
6234 | for as_dir in $PATH |
6235 | do | |
6236 | IFS=$as_save_IFS | |
6237 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6238 | for ac_prog in sed gsed; do |
21be0a5a | 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6240 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6241 | as_fn_executable_p "$ac_path_SED" || continue |
66dbcf2d RO |
6242 | # Check for GNU ac_path_SED and select it if it is found. |
6243 | # Check for GNU $ac_path_SED | |
6244 | case `"$ac_path_SED" --version 2>&1` in | |
6245 | *GNU*) | |
6246 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6247 | *) | |
6248 | ac_count=0 | |
6249 | $as_echo_n 0123456789 >"conftest.in" | |
6250 | while : | |
6251 | do | |
6252 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6253 | mv "conftest.tmp" "conftest.in" | |
6254 | cp "conftest.in" "conftest.nl" | |
6255 | $as_echo '' >> "conftest.nl" | |
6256 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6257 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6258 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6259 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6260 | # Best one so far, save it but keep looking for a better one | |
6261 | ac_cv_path_SED="$ac_path_SED" | |
6262 | ac_path_SED_max=$ac_count | |
6263 | fi | |
6264 | # 10*(2^10) chars as input seems more than enough | |
6265 | test $ac_count -gt 10 && break | |
21be0a5a | 6266 | done |
66dbcf2d RO |
6267 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6268 | esac | |
21be0a5a | 6269 | |
66dbcf2d RO |
6270 | $ac_path_SED_found && break 3 |
6271 | done | |
6272 | done | |
21be0a5a JB |
6273 | done |
6274 | IFS=$as_save_IFS | |
66dbcf2d | 6275 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6276 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
66dbcf2d | 6277 | fi |
21be0a5a | 6278 | else |
66dbcf2d | 6279 | ac_cv_path_SED=$SED |
21be0a5a JB |
6280 | fi |
6281 | ||
21be0a5a | 6282 | fi |
66dbcf2d RO |
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6284 | $as_echo "$ac_cv_path_SED" >&6; } | |
6285 | SED="$ac_cv_path_SED" | |
6286 | rm -f conftest.sed | |
21be0a5a | 6287 | |
66dbcf2d RO |
6288 | test -z "$SED" && SED=sed |
6289 | Xsed="$SED -e 1s/^X//" | |
21be0a5a | 6290 | |
21be0a5a JB |
6291 | |
6292 | ||
66dbcf2d RO |
6293 | |
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | ||
6300 | ||
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6302 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6303 | if ${ac_cv_path_FGREP+:} false; then : |
21be0a5a JB |
6304 | $as_echo_n "(cached) " >&6 |
6305 | else | |
66dbcf2d RO |
6306 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6307 | then ac_cv_path_FGREP="$GREP -F" | |
6308 | else | |
6309 | if test -z "$FGREP"; then | |
6310 | ac_path_FGREP_found=false | |
6311 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6313 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
21be0a5a JB |
6314 | do |
6315 | IFS=$as_save_IFS | |
6316 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6317 | for ac_prog in fgrep; do |
21be0a5a | 6318 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6319 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6320 | as_fn_executable_p "$ac_path_FGREP" || continue |
66dbcf2d RO |
6321 | # Check for GNU ac_path_FGREP and select it if it is found. |
6322 | # Check for GNU $ac_path_FGREP | |
6323 | case `"$ac_path_FGREP" --version 2>&1` in | |
6324 | *GNU*) | |
6325 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6326 | *) | |
6327 | ac_count=0 | |
6328 | $as_echo_n 0123456789 >"conftest.in" | |
6329 | while : | |
6330 | do | |
6331 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6332 | mv "conftest.tmp" "conftest.in" | |
6333 | cp "conftest.in" "conftest.nl" | |
6334 | $as_echo 'FGREP' >> "conftest.nl" | |
6335 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6336 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6337 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6338 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6339 | # Best one so far, save it but keep looking for a better one | |
6340 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6341 | ac_path_FGREP_max=$ac_count | |
6342 | fi | |
6343 | # 10*(2^10) chars as input seems more than enough | |
6344 | test $ac_count -gt 10 && break | |
6345 | done | |
6346 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6347 | esac | |
6348 | ||
6349 | $ac_path_FGREP_found && break 3 | |
6350 | done | |
6351 | done | |
21be0a5a JB |
6352 | done |
6353 | IFS=$as_save_IFS | |
66dbcf2d | 6354 | if test -z "$ac_cv_path_FGREP"; then |
22e05272 | 6355 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
66dbcf2d RO |
6356 | fi |
6357 | else | |
6358 | ac_cv_path_FGREP=$FGREP | |
6359 | fi | |
21be0a5a | 6360 | |
66dbcf2d | 6361 | fi |
21be0a5a | 6362 | fi |
66dbcf2d RO |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6364 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6365 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
6366 | |
6367 | ||
66dbcf2d | 6368 | test -z "$GREP" && GREP=grep |
1cf3d07d SE |
6369 | |
6370 | ||
6371 | ||
6372 | ||
6de9cd9a | 6373 | |
1cf3d07d SE |
6374 | |
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
43e02a8a | 6381 | |
43e02a8a | 6382 | |
43e02a8a | 6383 | |
43e02a8a | 6384 | |
43e02a8a RW |
6385 | |
6386 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6387 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6388 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6389 | ||
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6391 | $as_echo_n "checking how to print strings... " >&6; } | |
6392 | # Test print first, because it will be a builtin if present. | |
6393 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6394 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6395 | ECHO='print -r --' | |
6396 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6397 | ECHO='printf %s\n' | |
6398 | else | |
6399 | # Use this function as a fallback that always works. | |
6400 | func_fallback_echo () | |
6401 | { | |
6402 | eval 'cat <<_LTECHO_EOF | |
6403 | $1 | |
6404 | _LTECHO_EOF' | |
6405 | } | |
6406 | ECHO='func_fallback_echo' | |
6407 | fi | |
6408 | ||
6409 | # func_echo_all arg... | |
6410 | # Invoke $ECHO with all args, space-separated. | |
6411 | func_echo_all () | |
6412 | { | |
6413 | $ECHO "" | |
6414 | } | |
6415 | ||
6416 | case "$ECHO" in | |
6417 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6418 | $as_echo "printf" >&6; } ;; | |
6419 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6420 | $as_echo "print -r" >&6; } ;; | |
6421 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6422 | $as_echo "cat" >&6; } ;; | |
6423 | esac | |
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
21be0a5a JB |
6436 | |
6437 | ||
5213506e | 6438 | |
5213506e | 6439 | |
66dbcf2d RO |
6440 | # Check whether --with-gnu-ld was given. |
6441 | if test "${with_gnu_ld+set}" = set; then : | |
6442 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6443 | else | |
6444 | with_gnu_ld=no | |
1cf3d07d | 6445 | fi |
21be0a5a | 6446 | |
66dbcf2d RO |
6447 | ac_prog=ld |
6448 | if test "$GCC" = yes; then | |
6449 | # Check if gcc -print-prog-name=ld gives a path. | |
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6451 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6452 | case $host in | |
6453 | *-*-mingw*) | |
6454 | # gcc leaves a trailing carriage return which upsets mingw | |
6455 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6456 | *) | |
6457 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6458 | esac | |
6459 | case $ac_prog in | |
6460 | # Accept absolute paths. | |
6461 | [\\/]* | ?:[\\/]*) | |
6462 | re_direlt='/[^/][^/]*/\.\./' | |
6463 | # Canonicalize the pathname of ld | |
6464 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6465 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6466 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6467 | done | |
6468 | test -z "$LD" && LD="$ac_prog" | |
6469 | ;; | |
6470 | "") | |
6471 | # If it fails, then pretend we aren't using GCC. | |
6472 | ac_prog=ld | |
6473 | ;; | |
6474 | *) | |
6475 | # If it is relative, then search for the first ld in PATH. | |
6476 | with_gnu_ld=unknown | |
6477 | ;; | |
6478 | esac | |
6479 | elif test "$with_gnu_ld" = yes; then | |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6481 | $as_echo_n "checking for GNU ld... " >&6; } | |
6482 | else | |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6484 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6485 | fi | |
22e05272 | 6486 | if ${lt_cv_path_LD+:} false; then : |
66dbcf2d RO |
6487 | $as_echo_n "(cached) " >&6 |
6488 | else | |
6489 | if test -z "$LD"; then | |
6490 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6491 | for ac_dir in $PATH; do | |
6492 | IFS="$lt_save_ifs" | |
6493 | test -z "$ac_dir" && ac_dir=. | |
6494 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6495 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6496 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6497 | # but apparently some variants of GNU ld only accept -v. | |
6498 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6499 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6500 | *GNU* | *'with BFD'*) | |
6501 | test "$with_gnu_ld" != no && break | |
6502 | ;; | |
6503 | *) | |
6504 | test "$with_gnu_ld" != yes && break | |
6505 | ;; | |
6506 | esac | |
6507 | fi | |
6508 | done | |
6509 | IFS="$lt_save_ifs" | |
6510 | else | |
6511 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6512 | fi | |
6513 | fi | |
6514 | ||
6515 | LD="$lt_cv_path_LD" | |
6516 | if test -n "$LD"; then | |
6517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6518 | $as_echo "$LD" >&6; } | |
6519 | else | |
6520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6521 | $as_echo "no" >&6; } | |
6522 | fi | |
22e05272 | 6523 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
66dbcf2d RO |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6525 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6526 | if ${lt_cv_prog_gnu_ld+:} false; then : |
66dbcf2d RO |
6527 | $as_echo_n "(cached) " >&6 |
6528 | else | |
6529 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6530 | case `$LD -v 2>&1 </dev/null` in | |
6531 | *GNU* | *'with BFD'*) | |
6532 | lt_cv_prog_gnu_ld=yes | |
6533 | ;; | |
6534 | *) | |
6535 | lt_cv_prog_gnu_ld=no | |
6536 | ;; | |
6537 | esac | |
6538 | fi | |
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6540 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6541 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
21be0a5a JB |
6542 | |
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
1cf3d07d SE |
6550 | |
6551 | ||
66dbcf2d RO |
6552 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6553 | ||
6554 | ||
6555 | ac_save_LDFLAGS="$LDFLAGS" | |
6556 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6557 | ||
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6559 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6560 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6561 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
66dbcf2d RO |
6562 | fi |
6563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6564 | /* end confdefs.h. */ | |
6565 | ||
6566 | int | |
6567 | main () | |
6568 | { | |
6569 | return 0; | |
6570 | ; | |
6571 | return 0; | |
6572 | } | |
6573 | _ACEOF | |
6574 | if ac_fn_c_try_link "$LINENO"; then : | |
6575 | ac_hwcap_ldflags=yes | |
6576 | else | |
6577 | ac_hwcap_ldflags=no | |
6578 | fi | |
6579 | rm -f core conftest.err conftest.$ac_objext \ | |
6580 | conftest$ac_exeext conftest.$ac_ext | |
6581 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6582 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6583 | fi | |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6585 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6586 | ||
6587 | LDFLAGS="$ac_save_LDFLAGS" | |
6588 | ||
6589 | ||
6590 | ||
6591 | if test $ac_hwcap_ldflags != no; then | |
6592 | HAVE_HWCAP_TRUE= | |
6593 | HAVE_HWCAP_FALSE='#' | |
6594 | else | |
6595 | HAVE_HWCAP_TRUE='#' | |
6596 | HAVE_HWCAP_FALSE= | |
6597 | fi | |
6598 | ||
6599 | ||
6600 | ||
6601 | # Find other programs we need. | |
6602 | if test -n "$ac_tool_prefix"; then | |
6603 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6604 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6607 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 6608 | $as_echo_n "(cached) " >&6 |
38d24731 | 6609 | else |
66dbcf2d RO |
6610 | if test -n "$AS"; then |
6611 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6612 | else | |
6613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6614 | for as_dir in $PATH | |
5213506e RW |
6615 | do |
6616 | IFS=$as_save_IFS | |
6617 | test -z "$as_dir" && as_dir=. | |
5213506e | 6618 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6620 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6622 | break 2 | |
6623 | fi | |
6624 | done | |
5213506e | 6625 | done |
66dbcf2d RO |
6626 | IFS=$as_save_IFS |
6627 | ||
6628 | fi | |
6629 | fi | |
6630 | AS=$ac_cv_prog_AS | |
6631 | if test -n "$AS"; then | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6633 | $as_echo "$AS" >&6; } | |
6634 | else | |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6636 | $as_echo "no" >&6; } | |
6637 | fi | |
6638 | ||
6639 | ||
6640 | fi | |
6641 | if test -z "$ac_cv_prog_AS"; then | |
6642 | ac_ct_AS=$AS | |
6643 | # Extract the first word of "as", so it can be a program name with args. | |
6644 | set dummy as; ac_word=$2 | |
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6646 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6647 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
66dbcf2d RO |
6648 | $as_echo_n "(cached) " >&6 |
6649 | else | |
6650 | if test -n "$ac_ct_AS"; then | |
6651 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6652 | else | |
6653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6654 | for as_dir in $PATH | |
6655 | do | |
6656 | IFS=$as_save_IFS | |
6657 | test -z "$as_dir" && as_dir=. | |
6658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6660 | ac_cv_prog_ac_ct_AS="as" |
6661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6662 | break 2 | |
6663 | fi | |
6664 | done | |
6665 | done | |
6666 | IFS=$as_save_IFS | |
6667 | ||
6668 | fi | |
6669 | fi | |
6670 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6671 | if test -n "$ac_ct_AS"; then | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6673 | $as_echo "$ac_ct_AS" >&6; } | |
6674 | else | |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6676 | $as_echo "no" >&6; } | |
6677 | fi | |
6678 | ||
6679 | if test "x$ac_ct_AS" = x; then | |
6680 | AS="" | |
6681 | else | |
6682 | case $cross_compiling:$ac_tool_warned in | |
6683 | yes:) | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6685 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6686 | ac_tool_warned=yes ;; | |
5213506e | 6687 | esac |
66dbcf2d RO |
6688 | AS=$ac_ct_AS |
6689 | fi | |
6690 | else | |
6691 | AS="$ac_cv_prog_AS" | |
6692 | fi | |
5213506e | 6693 | |
66dbcf2d RO |
6694 | if test -n "$ac_tool_prefix"; then |
6695 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6696 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6698 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6699 | if ${ac_cv_prog_AR+:} false; then : |
66dbcf2d RO |
6700 | $as_echo_n "(cached) " >&6 |
6701 | else | |
6702 | if test -n "$AR"; then | |
6703 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6704 | else | |
6705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6706 | for as_dir in $PATH | |
6707 | do | |
6708 | IFS=$as_save_IFS | |
6709 | test -z "$as_dir" && as_dir=. | |
6710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6712 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6714 | break 2 | |
6715 | fi | |
6716 | done | |
5213506e | 6717 | done |
66dbcf2d RO |
6718 | IFS=$as_save_IFS |
6719 | ||
6720 | fi | |
6721 | fi | |
6722 | AR=$ac_cv_prog_AR | |
6723 | if test -n "$AR"; then | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6725 | $as_echo "$AR" >&6; } | |
6726 | else | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6728 | $as_echo "no" >&6; } | |
6729 | fi | |
6730 | ||
6731 | ||
6732 | fi | |
6733 | if test -z "$ac_cv_prog_AR"; then | |
6734 | ac_ct_AR=$AR | |
6735 | # Extract the first word of "ar", so it can be a program name with args. | |
6736 | set dummy ar; ac_word=$2 | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6738 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6739 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
66dbcf2d RO |
6740 | $as_echo_n "(cached) " >&6 |
6741 | else | |
6742 | if test -n "$ac_ct_AR"; then | |
6743 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6744 | else | |
6745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6746 | for as_dir in $PATH | |
6747 | do | |
6748 | IFS=$as_save_IFS | |
6749 | test -z "$as_dir" && as_dir=. | |
6750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6752 | ac_cv_prog_ac_ct_AR="ar" |
6753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6754 | break 2 | |
6755 | fi | |
6756 | done | |
6757 | done | |
6758 | IFS=$as_save_IFS | |
6759 | ||
6760 | fi | |
6761 | fi | |
6762 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6763 | if test -n "$ac_ct_AR"; then | |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6765 | $as_echo "$ac_ct_AR" >&6; } | |
6766 | else | |
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6768 | $as_echo "no" >&6; } | |
6769 | fi | |
6770 | ||
6771 | if test "x$ac_ct_AR" = x; then | |
6772 | AR="" | |
6773 | else | |
6774 | case $cross_compiling:$ac_tool_warned in | |
6775 | yes:) | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6778 | ac_tool_warned=yes ;; | |
6779 | esac | |
6780 | AR=$ac_ct_AR | |
6781 | fi | |
6782 | else | |
6783 | AR="$ac_cv_prog_AR" | |
6784 | fi | |
6785 | ||
6786 | if test -n "$ac_tool_prefix"; then | |
6787 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6788 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6790 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6791 | if ${ac_cv_prog_RANLIB+:} false; then : |
66dbcf2d RO |
6792 | $as_echo_n "(cached) " >&6 |
6793 | else | |
6794 | if test -n "$RANLIB"; then | |
6795 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6796 | else | |
6797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6798 | for as_dir in $PATH | |
6799 | do | |
6800 | IFS=$as_save_IFS | |
6801 | test -z "$as_dir" && as_dir=. | |
6802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6804 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6806 | break 2 | |
6807 | fi | |
6808 | done | |
6809 | done | |
6810 | IFS=$as_save_IFS | |
6811 | ||
6812 | fi | |
6813 | fi | |
6814 | RANLIB=$ac_cv_prog_RANLIB | |
6815 | if test -n "$RANLIB"; then | |
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6817 | $as_echo "$RANLIB" >&6; } | |
6818 | else | |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6820 | $as_echo "no" >&6; } | |
6821 | fi | |
6822 | ||
6823 | ||
6824 | fi | |
6825 | if test -z "$ac_cv_prog_RANLIB"; then | |
6826 | ac_ct_RANLIB=$RANLIB | |
6827 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6828 | set dummy ranlib; ac_word=$2 | |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6831 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
66dbcf2d RO |
6832 | $as_echo_n "(cached) " >&6 |
6833 | else | |
6834 | if test -n "$ac_ct_RANLIB"; then | |
6835 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6836 | else | |
6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6838 | for as_dir in $PATH | |
6839 | do | |
6840 | IFS=$as_save_IFS | |
6841 | test -z "$as_dir" && as_dir=. | |
6842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6844 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6846 | break 2 | |
6847 | fi | |
6848 | done | |
5213506e RW |
6849 | done |
6850 | IFS=$as_save_IFS | |
66dbcf2d RO |
6851 | |
6852 | fi | |
6853 | fi | |
6854 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6855 | if test -n "$ac_ct_RANLIB"; then | |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6857 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5213506e | 6858 | else |
66dbcf2d RO |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6860 | $as_echo "no" >&6; } | |
1cf3d07d | 6861 | fi |
5213506e | 6862 | |
66dbcf2d RO |
6863 | if test "x$ac_ct_RANLIB" = x; then |
6864 | RANLIB="ranlib-not-found-in-path-error" | |
6865 | else | |
6866 | case $cross_compiling:$ac_tool_warned in | |
6867 | yes:) | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6869 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6870 | ac_tool_warned=yes ;; | |
6871 | esac | |
6872 | RANLIB=$ac_ct_RANLIB | |
6873 | fi | |
6874 | else | |
6875 | RANLIB="$ac_cv_prog_RANLIB" | |
5213506e | 6876 | fi |
1cf3d07d | 6877 | |
66dbcf2d RO |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6879 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6880 | set x ${MAKE-make} | |
6881 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 6882 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
66dbcf2d RO |
6883 | $as_echo_n "(cached) " >&6 |
6884 | else | |
6885 | cat >conftest.make <<\_ACEOF | |
6886 | SHELL = /bin/sh | |
6887 | all: | |
6888 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6889 | _ACEOF | |
22e05272 | 6890 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
66dbcf2d RO |
6891 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6892 | *@@@%%%=?*=@@@%%%*) | |
6893 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6894 | *) | |
6895 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6896 | esac | |
6897 | rm -f conftest.make | |
6898 | fi | |
6899 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6901 | $as_echo "yes" >&6; } | |
6902 | SET_MAKE= | |
6903 | else | |
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6905 | $as_echo "no" >&6; } | |
6906 | SET_MAKE="MAKE=${MAKE-make}" | |
6907 | fi | |
1cf3d07d SE |
6908 | |
6909 | ||
6910 | ||
66dbcf2d RO |
6911 | # Configure libtool |
6912 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6913 | enable_dlopen=yes | |
1cf3d07d SE |
6914 | |
6915 | ||
6916 | ||
66dbcf2d RO |
6917 | case `pwd` in |
6918 | *\ * | *\ *) | |
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6920 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6921 | esac | |
1cf3d07d SE |
6922 | |
6923 | ||
6924 | ||
66dbcf2d RO |
6925 | macro_version='2.2.7a' |
6926 | macro_revision='1.3134' | |
1cf3d07d SE |
6927 | |
6928 | ||
6929 | ||
6930 | ||
6931 | ||
6932 | ||
6933 | ||
6934 | ||
5213506e | 6935 | |
96b8a615 | 6936 | |
96b8a615 AJ |
6937 | |
6938 | ||
96b8a615 | 6939 | |
66dbcf2d | 6940 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 6941 | |
66dbcf2d RO |
6942 | # Backslashify metacharacters that are still active within |
6943 | # double-quoted strings. | |
6944 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
1cf3d07d | 6945 | |
66dbcf2d RO |
6946 | # Same as above, but do not quote variable references. |
6947 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
1cf3d07d | 6948 | |
66dbcf2d RO |
6949 | # Sed substitution to delay expansion of an escaped shell variable in a |
6950 | # double_quote_subst'ed string. | |
6951 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1cf3d07d | 6952 | |
66dbcf2d RO |
6953 | # Sed substitution to delay expansion of an escaped single quote. |
6954 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1cf3d07d | 6955 | |
66dbcf2d RO |
6956 | # Sed substitution to avoid accidental globbing in evaled expressions |
6957 | no_glob_subst='s/\*/\\\*/g' | |
1cf3d07d | 6958 | |
5213506e RW |
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6960 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 6961 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 6962 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
6963 | else |
6964 | if test -n "$NM"; then | |
6965 | # Let the user override the test. | |
6966 | lt_cv_path_NM="$NM" | |
6967 | else | |
1cf3d07d SE |
6968 | lt_nm_to_check="${ac_tool_prefix}nm" |
6969 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6970 | lt_nm_to_check="$lt_nm_to_check nm" | |
6971 | fi | |
6972 | for lt_tmp_nm in $lt_nm_to_check; do | |
6973 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6974 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6975 | IFS="$lt_save_ifs" | |
6976 | test -z "$ac_dir" && ac_dir=. | |
6977 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6978 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6979 | # Check to see if the nm accepts a BSD-compat flag. | |
6980 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6981 | # nm: unknown option "B" ignored | |
6982 | # Tru64's nm complains that /dev/null is an invalid object file | |
6983 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6984 | */dev/null* | *'Invalid file or object type'*) | |
6985 | lt_cv_path_NM="$tmp_nm -B" | |
6986 | break | |
6987 | ;; | |
6988 | *) | |
6989 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6990 | */dev/null*) | |
6991 | lt_cv_path_NM="$tmp_nm -p" | |
6992 | break | |
6993 | ;; | |
6994 | *) | |
6995 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6996 | continue # so that we can try to find one that supports BSD flags | |
6997 | ;; | |
6998 | esac | |
6999 | ;; | |
7000 | esac | |
7001 | fi | |
7002 | done | |
7003 | IFS="$lt_save_ifs" | |
7004 | done | |
7005 | : ${lt_cv_path_NM=no} | |
7006 | fi | |
7007 | fi | |
5213506e RW |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7009 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7010 | if test "$lt_cv_path_NM" != "no"; then |
7011 | NM="$lt_cv_path_NM" | |
7012 | else | |
7013 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7014 | if test -n "$DUMPBIN"; then : |
7015 | # Let the user override the test. | |
7016 | else | |
7017 | if test -n "$ac_tool_prefix"; then | |
7018 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7019 | do |
7020 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7021 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7023 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7024 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 7025 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7026 | else |
7027 | if test -n "$DUMPBIN"; then | |
7028 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7029 | else | |
7030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7031 | for as_dir in $PATH | |
7032 | do | |
7033 | IFS=$as_save_IFS | |
7034 | test -z "$as_dir" && as_dir=. | |
5213506e | 7035 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7037 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7039 | break 2 |
7040 | fi | |
7041 | done | |
5213506e RW |
7042 | done |
7043 | IFS=$as_save_IFS | |
1cf3d07d SE |
7044 | |
7045 | fi | |
7046 | fi | |
7047 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7048 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7050 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7051 | else |
5213506e RW |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7053 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7054 | fi |
7055 | ||
5213506e | 7056 | |
1cf3d07d SE |
7057 | test -n "$DUMPBIN" && break |
7058 | done | |
7059 | fi | |
7060 | if test -z "$DUMPBIN"; then | |
7061 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7062 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7063 | do |
7064 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7065 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7068 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 7069 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7070 | else |
7071 | if test -n "$ac_ct_DUMPBIN"; then | |
7072 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7073 | else | |
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7075 | for as_dir in $PATH | |
7076 | do | |
7077 | IFS=$as_save_IFS | |
7078 | test -z "$as_dir" && as_dir=. | |
5213506e | 7079 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7081 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7083 | break 2 |
7084 | fi | |
7085 | done | |
5213506e RW |
7086 | done |
7087 | IFS=$as_save_IFS | |
1cf3d07d SE |
7088 | |
7089 | fi | |
7090 | fi | |
7091 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7092 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7094 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7095 | else |
5213506e RW |
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7097 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7098 | fi |
7099 | ||
5213506e | 7100 | |
1cf3d07d SE |
7101 | test -n "$ac_ct_DUMPBIN" && break |
7102 | done | |
1cf3d07d | 7103 | |
5213506e RW |
7104 | if test "x$ac_ct_DUMPBIN" = x; then |
7105 | DUMPBIN=":" | |
7106 | else | |
7107 | case $cross_compiling:$ac_tool_warned in | |
7108 | yes:) | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7111 | ac_tool_warned=yes ;; | |
7112 | esac | |
7113 | DUMPBIN=$ac_ct_DUMPBIN | |
7114 | fi | |
96b8a615 | 7115 | fi |
1cf3d07d | 7116 | |
43e02a8a RW |
7117 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7118 | *COFF*) | |
7119 | DUMPBIN="$DUMPBIN -symbols" | |
7120 | ;; | |
7121 | *) | |
7122 | DUMPBIN=: | |
7123 | ;; | |
7124 | esac | |
7125 | fi | |
1cf3d07d SE |
7126 | |
7127 | if test "$DUMPBIN" != ":"; then | |
7128 | NM="$DUMPBIN" | |
7129 | fi | |
96b8a615 | 7130 | fi |
1cf3d07d SE |
7131 | test -z "$NM" && NM=nm |
7132 | ||
7133 | ||
96b8a615 | 7134 | |
1cf3d07d SE |
7135 | |
7136 | ||
7137 | ||
5213506e RW |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7139 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 7140 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 7141 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7142 | else |
7143 | lt_cv_nm_interface="BSD nm" | |
7144 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7145 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7146 | (eval "$ac_compile" 2>conftest.err) |
7147 | cat conftest.err >&5 | |
43e02a8a | 7148 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7149 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7150 | cat conftest.err >&5 | |
43e02a8a | 7151 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7152 | cat conftest.out >&5 |
7153 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7154 | lt_cv_nm_interface="MS dumpbin" | |
7155 | fi | |
7156 | rm -f conftest* | |
7157 | fi | |
5213506e RW |
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7159 | $as_echo "$lt_cv_nm_interface" >&6; } | |
96b8a615 | 7160 | |
5213506e RW |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7162 | $as_echo_n "checking whether ln -s works... " >&6; } | |
96b8a615 AJ |
7163 | LN_S=$as_ln_s |
7164 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7166 | $as_echo "yes" >&6; } | |
96b8a615 | 7167 | else |
5213506e RW |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7169 | $as_echo "no, using $LN_S" >&6; } | |
96b8a615 AJ |
7170 | fi |
7171 | ||
1cf3d07d | 7172 | # find the maximum length of command line arguments |
5213506e RW |
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7174 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 7175 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 7176 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7177 | else |
7178 | i=0 | |
7179 | teststring="ABCD" | |
7180 | ||
7181 | case $build_os in | |
7182 | msdosdjgpp*) | |
7183 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7184 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7185 | # during glob expansion). Even if it were fixed, the result of this | |
7186 | # check would be larger than it should be. | |
7187 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7188 | ;; | |
7189 | ||
7190 | gnu*) | |
7191 | # Under GNU Hurd, this test is not required because there is | |
7192 | # no limit to the length of command line arguments. | |
7193 | # Libtool will interpret -1 as no limit whatsoever | |
7194 | lt_cv_sys_max_cmd_len=-1; | |
7195 | ;; | |
7196 | ||
d58dead8 | 7197 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
7198 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7199 | # about 5 minutes as the teststring grows exponentially. | |
7200 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7201 | # you end up with a "frozen" computer, even though with patience | |
7202 | # the test eventually succeeds (with a max line length of 256k). | |
7203 | # Instead, let's just punt: use the minimum linelength reported by | |
7204 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7205 | lt_cv_sys_max_cmd_len=8192; | |
7206 | ;; | |
7207 | ||
43e02a8a RW |
7208 | mint*) |
7209 | # On MiNT this can take a long time and run out of memory. | |
7210 | lt_cv_sys_max_cmd_len=8192; | |
7211 | ;; | |
7212 | ||
1cf3d07d SE |
7213 | amigaos*) |
7214 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7215 | # So we just punt and use a minimum line length of 8192. | |
7216 | lt_cv_sys_max_cmd_len=8192; | |
7217 | ;; | |
7218 | ||
7219 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7220 | # This has been around since 386BSD, at least. Likely further. | |
7221 | if test -x /sbin/sysctl; then | |
7222 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7223 | elif test -x /usr/sbin/sysctl; then | |
7224 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7225 | else | |
7226 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7227 | fi | |
7228 | # And add a safety zone | |
7229 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7230 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7231 | ;; | |
7232 | ||
7233 | interix*) | |
7234 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7235 | lt_cv_sys_max_cmd_len=196608 | |
7236 | ;; | |
7237 | ||
7238 | osf*) | |
7239 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7240 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7241 | # nice to cause kernel panics so lets avoid the loop below. | |
7242 | # First set a reasonable default. | |
7243 | lt_cv_sys_max_cmd_len=16384 | |
7244 | # | |
7245 | if test -x /sbin/sysconfig; then | |
7246 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7247 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7248 | esac | |
7249 | fi | |
7250 | ;; | |
7251 | sco3.2v5*) | |
7252 | lt_cv_sys_max_cmd_len=102400 | |
7253 | ;; | |
7254 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7255 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7256 | if test -n "$kargmax"; then | |
7257 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7258 | else | |
7259 | lt_cv_sys_max_cmd_len=32768 | |
7260 | fi | |
7261 | ;; | |
7262 | *) | |
d58dead8 PG |
7263 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7264 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7265 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7266 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7267 | else | |
7268 | # Make teststring a little bigger before we do anything with it. | |
7269 | # a 1K string should be a reasonable start. | |
7270 | for i in 1 2 3 4 5 6 7 8 ; do | |
7271 | teststring=$teststring$teststring | |
7272 | done | |
7273 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7274 | # If test is not a shell built-in, we'll probably end up computing a | |
7275 | # maximum length that is only half of the actual maximum length, but | |
7276 | # we can't tell. | |
43e02a8a RW |
7277 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7278 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7279 | test $i != 17 # 1/2 MB should be enough |
7280 | do | |
7281 | i=`expr $i + 1` | |
7282 | teststring=$teststring$teststring | |
7283 | done | |
7284 | # Only check the string length outside the loop. | |
7285 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7286 | teststring= | |
7287 | # Add a significant safety factor because C++ compilers can tack on | |
7288 | # massive amounts of additional arguments before passing them to the | |
7289 | # linker. It appears as though 1/2 is a usable value. | |
7290 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7291 | fi | |
1cf3d07d SE |
7292 | ;; |
7293 | esac | |
7294 | ||
7295 | fi | |
7296 | ||
7297 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7299 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 7300 | else |
5213506e RW |
7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7302 | $as_echo "none" >&6; } | |
1cf3d07d SE |
7303 | fi |
7304 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | ||
1cf3d07d SE |
7311 | : ${CP="cp -f"} |
7312 | : ${MV="mv -f"} | |
7313 | : ${RM="rm -f"} | |
7314 | ||
5213506e RW |
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7316 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7317 | # Try some XSI features |
7318 | xsi_shell=no | |
7319 | ( _lt_dummy="a/b/c" | |
7320 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
d58dead8 PG |
7321 | = c,a/b,, \ |
7322 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7323 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7324 | && xsi_shell=yes |
5213506e RW |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7326 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7327 | |
7328 | ||
5213506e RW |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7330 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7331 | lt_shell_append=no |
7332 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7333 | >/dev/null 2>&1 \ | |
7334 | && lt_shell_append=yes | |
5213506e RW |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7336 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7337 | |
7338 | ||
7339 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7340 | lt_unset=unset | |
7341 | else | |
7342 | lt_unset=false | |
7343 | fi | |
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | # test EBCDIC or ASCII | |
7350 | case `echo X|tr X '\101'` in | |
7351 | A) # ASCII based system | |
7352 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7353 | lt_SP2NL='tr \040 \012' | |
7354 | lt_NL2SP='tr \015\012 \040\040' | |
7355 | ;; | |
7356 | *) # EBCDIC based system | |
7357 | lt_SP2NL='tr \100 \n' | |
7358 | lt_NL2SP='tr \r\n \100\100' | |
7359 | ;; | |
7360 | esac | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
5213506e RW |
7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7371 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7372 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 7373 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7374 | else |
7375 | lt_cv_ld_reload_flag='-r' | |
7376 | fi | |
5213506e RW |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7378 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7379 | reload_flag=$lt_cv_ld_reload_flag |
7380 | case $reload_flag in | |
7381 | "" | " "*) ;; | |
7382 | *) reload_flag=" $reload_flag" ;; | |
7383 | esac | |
7384 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7385 | case $host_os in | |
7386 | darwin*) | |
7387 | if test "$GCC" = yes; then | |
7388 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7389 | else | |
7390 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7391 | fi | |
7392 | ;; | |
7393 | esac | |
7394 | ||
7395 | ||
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7401 | ||
7402 | ||
d58dead8 PG |
7403 | if test -n "$ac_tool_prefix"; then |
7404 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7405 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7407 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7408 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 7409 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7410 | else |
7411 | if test -n "$OBJDUMP"; then | |
7412 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7413 | else | |
7414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7415 | for as_dir in $PATH | |
7416 | do | |
7417 | IFS=$as_save_IFS | |
7418 | test -z "$as_dir" && as_dir=. | |
5213506e | 7419 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7421 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7423 | break 2 |
7424 | fi | |
7425 | done | |
5213506e RW |
7426 | done |
7427 | IFS=$as_save_IFS | |
d58dead8 PG |
7428 | |
7429 | fi | |
7430 | fi | |
7431 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7432 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7434 | $as_echo "$OBJDUMP" >&6; } | |
d58dead8 | 7435 | else |
5213506e RW |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7437 | $as_echo "no" >&6; } | |
d58dead8 PG |
7438 | fi |
7439 | ||
5213506e | 7440 | |
d58dead8 PG |
7441 | fi |
7442 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7443 | ac_ct_OBJDUMP=$OBJDUMP | |
7444 | # Extract the first word of "objdump", so it can be a program name with args. | |
7445 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7447 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7448 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 7449 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7450 | else |
7451 | if test -n "$ac_ct_OBJDUMP"; then | |
7452 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7453 | else | |
7454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7455 | for as_dir in $PATH | |
7456 | do | |
7457 | IFS=$as_save_IFS | |
7458 | test -z "$as_dir" && as_dir=. | |
5213506e | 7459 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7461 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7463 | break 2 |
7464 | fi | |
7465 | done | |
5213506e RW |
7466 | done |
7467 | IFS=$as_save_IFS | |
d58dead8 | 7468 | |
d58dead8 PG |
7469 | fi |
7470 | fi | |
7471 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7472 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7474 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d58dead8 | 7475 | else |
5213506e RW |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7477 | $as_echo "no" >&6; } | |
d58dead8 PG |
7478 | fi |
7479 | ||
5213506e RW |
7480 | if test "x$ac_ct_OBJDUMP" = x; then |
7481 | OBJDUMP="false" | |
7482 | else | |
7483 | case $cross_compiling:$ac_tool_warned in | |
7484 | yes:) | |
7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7487 | ac_tool_warned=yes ;; | |
7488 | esac | |
7489 | OBJDUMP=$ac_ct_OBJDUMP | |
7490 | fi | |
d58dead8 PG |
7491 | else |
7492 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7493 | fi | |
7494 | ||
7495 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
1cf3d07d | 7504 | |
5213506e RW |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7506 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7507 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 7508 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7509 | else |
7510 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7511 | lt_cv_file_magic_test_file= | |
7512 | lt_cv_deplibs_check_method='unknown' | |
7513 | # Need to set the preceding variable on all platforms that support | |
7514 | # interlibrary dependencies. | |
7515 | # 'none' -- dependencies not supported. | |
7516 | # `unknown' -- same as none, but documents that we really don't know. | |
7517 | # 'pass_all' -- all dependencies passed with no checks. | |
7518 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
7519 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7520 | # which responds to the $file_magic_cmd with a given extended regex. | |
96b8a615 AJ |
7521 | # If you have `file' or equivalent on your system and you're not sure |
7522 | # whether `pass_all' will *always* work, you probably want this one. | |
7523 | ||
7524 | case $host_os in | |
4f6bebc3 | 7525 | aix[4-9]*) |
96b8a615 AJ |
7526 | lt_cv_deplibs_check_method=pass_all |
7527 | ;; | |
7528 | ||
7529 | beos*) | |
7530 | lt_cv_deplibs_check_method=pass_all | |
7531 | ;; | |
7532 | ||
1cf3d07d | 7533 | bsdi[45]*) |
96b8a615 AJ |
7534 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7535 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7536 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7537 | ;; | |
7538 | ||
1cf3d07d SE |
7539 | cygwin*) |
7540 | # func_win32_libid is a shell function defined in ltmain.sh | |
7541 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7542 | lt_cv_file_magic_cmd='func_win32_libid' | |
7543 | ;; | |
7544 | ||
7545 | mingw* | pw32*) | |
7546 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7547 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7548 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7549 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7550 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7551 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7552 | lt_cv_file_magic_cmd='func_win32_libid' | |
7553 | else | |
7554 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7555 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7556 | fi | |
96b8a615 AJ |
7557 | ;; |
7558 | ||
43e02a8a | 7559 | cegcc*) |
d58dead8 PG |
7560 | # use the weaker test based on 'objdump'. See mingw*. |
7561 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7562 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7563 | ;; | |
7564 | ||
96b8a615 | 7565 | darwin* | rhapsody*) |
96b8a615 AJ |
7566 | lt_cv_deplibs_check_method=pass_all |
7567 | ;; | |
7568 | ||
1cf3d07d SE |
7569 | freebsd* | dragonfly*) |
7570 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
96b8a615 AJ |
7571 | case $host_cpu in |
7572 | i*86 ) | |
7573 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7574 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 7575 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
96b8a615 AJ |
7576 | lt_cv_file_magic_cmd=/usr/bin/file |
7577 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7578 | ;; | |
7579 | esac | |
7580 | else | |
7581 | lt_cv_deplibs_check_method=pass_all | |
7582 | fi | |
7583 | ;; | |
7584 | ||
7585 | gnu*) | |
7586 | lt_cv_deplibs_check_method=pass_all | |
7587 | ;; | |
7588 | ||
43e02a8a RW |
7589 | haiku*) |
7590 | lt_cv_deplibs_check_method=pass_all | |
7591 | ;; | |
7592 | ||
1cf3d07d SE |
7593 | hpux10.20* | hpux11*) |
7594 | lt_cv_file_magic_cmd=/usr/bin/file | |
96b8a615 | 7595 | case $host_cpu in |
96b8a615 AJ |
7596 | ia64*) |
7597 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
96b8a615 AJ |
7598 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7599 | ;; | |
1cf3d07d | 7600 | hppa*64*) |
43e02a8a | 7601 | 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 | 7602 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
96b8a615 AJ |
7603 | ;; |
7604 | *) | |
43e02a8a | 7605 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 7606 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
96b8a615 AJ |
7607 | ;; |
7608 | esac | |
1cf3d07d SE |
7609 | ;; |
7610 | ||
7611 | interix[3-9]*) | |
7612 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7613 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7614 | ;; | |
7615 | ||
7616 | irix5* | irix6* | nonstopux*) | |
7617 | case $LD in | |
7618 | *-32|*"-32 ") libmagic=32-bit;; | |
7619 | *-n32|*"-n32 ") libmagic=N32;; | |
7620 | *-64|*"-64 ") libmagic=64-bit;; | |
7621 | *) libmagic=never-match;; | |
7622 | esac | |
96b8a615 AJ |
7623 | lt_cv_deplibs_check_method=pass_all |
7624 | ;; | |
7625 | ||
7626 | # This must be Linux ELF. | |
e9085da5 | 7627 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
2c92e90f | 7628 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
7629 | ;; |
7630 | ||
1cf3d07d SE |
7631 | netbsd*) |
7632 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7633 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
96b8a615 | 7634 | else |
1cf3d07d | 7635 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
96b8a615 AJ |
7636 | fi |
7637 | ;; | |
7638 | ||
1cf3d07d | 7639 | newos6*) |
96b8a615 AJ |
7640 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7641 | lt_cv_file_magic_cmd=/usr/bin/file | |
7642 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7643 | ;; | |
7644 | ||
1cf3d07d SE |
7645 | *nto* | *qnx*) |
7646 | lt_cv_deplibs_check_method=pass_all | |
7647 | ;; | |
7648 | ||
7649 | openbsd*) | |
7650 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7651 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7652 | else | |
7653 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7654 | fi | |
7655 | ;; | |
7656 | ||
96b8a615 | 7657 | osf3* | osf4* | osf5*) |
96b8a615 AJ |
7658 | lt_cv_deplibs_check_method=pass_all |
7659 | ;; | |
7660 | ||
1cf3d07d | 7661 | rdos*) |
96b8a615 AJ |
7662 | lt_cv_deplibs_check_method=pass_all |
7663 | ;; | |
7664 | ||
7665 | solaris*) | |
7666 | lt_cv_deplibs_check_method=pass_all | |
96b8a615 AJ |
7667 | ;; |
7668 | ||
1cf3d07d | 7669 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
96b8a615 AJ |
7670 | lt_cv_deplibs_check_method=pass_all |
7671 | ;; | |
7672 | ||
1cf3d07d | 7673 | sysv4 | sysv4.3*) |
96b8a615 | 7674 | case $host_vendor in |
96b8a615 AJ |
7675 | motorola) |
7676 | 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]' | |
7677 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7678 | ;; | |
1cf3d07d SE |
7679 | ncr) |
7680 | lt_cv_deplibs_check_method=pass_all | |
7681 | ;; | |
7682 | sequent) | |
7683 | lt_cv_file_magic_cmd='/bin/file' | |
7684 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7685 | ;; | |
7686 | sni) | |
7687 | lt_cv_file_magic_cmd='/bin/file' | |
7688 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7689 | lt_cv_file_magic_test_file=/lib/libc.so | |
7690 | ;; | |
7691 | siemens) | |
7692 | lt_cv_deplibs_check_method=pass_all | |
7693 | ;; | |
7694 | pc) | |
7695 | lt_cv_deplibs_check_method=pass_all | |
7696 | ;; | |
96b8a615 AJ |
7697 | esac |
7698 | ;; | |
1cf3d07d SE |
7699 | |
7700 | tpf*) | |
7701 | lt_cv_deplibs_check_method=pass_all | |
7702 | ;; | |
96b8a615 AJ |
7703 | esac |
7704 | ||
7705 | fi | |
5213506e RW |
7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7707 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7708 | file_magic_cmd=$lt_cv_file_magic_cmd |
7709 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7710 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7711 | |
7712 | ||
7713 | ||
7714 | ||
96b8a615 | 7715 | |
96b8a615 | 7716 | |
96b8a615 | 7717 | |
96b8a615 | 7718 | |
6de9cd9a | 7719 | |
6de9cd9a | 7720 | |
6de9cd9a | 7721 | |
6de9cd9a | 7722 | |
96b8a615 | 7723 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7724 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7725 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7727 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7728 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7729 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7730 | else |
1cf3d07d SE |
7731 | if test -n "$AR"; then |
7732 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7733 | else |
7734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7735 | for as_dir in $PATH | |
7736 | do | |
7737 | IFS=$as_save_IFS | |
7738 | test -z "$as_dir" && as_dir=. | |
5213506e | 7739 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7741 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7743 | break 2 |
7744 | fi | |
7745 | done | |
5213506e RW |
7746 | done |
7747 | IFS=$as_save_IFS | |
6de9cd9a | 7748 | |
96b8a615 AJ |
7749 | fi |
7750 | fi | |
1cf3d07d SE |
7751 | AR=$ac_cv_prog_AR |
7752 | if test -n "$AR"; then | |
5213506e RW |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7754 | $as_echo "$AR" >&6; } | |
96b8a615 | 7755 | else |
5213506e RW |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7757 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7758 | fi |
7759 | ||
5213506e | 7760 | |
96b8a615 | 7761 | fi |
1cf3d07d SE |
7762 | if test -z "$ac_cv_prog_AR"; then |
7763 | ac_ct_AR=$AR | |
7764 | # Extract the first word of "ar", so it can be a program name with args. | |
7765 | set dummy ar; ac_word=$2 | |
5213506e RW |
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7767 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7768 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7769 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7770 | else |
1cf3d07d SE |
7771 | if test -n "$ac_ct_AR"; then |
7772 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7773 | else |
7774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7775 | for as_dir in $PATH | |
7776 | do | |
7777 | IFS=$as_save_IFS | |
7778 | test -z "$as_dir" && as_dir=. | |
5213506e | 7779 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7781 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7783 | break 2 |
7784 | fi | |
7785 | done | |
5213506e RW |
7786 | done |
7787 | IFS=$as_save_IFS | |
6de9cd9a | 7788 | |
96b8a615 AJ |
7789 | fi |
7790 | fi | |
1cf3d07d SE |
7791 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7792 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7794 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7795 | else |
5213506e RW |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7797 | $as_echo "no" >&6; } | |
6de9cd9a | 7798 | fi |
6de9cd9a | 7799 | |
5213506e RW |
7800 | if test "x$ac_ct_AR" = x; then |
7801 | AR="false" | |
7802 | else | |
7803 | case $cross_compiling:$ac_tool_warned in | |
7804 | yes:) | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7806 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7807 | ac_tool_warned=yes ;; | |
7808 | esac | |
7809 | AR=$ac_ct_AR | |
7810 | fi | |
96b8a615 | 7811 | else |
1cf3d07d | 7812 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7813 | fi |
7814 | ||
1cf3d07d SE |
7815 | test -z "$AR" && AR=ar |
7816 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | ||
96b8a615 AJ |
7828 | if test -n "$ac_tool_prefix"; then |
7829 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7830 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7832 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7833 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7834 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7835 | else |
96b8a615 AJ |
7836 | if test -n "$STRIP"; then |
7837 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7838 | else | |
7839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7840 | for as_dir in $PATH | |
7841 | do | |
7842 | IFS=$as_save_IFS | |
7843 | test -z "$as_dir" && as_dir=. | |
5213506e | 7844 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7846 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7848 | break 2 |
7849 | fi | |
7850 | done | |
5213506e RW |
7851 | done |
7852 | IFS=$as_save_IFS | |
6de9cd9a | 7853 | |
96b8a615 AJ |
7854 | fi |
7855 | fi | |
7856 | STRIP=$ac_cv_prog_STRIP | |
7857 | if test -n "$STRIP"; then | |
5213506e RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7859 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7860 | else |
5213506e RW |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7862 | $as_echo "no" >&6; } | |
96b8a615 | 7863 | fi |
6de9cd9a | 7864 | |
5213506e | 7865 | |
6de9cd9a | 7866 | fi |
96b8a615 AJ |
7867 | if test -z "$ac_cv_prog_STRIP"; then |
7868 | ac_ct_STRIP=$STRIP | |
7869 | # Extract the first word of "strip", so it can be a program name with args. | |
7870 | set dummy strip; ac_word=$2 | |
5213506e RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7872 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7873 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7874 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7875 | else |
7876 | if test -n "$ac_ct_STRIP"; then | |
7877 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7878 | else | |
7879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7880 | for as_dir in $PATH | |
7881 | do | |
7882 | IFS=$as_save_IFS | |
7883 | test -z "$as_dir" && as_dir=. | |
5213506e | 7884 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7886 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7888 | break 2 |
7889 | fi | |
7890 | done | |
5213506e RW |
7891 | done |
7892 | IFS=$as_save_IFS | |
96b8a615 | 7893 | |
6de9cd9a DN |
7894 | fi |
7895 | fi | |
96b8a615 AJ |
7896 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7897 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7899 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7900 | else |
5213506e RW |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7902 | $as_echo "no" >&6; } | |
6de9cd9a | 7903 | fi |
6de9cd9a | 7904 | |
5213506e RW |
7905 | if test "x$ac_ct_STRIP" = x; then |
7906 | STRIP=":" | |
7907 | else | |
7908 | case $cross_compiling:$ac_tool_warned in | |
7909 | yes:) | |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7911 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7912 | ac_tool_warned=yes ;; | |
7913 | esac | |
7914 | STRIP=$ac_ct_STRIP | |
7915 | fi | |
96b8a615 AJ |
7916 | else |
7917 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
7918 | fi |
7919 | ||
1cf3d07d | 7920 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
7921 | |
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
1cf3d07d SE |
7927 | if test -n "$ac_tool_prefix"; then |
7928 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7929 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7932 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 7933 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7934 | else |
1cf3d07d SE |
7935 | if test -n "$RANLIB"; then |
7936 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7937 | else | |
7938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7939 | for as_dir in $PATH | |
7940 | do | |
7941 | IFS=$as_save_IFS | |
7942 | test -z "$as_dir" && as_dir=. | |
5213506e | 7943 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7945 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 7946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7947 | break 2 |
7948 | fi | |
7949 | done | |
5213506e RW |
7950 | done |
7951 | IFS=$as_save_IFS | |
1cf3d07d SE |
7952 | |
7953 | fi | |
7954 | fi | |
7955 | RANLIB=$ac_cv_prog_RANLIB | |
7956 | if test -n "$RANLIB"; then | |
5213506e RW |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7958 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 7959 | else |
5213506e RW |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7961 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7962 | fi |
7963 | ||
5213506e | 7964 | |
1cf3d07d SE |
7965 | fi |
7966 | if test -z "$ac_cv_prog_RANLIB"; then | |
7967 | ac_ct_RANLIB=$RANLIB | |
7968 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7969 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7972 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 7973 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7974 | else |
7975 | if test -n "$ac_ct_RANLIB"; then | |
7976 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7977 | else | |
7978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7979 | for as_dir in $PATH | |
7980 | do | |
7981 | IFS=$as_save_IFS | |
7982 | test -z "$as_dir" && as_dir=. | |
5213506e | 7983 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7985 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 7986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7987 | break 2 |
7988 | fi | |
7989 | done | |
5213506e RW |
7990 | done |
7991 | IFS=$as_save_IFS | |
1cf3d07d | 7992 | |
1cf3d07d SE |
7993 | fi |
7994 | fi | |
7995 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7996 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7998 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 7999 | else |
5213506e RW |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8001 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8002 | fi |
8003 | ||
5213506e RW |
8004 | if test "x$ac_ct_RANLIB" = x; then |
8005 | RANLIB=":" | |
8006 | else | |
8007 | case $cross_compiling:$ac_tool_warned in | |
8008 | yes:) | |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8011 | ac_tool_warned=yes ;; | |
8012 | esac | |
8013 | RANLIB=$ac_ct_RANLIB | |
8014 | fi | |
1cf3d07d SE |
8015 | else |
8016 | RANLIB="$ac_cv_prog_RANLIB" | |
8017 | fi | |
8018 | ||
8019 | test -z "$RANLIB" && RANLIB=: | |
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | ||
8026 | # Determine commands to create old-style static archives. | |
d58dead8 | 8027 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8028 | old_postinstall_cmds='chmod 644 $oldlib' |
8029 | old_postuninstall_cmds= | |
8030 | ||
8031 | if test -n "$RANLIB"; then | |
8032 | case $host_os in | |
8033 | openbsd*) | |
8034 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8035 | ;; | |
8036 | *) | |
8037 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8038 | ;; | |
8039 | esac | |
8040 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8041 | fi | |
8042 | ||
43e02a8a RW |
8043 | case $host_os in |
8044 | darwin*) | |
8045 | lock_old_archive_extraction=yes ;; | |
8046 | *) | |
8047 | lock_old_archive_extraction=no ;; | |
8048 | esac | |
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
1cf3d07d SE |
8055 | |
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | # If no C compiler was specified, use CC. | |
8089 | LTCC=${LTCC-"$CC"} | |
8090 | ||
8091 | # If no C compiler flags were specified, use CFLAGS. | |
8092 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8093 | ||
8094 | # Allow CC to be a program name with arguments. | |
8095 | compiler=$CC | |
8096 | ||
8097 | ||
8098 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8100 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8101 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8102 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8103 | else |
8104 | ||
8105 | # These are sane defaults that work on at least a few old systems. | |
8106 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8107 | ||
8108 | # Character class describing NM global symbol codes. | |
8109 | symcode='[BCDEGRST]' | |
8110 | ||
8111 | # Regexp to match symbols that can be accessed directly from C. | |
8112 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8113 | ||
8114 | # Define system-specific variables. | |
8115 | case $host_os in | |
8116 | aix*) | |
8117 | symcode='[BCDT]' | |
8118 | ;; | |
d58dead8 | 8119 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8120 | symcode='[ABCDGISTW]' |
8121 | ;; | |
8122 | hpux*) | |
8123 | if test "$host_cpu" = ia64; then | |
8124 | symcode='[ABCDEGRST]' | |
8125 | fi | |
8126 | ;; | |
8127 | irix* | nonstopux*) | |
8128 | symcode='[BCDEGRST]' | |
8129 | ;; | |
8130 | osf*) | |
8131 | symcode='[BCDEGQRST]' | |
8132 | ;; | |
8133 | solaris*) | |
8134 | symcode='[BDRT]' | |
8135 | ;; | |
8136 | sco3.2v5*) | |
8137 | symcode='[DT]' | |
8138 | ;; | |
8139 | sysv4.2uw2*) | |
8140 | symcode='[DT]' | |
8141 | ;; | |
8142 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8143 | symcode='[ABDT]' | |
8144 | ;; | |
8145 | sysv4) | |
8146 | symcode='[DFNSTU]' | |
8147 | ;; | |
8148 | esac | |
8149 | ||
8150 | # If we're using GNU nm, then use its standard symbol codes. | |
8151 | case `$NM -V 2>&1` in | |
8152 | *GNU* | *'with BFD'*) | |
8153 | symcode='[ABCDGIRSTW]' ;; | |
8154 | esac | |
8155 | ||
8156 | # Transform an extracted symbol line into a proper C declaration. | |
8157 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8158 | # so use this general approach. | |
8159 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8160 | ||
8161 | # Transform an extracted symbol line into symbol name and symbol address | |
8162 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
d58dead8 | 8163 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
1cf3d07d SE |
8164 | |
8165 | # Handle CRLF in mingw tool chain | |
8166 | opt_cr= | |
8167 | case $build_os in | |
8168 | mingw*) | |
8169 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8170 | ;; | |
8171 | esac | |
8172 | ||
8173 | # Try without a prefix underscore, then with it. | |
8174 | for ac_symprfx in "" "_"; do | |
8175 | ||
8176 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8177 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8178 | ||
8179 | # Write the raw and C identifiers. | |
8180 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8181 | # Fake it for dumpbin and say T for any non-static function | |
8182 | # and D for any global variable. | |
8183 | # Also find C++ and __fastcall symbols from MSVC++, | |
8184 | # which start with @ or ?. | |
8185 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8186 | " {last_section=section; section=\$ 3};"\ | |
8187 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8188 | " \$ 0!~/External *\|/{next};"\ | |
8189 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8190 | " {if(hide[section]) next};"\ | |
8191 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8192 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8193 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8194 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8195 | " ' prfx=^$ac_symprfx" | |
8196 | else | |
8197 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8198 | fi | |
8199 | ||
8200 | # Check to see that the pipe works correctly. | |
8201 | pipe_works=no | |
8202 | ||
8203 | rm -f conftest* | |
8204 | cat > conftest.$ac_ext <<_LT_EOF | |
8205 | #ifdef __cplusplus | |
8206 | extern "C" { | |
8207 | #endif | |
8208 | char nm_test_var; | |
8209 | void nm_test_func(void); | |
8210 | void nm_test_func(void){} | |
8211 | #ifdef __cplusplus | |
8212 | } | |
8213 | #endif | |
8214 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8215 | _LT_EOF | |
8216 | ||
5213506e | 8217 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8218 | (eval $ac_compile) 2>&5 |
8219 | ac_status=$? | |
5213506e RW |
8220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8221 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8222 | # Now try to grab the symbols. |
8223 | nlist=conftest.nm | |
43e02a8a RW |
8224 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8225 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8226 | ac_status=$? |
5213506e RW |
8227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8228 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8229 | # Try sorting and uniquifying the output. |
8230 | if sort "$nlist" | uniq > "$nlist"T; then | |
8231 | mv -f "$nlist"T "$nlist" | |
8232 | else | |
8233 | rm -f "$nlist"T | |
8234 | fi | |
8235 | ||
8236 | # Make sure that we snagged all the symbols we need. | |
8237 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8238 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8239 | cat <<_LT_EOF > conftest.$ac_ext | |
8240 | #ifdef __cplusplus | |
8241 | extern "C" { | |
8242 | #endif | |
8243 | ||
8244 | _LT_EOF | |
8245 | # Now generate the symbol file. | |
8246 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8247 | ||
8248 | cat <<_LT_EOF >> conftest.$ac_ext | |
8249 | ||
8250 | /* The mapping between symbol names and symbols. */ | |
8251 | const struct { | |
8252 | const char *name; | |
8253 | void *address; | |
8254 | } | |
8255 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8256 | { | |
8257 | { "@PROGRAM@", (void *) 0 }, | |
8258 | _LT_EOF | |
8259 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8260 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8261 | {0, (void *) 0} | |
8262 | }; | |
8263 | ||
8264 | /* This works around a problem in FreeBSD linker */ | |
8265 | #ifdef FREEBSD_WORKAROUND | |
8266 | static const void *lt_preloaded_setup() { | |
8267 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8268 | } | |
8269 | #endif | |
8270 | ||
8271 | #ifdef __cplusplus | |
8272 | } | |
8273 | #endif | |
8274 | _LT_EOF | |
8275 | # Now try linking the two files. | |
8276 | mv conftest.$ac_objext conftstm.$ac_objext | |
8277 | lt_save_LIBS="$LIBS" | |
8278 | lt_save_CFLAGS="$CFLAGS" | |
8279 | LIBS="conftstm.$ac_objext" | |
8280 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8281 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8282 | (eval $ac_link) 2>&5 |
8283 | ac_status=$? | |
5213506e RW |
8284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8285 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8286 | pipe_works=yes |
8287 | fi | |
8288 | LIBS="$lt_save_LIBS" | |
8289 | CFLAGS="$lt_save_CFLAGS" | |
8290 | else | |
8291 | echo "cannot find nm_test_func in $nlist" >&5 | |
8292 | fi | |
8293 | else | |
8294 | echo "cannot find nm_test_var in $nlist" >&5 | |
8295 | fi | |
8296 | else | |
8297 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8298 | fi | |
8299 | else | |
8300 | echo "$progname: failed program was:" >&5 | |
8301 | cat conftest.$ac_ext >&5 | |
8302 | fi | |
d58dead8 | 8303 | rm -rf conftest* conftst* |
1cf3d07d SE |
8304 | |
8305 | # Do not use the global_symbol_pipe unless it works. | |
8306 | if test "$pipe_works" = yes; then | |
8307 | break | |
8308 | else | |
8309 | lt_cv_sys_global_symbol_pipe= | |
8310 | fi | |
8311 | done | |
8312 | ||
8313 | fi | |
8314 | ||
8315 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8316 | lt_cv_sys_global_symbol_to_cdecl= | |
8317 | fi | |
8318 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8320 | $as_echo "failed" >&6; } | |
1cf3d07d | 8321 | else |
5213506e RW |
8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8323 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8324 | fi |
8325 | ||
8326 | ||
8327 | ||
8328 | ||
8329 | ||
8330 | ||
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | ||
d58dead8 PG |
8340 | |
8341 | ||
8342 | ||
8343 | ||
8344 | ||
1cf3d07d SE |
8345 | |
8346 | ||
5213506e RW |
8347 | # Check whether --enable-libtool-lock was given. |
8348 | if test "${enable_libtool_lock+set}" = set; then : | |
8349 | enableval=$enable_libtool_lock; | |
8350 | fi | |
1cf3d07d | 8351 | |
1cf3d07d | 8352 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8353 | |
96b8a615 AJ |
8354 | # Some flags need to be propagated to the compiler or linker for good |
8355 | # libtool support. | |
8356 | case $host in | |
1cf3d07d | 8357 | ia64-*-hpux*) |
96b8a615 | 8358 | # Find out which ABI we are using. |
1cf3d07d | 8359 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8360 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8361 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8362 | ac_status=$? |
5213506e RW |
8363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8364 | test $ac_status = 0; }; then | |
96b8a615 | 8365 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8366 | *ELF-32*) |
8367 | HPUX_IA64_MODE="32" | |
8368 | ;; | |
8369 | *ELF-64*) | |
8370 | HPUX_IA64_MODE="64" | |
8371 | ;; | |
96b8a615 | 8372 | esac |
96b8a615 AJ |
8373 | fi |
8374 | rm -rf conftest* | |
8375 | ;; | |
1cf3d07d | 8376 | *-*-irix6*) |
96b8a615 | 8377 | # Find out which ABI we are using. |
43e02a8a | 8378 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8379 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8380 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8381 | ac_status=$? |
5213506e RW |
8382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8383 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8384 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8385 | case `/usr/bin/file conftest.$ac_objext` in | |
8386 | *32-bit*) | |
8387 | LD="${LD-ld} -melf32bsmip" | |
8388 | ;; | |
8389 | *N32*) | |
8390 | LD="${LD-ld} -melf32bmipn32" | |
8391 | ;; | |
8392 | *64-bit*) | |
8393 | LD="${LD-ld} -melf64bmip" | |
8394 | ;; | |
8395 | esac | |
8396 | else | |
8397 | case `/usr/bin/file conftest.$ac_objext` in | |
8398 | *32-bit*) | |
8399 | LD="${LD-ld} -32" | |
8400 | ;; | |
8401 | *N32*) | |
8402 | LD="${LD-ld} -n32" | |
8403 | ;; | |
8404 | *64-bit*) | |
8405 | LD="${LD-ld} -64" | |
8406 | ;; | |
8407 | esac | |
8408 | fi | |
96b8a615 AJ |
8409 | fi |
8410 | rm -rf conftest* | |
8411 | ;; | |
6de9cd9a | 8412 | |
3cbe17f7 | 8413 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8414 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8415 | # Find out which ABI we are using. |
8416 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8417 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8418 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8419 | ac_status=$? |
5213506e RW |
8420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8421 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8422 | case `/usr/bin/file conftest.o` in |
8423 | *32-bit*) | |
8424 | case $host in | |
8425 | x86_64-*kfreebsd*-gnu) | |
8426 | LD="${LD-ld} -m elf_i386_fbsd" | |
8427 | ;; | |
8428 | x86_64-*linux*) | |
e6d5f8c9 L |
8429 | case `/usr/bin/file conftest.o` in |
8430 | *x86-64*) | |
8431 | LD="${LD-ld} -m elf32_x86_64" | |
8432 | ;; | |
8433 | *) | |
8434 | LD="${LD-ld} -m elf_i386" | |
8435 | ;; | |
8436 | esac | |
1cf3d07d | 8437 | ;; |
3cbe17f7 AM |
8438 | powerpc64le-*linux*) |
8439 | LD="${LD-ld} -m elf32lppclinux" | |
8440 | ;; | |
8441 | powerpc64-*linux*) | |
1cf3d07d SE |
8442 | LD="${LD-ld} -m elf32ppclinux" |
8443 | ;; | |
8444 | s390x-*linux*) | |
8445 | LD="${LD-ld} -m elf_s390" | |
8446 | ;; | |
8447 | sparc64-*linux*) | |
8448 | LD="${LD-ld} -m elf32_sparc" | |
8449 | ;; | |
8450 | esac | |
8451 | ;; | |
8452 | *64-bit*) | |
8453 | case $host in | |
8454 | x86_64-*kfreebsd*-gnu) | |
8455 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8456 | ;; | |
8457 | x86_64-*linux*) | |
8458 | LD="${LD-ld} -m elf_x86_64" | |
8459 | ;; | |
3cbe17f7 AM |
8460 | powerpcle-*linux*) |
8461 | LD="${LD-ld} -m elf64lppc" | |
8462 | ;; | |
8463 | powerpc-*linux*) | |
1cf3d07d SE |
8464 | LD="${LD-ld} -m elf64ppc" |
8465 | ;; | |
8466 | s390*-*linux*|s390*-*tpf*) | |
8467 | LD="${LD-ld} -m elf64_s390" | |
8468 | ;; | |
8469 | sparc*-*linux*) | |
8470 | LD="${LD-ld} -m elf64_sparc" | |
8471 | ;; | |
8472 | esac | |
8473 | ;; | |
96b8a615 | 8474 | esac |
6de9cd9a | 8475 | fi |
96b8a615 AJ |
8476 | rm -rf conftest* |
8477 | ;; | |
6de9cd9a | 8478 | |
96b8a615 AJ |
8479 | *-*-sco3.2v5*) |
8480 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8481 | SAVE_CFLAGS="$CFLAGS" | |
8482 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8484 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8485 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8486 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8487 | else |
1cf3d07d | 8488 | ac_ext=c |
96b8a615 AJ |
8489 | ac_cpp='$CPP $CPPFLAGS' |
8490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8493 | |
f02d008e | 8494 | if test x$gcc_no_link = xyes; then |
22e05272 | 8495 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8496 | fi |
5213506e | 8497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8498 | /* end confdefs.h. */ |
6de9cd9a DN |
8499 | |
8500 | int | |
8501 | main () | |
8502 | { | |
96b8a615 | 8503 | |
6de9cd9a DN |
8504 | ; |
8505 | return 0; | |
8506 | } | |
8507 | _ACEOF | |
5213506e | 8508 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8509 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8510 | else |
5213506e | 8511 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8512 | fi |
5213506e RW |
8513 | rm -f core conftest.err conftest.$ac_objext \ |
8514 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8515 | ac_ext=c |
8516 | ac_cpp='$CPP $CPPFLAGS' | |
8517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8520 | ||
6de9cd9a | 8521 | fi |
5213506e RW |
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8523 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8524 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8525 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8526 | CFLAGS="$SAVE_CFLAGS" | |
8527 | fi | |
8528 | ;; | |
1cf3d07d SE |
8529 | sparc*-*solaris*) |
8530 | # Find out which ABI we are using. | |
8531 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8532 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8533 | (eval $ac_compile) 2>&5 |
8534 | ac_status=$? | |
5213506e RW |
8535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8536 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8537 | case `/usr/bin/file conftest.o` in |
8538 | *64-bit*) | |
8539 | case $lt_cv_prog_gnu_ld in | |
8540 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8541 | *) |
8542 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8543 | LD="${LD-ld} -64" | |
8544 | fi | |
8545 | ;; | |
1cf3d07d SE |
8546 | esac |
8547 | ;; | |
8548 | esac | |
8549 | fi | |
8550 | rm -rf conftest* | |
8551 | ;; | |
96b8a615 AJ |
8552 | esac |
8553 | ||
1cf3d07d | 8554 | need_locks="$enable_libtool_lock" |
96b8a615 | 8555 | |
d58dead8 PG |
8556 | |
8557 | case $host_os in | |
8558 | rhapsody* | darwin*) | |
8559 | if test -n "$ac_tool_prefix"; then | |
8560 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8561 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8563 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8564 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8565 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8566 | else |
8567 | if test -n "$DSYMUTIL"; then | |
8568 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8569 | else | |
8570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8571 | for as_dir in $PATH | |
8572 | do | |
8573 | IFS=$as_save_IFS | |
8574 | test -z "$as_dir" && as_dir=. | |
5213506e | 8575 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8577 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8579 | break 2 |
8580 | fi | |
8581 | done | |
5213506e RW |
8582 | done |
8583 | IFS=$as_save_IFS | |
d58dead8 PG |
8584 | |
8585 | fi | |
8586 | fi | |
8587 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8588 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8590 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8591 | else |
5213506e RW |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8593 | $as_echo "no" >&6; } | |
d58dead8 PG |
8594 | fi |
8595 | ||
5213506e | 8596 | |
d58dead8 PG |
8597 | fi |
8598 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8599 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8600 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8601 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8603 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8604 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8605 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8606 | else |
21be0a5a JB |
8607 | if test -n "$ac_ct_DSYMUTIL"; then |
8608 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8609 | else |
8610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8611 | for as_dir in $PATH | |
8612 | do | |
8613 | IFS=$as_save_IFS | |
8614 | test -z "$as_dir" && as_dir=. | |
5213506e | 8615 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8617 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8619 | break 2 |
8620 | fi | |
8621 | done | |
5213506e RW |
8622 | done |
8623 | IFS=$as_save_IFS | |
d58dead8 | 8624 | |
d58dead8 PG |
8625 | fi |
8626 | fi | |
21be0a5a JB |
8627 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8628 | if test -n "$ac_ct_DSYMUTIL"; then | |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8630 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8631 | else |
5213506e RW |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8633 | $as_echo "no" >&6; } | |
d58dead8 PG |
8634 | fi |
8635 | ||
21be0a5a JB |
8636 | if test "x$ac_ct_DSYMUTIL" = x; then |
8637 | DSYMUTIL=":" | |
5213506e RW |
8638 | else |
8639 | case $cross_compiling:$ac_tool_warned in | |
8640 | yes:) | |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8642 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8643 | ac_tool_warned=yes ;; | |
8644 | esac | |
21be0a5a | 8645 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8646 | fi |
d58dead8 | 8647 | else |
21be0a5a | 8648 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8649 | fi |
8650 | ||
8651 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8652 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8653 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8655 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8656 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8657 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8658 | else |
21be0a5a JB |
8659 | if test -n "$NMEDIT"; then |
8660 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8661 | else |
8662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8663 | for as_dir in $PATH | |
8664 | do | |
8665 | IFS=$as_save_IFS | |
8666 | test -z "$as_dir" && as_dir=. | |
5213506e | 8667 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8669 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8671 | break 2 |
8672 | fi | |
8673 | done | |
5213506e RW |
8674 | done |
8675 | IFS=$as_save_IFS | |
d58dead8 PG |
8676 | |
8677 | fi | |
8678 | fi | |
21be0a5a JB |
8679 | NMEDIT=$ac_cv_prog_NMEDIT |
8680 | if test -n "$NMEDIT"; then | |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8682 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8683 | else |
5213506e RW |
8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8685 | $as_echo "no" >&6; } | |
d58dead8 PG |
8686 | fi |
8687 | ||
5213506e | 8688 | |
d58dead8 | 8689 | fi |
21be0a5a JB |
8690 | if test -z "$ac_cv_prog_NMEDIT"; then |
8691 | ac_ct_NMEDIT=$NMEDIT | |
8692 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8693 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8695 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8696 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8697 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8698 | else |
21be0a5a JB |
8699 | if test -n "$ac_ct_NMEDIT"; then |
8700 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8701 | else |
8702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8703 | for as_dir in $PATH | |
8704 | do | |
8705 | IFS=$as_save_IFS | |
8706 | test -z "$as_dir" && as_dir=. | |
5213506e | 8707 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8709 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8711 | break 2 |
8712 | fi | |
8713 | done | |
5213506e RW |
8714 | done |
8715 | IFS=$as_save_IFS | |
d58dead8 | 8716 | |
d58dead8 PG |
8717 | fi |
8718 | fi | |
21be0a5a JB |
8719 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8720 | if test -n "$ac_ct_NMEDIT"; then | |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8722 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8723 | else |
5213506e RW |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8725 | $as_echo "no" >&6; } | |
d58dead8 PG |
8726 | fi |
8727 | ||
21be0a5a JB |
8728 | if test "x$ac_ct_NMEDIT" = x; then |
8729 | NMEDIT=":" | |
5213506e RW |
8730 | else |
8731 | case $cross_compiling:$ac_tool_warned in | |
8732 | yes:) | |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8734 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8735 | ac_tool_warned=yes ;; | |
8736 | esac | |
21be0a5a | 8737 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8738 | fi |
d58dead8 | 8739 | else |
21be0a5a | 8740 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8741 | fi |
8742 | ||
8743 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8744 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8745 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8747 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8748 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8749 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8750 | else |
21be0a5a JB |
8751 | if test -n "$LIPO"; then |
8752 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8753 | else |
8754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8755 | for as_dir in $PATH | |
8756 | do | |
8757 | IFS=$as_save_IFS | |
8758 | test -z "$as_dir" && as_dir=. | |
5213506e | 8759 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8761 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8763 | break 2 |
8764 | fi | |
8765 | done | |
5213506e RW |
8766 | done |
8767 | IFS=$as_save_IFS | |
d58dead8 PG |
8768 | |
8769 | fi | |
8770 | fi | |
21be0a5a JB |
8771 | LIPO=$ac_cv_prog_LIPO |
8772 | if test -n "$LIPO"; then | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8774 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8775 | else |
5213506e RW |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8777 | $as_echo "no" >&6; } | |
d58dead8 PG |
8778 | fi |
8779 | ||
5213506e | 8780 | |
d58dead8 | 8781 | fi |
21be0a5a JB |
8782 | if test -z "$ac_cv_prog_LIPO"; then |
8783 | ac_ct_LIPO=$LIPO | |
8784 | # Extract the first word of "lipo", so it can be a program name with args. | |
8785 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8787 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8788 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8789 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8790 | else |
21be0a5a JB |
8791 | if test -n "$ac_ct_LIPO"; then |
8792 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8793 | else |
8794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8795 | for as_dir in $PATH | |
8796 | do | |
8797 | IFS=$as_save_IFS | |
8798 | test -z "$as_dir" && as_dir=. | |
5213506e | 8799 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8801 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8803 | break 2 |
8804 | fi | |
8805 | done | |
5213506e RW |
8806 | done |
8807 | IFS=$as_save_IFS | |
d58dead8 | 8808 | |
d58dead8 PG |
8809 | fi |
8810 | fi | |
21be0a5a JB |
8811 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8812 | if test -n "$ac_ct_LIPO"; then | |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8814 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8815 | else |
5213506e RW |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8817 | $as_echo "no" >&6; } | |
d58dead8 PG |
8818 | fi |
8819 | ||
21be0a5a JB |
8820 | if test "x$ac_ct_LIPO" = x; then |
8821 | LIPO=":" | |
5213506e RW |
8822 | else |
8823 | case $cross_compiling:$ac_tool_warned in | |
8824 | yes:) | |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8826 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8827 | ac_tool_warned=yes ;; | |
8828 | esac | |
21be0a5a | 8829 | LIPO=$ac_ct_LIPO |
5213506e | 8830 | fi |
d58dead8 | 8831 | else |
21be0a5a | 8832 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8833 | fi |
8834 | ||
21be0a5a JB |
8835 | if test -n "$ac_tool_prefix"; then |
8836 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8837 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8839 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8840 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8841 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8842 | else |
21be0a5a JB |
8843 | if test -n "$OTOOL"; then |
8844 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8845 | else |
21be0a5a JB |
8846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8847 | for as_dir in $PATH | |
8848 | do | |
8849 | IFS=$as_save_IFS | |
8850 | test -z "$as_dir" && as_dir=. | |
8851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8853 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8855 | break 2 | |
8856 | fi | |
8857 | done | |
8858 | done | |
8859 | IFS=$as_save_IFS | |
43e02a8a RW |
8860 | |
8861 | fi | |
21be0a5a JB |
8862 | fi |
8863 | OTOOL=$ac_cv_prog_OTOOL | |
8864 | if test -n "$OTOOL"; then | |
8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8866 | $as_echo "$OTOOL" >&6; } | |
8867 | else | |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8869 | $as_echo "no" >&6; } | |
8870 | fi | |
8871 | ||
d58dead8 | 8872 | |
1cf3d07d | 8873 | fi |
21be0a5a JB |
8874 | if test -z "$ac_cv_prog_OTOOL"; then |
8875 | ac_ct_OTOOL=$OTOOL | |
8876 | # Extract the first word of "otool", so it can be a program name with args. | |
8877 | set dummy otool; ac_word=$2 | |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8879 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8880 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8881 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8882 | else |
21be0a5a JB |
8883 | if test -n "$ac_ct_OTOOL"; then |
8884 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8885 | else | |
8886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8887 | for as_dir in $PATH | |
1cf3d07d | 8888 | do |
21be0a5a JB |
8889 | IFS=$as_save_IFS |
8890 | test -z "$as_dir" && as_dir=. | |
8891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8893 | ac_cv_prog_ac_ct_OTOOL="otool" |
8894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8895 | break 2 | |
8896 | fi | |
8897 | done | |
8898 | done | |
8899 | IFS=$as_save_IFS | |
6de9cd9a | 8900 | |
21be0a5a JB |
8901 | fi |
8902 | fi | |
8903 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8904 | if test -n "$ac_ct_OTOOL"; then | |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8906 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 8907 | else |
21be0a5a JB |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8909 | $as_echo "no" >&6; } | |
1cf3d07d | 8910 | fi |
96b8a615 | 8911 | |
21be0a5a JB |
8912 | if test "x$ac_ct_OTOOL" = x; then |
8913 | OTOOL=":" | |
8914 | else | |
8915 | case $cross_compiling:$ac_tool_warned in | |
8916 | yes:) | |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8919 | ac_tool_warned=yes ;; | |
8920 | esac | |
8921 | OTOOL=$ac_ct_OTOOL | |
8922 | fi | |
1cf3d07d | 8923 | else |
21be0a5a | 8924 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 8925 | fi |
6de9cd9a | 8926 | |
21be0a5a JB |
8927 | if test -n "$ac_tool_prefix"; then |
8928 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8929 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8932 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
8933 | $as_echo_n "(cached) " >&6 |
8934 | else | |
8935 | if test -n "$OTOOL64"; then | |
8936 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8937 | else | |
8938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8939 | for as_dir in $PATH | |
8940 | do | |
8941 | IFS=$as_save_IFS | |
8942 | test -z "$as_dir" && as_dir=. | |
8943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8945 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8947 | break 2 | |
8948 | fi | |
1cf3d07d | 8949 | done |
21be0a5a JB |
8950 | done |
8951 | IFS=$as_save_IFS | |
8952 | ||
8953 | fi | |
8954 | fi | |
8955 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8956 | if test -n "$OTOOL64"; then | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8958 | $as_echo "$OTOOL64" >&6; } | |
8959 | else | |
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8961 | $as_echo "no" >&6; } | |
1cf3d07d | 8962 | fi |
6de9cd9a | 8963 | |
96b8a615 | 8964 | |
1cf3d07d | 8965 | fi |
21be0a5a JB |
8966 | if test -z "$ac_cv_prog_OTOOL64"; then |
8967 | ac_ct_OTOOL64=$OTOOL64 | |
8968 | # Extract the first word of "otool64", so it can be a program name with args. | |
8969 | set dummy otool64; ac_word=$2 | |
8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8972 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 8973 | $as_echo_n "(cached) " >&6 |
96b8a615 | 8974 | else |
21be0a5a JB |
8975 | if test -n "$ac_ct_OTOOL64"; then |
8976 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8977 | else | |
8978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8979 | for as_dir in $PATH | |
96b8a615 | 8980 | do |
21be0a5a JB |
8981 | IFS=$as_save_IFS |
8982 | test -z "$as_dir" && as_dir=. | |
8983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8985 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8987 | break 2 | |
8988 | fi | |
8989 | done | |
8990 | done | |
8991 | IFS=$as_save_IFS | |
96b8a615 | 8992 | |
21be0a5a JB |
8993 | fi |
8994 | fi | |
8995 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8996 | if test -n "$ac_ct_OTOOL64"; then | |
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8998 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 8999 | else |
21be0a5a JB |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9001 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9002 | fi |
9003 | ||
21be0a5a JB |
9004 | if test "x$ac_ct_OTOOL64" = x; then |
9005 | OTOOL64=":" | |
9006 | else | |
9007 | case $cross_compiling:$ac_tool_warned in | |
9008 | yes:) | |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9011 | ac_tool_warned=yes ;; | |
9012 | esac | |
9013 | OTOOL64=$ac_ct_OTOOL64 | |
9014 | fi | |
6de9cd9a | 9015 | else |
21be0a5a | 9016 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9017 | fi |
6de9cd9a | 9018 | |
5213506e | 9019 | |
1cf3d07d | 9020 | |
1cf3d07d SE |
9021 | |
9022 | ||
6de9cd9a | 9023 | |
1cf3d07d | 9024 | |
6de9cd9a | 9025 | |
1cf3d07d | 9026 | |
5213506e | 9027 | |
6de9cd9a | 9028 | |
e87045f3 | 9029 | |
15e92535 | 9030 | |
5213506e | 9031 | |
15e92535 | 9032 | |
15e92535 | 9033 | |
21be0a5a JB |
9034 | |
9035 | ||
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9046 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9047 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9048 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9049 | else |
21be0a5a JB |
9050 | lt_cv_apple_cc_single_mod=no |
9051 | if test -z "${LT_MULTI_MODULE}"; then | |
9052 | # By default we will add the -single_module flag. You can override | |
9053 | # by either setting the environment variable LT_MULTI_MODULE | |
9054 | # non-empty at configure time, or by adding -multi_module to the | |
9055 | # link flags. | |
9056 | rm -rf libconftest.dylib* | |
9057 | echo "int foo(void){return 1;}" > conftest.c | |
9058 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9059 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9060 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9061 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9062 | _lt_result=$? | |
9063 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9064 | lt_cv_apple_cc_single_mod=yes | |
9065 | else | |
9066 | cat conftest.err >&5 | |
9067 | fi | |
9068 | rm -rf libconftest.dylib* | |
9069 | rm -f conftest.* | |
9070 | fi | |
9071 | fi | |
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9073 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9075 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9076 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9077 | $as_echo_n "(cached) " >&6 |
9078 | else | |
9079 | lt_cv_ld_exported_symbols_list=no | |
9080 | save_LDFLAGS=$LDFLAGS | |
9081 | echo "_main" > conftest.sym | |
9082 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9083 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9084 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9085 | fi |
9086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9087 | /* end confdefs.h. */ |
15e92535 | 9088 | |
1cf3d07d SE |
9089 | int |
9090 | main () | |
9091 | { | |
21be0a5a JB |
9092 | |
9093 | ; | |
5213506e | 9094 | return 0; |
1cf3d07d | 9095 | } |
15e92535 | 9096 | _ACEOF |
21be0a5a JB |
9097 | if ac_fn_c_try_link "$LINENO"; then : |
9098 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9099 | else |
21be0a5a | 9100 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9101 | fi |
21be0a5a JB |
9102 | rm -f core conftest.err conftest.$ac_objext \ |
9103 | conftest$ac_exeext conftest.$ac_ext | |
9104 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9105 | |
9106 | fi | |
21be0a5a JB |
9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9108 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9110 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9111 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9112 | $as_echo_n "(cached) " >&6 |
9113 | else | |
9114 | lt_cv_ld_force_load=no | |
9115 | cat > conftest.c << _LT_EOF | |
9116 | int forced_loaded() { return 2;} | |
9117 | _LT_EOF | |
9118 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9119 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9120 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9121 | $AR cru libconftest.a conftest.o 2>&5 | |
9122 | cat > conftest.c << _LT_EOF | |
9123 | int main() { return 0;} | |
9124 | _LT_EOF | |
9125 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9126 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9127 | _lt_result=$? | |
9128 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9129 | lt_cv_ld_force_load=yes | |
9130 | else | |
9131 | cat conftest.err >&5 | |
9132 | fi | |
9133 | rm -f conftest.err libconftest.a conftest conftest.c | |
9134 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9135 | |
9136 | fi | |
21be0a5a JB |
9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9138 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
9139 | case $host_os in | |
9140 | rhapsody* | darwin1.[012]) | |
9141 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
9142 | darwin1.*) | |
9143 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9144 | darwin*) # darwin 5.x on | |
9145 | # if running on 10.5 or later, the deployment target defaults | |
9146 | # to the OS version, if on x86, and 10.4, the deployment | |
9147 | # target defaults to 10.4. Don't you love it? | |
9148 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
9149 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9150 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 9151 | 10.[012][,.]*) |
21be0a5a JB |
9152 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
9153 | 10.*) | |
9154 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9155 | esac | |
9156 | ;; | |
9157 | esac | |
9158 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9159 | _lt_dar_single_mod='$single_module' | |
9160 | fi | |
9161 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9162 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9163 | else | |
9164 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9165 | fi | |
9166 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9167 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9168 | else | |
9169 | _lt_dsymutil= | |
9170 | fi | |
9171 | ;; | |
9172 | esac | |
1cf3d07d | 9173 | |
1cf3d07d | 9174 | for ac_header in dlfcn.h |
5213506e RW |
9175 | do : |
9176 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9177 | " | |
22e05272 | 9178 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9179 | cat >>confdefs.h <<_ACEOF |
5213506e | 9180 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9181 | _ACEOF |
9cdc381b | 9182 | |
1cf3d07d SE |
9183 | fi |
9184 | ||
9185 | done | |
9186 | ||
9187 | ||
9188 | ||
43e02a8a RW |
9189 | |
9190 | ||
d58dead8 PG |
9191 | # Set options |
9192 | ||
9193 | ||
9194 | ||
9195 | ||
9196 | enable_win32_dll=no | |
9197 | ||
9198 | ||
5213506e RW |
9199 | # Check whether --enable-shared was given. |
9200 | if test "${enable_shared+set}" = set; then : | |
9201 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9202 | case $enableval in |
9203 | yes) enable_shared=yes ;; | |
9204 | no) enable_shared=no ;; | |
9205 | *) | |
9206 | enable_shared=no | |
9207 | # Look at the argument we got. We use all the common list separators. | |
9208 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9209 | for pkg in $enableval; do | |
9210 | IFS="$lt_save_ifs" | |
9211 | if test "X$pkg" = "X$p"; then | |
9212 | enable_shared=yes | |
9213 | fi | |
9214 | done | |
9215 | IFS="$lt_save_ifs" | |
9216 | ;; | |
9217 | esac | |
9218 | else | |
9219 | enable_shared=yes | |
5213506e RW |
9220 | fi |
9221 | ||
d58dead8 PG |
9222 | |
9223 | ||
9224 | ||
9225 | ||
9226 | ||
9227 | ||
9228 | ||
9229 | ||
5213506e RW |
9230 | # Check whether --enable-static was given. |
9231 | if test "${enable_static+set}" = set; then : | |
9232 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9233 | case $enableval in |
9234 | yes) enable_static=yes ;; | |
9235 | no) enable_static=no ;; | |
9236 | *) | |
9237 | enable_static=no | |
9238 | # Look at the argument we got. We use all the common list separators. | |
9239 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9240 | for pkg in $enableval; do | |
9241 | IFS="$lt_save_ifs" | |
9242 | if test "X$pkg" = "X$p"; then | |
9243 | enable_static=yes | |
9244 | fi | |
9245 | done | |
9246 | IFS="$lt_save_ifs" | |
9247 | ;; | |
9248 | esac | |
9249 | else | |
9250 | enable_static=yes | |
5213506e RW |
9251 | fi |
9252 | ||
d58dead8 PG |
9253 | |
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
5213506e RW |
9262 | # Check whether --with-pic was given. |
9263 | if test "${with_pic+set}" = set; then : | |
9264 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9265 | else |
9266 | pic_mode=default | |
5213506e RW |
9267 | fi |
9268 | ||
d58dead8 PG |
9269 | |
9270 | test -z "$pic_mode" && pic_mode=default | |
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
5213506e RW |
9278 | # Check whether --enable-fast-install was given. |
9279 | if test "${enable_fast_install+set}" = set; then : | |
9280 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9281 | case $enableval in |
9282 | yes) enable_fast_install=yes ;; | |
9283 | no) enable_fast_install=no ;; | |
9284 | *) | |
9285 | enable_fast_install=no | |
9286 | # Look at the argument we got. We use all the common list separators. | |
9287 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9288 | for pkg in $enableval; do | |
9289 | IFS="$lt_save_ifs" | |
9290 | if test "X$pkg" = "X$p"; then | |
9291 | enable_fast_install=yes | |
9292 | fi | |
9293 | done | |
9294 | IFS="$lt_save_ifs" | |
9295 | ;; | |
9296 | esac | |
9297 | else | |
9298 | enable_fast_install=yes | |
5213506e RW |
9299 | fi |
9300 | ||
d58dead8 PG |
9301 | |
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
1cf3d07d SE |
9311 | # This can be used to rebuild libtool when needed |
9312 | LIBTOOL_DEPS="$ltmain" | |
9313 | ||
9314 | # Always use our own libtool. | |
9315 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
43e02a8a | 9339 | |
1cf3d07d SE |
9340 | |
9341 | ||
9342 | test -z "$LN_S" && LN_S="ln -s" | |
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9cdc381b | 9348 | |
1cf3d07d SE |
9349 | |
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | if test -n "${ZSH_VERSION+set}" ; then | |
9358 | setopt NO_GLOB_SUBST | |
9cdc381b | 9359 | fi |
9cdc381b | 9360 | |
5213506e RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9362 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9363 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9364 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9365 | else |
1cf3d07d SE |
9366 | rm -f .libs 2>/dev/null |
9367 | mkdir .libs 2>/dev/null | |
9368 | if test -d .libs; then | |
9369 | lt_cv_objdir=.libs | |
9370 | else | |
9371 | # MS-DOS does not allow filenames that begin with a dot. | |
9372 | lt_cv_objdir=_libs | |
9cdc381b | 9373 | fi |
1cf3d07d | 9374 | rmdir .libs 2>/dev/null |
9cdc381b | 9375 | fi |
5213506e RW |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9377 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9378 | objdir=$lt_cv_objdir |
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9cdc381b BD |
9383 | |
9384 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9385 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9386 | _ACEOF |
9387 | ||
1cf3d07d SE |
9388 | |
9389 | ||
9390 | ||
1cf3d07d SE |
9391 | case $host_os in |
9392 | aix3*) | |
9393 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9394 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9395 | # vanish in a puff of smoke. | |
9396 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9397 | COLLECT_NAMES= | |
9398 | export COLLECT_NAMES | |
9399 | fi | |
9400 | ;; | |
9401 | esac | |
9402 | ||
1cf3d07d SE |
9403 | # Global variables: |
9404 | ofile=libtool | |
9405 | can_build_shared=yes | |
9406 | ||
9407 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9408 | # which needs '.lib'). | |
9409 | libext=a | |
9410 | ||
9411 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9412 | ||
9413 | old_CC="$CC" | |
9414 | old_CFLAGS="$CFLAGS" | |
9415 | ||
9416 | # Set sane defaults for various variables | |
9417 | test -z "$CC" && CC=cc | |
9418 | test -z "$LTCC" && LTCC=$CC | |
9419 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9420 | test -z "$LD" && LD=ld | |
9421 | test -z "$ac_objext" && ac_objext=o | |
9422 | ||
9423 | for cc_temp in $compiler""; do | |
9424 | case $cc_temp in | |
9425 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9426 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9427 | \-*) ;; | |
9428 | *) break;; | |
9429 | esac | |
9430 | done | |
43e02a8a | 9431 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9432 | |
9433 | ||
9434 | # Only perform the check for file, if the check method requires it | |
9435 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9436 | case $deplibs_check_method in | |
9437 | file_magic*) | |
9438 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9440 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9441 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9442 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9443 | else |
1cf3d07d SE |
9444 | case $MAGIC_CMD in |
9445 | [\\/*] | ?:[\\/]*) | |
9446 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9447 | ;; | |
9448 | *) | |
9449 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9450 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9451 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9452 | for ac_dir in $ac_dummy; do | |
9453 | IFS="$lt_save_ifs" | |
9454 | test -z "$ac_dir" && ac_dir=. | |
9455 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9456 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9457 | if test -n "$file_magic_test_file"; then | |
9458 | case $deplibs_check_method in | |
9459 | "file_magic "*) | |
9460 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9461 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9462 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9463 | $EGREP "$file_magic_regex" > /dev/null; then | |
9464 | : | |
9465 | else | |
9466 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9467 | |
1cf3d07d SE |
9468 | *** Warning: the command libtool uses to detect shared libraries, |
9469 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9470 | *** The result is that libtool may fail to recognize shared libraries | |
9471 | *** as such. This will affect the creation of libtool libraries that | |
9472 | *** depend on shared libraries, but programs linked with such libtool | |
9473 | *** libraries will work regardless of this problem. Nevertheless, you | |
9474 | *** may want to report the problem to your system manager and/or to | |
9475 | *** bug-libtool@gnu.org | |
9476 | ||
9477 | _LT_EOF | |
9478 | fi ;; | |
9479 | esac | |
9480 | fi | |
9481 | break | |
9482 | fi | |
9483 | done | |
9484 | IFS="$lt_save_ifs" | |
9485 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9486 | ;; | |
9487 | esac | |
9488 | fi | |
9489 | ||
9490 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9491 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9493 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9494 | else |
5213506e RW |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9496 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9497 | fi |
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9504 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9506 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9507 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9508 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9509 | else |
9510 | case $MAGIC_CMD in | |
9511 | [\\/*] | ?:[\\/]*) | |
9512 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9513 | ;; | |
9514 | *) | |
9515 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9516 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9517 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9518 | for ac_dir in $ac_dummy; do | |
9519 | IFS="$lt_save_ifs" | |
9520 | test -z "$ac_dir" && ac_dir=. | |
9521 | if test -f $ac_dir/file; then | |
9522 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9523 | if test -n "$file_magic_test_file"; then | |
9524 | case $deplibs_check_method in | |
9525 | "file_magic "*) | |
9526 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9527 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9528 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9529 | $EGREP "$file_magic_regex" > /dev/null; then | |
9530 | : | |
9531 | else | |
9532 | cat <<_LT_EOF 1>&2 | |
9533 | ||
9534 | *** Warning: the command libtool uses to detect shared libraries, | |
9535 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9536 | *** The result is that libtool may fail to recognize shared libraries | |
9537 | *** as such. This will affect the creation of libtool libraries that | |
9538 | *** depend on shared libraries, but programs linked with such libtool | |
9539 | *** libraries will work regardless of this problem. Nevertheless, you | |
9540 | *** may want to report the problem to your system manager and/or to | |
9541 | *** bug-libtool@gnu.org | |
9542 | ||
9543 | _LT_EOF | |
9544 | fi ;; | |
9545 | esac | |
9546 | fi | |
9547 | break | |
9548 | fi | |
9549 | done | |
9550 | IFS="$lt_save_ifs" | |
9551 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9552 | ;; | |
9553 | esac | |
9554 | fi | |
9555 | ||
9556 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9557 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9559 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9560 | else |
5213506e RW |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9562 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9563 | fi |
9564 | ||
9565 | ||
9566 | else | |
9567 | MAGIC_CMD=: | |
9568 | fi | |
9569 | fi | |
9570 | ||
9571 | fi | |
9572 | ;; | |
9573 | esac | |
9574 | ||
9575 | # Use C for the default configuration in the libtool script | |
9576 | ||
9577 | lt_save_CC="$CC" | |
9578 | ac_ext=c | |
9579 | ac_cpp='$CPP $CPPFLAGS' | |
9580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9583 | ||
9584 | ||
9585 | # Source file extension for C test sources. | |
9586 | ac_ext=c | |
9587 | ||
9588 | # Object file extension for compiled C test sources. | |
9589 | objext=o | |
9590 | objext=$objext | |
9591 | ||
9592 | # Code to be used in simple compile tests | |
9593 | lt_simple_compile_test_code="int some_variable = 0;" | |
9594 | ||
9595 | # Code to be used in simple link tests | |
9596 | lt_simple_link_test_code='int main(){return(0);}' | |
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | # If no C compiler was specified, use CC. | |
9605 | LTCC=${LTCC-"$CC"} | |
9606 | ||
9607 | # If no C compiler flags were specified, use CFLAGS. | |
9608 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9609 | ||
9610 | # Allow CC to be a program name with arguments. | |
9611 | compiler=$CC | |
9612 | ||
9613 | # Save the default compiler, since it gets overwritten when the other | |
9614 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9615 | compiler_DEFAULT=$CC | |
9616 | ||
9617 | # save warnings/boilerplate of simple test code | |
9618 | ac_outfile=conftest.$ac_objext | |
9619 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9620 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9621 | _lt_compiler_boilerplate=`cat conftest.err` | |
9622 | $RM conftest* | |
9623 | ||
9624 | ac_outfile=conftest.$ac_objext | |
9625 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9626 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9627 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9628 | $RM -r conftest* |
1cf3d07d SE |
9629 | |
9630 | ||
9631 | ## CAVEAT EMPTOR: | |
9632 | ## There is no encapsulation within the following macros, do not change | |
9633 | ## the running order or otherwise move them around unless you know exactly | |
9634 | ## what you are doing... | |
9635 | if test -n "$compiler"; then | |
9636 | ||
9637 | lt_prog_compiler_no_builtin_flag= | |
9638 | ||
9639 | if test "$GCC" = yes; then | |
43e02a8a RW |
9640 | case $cc_basename in |
9641 | nvcc*) | |
9642 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9643 | *) | |
9644 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9645 | esac | |
1cf3d07d | 9646 | |
5213506e RW |
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9648 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9649 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9650 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9651 | else |
9652 | lt_cv_prog_compiler_rtti_exceptions=no | |
9653 | ac_outfile=conftest.$ac_objext | |
9654 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9655 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9656 | # Insert the option either (1) after the last *FLAGS variable, or | |
9657 | # (2) before a word containing "conftest.", or (3) at the end. | |
9658 | # Note that $ac_compile itself does not contain backslashes and begins | |
9659 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9660 | # The option is referenced via a variable to avoid confusing sed. | |
9661 | lt_compile=`echo "$ac_compile" | $SED \ | |
9662 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9663 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9664 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9665 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9666 | (eval "$lt_compile" 2>conftest.err) |
9667 | ac_status=$? | |
9668 | cat conftest.err >&5 | |
43e02a8a | 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9670 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9671 | # The compiler can only warn and ignore the option if not recognized | |
9672 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9673 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9674 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9675 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9676 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9677 | fi | |
9678 | fi | |
9679 | $RM conftest* | |
9680 | ||
9681 | fi | |
5213506e RW |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9683 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9684 | |
9685 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9686 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9687 | else | |
9688 | : | |
9689 | fi | |
9690 | ||
9691 | fi | |
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | lt_prog_compiler_wl= | |
9699 | lt_prog_compiler_pic= | |
9700 | lt_prog_compiler_static= | |
9701 | ||
5213506e RW |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9703 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9704 | |
9705 | if test "$GCC" = yes; then | |
9706 | lt_prog_compiler_wl='-Wl,' | |
9707 | lt_prog_compiler_static='-static' | |
9708 | ||
9709 | case $host_os in | |
9710 | aix*) | |
9711 | # All AIX code is PIC. | |
9712 | if test "$host_cpu" = ia64; then | |
9713 | # AIX 5 now supports IA64 processor | |
9714 | lt_prog_compiler_static='-Bstatic' | |
9715 | fi | |
bad8a4a7 | 9716 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9717 | ;; |
9718 | ||
9719 | amigaos*) | |
d58dead8 PG |
9720 | case $host_cpu in |
9721 | powerpc) | |
9722 | # see comment about AmigaOS4 .so support | |
9723 | lt_prog_compiler_pic='-fPIC' | |
9724 | ;; | |
9725 | m68k) | |
9726 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9727 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9728 | # like `-m68040'. | |
9729 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9730 | ;; | |
9731 | esac | |
1cf3d07d SE |
9732 | ;; |
9733 | ||
9734 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9735 | # PIC is the default for these OSes. | |
9736 | ;; | |
9737 | ||
d58dead8 | 9738 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9739 | # This hack is so that the source file can tell whether it is being |
9740 | # built for inclusion in a dll (and should export symbols for example). | |
9741 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9742 | # (--disable-auto-import) libraries | |
9743 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9744 | ;; | |
9745 | ||
9746 | darwin* | rhapsody*) | |
9747 | # PIC is the default on this platform | |
9748 | # Common symbols not allowed in MH_DYLIB files | |
9749 | lt_prog_compiler_pic='-fno-common' | |
9750 | ;; | |
9751 | ||
43e02a8a RW |
9752 | haiku*) |
9753 | # PIC is the default for Haiku. | |
9754 | # The "-static" flag exists, but is broken. | |
9755 | lt_prog_compiler_static= | |
9756 | ;; | |
9757 | ||
1cf3d07d | 9758 | hpux*) |
d58dead8 PG |
9759 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9760 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9761 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9762 | case $host_cpu in |
d58dead8 | 9763 | hppa*64*) |
1cf3d07d SE |
9764 | # +Z the default |
9765 | ;; | |
9766 | *) | |
9767 | lt_prog_compiler_pic='-fPIC' | |
9768 | ;; | |
9769 | esac | |
9770 | ;; | |
9771 | ||
9772 | interix[3-9]*) | |
9773 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9774 | # Instead, we relocate shared libraries at runtime. | |
9775 | ;; | |
9776 | ||
9777 | msdosdjgpp*) | |
9778 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9779 | # on systems that don't support them. | |
9780 | lt_prog_compiler_can_build_shared=no | |
9781 | enable_shared=no | |
9782 | ;; | |
9783 | ||
9784 | *nto* | *qnx*) | |
9785 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9786 | # it will coredump. | |
9787 | lt_prog_compiler_pic='-fPIC -shared' | |
9788 | ;; | |
9789 | ||
9790 | sysv4*MP*) | |
9791 | if test -d /usr/nec; then | |
9792 | lt_prog_compiler_pic=-Kconform_pic | |
9793 | fi | |
9794 | ;; | |
9795 | ||
9796 | *) | |
9797 | lt_prog_compiler_pic='-fPIC' | |
9798 | ;; | |
9799 | esac | |
43e02a8a RW |
9800 | |
9801 | case $cc_basename in | |
9802 | nvcc*) # Cuda Compiler Driver 2.2 | |
9803 | lt_prog_compiler_wl='-Xlinker ' | |
9804 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9805 | ;; | |
9806 | esac | |
1cf3d07d SE |
9807 | else |
9808 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9809 | case $host_os in | |
9810 | aix*) | |
9811 | lt_prog_compiler_wl='-Wl,' | |
9812 | if test "$host_cpu" = ia64; then | |
9813 | # AIX 5 now supports IA64 processor | |
9814 | lt_prog_compiler_static='-Bstatic' | |
9815 | else | |
9816 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9817 | fi | |
9818 | ;; | |
1cf3d07d | 9819 | |
d58dead8 | 9820 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9821 | # This hack is so that the source file can tell whether it is being |
9822 | # built for inclusion in a dll (and should export symbols for example). | |
9823 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9824 | ;; | |
9825 | ||
9826 | hpux9* | hpux10* | hpux11*) | |
9827 | lt_prog_compiler_wl='-Wl,' | |
9828 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9829 | # not for PA HP-UX. | |
9830 | case $host_cpu in | |
9831 | hppa*64*|ia64*) | |
9832 | # +Z the default | |
9833 | ;; | |
9834 | *) | |
9835 | lt_prog_compiler_pic='+Z' | |
9836 | ;; | |
9837 | esac | |
9838 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9839 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9840 | ;; | |
9841 | ||
9842 | irix5* | irix6* | nonstopux*) | |
9843 | lt_prog_compiler_wl='-Wl,' | |
9844 | # PIC (with -KPIC) is the default. | |
9845 | lt_prog_compiler_static='-non_shared' | |
9846 | ;; | |
9847 | ||
7a9d3fe8 | 9848 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9849 | case $cc_basename in |
d58dead8 PG |
9850 | # old Intel for x86_64 which still supported -KPIC. |
9851 | ecc*) | |
1cf3d07d SE |
9852 | lt_prog_compiler_wl='-Wl,' |
9853 | lt_prog_compiler_pic='-KPIC' | |
9854 | lt_prog_compiler_static='-static' | |
9855 | ;; | |
d58dead8 PG |
9856 | # icc used to be incompatible with GCC. |
9857 | # ICC 10 doesn't accept -KPIC any more. | |
9858 | icc* | ifort*) | |
9859 | lt_prog_compiler_wl='-Wl,' | |
9860 | lt_prog_compiler_pic='-fPIC' | |
9861 | lt_prog_compiler_static='-static' | |
9862 | ;; | |
9863 | # Lahey Fortran 8.1. | |
9864 | lf95*) | |
9865 | lt_prog_compiler_wl='-Wl,' | |
9866 | lt_prog_compiler_pic='--shared' | |
9867 | lt_prog_compiler_static='--static' | |
9868 | ;; | |
43e02a8a | 9869 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9870 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9871 | # which looks to be a dead project) | |
9872 | lt_prog_compiler_wl='-Wl,' | |
9873 | lt_prog_compiler_pic='-fpic' | |
9874 | lt_prog_compiler_static='-Bstatic' | |
9875 | ;; | |
9876 | ccc*) | |
9877 | lt_prog_compiler_wl='-Wl,' | |
9878 | # All Alpha code is PIC. | |
9879 | lt_prog_compiler_static='-non_shared' | |
9880 | ;; | |
43e02a8a RW |
9881 | xl* | bgxl* | bgf* | mpixl*) |
9882 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9883 | lt_prog_compiler_wl='-Wl,' |
9884 | lt_prog_compiler_pic='-qpic' | |
9885 | lt_prog_compiler_static='-qstaticlink' | |
9886 | ;; | |
1cf3d07d SE |
9887 | *) |
9888 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9889 | *Sun\ F* | *Sun*Fortran*) |
9890 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9891 | lt_prog_compiler_pic='-KPIC' |
9892 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9893 | lt_prog_compiler_wl='' |
1cf3d07d | 9894 | ;; |
43e02a8a RW |
9895 | *Sun\ C*) |
9896 | # Sun C 5.9 | |
1cf3d07d SE |
9897 | lt_prog_compiler_pic='-KPIC' |
9898 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9899 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9900 | ;; |
9901 | esac | |
9902 | ;; | |
9903 | esac | |
9904 | ;; | |
9905 | ||
9906 | newsos6) | |
9907 | lt_prog_compiler_pic='-KPIC' | |
9908 | lt_prog_compiler_static='-Bstatic' | |
9909 | ;; | |
9910 | ||
9911 | *nto* | *qnx*) | |
9912 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9913 | # it will coredump. | |
9914 | lt_prog_compiler_pic='-fPIC -shared' | |
9915 | ;; | |
9916 | ||
9917 | osf3* | osf4* | osf5*) | |
9918 | lt_prog_compiler_wl='-Wl,' | |
9919 | # All OSF/1 code is PIC. | |
9920 | lt_prog_compiler_static='-non_shared' | |
9921 | ;; | |
9922 | ||
9923 | rdos*) | |
9924 | lt_prog_compiler_static='-non_shared' | |
9925 | ;; | |
9926 | ||
9927 | solaris*) | |
9928 | lt_prog_compiler_pic='-KPIC' | |
9929 | lt_prog_compiler_static='-Bstatic' | |
9930 | case $cc_basename in | |
9931 | f77* | f90* | f95*) | |
9932 | lt_prog_compiler_wl='-Qoption ld ';; | |
9933 | *) | |
9934 | lt_prog_compiler_wl='-Wl,';; | |
9935 | esac | |
9936 | ;; | |
9937 | ||
9938 | sunos4*) | |
9939 | lt_prog_compiler_wl='-Qoption ld ' | |
9940 | lt_prog_compiler_pic='-PIC' | |
9941 | lt_prog_compiler_static='-Bstatic' | |
9942 | ;; | |
9943 | ||
9944 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9945 | lt_prog_compiler_wl='-Wl,' | |
9946 | lt_prog_compiler_pic='-KPIC' | |
9947 | lt_prog_compiler_static='-Bstatic' | |
9948 | ;; | |
9949 | ||
9950 | sysv4*MP*) | |
9951 | if test -d /usr/nec ;then | |
9952 | lt_prog_compiler_pic='-Kconform_pic' | |
9953 | lt_prog_compiler_static='-Bstatic' | |
9954 | fi | |
9955 | ;; | |
9956 | ||
9957 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9958 | lt_prog_compiler_wl='-Wl,' | |
9959 | lt_prog_compiler_pic='-KPIC' | |
9960 | lt_prog_compiler_static='-Bstatic' | |
9961 | ;; | |
9962 | ||
9963 | unicos*) | |
9964 | lt_prog_compiler_wl='-Wl,' | |
9965 | lt_prog_compiler_can_build_shared=no | |
9966 | ;; | |
9967 | ||
9968 | uts4*) | |
9969 | lt_prog_compiler_pic='-pic' | |
9970 | lt_prog_compiler_static='-Bstatic' | |
9971 | ;; | |
9972 | ||
9973 | *) | |
9974 | lt_prog_compiler_can_build_shared=no | |
9975 | ;; | |
9976 | esac | |
9977 | fi | |
9978 | ||
9979 | case $host_os in | |
9980 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9981 | *djgpp*) | |
9982 | lt_prog_compiler_pic= | |
9983 | ;; | |
9984 | *) | |
9985 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9986 | ;; | |
9987 | esac | |
5213506e RW |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9989 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
9990 | |
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | # | |
9997 | # Check to make sure the PIC flag actually works. | |
9998 | # | |
9999 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10001 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10002 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10003 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10004 | else |
d58dead8 | 10005 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10006 | ac_outfile=conftest.$ac_objext |
10007 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10008 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10009 | # Insert the option either (1) after the last *FLAGS variable, or | |
10010 | # (2) before a word containing "conftest.", or (3) at the end. | |
10011 | # Note that $ac_compile itself does not contain backslashes and begins | |
10012 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10013 | # The option is referenced via a variable to avoid confusing sed. | |
10014 | lt_compile=`echo "$ac_compile" | $SED \ | |
10015 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10016 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10017 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10018 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10019 | (eval "$lt_compile" 2>conftest.err) |
10020 | ac_status=$? | |
10021 | cat conftest.err >&5 | |
43e02a8a | 10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10023 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10024 | # The compiler can only warn and ignore the option if not recognized | |
10025 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10026 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10027 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10028 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10029 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10030 | fi |
10031 | fi | |
10032 | $RM conftest* | |
10033 | ||
10034 | fi | |
5213506e RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10036 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10037 | |
d58dead8 | 10038 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10039 | case $lt_prog_compiler_pic in |
10040 | "" | " "*) ;; | |
10041 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10042 | esac | |
10043 | else | |
10044 | lt_prog_compiler_pic= | |
10045 | lt_prog_compiler_can_build_shared=no | |
10046 | fi | |
10047 | ||
10048 | fi | |
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | # | |
10056 | # Check to make sure the static flag actually works. | |
10057 | # | |
10058 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10060 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10061 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10062 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10063 | else |
d58dead8 | 10064 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10065 | save_LDFLAGS="$LDFLAGS" |
10066 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10067 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10068 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10069 | # The linker can only warn and ignore the option if not recognized | |
10070 | # So say no if there are warnings | |
10071 | if test -s conftest.err; then | |
10072 | # Append any errors to the config.log. | |
10073 | cat conftest.err 1>&5 | |
43e02a8a | 10074 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10075 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10076 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10077 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10078 | fi |
10079 | else | |
d58dead8 | 10080 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10081 | fi |
10082 | fi | |
d58dead8 | 10083 | $RM -r conftest* |
1cf3d07d SE |
10084 | LDFLAGS="$save_LDFLAGS" |
10085 | ||
10086 | fi | |
5213506e RW |
10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10088 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10089 | |
d58dead8 | 10090 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10091 | : |
10092 | else | |
10093 | lt_prog_compiler_static= | |
10094 | fi | |
10095 | ||
10096 | ||
10097 | ||
10098 | ||
10099 | ||
10100 | ||
10101 | ||
5213506e RW |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10103 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10104 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10105 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10106 | else |
10107 | lt_cv_prog_compiler_c_o=no | |
10108 | $RM -r conftest 2>/dev/null | |
10109 | mkdir conftest | |
10110 | cd conftest | |
10111 | mkdir out | |
10112 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10113 | ||
10114 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10115 | # Insert the option either (1) after the last *FLAGS variable, or | |
10116 | # (2) before a word containing "conftest.", or (3) at the end. | |
10117 | # Note that $ac_compile itself does not contain backslashes and begins | |
10118 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10119 | lt_compile=`echo "$ac_compile" | $SED \ | |
10120 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10121 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10122 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10123 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10124 | (eval "$lt_compile" 2>out/conftest.err) |
10125 | ac_status=$? | |
10126 | cat out/conftest.err >&5 | |
43e02a8a | 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10128 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10129 | then | |
10130 | # The compiler can only warn and ignore the option if not recognized | |
10131 | # So say no if there are warnings | |
43e02a8a | 10132 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10133 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10134 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10135 | lt_cv_prog_compiler_c_o=yes | |
10136 | fi | |
10137 | fi | |
10138 | chmod u+w . 2>&5 | |
10139 | $RM conftest* | |
10140 | # SGI C++ compiler will create directory out/ii_files/ for | |
10141 | # template instantiation | |
10142 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10143 | $RM out/* && rmdir out | |
10144 | cd .. | |
10145 | $RM -r conftest | |
10146 | $RM conftest* | |
10147 | ||
10148 | fi | |
5213506e RW |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10150 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10151 | |
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
5213506e RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10158 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10159 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10160 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10161 | else |
10162 | lt_cv_prog_compiler_c_o=no | |
10163 | $RM -r conftest 2>/dev/null | |
10164 | mkdir conftest | |
10165 | cd conftest | |
10166 | mkdir out | |
10167 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10168 | ||
10169 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10170 | # Insert the option either (1) after the last *FLAGS variable, or | |
10171 | # (2) before a word containing "conftest.", or (3) at the end. | |
10172 | # Note that $ac_compile itself does not contain backslashes and begins | |
10173 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10174 | lt_compile=`echo "$ac_compile" | $SED \ | |
10175 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10176 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10177 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10178 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10179 | (eval "$lt_compile" 2>out/conftest.err) |
10180 | ac_status=$? | |
10181 | cat out/conftest.err >&5 | |
43e02a8a | 10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10183 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10184 | then | |
10185 | # The compiler can only warn and ignore the option if not recognized | |
10186 | # So say no if there are warnings | |
43e02a8a | 10187 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10188 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10189 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10190 | lt_cv_prog_compiler_c_o=yes | |
10191 | fi | |
10192 | fi | |
10193 | chmod u+w . 2>&5 | |
10194 | $RM conftest* | |
10195 | # SGI C++ compiler will create directory out/ii_files/ for | |
10196 | # template instantiation | |
10197 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10198 | $RM out/* && rmdir out | |
10199 | cd .. | |
10200 | $RM -r conftest | |
10201 | $RM conftest* | |
10202 | ||
10203 | fi | |
5213506e RW |
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10205 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10206 | |
10207 | ||
10208 | ||
10209 | ||
10210 | hard_links="nottested" | |
10211 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10212 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10214 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10215 | hard_links=yes |
10216 | $RM conftest* | |
10217 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10218 | touch conftest.a | |
10219 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10220 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10222 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10223 | if test "$hard_links" = no; then |
5213506e RW |
10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10225 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10226 | need_locks=warn |
10227 | fi | |
10228 | else | |
10229 | need_locks=no | |
10230 | fi | |
10231 | ||
10232 | ||
10233 | ||
10234 | ||
10235 | ||
10236 | ||
5213506e RW |
10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10238 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10239 | |
10240 | runpath_var= | |
10241 | allow_undefined_flag= | |
10242 | always_export_symbols=no | |
10243 | archive_cmds= | |
10244 | archive_expsym_cmds= | |
10245 | compiler_needs_object=no | |
10246 | enable_shared_with_static_runtimes=no | |
10247 | export_dynamic_flag_spec= | |
10248 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10249 | hardcode_automatic=no | |
10250 | hardcode_direct=no | |
10251 | hardcode_direct_absolute=no | |
10252 | hardcode_libdir_flag_spec= | |
10253 | hardcode_libdir_flag_spec_ld= | |
10254 | hardcode_libdir_separator= | |
10255 | hardcode_minus_L=no | |
10256 | hardcode_shlibpath_var=unsupported | |
10257 | inherit_rpath=no | |
10258 | link_all_deplibs=unknown | |
10259 | module_cmds= | |
10260 | module_expsym_cmds= | |
10261 | old_archive_from_new_cmds= | |
10262 | old_archive_from_expsyms_cmds= | |
10263 | thread_safe_flag_spec= | |
10264 | whole_archive_flag_spec= | |
10265 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10266 | # included in the symbol list | |
10267 | include_expsyms= | |
10268 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10269 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10270 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10271 | # as well as any symbol that contains `d'. | |
d58dead8 | 10272 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10273 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10274 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10275 | # the symbol is explicitly referenced. Since portable code cannot | |
10276 | # rely on this symbol name, it's probably fine to never include it in | |
10277 | # preloaded symbol tables. | |
d58dead8 | 10278 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10279 | extract_expsyms_cmds= |
10280 | ||
10281 | case $host_os in | |
d58dead8 | 10282 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10283 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10284 | # When not using gcc, we currently assume that we are using | |
10285 | # Microsoft Visual C++. | |
10286 | if test "$GCC" != yes; then | |
10287 | with_gnu_ld=no | |
10288 | fi | |
10289 | ;; | |
10290 | interix*) | |
10291 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10292 | with_gnu_ld=yes | |
10293 | ;; | |
10294 | openbsd*) | |
10295 | with_gnu_ld=no | |
10296 | ;; | |
10297 | esac | |
10298 | ||
10299 | ld_shlibs=yes | |
43e02a8a RW |
10300 | |
10301 | # On some targets, GNU ld is compatible enough with the native linker | |
10302 | # that we're better off using the native interface for both. | |
10303 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10304 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10305 | case $host_os in |
10306 | aix*) | |
10307 | # The AIX port of GNU ld has always aspired to compatibility | |
10308 | # with the native linker. However, as the warning in the GNU ld | |
10309 | # block says, versions before 2.19.5* couldn't really create working | |
10310 | # shared libraries, regardless of the interface used. | |
10311 | case `$LD -v 2>&1` in | |
10312 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10313 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10314 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10315 | *) | |
10316 | lt_use_gnu_ld_interface=yes | |
10317 | ;; | |
10318 | esac | |
10319 | ;; | |
10320 | *) | |
10321 | lt_use_gnu_ld_interface=yes | |
10322 | ;; | |
10323 | esac | |
10324 | fi | |
10325 | ||
10326 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10327 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10328 | wlarc='${wl}' | |
10329 | ||
10330 | # Set some defaults for GNU ld with shared library support. These | |
10331 | # are reset later if shared libraries are not supported. Putting them | |
10332 | # here allows them to be overridden if necessary. | |
10333 | runpath_var=LD_RUN_PATH | |
10334 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10335 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10336 | # ancient GNU ld didn't support --whole-archive et. al. | |
10337 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10338 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10339 | else | |
10340 | whole_archive_flag_spec= | |
10341 | fi | |
10342 | supports_anon_versioning=no | |
10343 | case `$LD -v 2>&1` in | |
43e02a8a | 10344 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10345 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10346 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10347 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10348 | *\ 2.11.*) ;; # other 2.11 versions | |
10349 | *) supports_anon_versioning=yes ;; | |
10350 | esac | |
10351 | ||
10352 | # See if GNU ld supports shared libraries. | |
10353 | case $host_os in | |
4f6bebc3 | 10354 | aix[3-9]*) |
1cf3d07d SE |
10355 | # On AIX/PPC, the GNU linker is very broken |
10356 | if test "$host_cpu" != ia64; then | |
10357 | ld_shlibs=no | |
10358 | cat <<_LT_EOF 1>&2 | |
10359 | ||
43e02a8a | 10360 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10361 | *** to be unable to reliably create shared libraries on AIX. |
10362 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10363 | *** really care for shared libraries, you may want to install binutils |
10364 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10365 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10366 | |
10367 | _LT_EOF | |
10368 | fi | |
10369 | ;; | |
10370 | ||
10371 | amigaos*) | |
d58dead8 PG |
10372 | case $host_cpu in |
10373 | powerpc) | |
10374 | # see comment about AmigaOS4 .so support | |
10375 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10376 | archive_expsym_cmds='' | |
10377 | ;; | |
10378 | m68k) | |
10379 | 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)' | |
10380 | hardcode_libdir_flag_spec='-L$libdir' | |
10381 | hardcode_minus_L=yes | |
10382 | ;; | |
10383 | esac | |
1cf3d07d SE |
10384 | ;; |
10385 | ||
10386 | beos*) | |
10387 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10388 | allow_undefined_flag=unsupported | |
10389 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10390 | # support --undefined. This deserves some investigation. FIXME | |
10391 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10392 | else | |
10393 | ld_shlibs=no | |
10394 | fi | |
10395 | ;; | |
10396 | ||
d58dead8 | 10397 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10398 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10399 | # as there is no search path for DLLs. | |
10400 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10401 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10402 | allow_undefined_flag=unsupported |
10403 | always_export_symbols=no | |
10404 | enable_shared_with_static_runtimes=yes | |
10405 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10406 | ||
10407 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10408 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10409 | # If the export-symbols file already is a .def file (1st line | |
10410 | # is EXPORTS), use it as is; otherwise, prepend... | |
10411 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10412 | cp $export_symbols $output_objdir/$soname.def; | |
10413 | else | |
10414 | echo EXPORTS > $output_objdir/$soname.def; | |
10415 | cat $export_symbols >> $output_objdir/$soname.def; | |
10416 | fi~ | |
10417 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10418 | else | |
10419 | ld_shlibs=no | |
10420 | fi | |
10421 | ;; | |
10422 | ||
43e02a8a RW |
10423 | haiku*) |
10424 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10425 | link_all_deplibs=yes | |
10426 | ;; | |
10427 | ||
1cf3d07d SE |
10428 | interix[3-9]*) |
10429 | hardcode_direct=no | |
10430 | hardcode_shlibpath_var=no | |
10431 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10432 | export_dynamic_flag_spec='${wl}-E' | |
10433 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10434 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10435 | # default) and relocated if they conflict, which is a slow very memory | |
10436 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10437 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10438 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10439 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10440 | 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' | |
10441 | ;; | |
10442 | ||
e9085da5 | 10443 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10444 | tmp_diet=no |
10445 | if test "$host_os" = linux-dietlibc; then | |
10446 | case $cc_basename in | |
10447 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10448 | esac | |
10449 | fi | |
10450 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10451 | && test "$tmp_diet" = no | |
10452 | then | |
a699d672 | 10453 | tmp_addflag=' $pic_flag' |
d58dead8 | 10454 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10455 | case $cc_basename,$host_cpu in |
10456 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10457 | 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 |
10458 | tmp_addflag=' $pic_flag' |
10459 | ;; | |
43e02a8a RW |
10460 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10461 | # Portland Group f77 and f90 compilers | |
10462 | 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 |
10463 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10464 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10465 | tmp_addflag=' -i_dynamic' ;; | |
10466 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10467 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10468 | ifc* | ifort*) # Intel Fortran compiler | |
10469 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10470 | lf95*) # Lahey Fortran 8.1 |
10471 | whole_archive_flag_spec= | |
10472 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10473 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10474 | tmp_sharedflag='-qmkshrobj' |
10475 | tmp_addflag= ;; | |
43e02a8a RW |
10476 | nvcc*) # Cuda Compiler Driver 2.2 |
10477 | 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' | |
10478 | compiler_needs_object=yes | |
10479 | ;; | |
1cf3d07d SE |
10480 | esac |
10481 | case `$CC -V 2>&1 | sed 5q` in | |
10482 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10483 | 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 |
10484 | compiler_needs_object=yes |
10485 | tmp_sharedflag='-G' ;; | |
10486 | *Sun\ F*) # Sun Fortran 8.3 | |
10487 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10488 | esac |
10489 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10490 | ||
10491 | if test "x$supports_anon_versioning" = xyes; then | |
10492 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10493 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10494 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10495 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10496 | fi | |
d58dead8 PG |
10497 | |
10498 | case $cc_basename in | |
43e02a8a | 10499 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10500 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10501 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10502 | hardcode_libdir_flag_spec= | |
10503 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10504 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10505 | if test "x$supports_anon_versioning" = xyes; then | |
10506 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10507 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10508 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10509 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10510 | fi | |
10511 | ;; | |
10512 | esac | |
1cf3d07d SE |
10513 | else |
10514 | ld_shlibs=no | |
10515 | fi | |
10516 | ;; | |
10517 | ||
10518 | netbsd*) | |
10519 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10520 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10521 | wlarc= | |
10522 | else | |
10523 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10524 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10525 | fi | |
10526 | ;; | |
10527 | ||
10528 | solaris*) | |
10529 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10530 | ld_shlibs=no | |
10531 | cat <<_LT_EOF 1>&2 | |
10532 | ||
10533 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10534 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10535 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10536 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10537 | *** your PATH or compiler configuration so that the native linker is | |
10538 | *** used, and then restart. | |
10539 | ||
10540 | _LT_EOF | |
10541 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10542 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10543 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10544 | else | |
10545 | ld_shlibs=no | |
10546 | fi | |
10547 | ;; | |
10548 | ||
10549 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10550 | case `$LD -v 2>&1` in | |
10551 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10552 | ld_shlibs=no | |
10553 | cat <<_LT_EOF 1>&2 | |
10554 | ||
10555 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10556 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10557 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10558 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10559 | *** your PATH or compiler configuration so that the native linker is | |
10560 | *** used, and then restart. | |
10561 | ||
10562 | _LT_EOF | |
10563 | ;; | |
10564 | *) | |
10565 | # For security reasons, it is highly recommended that you always | |
10566 | # use absolute paths for naming shared libraries, and exclude the | |
10567 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10568 | # requires that you compile everything twice, which is a pain. | |
10569 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10570 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10571 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10572 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10573 | else | |
10574 | ld_shlibs=no | |
10575 | fi | |
10576 | ;; | |
10577 | esac | |
10578 | ;; | |
10579 | ||
10580 | sunos4*) | |
10581 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10582 | wlarc= | |
10583 | hardcode_direct=yes | |
10584 | hardcode_shlibpath_var=no | |
10585 | ;; | |
10586 | ||
10587 | *) | |
10588 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10589 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10590 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10591 | else | |
10592 | ld_shlibs=no | |
10593 | fi | |
10594 | ;; | |
10595 | esac | |
10596 | ||
10597 | if test "$ld_shlibs" = no; then | |
10598 | runpath_var= | |
10599 | hardcode_libdir_flag_spec= | |
10600 | export_dynamic_flag_spec= | |
10601 | whole_archive_flag_spec= | |
10602 | fi | |
10603 | else | |
10604 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10605 | case $host_os in | |
10606 | aix3*) | |
10607 | allow_undefined_flag=unsupported | |
10608 | always_export_symbols=yes | |
10609 | 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' | |
10610 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10611 | # are no directories specified by -L. | |
10612 | hardcode_minus_L=yes | |
10613 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10614 | # Neither direct hardcoding nor static linking is supported with a | |
10615 | # broken collect2. | |
10616 | hardcode_direct=unsupported | |
10617 | fi | |
10618 | ;; | |
10619 | ||
4f6bebc3 | 10620 | aix[4-9]*) |
1cf3d07d SE |
10621 | if test "$host_cpu" = ia64; then |
10622 | # On IA64, the linker does run time linking by default, so we don't | |
10623 | # have to do anything special. | |
10624 | aix_use_runtimelinking=no | |
10625 | exp_sym_flag='-Bexport' | |
10626 | no_entry_flag="" | |
10627 | else | |
10628 | # If we're using GNU nm, then we don't want the "-C" option. | |
10629 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10630 | # Also, AIX nm treats weak defined symbols like other global |
10631 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10632 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10633 | 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 | 10634 | else |
d3ca2257 | 10635 | 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 |
10636 | fi |
10637 | aix_use_runtimelinking=no | |
10638 | ||
10639 | # Test if we are trying to use run time linking or normal | |
10640 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10641 | # need to do runtime linking. | |
4f6bebc3 | 10642 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10643 | for ld_flag in $LDFLAGS; do |
10644 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10645 | aix_use_runtimelinking=yes | |
10646 | break | |
10647 | fi | |
10648 | done | |
10649 | ;; | |
10650 | esac | |
10651 | ||
10652 | exp_sym_flag='-bexport' | |
10653 | no_entry_flag='-bnoentry' | |
10654 | fi | |
10655 | ||
10656 | # When large executables or shared objects are built, AIX ld can | |
10657 | # have problems creating the table of contents. If linking a library | |
10658 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10659 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10660 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10661 | ||
10662 | archive_cmds='' | |
10663 | hardcode_direct=yes | |
10664 | hardcode_direct_absolute=yes | |
10665 | hardcode_libdir_separator=':' | |
10666 | link_all_deplibs=yes | |
10667 | file_list_spec='${wl}-f,' | |
10668 | ||
10669 | if test "$GCC" = yes; then | |
10670 | case $host_os in aix4.[012]|aix4.[012].*) | |
10671 | # We only want to do this on AIX 4.2 and lower, the check | |
10672 | # below for broken collect2 doesn't work under 4.3+ | |
10673 | collect2name=`${CC} -print-prog-name=collect2` | |
10674 | if test -f "$collect2name" && | |
10675 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10676 | then | |
10677 | # We have reworked collect2 | |
10678 | : | |
10679 | else | |
10680 | # We have old collect2 | |
10681 | hardcode_direct=unsupported | |
10682 | # It fails to find uninstalled libraries when the uninstalled | |
10683 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10684 | # to unsupported forces relinking | |
10685 | hardcode_minus_L=yes | |
10686 | hardcode_libdir_flag_spec='-L$libdir' | |
10687 | hardcode_libdir_separator= | |
10688 | fi | |
10689 | ;; | |
10690 | esac | |
10691 | shared_flag='-shared' | |
10692 | if test "$aix_use_runtimelinking" = yes; then | |
10693 | shared_flag="$shared_flag "'${wl}-G' | |
10694 | fi | |
10695 | else | |
10696 | # not using gcc | |
10697 | if test "$host_cpu" = ia64; then | |
10698 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10699 | # chokes on -Wl,-G. The following line is correct: | |
10700 | shared_flag='-G' | |
10701 | else | |
10702 | if test "$aix_use_runtimelinking" = yes; then | |
10703 | shared_flag='${wl}-G' | |
10704 | else | |
10705 | shared_flag='${wl}-bM:SRE' | |
10706 | fi | |
10707 | fi | |
10708 | fi | |
10709 | ||
d58dead8 | 10710 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10711 | # It seems that -bexpall does not export symbols beginning with |
10712 | # underscore (_), so it is better to generate a list of symbols to export. | |
10713 | always_export_symbols=yes | |
10714 | if test "$aix_use_runtimelinking" = yes; then | |
10715 | # Warning - without using the other runtime loading flags (-brtl), | |
10716 | # -berok will link without error, but may produce a broken library. | |
10717 | allow_undefined_flag='-berok' | |
10718 | # Determine the default libpath from the value encoded in an | |
10719 | # empty executable. | |
10720 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10721 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10722 | fi |
5213506e | 10723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10724 | /* end confdefs.h. */ |
10725 | ||
10726 | int | |
10727 | main () | |
10728 | { | |
10729 | ||
10730 | ; | |
10731 | return 0; | |
10732 | } | |
10733 | _ACEOF | |
5213506e | 10734 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10735 | |
10736 | lt_aix_libpath_sed=' | |
10737 | /Import File Strings/,/^$/ { | |
10738 | /^0/ { | |
10739 | s/^0 *\(.*\)$/\1/ | |
10740 | p | |
10741 | } | |
10742 | }' | |
10743 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10744 | # Check for a 64-bit object if we didn't find anything. | |
10745 | if test -z "$aix_libpath"; then | |
10746 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10747 | fi | |
1cf3d07d | 10748 | fi |
5213506e RW |
10749 | rm -f core conftest.err conftest.$ac_objext \ |
10750 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10751 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10752 | ||
10753 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10754 | 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 |
10755 | else |
10756 | if test "$host_cpu" = ia64; then | |
10757 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10758 | allow_undefined_flag="-z nodefs" | |
10759 | 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" | |
10760 | else | |
10761 | # Determine the default libpath from the value encoded in an | |
10762 | # empty executable. | |
10763 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10764 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10765 | fi |
5213506e | 10766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10767 | /* end confdefs.h. */ |
10768 | ||
10769 | int | |
10770 | main () | |
10771 | { | |
10772 | ||
10773 | ; | |
10774 | return 0; | |
10775 | } | |
10776 | _ACEOF | |
5213506e | 10777 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10778 | |
10779 | lt_aix_libpath_sed=' | |
10780 | /Import File Strings/,/^$/ { | |
10781 | /^0/ { | |
10782 | s/^0 *\(.*\)$/\1/ | |
10783 | p | |
10784 | } | |
10785 | }' | |
10786 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10787 | # Check for a 64-bit object if we didn't find anything. | |
10788 | if test -z "$aix_libpath"; then | |
10789 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10790 | fi | |
1cf3d07d | 10791 | fi |
5213506e RW |
10792 | rm -f core conftest.err conftest.$ac_objext \ |
10793 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10794 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10795 | ||
10796 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10797 | # Warning - without using the other run time loading flags, | |
10798 | # -berok will link without error, but may produce a broken library. | |
10799 | no_undefined_flag=' ${wl}-bernotok' | |
10800 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10801 | if test "$with_gnu_ld" = yes; then |
10802 | # We only use this code for GNU lds that support --whole-archive. | |
10803 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10804 | else | |
10805 | # Exported symbols can be pulled into shared objects from archives | |
10806 | whole_archive_flag_spec='$convenience' | |
10807 | fi | |
1cf3d07d SE |
10808 | archive_cmds_need_lc=yes |
10809 | # This is similar to how AIX traditionally builds its shared libraries. | |
10810 | 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' | |
10811 | fi | |
10812 | fi | |
10813 | ;; | |
10814 | ||
10815 | amigaos*) | |
d58dead8 PG |
10816 | case $host_cpu in |
10817 | powerpc) | |
10818 | # see comment about AmigaOS4 .so support | |
10819 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10820 | archive_expsym_cmds='' | |
10821 | ;; | |
10822 | m68k) | |
10823 | 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)' | |
10824 | hardcode_libdir_flag_spec='-L$libdir' | |
10825 | hardcode_minus_L=yes | |
10826 | ;; | |
10827 | esac | |
1cf3d07d SE |
10828 | ;; |
10829 | ||
10830 | bsdi[45]*) | |
10831 | export_dynamic_flag_spec=-rdynamic | |
10832 | ;; | |
10833 | ||
d58dead8 | 10834 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10835 | # When not using gcc, we currently assume that we are using |
10836 | # Microsoft Visual C++. | |
10837 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10838 | # no search path for DLLs. | |
10839 | hardcode_libdir_flag_spec=' ' | |
10840 | allow_undefined_flag=unsupported | |
10841 | # Tell ltmain to make .lib files, not .a files. | |
10842 | libext=lib | |
10843 | # Tell ltmain to make .dll files, not .so files. | |
10844 | shrext_cmds=".dll" | |
10845 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10846 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10847 | # The linker will automatically build a .lib file if we build a DLL. |
10848 | old_archive_from_new_cmds='true' | |
10849 | # FIXME: Should let the user specify the lib program. | |
10850 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10851 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10852 | enable_shared_with_static_runtimes=yes | |
10853 | ;; | |
10854 | ||
10855 | darwin* | rhapsody*) | |
1cf3d07d | 10856 | |
d58dead8 PG |
10857 | |
10858 | archive_cmds_need_lc=no | |
10859 | hardcode_direct=no | |
10860 | hardcode_automatic=yes | |
10861 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10862 | if test "$lt_cv_ld_force_load" = "yes"; then |
10863 | 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\"`' | |
10864 | else | |
10865 | whole_archive_flag_spec='' | |
10866 | fi | |
d58dead8 PG |
10867 | link_all_deplibs=yes |
10868 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10869 | case $cc_basename in | |
10870 | ifort*) _lt_dar_can_shared=yes ;; | |
10871 | *) _lt_dar_can_shared=$GCC ;; | |
10872 | esac | |
10873 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10874 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10875 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10876 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10877 | 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}" | |
10878 | 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}" | |
10879 | ||
10880 | else | |
10881 | ld_shlibs=no | |
10882 | fi | |
10883 | ||
1cf3d07d SE |
10884 | ;; |
10885 | ||
10886 | dgux*) | |
10887 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10888 | hardcode_libdir_flag_spec='-L$libdir' | |
10889 | hardcode_shlibpath_var=no | |
10890 | ;; | |
10891 | ||
1cf3d07d SE |
10892 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10893 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10894 | # does not break anything, and helps significantly (at the cost of a little | |
10895 | # extra space). | |
10896 | freebsd2.2*) | |
10897 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10898 | hardcode_libdir_flag_spec='-R$libdir' | |
10899 | hardcode_direct=yes | |
10900 | hardcode_shlibpath_var=no | |
10901 | ;; | |
10902 | ||
10903 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10904 | freebsd2.*) |
1cf3d07d SE |
10905 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10906 | hardcode_direct=yes | |
10907 | hardcode_minus_L=yes | |
10908 | hardcode_shlibpath_var=no | |
10909 | ;; | |
10910 | ||
10911 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10912 | freebsd* | dragonfly*) | |
10913 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10914 | hardcode_libdir_flag_spec='-R$libdir' | |
10915 | hardcode_direct=yes | |
10916 | hardcode_shlibpath_var=no | |
10917 | ;; | |
10918 | ||
10919 | hpux9*) | |
10920 | if test "$GCC" = yes; then | |
10921 | 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' | |
10922 | else | |
10923 | 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' | |
10924 | fi | |
10925 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10926 | hardcode_libdir_separator=: | |
10927 | hardcode_direct=yes | |
10928 | ||
10929 | # hardcode_minus_L: Not really in the search PATH, | |
10930 | # but as the default location of the library. | |
10931 | hardcode_minus_L=yes | |
10932 | export_dynamic_flag_spec='${wl}-E' | |
10933 | ;; | |
10934 | ||
10935 | hpux10*) | |
43e02a8a | 10936 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
10937 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10938 | else | |
10939 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10940 | fi | |
10941 | if test "$with_gnu_ld" = no; then | |
10942 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10943 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10944 | hardcode_libdir_separator=: | |
10945 | hardcode_direct=yes | |
10946 | hardcode_direct_absolute=yes | |
10947 | export_dynamic_flag_spec='${wl}-E' | |
10948 | # hardcode_minus_L: Not really in the search PATH, | |
10949 | # but as the default location of the library. | |
10950 | hardcode_minus_L=yes | |
10951 | fi | |
10952 | ;; | |
10953 | ||
10954 | hpux11*) | |
43e02a8a | 10955 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
10956 | case $host_cpu in |
10957 | hppa*64*) | |
10958 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10959 | ;; | |
10960 | ia64*) | |
d58dead8 | 10961 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
10962 | ;; |
10963 | *) | |
10964 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10965 | ;; | |
10966 | esac | |
10967 | else | |
10968 | case $host_cpu in | |
10969 | hppa*64*) | |
10970 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10971 | ;; | |
10972 | ia64*) | |
10973 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10974 | ;; | |
10975 | *) | |
43e02a8a RW |
10976 | |
10977 | # Older versions of the 11.00 compiler do not understand -b yet | |
10978 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10980 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 10981 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
10982 | $as_echo_n "(cached) " >&6 |
10983 | else | |
10984 | lt_cv_prog_compiler__b=no | |
10985 | save_LDFLAGS="$LDFLAGS" | |
10986 | LDFLAGS="$LDFLAGS -b" | |
10987 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10988 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10989 | # The linker can only warn and ignore the option if not recognized | |
10990 | # So say no if there are warnings | |
10991 | if test -s conftest.err; then | |
10992 | # Append any errors to the config.log. | |
10993 | cat conftest.err 1>&5 | |
10994 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10995 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10996 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10997 | lt_cv_prog_compiler__b=yes | |
10998 | fi | |
10999 | else | |
11000 | lt_cv_prog_compiler__b=yes | |
11001 | fi | |
11002 | fi | |
11003 | $RM -r conftest* | |
11004 | LDFLAGS="$save_LDFLAGS" | |
11005 | ||
11006 | fi | |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11008 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11009 | ||
11010 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11011 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11012 | else | |
11013 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11014 | fi | |
11015 | ||
1cf3d07d SE |
11016 | ;; |
11017 | esac | |
11018 | fi | |
11019 | if test "$with_gnu_ld" = no; then | |
11020 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11021 | hardcode_libdir_separator=: | |
11022 | ||
11023 | case $host_cpu in | |
11024 | hppa*64*|ia64*) | |
11025 | hardcode_direct=no | |
11026 | hardcode_shlibpath_var=no | |
11027 | ;; | |
11028 | *) | |
11029 | hardcode_direct=yes | |
11030 | hardcode_direct_absolute=yes | |
11031 | export_dynamic_flag_spec='${wl}-E' | |
11032 | ||
11033 | # hardcode_minus_L: Not really in the search PATH, | |
11034 | # but as the default location of the library. | |
11035 | hardcode_minus_L=yes | |
11036 | ;; | |
11037 | esac | |
11038 | fi | |
11039 | ;; | |
11040 | ||
11041 | irix5* | irix6* | nonstopux*) | |
11042 | if test "$GCC" = yes; then | |
43e02a8a | 11043 | 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 |
11044 | # Try to use the -exported_symbol ld option, if it does not |
11045 | # work, assume that -exports_file does not work either and | |
11046 | # implicitly export all symbols. | |
11047 | save_LDFLAGS="$LDFLAGS" | |
11048 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11049 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11050 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11051 | fi |
5213506e RW |
11052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11053 | /* end confdefs.h. */ | |
1cf3d07d SE |
11054 | int foo(void) {} |
11055 | _ACEOF | |
5213506e | 11056 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11057 | 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 | 11058 | |
1cf3d07d | 11059 | fi |
5213506e RW |
11060 | rm -f core conftest.err conftest.$ac_objext \ |
11061 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11062 | LDFLAGS="$save_LDFLAGS" |
11063 | else | |
43e02a8a RW |
11064 | 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' |
11065 | 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 |
11066 | fi |
11067 | archive_cmds_need_lc='no' | |
11068 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11069 | hardcode_libdir_separator=: | |
11070 | inherit_rpath=yes | |
11071 | link_all_deplibs=yes | |
11072 | ;; | |
11073 | ||
11074 | netbsd*) | |
11075 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11076 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11077 | else | |
11078 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11079 | fi | |
11080 | hardcode_libdir_flag_spec='-R$libdir' | |
11081 | hardcode_direct=yes | |
11082 | hardcode_shlibpath_var=no | |
11083 | ;; | |
11084 | ||
11085 | newsos6) | |
11086 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11087 | hardcode_direct=yes | |
11088 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11089 | hardcode_libdir_separator=: | |
11090 | hardcode_shlibpath_var=no | |
11091 | ;; | |
11092 | ||
11093 | *nto* | *qnx*) | |
11094 | ;; | |
11095 | ||
11096 | openbsd*) | |
d58dead8 PG |
11097 | if test -f /usr/libexec/ld.so; then |
11098 | hardcode_direct=yes | |
11099 | hardcode_shlibpath_var=no | |
11100 | hardcode_direct_absolute=yes | |
11101 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11102 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11103 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11104 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11105 | export_dynamic_flag_spec='${wl}-E' |
11106 | else | |
11107 | case $host_os in | |
11108 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11109 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11110 | hardcode_libdir_flag_spec='-R$libdir' | |
11111 | ;; | |
11112 | *) | |
11113 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11114 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11115 | ;; | |
11116 | esac | |
11117 | fi | |
11118 | else | |
11119 | ld_shlibs=no | |
1cf3d07d SE |
11120 | fi |
11121 | ;; | |
11122 | ||
11123 | os2*) | |
11124 | hardcode_libdir_flag_spec='-L$libdir' | |
11125 | hardcode_minus_L=yes | |
11126 | allow_undefined_flag=unsupported | |
43e02a8a | 11127 | 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 |
11128 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11129 | ;; | |
11130 | ||
11131 | osf3*) | |
11132 | if test "$GCC" = yes; then | |
11133 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11134 | 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 |
11135 | else |
11136 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11137 | 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 |
11138 | fi |
11139 | archive_cmds_need_lc='no' | |
11140 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11141 | hardcode_libdir_separator=: | |
11142 | ;; | |
11143 | ||
11144 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11145 | if test "$GCC" = yes; then | |
11146 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11147 | 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 |
11148 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11149 | else | |
11150 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11151 | 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 | 11152 | 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 | 11153 | $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 |
11154 | |
11155 | # Both c and cxx compiler support -rpath directly | |
11156 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11157 | fi | |
11158 | archive_cmds_need_lc='no' | |
11159 | hardcode_libdir_separator=: | |
11160 | ;; | |
11161 | ||
11162 | solaris*) | |
11163 | no_undefined_flag=' -z defs' | |
11164 | if test "$GCC" = yes; then | |
11165 | wlarc='${wl}' | |
11166 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11167 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11168 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11169 | else | |
11170 | case `$CC -V 2>&1` in | |
11171 | *"Compilers 5.0"*) | |
11172 | wlarc='' | |
11173 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11174 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11175 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11176 | ;; | |
11177 | *) | |
11178 | wlarc='${wl}' | |
11179 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11180 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11181 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11182 | ;; | |
11183 | esac | |
11184 | fi | |
11185 | hardcode_libdir_flag_spec='-R$libdir' | |
11186 | hardcode_shlibpath_var=no | |
11187 | case $host_os in | |
11188 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11189 | *) | |
11190 | # The compiler driver will combine and reorder linker options, | |
11191 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11192 | # but is careful enough not to reorder. | |
11193 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11194 | if test "$GCC" = yes; then | |
11195 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11196 | else | |
11197 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11198 | fi | |
11199 | ;; | |
11200 | esac | |
11201 | link_all_deplibs=yes | |
11202 | ;; | |
11203 | ||
11204 | sunos4*) | |
11205 | if test "x$host_vendor" = xsequent; then | |
11206 | # Use $CC to link under sequent, because it throws in some extra .o | |
11207 | # files that make .init and .fini sections work. | |
11208 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11209 | else | |
11210 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11211 | fi | |
11212 | hardcode_libdir_flag_spec='-L$libdir' | |
11213 | hardcode_direct=yes | |
11214 | hardcode_minus_L=yes | |
11215 | hardcode_shlibpath_var=no | |
11216 | ;; | |
11217 | ||
11218 | sysv4) | |
11219 | case $host_vendor in | |
11220 | sni) | |
11221 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11222 | hardcode_direct=yes # is this really true??? | |
11223 | ;; | |
11224 | siemens) | |
11225 | ## LD is ld it makes a PLAMLIB | |
11226 | ## CC just makes a GrossModule. | |
11227 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11228 | reload_cmds='$CC -r -o $output$reload_objs' | |
11229 | hardcode_direct=no | |
11230 | ;; | |
11231 | motorola) | |
11232 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11233 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11234 | ;; | |
11235 | esac | |
11236 | runpath_var='LD_RUN_PATH' | |
11237 | hardcode_shlibpath_var=no | |
11238 | ;; | |
11239 | ||
11240 | sysv4.3*) | |
11241 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11242 | hardcode_shlibpath_var=no | |
11243 | export_dynamic_flag_spec='-Bexport' | |
11244 | ;; | |
11245 | ||
11246 | sysv4*MP*) | |
11247 | if test -d /usr/nec; then | |
11248 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11249 | hardcode_shlibpath_var=no | |
11250 | runpath_var=LD_RUN_PATH | |
11251 | hardcode_runpath_var=yes | |
11252 | ld_shlibs=yes | |
11253 | fi | |
11254 | ;; | |
11255 | ||
11256 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11257 | no_undefined_flag='${wl}-z,text' | |
11258 | archive_cmds_need_lc=no | |
11259 | hardcode_shlibpath_var=no | |
11260 | runpath_var='LD_RUN_PATH' | |
11261 | ||
11262 | if test "$GCC" = yes; then | |
11263 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11264 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11265 | else | |
11266 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11267 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11268 | fi | |
11269 | ;; | |
11270 | ||
11271 | sysv5* | sco3.2v5* | sco5v6*) | |
11272 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11273 | # link with -lc, and that would cause any symbols used from libc to | |
11274 | # always be unresolved, which means just about no library would | |
11275 | # ever link correctly. If we're not using GNU ld we use -z text | |
11276 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11277 | # as -z defs. | |
11278 | no_undefined_flag='${wl}-z,text' | |
11279 | allow_undefined_flag='${wl}-z,nodefs' | |
11280 | archive_cmds_need_lc=no | |
11281 | hardcode_shlibpath_var=no | |
11282 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11283 | hardcode_libdir_separator=':' | |
11284 | link_all_deplibs=yes | |
11285 | export_dynamic_flag_spec='${wl}-Bexport' | |
11286 | runpath_var='LD_RUN_PATH' | |
11287 | ||
11288 | if test "$GCC" = yes; then | |
11289 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11290 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11291 | else | |
11292 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11293 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11294 | fi | |
11295 | ;; | |
11296 | ||
11297 | uts4*) | |
11298 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11299 | hardcode_libdir_flag_spec='-L$libdir' | |
11300 | hardcode_shlibpath_var=no | |
11301 | ;; | |
11302 | ||
11303 | *) | |
11304 | ld_shlibs=no | |
11305 | ;; | |
11306 | esac | |
11307 | ||
11308 | if test x$host_vendor = xsni; then | |
11309 | case $host in | |
11310 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11311 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11312 | ;; | |
11313 | esac | |
11314 | fi | |
11315 | fi | |
11316 | ||
5213506e RW |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11318 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11319 | test "$ld_shlibs" = no && can_build_shared=no |
11320 | ||
11321 | with_gnu_ld=$with_gnu_ld | |
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
11328 | ||
11329 | ||
11330 | ||
11331 | ||
11332 | ||
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | # | |
11338 | # Do we need to explicitly link libc? | |
11339 | # | |
11340 | case "x$archive_cmds_need_lc" in | |
11341 | x|xyes) | |
11342 | # Assume -lc should be added | |
11343 | archive_cmds_need_lc=yes | |
11344 | ||
11345 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11346 | case $archive_cmds in | |
11347 | *'~'*) | |
11348 | # FIXME: we may have to deal with multi-command sequences. | |
11349 | ;; | |
11350 | '$CC '*) | |
11351 | # Test whether the compiler implicitly links with -lc since on some | |
11352 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11353 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11355 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11356 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11357 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11358 | else |
11359 | $RM conftest* | |
11360 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11361 | |
5213506e | 11362 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11363 | (eval $ac_compile) 2>&5 |
11364 | ac_status=$? | |
5213506e RW |
11365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11366 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11367 | soname=conftest |
11368 | lib=conftest | |
11369 | libobjs=conftest.$ac_objext | |
11370 | deplibs= | |
11371 | wl=$lt_prog_compiler_wl | |
11372 | pic_flag=$lt_prog_compiler_pic | |
11373 | compiler_flags=-v | |
11374 | linker_flags=-v | |
11375 | verstring= | |
11376 | output_objdir=. | |
11377 | libname=conftest | |
11378 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11379 | allow_undefined_flag= | |
5213506e | 11380 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11381 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11382 | ac_status=$? | |
5213506e RW |
11383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11384 | test $ac_status = 0; } | |
baafc534 RW |
11385 | then |
11386 | lt_cv_archive_cmds_need_lc=no | |
11387 | else | |
11388 | lt_cv_archive_cmds_need_lc=yes | |
11389 | fi | |
11390 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11391 | else | |
11392 | cat conftest.err 1>&5 | |
11393 | fi | |
11394 | $RM conftest* | |
11395 | ||
11396 | fi | |
5213506e RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11398 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11399 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11400 | ;; |
11401 | esac | |
11402 | fi | |
11403 | ;; | |
11404 | esac | |
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
5213506e RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11563 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11564 | |
11565 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11566 | case $host_os in |
11567 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11568 | *) lt_awk_arg="/^libraries:/" ;; | |
11569 | esac | |
43e02a8a RW |
11570 | case $host_os in |
11571 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11572 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11573 | esac | |
11574 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11575 | case $lt_search_path_spec in | |
11576 | *\;*) | |
1cf3d07d SE |
11577 | # if the path contains ";" then we assume it to be the separator |
11578 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11579 | # assumed that no part of a normal pathname contains ";" but that should | |
11580 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11581 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11582 | ;; | |
11583 | *) | |
11584 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11585 | ;; | |
11586 | esac | |
1cf3d07d SE |
11587 | # Ok, now we have the path, separated by spaces, we can step through it |
11588 | # and add multilib dir if necessary. | |
11589 | lt_tmp_lt_search_path_spec= | |
11590 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11591 | for lt_sys_path in $lt_search_path_spec; do | |
11592 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11593 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11594 | else | |
11595 | test -d "$lt_sys_path" && \ | |
11596 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11597 | fi | |
11598 | done | |
43e02a8a | 11599 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11600 | BEGIN {RS=" "; FS="/|\n";} { |
11601 | lt_foo=""; | |
11602 | lt_count=0; | |
11603 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11604 | if ($lt_i != "" && $lt_i != ".") { | |
11605 | if ($lt_i == "..") { | |
11606 | lt_count++; | |
11607 | } else { | |
11608 | if (lt_count == 0) { | |
11609 | lt_foo="/" $lt_i lt_foo; | |
11610 | } else { | |
11611 | lt_count--; | |
11612 | } | |
11613 | } | |
11614 | } | |
11615 | } | |
11616 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11617 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11618 | }'` | |
43e02a8a RW |
11619 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11620 | # for these hosts. | |
11621 | case $host_os in | |
11622 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11623 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11624 | esac | |
11625 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11626 | else |
11627 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11628 | fi | |
11629 | library_names_spec= | |
11630 | libname_spec='lib$name' | |
11631 | soname_spec= | |
11632 | shrext_cmds=".so" | |
11633 | postinstall_cmds= | |
11634 | postuninstall_cmds= | |
11635 | finish_cmds= | |
11636 | finish_eval= | |
11637 | shlibpath_var= | |
11638 | shlibpath_overrides_runpath=unknown | |
11639 | version_type=none | |
11640 | dynamic_linker="$host_os ld.so" | |
11641 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11642 | need_lib_prefix=unknown | |
11643 | hardcode_into_libs=no | |
11644 | ||
11645 | # when you set need_version to no, make sure it does not cause -set_version | |
11646 | # flags to be left without arguments | |
11647 | need_version=unknown | |
11648 | ||
11649 | case $host_os in | |
11650 | aix3*) | |
11651 | version_type=linux | |
11652 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11653 | shlibpath_var=LIBPATH | |
11654 | ||
11655 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11656 | soname_spec='${libname}${release}${shared_ext}$major' | |
11657 | ;; | |
11658 | ||
4f6bebc3 | 11659 | aix[4-9]*) |
1cf3d07d SE |
11660 | version_type=linux |
11661 | need_lib_prefix=no | |
11662 | need_version=no | |
11663 | hardcode_into_libs=yes | |
11664 | if test "$host_cpu" = ia64; then | |
11665 | # AIX 5 supports IA64 | |
11666 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11667 | shlibpath_var=LD_LIBRARY_PATH | |
11668 | else | |
11669 | # With GCC up to 2.95.x, collect2 would create an import file | |
11670 | # for dependence libraries. The import file would start with | |
11671 | # the line `#! .'. This would cause the generated library to | |
11672 | # depend on `.', always an invalid library. This was fixed in | |
11673 | # development snapshots of GCC prior to 3.0. | |
11674 | case $host_os in | |
11675 | aix4 | aix4.[01] | aix4.[01].*) | |
11676 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11677 | echo ' yes ' | |
11678 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11679 | : | |
11680 | else | |
11681 | can_build_shared=no | |
11682 | fi | |
11683 | ;; | |
11684 | esac | |
11685 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11686 | # soname into executable. Probably we can add versioning support to | |
11687 | # collect2, so additional links can be useful in future. | |
11688 | if test "$aix_use_runtimelinking" = yes; then | |
11689 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11690 | # instead of lib<name>.a to let people know that these are not | |
11691 | # typical AIX shared libraries. | |
11692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11693 | else | |
11694 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11695 | # and later when we are not doing run time linking. | |
11696 | library_names_spec='${libname}${release}.a $libname.a' | |
11697 | soname_spec='${libname}${release}${shared_ext}$major' | |
11698 | fi | |
11699 | shlibpath_var=LIBPATH | |
11700 | fi | |
11701 | ;; | |
11702 | ||
11703 | amigaos*) | |
d58dead8 PG |
11704 | case $host_cpu in |
11705 | powerpc) | |
11706 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11707 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11709 | ;; | |
11710 | m68k) | |
1cf3d07d SE |
11711 | library_names_spec='$libname.ixlibrary $libname.a' |
11712 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11713 | 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' |
d58dead8 PG |
11714 | ;; |
11715 | esac | |
1cf3d07d SE |
11716 | ;; |
11717 | ||
11718 | beos*) | |
11719 | library_names_spec='${libname}${shared_ext}' | |
11720 | dynamic_linker="$host_os ld.so" | |
11721 | shlibpath_var=LIBRARY_PATH | |
11722 | ;; | |
11723 | ||
11724 | bsdi[45]*) | |
11725 | version_type=linux | |
11726 | need_version=no | |
11727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11728 | soname_spec='${libname}${release}${shared_ext}$major' | |
11729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11730 | shlibpath_var=LD_LIBRARY_PATH | |
11731 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11732 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11733 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11734 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11735 | # libtool to hard-code these into programs | |
11736 | ;; | |
11737 | ||
d58dead8 | 11738 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11739 | version_type=windows |
11740 | shrext_cmds=".dll" | |
11741 | need_version=no | |
11742 | need_lib_prefix=no | |
11743 | ||
d58dead8 PG |
11744 | case $GCC,$host_os in |
11745 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11746 | library_names_spec='$libname.dll.a' |
11747 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11748 | postinstall_cmds='base_file=`basename \${file}`~ | |
11749 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11750 | dldir=$destdir/`dirname \$dlpath`~ | |
11751 | test -d \$dldir || mkdir -p \$dldir~ | |
11752 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11753 | chmod a+x \$dldir/$dlname~ | |
11754 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11755 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11756 | fi' | |
11757 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11758 | dlpath=$dir/\$dldll~ | |
11759 | $RM \$dlpath' | |
11760 | shlibpath_overrides_runpath=yes | |
11761 | ||
11762 | case $host_os in | |
11763 | cygwin*) | |
11764 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11765 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11766 | |
11767 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11768 | ;; |
d58dead8 | 11769 | mingw* | cegcc*) |
1cf3d07d SE |
11770 | # MinGW DLLs use traditional 'lib' prefix |
11771 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11772 | ;; |
11773 | pw32*) | |
11774 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11775 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11776 | ;; | |
11777 | esac | |
11778 | ;; | |
11779 | ||
11780 | *) | |
11781 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11782 | ;; | |
11783 | esac | |
11784 | dynamic_linker='Win32 ld.exe' | |
11785 | # FIXME: first we should search . and the directory the executable is in | |
11786 | shlibpath_var=PATH | |
11787 | ;; | |
11788 | ||
11789 | darwin* | rhapsody*) | |
11790 | dynamic_linker="$host_os dyld" | |
11791 | version_type=darwin | |
11792 | need_lib_prefix=no | |
11793 | need_version=no | |
11794 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11795 | soname_spec='${libname}${release}${major}$shared_ext' | |
11796 | shlibpath_overrides_runpath=yes | |
11797 | shlibpath_var=DYLD_LIBRARY_PATH | |
11798 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11799 | ||
11800 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11801 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11802 | ;; | |
11803 | ||
11804 | dgux*) | |
11805 | version_type=linux | |
11806 | need_lib_prefix=no | |
11807 | need_version=no | |
11808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11809 | soname_spec='${libname}${release}${shared_ext}$major' | |
11810 | shlibpath_var=LD_LIBRARY_PATH | |
11811 | ;; | |
11812 | ||
1cf3d07d SE |
11813 | freebsd* | dragonfly*) |
11814 | # DragonFly does not have aout. When/if they implement a new | |
11815 | # versioning mechanism, adjust this. | |
11816 | if test -x /usr/bin/objformat; then | |
11817 | objformat=`/usr/bin/objformat` | |
11818 | else | |
11819 | case $host_os in | |
c6084f68 | 11820 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11821 | *) objformat=elf ;; |
11822 | esac | |
11823 | fi | |
11824 | version_type=freebsd-$objformat | |
11825 | case $version_type in | |
11826 | freebsd-elf*) | |
11827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11828 | need_version=no | |
11829 | need_lib_prefix=no | |
11830 | ;; | |
11831 | freebsd-*) | |
11832 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11833 | need_version=yes | |
11834 | ;; | |
11835 | esac | |
11836 | shlibpath_var=LD_LIBRARY_PATH | |
11837 | case $host_os in | |
c6084f68 | 11838 | freebsd2.*) |
1cf3d07d SE |
11839 | shlibpath_overrides_runpath=yes |
11840 | ;; | |
11841 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11842 | shlibpath_overrides_runpath=yes | |
11843 | hardcode_into_libs=yes | |
11844 | ;; | |
11845 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11846 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11847 | shlibpath_overrides_runpath=no | |
11848 | hardcode_into_libs=yes | |
11849 | ;; | |
11850 | *) # from 4.6 on, and DragonFly | |
11851 | shlibpath_overrides_runpath=yes | |
11852 | hardcode_into_libs=yes | |
11853 | ;; | |
11854 | esac | |
11855 | ;; | |
11856 | ||
11857 | gnu*) | |
11858 | version_type=linux | |
11859 | need_lib_prefix=no | |
11860 | need_version=no | |
11861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11862 | soname_spec='${libname}${release}${shared_ext}$major' | |
11863 | shlibpath_var=LD_LIBRARY_PATH | |
11864 | hardcode_into_libs=yes | |
11865 | ;; | |
11866 | ||
43e02a8a RW |
11867 | haiku*) |
11868 | version_type=linux | |
11869 | need_lib_prefix=no | |
11870 | need_version=no | |
11871 | dynamic_linker="$host_os runtime_loader" | |
11872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11873 | soname_spec='${libname}${release}${shared_ext}$major' | |
11874 | shlibpath_var=LIBRARY_PATH | |
11875 | shlibpath_overrides_runpath=yes | |
11876 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11877 | hardcode_into_libs=yes | |
11878 | ;; | |
11879 | ||
1cf3d07d SE |
11880 | hpux9* | hpux10* | hpux11*) |
11881 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11882 | # link against other versions. | |
11883 | version_type=sunos | |
11884 | need_lib_prefix=no | |
11885 | need_version=no | |
11886 | case $host_cpu in | |
11887 | ia64*) | |
11888 | shrext_cmds='.so' | |
11889 | hardcode_into_libs=yes | |
11890 | dynamic_linker="$host_os dld.so" | |
11891 | shlibpath_var=LD_LIBRARY_PATH | |
11892 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11894 | soname_spec='${libname}${release}${shared_ext}$major' | |
11895 | if test "X$HPUX_IA64_MODE" = X32; then | |
11896 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11897 | else | |
11898 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11899 | fi | |
11900 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11901 | ;; | |
11902 | hppa*64*) | |
11903 | shrext_cmds='.sl' | |
11904 | hardcode_into_libs=yes | |
11905 | dynamic_linker="$host_os dld.sl" | |
11906 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11907 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11909 | soname_spec='${libname}${release}${shared_ext}$major' | |
11910 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11911 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11912 | ;; | |
11913 | *) | |
11914 | shrext_cmds='.sl' | |
11915 | dynamic_linker="$host_os dld.sl" | |
11916 | shlibpath_var=SHLIB_PATH | |
11917 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11919 | soname_spec='${libname}${release}${shared_ext}$major' | |
11920 | ;; | |
11921 | esac | |
43e02a8a | 11922 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 11923 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
11924 | # or fails outright, so override atomically: |
11925 | install_override_mode=555 | |
1cf3d07d SE |
11926 | ;; |
11927 | ||
11928 | interix[3-9]*) | |
11929 | version_type=linux | |
11930 | need_lib_prefix=no | |
11931 | need_version=no | |
11932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11933 | soname_spec='${libname}${release}${shared_ext}$major' | |
11934 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11935 | shlibpath_var=LD_LIBRARY_PATH | |
11936 | shlibpath_overrides_runpath=no | |
11937 | hardcode_into_libs=yes | |
11938 | ;; | |
11939 | ||
11940 | irix5* | irix6* | nonstopux*) | |
11941 | case $host_os in | |
11942 | nonstopux*) version_type=nonstopux ;; | |
11943 | *) | |
11944 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11945 | version_type=linux | |
11946 | else | |
11947 | version_type=irix | |
11948 | fi ;; | |
11949 | esac | |
11950 | need_lib_prefix=no | |
11951 | need_version=no | |
11952 | soname_spec='${libname}${release}${shared_ext}$major' | |
11953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11954 | case $host_os in | |
11955 | irix5* | nonstopux*) | |
11956 | libsuff= shlibsuff= | |
11957 | ;; | |
11958 | *) | |
11959 | case $LD in # libtool.m4 will add one of these switches to LD | |
11960 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11961 | libsuff= shlibsuff= libmagic=32-bit;; | |
11962 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11963 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11964 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11965 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11966 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11967 | esac | |
11968 | ;; | |
11969 | esac | |
11970 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11971 | shlibpath_overrides_runpath=no | |
11972 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11973 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11974 | hardcode_into_libs=yes | |
11975 | ;; | |
11976 | ||
11977 | # No shared lib support for Linux oldld, aout, or coff. | |
11978 | linux*oldld* | linux*aout* | linux*coff*) | |
11979 | dynamic_linker=no | |
11980 | ;; | |
11981 | ||
11982 | # This must be Linux ELF. | |
e9085da5 MR |
11983 | |
11984 | # uclinux* changes (here and below) have been submitted to the libtool | |
11985 | # project, but have not yet been accepted: they are GCC-local changes | |
11986 | # for the time being. (See | |
11987 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
11988 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
1cf3d07d SE |
11989 | version_type=linux |
11990 | need_lib_prefix=no | |
11991 | need_version=no | |
11992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11993 | soname_spec='${libname}${release}${shared_ext}$major' | |
11994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11995 | shlibpath_var=LD_LIBRARY_PATH | |
11996 | shlibpath_overrides_runpath=no | |
baafc534 | 11997 | |
1cf3d07d | 11998 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 11999 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12000 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12001 | else |
12002 | lt_cv_shlibpath_overrides_runpath=no | |
12003 | save_LDFLAGS=$LDFLAGS | |
12004 | save_libdir=$libdir | |
12005 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12006 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12007 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12008 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12009 | fi |
5213506e | 12010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12011 | /* end confdefs.h. */ |
12012 | ||
12013 | int | |
12014 | main () | |
12015 | { | |
12016 | ||
12017 | ; | |
12018 | return 0; | |
12019 | } | |
12020 | _ACEOF | |
5213506e RW |
12021 | if ac_fn_c_try_link "$LINENO"; then : |
12022 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12023 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12024 | fi |
1cf3d07d | 12025 | fi |
5213506e RW |
12026 | rm -f core conftest.err conftest.$ac_objext \ |
12027 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12028 | LDFLAGS=$save_LDFLAGS |
12029 | libdir=$save_libdir | |
12030 | ||
12031 | fi | |
12032 | ||
12033 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12034 | |
12035 | # This implies no fast_install, which is unacceptable. | |
12036 | # Some rework will be needed to allow for fast_install | |
12037 | # before this can be enabled. | |
12038 | hardcode_into_libs=yes | |
12039 | ||
12040 | # Append ld.so.conf contents to the search path | |
12041 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12042 | 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 |
12043 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12044 | fi | |
12045 | ||
12046 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12047 | # powerpc, because MkLinux only supported shared libraries with the | |
12048 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12049 | # most powerpc-linux boxes support dynamic linking these days and | |
12050 | # people can always --disable-shared, the test was removed, and we | |
12051 | # assume the GNU/Linux dynamic linker is in use. | |
12052 | dynamic_linker='GNU/Linux ld.so' | |
12053 | ;; | |
12054 | ||
12055 | netbsd*) | |
12056 | version_type=sunos | |
12057 | need_lib_prefix=no | |
12058 | need_version=no | |
12059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12061 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12062 | dynamic_linker='NetBSD (a.out) ld.so' | |
12063 | else | |
12064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12065 | soname_spec='${libname}${release}${shared_ext}$major' | |
12066 | dynamic_linker='NetBSD ld.elf_so' | |
12067 | fi | |
12068 | shlibpath_var=LD_LIBRARY_PATH | |
12069 | shlibpath_overrides_runpath=yes | |
12070 | hardcode_into_libs=yes | |
12071 | ;; | |
12072 | ||
12073 | newsos6) | |
12074 | version_type=linux | |
12075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12076 | shlibpath_var=LD_LIBRARY_PATH | |
12077 | shlibpath_overrides_runpath=yes | |
12078 | ;; | |
12079 | ||
12080 | *nto* | *qnx*) | |
12081 | version_type=qnx | |
12082 | need_lib_prefix=no | |
12083 | need_version=no | |
12084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12085 | soname_spec='${libname}${release}${shared_ext}$major' | |
12086 | shlibpath_var=LD_LIBRARY_PATH | |
12087 | shlibpath_overrides_runpath=no | |
12088 | hardcode_into_libs=yes | |
12089 | dynamic_linker='ldqnx.so' | |
12090 | ;; | |
12091 | ||
12092 | openbsd*) | |
12093 | version_type=sunos | |
12094 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12095 | need_lib_prefix=no | |
12096 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12097 | case $host_os in | |
12098 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12099 | *) need_version=no ;; | |
12100 | esac | |
12101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12103 | shlibpath_var=LD_LIBRARY_PATH | |
12104 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12105 | case $host_os in | |
12106 | openbsd2.[89] | openbsd2.[89].*) | |
12107 | shlibpath_overrides_runpath=no | |
12108 | ;; | |
12109 | *) | |
12110 | shlibpath_overrides_runpath=yes | |
12111 | ;; | |
12112 | esac | |
12113 | else | |
12114 | shlibpath_overrides_runpath=yes | |
12115 | fi | |
12116 | ;; | |
12117 | ||
12118 | os2*) | |
12119 | libname_spec='$name' | |
12120 | shrext_cmds=".dll" | |
12121 | need_lib_prefix=no | |
12122 | library_names_spec='$libname${shared_ext} $libname.a' | |
12123 | dynamic_linker='OS/2 ld.exe' | |
12124 | shlibpath_var=LIBPATH | |
12125 | ;; | |
12126 | ||
12127 | osf3* | osf4* | osf5*) | |
12128 | version_type=osf | |
12129 | need_lib_prefix=no | |
12130 | need_version=no | |
12131 | soname_spec='${libname}${release}${shared_ext}$major' | |
12132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12133 | shlibpath_var=LD_LIBRARY_PATH | |
12134 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12135 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12136 | ;; | |
12137 | ||
12138 | rdos*) | |
12139 | dynamic_linker=no | |
12140 | ;; | |
12141 | ||
12142 | solaris*) | |
12143 | version_type=linux | |
12144 | need_lib_prefix=no | |
12145 | need_version=no | |
12146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12147 | soname_spec='${libname}${release}${shared_ext}$major' | |
12148 | shlibpath_var=LD_LIBRARY_PATH | |
12149 | shlibpath_overrides_runpath=yes | |
12150 | hardcode_into_libs=yes | |
12151 | # ldd complains unless libraries are executable | |
12152 | postinstall_cmds='chmod +x $lib' | |
12153 | ;; | |
12154 | ||
12155 | sunos4*) | |
12156 | version_type=sunos | |
12157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12158 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12159 | shlibpath_var=LD_LIBRARY_PATH | |
12160 | shlibpath_overrides_runpath=yes | |
12161 | if test "$with_gnu_ld" = yes; then | |
12162 | need_lib_prefix=no | |
12163 | fi | |
12164 | need_version=yes | |
12165 | ;; | |
12166 | ||
12167 | sysv4 | sysv4.3*) | |
12168 | version_type=linux | |
12169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12170 | soname_spec='${libname}${release}${shared_ext}$major' | |
12171 | shlibpath_var=LD_LIBRARY_PATH | |
12172 | case $host_vendor in | |
12173 | sni) | |
12174 | shlibpath_overrides_runpath=no | |
12175 | need_lib_prefix=no | |
12176 | runpath_var=LD_RUN_PATH | |
12177 | ;; | |
12178 | siemens) | |
12179 | need_lib_prefix=no | |
12180 | ;; | |
12181 | motorola) | |
12182 | need_lib_prefix=no | |
12183 | need_version=no | |
12184 | shlibpath_overrides_runpath=no | |
12185 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12186 | ;; | |
12187 | esac | |
12188 | ;; | |
12189 | ||
12190 | sysv4*MP*) | |
12191 | if test -d /usr/nec ;then | |
12192 | version_type=linux | |
12193 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12194 | soname_spec='$libname${shared_ext}.$major' | |
12195 | shlibpath_var=LD_LIBRARY_PATH | |
12196 | fi | |
12197 | ;; | |
12198 | ||
12199 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12200 | version_type=freebsd-elf | |
12201 | need_lib_prefix=no | |
12202 | need_version=no | |
12203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12204 | soname_spec='${libname}${release}${shared_ext}$major' | |
12205 | shlibpath_var=LD_LIBRARY_PATH | |
12206 | shlibpath_overrides_runpath=yes | |
12207 | hardcode_into_libs=yes | |
12208 | if test "$with_gnu_ld" = yes; then | |
12209 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12210 | else | |
12211 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12212 | case $host_os in | |
12213 | sco3.2v5*) | |
12214 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12215 | ;; | |
12216 | esac | |
12217 | fi | |
12218 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12219 | ;; | |
12220 | ||
12221 | tpf*) | |
12222 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12223 | version_type=linux | |
12224 | need_lib_prefix=no | |
12225 | need_version=no | |
d58dead8 | 12226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12227 | shlibpath_var=LD_LIBRARY_PATH |
12228 | shlibpath_overrides_runpath=no | |
12229 | hardcode_into_libs=yes | |
12230 | ;; | |
12231 | ||
12232 | uts4*) | |
12233 | version_type=linux | |
12234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12235 | soname_spec='${libname}${release}${shared_ext}$major' | |
12236 | shlibpath_var=LD_LIBRARY_PATH | |
12237 | ;; | |
12238 | ||
12239 | *) | |
12240 | dynamic_linker=no | |
12241 | ;; | |
12242 | esac | |
5213506e RW |
12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12244 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12245 | test "$dynamic_linker" = no && can_build_shared=no |
12246 | ||
12247 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12248 | if test "$GCC" = yes; then | |
12249 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12250 | fi | |
12251 | ||
d58dead8 PG |
12252 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12253 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12254 | fi | |
12255 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12256 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12257 | fi | |
12258 | ||
1cf3d07d SE |
12259 | |
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | ||
12278 | ||
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
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 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | ||
12323 | ||
12324 | ||
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | ||
12330 | ||
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
43e02a8a RW |
12339 | |
12340 | ||
12341 | ||
12342 | ||
12343 | ||
1cf3d07d SE |
12344 | |
12345 | ||
12346 | ||
12347 | ||
12348 | ||
12349 | ||
5213506e RW |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12351 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12352 | hardcode_action= |
12353 | if test -n "$hardcode_libdir_flag_spec" || | |
12354 | test -n "$runpath_var" || | |
12355 | test "X$hardcode_automatic" = "Xyes" ; then | |
12356 | ||
12357 | # We can hardcode non-existent directories. | |
12358 | if test "$hardcode_direct" != no && | |
12359 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12360 | # have to relink, otherwise we might link with an installed library | |
12361 | # when we should be linking with a yet-to-be-installed one | |
12362 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12363 | test "$hardcode_minus_L" != no; then | |
12364 | # Linking always hardcodes the temporary library directory. | |
12365 | hardcode_action=relink | |
12366 | else | |
12367 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12368 | hardcode_action=immediate | |
12369 | fi | |
12370 | else | |
12371 | # We cannot hardcode anything, or else we can only hardcode existing | |
12372 | # directories. | |
12373 | hardcode_action=unsupported | |
12374 | fi | |
5213506e RW |
12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12376 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12377 | |
12378 | if test "$hardcode_action" = relink || | |
12379 | test "$inherit_rpath" = yes; then | |
12380 | # Fast installation is not supported | |
12381 | enable_fast_install=no | |
12382 | elif test "$shlibpath_overrides_runpath" = yes || | |
12383 | test "$enable_shared" = no; then | |
12384 | # Fast installation is not necessary | |
12385 | enable_fast_install=needless | |
12386 | fi | |
12387 | ||
12388 | ||
12389 | ||
12390 | ||
12391 | ||
12392 | ||
12393 | if test "x$enable_dlopen" != xyes; then | |
12394 | enable_dlopen=unknown | |
12395 | enable_dlopen_self=unknown | |
12396 | enable_dlopen_self_static=unknown | |
12397 | else | |
12398 | lt_cv_dlopen=no | |
12399 | lt_cv_dlopen_libs= | |
12400 | ||
12401 | case $host_os in | |
12402 | beos*) | |
12403 | lt_cv_dlopen="load_add_on" | |
12404 | lt_cv_dlopen_libs= | |
12405 | lt_cv_dlopen_self=yes | |
12406 | ;; | |
12407 | ||
d58dead8 | 12408 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12409 | lt_cv_dlopen="LoadLibrary" |
12410 | lt_cv_dlopen_libs= | |
12411 | ;; | |
12412 | ||
12413 | cygwin*) | |
12414 | lt_cv_dlopen="dlopen" | |
12415 | lt_cv_dlopen_libs= | |
12416 | ;; | |
12417 | ||
12418 | darwin*) | |
12419 | # if libdl is installed we need to link against it | |
5213506e RW |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12421 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12422 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12423 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12424 | else |
12425 | ac_check_lib_save_LIBS=$LIBS | |
12426 | LIBS="-ldl $LIBS" | |
12427 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12428 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12429 | fi |
5213506e | 12430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12431 | /* end confdefs.h. */ |
12432 | ||
5213506e RW |
12433 | /* Override any GCC internal prototype to avoid an error. |
12434 | Use char because int might match the return type of a GCC | |
12435 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12436 | #ifdef __cplusplus |
12437 | extern "C" | |
12438 | #endif | |
1cf3d07d SE |
12439 | char dlopen (); |
12440 | int | |
12441 | main () | |
12442 | { | |
5213506e | 12443 | return dlopen (); |
1cf3d07d SE |
12444 | ; |
12445 | return 0; | |
12446 | } | |
12447 | _ACEOF | |
5213506e | 12448 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12449 | ac_cv_lib_dl_dlopen=yes |
12450 | else | |
5213506e | 12451 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12452 | fi |
5213506e RW |
12453 | rm -f core conftest.err conftest.$ac_objext \ |
12454 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12455 | LIBS=$ac_check_lib_save_LIBS |
12456 | fi | |
5213506e RW |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12458 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12459 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12460 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12461 | else | |
12462 | ||
12463 | lt_cv_dlopen="dyld" | |
12464 | lt_cv_dlopen_libs= | |
12465 | lt_cv_dlopen_self=yes | |
12466 | ||
12467 | fi | |
12468 | ||
12469 | ;; | |
12470 | ||
12471 | *) | |
5213506e | 12472 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12473 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12474 | lt_cv_dlopen="shl_load" |
12475 | else | |
5213506e RW |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12477 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12478 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12479 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12480 | else |
12481 | ac_check_lib_save_LIBS=$LIBS | |
12482 | LIBS="-ldld $LIBS" | |
12483 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12484 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12485 | fi |
5213506e | 12486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12487 | /* end confdefs.h. */ |
12488 | ||
5213506e RW |
12489 | /* Override any GCC internal prototype to avoid an error. |
12490 | Use char because int might match the return type of a GCC | |
12491 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12492 | #ifdef __cplusplus |
12493 | extern "C" | |
12494 | #endif | |
1cf3d07d SE |
12495 | char shl_load (); |
12496 | int | |
12497 | main () | |
12498 | { | |
5213506e | 12499 | return shl_load (); |
1cf3d07d SE |
12500 | ; |
12501 | return 0; | |
12502 | } | |
12503 | _ACEOF | |
5213506e | 12504 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12505 | ac_cv_lib_dld_shl_load=yes |
12506 | else | |
5213506e | 12507 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12508 | fi |
5213506e RW |
12509 | rm -f core conftest.err conftest.$ac_objext \ |
12510 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12511 | LIBS=$ac_check_lib_save_LIBS |
12512 | fi | |
5213506e RW |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12514 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12515 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12516 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12517 | else |
5213506e | 12518 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12519 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12520 | lt_cv_dlopen="dlopen" |
12521 | else | |
5213506e RW |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12523 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12524 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12525 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12526 | else |
12527 | ac_check_lib_save_LIBS=$LIBS | |
12528 | LIBS="-ldl $LIBS" | |
12529 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12530 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12531 | fi |
5213506e | 12532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12533 | /* end confdefs.h. */ |
12534 | ||
5213506e RW |
12535 | /* Override any GCC internal prototype to avoid an error. |
12536 | Use char because int might match the return type of a GCC | |
12537 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12538 | #ifdef __cplusplus |
12539 | extern "C" | |
12540 | #endif | |
1cf3d07d SE |
12541 | char dlopen (); |
12542 | int | |
12543 | main () | |
12544 | { | |
5213506e | 12545 | return dlopen (); |
1cf3d07d SE |
12546 | ; |
12547 | return 0; | |
12548 | } | |
12549 | _ACEOF | |
5213506e | 12550 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12551 | ac_cv_lib_dl_dlopen=yes |
12552 | else | |
5213506e | 12553 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12554 | fi |
5213506e RW |
12555 | rm -f core conftest.err conftest.$ac_objext \ |
12556 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12557 | LIBS=$ac_check_lib_save_LIBS |
12558 | fi | |
5213506e RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12560 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12561 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12562 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12563 | else | |
5213506e RW |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12565 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12566 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12567 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12568 | else |
12569 | ac_check_lib_save_LIBS=$LIBS | |
12570 | LIBS="-lsvld $LIBS" | |
12571 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12572 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12573 | fi |
5213506e | 12574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12575 | /* end confdefs.h. */ |
12576 | ||
5213506e RW |
12577 | /* Override any GCC internal prototype to avoid an error. |
12578 | Use char because int might match the return type of a GCC | |
12579 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12580 | #ifdef __cplusplus |
12581 | extern "C" | |
12582 | #endif | |
1cf3d07d SE |
12583 | char dlopen (); |
12584 | int | |
12585 | main () | |
12586 | { | |
5213506e | 12587 | return dlopen (); |
1cf3d07d SE |
12588 | ; |
12589 | return 0; | |
12590 | } | |
12591 | _ACEOF | |
5213506e | 12592 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12593 | ac_cv_lib_svld_dlopen=yes |
12594 | else | |
5213506e | 12595 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12596 | fi |
5213506e RW |
12597 | rm -f core conftest.err conftest.$ac_objext \ |
12598 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12599 | LIBS=$ac_check_lib_save_LIBS |
12600 | fi | |
5213506e RW |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12602 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12603 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12604 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12605 | else | |
5213506e RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12607 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12608 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12609 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12610 | else |
12611 | ac_check_lib_save_LIBS=$LIBS | |
12612 | LIBS="-ldld $LIBS" | |
12613 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12614 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12615 | fi |
5213506e | 12616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12617 | /* end confdefs.h. */ |
12618 | ||
5213506e RW |
12619 | /* Override any GCC internal prototype to avoid an error. |
12620 | Use char because int might match the return type of a GCC | |
12621 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12622 | #ifdef __cplusplus |
12623 | extern "C" | |
12624 | #endif | |
1cf3d07d SE |
12625 | char dld_link (); |
12626 | int | |
12627 | main () | |
12628 | { | |
5213506e | 12629 | return dld_link (); |
1cf3d07d SE |
12630 | ; |
12631 | return 0; | |
12632 | } | |
12633 | _ACEOF | |
5213506e | 12634 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12635 | ac_cv_lib_dld_dld_link=yes |
12636 | else | |
5213506e | 12637 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12638 | fi |
5213506e RW |
12639 | rm -f core conftest.err conftest.$ac_objext \ |
12640 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12641 | LIBS=$ac_check_lib_save_LIBS |
12642 | fi | |
5213506e RW |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12644 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12645 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12646 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12647 | fi |
12648 | ||
12649 | ||
12650 | fi | |
12651 | ||
12652 | ||
12653 | fi | |
12654 | ||
12655 | ||
12656 | fi | |
12657 | ||
12658 | ||
12659 | fi | |
12660 | ||
12661 | ||
12662 | fi | |
12663 | ||
12664 | ;; | |
12665 | esac | |
12666 | ||
12667 | if test "x$lt_cv_dlopen" != xno; then | |
12668 | enable_dlopen=yes | |
12669 | else | |
12670 | enable_dlopen=no | |
12671 | fi | |
12672 | ||
12673 | case $lt_cv_dlopen in | |
12674 | dlopen) | |
12675 | save_CPPFLAGS="$CPPFLAGS" | |
12676 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12677 | ||
12678 | save_LDFLAGS="$LDFLAGS" | |
12679 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12680 | ||
12681 | save_LIBS="$LIBS" | |
12682 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12683 | ||
5213506e RW |
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12685 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12686 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12687 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12688 | else |
12689 | if test "$cross_compiling" = yes; then : | |
12690 | lt_cv_dlopen_self=cross | |
12691 | else | |
12692 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12693 | lt_status=$lt_dlunknown | |
12694 | cat > conftest.$ac_ext <<_LT_EOF | |
e9085da5 | 12695 | #line 12695 "configure" |
1cf3d07d SE |
12696 | #include "confdefs.h" |
12697 | ||
12698 | #if HAVE_DLFCN_H | |
12699 | #include <dlfcn.h> | |
12700 | #endif | |
12701 | ||
12702 | #include <stdio.h> | |
12703 | ||
12704 | #ifdef RTLD_GLOBAL | |
12705 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12706 | #else | |
12707 | # ifdef DL_GLOBAL | |
12708 | # define LT_DLGLOBAL DL_GLOBAL | |
12709 | # else | |
12710 | # define LT_DLGLOBAL 0 | |
12711 | # endif | |
12712 | #endif | |
12713 | ||
12714 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12715 | find out it does not work in some platform. */ | |
12716 | #ifndef LT_DLLAZY_OR_NOW | |
12717 | # ifdef RTLD_LAZY | |
12718 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12719 | # else | |
12720 | # ifdef DL_LAZY | |
12721 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12722 | # else | |
12723 | # ifdef RTLD_NOW | |
12724 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12725 | # else | |
12726 | # ifdef DL_NOW | |
12727 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12728 | # else | |
12729 | # define LT_DLLAZY_OR_NOW 0 | |
12730 | # endif | |
12731 | # endif | |
12732 | # endif | |
12733 | # endif | |
12734 | #endif | |
12735 | ||
43e02a8a RW |
12736 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12737 | correspondingly for the symbols needed. */ | |
12738 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12739 | void fnord () __attribute__((visibility("default"))); | |
12740 | #endif | |
12741 | ||
12742 | void fnord () { int i=42; } | |
1cf3d07d SE |
12743 | int main () |
12744 | { | |
12745 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12746 | int status = $lt_dlunknown; | |
12747 | ||
12748 | if (self) | |
12749 | { | |
12750 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12751 | else |
12752 | { | |
12753 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12754 | else puts (dlerror ()); | |
12755 | } | |
1cf3d07d SE |
12756 | /* dlclose (self); */ |
12757 | } | |
12758 | else | |
12759 | puts (dlerror ()); | |
12760 | ||
d58dead8 | 12761 | return status; |
1cf3d07d SE |
12762 | } |
12763 | _LT_EOF | |
5213506e | 12764 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12765 | (eval $ac_link) 2>&5 |
12766 | ac_status=$? | |
5213506e RW |
12767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12768 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12769 | (./conftest; exit; ) >&5 2>/dev/null |
12770 | lt_status=$? | |
12771 | case x$lt_status in | |
12772 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12773 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12774 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12775 | esac | |
12776 | else : | |
12777 | # compilation failed | |
12778 | lt_cv_dlopen_self=no | |
12779 | fi | |
12780 | fi | |
12781 | rm -fr conftest* | |
12782 | ||
12783 | ||
12784 | fi | |
5213506e RW |
12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12786 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12787 | |
12788 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12789 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12791 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12792 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12793 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12794 | else |
12795 | if test "$cross_compiling" = yes; then : | |
12796 | lt_cv_dlopen_self_static=cross | |
12797 | else | |
12798 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12799 | lt_status=$lt_dlunknown | |
12800 | cat > conftest.$ac_ext <<_LT_EOF | |
e9085da5 | 12801 | #line 12801 "configure" |
1cf3d07d SE |
12802 | #include "confdefs.h" |
12803 | ||
12804 | #if HAVE_DLFCN_H | |
12805 | #include <dlfcn.h> | |
12806 | #endif | |
12807 | ||
12808 | #include <stdio.h> | |
12809 | ||
12810 | #ifdef RTLD_GLOBAL | |
12811 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12812 | #else | |
12813 | # ifdef DL_GLOBAL | |
12814 | # define LT_DLGLOBAL DL_GLOBAL | |
12815 | # else | |
12816 | # define LT_DLGLOBAL 0 | |
12817 | # endif | |
12818 | #endif | |
12819 | ||
12820 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12821 | find out it does not work in some platform. */ | |
12822 | #ifndef LT_DLLAZY_OR_NOW | |
12823 | # ifdef RTLD_LAZY | |
12824 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12825 | # else | |
12826 | # ifdef DL_LAZY | |
12827 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12828 | # else | |
12829 | # ifdef RTLD_NOW | |
12830 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12831 | # else | |
12832 | # ifdef DL_NOW | |
12833 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12834 | # else | |
12835 | # define LT_DLLAZY_OR_NOW 0 | |
12836 | # endif | |
12837 | # endif | |
12838 | # endif | |
12839 | # endif | |
12840 | #endif | |
12841 | ||
43e02a8a RW |
12842 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12843 | correspondingly for the symbols needed. */ | |
12844 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12845 | void fnord () __attribute__((visibility("default"))); | |
12846 | #endif | |
12847 | ||
12848 | void fnord () { int i=42; } | |
1cf3d07d SE |
12849 | int main () |
12850 | { | |
12851 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12852 | int status = $lt_dlunknown; | |
12853 | ||
12854 | if (self) | |
12855 | { | |
12856 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12857 | else |
12858 | { | |
12859 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12860 | else puts (dlerror ()); | |
12861 | } | |
1cf3d07d SE |
12862 | /* dlclose (self); */ |
12863 | } | |
12864 | else | |
12865 | puts (dlerror ()); | |
12866 | ||
d58dead8 | 12867 | return status; |
1cf3d07d SE |
12868 | } |
12869 | _LT_EOF | |
5213506e | 12870 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12871 | (eval $ac_link) 2>&5 |
12872 | ac_status=$? | |
5213506e RW |
12873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12874 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12875 | (./conftest; exit; ) >&5 2>/dev/null |
12876 | lt_status=$? | |
12877 | case x$lt_status in | |
12878 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12879 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12880 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12881 | esac | |
12882 | else : | |
12883 | # compilation failed | |
12884 | lt_cv_dlopen_self_static=no | |
12885 | fi | |
12886 | fi | |
12887 | rm -fr conftest* | |
12888 | ||
12889 | ||
12890 | fi | |
5213506e RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12892 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
12893 | fi |
12894 | ||
12895 | CPPFLAGS="$save_CPPFLAGS" | |
12896 | LDFLAGS="$save_LDFLAGS" | |
12897 | LIBS="$save_LIBS" | |
12898 | ;; | |
12899 | esac | |
12900 | ||
12901 | case $lt_cv_dlopen_self in | |
12902 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12903 | *) enable_dlopen_self=unknown ;; | |
12904 | esac | |
12905 | ||
12906 | case $lt_cv_dlopen_self_static in | |
12907 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12908 | *) enable_dlopen_self_static=unknown ;; | |
12909 | esac | |
12910 | fi | |
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | striplib= | |
12929 | old_striplib= | |
5213506e RW |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12931 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
12932 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12933 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12934 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12936 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
12937 | else |
12938 | # FIXME - insert some real tests, host_os isn't really good enough | |
12939 | case $host_os in | |
12940 | darwin*) | |
12941 | if test -n "$STRIP" ; then | |
12942 | striplib="$STRIP -x" | |
12943 | old_striplib="$STRIP -S" | |
5213506e RW |
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12945 | $as_echo "yes" >&6; } | |
1cf3d07d | 12946 | else |
5213506e RW |
12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12948 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12949 | fi |
12950 | ;; | |
12951 | *) | |
5213506e RW |
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12953 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12954 | ;; |
12955 | esac | |
12956 | fi | |
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
43e02a8a RW |
12969 | # Report which library types will actually be built |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12971 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12973 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 12974 | |
43e02a8a RW |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12976 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12977 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 12978 | |
43e02a8a RW |
12979 | # On AIX, shared libraries and static libraries use the same namespace, and |
12980 | # are all built from PIC. | |
12981 | case $host_os in | |
12982 | aix3*) | |
12983 | test "$enable_shared" = yes && enable_static=no | |
12984 | if test -n "$RANLIB"; then | |
12985 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12986 | postinstall_cmds='$RANLIB $lib' | |
12987 | fi | |
12988 | ;; | |
1cf3d07d | 12989 | |
43e02a8a RW |
12990 | aix[4-9]*) |
12991 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12992 | test "$enable_shared" = yes && enable_static=no | |
12993 | fi | |
12994 | ;; | |
12995 | esac | |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12997 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 12998 | |
43e02a8a RW |
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13000 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13001 | # Make sure either enable_shared or enable_static is yes. | |
13002 | test "$enable_shared" = yes || enable_static=yes | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13004 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13005 | |
1cf3d07d | 13006 | |
1cf3d07d | 13007 | |
1cf3d07d SE |
13008 | |
13009 | fi | |
1cf3d07d SE |
13010 | ac_ext=c |
13011 | ac_cpp='$CPP $CPPFLAGS' | |
13012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13015 | ||
43e02a8a RW |
13016 | CC="$lt_save_CC" |
13017 | ||
13018 | ||
13019 | ||
13020 | ||
13021 | ||
13022 | ||
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | ||
13028 | ||
13029 | ||
13030 | ac_config_commands="$ac_config_commands libtool" | |
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | # Only expand once: | |
13036 | ||
13037 | ||
13038 | ||
13039 | ||
7de6ba7a DK |
13040 | |
13041 | case $host in | |
13042 | *-cygwin* | *-mingw*) | |
13043 | # 'host' will be top-level target in the case of a target lib, | |
13044 | # we must compare to with_cross_host to decide if this is a native | |
13045 | # or cross-compiler and select where to install dlls appropriately. | |
13046 | if test -n "$with_cross_host" && | |
13047 | test x"$with_cross_host" != x"no"; then | |
13048 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13049 | else | |
13050 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13051 | fi | |
13052 | ;; | |
13053 | *) | |
13054 | lt_host_flags= | |
13055 | ;; | |
13056 | esac | |
13057 | ||
13058 | ||
13059 | ||
13060 | ||
13061 | ||
43e02a8a | 13062 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13063 | |
43e02a8a RW |
13064 | # We need gfortran to compile parts of the library |
13065 | #AC_PROG_FC(gfortran) | |
13066 | FC="$GFORTRAN" | |
5213506e RW |
13067 | ac_ext=${ac_fc_srcext-f} |
13068 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13069 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13070 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13071 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13072 | for ac_prog in gfortran |
1cf3d07d SE |
13073 | do |
13074 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13075 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13077 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13078 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13079 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13080 | else |
13081 | if test -n "$FC"; then | |
13082 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13083 | else | |
13084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13085 | for as_dir in $PATH | |
13086 | do | |
13087 | IFS=$as_save_IFS | |
13088 | test -z "$as_dir" && as_dir=. | |
5213506e | 13089 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13091 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13093 | break 2 |
13094 | fi | |
13095 | done | |
5213506e RW |
13096 | done |
13097 | IFS=$as_save_IFS | |
1cf3d07d SE |
13098 | |
13099 | fi | |
13100 | fi | |
13101 | FC=$ac_cv_prog_FC | |
13102 | if test -n "$FC"; then | |
5213506e RW |
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13104 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13105 | else |
5213506e RW |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13107 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13108 | fi |
13109 | ||
5213506e | 13110 | |
1cf3d07d SE |
13111 | test -n "$FC" && break |
13112 | done | |
13113 | fi | |
13114 | if test -z "$FC"; then | |
13115 | ac_ct_FC=$FC | |
43e02a8a | 13116 | for ac_prog in gfortran |
1cf3d07d SE |
13117 | do |
13118 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13119 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13122 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13123 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13124 | else |
13125 | if test -n "$ac_ct_FC"; then | |
13126 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13127 | else | |
13128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13129 | for as_dir in $PATH | |
13130 | do | |
13131 | IFS=$as_save_IFS | |
13132 | test -z "$as_dir" && as_dir=. | |
5213506e | 13133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13135 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13137 | break 2 |
13138 | fi | |
13139 | done | |
5213506e RW |
13140 | done |
13141 | IFS=$as_save_IFS | |
1cf3d07d SE |
13142 | |
13143 | fi | |
13144 | fi | |
13145 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13146 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13148 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13149 | else |
5213506e RW |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13151 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13152 | fi |
13153 | ||
5213506e | 13154 | |
1cf3d07d | 13155 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13156 | done |
13157 | ||
5213506e RW |
13158 | if test "x$ac_ct_FC" = x; then |
13159 | FC="" | |
13160 | else | |
13161 | case $cross_compiling:$ac_tool_warned in | |
13162 | yes:) | |
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13164 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13165 | ac_tool_warned=yes ;; | |
13166 | esac | |
13167 | FC=$ac_ct_FC | |
13168 | fi | |
1cf3d07d SE |
13169 | fi |
13170 | ||
13171 | ||
13172 | # Provide some information about the compiler. | |
5213506e RW |
13173 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13174 | set X $ac_compile | |
13175 | ac_compiler=$2 | |
13176 | for ac_option in --version -v -V -qversion; do | |
13177 | { { ac_try="$ac_compiler $ac_option >&5" | |
13178 | case "(($ac_try" in | |
13179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13180 | *) ac_try_echo=$ac_try;; | |
13181 | esac | |
13182 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13183 | $as_echo "$ac_try_echo"; } >&5 | |
13184 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13185 | ac_status=$? |
5213506e RW |
13186 | if test -s conftest.err; then |
13187 | sed '10a\ | |
13188 | ... rest of stderr output deleted ... | |
13189 | 10q' conftest.err >conftest.er1 | |
13190 | cat conftest.er1 >&5 | |
5213506e | 13191 | fi |
22e05272 | 13192 | rm -f conftest.er1 conftest.err |
5213506e RW |
13193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13194 | test $ac_status = 0; } | |
13195 | done | |
1cf3d07d SE |
13196 | rm -f a.out |
13197 | ||
13198 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13199 | # input file. (Note that this only needs to work for GNU compilers.) | |
13200 | ac_save_ext=$ac_ext | |
13201 | ac_ext=F | |
5213506e RW |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13203 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13204 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13205 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13206 | else |
5213506e | 13207 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13208 | program main |
13209 | #ifndef __GNUC__ | |
13210 | choke me | |
13211 | #endif | |
13212 | ||
13213 | end | |
13214 | _ACEOF | |
5213506e | 13215 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13216 | ac_compiler_gnu=yes |
13217 | else | |
5213506e | 13218 | ac_compiler_gnu=no |
1cf3d07d | 13219 | fi |
5213506e | 13220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13221 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13222 | ||
13223 | fi | |
5213506e RW |
13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13225 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13226 | ac_ext=$ac_save_ext |
5213506e RW |
13227 | ac_test_FCFLAGS=${FCFLAGS+set} |
13228 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13229 | FCFLAGS= |
5213506e RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13231 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13232 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13233 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13234 | else |
13235 | FCFLAGS=-g | |
5213506e | 13236 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13237 | program main |
13238 | ||
13239 | end | |
13240 | _ACEOF | |
5213506e | 13241 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13242 | ac_cv_prog_fc_g=yes |
13243 | else | |
5213506e | 13244 | ac_cv_prog_fc_g=no |
1cf3d07d | 13245 | fi |
5213506e | 13246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13247 | |
13248 | fi | |
5213506e RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13250 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13251 | if test "$ac_test_FCFLAGS" = set; then | |
13252 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13253 | elif test $ac_cv_prog_fc_g = yes; then |
13254 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13255 | FCFLAGS="-g -O2" | |
13256 | else | |
13257 | FCFLAGS="-g" | |
13258 | fi | |
13259 | else | |
13260 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13261 | FCFLAGS="-O2" | |
13262 | else | |
13263 | FCFLAGS= | |
13264 | fi | |
13265 | fi | |
13266 | ||
22e05272 JM |
13267 | if test $ac_compiler_gnu = yes; then |
13268 | GFC=yes | |
13269 | else | |
13270 | GFC= | |
13271 | fi | |
1cf3d07d SE |
13272 | ac_ext=c |
13273 | ac_cpp='$CPP $CPPFLAGS' | |
13274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13277 | ||
5213506e RW |
13278 | ac_ext=${ac_fc_srcext-f} |
13279 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13280 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13281 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13282 | ||
13283 | ||
43e02a8a RW |
13284 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13285 | _lt_disable_FC=yes | |
13286 | fi | |
13287 | ||
1cf3d07d SE |
13288 | archive_cmds_need_lc_FC=no |
13289 | allow_undefined_flag_FC= | |
13290 | always_export_symbols_FC=no | |
13291 | archive_expsym_cmds_FC= | |
13292 | export_dynamic_flag_spec_FC= | |
13293 | hardcode_direct_FC=no | |
13294 | hardcode_direct_absolute_FC=no | |
13295 | hardcode_libdir_flag_spec_FC= | |
13296 | hardcode_libdir_flag_spec_ld_FC= | |
13297 | hardcode_libdir_separator_FC= | |
13298 | hardcode_minus_L_FC=no | |
13299 | hardcode_automatic_FC=no | |
13300 | inherit_rpath_FC=no | |
13301 | module_cmds_FC= | |
13302 | module_expsym_cmds_FC= | |
13303 | link_all_deplibs_FC=unknown | |
13304 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13305 | reload_flag_FC=$reload_flag |
13306 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13307 | no_undefined_flag_FC= |
13308 | whole_archive_flag_spec_FC= | |
13309 | enable_shared_with_static_runtimes_FC=no | |
13310 | ||
13311 | # Source file extension for fc test sources. | |
13312 | ac_ext=${ac_fc_srcext-f} | |
13313 | ||
13314 | # Object file extension for compiled fc test sources. | |
13315 | objext=o | |
13316 | objext_FC=$objext | |
13317 | ||
13318 | # No sense in running all these tests if we already determined that | |
13319 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13320 | # are currently assumed to apply to all compilers on this platform, | |
13321 | # and will be corrupted by setting them based on a non-working compiler. | |
13322 | if test "$_lt_disable_FC" != yes; then | |
13323 | # Code to be used in simple compile tests | |
13324 | lt_simple_compile_test_code="\ | |
13325 | subroutine t | |
13326 | return | |
13327 | end | |
13328 | " | |
13329 | ||
13330 | # Code to be used in simple link tests | |
13331 | lt_simple_link_test_code="\ | |
13332 | program t | |
13333 | end | |
13334 | " | |
13335 | ||
13336 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13337 | ||
13338 | ||
13339 | ||
13340 | ||
13341 | ||
13342 | ||
13343 | # If no C compiler was specified, use CC. | |
13344 | LTCC=${LTCC-"$CC"} | |
13345 | ||
13346 | # If no C compiler flags were specified, use CFLAGS. | |
13347 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13348 | ||
13349 | # Allow CC to be a program name with arguments. | |
13350 | compiler=$CC | |
13351 | ||
13352 | ||
13353 | # save warnings/boilerplate of simple test code | |
13354 | ac_outfile=conftest.$ac_objext | |
13355 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13356 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13357 | _lt_compiler_boilerplate=`cat conftest.err` | |
13358 | $RM conftest* | |
13359 | ||
13360 | ac_outfile=conftest.$ac_objext | |
13361 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13362 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13363 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13364 | $RM -r conftest* |
1cf3d07d SE |
13365 | |
13366 | ||
13367 | # Allow CC to be a program name with arguments. | |
13368 | lt_save_CC="$CC" | |
d58dead8 | 13369 | lt_save_GCC=$GCC |
1cf3d07d SE |
13370 | CC=${FC-"f95"} |
13371 | compiler=$CC | |
d58dead8 PG |
13372 | GCC=$ac_cv_fc_compiler_gnu |
13373 | ||
1cf3d07d SE |
13374 | compiler_FC=$CC |
13375 | for cc_temp in $compiler""; do | |
13376 | case $cc_temp in | |
13377 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13378 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13379 | \-*) ;; | |
13380 | *) break;; | |
13381 | esac | |
13382 | done | |
43e02a8a | 13383 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13384 | |
13385 | ||
13386 | if test -n "$compiler"; then | |
5213506e RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13388 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13390 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13391 | |
5213506e RW |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13393 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13394 | test "$can_build_shared" = "no" && enable_shared=no |
13395 | ||
13396 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13397 | # are all built from PIC. | |
13398 | case $host_os in | |
13399 | aix3*) | |
13400 | test "$enable_shared" = yes && enable_static=no | |
13401 | if test -n "$RANLIB"; then | |
13402 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13403 | postinstall_cmds='$RANLIB $lib' | |
13404 | fi | |
13405 | ;; | |
4f6bebc3 | 13406 | aix[4-9]*) |
1cf3d07d SE |
13407 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13408 | test "$enable_shared" = yes && enable_static=no | |
13409 | fi | |
13410 | ;; | |
13411 | esac | |
5213506e RW |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13413 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13414 | |
5213506e RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13416 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13417 | # Make sure either enable_shared or enable_static is yes. |
13418 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13420 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13421 | |
13422 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13423 | LD_FC="$LD" | |
13424 | ||
13425 | ## CAVEAT EMPTOR: | |
13426 | ## There is no encapsulation within the following macros, do not change | |
13427 | ## the running order or otherwise move them around unless you know exactly | |
13428 | ## what you are doing... | |
13429 | # Dependencies to place before and after the object being linked: | |
13430 | predep_objects_FC= | |
13431 | postdep_objects_FC= | |
13432 | predeps_FC= | |
13433 | postdeps_FC= | |
13434 | compiler_lib_search_path_FC= | |
13435 | ||
13436 | cat > conftest.$ac_ext <<_LT_EOF | |
13437 | subroutine foo | |
13438 | implicit none | |
13439 | integer a | |
13440 | a=0 | |
13441 | return | |
13442 | end | |
13443 | _LT_EOF | |
13444 | ||
5213506e | 13445 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13446 | (eval $ac_compile) 2>&5 |
13447 | ac_status=$? | |
5213506e RW |
13448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13449 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13450 | # Parse the compiler output and extract the necessary |
13451 | # objects, libraries and library flags. | |
13452 | ||
13453 | # Sentinel used to keep track of whether or not we are before | |
13454 | # the conftest object file. | |
13455 | pre_test_object_deps_done=no | |
13456 | ||
d58dead8 | 13457 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13458 | case $p in |
13459 | ||
13460 | -L* | -R* | -l*) | |
13461 | # Some compilers place space between "-{L,R}" and the path. | |
13462 | # Remove the space. | |
13463 | if test $p = "-L" || | |
13464 | test $p = "-R"; then | |
13465 | prev=$p | |
13466 | continue | |
13467 | else | |
13468 | prev= | |
13469 | fi | |
13470 | ||
13471 | if test "$pre_test_object_deps_done" = no; then | |
13472 | case $p in | |
13473 | -L* | -R*) | |
13474 | # Internal compiler library paths should come after those | |
13475 | # provided the user. The postdeps already come after the | |
13476 | # user supplied libs so there is no need to process them. | |
13477 | if test -z "$compiler_lib_search_path_FC"; then | |
13478 | compiler_lib_search_path_FC="${prev}${p}" | |
13479 | else | |
13480 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13481 | fi | |
13482 | ;; | |
13483 | # The "-l" case would never come before the object being | |
13484 | # linked, so don't bother handling this case. | |
13485 | esac | |
13486 | else | |
13487 | if test -z "$postdeps_FC"; then | |
13488 | postdeps_FC="${prev}${p}" | |
13489 | else | |
13490 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13491 | fi | |
13492 | fi | |
13493 | ;; | |
13494 | ||
13495 | *.$objext) | |
13496 | # This assumes that the test object file only shows up | |
13497 | # once in the compiler output. | |
13498 | if test "$p" = "conftest.$objext"; then | |
13499 | pre_test_object_deps_done=yes | |
13500 | continue | |
13501 | fi | |
13502 | ||
13503 | if test "$pre_test_object_deps_done" = no; then | |
13504 | if test -z "$predep_objects_FC"; then | |
13505 | predep_objects_FC="$p" | |
13506 | else | |
13507 | predep_objects_FC="$predep_objects_FC $p" | |
13508 | fi | |
13509 | else | |
13510 | if test -z "$postdep_objects_FC"; then | |
13511 | postdep_objects_FC="$p" | |
13512 | else | |
13513 | postdep_objects_FC="$postdep_objects_FC $p" | |
13514 | fi | |
13515 | fi | |
13516 | ;; | |
13517 | ||
13518 | *) ;; # Ignore the rest. | |
13519 | ||
13520 | esac | |
13521 | done | |
13522 | ||
13523 | # Clean up. | |
13524 | rm -f a.out a.exe | |
13525 | else | |
13526 | echo "libtool.m4: error: problem compiling FC test program" | |
13527 | fi | |
13528 | ||
13529 | $RM -f confest.$objext | |
13530 | ||
13531 | # PORTME: override above test on systems where it is broken | |
13532 | ||
13533 | ||
13534 | case " $postdeps_FC " in | |
13535 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13536 | esac | |
d58dead8 PG |
13537 | compiler_lib_search_dirs_FC= |
13538 | if test -n "${compiler_lib_search_path_FC}"; then | |
13539 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13540 | fi | |
13541 | ||
13542 | ||
13543 | ||
13544 | ||
13545 | ||
1cf3d07d SE |
13546 | |
13547 | ||
13548 | ||
13549 | ||
13550 | ||
13551 | ||
13552 | ||
13553 | ||
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | ||
13560 | ||
13561 | ||
13562 | ||
13563 | ||
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | lt_prog_compiler_wl_FC= | |
13573 | lt_prog_compiler_pic_FC= | |
13574 | lt_prog_compiler_static_FC= | |
13575 | ||
5213506e RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13577 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13578 | |
13579 | if test "$GCC" = yes; then | |
13580 | lt_prog_compiler_wl_FC='-Wl,' | |
13581 | lt_prog_compiler_static_FC='-static' | |
13582 | ||
13583 | case $host_os in | |
13584 | aix*) | |
13585 | # All AIX code is PIC. | |
13586 | if test "$host_cpu" = ia64; then | |
13587 | # AIX 5 now supports IA64 processor | |
13588 | lt_prog_compiler_static_FC='-Bstatic' | |
13589 | fi | |
bad8a4a7 | 13590 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13591 | ;; |
13592 | ||
13593 | amigaos*) | |
d58dead8 PG |
13594 | case $host_cpu in |
13595 | powerpc) | |
13596 | # see comment about AmigaOS4 .so support | |
13597 | lt_prog_compiler_pic_FC='-fPIC' | |
13598 | ;; | |
13599 | m68k) | |
13600 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13601 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13602 | # like `-m68040'. | |
13603 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13604 | ;; | |
13605 | esac | |
1cf3d07d SE |
13606 | ;; |
13607 | ||
13608 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13609 | # PIC is the default for these OSes. | |
13610 | ;; | |
13611 | ||
d58dead8 | 13612 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13613 | # This hack is so that the source file can tell whether it is being |
13614 | # built for inclusion in a dll (and should export symbols for example). | |
13615 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13616 | # (--disable-auto-import) libraries | |
13617 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13618 | ;; | |
13619 | ||
13620 | darwin* | rhapsody*) | |
13621 | # PIC is the default on this platform | |
13622 | # Common symbols not allowed in MH_DYLIB files | |
13623 | lt_prog_compiler_pic_FC='-fno-common' | |
13624 | ;; | |
13625 | ||
43e02a8a RW |
13626 | haiku*) |
13627 | # PIC is the default for Haiku. | |
13628 | # The "-static" flag exists, but is broken. | |
13629 | lt_prog_compiler_static_FC= | |
13630 | ;; | |
13631 | ||
1cf3d07d | 13632 | hpux*) |
d58dead8 PG |
13633 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13634 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13635 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13636 | case $host_cpu in |
d58dead8 | 13637 | hppa*64*) |
1cf3d07d SE |
13638 | # +Z the default |
13639 | ;; | |
13640 | *) | |
13641 | lt_prog_compiler_pic_FC='-fPIC' | |
13642 | ;; | |
13643 | esac | |
13644 | ;; | |
13645 | ||
13646 | interix[3-9]*) | |
13647 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13648 | # Instead, we relocate shared libraries at runtime. | |
13649 | ;; | |
13650 | ||
13651 | msdosdjgpp*) | |
13652 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13653 | # on systems that don't support them. | |
13654 | lt_prog_compiler_can_build_shared_FC=no | |
13655 | enable_shared=no | |
13656 | ;; | |
13657 | ||
13658 | *nto* | *qnx*) | |
13659 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13660 | # it will coredump. | |
13661 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13662 | ;; | |
13663 | ||
13664 | sysv4*MP*) | |
13665 | if test -d /usr/nec; then | |
13666 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13667 | fi | |
13668 | ;; | |
13669 | ||
13670 | *) | |
13671 | lt_prog_compiler_pic_FC='-fPIC' | |
13672 | ;; | |
13673 | esac | |
43e02a8a RW |
13674 | |
13675 | case $cc_basename in | |
13676 | nvcc*) # Cuda Compiler Driver 2.2 | |
13677 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13678 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13679 | ;; | |
13680 | esac | |
1cf3d07d SE |
13681 | else |
13682 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13683 | case $host_os in | |
13684 | aix*) | |
13685 | lt_prog_compiler_wl_FC='-Wl,' | |
13686 | if test "$host_cpu" = ia64; then | |
13687 | # AIX 5 now supports IA64 processor | |
13688 | lt_prog_compiler_static_FC='-Bstatic' | |
13689 | else | |
13690 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13691 | fi | |
13692 | ;; | |
1cf3d07d | 13693 | |
d58dead8 | 13694 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13695 | # This hack is so that the source file can tell whether it is being |
13696 | # built for inclusion in a dll (and should export symbols for example). | |
13697 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13698 | ;; | |
13699 | ||
13700 | hpux9* | hpux10* | hpux11*) | |
13701 | lt_prog_compiler_wl_FC='-Wl,' | |
13702 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13703 | # not for PA HP-UX. | |
13704 | case $host_cpu in | |
13705 | hppa*64*|ia64*) | |
13706 | # +Z the default | |
13707 | ;; | |
13708 | *) | |
13709 | lt_prog_compiler_pic_FC='+Z' | |
13710 | ;; | |
13711 | esac | |
13712 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13713 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13714 | ;; | |
13715 | ||
13716 | irix5* | irix6* | nonstopux*) | |
13717 | lt_prog_compiler_wl_FC='-Wl,' | |
13718 | # PIC (with -KPIC) is the default. | |
13719 | lt_prog_compiler_static_FC='-non_shared' | |
13720 | ;; | |
13721 | ||
7a9d3fe8 | 13722 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13723 | case $cc_basename in |
d58dead8 PG |
13724 | # old Intel for x86_64 which still supported -KPIC. |
13725 | ecc*) | |
1cf3d07d SE |
13726 | lt_prog_compiler_wl_FC='-Wl,' |
13727 | lt_prog_compiler_pic_FC='-KPIC' | |
13728 | lt_prog_compiler_static_FC='-static' | |
13729 | ;; | |
d58dead8 PG |
13730 | # icc used to be incompatible with GCC. |
13731 | # ICC 10 doesn't accept -KPIC any more. | |
13732 | icc* | ifort*) | |
13733 | lt_prog_compiler_wl_FC='-Wl,' | |
13734 | lt_prog_compiler_pic_FC='-fPIC' | |
13735 | lt_prog_compiler_static_FC='-static' | |
13736 | ;; | |
13737 | # Lahey Fortran 8.1. | |
13738 | lf95*) | |
13739 | lt_prog_compiler_wl_FC='-Wl,' | |
13740 | lt_prog_compiler_pic_FC='--shared' | |
13741 | lt_prog_compiler_static_FC='--static' | |
13742 | ;; | |
43e02a8a | 13743 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13744 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13745 | # which looks to be a dead project) | |
13746 | lt_prog_compiler_wl_FC='-Wl,' | |
13747 | lt_prog_compiler_pic_FC='-fpic' | |
13748 | lt_prog_compiler_static_FC='-Bstatic' | |
13749 | ;; | |
13750 | ccc*) | |
13751 | lt_prog_compiler_wl_FC='-Wl,' | |
13752 | # All Alpha code is PIC. | |
13753 | lt_prog_compiler_static_FC='-non_shared' | |
13754 | ;; | |
43e02a8a RW |
13755 | xl* | bgxl* | bgf* | mpixl*) |
13756 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
13757 | lt_prog_compiler_wl_FC='-Wl,' |
13758 | lt_prog_compiler_pic_FC='-qpic' | |
13759 | lt_prog_compiler_static_FC='-qstaticlink' | |
13760 | ;; | |
1cf3d07d SE |
13761 | *) |
13762 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
13763 | *Sun\ F* | *Sun*Fortran*) |
13764 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
13765 | lt_prog_compiler_pic_FC='-KPIC' |
13766 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13767 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 13768 | ;; |
43e02a8a RW |
13769 | *Sun\ C*) |
13770 | # Sun C 5.9 | |
1cf3d07d SE |
13771 | lt_prog_compiler_pic_FC='-KPIC' |
13772 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13773 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
13774 | ;; |
13775 | esac | |
13776 | ;; | |
13777 | esac | |
13778 | ;; | |
13779 | ||
13780 | newsos6) | |
13781 | lt_prog_compiler_pic_FC='-KPIC' | |
13782 | lt_prog_compiler_static_FC='-Bstatic' | |
13783 | ;; | |
13784 | ||
13785 | *nto* | *qnx*) | |
13786 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13787 | # it will coredump. | |
13788 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13789 | ;; | |
13790 | ||
13791 | osf3* | osf4* | osf5*) | |
13792 | lt_prog_compiler_wl_FC='-Wl,' | |
13793 | # All OSF/1 code is PIC. | |
13794 | lt_prog_compiler_static_FC='-non_shared' | |
13795 | ;; | |
13796 | ||
13797 | rdos*) | |
13798 | lt_prog_compiler_static_FC='-non_shared' | |
13799 | ;; | |
13800 | ||
13801 | solaris*) | |
13802 | lt_prog_compiler_pic_FC='-KPIC' | |
13803 | lt_prog_compiler_static_FC='-Bstatic' | |
13804 | case $cc_basename in | |
13805 | f77* | f90* | f95*) | |
13806 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13807 | *) | |
13808 | lt_prog_compiler_wl_FC='-Wl,';; | |
13809 | esac | |
13810 | ;; | |
13811 | ||
13812 | sunos4*) | |
13813 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13814 | lt_prog_compiler_pic_FC='-PIC' | |
13815 | lt_prog_compiler_static_FC='-Bstatic' | |
13816 | ;; | |
13817 | ||
13818 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13819 | lt_prog_compiler_wl_FC='-Wl,' | |
13820 | lt_prog_compiler_pic_FC='-KPIC' | |
13821 | lt_prog_compiler_static_FC='-Bstatic' | |
13822 | ;; | |
13823 | ||
13824 | sysv4*MP*) | |
13825 | if test -d /usr/nec ;then | |
13826 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13827 | lt_prog_compiler_static_FC='-Bstatic' | |
13828 | fi | |
13829 | ;; | |
13830 | ||
13831 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13832 | lt_prog_compiler_wl_FC='-Wl,' | |
13833 | lt_prog_compiler_pic_FC='-KPIC' | |
13834 | lt_prog_compiler_static_FC='-Bstatic' | |
13835 | ;; | |
13836 | ||
13837 | unicos*) | |
13838 | lt_prog_compiler_wl_FC='-Wl,' | |
13839 | lt_prog_compiler_can_build_shared_FC=no | |
13840 | ;; | |
13841 | ||
13842 | uts4*) | |
13843 | lt_prog_compiler_pic_FC='-pic' | |
13844 | lt_prog_compiler_static_FC='-Bstatic' | |
13845 | ;; | |
13846 | ||
13847 | *) | |
13848 | lt_prog_compiler_can_build_shared_FC=no | |
13849 | ;; | |
13850 | esac | |
13851 | fi | |
13852 | ||
13853 | case $host_os in | |
13854 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13855 | *djgpp*) | |
13856 | lt_prog_compiler_pic_FC= | |
13857 | ;; | |
13858 | *) | |
13859 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13860 | ;; | |
13861 | esac | |
5213506e RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13863 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
13864 | |
13865 | ||
13866 | ||
13867 | # | |
13868 | # Check to make sure the PIC flag actually works. | |
13869 | # | |
13870 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13872 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 13873 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 13874 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13875 | else |
d58dead8 | 13876 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
13877 | ac_outfile=conftest.$ac_objext |
13878 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13879 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13880 | # Insert the option either (1) after the last *FLAGS variable, or | |
13881 | # (2) before a word containing "conftest.", or (3) at the end. | |
13882 | # Note that $ac_compile itself does not contain backslashes and begins | |
13883 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13884 | # The option is referenced via a variable to avoid confusing sed. | |
13885 | lt_compile=`echo "$ac_compile" | $SED \ | |
13886 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13887 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13888 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 13889 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
13890 | (eval "$lt_compile" 2>conftest.err) |
13891 | ac_status=$? | |
13892 | cat conftest.err >&5 | |
43e02a8a | 13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
13894 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13895 | # The compiler can only warn and ignore the option if not recognized | |
13896 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 13897 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
13898 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13899 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 13900 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
13901 | fi |
13902 | fi | |
13903 | $RM conftest* | |
13904 | ||
13905 | fi | |
5213506e RW |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13907 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 13908 | |
d58dead8 | 13909 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
13910 | case $lt_prog_compiler_pic_FC in |
13911 | "" | " "*) ;; | |
13912 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13913 | esac | |
13914 | else | |
13915 | lt_prog_compiler_pic_FC= | |
13916 | lt_prog_compiler_can_build_shared_FC=no | |
13917 | fi | |
13918 | ||
13919 | fi | |
13920 | ||
13921 | ||
13922 | ||
13923 | # | |
13924 | # Check to make sure the static flag actually works. | |
13925 | # | |
13926 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13928 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 13929 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 13930 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13931 | else |
d58dead8 | 13932 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
13933 | save_LDFLAGS="$LDFLAGS" |
13934 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13935 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13936 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13937 | # The linker can only warn and ignore the option if not recognized | |
13938 | # So say no if there are warnings | |
13939 | if test -s conftest.err; then | |
13940 | # Append any errors to the config.log. | |
13941 | cat conftest.err 1>&5 | |
43e02a8a | 13942 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
13943 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13944 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 13945 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
13946 | fi |
13947 | else | |
d58dead8 | 13948 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
13949 | fi |
13950 | fi | |
d58dead8 | 13951 | $RM -r conftest* |
1cf3d07d SE |
13952 | LDFLAGS="$save_LDFLAGS" |
13953 | ||
13954 | fi | |
5213506e RW |
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13956 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 13957 | |
d58dead8 | 13958 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
13959 | : |
13960 | else | |
13961 | lt_prog_compiler_static_FC= | |
13962 | fi | |
13963 | ||
13964 | ||
13965 | ||
13966 | ||
5213506e RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13968 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 13969 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 13970 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13971 | else |
13972 | lt_cv_prog_compiler_c_o_FC=no | |
13973 | $RM -r conftest 2>/dev/null | |
13974 | mkdir conftest | |
13975 | cd conftest | |
13976 | mkdir out | |
13977 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13978 | ||
13979 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13980 | # Insert the option either (1) after the last *FLAGS variable, or | |
13981 | # (2) before a word containing "conftest.", or (3) at the end. | |
13982 | # Note that $ac_compile itself does not contain backslashes and begins | |
13983 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13984 | lt_compile=`echo "$ac_compile" | $SED \ | |
13985 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13986 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13987 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 13988 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
13989 | (eval "$lt_compile" 2>out/conftest.err) |
13990 | ac_status=$? | |
13991 | cat out/conftest.err >&5 | |
43e02a8a | 13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
13993 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13994 | then | |
13995 | # The compiler can only warn and ignore the option if not recognized | |
13996 | # So say no if there are warnings | |
43e02a8a | 13997 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
13998 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13999 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14000 | lt_cv_prog_compiler_c_o_FC=yes | |
14001 | fi | |
14002 | fi | |
14003 | chmod u+w . 2>&5 | |
14004 | $RM conftest* | |
14005 | # SGI C++ compiler will create directory out/ii_files/ for | |
14006 | # template instantiation | |
14007 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14008 | $RM out/* && rmdir out | |
14009 | cd .. | |
14010 | $RM -r conftest | |
14011 | $RM conftest* | |
14012 | ||
14013 | fi | |
5213506e RW |
14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14015 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14016 | |
14017 | ||
14018 | ||
5213506e RW |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14020 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14021 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14022 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14023 | else |
14024 | lt_cv_prog_compiler_c_o_FC=no | |
14025 | $RM -r conftest 2>/dev/null | |
14026 | mkdir conftest | |
14027 | cd conftest | |
14028 | mkdir out | |
14029 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14030 | ||
14031 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14032 | # Insert the option either (1) after the last *FLAGS variable, or | |
14033 | # (2) before a word containing "conftest.", or (3) at the end. | |
14034 | # Note that $ac_compile itself does not contain backslashes and begins | |
14035 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14036 | lt_compile=`echo "$ac_compile" | $SED \ | |
14037 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14038 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14039 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14040 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14041 | (eval "$lt_compile" 2>out/conftest.err) |
14042 | ac_status=$? | |
14043 | cat out/conftest.err >&5 | |
43e02a8a | 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14045 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14046 | then | |
14047 | # The compiler can only warn and ignore the option if not recognized | |
14048 | # So say no if there are warnings | |
43e02a8a | 14049 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14050 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14051 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14052 | lt_cv_prog_compiler_c_o_FC=yes | |
14053 | fi | |
14054 | fi | |
14055 | chmod u+w . 2>&5 | |
14056 | $RM conftest* | |
14057 | # SGI C++ compiler will create directory out/ii_files/ for | |
14058 | # template instantiation | |
14059 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14060 | $RM out/* && rmdir out | |
14061 | cd .. | |
14062 | $RM -r conftest | |
14063 | $RM conftest* | |
14064 | ||
14065 | fi | |
5213506e RW |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14067 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14068 | |
14069 | ||
14070 | ||
14071 | ||
14072 | hard_links="nottested" | |
14073 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14074 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14076 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14077 | hard_links=yes |
14078 | $RM conftest* | |
14079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14080 | touch conftest.a | |
14081 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14082 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14084 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14085 | if test "$hard_links" = no; then |
5213506e RW |
14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14087 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14088 | need_locks=warn |
14089 | fi | |
14090 | else | |
14091 | need_locks=no | |
14092 | fi | |
14093 | ||
14094 | ||
14095 | ||
5213506e RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14097 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14098 | |
14099 | runpath_var= | |
14100 | allow_undefined_flag_FC= | |
14101 | always_export_symbols_FC=no | |
14102 | archive_cmds_FC= | |
14103 | archive_expsym_cmds_FC= | |
14104 | compiler_needs_object_FC=no | |
14105 | enable_shared_with_static_runtimes_FC=no | |
14106 | export_dynamic_flag_spec_FC= | |
14107 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14108 | hardcode_automatic_FC=no | |
14109 | hardcode_direct_FC=no | |
14110 | hardcode_direct_absolute_FC=no | |
14111 | hardcode_libdir_flag_spec_FC= | |
14112 | hardcode_libdir_flag_spec_ld_FC= | |
14113 | hardcode_libdir_separator_FC= | |
14114 | hardcode_minus_L_FC=no | |
14115 | hardcode_shlibpath_var_FC=unsupported | |
14116 | inherit_rpath_FC=no | |
14117 | link_all_deplibs_FC=unknown | |
14118 | module_cmds_FC= | |
14119 | module_expsym_cmds_FC= | |
14120 | old_archive_from_new_cmds_FC= | |
14121 | old_archive_from_expsyms_cmds_FC= | |
14122 | thread_safe_flag_spec_FC= | |
14123 | whole_archive_flag_spec_FC= | |
14124 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14125 | # included in the symbol list | |
14126 | include_expsyms_FC= | |
14127 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14128 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14129 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14130 | # as well as any symbol that contains `d'. | |
d58dead8 | 14131 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14132 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14133 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14134 | # the symbol is explicitly referenced. Since portable code cannot | |
14135 | # rely on this symbol name, it's probably fine to never include it in | |
14136 | # preloaded symbol tables. | |
d58dead8 | 14137 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14138 | extract_expsyms_cmds= |
14139 | ||
14140 | case $host_os in | |
d58dead8 | 14141 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14142 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14143 | # When not using gcc, we currently assume that we are using | |
14144 | # Microsoft Visual C++. | |
14145 | if test "$GCC" != yes; then | |
14146 | with_gnu_ld=no | |
14147 | fi | |
14148 | ;; | |
14149 | interix*) | |
14150 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14151 | with_gnu_ld=yes | |
14152 | ;; | |
14153 | openbsd*) | |
14154 | with_gnu_ld=no | |
14155 | ;; | |
14156 | esac | |
14157 | ||
14158 | ld_shlibs_FC=yes | |
43e02a8a RW |
14159 | |
14160 | # On some targets, GNU ld is compatible enough with the native linker | |
14161 | # that we're better off using the native interface for both. | |
14162 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14163 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14164 | case $host_os in |
14165 | aix*) | |
14166 | # The AIX port of GNU ld has always aspired to compatibility | |
14167 | # with the native linker. However, as the warning in the GNU ld | |
14168 | # block says, versions before 2.19.5* couldn't really create working | |
14169 | # shared libraries, regardless of the interface used. | |
14170 | case `$LD -v 2>&1` in | |
14171 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14172 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14173 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14174 | *) | |
14175 | lt_use_gnu_ld_interface=yes | |
14176 | ;; | |
14177 | esac | |
14178 | ;; | |
14179 | *) | |
14180 | lt_use_gnu_ld_interface=yes | |
14181 | ;; | |
14182 | esac | |
14183 | fi | |
14184 | ||
14185 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14186 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14187 | wlarc='${wl}' | |
14188 | ||
14189 | # Set some defaults for GNU ld with shared library support. These | |
14190 | # are reset later if shared libraries are not supported. Putting them | |
14191 | # here allows them to be overridden if necessary. | |
14192 | runpath_var=LD_RUN_PATH | |
14193 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14194 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14195 | # ancient GNU ld didn't support --whole-archive et. al. | |
14196 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14197 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14198 | else | |
14199 | whole_archive_flag_spec_FC= | |
14200 | fi | |
14201 | supports_anon_versioning=no | |
14202 | case `$LD -v 2>&1` in | |
43e02a8a | 14203 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14204 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14205 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14206 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14207 | *\ 2.11.*) ;; # other 2.11 versions | |
14208 | *) supports_anon_versioning=yes ;; | |
14209 | esac | |
14210 | ||
14211 | # See if GNU ld supports shared libraries. | |
14212 | case $host_os in | |
4f6bebc3 | 14213 | aix[3-9]*) |
1cf3d07d SE |
14214 | # On AIX/PPC, the GNU linker is very broken |
14215 | if test "$host_cpu" != ia64; then | |
14216 | ld_shlibs_FC=no | |
14217 | cat <<_LT_EOF 1>&2 | |
14218 | ||
43e02a8a | 14219 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14220 | *** to be unable to reliably create shared libraries on AIX. |
14221 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14222 | *** really care for shared libraries, you may want to install binutils |
14223 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14224 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14225 | |
14226 | _LT_EOF | |
14227 | fi | |
14228 | ;; | |
14229 | ||
14230 | amigaos*) | |
d58dead8 PG |
14231 | case $host_cpu in |
14232 | powerpc) | |
14233 | # see comment about AmigaOS4 .so support | |
14234 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14235 | archive_expsym_cmds_FC='' | |
14236 | ;; | |
14237 | m68k) | |
14238 | 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)' | |
14239 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14240 | hardcode_minus_L_FC=yes | |
14241 | ;; | |
14242 | esac | |
1cf3d07d SE |
14243 | ;; |
14244 | ||
14245 | beos*) | |
14246 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14247 | allow_undefined_flag_FC=unsupported | |
14248 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14249 | # support --undefined. This deserves some investigation. FIXME | |
14250 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14251 | else | |
14252 | ld_shlibs_FC=no | |
14253 | fi | |
14254 | ;; | |
14255 | ||
d58dead8 | 14256 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14257 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14258 | # as there is no search path for DLLs. | |
14259 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14260 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14261 | allow_undefined_flag_FC=unsupported |
14262 | always_export_symbols_FC=no | |
14263 | enable_shared_with_static_runtimes_FC=yes | |
14264 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14265 | ||
14266 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14267 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14268 | # If the export-symbols file already is a .def file (1st line | |
14269 | # is EXPORTS), use it as is; otherwise, prepend... | |
14270 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14271 | cp $export_symbols $output_objdir/$soname.def; | |
14272 | else | |
14273 | echo EXPORTS > $output_objdir/$soname.def; | |
14274 | cat $export_symbols >> $output_objdir/$soname.def; | |
14275 | fi~ | |
14276 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14277 | else | |
14278 | ld_shlibs_FC=no | |
14279 | fi | |
14280 | ;; | |
14281 | ||
43e02a8a RW |
14282 | haiku*) |
14283 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14284 | link_all_deplibs_FC=yes | |
14285 | ;; | |
14286 | ||
1cf3d07d SE |
14287 | interix[3-9]*) |
14288 | hardcode_direct_FC=no | |
14289 | hardcode_shlibpath_var_FC=no | |
14290 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14291 | export_dynamic_flag_spec_FC='${wl}-E' | |
14292 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14293 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14294 | # default) and relocated if they conflict, which is a slow very memory | |
14295 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14296 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14297 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14298 | 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' | |
14299 | 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' | |
14300 | ;; | |
14301 | ||
e9085da5 | 14302 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14303 | tmp_diet=no |
14304 | if test "$host_os" = linux-dietlibc; then | |
14305 | case $cc_basename in | |
14306 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14307 | esac | |
14308 | fi | |
14309 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14310 | && test "$tmp_diet" = no | |
14311 | then | |
a699d672 | 14312 | tmp_addflag=' $pic_flag' |
d58dead8 | 14313 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14314 | case $cc_basename,$host_cpu in |
14315 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14316 | 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 |
14317 | tmp_addflag=' $pic_flag' |
14318 | ;; | |
43e02a8a RW |
14319 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14320 | # Portland Group f77 and f90 compilers | |
14321 | 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 |
14322 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14323 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14324 | tmp_addflag=' -i_dynamic' ;; | |
14325 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14326 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14327 | ifc* | ifort*) # Intel Fortran compiler | |
14328 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14329 | lf95*) # Lahey Fortran 8.1 |
14330 | whole_archive_flag_spec_FC= | |
14331 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14332 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14333 | tmp_sharedflag='-qmkshrobj' |
14334 | tmp_addflag= ;; | |
43e02a8a RW |
14335 | nvcc*) # Cuda Compiler Driver 2.2 |
14336 | 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' | |
14337 | compiler_needs_object_FC=yes | |
14338 | ;; | |
1cf3d07d SE |
14339 | esac |
14340 | case `$CC -V 2>&1 | sed 5q` in | |
14341 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14342 | 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 |
14343 | compiler_needs_object_FC=yes |
14344 | tmp_sharedflag='-G' ;; | |
14345 | *Sun\ F*) # Sun Fortran 8.3 | |
14346 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14347 | esac |
14348 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14349 | ||
14350 | if test "x$supports_anon_versioning" = xyes; then | |
14351 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14352 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14353 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14354 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14355 | fi | |
d58dead8 PG |
14356 | |
14357 | case $cc_basename in | |
43e02a8a | 14358 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14359 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14360 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14361 | hardcode_libdir_flag_spec_FC= | |
14362 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14363 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14364 | if test "x$supports_anon_versioning" = xyes; then | |
14365 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14366 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14367 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14368 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14369 | fi | |
14370 | ;; | |
14371 | esac | |
1cf3d07d SE |
14372 | else |
14373 | ld_shlibs_FC=no | |
14374 | fi | |
14375 | ;; | |
14376 | ||
14377 | netbsd*) | |
14378 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14379 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14380 | wlarc= | |
14381 | else | |
14382 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14383 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14384 | fi | |
14385 | ;; | |
14386 | ||
14387 | solaris*) | |
14388 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14389 | ld_shlibs_FC=no | |
14390 | cat <<_LT_EOF 1>&2 | |
14391 | ||
14392 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14393 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14394 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14395 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14396 | *** your PATH or compiler configuration so that the native linker is | |
14397 | *** used, and then restart. | |
14398 | ||
14399 | _LT_EOF | |
14400 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14401 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14402 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14403 | else | |
14404 | ld_shlibs_FC=no | |
14405 | fi | |
14406 | ;; | |
14407 | ||
14408 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14409 | case `$LD -v 2>&1` in | |
14410 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14411 | ld_shlibs_FC=no | |
14412 | cat <<_LT_EOF 1>&2 | |
14413 | ||
14414 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14415 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14416 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14417 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14418 | *** your PATH or compiler configuration so that the native linker is | |
14419 | *** used, and then restart. | |
14420 | ||
14421 | _LT_EOF | |
14422 | ;; | |
14423 | *) | |
14424 | # For security reasons, it is highly recommended that you always | |
14425 | # use absolute paths for naming shared libraries, and exclude the | |
14426 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14427 | # requires that you compile everything twice, which is a pain. | |
14428 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14429 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14430 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14431 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14432 | else | |
14433 | ld_shlibs_FC=no | |
14434 | fi | |
14435 | ;; | |
14436 | esac | |
14437 | ;; | |
14438 | ||
14439 | sunos4*) | |
14440 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14441 | wlarc= | |
14442 | hardcode_direct_FC=yes | |
14443 | hardcode_shlibpath_var_FC=no | |
14444 | ;; | |
14445 | ||
14446 | *) | |
14447 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14448 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14449 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14450 | else | |
14451 | ld_shlibs_FC=no | |
14452 | fi | |
14453 | ;; | |
14454 | esac | |
14455 | ||
14456 | if test "$ld_shlibs_FC" = no; then | |
14457 | runpath_var= | |
14458 | hardcode_libdir_flag_spec_FC= | |
14459 | export_dynamic_flag_spec_FC= | |
14460 | whole_archive_flag_spec_FC= | |
14461 | fi | |
14462 | else | |
14463 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14464 | case $host_os in | |
14465 | aix3*) | |
14466 | allow_undefined_flag_FC=unsupported | |
14467 | always_export_symbols_FC=yes | |
14468 | 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' | |
14469 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14470 | # are no directories specified by -L. | |
14471 | hardcode_minus_L_FC=yes | |
14472 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14473 | # Neither direct hardcoding nor static linking is supported with a | |
14474 | # broken collect2. | |
14475 | hardcode_direct_FC=unsupported | |
14476 | fi | |
14477 | ;; | |
14478 | ||
4f6bebc3 | 14479 | aix[4-9]*) |
1cf3d07d SE |
14480 | if test "$host_cpu" = ia64; then |
14481 | # On IA64, the linker does run time linking by default, so we don't | |
14482 | # have to do anything special. | |
14483 | aix_use_runtimelinking=no | |
14484 | exp_sym_flag='-Bexport' | |
14485 | no_entry_flag="" | |
14486 | else | |
14487 | # If we're using GNU nm, then we don't want the "-C" option. | |
14488 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14489 | # Also, AIX nm treats weak defined symbols like other global |
14490 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14491 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14492 | 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 | 14493 | else |
d3ca2257 | 14494 | 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 |
14495 | fi |
14496 | aix_use_runtimelinking=no | |
14497 | ||
14498 | # Test if we are trying to use run time linking or normal | |
14499 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14500 | # need to do runtime linking. | |
4f6bebc3 | 14501 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14502 | for ld_flag in $LDFLAGS; do |
14503 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14504 | aix_use_runtimelinking=yes | |
14505 | break | |
14506 | fi | |
14507 | done | |
14508 | ;; | |
14509 | esac | |
14510 | ||
14511 | exp_sym_flag='-bexport' | |
14512 | no_entry_flag='-bnoentry' | |
14513 | fi | |
14514 | ||
14515 | # When large executables or shared objects are built, AIX ld can | |
14516 | # have problems creating the table of contents. If linking a library | |
14517 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14518 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14519 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14520 | ||
14521 | archive_cmds_FC='' | |
14522 | hardcode_direct_FC=yes | |
14523 | hardcode_direct_absolute_FC=yes | |
14524 | hardcode_libdir_separator_FC=':' | |
14525 | link_all_deplibs_FC=yes | |
14526 | file_list_spec_FC='${wl}-f,' | |
14527 | ||
14528 | if test "$GCC" = yes; then | |
14529 | case $host_os in aix4.[012]|aix4.[012].*) | |
14530 | # We only want to do this on AIX 4.2 and lower, the check | |
14531 | # below for broken collect2 doesn't work under 4.3+ | |
14532 | collect2name=`${CC} -print-prog-name=collect2` | |
14533 | if test -f "$collect2name" && | |
14534 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14535 | then | |
14536 | # We have reworked collect2 | |
14537 | : | |
14538 | else | |
14539 | # We have old collect2 | |
14540 | hardcode_direct_FC=unsupported | |
14541 | # It fails to find uninstalled libraries when the uninstalled | |
14542 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14543 | # to unsupported forces relinking | |
14544 | hardcode_minus_L_FC=yes | |
14545 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14546 | hardcode_libdir_separator_FC= | |
14547 | fi | |
14548 | ;; | |
14549 | esac | |
14550 | shared_flag='-shared' | |
14551 | if test "$aix_use_runtimelinking" = yes; then | |
14552 | shared_flag="$shared_flag "'${wl}-G' | |
14553 | fi | |
14554 | else | |
14555 | # not using gcc | |
14556 | if test "$host_cpu" = ia64; then | |
14557 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14558 | # chokes on -Wl,-G. The following line is correct: | |
14559 | shared_flag='-G' | |
14560 | else | |
14561 | if test "$aix_use_runtimelinking" = yes; then | |
14562 | shared_flag='${wl}-G' | |
14563 | else | |
14564 | shared_flag='${wl}-bM:SRE' | |
14565 | fi | |
14566 | fi | |
14567 | fi | |
14568 | ||
d58dead8 | 14569 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14570 | # It seems that -bexpall does not export symbols beginning with |
14571 | # underscore (_), so it is better to generate a list of symbols to export. | |
14572 | always_export_symbols_FC=yes | |
14573 | if test "$aix_use_runtimelinking" = yes; then | |
14574 | # Warning - without using the other runtime loading flags (-brtl), | |
14575 | # -berok will link without error, but may produce a broken library. | |
14576 | allow_undefined_flag_FC='-berok' | |
14577 | # Determine the default libpath from the value encoded in an | |
14578 | # empty executable. | |
14579 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14580 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14581 | fi |
5213506e | 14582 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14583 | program main |
14584 | ||
14585 | end | |
14586 | _ACEOF | |
5213506e | 14587 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14588 | |
14589 | lt_aix_libpath_sed=' | |
14590 | /Import File Strings/,/^$/ { | |
14591 | /^0/ { | |
14592 | s/^0 *\(.*\)$/\1/ | |
14593 | p | |
14594 | } | |
14595 | }' | |
14596 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14597 | # Check for a 64-bit object if we didn't find anything. | |
14598 | if test -z "$aix_libpath"; then | |
14599 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14600 | fi | |
1cf3d07d | 14601 | fi |
5213506e RW |
14602 | rm -f core conftest.err conftest.$ac_objext \ |
14603 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14604 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14605 | ||
14606 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14607 | 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 |
14608 | else |
14609 | if test "$host_cpu" = ia64; then | |
14610 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14611 | allow_undefined_flag_FC="-z nodefs" | |
14612 | 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" | |
14613 | else | |
14614 | # Determine the default libpath from the value encoded in an | |
14615 | # empty executable. | |
14616 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14617 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14618 | fi |
5213506e | 14619 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14620 | program main |
14621 | ||
14622 | end | |
14623 | _ACEOF | |
5213506e | 14624 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14625 | |
14626 | lt_aix_libpath_sed=' | |
14627 | /Import File Strings/,/^$/ { | |
14628 | /^0/ { | |
14629 | s/^0 *\(.*\)$/\1/ | |
14630 | p | |
14631 | } | |
14632 | }' | |
14633 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14634 | # Check for a 64-bit object if we didn't find anything. | |
14635 | if test -z "$aix_libpath"; then | |
14636 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14637 | fi | |
1cf3d07d | 14638 | fi |
5213506e RW |
14639 | rm -f core conftest.err conftest.$ac_objext \ |
14640 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14641 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14642 | ||
14643 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14644 | # Warning - without using the other run time loading flags, | |
14645 | # -berok will link without error, but may produce a broken library. | |
14646 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14647 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14648 | if test "$with_gnu_ld" = yes; then |
14649 | # We only use this code for GNU lds that support --whole-archive. | |
14650 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14651 | else | |
14652 | # Exported symbols can be pulled into shared objects from archives | |
14653 | whole_archive_flag_spec_FC='$convenience' | |
14654 | fi | |
1cf3d07d SE |
14655 | archive_cmds_need_lc_FC=yes |
14656 | # This is similar to how AIX traditionally builds its shared libraries. | |
14657 | 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' | |
14658 | fi | |
14659 | fi | |
14660 | ;; | |
14661 | ||
14662 | amigaos*) | |
d58dead8 PG |
14663 | case $host_cpu in |
14664 | powerpc) | |
14665 | # see comment about AmigaOS4 .so support | |
14666 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14667 | archive_expsym_cmds_FC='' | |
14668 | ;; | |
14669 | m68k) | |
14670 | 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)' | |
14671 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14672 | hardcode_minus_L_FC=yes | |
14673 | ;; | |
14674 | esac | |
1cf3d07d SE |
14675 | ;; |
14676 | ||
14677 | bsdi[45]*) | |
14678 | export_dynamic_flag_spec_FC=-rdynamic | |
14679 | ;; | |
14680 | ||
d58dead8 | 14681 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14682 | # When not using gcc, we currently assume that we are using |
14683 | # Microsoft Visual C++. | |
14684 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14685 | # no search path for DLLs. | |
14686 | hardcode_libdir_flag_spec_FC=' ' | |
14687 | allow_undefined_flag_FC=unsupported | |
14688 | # Tell ltmain to make .lib files, not .a files. | |
14689 | libext=lib | |
14690 | # Tell ltmain to make .dll files, not .so files. | |
14691 | shrext_cmds=".dll" | |
14692 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14693 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14694 | # The linker will automatically build a .lib file if we build a DLL. |
14695 | old_archive_from_new_cmds_FC='true' | |
14696 | # FIXME: Should let the user specify the lib program. | |
14697 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14698 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14699 | enable_shared_with_static_runtimes_FC=yes | |
14700 | ;; | |
14701 | ||
14702 | darwin* | rhapsody*) | |
1cf3d07d | 14703 | |
d58dead8 PG |
14704 | |
14705 | archive_cmds_need_lc_FC=no | |
14706 | hardcode_direct_FC=no | |
14707 | hardcode_automatic_FC=yes | |
14708 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14709 | if test "$lt_cv_ld_force_load" = "yes"; then |
14710 | 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\"`' | |
14711 | else | |
14712 | whole_archive_flag_spec_FC='' | |
14713 | fi | |
d58dead8 PG |
14714 | link_all_deplibs_FC=yes |
14715 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14716 | case $cc_basename in | |
14717 | ifort*) _lt_dar_can_shared=yes ;; | |
14718 | *) _lt_dar_can_shared=$GCC ;; | |
14719 | esac | |
14720 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14721 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14722 | 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}" |
14723 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14724 | 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}" | |
14725 | 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}" | |
14726 | ||
14727 | else | |
14728 | ld_shlibs_FC=no | |
14729 | fi | |
14730 | ||
1cf3d07d SE |
14731 | ;; |
14732 | ||
14733 | dgux*) | |
14734 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14735 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14736 | hardcode_shlibpath_var_FC=no | |
14737 | ;; | |
14738 | ||
1cf3d07d SE |
14739 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14740 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14741 | # does not break anything, and helps significantly (at the cost of a little | |
14742 | # extra space). | |
14743 | freebsd2.2*) | |
14744 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14745 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14746 | hardcode_direct_FC=yes | |
14747 | hardcode_shlibpath_var_FC=no | |
14748 | ;; | |
14749 | ||
14750 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14751 | freebsd2.*) |
1cf3d07d SE |
14752 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14753 | hardcode_direct_FC=yes | |
14754 | hardcode_minus_L_FC=yes | |
14755 | hardcode_shlibpath_var_FC=no | |
14756 | ;; | |
14757 | ||
14758 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14759 | freebsd* | dragonfly*) | |
14760 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14761 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14762 | hardcode_direct_FC=yes | |
14763 | hardcode_shlibpath_var_FC=no | |
14764 | ;; | |
14765 | ||
14766 | hpux9*) | |
14767 | if test "$GCC" = yes; then | |
14768 | 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' | |
14769 | else | |
14770 | 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' | |
14771 | fi | |
14772 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14773 | hardcode_libdir_separator_FC=: | |
14774 | hardcode_direct_FC=yes | |
14775 | ||
14776 | # hardcode_minus_L: Not really in the search PATH, | |
14777 | # but as the default location of the library. | |
14778 | hardcode_minus_L_FC=yes | |
14779 | export_dynamic_flag_spec_FC='${wl}-E' | |
14780 | ;; | |
14781 | ||
14782 | hpux10*) | |
43e02a8a | 14783 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14784 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14785 | else | |
14786 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14787 | fi | |
14788 | if test "$with_gnu_ld" = no; then | |
14789 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14790 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14791 | hardcode_libdir_separator_FC=: | |
14792 | hardcode_direct_FC=yes | |
14793 | hardcode_direct_absolute_FC=yes | |
14794 | export_dynamic_flag_spec_FC='${wl}-E' | |
14795 | # hardcode_minus_L: Not really in the search PATH, | |
14796 | # but as the default location of the library. | |
14797 | hardcode_minus_L_FC=yes | |
14798 | fi | |
14799 | ;; | |
14800 | ||
14801 | hpux11*) | |
43e02a8a | 14802 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14803 | case $host_cpu in |
14804 | hppa*64*) | |
14805 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14806 | ;; | |
14807 | ia64*) | |
d58dead8 | 14808 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14809 | ;; |
14810 | *) | |
14811 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14812 | ;; | |
14813 | esac | |
14814 | else | |
14815 | case $host_cpu in | |
14816 | hppa*64*) | |
14817 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14818 | ;; | |
14819 | ia64*) | |
14820 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14821 | ;; | |
14822 | *) | |
43e02a8a | 14823 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14824 | ;; |
14825 | esac | |
14826 | fi | |
14827 | if test "$with_gnu_ld" = no; then | |
14828 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14829 | hardcode_libdir_separator_FC=: | |
14830 | ||
14831 | case $host_cpu in | |
14832 | hppa*64*|ia64*) | |
14833 | hardcode_direct_FC=no | |
14834 | hardcode_shlibpath_var_FC=no | |
14835 | ;; | |
14836 | *) | |
14837 | hardcode_direct_FC=yes | |
14838 | hardcode_direct_absolute_FC=yes | |
14839 | export_dynamic_flag_spec_FC='${wl}-E' | |
14840 | ||
14841 | # hardcode_minus_L: Not really in the search PATH, | |
14842 | # but as the default location of the library. | |
14843 | hardcode_minus_L_FC=yes | |
14844 | ;; | |
14845 | esac | |
14846 | fi | |
14847 | ;; | |
14848 | ||
14849 | irix5* | irix6* | nonstopux*) | |
14850 | if test "$GCC" = yes; then | |
43e02a8a | 14851 | 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 |
14852 | # Try to use the -exported_symbol ld option, if it does not |
14853 | # work, assume that -exports_file does not work either and | |
14854 | # implicitly export all symbols. | |
14855 | save_LDFLAGS="$LDFLAGS" | |
14856 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14857 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14858 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14859 | fi |
5213506e | 14860 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14861 | int foo(void) {} |
14862 | _ACEOF | |
5213506e | 14863 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 14864 | 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 | 14865 | |
1cf3d07d | 14866 | fi |
5213506e RW |
14867 | rm -f core conftest.err conftest.$ac_objext \ |
14868 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14869 | LDFLAGS="$save_LDFLAGS" |
14870 | else | |
43e02a8a RW |
14871 | 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' |
14872 | 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 |
14873 | fi |
14874 | archive_cmds_need_lc_FC='no' | |
14875 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14876 | hardcode_libdir_separator_FC=: | |
14877 | inherit_rpath_FC=yes | |
14878 | link_all_deplibs_FC=yes | |
14879 | ;; | |
14880 | ||
14881 | netbsd*) | |
14882 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14883 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14884 | else | |
14885 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14886 | fi | |
14887 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14888 | hardcode_direct_FC=yes | |
14889 | hardcode_shlibpath_var_FC=no | |
14890 | ;; | |
14891 | ||
14892 | newsos6) | |
14893 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14894 | hardcode_direct_FC=yes | |
14895 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14896 | hardcode_libdir_separator_FC=: | |
14897 | hardcode_shlibpath_var_FC=no | |
14898 | ;; | |
14899 | ||
14900 | *nto* | *qnx*) | |
14901 | ;; | |
14902 | ||
14903 | openbsd*) | |
d58dead8 PG |
14904 | if test -f /usr/libexec/ld.so; then |
14905 | hardcode_direct_FC=yes | |
14906 | hardcode_shlibpath_var_FC=no | |
14907 | hardcode_direct_absolute_FC=yes | |
14908 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 14909 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 14910 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 14911 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
14912 | export_dynamic_flag_spec_FC='${wl}-E' |
14913 | else | |
14914 | case $host_os in | |
14915 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14916 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14917 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14918 | ;; | |
14919 | *) | |
14920 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14921 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14922 | ;; | |
14923 | esac | |
14924 | fi | |
14925 | else | |
14926 | ld_shlibs_FC=no | |
1cf3d07d SE |
14927 | fi |
14928 | ;; | |
14929 | ||
14930 | os2*) | |
14931 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14932 | hardcode_minus_L_FC=yes | |
14933 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 14934 | 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 |
14935 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14936 | ;; | |
14937 | ||
14938 | osf3*) | |
14939 | if test "$GCC" = yes; then | |
14940 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 14941 | 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 |
14942 | else |
14943 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 14944 | 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 |
14945 | fi |
14946 | archive_cmds_need_lc_FC='no' | |
14947 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14948 | hardcode_libdir_separator_FC=: | |
14949 | ;; | |
14950 | ||
14951 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14952 | if test "$GCC" = yes; then | |
14953 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 14954 | 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 |
14955 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14956 | else | |
14957 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 14958 | 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 | 14959 | 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 | 14960 | $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 |
14961 | |
14962 | # Both c and cxx compiler support -rpath directly | |
14963 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14964 | fi | |
14965 | archive_cmds_need_lc_FC='no' | |
14966 | hardcode_libdir_separator_FC=: | |
14967 | ;; | |
14968 | ||
14969 | solaris*) | |
14970 | no_undefined_flag_FC=' -z defs' | |
14971 | if test "$GCC" = yes; then | |
14972 | wlarc='${wl}' | |
14973 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14974 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14975 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14976 | else | |
14977 | case `$CC -V 2>&1` in | |
14978 | *"Compilers 5.0"*) | |
14979 | wlarc='' | |
14980 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14981 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14982 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
14983 | ;; | |
14984 | *) | |
14985 | wlarc='${wl}' | |
14986 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14987 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14988 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14989 | ;; | |
14990 | esac | |
14991 | fi | |
14992 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14993 | hardcode_shlibpath_var_FC=no | |
14994 | case $host_os in | |
14995 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14996 | *) | |
14997 | # The compiler driver will combine and reorder linker options, | |
14998 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
14999 | # but is careful enough not to reorder. | |
15000 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15001 | if test "$GCC" = yes; then | |
15002 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15003 | else | |
15004 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15005 | fi | |
15006 | ;; | |
15007 | esac | |
15008 | link_all_deplibs_FC=yes | |
15009 | ;; | |
15010 | ||
15011 | sunos4*) | |
15012 | if test "x$host_vendor" = xsequent; then | |
15013 | # Use $CC to link under sequent, because it throws in some extra .o | |
15014 | # files that make .init and .fini sections work. | |
15015 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15016 | else | |
15017 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15018 | fi | |
15019 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15020 | hardcode_direct_FC=yes | |
15021 | hardcode_minus_L_FC=yes | |
15022 | hardcode_shlibpath_var_FC=no | |
15023 | ;; | |
15024 | ||
15025 | sysv4) | |
15026 | case $host_vendor in | |
15027 | sni) | |
15028 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15029 | hardcode_direct_FC=yes # is this really true??? | |
15030 | ;; | |
15031 | siemens) | |
15032 | ## LD is ld it makes a PLAMLIB | |
15033 | ## CC just makes a GrossModule. | |
15034 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15035 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15036 | hardcode_direct_FC=no | |
15037 | ;; | |
15038 | motorola) | |
15039 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15040 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15041 | ;; | |
15042 | esac | |
15043 | runpath_var='LD_RUN_PATH' | |
15044 | hardcode_shlibpath_var_FC=no | |
15045 | ;; | |
15046 | ||
15047 | sysv4.3*) | |
15048 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15049 | hardcode_shlibpath_var_FC=no | |
15050 | export_dynamic_flag_spec_FC='-Bexport' | |
15051 | ;; | |
15052 | ||
15053 | sysv4*MP*) | |
15054 | if test -d /usr/nec; then | |
15055 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15056 | hardcode_shlibpath_var_FC=no | |
15057 | runpath_var=LD_RUN_PATH | |
15058 | hardcode_runpath_var=yes | |
15059 | ld_shlibs_FC=yes | |
15060 | fi | |
15061 | ;; | |
15062 | ||
15063 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15064 | no_undefined_flag_FC='${wl}-z,text' | |
15065 | archive_cmds_need_lc_FC=no | |
15066 | hardcode_shlibpath_var_FC=no | |
15067 | runpath_var='LD_RUN_PATH' | |
15068 | ||
15069 | if test "$GCC" = yes; then | |
15070 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15071 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15072 | else | |
15073 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15074 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15075 | fi | |
15076 | ;; | |
15077 | ||
15078 | sysv5* | sco3.2v5* | sco5v6*) | |
15079 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15080 | # link with -lc, and that would cause any symbols used from libc to | |
15081 | # always be unresolved, which means just about no library would | |
15082 | # ever link correctly. If we're not using GNU ld we use -z text | |
15083 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15084 | # as -z defs. | |
15085 | no_undefined_flag_FC='${wl}-z,text' | |
15086 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15087 | archive_cmds_need_lc_FC=no | |
15088 | hardcode_shlibpath_var_FC=no | |
15089 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15090 | hardcode_libdir_separator_FC=':' | |
15091 | link_all_deplibs_FC=yes | |
15092 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15093 | runpath_var='LD_RUN_PATH' | |
15094 | ||
15095 | if test "$GCC" = yes; then | |
15096 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15097 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15098 | else | |
15099 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15100 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15101 | fi | |
15102 | ;; | |
15103 | ||
15104 | uts4*) | |
15105 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15106 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15107 | hardcode_shlibpath_var_FC=no | |
15108 | ;; | |
15109 | ||
15110 | *) | |
15111 | ld_shlibs_FC=no | |
15112 | ;; | |
15113 | esac | |
15114 | ||
15115 | if test x$host_vendor = xsni; then | |
15116 | case $host in | |
15117 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15118 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15119 | ;; | |
15120 | esac | |
15121 | fi | |
15122 | fi | |
15123 | ||
5213506e RW |
15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15125 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15126 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15127 | ||
15128 | with_gnu_ld_FC=$with_gnu_ld | |
15129 | ||
15130 | ||
15131 | ||
15132 | ||
15133 | ||
15134 | ||
15135 | # | |
15136 | # Do we need to explicitly link libc? | |
15137 | # | |
15138 | case "x$archive_cmds_need_lc_FC" in | |
15139 | x|xyes) | |
15140 | # Assume -lc should be added | |
15141 | archive_cmds_need_lc_FC=yes | |
15142 | ||
15143 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15144 | case $archive_cmds_FC in | |
15145 | *'~'*) | |
15146 | # FIXME: we may have to deal with multi-command sequences. | |
15147 | ;; | |
15148 | '$CC '*) | |
15149 | # Test whether the compiler implicitly links with -lc since on some | |
15150 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15151 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15153 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15154 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15155 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15156 | else |
15157 | $RM conftest* | |
15158 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15159 | |
5213506e | 15160 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15161 | (eval $ac_compile) 2>&5 |
15162 | ac_status=$? | |
5213506e RW |
15163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15164 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15165 | soname=conftest |
15166 | lib=conftest | |
15167 | libobjs=conftest.$ac_objext | |
15168 | deplibs= | |
15169 | wl=$lt_prog_compiler_wl_FC | |
15170 | pic_flag=$lt_prog_compiler_pic_FC | |
15171 | compiler_flags=-v | |
15172 | linker_flags=-v | |
15173 | verstring= | |
15174 | output_objdir=. | |
15175 | libname=conftest | |
15176 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15177 | allow_undefined_flag_FC= | |
5213506e | 15178 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15179 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15180 | ac_status=$? |
5213506e RW |
15181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15182 | test $ac_status = 0; } | |
baafc534 RW |
15183 | then |
15184 | lt_cv_archive_cmds_need_lc_FC=no | |
15185 | else | |
15186 | lt_cv_archive_cmds_need_lc_FC=yes | |
15187 | fi | |
15188 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15189 | else | |
15190 | cat conftest.err 1>&5 | |
15191 | fi | |
15192 | $RM conftest* | |
15193 | ||
15194 | fi | |
5213506e RW |
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15196 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15197 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15198 | ;; |
15199 | esac | |
15200 | fi | |
15201 | ;; | |
15202 | esac | |
9cdc381b | 15203 | |
9cdc381b | 15204 | |
1cf3d07d SE |
15205 | |
15206 | ||
15207 | ||
15208 | ||
15209 | ||
15210 | ||
15211 | ||
15212 | ||
15213 | ||
15214 | ||
15215 | ||
15216 | ||
15217 | ||
15218 | ||
15219 | ||
15220 | ||
15221 | ||
15222 | ||
15223 | ||
15224 | ||
15225 | ||
15226 | ||
15227 | ||
15228 | ||
15229 | ||
15230 | ||
15231 | ||
15232 | ||
15233 | ||
15234 | ||
15235 | ||
15236 | ||
15237 | ||
15238 | ||
15239 | ||
15240 | ||
15241 | ||
15242 | ||
15243 | ||
15244 | ||
15245 | ||
15246 | ||
15247 | ||
15248 | ||
15249 | ||
15250 | ||
15251 | ||
15252 | ||
15253 | ||
15254 | ||
15255 | ||
15256 | ||
15257 | ||
15258 | ||
15259 | ||
15260 | ||
15261 | ||
15262 | ||
15263 | ||
15264 | ||
15265 | ||
15266 | ||
5213506e RW |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15268 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15269 | |
1cf3d07d SE |
15270 | library_names_spec= |
15271 | libname_spec='lib$name' | |
15272 | soname_spec= | |
15273 | shrext_cmds=".so" | |
15274 | postinstall_cmds= | |
15275 | postuninstall_cmds= | |
15276 | finish_cmds= | |
15277 | finish_eval= | |
15278 | shlibpath_var= | |
15279 | shlibpath_overrides_runpath=unknown | |
15280 | version_type=none | |
15281 | dynamic_linker="$host_os ld.so" | |
15282 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15283 | need_lib_prefix=unknown | |
15284 | hardcode_into_libs=no | |
15285 | ||
15286 | # when you set need_version to no, make sure it does not cause -set_version | |
15287 | # flags to be left without arguments | |
15288 | need_version=unknown | |
15289 | ||
15290 | case $host_os in | |
15291 | aix3*) | |
15292 | version_type=linux | |
15293 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15294 | shlibpath_var=LIBPATH | |
15295 | ||
15296 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15297 | soname_spec='${libname}${release}${shared_ext}$major' | |
15298 | ;; | |
15299 | ||
4f6bebc3 | 15300 | aix[4-9]*) |
1cf3d07d SE |
15301 | version_type=linux |
15302 | need_lib_prefix=no | |
15303 | need_version=no | |
15304 | hardcode_into_libs=yes | |
15305 | if test "$host_cpu" = ia64; then | |
15306 | # AIX 5 supports IA64 | |
15307 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15308 | shlibpath_var=LD_LIBRARY_PATH | |
15309 | else | |
15310 | # With GCC up to 2.95.x, collect2 would create an import file | |
15311 | # for dependence libraries. The import file would start with | |
15312 | # the line `#! .'. This would cause the generated library to | |
15313 | # depend on `.', always an invalid library. This was fixed in | |
15314 | # development snapshots of GCC prior to 3.0. | |
15315 | case $host_os in | |
15316 | aix4 | aix4.[01] | aix4.[01].*) | |
15317 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15318 | echo ' yes ' | |
15319 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15320 | : | |
15321 | else | |
15322 | can_build_shared=no | |
15323 | fi | |
15324 | ;; | |
15325 | esac | |
15326 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15327 | # soname into executable. Probably we can add versioning support to | |
15328 | # collect2, so additional links can be useful in future. | |
15329 | if test "$aix_use_runtimelinking" = yes; then | |
15330 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15331 | # instead of lib<name>.a to let people know that these are not | |
15332 | # typical AIX shared libraries. | |
15333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15334 | else | |
15335 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15336 | # and later when we are not doing run time linking. | |
15337 | library_names_spec='${libname}${release}.a $libname.a' | |
15338 | soname_spec='${libname}${release}${shared_ext}$major' | |
15339 | fi | |
15340 | shlibpath_var=LIBPATH | |
15341 | fi | |
15342 | ;; | |
15343 | ||
15344 | amigaos*) | |
d58dead8 PG |
15345 | case $host_cpu in |
15346 | powerpc) | |
15347 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15348 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15350 | ;; | |
15351 | m68k) | |
1cf3d07d SE |
15352 | library_names_spec='$libname.ixlibrary $libname.a' |
15353 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15354 | 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' |
d58dead8 PG |
15355 | ;; |
15356 | esac | |
1cf3d07d SE |
15357 | ;; |
15358 | ||
15359 | beos*) | |
15360 | library_names_spec='${libname}${shared_ext}' | |
15361 | dynamic_linker="$host_os ld.so" | |
15362 | shlibpath_var=LIBRARY_PATH | |
15363 | ;; | |
15364 | ||
15365 | bsdi[45]*) | |
15366 | version_type=linux | |
15367 | need_version=no | |
15368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15369 | soname_spec='${libname}${release}${shared_ext}$major' | |
15370 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15371 | shlibpath_var=LD_LIBRARY_PATH | |
15372 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15373 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15374 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15375 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15376 | # libtool to hard-code these into programs | |
15377 | ;; | |
15378 | ||
d58dead8 | 15379 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15380 | version_type=windows |
15381 | shrext_cmds=".dll" | |
15382 | need_version=no | |
15383 | need_lib_prefix=no | |
15384 | ||
d58dead8 PG |
15385 | case $GCC,$host_os in |
15386 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15387 | library_names_spec='$libname.dll.a' |
15388 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15389 | postinstall_cmds='base_file=`basename \${file}`~ | |
15390 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15391 | dldir=$destdir/`dirname \$dlpath`~ | |
15392 | test -d \$dldir || mkdir -p \$dldir~ | |
15393 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15394 | chmod a+x \$dldir/$dlname~ | |
15395 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15396 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15397 | fi' | |
15398 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15399 | dlpath=$dir/\$dldll~ | |
15400 | $RM \$dlpath' | |
15401 | shlibpath_overrides_runpath=yes | |
15402 | ||
15403 | case $host_os in | |
15404 | cygwin*) | |
15405 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15406 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15407 | |
1cf3d07d | 15408 | ;; |
d58dead8 | 15409 | mingw* | cegcc*) |
1cf3d07d SE |
15410 | # MinGW DLLs use traditional 'lib' prefix |
15411 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15412 | ;; |
15413 | pw32*) | |
15414 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15415 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15416 | ;; | |
15417 | esac | |
15418 | ;; | |
15419 | ||
15420 | *) | |
15421 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15422 | ;; | |
15423 | esac | |
15424 | dynamic_linker='Win32 ld.exe' | |
15425 | # FIXME: first we should search . and the directory the executable is in | |
15426 | shlibpath_var=PATH | |
15427 | ;; | |
15428 | ||
15429 | darwin* | rhapsody*) | |
15430 | dynamic_linker="$host_os dyld" | |
15431 | version_type=darwin | |
15432 | need_lib_prefix=no | |
15433 | need_version=no | |
15434 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15435 | soname_spec='${libname}${release}${major}$shared_ext' | |
15436 | shlibpath_overrides_runpath=yes | |
15437 | shlibpath_var=DYLD_LIBRARY_PATH | |
15438 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15439 | ||
15440 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15441 | ;; | |
15442 | ||
15443 | dgux*) | |
15444 | version_type=linux | |
15445 | need_lib_prefix=no | |
15446 | need_version=no | |
15447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15448 | soname_spec='${libname}${release}${shared_ext}$major' | |
15449 | shlibpath_var=LD_LIBRARY_PATH | |
15450 | ;; | |
15451 | ||
1cf3d07d SE |
15452 | freebsd* | dragonfly*) |
15453 | # DragonFly does not have aout. When/if they implement a new | |
15454 | # versioning mechanism, adjust this. | |
15455 | if test -x /usr/bin/objformat; then | |
15456 | objformat=`/usr/bin/objformat` | |
15457 | else | |
15458 | case $host_os in | |
c6084f68 | 15459 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15460 | *) objformat=elf ;; |
15461 | esac | |
15462 | fi | |
15463 | version_type=freebsd-$objformat | |
15464 | case $version_type in | |
15465 | freebsd-elf*) | |
15466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15467 | need_version=no | |
15468 | need_lib_prefix=no | |
15469 | ;; | |
15470 | freebsd-*) | |
15471 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15472 | need_version=yes | |
15473 | ;; | |
15474 | esac | |
15475 | shlibpath_var=LD_LIBRARY_PATH | |
15476 | case $host_os in | |
c6084f68 | 15477 | freebsd2.*) |
1cf3d07d SE |
15478 | shlibpath_overrides_runpath=yes |
15479 | ;; | |
15480 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15481 | shlibpath_overrides_runpath=yes | |
15482 | hardcode_into_libs=yes | |
15483 | ;; | |
15484 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15485 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15486 | shlibpath_overrides_runpath=no | |
15487 | hardcode_into_libs=yes | |
15488 | ;; | |
15489 | *) # from 4.6 on, and DragonFly | |
15490 | shlibpath_overrides_runpath=yes | |
15491 | hardcode_into_libs=yes | |
15492 | ;; | |
15493 | esac | |
15494 | ;; | |
15495 | ||
15496 | gnu*) | |
15497 | version_type=linux | |
15498 | need_lib_prefix=no | |
15499 | need_version=no | |
15500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15501 | soname_spec='${libname}${release}${shared_ext}$major' | |
15502 | shlibpath_var=LD_LIBRARY_PATH | |
15503 | hardcode_into_libs=yes | |
15504 | ;; | |
15505 | ||
43e02a8a RW |
15506 | haiku*) |
15507 | version_type=linux | |
15508 | need_lib_prefix=no | |
15509 | need_version=no | |
15510 | dynamic_linker="$host_os runtime_loader" | |
15511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15512 | soname_spec='${libname}${release}${shared_ext}$major' | |
15513 | shlibpath_var=LIBRARY_PATH | |
15514 | shlibpath_overrides_runpath=yes | |
15515 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15516 | hardcode_into_libs=yes | |
15517 | ;; | |
15518 | ||
1cf3d07d SE |
15519 | hpux9* | hpux10* | hpux11*) |
15520 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15521 | # link against other versions. | |
15522 | version_type=sunos | |
15523 | need_lib_prefix=no | |
15524 | need_version=no | |
15525 | case $host_cpu in | |
15526 | ia64*) | |
15527 | shrext_cmds='.so' | |
15528 | hardcode_into_libs=yes | |
15529 | dynamic_linker="$host_os dld.so" | |
15530 | shlibpath_var=LD_LIBRARY_PATH | |
15531 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15533 | soname_spec='${libname}${release}${shared_ext}$major' | |
15534 | if test "X$HPUX_IA64_MODE" = X32; then | |
15535 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15536 | else | |
15537 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15538 | fi | |
15539 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15540 | ;; | |
15541 | hppa*64*) | |
15542 | shrext_cmds='.sl' | |
15543 | hardcode_into_libs=yes | |
15544 | dynamic_linker="$host_os dld.sl" | |
15545 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15546 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15548 | soname_spec='${libname}${release}${shared_ext}$major' | |
15549 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15550 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15551 | ;; | |
15552 | *) | |
15553 | shrext_cmds='.sl' | |
15554 | dynamic_linker="$host_os dld.sl" | |
15555 | shlibpath_var=SHLIB_PATH | |
15556 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15558 | soname_spec='${libname}${release}${shared_ext}$major' | |
15559 | ;; | |
15560 | esac | |
43e02a8a | 15561 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15562 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15563 | # or fails outright, so override atomically: |
15564 | install_override_mode=555 | |
1cf3d07d SE |
15565 | ;; |
15566 | ||
15567 | interix[3-9]*) | |
15568 | version_type=linux | |
15569 | need_lib_prefix=no | |
15570 | need_version=no | |
15571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15572 | soname_spec='${libname}${release}${shared_ext}$major' | |
15573 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15574 | shlibpath_var=LD_LIBRARY_PATH | |
15575 | shlibpath_overrides_runpath=no | |
15576 | hardcode_into_libs=yes | |
15577 | ;; | |
15578 | ||
15579 | irix5* | irix6* | nonstopux*) | |
15580 | case $host_os in | |
15581 | nonstopux*) version_type=nonstopux ;; | |
15582 | *) | |
15583 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15584 | version_type=linux | |
15585 | else | |
15586 | version_type=irix | |
15587 | fi ;; | |
15588 | esac | |
15589 | need_lib_prefix=no | |
15590 | need_version=no | |
15591 | soname_spec='${libname}${release}${shared_ext}$major' | |
15592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15593 | case $host_os in | |
15594 | irix5* | nonstopux*) | |
15595 | libsuff= shlibsuff= | |
15596 | ;; | |
15597 | *) | |
15598 | case $LD in # libtool.m4 will add one of these switches to LD | |
15599 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15600 | libsuff= shlibsuff= libmagic=32-bit;; | |
15601 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15602 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15603 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15604 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15605 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15606 | esac | |
15607 | ;; | |
15608 | esac | |
15609 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15610 | shlibpath_overrides_runpath=no | |
15611 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15612 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15613 | hardcode_into_libs=yes | |
15614 | ;; | |
15615 | ||
15616 | # No shared lib support for Linux oldld, aout, or coff. | |
15617 | linux*oldld* | linux*aout* | linux*coff*) | |
15618 | dynamic_linker=no | |
15619 | ;; | |
15620 | ||
15621 | # This must be Linux ELF. | |
e9085da5 MR |
15622 | |
15623 | # uclinux* changes (here and below) have been submitted to the libtool | |
15624 | # project, but have not yet been accepted: they are GCC-local changes | |
15625 | # for the time being. (See | |
15626 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
15627 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
1cf3d07d SE |
15628 | version_type=linux |
15629 | need_lib_prefix=no | |
15630 | need_version=no | |
15631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15632 | soname_spec='${libname}${release}${shared_ext}$major' | |
15633 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15634 | shlibpath_var=LD_LIBRARY_PATH | |
15635 | shlibpath_overrides_runpath=no | |
baafc534 | 15636 | |
1cf3d07d | 15637 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15638 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15639 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15640 | else |
15641 | lt_cv_shlibpath_overrides_runpath=no | |
15642 | save_LDFLAGS=$LDFLAGS | |
15643 | save_libdir=$libdir | |
15644 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15645 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15646 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15647 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15648 | fi |
5213506e | 15649 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15650 | program main |
15651 | ||
15652 | end | |
9cdc381b | 15653 | _ACEOF |
5213506e RW |
15654 | if ac_fn_fc_try_link "$LINENO"; then : |
15655 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15656 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15657 | fi |
9cdc381b | 15658 | fi |
5213506e RW |
15659 | rm -f core conftest.err conftest.$ac_objext \ |
15660 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15661 | LDFLAGS=$save_LDFLAGS |
15662 | libdir=$save_libdir | |
15663 | ||
15664 | fi | |
15665 | ||
15666 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15667 | |
15668 | # This implies no fast_install, which is unacceptable. | |
15669 | # Some rework will be needed to allow for fast_install | |
15670 | # before this can be enabled. | |
15671 | hardcode_into_libs=yes | |
15672 | ||
15673 | # Append ld.so.conf contents to the search path | |
15674 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15675 | 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 |
15676 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15677 | fi | |
15678 | ||
15679 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15680 | # powerpc, because MkLinux only supported shared libraries with the | |
15681 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15682 | # most powerpc-linux boxes support dynamic linking these days and | |
15683 | # people can always --disable-shared, the test was removed, and we | |
15684 | # assume the GNU/Linux dynamic linker is in use. | |
15685 | dynamic_linker='GNU/Linux ld.so' | |
15686 | ;; | |
15687 | ||
15688 | netbsd*) | |
15689 | version_type=sunos | |
15690 | need_lib_prefix=no | |
15691 | need_version=no | |
15692 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15694 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15695 | dynamic_linker='NetBSD (a.out) ld.so' | |
15696 | else | |
15697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15698 | soname_spec='${libname}${release}${shared_ext}$major' | |
15699 | dynamic_linker='NetBSD ld.elf_so' | |
15700 | fi | |
15701 | shlibpath_var=LD_LIBRARY_PATH | |
15702 | shlibpath_overrides_runpath=yes | |
15703 | hardcode_into_libs=yes | |
15704 | ;; | |
15705 | ||
15706 | newsos6) | |
15707 | version_type=linux | |
15708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15709 | shlibpath_var=LD_LIBRARY_PATH | |
15710 | shlibpath_overrides_runpath=yes | |
15711 | ;; | |
15712 | ||
15713 | *nto* | *qnx*) | |
15714 | version_type=qnx | |
15715 | need_lib_prefix=no | |
15716 | need_version=no | |
15717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15718 | soname_spec='${libname}${release}${shared_ext}$major' | |
15719 | shlibpath_var=LD_LIBRARY_PATH | |
15720 | shlibpath_overrides_runpath=no | |
15721 | hardcode_into_libs=yes | |
15722 | dynamic_linker='ldqnx.so' | |
15723 | ;; | |
15724 | ||
15725 | openbsd*) | |
15726 | version_type=sunos | |
15727 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15728 | need_lib_prefix=no | |
15729 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15730 | case $host_os in | |
15731 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15732 | *) need_version=no ;; | |
15733 | esac | |
15734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15735 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15736 | shlibpath_var=LD_LIBRARY_PATH | |
15737 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15738 | case $host_os in | |
15739 | openbsd2.[89] | openbsd2.[89].*) | |
15740 | shlibpath_overrides_runpath=no | |
15741 | ;; | |
15742 | *) | |
15743 | shlibpath_overrides_runpath=yes | |
15744 | ;; | |
15745 | esac | |
15746 | else | |
15747 | shlibpath_overrides_runpath=yes | |
15748 | fi | |
15749 | ;; | |
15750 | ||
15751 | os2*) | |
15752 | libname_spec='$name' | |
15753 | shrext_cmds=".dll" | |
15754 | need_lib_prefix=no | |
15755 | library_names_spec='$libname${shared_ext} $libname.a' | |
15756 | dynamic_linker='OS/2 ld.exe' | |
15757 | shlibpath_var=LIBPATH | |
15758 | ;; | |
15759 | ||
15760 | osf3* | osf4* | osf5*) | |
15761 | version_type=osf | |
15762 | need_lib_prefix=no | |
15763 | need_version=no | |
15764 | soname_spec='${libname}${release}${shared_ext}$major' | |
15765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15766 | shlibpath_var=LD_LIBRARY_PATH | |
15767 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15768 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15769 | ;; | |
15770 | ||
15771 | rdos*) | |
15772 | dynamic_linker=no | |
15773 | ;; | |
15774 | ||
15775 | solaris*) | |
15776 | version_type=linux | |
15777 | need_lib_prefix=no | |
15778 | need_version=no | |
15779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15780 | soname_spec='${libname}${release}${shared_ext}$major' | |
15781 | shlibpath_var=LD_LIBRARY_PATH | |
15782 | shlibpath_overrides_runpath=yes | |
15783 | hardcode_into_libs=yes | |
15784 | # ldd complains unless libraries are executable | |
15785 | postinstall_cmds='chmod +x $lib' | |
15786 | ;; | |
15787 | ||
15788 | sunos4*) | |
15789 | version_type=sunos | |
15790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15791 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15792 | shlibpath_var=LD_LIBRARY_PATH | |
15793 | shlibpath_overrides_runpath=yes | |
15794 | if test "$with_gnu_ld" = yes; then | |
15795 | need_lib_prefix=no | |
15796 | fi | |
15797 | need_version=yes | |
15798 | ;; | |
15799 | ||
15800 | sysv4 | sysv4.3*) | |
15801 | version_type=linux | |
15802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15803 | soname_spec='${libname}${release}${shared_ext}$major' | |
15804 | shlibpath_var=LD_LIBRARY_PATH | |
15805 | case $host_vendor in | |
15806 | sni) | |
15807 | shlibpath_overrides_runpath=no | |
15808 | need_lib_prefix=no | |
15809 | runpath_var=LD_RUN_PATH | |
15810 | ;; | |
15811 | siemens) | |
15812 | need_lib_prefix=no | |
15813 | ;; | |
15814 | motorola) | |
15815 | need_lib_prefix=no | |
15816 | need_version=no | |
15817 | shlibpath_overrides_runpath=no | |
15818 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15819 | ;; | |
15820 | esac | |
15821 | ;; | |
15822 | ||
15823 | sysv4*MP*) | |
15824 | if test -d /usr/nec ;then | |
15825 | version_type=linux | |
15826 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15827 | soname_spec='$libname${shared_ext}.$major' | |
15828 | shlibpath_var=LD_LIBRARY_PATH | |
15829 | fi | |
15830 | ;; | |
15831 | ||
15832 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15833 | version_type=freebsd-elf | |
15834 | need_lib_prefix=no | |
15835 | need_version=no | |
15836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15837 | soname_spec='${libname}${release}${shared_ext}$major' | |
15838 | shlibpath_var=LD_LIBRARY_PATH | |
15839 | shlibpath_overrides_runpath=yes | |
15840 | hardcode_into_libs=yes | |
15841 | if test "$with_gnu_ld" = yes; then | |
15842 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15843 | else | |
15844 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15845 | case $host_os in | |
15846 | sco3.2v5*) | |
15847 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15848 | ;; | |
15849 | esac | |
15850 | fi | |
15851 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15852 | ;; | |
15853 | ||
15854 | tpf*) | |
15855 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15856 | version_type=linux | |
15857 | need_lib_prefix=no | |
15858 | need_version=no | |
d58dead8 | 15859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
15860 | shlibpath_var=LD_LIBRARY_PATH |
15861 | shlibpath_overrides_runpath=no | |
15862 | hardcode_into_libs=yes | |
15863 | ;; | |
15864 | ||
15865 | uts4*) | |
15866 | version_type=linux | |
15867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15868 | soname_spec='${libname}${release}${shared_ext}$major' | |
15869 | shlibpath_var=LD_LIBRARY_PATH | |
15870 | ;; | |
15871 | ||
15872 | *) | |
15873 | dynamic_linker=no | |
15874 | ;; | |
15875 | esac | |
5213506e RW |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15877 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
15878 | test "$dynamic_linker" = no && can_build_shared=no |
15879 | ||
15880 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15881 | if test "$GCC" = yes; then | |
15882 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 15883 | fi |
9cdc381b | 15884 | |
d58dead8 PG |
15885 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15886 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15887 | fi | |
15888 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15889 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15890 | fi | |
15891 | ||
9cdc381b | 15892 | |
1cf3d07d SE |
15893 | |
15894 | ||
15895 | ||
15896 | ||
15897 | ||
15898 | ||
15899 | ||
15900 | ||
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | ||
15909 | ||
15910 | ||
15911 | ||
15912 | ||
15913 | ||
15914 | ||
15915 | ||
15916 | ||
15917 | ||
15918 | ||
15919 | ||
15920 | ||
15921 | ||
15922 | ||
15923 | ||
43e02a8a RW |
15924 | |
15925 | ||
1cf3d07d SE |
15926 | |
15927 | ||
15928 | ||
5213506e RW |
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15930 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
15931 | hardcode_action_FC= |
15932 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15933 | test -n "$runpath_var_FC" || | |
15934 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15935 | ||
15936 | # We can hardcode non-existent directories. | |
15937 | if test "$hardcode_direct_FC" != no && | |
15938 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15939 | # have to relink, otherwise we might link with an installed library | |
15940 | # when we should be linking with a yet-to-be-installed one | |
15941 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15942 | test "$hardcode_minus_L_FC" != no; then | |
15943 | # Linking always hardcodes the temporary library directory. | |
15944 | hardcode_action_FC=relink | |
15945 | else | |
15946 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15947 | hardcode_action_FC=immediate | |
15948 | fi | |
15949 | else | |
15950 | # We cannot hardcode anything, or else we can only hardcode existing | |
15951 | # directories. | |
15952 | hardcode_action_FC=unsupported | |
9cdc381b | 15953 | fi |
5213506e RW |
15954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15955 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
15956 | |
15957 | if test "$hardcode_action_FC" = relink || | |
15958 | test "$inherit_rpath_FC" = yes; then | |
15959 | # Fast installation is not supported | |
15960 | enable_fast_install=no | |
15961 | elif test "$shlibpath_overrides_runpath" = yes || | |
15962 | test "$enable_shared" = no; then | |
15963 | # Fast installation is not necessary | |
15964 | enable_fast_install=needless | |
9cdc381b BD |
15965 | fi |
15966 | ||
1cf3d07d SE |
15967 | |
15968 | ||
15969 | ||
15970 | ||
15971 | ||
15972 | ||
15973 | fi # test -n "$compiler" | |
15974 | ||
d58dead8 | 15975 | GCC=$lt_save_GCC |
1cf3d07d SE |
15976 | CC="$lt_save_CC" |
15977 | fi # test "$_lt_disable_FC" != yes | |
15978 | ||
dd46a4de | 15979 | ac_ext=c |
96b8a615 AJ |
15980 | ac_cpp='$CPP $CPPFLAGS' |
15981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
15984 | |
15985 | ||
15986 | ||
15987 | # extra LD Flags which are required for targets | |
15988 | case "${host}" in | |
15989 | *-darwin*) | |
15990 | # Darwin needs -single_module when linking libgfortran | |
15991 | extra_ldflags_libgfortran=-Wl,-single_module | |
15992 | ;; | |
15993 | esac | |
15994 | ||
15995 | ||
15996 | # We need a working compiler at that point, otherwise give a clear | |
15997 | # error message and bail out. | |
15998 | ||
5213506e RW |
15999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16000 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16001 | ac_ext=${ac_fc_srcext-f} | |
16002 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16003 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16004 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16005 | ||
5213506e | 16006 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16007 | |
16008 | program foo | |
16009 | real, parameter :: bar = sin (12.34 / 2.5) | |
16010 | end program foo | |
6de9cd9a | 16011 | _ACEOF |
5213506e RW |
16012 | if ac_fn_fc_try_compile "$LINENO"; then : |
16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16014 | $as_echo "yes" >&6; } | |
6de9cd9a | 16015 | else |
5213506e RW |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16017 | $as_echo "no" >&6; } | |
22e05272 | 16018 | as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 |
6de9cd9a | 16019 | |
96b8a615 | 16020 | fi |
5213506e | 16021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16022 | ac_ext=c |
16023 | ac_cpp='$CPP $CPPFLAGS' | |
16024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
96b8a615 | 16027 | |
96b8a615 | 16028 | |
1cf3d07d | 16029 | |
5213506e RW |
16030 | # Check whether --enable-largefile was given. |
16031 | if test "${enable_largefile+set}" = set; then : | |
16032 | enableval=$enable_largefile; | |
16033 | fi | |
1cf3d07d | 16034 | |
1cf3d07d SE |
16035 | if test "$enable_largefile" != no; then |
16036 | ||
5213506e RW |
16037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16038 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16039 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16040 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16041 | else |
1cf3d07d SE |
16042 | ac_cv_sys_largefile_CC=no |
16043 | if test "$GCC" != yes; then | |
16044 | ac_save_CC=$CC | |
16045 | while :; do | |
5213506e RW |
16046 | # IRIX 6.2 and later do not support large files by default, |
16047 | # so use the C compiler's -n32 option if that helps. | |
16048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16049 | /* end confdefs.h. */ |
1cf3d07d SE |
16050 | #include <sys/types.h> |
16051 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16052 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16053 | since some C++ compilers masquerading as C compilers | |
16054 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16055 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16056 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16057 | && LARGE_OFF_T % 2147483647 == 1) | |
16058 | ? 1 : -1]; | |
4c4b3eb0 PB |
16059 | int |
16060 | main () | |
16061 | { | |
4c4b3eb0 PB |
16062 | |
16063 | ; | |
16064 | return 0; | |
16065 | } | |
16066 | _ACEOF | |
5213506e RW |
16067 | if ac_fn_c_try_compile "$LINENO"; then : |
16068 | break | |
4c4b3eb0 | 16069 | fi |
5213506e RW |
16070 | rm -f core conftest.err conftest.$ac_objext |
16071 | CC="$CC -n32" | |
16072 | if ac_fn_c_try_compile "$LINENO"; then : | |
16073 | ac_cv_sys_largefile_CC=' -n32'; break | |
16074 | fi | |
16075 | rm -f core conftest.err conftest.$ac_objext | |
16076 | break | |
16077 | done | |
16078 | CC=$ac_save_CC | |
16079 | rm -f conftest.$ac_ext | |
16080 | fi | |
16081 | fi | |
16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16083 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16084 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16085 | CC=$CC$ac_cv_sys_largefile_CC | |
16086 | fi | |
4c4b3eb0 | 16087 | |
5213506e RW |
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16089 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16090 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16091 | $as_echo_n "(cached) " >&6 |
16092 | else | |
16093 | while :; do | |
16094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16095 | /* end confdefs.h. */ |
5213506e RW |
16096 | #include <sys/types.h> |
16097 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16098 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16099 | since some C++ compilers masquerading as C compilers | |
16100 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16101 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16102 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16103 | && LARGE_OFF_T % 2147483647 == 1) | |
16104 | ? 1 : -1]; | |
4c4b3eb0 PB |
16105 | int |
16106 | main () | |
16107 | { | |
4c4b3eb0 PB |
16108 | |
16109 | ; | |
16110 | return 0; | |
16111 | } | |
16112 | _ACEOF | |
5213506e RW |
16113 | if ac_fn_c_try_compile "$LINENO"; then : |
16114 | ac_cv_sys_file_offset_bits=no; break | |
16115 | fi | |
16116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16118 | /* end confdefs.h. */ |
5213506e RW |
16119 | #define _FILE_OFFSET_BITS 64 |
16120 | #include <sys/types.h> | |
16121 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16122 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16123 | since some C++ compilers masquerading as C compilers | |
16124 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16125 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16126 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16127 | && LARGE_OFF_T % 2147483647 == 1) | |
16128 | ? 1 : -1]; | |
4c4b3eb0 PB |
16129 | int |
16130 | main () | |
16131 | { | |
4c4b3eb0 PB |
16132 | |
16133 | ; | |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
5213506e RW |
16137 | if ac_fn_c_try_compile "$LINENO"; then : |
16138 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16139 | fi |
5213506e RW |
16140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16141 | ac_cv_sys_file_offset_bits=unknown | |
16142 | break | |
16143 | done | |
4c4b3eb0 | 16144 | fi |
5213506e RW |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16146 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16147 | case $ac_cv_sys_file_offset_bits in #( | |
16148 | no | unknown) ;; | |
16149 | *) | |
16150 | cat >>confdefs.h <<_ACEOF | |
16151 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16152 | _ACEOF |
5213506e RW |
16153 | ;; |
16154 | esac | |
16155 | rm -rf conftest* | |
16156 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16158 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16159 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16160 | $as_echo_n "(cached) " >&6 |
16161 | else | |
16162 | while :; do | |
16163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16164 | /* end confdefs.h. */ |
5213506e RW |
16165 | #include <sys/types.h> |
16166 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16167 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16168 | since some C++ compilers masquerading as C compilers | |
16169 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16170 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16171 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16172 | && LARGE_OFF_T % 2147483647 == 1) | |
16173 | ? 1 : -1]; | |
4c4b3eb0 PB |
16174 | int |
16175 | main () | |
16176 | { | |
4c4b3eb0 PB |
16177 | |
16178 | ; | |
16179 | return 0; | |
16180 | } | |
16181 | _ACEOF | |
5213506e RW |
16182 | if ac_fn_c_try_compile "$LINENO"; then : |
16183 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16184 | fi |
5213506e RW |
16185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16187 | /* end confdefs.h. */ |
5213506e RW |
16188 | #define _LARGE_FILES 1 |
16189 | #include <sys/types.h> | |
16190 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16191 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16192 | since some C++ compilers masquerading as C compilers | |
16193 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16194 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16195 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16196 | && LARGE_OFF_T % 2147483647 == 1) | |
16197 | ? 1 : -1]; | |
4c4b3eb0 PB |
16198 | int |
16199 | main () | |
16200 | { | |
16201 | ||
4c4b3eb0 PB |
16202 | ; |
16203 | return 0; | |
16204 | } | |
16205 | _ACEOF | |
5213506e RW |
16206 | if ac_fn_c_try_compile "$LINENO"; then : |
16207 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16208 | fi |
5213506e RW |
16209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16210 | ac_cv_sys_large_files=unknown | |
16211 | break | |
16212 | done | |
38d24731 | 16213 | fi |
5213506e RW |
16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16215 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16216 | case $ac_cv_sys_large_files in #( | |
16217 | no | unknown) ;; | |
16218 | *) | |
4c4b3eb0 | 16219 | cat >>confdefs.h <<_ACEOF |
5213506e | 16220 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16221 | _ACEOF |
5213506e RW |
16222 | ;; |
16223 | esac | |
16224 | rm -rf conftest* | |
16225 | fi | |
22e05272 JM |
16226 | |
16227 | ||
4c4b3eb0 PB |
16228 | fi |
16229 | ||
44720bef JB |
16230 | |
16231 | # Types | |
5213506e | 16232 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16233 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16234 | |
5213506e | 16235 | else |
4c4b3eb0 | 16236 | |
5213506e RW |
16237 | cat >>confdefs.h <<_ACEOF |
16238 | #define off_t long int | |
16239 | _ACEOF | |
4c4b3eb0 | 16240 | |
44720bef JB |
16241 | fi |
16242 | ||
16243 | ||
16244 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16245 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16246 | |
16247 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16248 | ||
16249 | else | |
16250 | for ac_type in 'int' 'long int' 'long long int'; do | |
16251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16252 | /* end confdefs.h. */ | |
16253 | $ac_includes_default | |
16254 | int | |
16255 | main () | |
16256 | { | |
16257 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16258 | test_array [0] = 0; |
16259 | return test_array [0]; | |
44720bef JB |
16260 | |
16261 | ; | |
16262 | return 0; | |
16263 | } | |
16264 | _ACEOF | |
16265 | if ac_fn_c_try_compile "$LINENO"; then : | |
16266 | ||
16267 | cat >>confdefs.h <<_ACEOF | |
16268 | #define intptr_t $ac_type | |
16269 | _ACEOF | |
16270 | ||
16271 | ac_type= | |
16272 | fi | |
16273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16274 | test -z "$ac_type" && break | |
16275 | done | |
16276 | fi | |
16277 | ||
16278 | ||
16279 | ||
16280 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16281 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16282 | |
16283 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16284 | ||
16285 | else | |
16286 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16287 | 'unsigned long long int'; do | |
16288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16289 | /* end confdefs.h. */ | |
16290 | $ac_includes_default | |
16291 | int | |
16292 | main () | |
16293 | { | |
16294 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16295 | test_array [0] = 0; |
16296 | return test_array [0]; | |
44720bef JB |
16297 | |
16298 | ; | |
16299 | return 0; | |
16300 | } | |
16301 | _ACEOF | |
16302 | if ac_fn_c_try_compile "$LINENO"; then : | |
16303 | ||
16304 | cat >>confdefs.h <<_ACEOF | |
16305 | #define uintptr_t $ac_type | |
16306 | _ACEOF | |
16307 | ||
16308 | ac_type= | |
16309 | fi | |
16310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16311 | test -z "$ac_type" && break | |
16312 | done | |
16313 | fi | |
16314 | ||
16315 | ||
16316 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16317 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16318 | |
16319 | cat >>confdefs.h <<_ACEOF | |
16320 | #define HAVE_PTRDIFF_T 1 | |
16321 | _ACEOF | |
16322 | ||
16323 | ||
4c4b3eb0 PB |
16324 | fi |
16325 | ||
4c4b3eb0 | 16326 | |
74544378 | 16327 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16328 | |
5213506e | 16329 | |
df65f093 | 16330 | |
74544378 JB |
16331 | for ac_header in $ac_header_list |
16332 | do : | |
16333 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16334 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16335 | " | |
22e05272 | 16336 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16337 | cat >>confdefs.h <<_ACEOF |
16338 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16339 | _ACEOF |
16340 | ||
5213506e | 16341 | fi |
df65f093 | 16342 | |
74544378 | 16343 | done |
864c28e1 RO |
16344 | |
16345 | ||
df65f093 | 16346 | |
5213506e | 16347 | |
5213506e | 16348 | |
df65f093 | 16349 | |
5213506e | 16350 | |
5213506e | 16351 | |
df65f093 | 16352 | |
df65f093 | 16353 | |
df65f093 SK |
16354 | |
16355 | ||
df65f093 | 16356 | |
df65f093 | 16357 | |
df65f093 SK |
16358 | |
16359 | ||
df65f093 SK |
16360 | |
16361 | ||
41724e6a | 16362 | |
2cbcdeba | 16363 | |
3969c39f | 16364 | |
1fb2002d FXC |
16365 | |
16366 | ||
32aa3bff | 16367 | |
f77b6ca3 | 16368 | |
f77b6ca3 | 16369 | |
f77b6ca3 | 16370 | |
f77b6ca3 | 16371 | |
f77b6ca3 | 16372 | |
f77b6ca3 | 16373 | |
fa86f4f9 TB |
16374 | |
16375 | ||
9cbecd06 JB |
16376 | |
16377 | ||
edaaef60 JB |
16378 | |
16379 | ||
f77b6ca3 | 16380 | |
f77b6ca3 | 16381 | |
6de9cd9a | 16382 | |
c13e029b | 16383 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16384 | |
c13e029b PB |
16385 | acx_cv_header_stdint=stddef.h |
16386 | acx_cv_header_stdint_kind="(already complete)" | |
16387 | for i in stdint.h $inttype_headers; do | |
16388 | unset ac_cv_type_uintptr_t | |
16389 | unset ac_cv_type_uintmax_t | |
16390 | unset ac_cv_type_int_least32_t | |
16391 | unset ac_cv_type_int_fast32_t | |
16392 | unset ac_cv_type_uint64_t | |
16393 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16394 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16395 | #include <$i> | |
16396 | " | |
22e05272 | 16397 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16398 | acx_cv_header_stdint=$i |
5213506e | 16399 | else |
c13e029b | 16400 | continue |
5213506e | 16401 | fi |
6de9cd9a | 16402 | |
c13e029b PB |
16403 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16404 | #include <$i> | |
16405 | " | |
22e05272 | 16406 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16407 | |
5213506e | 16408 | else |
c13e029b | 16409 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16410 | fi |
96b8a615 | 16411 | |
c13e029b PB |
16412 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16413 | #include <$i> | |
16414 | " | |
22e05272 | 16415 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16416 | |
f77b6ca3 | 16417 | else |
c13e029b | 16418 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16419 | fi |
5213506e | 16420 | |
c13e029b PB |
16421 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16422 | #include <$i> | |
16423 | " | |
22e05272 | 16424 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16425 | |
c13e029b PB |
16426 | else |
16427 | acx_cv_header_stdint_kind="(mostly complete)" | |
16428 | fi | |
d72a3ac1 | 16429 | |
c13e029b PB |
16430 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16431 | #include <$i> | |
16432 | " | |
22e05272 | 16433 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16434 | |
5213506e | 16435 | else |
c13e029b PB |
16436 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16437 | fi | |
f77b6ca3 | 16438 | |
c13e029b PB |
16439 | break |
16440 | done | |
16441 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16442 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16443 | for i in stdint.h $inttype_headers; do | |
16444 | unset ac_cv_type_uintptr_t | |
16445 | unset ac_cv_type_uint32_t | |
16446 | unset ac_cv_type_uint64_t | |
16447 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16448 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16449 | #include <$i> | |
16450 | " | |
22e05272 | 16451 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16452 | acx_cv_header_stdint=$i |
16453 | else | |
16454 | continue | |
5213506e | 16455 | fi |
f77b6ca3 | 16456 | |
c13e029b PB |
16457 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16458 | #include <$i> | |
16459 | " | |
22e05272 | 16460 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16461 | |
c13e029b | 16462 | fi |
185d7d97 | 16463 | |
c13e029b PB |
16464 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16465 | #include <$i> | |
16466 | " | |
22e05272 | 16467 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16468 | |
c13e029b | 16469 | fi |
35059811 | 16470 | |
c13e029b PB |
16471 | break |
16472 | done | |
16473 | fi | |
16474 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16475 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16476 | for i in sys/types.h $inttype_headers; do | |
16477 | unset ac_cv_type_u_int32_t | |
16478 | unset ac_cv_type_u_int64_t | |
16479 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16480 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16481 | #include <$i> | |
16482 | " | |
22e05272 | 16483 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16484 | acx_cv_header_stdint=$i |
d72a3ac1 | 16485 | else |
c13e029b PB |
16486 | continue |
16487 | fi | |
a119fc1c | 16488 | |
c13e029b PB |
16489 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16490 | #include <$i> | |
16491 | " | |
22e05272 | 16492 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16493 | |
c13e029b | 16494 | fi |
a119fc1c | 16495 | |
c13e029b PB |
16496 | break |
16497 | done | |
a119fc1c | 16498 | fi |
c13e029b PB |
16499 | if test "$acx_cv_header_stdint" = stddef.h; then |
16500 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16501 | fi |
a119fc1c | 16502 | |
c13e029b PB |
16503 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16504 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16505 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16506 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16507 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16508 | |
c13e029b | 16509 | # ----------------- Summarize what we found so far |
5213506e | 16510 | |
c13e029b PB |
16511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16512 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16513 | |
c13e029b PB |
16514 | case `$as_basename -- gstdint.h || |
16515 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16516 | Xgstdint.h : 'X\(//\)$' \| \ | |
16517 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16518 | $as_echo X/gstdint.h | | |
16519 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16520 | s//\1/ | |
16521 | q | |
16522 | } | |
16523 | /^X\/\(\/\/\)$/{ | |
16524 | s//\1/ | |
16525 | q | |
16526 | } | |
16527 | /^X\/\(\/\).*/{ | |
16528 | s//\1/ | |
16529 | q | |
16530 | } | |
16531 | s/.*/./; q'` in | |
16532 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16533 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16534 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16535 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16536 | *) ;; | |
16537 | esac | |
a119fc1c | 16538 | |
c13e029b PB |
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16540 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16541 | |
c13e029b | 16542 | # ----------------- done included file, check C basic types -------- |
868d75db | 16543 | |
c13e029b PB |
16544 | # Lacking an uintptr_t? Test size of void * |
16545 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16546 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16547 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16548 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16549 | # This bug is HP SR number 8606223364. | |
16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16551 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16552 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16553 | $as_echo_n "(cached) " >&6 |
16554 | else | |
16555 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16556 | |
c13e029b PB |
16557 | else |
16558 | if test "$ac_cv_type_void_p" = yes; then | |
16559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16561 | as_fn_error 77 "cannot compute sizeof (void *) |
16562 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16563 | else |
16564 | ac_cv_sizeof_void_p=0 | |
16565 | fi | |
16566 | fi | |
d72a3ac1 | 16567 | |
c13e029b PB |
16568 | fi |
16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16570 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16571 | |
868d75db FXC |
16572 | |
16573 | ||
d72a3ac1 | 16574 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16575 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16576 | _ACEOF |
d72a3ac1 | 16577 | |
c13e029b PB |
16578 | ;; |
16579 | esac | |
d72a3ac1 | 16580 | |
c13e029b PB |
16581 | # Lacking an uint64_t? Test size of long |
16582 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16583 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16584 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16585 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16586 | # This bug is HP SR number 8606223364. | |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16588 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16589 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16590 | $as_echo_n "(cached) " >&6 |
16591 | else | |
c13e029b | 16592 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16593 | |
7f483eec | 16594 | else |
c13e029b PB |
16595 | if test "$ac_cv_type_long" = yes; then |
16596 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16597 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16598 | as_fn_error 77 "cannot compute sizeof (long) |
16599 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16600 | else |
16601 | ac_cv_sizeof_long=0 | |
16602 | fi | |
5213506e | 16603 | fi |
7f483eec | 16604 | |
c13e029b PB |
16605 | fi |
16606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16607 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16608 | |
7f483eec | 16609 | |
d72a3ac1 PB |
16610 | |
16611 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16612 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16613 | _ACEOF |
7f483eec | 16614 | |
c13e029b PB |
16615 | ;; |
16616 | esac | |
29e86cb0 | 16617 | |
c13e029b PB |
16618 | if test $acx_cv_header_stdint = stddef.h; then |
16619 | # Lacking a good header? Test size of everything and deduce all types. | |
16620 | # The cast to long int works around a bug in the HP C Compiler | |
16621 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16622 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16623 | # This bug is HP SR number 8606223364. | |
16624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16625 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16626 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16627 | $as_echo_n "(cached) " >&6 |
16628 | else | |
16629 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16630 | |
c13e029b PB |
16631 | else |
16632 | if test "$ac_cv_type_int" = yes; then | |
16633 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16634 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16635 | as_fn_error 77 "cannot compute sizeof (int) |
16636 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16637 | else |
16638 | ac_cv_sizeof_int=0 | |
16639 | fi | |
16640 | fi | |
d8163f5c | 16641 | |
c13e029b PB |
16642 | fi |
16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16644 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16645 | |
16646 | ||
868d75db | 16647 | |
d72a3ac1 | 16648 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16649 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16650 | _ACEOF |
16651 | ||
d72a3ac1 | 16652 | |
c13e029b PB |
16653 | # The cast to long int works around a bug in the HP C Compiler |
16654 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16655 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16656 | # This bug is HP SR number 8606223364. | |
16657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16658 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16659 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16660 | $as_echo_n "(cached) " >&6 |
16661 | else | |
16662 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16663 | |
c13e029b PB |
16664 | else |
16665 | if test "$ac_cv_type_short" = yes; then | |
16666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16668 | as_fn_error 77 "cannot compute sizeof (short) |
16669 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16670 | else |
16671 | ac_cv_sizeof_short=0 | |
16672 | fi | |
16673 | fi | |
d72a3ac1 | 16674 | |
c13e029b PB |
16675 | fi |
16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16677 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16678 | |
16679 | ||
16680 | ||
c13e029b PB |
16681 | cat >>confdefs.h <<_ACEOF |
16682 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16683 | _ACEOF | |
d72a3ac1 PB |
16684 | |
16685 | ||
c13e029b PB |
16686 | # The cast to long int works around a bug in the HP C Compiler |
16687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16689 | # This bug is HP SR number 8606223364. | |
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16691 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16692 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16693 | $as_echo_n "(cached) " >&6 |
16694 | else | |
16695 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16696 | |
c13e029b PB |
16697 | else |
16698 | if test "$ac_cv_type_char" = yes; then | |
16699 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16701 | as_fn_error 77 "cannot compute sizeof (char) |
16702 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16703 | else |
16704 | ac_cv_sizeof_char=0 | |
16705 | fi | |
16706 | fi | |
d72a3ac1 | 16707 | |
c13e029b PB |
16708 | fi |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16710 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16711 | |
16712 | ||
d72a3ac1 | 16713 | |
5213506e | 16714 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16715 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16716 | _ACEOF |
868d75db | 16717 | |
868d75db | 16718 | |
2017c370 | 16719 | |
c13e029b PB |
16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16721 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16722 | case "$ac_cv_sizeof_char" in | |
16723 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16724 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16725 | esac |
16726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16727 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16728 | ||
16729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16730 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16731 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16732 | 2:*) acx_cv_type_int16_t=int ;; | |
16733 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16734 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16735 | esac |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16737 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16738 | ||
16739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16740 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16741 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16742 | 4:*) acx_cv_type_int32_t=int ;; | |
16743 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16744 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16745 | esac |
16746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16747 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
16748 | fi |
16749 | ||
c13e029b | 16750 | # These tests are here to make the output prettier |
d72a3ac1 | 16751 | |
c13e029b PB |
16752 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16753 | case "$ac_cv_sizeof_long" in | |
16754 | 8) acx_cv_type_int64_t=long ;; | |
16755 | esac | |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16757 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16759 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16760 | fi | |
16761 | ||
16762 | # Now we can use the above types | |
16763 | ||
16764 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16766 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16767 | case $ac_cv_sizeof_void_p in | |
16768 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16769 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16770 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16771 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
16772 | esac |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16774 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16775 | fi | |
d72a3ac1 | 16776 | |
c13e029b | 16777 | # ----------------- done all checks, emit header ------------- |
5213506e | 16778 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 16779 | |
2017c370 | 16780 | |
5213506e RW |
16781 | |
16782 | ||
16783 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 16784 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
16785 | |
16786 | cat >>confdefs.h <<_ACEOF | |
16787 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 16788 | _ACEOF |
2017c370 | 16789 | |
5213506e | 16790 | |
2017c370 | 16791 | fi |
5213506e | 16792 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 16793 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
16794 | |
16795 | cat >>confdefs.h <<_ACEOF | |
16796 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
16797 | _ACEOF |
16798 | ||
5213506e | 16799 | |
2017c370 | 16800 | fi |
5213506e | 16801 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 16802 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 16803 | |
5213506e RW |
16804 | cat >>confdefs.h <<_ACEOF |
16805 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16806 | _ACEOF | |
868d75db FXC |
16807 | |
16808 | ||
f02d008e | 16809 | fi |
5213506e RW |
16810 | |
16811 | ||
bd459d0b JG |
16812 | case "${host}--x${with_newlib}" in |
16813 | mips*--xyes) | |
16814 | hardwire_newlib=1;; | |
d3ca2257 NS |
16815 | nvptx*--xyes) |
16816 | hardwire_newlib=1;; | |
bd459d0b JG |
16817 | esac |
16818 | ||
5213506e | 16819 | # Check for library functions. |
bd459d0b | 16820 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
16821 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16822 | # may not work correctly, because the compiler may not be able to | |
16823 | # link executables. | |
16824 | ||
16825 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16826 | ||
16827 | ||
16828 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16829 | ||
16830 | ||
b4005c71 SE |
16831 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16832 | ||
16833 | ||
b4005c71 SE |
16834 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
16835 | ||
16836 | ||
16837 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
16838 | ||
16839 | ||
16840 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
16841 | ||
cb83df66 | 16842 | |
ebfedee6 HPN |
16843 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
16844 | ||
16845 | ||
16846 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
16847 | ||
16848 | ||
cb83df66 SE |
16849 | # At some point, we should differentiate between architectures |
16850 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
16851 | # which don't. For the time being, punt. | |
16852 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
16853 | ||
16854 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
16855 | ||
16856 | fi | |
b4005c71 | 16857 | else |
f77b6ca3 | 16858 | |
f77b6ca3 | 16859 | |
74544378 JB |
16860 | |
16861 | for ac_func in $ac_func_list | |
5213506e RW |
16862 | do : |
16863 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16864 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 16865 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
16866 | cat >>confdefs.h <<_ACEOF |
16867 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16868 | _ACEOF | |
f77b6ca3 | 16869 | |
5213506e RW |
16870 | fi |
16871 | done | |
f77b6ca3 | 16872 | |
f77b6ca3 | 16873 | |
5213506e | 16874 | |
96b8a615 | 16875 | |
5213506e | 16876 | |
5213506e | 16877 | |
5213506e | 16878 | |
6de9cd9a | 16879 | |
6de9cd9a | 16880 | |
b6e7a3d1 | 16881 | |
b6e7a3d1 | 16882 | |
6de9cd9a | 16883 | |
4c0c6b9f | 16884 | |
4c0c6b9f | 16885 | |
4c0c6b9f | 16886 | |
4c0c6b9f | 16887 | |
4c0c6b9f | 16888 | |
4c0c6b9f | 16889 | |
4c0c6b9f | 16890 | |
4c0c6b9f | 16891 | |
868d75db | 16892 | |
868d75db | 16893 | |
868d75db | 16894 | |
868d75db | 16895 | |
4c0c6b9f | 16896 | |
4c0c6b9f | 16897 | |
4c0c6b9f | 16898 | |
4c0c6b9f | 16899 | |
6422c112 | 16900 | |
6422c112 | 16901 | |
6422c112 | 16902 | |
74544378 JB |
16903 | |
16904 | ||
16905 | ||
16906 | ||
16907 | ||
16908 | ||
16909 | ||
16910 | ||
16911 | ||
16912 | ||
16913 | ||
16914 | ||
16915 | ||
16916 | ||
16917 | ||
16918 | ||
16919 | ||
16920 | ||
16921 | ||
16922 | ||
16923 | ||
16924 | ||
16925 | ||
16926 | ||
16927 | ||
16928 | ||
16929 | ||
16930 | ||
16931 | ||
16932 | ||
16933 | ||
16934 | ||
16935 | ||
16936 | ||
16937 | ||
16938 | ||
16939 | ||
16940 | ||
16941 | ||
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | ||
16949 | ||
16950 | ||
16951 | ||
16952 | ||
16953 | ||
16954 | ||
16955 | ||
16956 | ||
16957 | ||
16958 | ||
68ee9c08 | 16959 | |
227e441f | 16960 | |
9cbecd06 JB |
16961 | |
16962 | ||
4269f19c JB |
16963 | |
16964 | ||
b5b58343 UW |
16965 | |
16966 | ||
70480968 JB |
16967 | |
16968 | ||
d66d6d15 JB |
16969 | |
16970 | ||
edaaef60 JB |
16971 | |
16972 | ||
ef536b41 JB |
16973 | |
16974 | ||
16975 | ||
16976 | ||
f8886038 JB |
16977 | |
16978 | ||
227e441f | 16979 | |
8ecd1c0d TB |
16980 | |
16981 | ||
b4005c71 | 16982 | fi |
74544378 | 16983 | |
4179e59a TB |
16984 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
16985 | ||
16986 | ac_save_CFLAGS="$CFLAGS" | |
16987 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
16988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16989 | /* end confdefs.h. */ | |
16990 | #define _GNU_SOURCE 1 | |
16991 | #include <string.h> | |
16992 | #include <locale.h> | |
16993 | int | |
16994 | main () | |
16995 | { | |
16996 | char s[128]; strerror_r(5, s, 128); | |
16997 | ; | |
16998 | return 0; | |
16999 | } | |
17000 | _ACEOF | |
17001 | if ac_fn_c_try_compile "$LINENO"; then : | |
17002 | ||
17003 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17004 | ||
17005 | fi | |
17006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17007 | CFLAGS="$ac_save_CFLAGS" | |
17008 | ||
17009 | ac_save_CFLAGS="$CFLAGS" | |
17010 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17012 | /* end confdefs.h. */ | |
17013 | #define _GNU_SOURCE 1 | |
17014 | #include <string.h> | |
17015 | #include <locale.h> | |
17016 | int | |
17017 | main () | |
17018 | { | |
17019 | char s[128]; strerror_r(5, s); | |
17020 | ; | |
17021 | return 0; | |
17022 | } | |
17023 | _ACEOF | |
17024 | if ac_fn_c_try_compile "$LINENO"; then : | |
17025 | ||
17026 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17027 | ||
17028 | fi | |
17029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17030 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17031 | |
4c0c6b9f | 17032 | |
453310d8 | 17033 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17035 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17036 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17037 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17038 | else |
17039 | ac_check_lib_save_LIBS=$LIBS | |
17040 | LIBS="-lm $LIBS" | |
f02d008e | 17041 | if test x$gcc_no_link = xyes; then |
22e05272 | 17042 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17043 | fi |
5213506e | 17044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17045 | /* end confdefs.h. */ |
17046 | ||
5213506e RW |
17047 | /* Override any GCC internal prototype to avoid an error. |
17048 | Use char because int might match the return type of a GCC | |
17049 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17050 | #ifdef __cplusplus |
17051 | extern "C" | |
17052 | #endif | |
db9f46a9 | 17053 | char sin (); |
453310d8 RS |
17054 | int |
17055 | main () | |
17056 | { | |
db9f46a9 | 17057 | return sin (); |
453310d8 RS |
17058 | ; |
17059 | return 0; | |
17060 | } | |
17061 | _ACEOF | |
5213506e | 17062 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17063 | ac_cv_lib_m_sin=yes |
453310d8 | 17064 | else |
db9f46a9 | 17065 | ac_cv_lib_m_sin=no |
453310d8 | 17066 | fi |
5213506e RW |
17067 | rm -f core conftest.err conftest.$ac_objext \ |
17068 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17069 | LIBS=$ac_check_lib_save_LIBS |
17070 | fi | |
db9f46a9 TG |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17072 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17073 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17074 | cat >>confdefs.h <<_ACEOF |
17075 | #define HAVE_LIBM 1 | |
17076 | _ACEOF | |
453310d8 | 17077 | |
db9f46a9 | 17078 | LIBS="-lm $LIBS" |
453310d8 RS |
17079 | |
17080 | fi | |
17081 | ||
db9f46a9 TG |
17082 | |
17083 | ||
17084 | ||
17085 | ||
17086 | ||
17087 | ||
17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17089 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17090 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17091 | $as_echo_n "(cached) " >&6 |
f02d008e | 17092 | else |
db9f46a9 | 17093 | if test x$gcc_no_link = xyes; then |
22e05272 | 17094 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17095 | fi |
5213506e | 17096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17097 | /* end confdefs.h. */ |
17098 | ||
db9f46a9 TG |
17099 | #ifdef HAVE_COMPLEX_H |
17100 | #include <complex.h> | |
17101 | #endif | |
17102 | #ifdef HAVE_MATH_H | |
17103 | #include <math.h> | |
f02d008e | 17104 | #endif |
db9f46a9 TG |
17105 | |
17106 | int (*ptr)() = (int (*)())acosf; | |
17107 | ||
f02d008e JD |
17108 | int |
17109 | main () | |
17110 | { | |
f02d008e JD |
17111 | return 0; |
17112 | } | |
db9f46a9 | 17113 | |
f02d008e | 17114 | _ACEOF |
5213506e | 17115 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17116 | gcc_cv_math_func_acosf=yes |
f02d008e | 17117 | else |
db9f46a9 | 17118 | gcc_cv_math_func_acosf=no |
f02d008e | 17119 | fi |
5213506e RW |
17120 | rm -f core conftest.err conftest.$ac_objext \ |
17121 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17122 | fi |
db9f46a9 TG |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17124 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17125 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17126 | |
f38a14ca TG |
17127 | cat >>confdefs.h <<_ACEOF |
17128 | #define HAVE_ACOSF 1 | |
17129 | _ACEOF | |
db9f46a9 TG |
17130 | |
17131 | fi | |
f02d008e | 17132 | |
f02d008e | 17133 | |
f02d008e | 17134 | |
db9f46a9 TG |
17135 | |
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17137 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17138 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17139 | $as_echo_n "(cached) " >&6 |
453310d8 | 17140 | else |
db9f46a9 | 17141 | if test x$gcc_no_link = xyes; then |
22e05272 | 17142 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17143 | fi |
5213506e | 17144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17145 | /* end confdefs.h. */ |
17146 | ||
db9f46a9 TG |
17147 | #ifdef HAVE_COMPLEX_H |
17148 | #include <complex.h> | |
453310d8 | 17149 | #endif |
db9f46a9 TG |
17150 | #ifdef HAVE_MATH_H |
17151 | #include <math.h> | |
17152 | #endif | |
17153 | ||
17154 | int (*ptr)() = (int (*)())acos; | |
17155 | ||
453310d8 RS |
17156 | int |
17157 | main () | |
17158 | { | |
453310d8 RS |
17159 | return 0; |
17160 | } | |
db9f46a9 | 17161 | |
453310d8 | 17162 | _ACEOF |
5213506e | 17163 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17164 | gcc_cv_math_func_acos=yes |
453310d8 | 17165 | else |
db9f46a9 | 17166 | gcc_cv_math_func_acos=no |
453310d8 | 17167 | fi |
5213506e RW |
17168 | rm -f core conftest.err conftest.$ac_objext \ |
17169 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17170 | fi |
db9f46a9 TG |
17171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17172 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17173 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17174 | |
f38a14ca TG |
17175 | cat >>confdefs.h <<_ACEOF |
17176 | #define HAVE_ACOS 1 | |
17177 | _ACEOF | |
db9f46a9 TG |
17178 | |
17179 | fi | |
17180 | ||
453310d8 | 17181 | |
453310d8 | 17182 | |
453310d8 | 17183 | |
db9f46a9 TG |
17184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17185 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17186 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17187 | $as_echo_n "(cached) " >&6 |
f02d008e | 17188 | else |
db9f46a9 | 17189 | if test x$gcc_no_link = xyes; then |
22e05272 | 17190 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17191 | fi |
5213506e | 17192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17193 | /* end confdefs.h. */ |
17194 | ||
db9f46a9 TG |
17195 | #ifdef HAVE_COMPLEX_H |
17196 | #include <complex.h> | |
17197 | #endif | |
17198 | #ifdef HAVE_MATH_H | |
17199 | #include <math.h> | |
f02d008e | 17200 | #endif |
db9f46a9 TG |
17201 | |
17202 | int (*ptr)() = (int (*)())acosl; | |
17203 | ||
f02d008e JD |
17204 | int |
17205 | main () | |
17206 | { | |
f02d008e JD |
17207 | return 0; |
17208 | } | |
db9f46a9 | 17209 | |
f02d008e | 17210 | _ACEOF |
5213506e | 17211 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17212 | gcc_cv_math_func_acosl=yes |
f02d008e | 17213 | else |
db9f46a9 | 17214 | gcc_cv_math_func_acosl=no |
f02d008e | 17215 | fi |
5213506e RW |
17216 | rm -f core conftest.err conftest.$ac_objext \ |
17217 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17218 | fi |
db9f46a9 TG |
17219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17220 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17221 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17222 | |
f38a14ca TG |
17223 | cat >>confdefs.h <<_ACEOF |
17224 | #define HAVE_ACOSL 1 | |
17225 | _ACEOF | |
db9f46a9 TG |
17226 | |
17227 | fi | |
f02d008e | 17228 | |
f02d008e | 17229 | |
f02d008e | 17230 | |
db9f46a9 TG |
17231 | |
17232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17233 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17234 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17235 | $as_echo_n "(cached) " >&6 |
453310d8 | 17236 | else |
db9f46a9 | 17237 | if test x$gcc_no_link = xyes; then |
22e05272 | 17238 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17239 | fi |
5213506e | 17240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17241 | /* end confdefs.h. */ |
17242 | ||
db9f46a9 TG |
17243 | #ifdef HAVE_COMPLEX_H |
17244 | #include <complex.h> | |
453310d8 | 17245 | #endif |
db9f46a9 TG |
17246 | #ifdef HAVE_MATH_H |
17247 | #include <math.h> | |
17248 | #endif | |
17249 | ||
17250 | int (*ptr)() = (int (*)())acoshf; | |
17251 | ||
453310d8 RS |
17252 | int |
17253 | main () | |
17254 | { | |
453310d8 RS |
17255 | return 0; |
17256 | } | |
db9f46a9 | 17257 | |
453310d8 | 17258 | _ACEOF |
5213506e | 17259 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17260 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17261 | else |
db9f46a9 | 17262 | gcc_cv_math_func_acoshf=no |
453310d8 | 17263 | fi |
5213506e RW |
17264 | rm -f core conftest.err conftest.$ac_objext \ |
17265 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17266 | fi |
db9f46a9 TG |
17267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17268 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17269 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17270 | |
f38a14ca TG |
17271 | cat >>confdefs.h <<_ACEOF |
17272 | #define HAVE_ACOSHF 1 | |
17273 | _ACEOF | |
453310d8 | 17274 | |
db9f46a9 | 17275 | fi |
453310d8 | 17276 | |
453310d8 | 17277 | |
db9f46a9 TG |
17278 | |
17279 | ||
17280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17281 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17282 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17283 | $as_echo_n "(cached) " >&6 |
453310d8 | 17284 | else |
db9f46a9 | 17285 | if test x$gcc_no_link = xyes; then |
22e05272 | 17286 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17287 | fi |
5213506e | 17288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17289 | /* end confdefs.h. */ |
17290 | ||
db9f46a9 TG |
17291 | #ifdef HAVE_COMPLEX_H |
17292 | #include <complex.h> | |
17293 | #endif | |
17294 | #ifdef HAVE_MATH_H | |
17295 | #include <math.h> | |
453310d8 | 17296 | #endif |
db9f46a9 TG |
17297 | |
17298 | int (*ptr)() = (int (*)())acosh; | |
17299 | ||
453310d8 RS |
17300 | int |
17301 | main () | |
17302 | { | |
5213506e RW |
17303 | return 0; |
17304 | } | |
db9f46a9 | 17305 | |
5213506e RW |
17306 | _ACEOF |
17307 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17308 | gcc_cv_math_func_acosh=yes |
453310d8 | 17309 | else |
db9f46a9 | 17310 | gcc_cv_math_func_acosh=no |
453310d8 | 17311 | fi |
5213506e RW |
17312 | rm -f core conftest.err conftest.$ac_objext \ |
17313 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17314 | fi |
db9f46a9 TG |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17316 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17317 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17318 | |
f38a14ca TG |
17319 | cat >>confdefs.h <<_ACEOF |
17320 | #define HAVE_ACOSH 1 | |
17321 | _ACEOF | |
db9f46a9 TG |
17322 | |
17323 | fi | |
453310d8 | 17324 | |
453310d8 | 17325 | |
453310d8 | 17326 | |
db9f46a9 TG |
17327 | |
17328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17329 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17330 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17331 | $as_echo_n "(cached) " >&6 |
f02d008e | 17332 | else |
db9f46a9 | 17333 | if test x$gcc_no_link = xyes; then |
22e05272 | 17334 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17335 | fi |
5213506e | 17336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17337 | /* end confdefs.h. */ |
17338 | ||
db9f46a9 TG |
17339 | #ifdef HAVE_COMPLEX_H |
17340 | #include <complex.h> | |
f02d008e | 17341 | #endif |
db9f46a9 TG |
17342 | #ifdef HAVE_MATH_H |
17343 | #include <math.h> | |
17344 | #endif | |
17345 | ||
17346 | int (*ptr)() = (int (*)())acoshl; | |
17347 | ||
f02d008e JD |
17348 | int |
17349 | main () | |
17350 | { | |
f02d008e JD |
17351 | return 0; |
17352 | } | |
db9f46a9 | 17353 | |
f02d008e | 17354 | _ACEOF |
5213506e | 17355 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17356 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17357 | else |
db9f46a9 | 17358 | gcc_cv_math_func_acoshl=no |
f02d008e | 17359 | fi |
5213506e RW |
17360 | rm -f core conftest.err conftest.$ac_objext \ |
17361 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17362 | fi |
db9f46a9 TG |
17363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17364 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17365 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17366 | |
f38a14ca TG |
17367 | cat >>confdefs.h <<_ACEOF |
17368 | #define HAVE_ACOSHL 1 | |
17369 | _ACEOF | |
db9f46a9 TG |
17370 | |
17371 | fi | |
17372 | ||
f02d008e | 17373 | |
f02d008e | 17374 | |
f02d008e | 17375 | |
db9f46a9 TG |
17376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17377 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17378 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17379 | $as_echo_n "(cached) " >&6 |
453310d8 | 17380 | else |
db9f46a9 | 17381 | if test x$gcc_no_link = xyes; then |
22e05272 | 17382 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17383 | fi |
5213506e | 17384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17385 | /* end confdefs.h. */ |
17386 | ||
db9f46a9 TG |
17387 | #ifdef HAVE_COMPLEX_H |
17388 | #include <complex.h> | |
17389 | #endif | |
17390 | #ifdef HAVE_MATH_H | |
17391 | #include <math.h> | |
453310d8 | 17392 | #endif |
db9f46a9 TG |
17393 | |
17394 | int (*ptr)() = (int (*)())asinf; | |
17395 | ||
453310d8 RS |
17396 | int |
17397 | main () | |
17398 | { | |
453310d8 RS |
17399 | return 0; |
17400 | } | |
db9f46a9 | 17401 | |
453310d8 | 17402 | _ACEOF |
5213506e | 17403 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17404 | gcc_cv_math_func_asinf=yes |
453310d8 | 17405 | else |
db9f46a9 | 17406 | gcc_cv_math_func_asinf=no |
453310d8 | 17407 | fi |
5213506e RW |
17408 | rm -f core conftest.err conftest.$ac_objext \ |
17409 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17410 | fi |
db9f46a9 TG |
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17412 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17413 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17414 | |
f38a14ca TG |
17415 | cat >>confdefs.h <<_ACEOF |
17416 | #define HAVE_ASINF 1 | |
17417 | _ACEOF | |
db9f46a9 TG |
17418 | |
17419 | fi | |
453310d8 | 17420 | |
453310d8 | 17421 | |
453310d8 | 17422 | |
db9f46a9 TG |
17423 | |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17425 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17426 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17427 | $as_echo_n "(cached) " >&6 |
453310d8 | 17428 | else |
db9f46a9 | 17429 | if test x$gcc_no_link = xyes; then |
22e05272 | 17430 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17431 | fi |
5213506e | 17432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17433 | /* end confdefs.h. */ |
17434 | ||
db9f46a9 TG |
17435 | #ifdef HAVE_COMPLEX_H |
17436 | #include <complex.h> | |
453310d8 | 17437 | #endif |
db9f46a9 TG |
17438 | #ifdef HAVE_MATH_H |
17439 | #include <math.h> | |
17440 | #endif | |
17441 | ||
17442 | int (*ptr)() = (int (*)())asin; | |
17443 | ||
453310d8 RS |
17444 | int |
17445 | main () | |
17446 | { | |
453310d8 RS |
17447 | return 0; |
17448 | } | |
db9f46a9 | 17449 | |
453310d8 | 17450 | _ACEOF |
5213506e | 17451 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17452 | gcc_cv_math_func_asin=yes |
453310d8 | 17453 | else |
db9f46a9 | 17454 | gcc_cv_math_func_asin=no |
453310d8 | 17455 | fi |
5213506e RW |
17456 | rm -f core conftest.err conftest.$ac_objext \ |
17457 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17458 | fi |
db9f46a9 TG |
17459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17460 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17461 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17462 | |
f38a14ca TG |
17463 | cat >>confdefs.h <<_ACEOF |
17464 | #define HAVE_ASIN 1 | |
17465 | _ACEOF | |
453310d8 | 17466 | |
db9f46a9 | 17467 | fi |
453310d8 | 17468 | |
453310d8 | 17469 | |
db9f46a9 TG |
17470 | |
17471 | ||
17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17473 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17474 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17475 | $as_echo_n "(cached) " >&6 |
453310d8 | 17476 | else |
db9f46a9 | 17477 | if test x$gcc_no_link = xyes; then |
22e05272 | 17478 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17479 | fi |
5213506e | 17480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17481 | /* end confdefs.h. */ |
17482 | ||
db9f46a9 TG |
17483 | #ifdef HAVE_COMPLEX_H |
17484 | #include <complex.h> | |
17485 | #endif | |
17486 | #ifdef HAVE_MATH_H | |
17487 | #include <math.h> | |
453310d8 | 17488 | #endif |
db9f46a9 TG |
17489 | |
17490 | int (*ptr)() = (int (*)())asinl; | |
17491 | ||
453310d8 RS |
17492 | int |
17493 | main () | |
17494 | { | |
453310d8 RS |
17495 | return 0; |
17496 | } | |
db9f46a9 | 17497 | |
453310d8 | 17498 | _ACEOF |
5213506e | 17499 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17500 | gcc_cv_math_func_asinl=yes |
453310d8 | 17501 | else |
db9f46a9 | 17502 | gcc_cv_math_func_asinl=no |
453310d8 | 17503 | fi |
5213506e RW |
17504 | rm -f core conftest.err conftest.$ac_objext \ |
17505 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17506 | fi |
db9f46a9 TG |
17507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17508 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17509 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17510 | |
f38a14ca TG |
17511 | cat >>confdefs.h <<_ACEOF |
17512 | #define HAVE_ASINL 1 | |
17513 | _ACEOF | |
db9f46a9 TG |
17514 | |
17515 | fi | |
453310d8 | 17516 | |
453310d8 | 17517 | |
453310d8 | 17518 | |
db9f46a9 TG |
17519 | |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17521 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17522 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17523 | $as_echo_n "(cached) " >&6 |
453310d8 | 17524 | else |
db9f46a9 | 17525 | if test x$gcc_no_link = xyes; then |
22e05272 | 17526 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17527 | fi |
5213506e | 17528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17529 | /* end confdefs.h. */ |
17530 | ||
db9f46a9 TG |
17531 | #ifdef HAVE_COMPLEX_H |
17532 | #include <complex.h> | |
453310d8 | 17533 | #endif |
db9f46a9 TG |
17534 | #ifdef HAVE_MATH_H |
17535 | #include <math.h> | |
17536 | #endif | |
17537 | ||
17538 | int (*ptr)() = (int (*)())asinhf; | |
17539 | ||
453310d8 RS |
17540 | int |
17541 | main () | |
17542 | { | |
453310d8 RS |
17543 | return 0; |
17544 | } | |
db9f46a9 | 17545 | |
453310d8 | 17546 | _ACEOF |
5213506e | 17547 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17548 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17549 | else |
db9f46a9 | 17550 | gcc_cv_math_func_asinhf=no |
453310d8 | 17551 | fi |
5213506e RW |
17552 | rm -f core conftest.err conftest.$ac_objext \ |
17553 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17554 | fi |
db9f46a9 TG |
17555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17556 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17557 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17558 | |
f38a14ca TG |
17559 | cat >>confdefs.h <<_ACEOF |
17560 | #define HAVE_ASINHF 1 | |
17561 | _ACEOF | |
db9f46a9 TG |
17562 | |
17563 | fi | |
17564 | ||
453310d8 | 17565 | |
453310d8 | 17566 | |
453310d8 | 17567 | |
db9f46a9 TG |
17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17569 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17570 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17571 | $as_echo_n "(cached) " >&6 |
453310d8 | 17572 | else |
db9f46a9 | 17573 | if test x$gcc_no_link = xyes; then |
22e05272 | 17574 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17575 | fi |
5213506e | 17576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17577 | /* end confdefs.h. */ |
17578 | ||
db9f46a9 TG |
17579 | #ifdef HAVE_COMPLEX_H |
17580 | #include <complex.h> | |
17581 | #endif | |
17582 | #ifdef HAVE_MATH_H | |
17583 | #include <math.h> | |
453310d8 | 17584 | #endif |
db9f46a9 TG |
17585 | |
17586 | int (*ptr)() = (int (*)())asinh; | |
17587 | ||
453310d8 RS |
17588 | int |
17589 | main () | |
17590 | { | |
453310d8 RS |
17591 | return 0; |
17592 | } | |
db9f46a9 | 17593 | |
453310d8 | 17594 | _ACEOF |
5213506e | 17595 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17596 | gcc_cv_math_func_asinh=yes |
453310d8 | 17597 | else |
db9f46a9 | 17598 | gcc_cv_math_func_asinh=no |
453310d8 | 17599 | fi |
5213506e RW |
17600 | rm -f core conftest.err conftest.$ac_objext \ |
17601 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17602 | fi |
db9f46a9 TG |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17604 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17605 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17606 | |
f38a14ca TG |
17607 | cat >>confdefs.h <<_ACEOF |
17608 | #define HAVE_ASINH 1 | |
17609 | _ACEOF | |
db9f46a9 TG |
17610 | |
17611 | fi | |
453310d8 | 17612 | |
453310d8 | 17613 | |
453310d8 | 17614 | |
db9f46a9 TG |
17615 | |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17617 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17618 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17619 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17620 | else |
db9f46a9 | 17621 | if test x$gcc_no_link = xyes; then |
22e05272 | 17622 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17623 | fi |
5213506e | 17624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17625 | /* end confdefs.h. */ |
17626 | ||
db9f46a9 TG |
17627 | #ifdef HAVE_COMPLEX_H |
17628 | #include <complex.h> | |
6e4d9244 | 17629 | #endif |
db9f46a9 TG |
17630 | #ifdef HAVE_MATH_H |
17631 | #include <math.h> | |
17632 | #endif | |
17633 | ||
17634 | int (*ptr)() = (int (*)())asinhl; | |
17635 | ||
6e4d9244 EB |
17636 | int |
17637 | main () | |
17638 | { | |
6e4d9244 EB |
17639 | return 0; |
17640 | } | |
db9f46a9 | 17641 | |
6e4d9244 | 17642 | _ACEOF |
5213506e | 17643 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17644 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17645 | else |
db9f46a9 | 17646 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17647 | fi |
5213506e RW |
17648 | rm -f core conftest.err conftest.$ac_objext \ |
17649 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17650 | fi |
db9f46a9 TG |
17651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17652 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17653 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17654 | |
f38a14ca TG |
17655 | cat >>confdefs.h <<_ACEOF |
17656 | #define HAVE_ASINHL 1 | |
17657 | _ACEOF | |
6e4d9244 | 17658 | |
db9f46a9 | 17659 | fi |
6e4d9244 | 17660 | |
6e4d9244 | 17661 | |
db9f46a9 TG |
17662 | |
17663 | ||
17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17665 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17666 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17667 | $as_echo_n "(cached) " >&6 |
453310d8 | 17668 | else |
db9f46a9 | 17669 | if test x$gcc_no_link = xyes; then |
22e05272 | 17670 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17671 | fi |
5213506e | 17672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17673 | /* end confdefs.h. */ |
17674 | ||
db9f46a9 TG |
17675 | #ifdef HAVE_COMPLEX_H |
17676 | #include <complex.h> | |
453310d8 | 17677 | #endif |
db9f46a9 TG |
17678 | #ifdef HAVE_MATH_H |
17679 | #include <math.h> | |
17680 | #endif | |
17681 | ||
17682 | int (*ptr)() = (int (*)())atan2f; | |
17683 | ||
17684 | int | |
453310d8 RS |
17685 | main () |
17686 | { | |
453310d8 RS |
17687 | return 0; |
17688 | } | |
db9f46a9 | 17689 | |
453310d8 | 17690 | _ACEOF |
5213506e | 17691 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17692 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17693 | else |
db9f46a9 | 17694 | gcc_cv_math_func_atan2f=no |
453310d8 | 17695 | fi |
5213506e RW |
17696 | rm -f core conftest.err conftest.$ac_objext \ |
17697 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17698 | fi |
db9f46a9 TG |
17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17700 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17701 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17702 | |
f38a14ca TG |
17703 | cat >>confdefs.h <<_ACEOF |
17704 | #define HAVE_ATAN2F 1 | |
17705 | _ACEOF | |
db9f46a9 TG |
17706 | |
17707 | fi | |
453310d8 | 17708 | |
453310d8 | 17709 | |
453310d8 | 17710 | |
db9f46a9 TG |
17711 | |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17713 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17714 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17715 | $as_echo_n "(cached) " >&6 |
453310d8 | 17716 | else |
db9f46a9 | 17717 | if test x$gcc_no_link = xyes; then |
22e05272 | 17718 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17719 | fi |
5213506e | 17720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17721 | /* end confdefs.h. */ |
17722 | ||
db9f46a9 TG |
17723 | #ifdef HAVE_COMPLEX_H |
17724 | #include <complex.h> | |
453310d8 | 17725 | #endif |
db9f46a9 TG |
17726 | #ifdef HAVE_MATH_H |
17727 | #include <math.h> | |
17728 | #endif | |
17729 | ||
17730 | int (*ptr)() = (int (*)())atan2; | |
17731 | ||
453310d8 RS |
17732 | int |
17733 | main () | |
17734 | { | |
453310d8 RS |
17735 | return 0; |
17736 | } | |
db9f46a9 | 17737 | |
453310d8 | 17738 | _ACEOF |
5213506e | 17739 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17740 | gcc_cv_math_func_atan2=yes |
453310d8 | 17741 | else |
db9f46a9 | 17742 | gcc_cv_math_func_atan2=no |
453310d8 | 17743 | fi |
5213506e RW |
17744 | rm -f core conftest.err conftest.$ac_objext \ |
17745 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17746 | fi |
db9f46a9 TG |
17747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17748 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17749 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 17750 | |
f38a14ca TG |
17751 | cat >>confdefs.h <<_ACEOF |
17752 | #define HAVE_ATAN2 1 | |
17753 | _ACEOF | |
453310d8 | 17754 | |
db9f46a9 | 17755 | fi |
453310d8 | 17756 | |
453310d8 | 17757 | |
db9f46a9 TG |
17758 | |
17759 | ||
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17761 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 17762 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 17763 | $as_echo_n "(cached) " >&6 |
453310d8 | 17764 | else |
db9f46a9 | 17765 | if test x$gcc_no_link = xyes; then |
22e05272 | 17766 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17767 | fi |
5213506e | 17768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17769 | /* end confdefs.h. */ |
17770 | ||
db9f46a9 TG |
17771 | #ifdef HAVE_COMPLEX_H |
17772 | #include <complex.h> | |
17773 | #endif | |
17774 | #ifdef HAVE_MATH_H | |
17775 | #include <math.h> | |
453310d8 | 17776 | #endif |
db9f46a9 TG |
17777 | |
17778 | int (*ptr)() = (int (*)())atan2l; | |
17779 | ||
453310d8 RS |
17780 | int |
17781 | main () | |
17782 | { | |
453310d8 RS |
17783 | return 0; |
17784 | } | |
db9f46a9 | 17785 | |
453310d8 | 17786 | _ACEOF |
5213506e | 17787 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17788 | gcc_cv_math_func_atan2l=yes |
453310d8 | 17789 | else |
db9f46a9 | 17790 | gcc_cv_math_func_atan2l=no |
453310d8 | 17791 | fi |
5213506e RW |
17792 | rm -f core conftest.err conftest.$ac_objext \ |
17793 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17794 | fi |
db9f46a9 TG |
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17796 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17797 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 17798 | |
f38a14ca TG |
17799 | cat >>confdefs.h <<_ACEOF |
17800 | #define HAVE_ATAN2L 1 | |
17801 | _ACEOF | |
db9f46a9 TG |
17802 | |
17803 | fi | |
453310d8 | 17804 | |
453310d8 | 17805 | |
453310d8 | 17806 | |
db9f46a9 TG |
17807 | |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17809 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 17810 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 17811 | $as_echo_n "(cached) " >&6 |
453310d8 | 17812 | else |
db9f46a9 | 17813 | if test x$gcc_no_link = xyes; then |
22e05272 | 17814 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17815 | fi |
5213506e | 17816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17817 | /* end confdefs.h. */ |
17818 | ||
db9f46a9 TG |
17819 | #ifdef HAVE_COMPLEX_H |
17820 | #include <complex.h> | |
453310d8 | 17821 | #endif |
db9f46a9 TG |
17822 | #ifdef HAVE_MATH_H |
17823 | #include <math.h> | |
17824 | #endif | |
17825 | ||
17826 | int (*ptr)() = (int (*)())atanf; | |
17827 | ||
453310d8 RS |
17828 | int |
17829 | main () | |
17830 | { | |
453310d8 RS |
17831 | return 0; |
17832 | } | |
db9f46a9 | 17833 | |
453310d8 | 17834 | _ACEOF |
5213506e | 17835 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17836 | gcc_cv_math_func_atanf=yes |
453310d8 | 17837 | else |
db9f46a9 | 17838 | gcc_cv_math_func_atanf=no |
453310d8 | 17839 | fi |
5213506e RW |
17840 | rm -f core conftest.err conftest.$ac_objext \ |
17841 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17842 | fi |
db9f46a9 TG |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
17844 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
17845 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 17846 | |
f38a14ca TG |
17847 | cat >>confdefs.h <<_ACEOF |
17848 | #define HAVE_ATANF 1 | |
17849 | _ACEOF | |
db9f46a9 TG |
17850 | |
17851 | fi | |
17852 | ||
453310d8 | 17853 | |
453310d8 | 17854 | |
453310d8 | 17855 | |
db9f46a9 TG |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
17857 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 17858 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 17859 | $as_echo_n "(cached) " >&6 |
453310d8 | 17860 | else |
db9f46a9 | 17861 | if test x$gcc_no_link = xyes; then |
22e05272 | 17862 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17863 | fi |
5213506e | 17864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17865 | /* end confdefs.h. */ |
17866 | ||
db9f46a9 TG |
17867 | #ifdef HAVE_COMPLEX_H |
17868 | #include <complex.h> | |
17869 | #endif | |
17870 | #ifdef HAVE_MATH_H | |
17871 | #include <math.h> | |
453310d8 | 17872 | #endif |
db9f46a9 TG |
17873 | |
17874 | int (*ptr)() = (int (*)())atan; | |
17875 | ||
453310d8 RS |
17876 | int |
17877 | main () | |
17878 | { | |
453310d8 RS |
17879 | return 0; |
17880 | } | |
db9f46a9 | 17881 | |
453310d8 | 17882 | _ACEOF |
5213506e | 17883 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17884 | gcc_cv_math_func_atan=yes |
453310d8 | 17885 | else |
db9f46a9 | 17886 | gcc_cv_math_func_atan=no |
453310d8 | 17887 | fi |
5213506e RW |
17888 | rm -f core conftest.err conftest.$ac_objext \ |
17889 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17890 | fi |
db9f46a9 TG |
17891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
17892 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
17893 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 17894 | |
f38a14ca TG |
17895 | cat >>confdefs.h <<_ACEOF |
17896 | #define HAVE_ATAN 1 | |
17897 | _ACEOF | |
db9f46a9 TG |
17898 | |
17899 | fi | |
453310d8 | 17900 | |
453310d8 | 17901 | |
453310d8 | 17902 | |
db9f46a9 TG |
17903 | |
17904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
17905 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 17906 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 17907 | $as_echo_n "(cached) " >&6 |
32aa3bff | 17908 | else |
db9f46a9 | 17909 | if test x$gcc_no_link = xyes; then |
22e05272 | 17910 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17911 | fi |
5213506e | 17912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
17913 | /* end confdefs.h. */ |
17914 | ||
db9f46a9 TG |
17915 | #ifdef HAVE_COMPLEX_H |
17916 | #include <complex.h> | |
32aa3bff | 17917 | #endif |
db9f46a9 TG |
17918 | #ifdef HAVE_MATH_H |
17919 | #include <math.h> | |
17920 | #endif | |
17921 | ||
17922 | int (*ptr)() = (int (*)())atanl; | |
17923 | ||
32aa3bff FXC |
17924 | int |
17925 | main () | |
17926 | { | |
32aa3bff FXC |
17927 | return 0; |
17928 | } | |
db9f46a9 | 17929 | |
32aa3bff | 17930 | _ACEOF |
5213506e | 17931 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17932 | gcc_cv_math_func_atanl=yes |
32aa3bff | 17933 | else |
db9f46a9 | 17934 | gcc_cv_math_func_atanl=no |
32aa3bff | 17935 | fi |
5213506e RW |
17936 | rm -f core conftest.err conftest.$ac_objext \ |
17937 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 17938 | fi |
db9f46a9 TG |
17939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
17940 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
17941 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 17942 | |
f38a14ca TG |
17943 | cat >>confdefs.h <<_ACEOF |
17944 | #define HAVE_ATANL 1 | |
17945 | _ACEOF | |
32aa3bff | 17946 | |
db9f46a9 | 17947 | fi |
32aa3bff | 17948 | |
32aa3bff | 17949 | |
db9f46a9 TG |
17950 | |
17951 | ||
17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
17953 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 17954 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 17955 | $as_echo_n "(cached) " >&6 |
453310d8 | 17956 | else |
db9f46a9 | 17957 | if test x$gcc_no_link = xyes; then |
22e05272 | 17958 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17959 | fi |
5213506e | 17960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17961 | /* end confdefs.h. */ |
17962 | ||
db9f46a9 TG |
17963 | #ifdef HAVE_COMPLEX_H |
17964 | #include <complex.h> | |
17965 | #endif | |
17966 | #ifdef HAVE_MATH_H | |
17967 | #include <math.h> | |
453310d8 | 17968 | #endif |
db9f46a9 TG |
17969 | |
17970 | int (*ptr)() = (int (*)())atanhf; | |
17971 | ||
453310d8 RS |
17972 | int |
17973 | main () | |
17974 | { | |
453310d8 RS |
17975 | return 0; |
17976 | } | |
db9f46a9 | 17977 | |
453310d8 | 17978 | _ACEOF |
5213506e | 17979 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17980 | gcc_cv_math_func_atanhf=yes |
453310d8 | 17981 | else |
db9f46a9 | 17982 | gcc_cv_math_func_atanhf=no |
453310d8 | 17983 | fi |
5213506e RW |
17984 | rm -f core conftest.err conftest.$ac_objext \ |
17985 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17986 | fi |
db9f46a9 TG |
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
17988 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
17989 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 17990 | |
f38a14ca TG |
17991 | cat >>confdefs.h <<_ACEOF |
17992 | #define HAVE_ATANHF 1 | |
17993 | _ACEOF | |
db9f46a9 TG |
17994 | |
17995 | fi | |
453310d8 | 17996 | |
453310d8 | 17997 | |
453310d8 | 17998 | |
db9f46a9 TG |
17999 | |
18000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18001 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18002 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18003 | $as_echo_n "(cached) " >&6 |
453310d8 | 18004 | else |
db9f46a9 | 18005 | if test x$gcc_no_link = xyes; then |
22e05272 | 18006 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18007 | fi |
5213506e | 18008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18009 | /* end confdefs.h. */ |
18010 | ||
db9f46a9 TG |
18011 | #ifdef HAVE_COMPLEX_H |
18012 | #include <complex.h> | |
453310d8 | 18013 | #endif |
db9f46a9 TG |
18014 | #ifdef HAVE_MATH_H |
18015 | #include <math.h> | |
18016 | #endif | |
18017 | ||
18018 | int (*ptr)() = (int (*)())atanh; | |
18019 | ||
453310d8 RS |
18020 | int |
18021 | main () | |
18022 | { | |
453310d8 RS |
18023 | return 0; |
18024 | } | |
db9f46a9 | 18025 | |
453310d8 | 18026 | _ACEOF |
5213506e | 18027 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18028 | gcc_cv_math_func_atanh=yes |
453310d8 | 18029 | else |
db9f46a9 | 18030 | gcc_cv_math_func_atanh=no |
453310d8 | 18031 | fi |
5213506e RW |
18032 | rm -f core conftest.err conftest.$ac_objext \ |
18033 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18034 | fi |
db9f46a9 TG |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18036 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18037 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18038 | |
f38a14ca TG |
18039 | cat >>confdefs.h <<_ACEOF |
18040 | #define HAVE_ATANH 1 | |
18041 | _ACEOF | |
db9f46a9 TG |
18042 | |
18043 | fi | |
18044 | ||
453310d8 | 18045 | |
453310d8 | 18046 | |
453310d8 | 18047 | |
db9f46a9 TG |
18048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18049 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18050 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18051 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18052 | else |
db9f46a9 | 18053 | if test x$gcc_no_link = xyes; then |
22e05272 | 18054 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18055 | fi |
5213506e | 18056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18057 | /* end confdefs.h. */ |
18058 | ||
db9f46a9 TG |
18059 | #ifdef HAVE_COMPLEX_H |
18060 | #include <complex.h> | |
18061 | #endif | |
18062 | #ifdef HAVE_MATH_H | |
18063 | #include <math.h> | |
bf4d99cf | 18064 | #endif |
db9f46a9 TG |
18065 | |
18066 | int (*ptr)() = (int (*)())atanhl; | |
18067 | ||
bf4d99cf TS |
18068 | int |
18069 | main () | |
18070 | { | |
bf4d99cf TS |
18071 | return 0; |
18072 | } | |
db9f46a9 | 18073 | |
bf4d99cf | 18074 | _ACEOF |
5213506e | 18075 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18076 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18077 | else |
db9f46a9 | 18078 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18079 | fi |
5213506e RW |
18080 | rm -f core conftest.err conftest.$ac_objext \ |
18081 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18082 | fi |
db9f46a9 TG |
18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18084 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18085 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18086 | |
f38a14ca TG |
18087 | cat >>confdefs.h <<_ACEOF |
18088 | #define HAVE_ATANHL 1 | |
18089 | _ACEOF | |
db9f46a9 TG |
18090 | |
18091 | fi | |
bf4d99cf | 18092 | |
bf4d99cf | 18093 | |
bf4d99cf | 18094 | |
db9f46a9 TG |
18095 | |
18096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18097 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18098 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18099 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18100 | else |
db9f46a9 | 18101 | if test x$gcc_no_link = xyes; then |
22e05272 | 18102 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18103 | fi |
5213506e | 18104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18105 | /* end confdefs.h. */ |
18106 | ||
db9f46a9 TG |
18107 | #ifdef HAVE_COMPLEX_H |
18108 | #include <complex.h> | |
a2a2059f | 18109 | #endif |
db9f46a9 TG |
18110 | #ifdef HAVE_MATH_H |
18111 | #include <math.h> | |
18112 | #endif | |
18113 | ||
18114 | int (*ptr)() = (int (*)())cargf; | |
18115 | ||
453310d8 RS |
18116 | int |
18117 | main () | |
18118 | { | |
453310d8 RS |
18119 | return 0; |
18120 | } | |
db9f46a9 | 18121 | |
453310d8 | 18122 | _ACEOF |
5213506e | 18123 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18124 | gcc_cv_math_func_cargf=yes |
453310d8 | 18125 | else |
db9f46a9 | 18126 | gcc_cv_math_func_cargf=no |
453310d8 | 18127 | fi |
5213506e RW |
18128 | rm -f core conftest.err conftest.$ac_objext \ |
18129 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18130 | fi |
db9f46a9 TG |
18131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18132 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18133 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18134 | |
f38a14ca TG |
18135 | cat >>confdefs.h <<_ACEOF |
18136 | #define HAVE_CARGF 1 | |
18137 | _ACEOF | |
453310d8 | 18138 | |
db9f46a9 | 18139 | fi |
453310d8 | 18140 | |
453310d8 | 18141 | |
db9f46a9 TG |
18142 | |
18143 | ||
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18145 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18146 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18147 | $as_echo_n "(cached) " >&6 |
453310d8 | 18148 | else |
db9f46a9 | 18149 | if test x$gcc_no_link = xyes; then |
22e05272 | 18150 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18151 | fi |
5213506e | 18152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18153 | /* end confdefs.h. */ |
18154 | ||
db9f46a9 TG |
18155 | #ifdef HAVE_COMPLEX_H |
18156 | #include <complex.h> | |
18157 | #endif | |
18158 | #ifdef HAVE_MATH_H | |
18159 | #include <math.h> | |
453310d8 | 18160 | #endif |
db9f46a9 TG |
18161 | |
18162 | int (*ptr)() = (int (*)())carg; | |
18163 | ||
a2a2059f BD |
18164 | int |
18165 | main () | |
18166 | { | |
a2a2059f BD |
18167 | return 0; |
18168 | } | |
db9f46a9 | 18169 | |
a2a2059f | 18170 | _ACEOF |
5213506e | 18171 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18172 | gcc_cv_math_func_carg=yes |
a2a2059f | 18173 | else |
db9f46a9 | 18174 | gcc_cv_math_func_carg=no |
a2a2059f | 18175 | fi |
5213506e RW |
18176 | rm -f core conftest.err conftest.$ac_objext \ |
18177 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18178 | fi |
db9f46a9 TG |
18179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18180 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18181 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18182 | |
f38a14ca TG |
18183 | cat >>confdefs.h <<_ACEOF |
18184 | #define HAVE_CARG 1 | |
18185 | _ACEOF | |
db9f46a9 TG |
18186 | |
18187 | fi | |
a2a2059f | 18188 | |
a2a2059f | 18189 | |
a2a2059f | 18190 | |
db9f46a9 TG |
18191 | |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18193 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18194 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18195 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18196 | else |
db9f46a9 | 18197 | if test x$gcc_no_link = xyes; then |
22e05272 | 18198 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18199 | fi |
5213506e | 18200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18201 | /* end confdefs.h. */ |
18202 | ||
db9f46a9 TG |
18203 | #ifdef HAVE_COMPLEX_H |
18204 | #include <complex.h> | |
a2a2059f | 18205 | #endif |
db9f46a9 TG |
18206 | #ifdef HAVE_MATH_H |
18207 | #include <math.h> | |
18208 | #endif | |
18209 | ||
18210 | int (*ptr)() = (int (*)())cargl; | |
18211 | ||
a2a2059f BD |
18212 | int |
18213 | main () | |
18214 | { | |
a2a2059f BD |
18215 | return 0; |
18216 | } | |
db9f46a9 | 18217 | |
a2a2059f | 18218 | _ACEOF |
5213506e | 18219 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18220 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18221 | else |
db9f46a9 | 18222 | gcc_cv_math_func_cargl=no |
a2a2059f | 18223 | fi |
5213506e RW |
18224 | rm -f core conftest.err conftest.$ac_objext \ |
18225 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18226 | fi |
db9f46a9 TG |
18227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18228 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18229 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18230 | |
f38a14ca TG |
18231 | cat >>confdefs.h <<_ACEOF |
18232 | #define HAVE_CARGL 1 | |
18233 | _ACEOF | |
db9f46a9 TG |
18234 | |
18235 | fi | |
18236 | ||
a2a2059f | 18237 | |
a2a2059f | 18238 | |
a2a2059f | 18239 | |
db9f46a9 TG |
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18241 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18242 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18243 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18244 | else |
db9f46a9 | 18245 | if test x$gcc_no_link = xyes; then |
22e05272 | 18246 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18247 | fi |
5213506e | 18248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18249 | /* end confdefs.h. */ |
18250 | ||
db9f46a9 TG |
18251 | #ifdef HAVE_COMPLEX_H |
18252 | #include <complex.h> | |
18253 | #endif | |
18254 | #ifdef HAVE_MATH_H | |
18255 | #include <math.h> | |
ae973d6a | 18256 | #endif |
db9f46a9 TG |
18257 | |
18258 | int (*ptr)() = (int (*)())ceilf; | |
18259 | ||
ae973d6a FXC |
18260 | int |
18261 | main () | |
18262 | { | |
ae973d6a FXC |
18263 | return 0; |
18264 | } | |
db9f46a9 | 18265 | |
ae973d6a | 18266 | _ACEOF |
5213506e | 18267 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18268 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18269 | else |
db9f46a9 | 18270 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18271 | fi |
5213506e RW |
18272 | rm -f core conftest.err conftest.$ac_objext \ |
18273 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18274 | fi |
db9f46a9 TG |
18275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18276 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18277 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18278 | |
f38a14ca TG |
18279 | cat >>confdefs.h <<_ACEOF |
18280 | #define HAVE_CEILF 1 | |
18281 | _ACEOF | |
db9f46a9 TG |
18282 | |
18283 | fi | |
ae973d6a | 18284 | |
ae973d6a | 18285 | |
ae973d6a | 18286 | |
db9f46a9 TG |
18287 | |
18288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18289 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18290 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18291 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18292 | else |
db9f46a9 | 18293 | if test x$gcc_no_link = xyes; then |
22e05272 | 18294 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18295 | fi |
5213506e | 18296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18297 | /* end confdefs.h. */ |
18298 | ||
db9f46a9 TG |
18299 | #ifdef HAVE_COMPLEX_H |
18300 | #include <complex.h> | |
a9e7b9d3 | 18301 | #endif |
db9f46a9 TG |
18302 | #ifdef HAVE_MATH_H |
18303 | #include <math.h> | |
18304 | #endif | |
18305 | ||
18306 | int (*ptr)() = (int (*)())ceil; | |
18307 | ||
a9e7b9d3 PB |
18308 | int |
18309 | main () | |
18310 | { | |
a9e7b9d3 PB |
18311 | return 0; |
18312 | } | |
db9f46a9 | 18313 | |
a9e7b9d3 | 18314 | _ACEOF |
5213506e | 18315 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18316 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18317 | else |
db9f46a9 | 18318 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18319 | fi |
5213506e RW |
18320 | rm -f core conftest.err conftest.$ac_objext \ |
18321 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18322 | fi |
db9f46a9 TG |
18323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18324 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18325 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18326 | |
f38a14ca TG |
18327 | cat >>confdefs.h <<_ACEOF |
18328 | #define HAVE_CEIL 1 | |
18329 | _ACEOF | |
a9e7b9d3 | 18330 | |
db9f46a9 | 18331 | fi |
a9e7b9d3 | 18332 | |
a9e7b9d3 | 18333 | |
db9f46a9 TG |
18334 | |
18335 | ||
18336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18337 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18338 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18339 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18340 | else |
db9f46a9 | 18341 | if test x$gcc_no_link = xyes; then |
22e05272 | 18342 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18343 | fi |
5213506e | 18344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18345 | /* end confdefs.h. */ |
18346 | ||
db9f46a9 TG |
18347 | #ifdef HAVE_COMPLEX_H |
18348 | #include <complex.h> | |
18349 | #endif | |
18350 | #ifdef HAVE_MATH_H | |
18351 | #include <math.h> | |
a9e7b9d3 | 18352 | #endif |
db9f46a9 TG |
18353 | |
18354 | int (*ptr)() = (int (*)())ceill; | |
18355 | ||
a9e7b9d3 PB |
18356 | int |
18357 | main () | |
18358 | { | |
a9e7b9d3 PB |
18359 | return 0; |
18360 | } | |
db9f46a9 | 18361 | |
a9e7b9d3 | 18362 | _ACEOF |
5213506e | 18363 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18364 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18365 | else |
db9f46a9 | 18366 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18367 | fi |
5213506e RW |
18368 | rm -f core conftest.err conftest.$ac_objext \ |
18369 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18370 | fi |
db9f46a9 TG |
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18372 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18373 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18374 | |
f38a14ca TG |
18375 | cat >>confdefs.h <<_ACEOF |
18376 | #define HAVE_CEILL 1 | |
18377 | _ACEOF | |
db9f46a9 TG |
18378 | |
18379 | fi | |
a9e7b9d3 | 18380 | |
453310d8 | 18381 | |
453310d8 | 18382 | |
db9f46a9 TG |
18383 | |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18385 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18386 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18387 | $as_echo_n "(cached) " >&6 |
453310d8 | 18388 | else |
db9f46a9 | 18389 | if test x$gcc_no_link = xyes; then |
22e05272 | 18390 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18391 | fi |
5213506e | 18392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18393 | /* end confdefs.h. */ |
18394 | ||
db9f46a9 TG |
18395 | #ifdef HAVE_COMPLEX_H |
18396 | #include <complex.h> | |
453310d8 | 18397 | #endif |
db9f46a9 TG |
18398 | #ifdef HAVE_MATH_H |
18399 | #include <math.h> | |
18400 | #endif | |
18401 | ||
18402 | int (*ptr)() = (int (*)())copysignf; | |
18403 | ||
453310d8 RS |
18404 | int |
18405 | main () | |
18406 | { | |
453310d8 RS |
18407 | return 0; |
18408 | } | |
db9f46a9 | 18409 | |
453310d8 | 18410 | _ACEOF |
5213506e | 18411 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18412 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18413 | else |
db9f46a9 | 18414 | gcc_cv_math_func_copysignf=no |
453310d8 | 18415 | fi |
5213506e RW |
18416 | rm -f core conftest.err conftest.$ac_objext \ |
18417 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18418 | fi |
db9f46a9 TG |
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18420 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18421 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18422 | |
f38a14ca TG |
18423 | cat >>confdefs.h <<_ACEOF |
18424 | #define HAVE_COPYSIGNF 1 | |
18425 | _ACEOF | |
db9f46a9 TG |
18426 | |
18427 | fi | |
18428 | ||
453310d8 | 18429 | |
453310d8 | 18430 | |
453310d8 | 18431 | |
db9f46a9 TG |
18432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18433 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18434 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18435 | $as_echo_n "(cached) " >&6 |
453310d8 | 18436 | else |
db9f46a9 | 18437 | if test x$gcc_no_link = xyes; then |
22e05272 | 18438 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18439 | fi |
5213506e | 18440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18441 | /* end confdefs.h. */ |
18442 | ||
db9f46a9 TG |
18443 | #ifdef HAVE_COMPLEX_H |
18444 | #include <complex.h> | |
18445 | #endif | |
18446 | #ifdef HAVE_MATH_H | |
18447 | #include <math.h> | |
453310d8 | 18448 | #endif |
db9f46a9 TG |
18449 | |
18450 | int (*ptr)() = (int (*)())copysign; | |
18451 | ||
453310d8 RS |
18452 | int |
18453 | main () | |
18454 | { | |
453310d8 RS |
18455 | return 0; |
18456 | } | |
db9f46a9 | 18457 | |
453310d8 | 18458 | _ACEOF |
5213506e | 18459 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18460 | gcc_cv_math_func_copysign=yes |
453310d8 | 18461 | else |
db9f46a9 | 18462 | gcc_cv_math_func_copysign=no |
453310d8 | 18463 | fi |
5213506e RW |
18464 | rm -f core conftest.err conftest.$ac_objext \ |
18465 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18466 | fi |
db9f46a9 TG |
18467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18468 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18469 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18470 | |
f38a14ca TG |
18471 | cat >>confdefs.h <<_ACEOF |
18472 | #define HAVE_COPYSIGN 1 | |
18473 | _ACEOF | |
db9f46a9 TG |
18474 | |
18475 | fi | |
453310d8 | 18476 | |
453310d8 | 18477 | |
453310d8 | 18478 | |
db9f46a9 TG |
18479 | |
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18481 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18482 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18483 | $as_echo_n "(cached) " >&6 |
453310d8 | 18484 | else |
db9f46a9 | 18485 | if test x$gcc_no_link = xyes; then |
22e05272 | 18486 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18487 | fi |
5213506e | 18488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18489 | /* end confdefs.h. */ |
18490 | ||
db9f46a9 TG |
18491 | #ifdef HAVE_COMPLEX_H |
18492 | #include <complex.h> | |
453310d8 | 18493 | #endif |
db9f46a9 TG |
18494 | #ifdef HAVE_MATH_H |
18495 | #include <math.h> | |
18496 | #endif | |
18497 | ||
18498 | int (*ptr)() = (int (*)())copysignl; | |
18499 | ||
453310d8 RS |
18500 | int |
18501 | main () | |
18502 | { | |
5213506e RW |
18503 | return 0; |
18504 | } | |
db9f46a9 | 18505 | |
5213506e RW |
18506 | _ACEOF |
18507 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18508 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18509 | else |
db9f46a9 | 18510 | gcc_cv_math_func_copysignl=no |
453310d8 | 18511 | fi |
5213506e RW |
18512 | rm -f core conftest.err conftest.$ac_objext \ |
18513 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18514 | fi |
db9f46a9 TG |
18515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18516 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18517 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18518 | |
f38a14ca TG |
18519 | cat >>confdefs.h <<_ACEOF |
18520 | #define HAVE_COPYSIGNL 1 | |
18521 | _ACEOF | |
453310d8 | 18522 | |
db9f46a9 | 18523 | fi |
a9e7b9d3 | 18524 | |
a9e7b9d3 | 18525 | |
db9f46a9 TG |
18526 | |
18527 | ||
18528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18529 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18530 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18531 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18532 | else |
db9f46a9 | 18533 | if test x$gcc_no_link = xyes; then |
22e05272 | 18534 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18535 | fi |
5213506e | 18536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18537 | /* end confdefs.h. */ |
18538 | ||
db9f46a9 TG |
18539 | #ifdef HAVE_COMPLEX_H |
18540 | #include <complex.h> | |
18541 | #endif | |
18542 | #ifdef HAVE_MATH_H | |
18543 | #include <math.h> | |
69a2d125 | 18544 | #endif |
db9f46a9 TG |
18545 | |
18546 | int (*ptr)() = (int (*)())cosf; | |
18547 | ||
69a2d125 EB |
18548 | int |
18549 | main () | |
18550 | { | |
69a2d125 EB |
18551 | return 0; |
18552 | } | |
db9f46a9 | 18553 | |
69a2d125 | 18554 | _ACEOF |
5213506e | 18555 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18556 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18557 | else |
db9f46a9 | 18558 | gcc_cv_math_func_cosf=no |
69a2d125 | 18559 | fi |
5213506e RW |
18560 | rm -f core conftest.err conftest.$ac_objext \ |
18561 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18562 | fi |
db9f46a9 TG |
18563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18564 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18565 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18566 | |
f38a14ca TG |
18567 | cat >>confdefs.h <<_ACEOF |
18568 | #define HAVE_COSF 1 | |
18569 | _ACEOF | |
db9f46a9 TG |
18570 | |
18571 | fi | |
69a2d125 | 18572 | |
1409cd0b | 18573 | |
1409cd0b | 18574 | |
db9f46a9 TG |
18575 | |
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18577 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18578 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18579 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18580 | else |
db9f46a9 | 18581 | if test x$gcc_no_link = xyes; then |
22e05272 | 18582 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18583 | fi |
5213506e | 18584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18585 | /* end confdefs.h. */ |
18586 | ||
db9f46a9 TG |
18587 | #ifdef HAVE_COMPLEX_H |
18588 | #include <complex.h> | |
1409cd0b | 18589 | #endif |
db9f46a9 TG |
18590 | #ifdef HAVE_MATH_H |
18591 | #include <math.h> | |
18592 | #endif | |
18593 | ||
18594 | int (*ptr)() = (int (*)())cos; | |
18595 | ||
1409cd0b FXC |
18596 | int |
18597 | main () | |
18598 | { | |
1409cd0b FXC |
18599 | return 0; |
18600 | } | |
db9f46a9 | 18601 | |
1409cd0b | 18602 | _ACEOF |
5213506e | 18603 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18604 | gcc_cv_math_func_cos=yes |
1409cd0b | 18605 | else |
db9f46a9 | 18606 | gcc_cv_math_func_cos=no |
1409cd0b | 18607 | fi |
5213506e RW |
18608 | rm -f core conftest.err conftest.$ac_objext \ |
18609 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18610 | fi |
db9f46a9 TG |
18611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18612 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18613 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18614 | |
f38a14ca TG |
18615 | cat >>confdefs.h <<_ACEOF |
18616 | #define HAVE_COS 1 | |
18617 | _ACEOF | |
db9f46a9 TG |
18618 | |
18619 | fi | |
18620 | ||
1409cd0b | 18621 | |
1409cd0b | 18622 | |
1409cd0b | 18623 | |
db9f46a9 TG |
18624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18625 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18626 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18627 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18628 | else |
db9f46a9 | 18629 | if test x$gcc_no_link = xyes; then |
22e05272 | 18630 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18631 | fi |
5213506e | 18632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18633 | /* end confdefs.h. */ |
18634 | ||
db9f46a9 TG |
18635 | #ifdef HAVE_COMPLEX_H |
18636 | #include <complex.h> | |
18637 | #endif | |
18638 | #ifdef HAVE_MATH_H | |
18639 | #include <math.h> | |
1409cd0b | 18640 | #endif |
db9f46a9 TG |
18641 | |
18642 | int (*ptr)() = (int (*)())cosl; | |
18643 | ||
1409cd0b FXC |
18644 | int |
18645 | main () | |
18646 | { | |
1409cd0b FXC |
18647 | return 0; |
18648 | } | |
db9f46a9 | 18649 | |
1409cd0b | 18650 | _ACEOF |
5213506e | 18651 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18652 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18653 | else |
db9f46a9 | 18654 | gcc_cv_math_func_cosl=no |
1409cd0b | 18655 | fi |
5213506e RW |
18656 | rm -f core conftest.err conftest.$ac_objext \ |
18657 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18658 | fi |
db9f46a9 TG |
18659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18660 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18661 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18662 | |
f38a14ca TG |
18663 | cat >>confdefs.h <<_ACEOF |
18664 | #define HAVE_COSL 1 | |
18665 | _ACEOF | |
db9f46a9 TG |
18666 | |
18667 | fi | |
1409cd0b | 18668 | |
1409cd0b | 18669 | |
1409cd0b | 18670 | |
db9f46a9 TG |
18671 | |
18672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18673 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18674 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18675 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18676 | else |
db9f46a9 | 18677 | if test x$gcc_no_link = xyes; then |
22e05272 | 18678 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18679 | fi |
5213506e | 18680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18681 | /* end confdefs.h. */ |
18682 | ||
db9f46a9 TG |
18683 | #ifdef HAVE_COMPLEX_H |
18684 | #include <complex.h> | |
1409cd0b | 18685 | #endif |
db9f46a9 TG |
18686 | #ifdef HAVE_MATH_H |
18687 | #include <math.h> | |
18688 | #endif | |
18689 | ||
18690 | int (*ptr)() = (int (*)())ccosf; | |
18691 | ||
1409cd0b FXC |
18692 | int |
18693 | main () | |
18694 | { | |
1409cd0b FXC |
18695 | return 0; |
18696 | } | |
db9f46a9 | 18697 | |
1409cd0b | 18698 | _ACEOF |
5213506e | 18699 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18700 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18701 | else |
db9f46a9 | 18702 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18703 | fi |
5213506e RW |
18704 | rm -f core conftest.err conftest.$ac_objext \ |
18705 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18706 | fi |
db9f46a9 TG |
18707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18708 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18709 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18710 | |
f38a14ca TG |
18711 | cat >>confdefs.h <<_ACEOF |
18712 | #define HAVE_CCOSF 1 | |
18713 | _ACEOF | |
1409cd0b | 18714 | |
db9f46a9 | 18715 | fi |
1409cd0b | 18716 | |
1409cd0b | 18717 | |
db9f46a9 TG |
18718 | |
18719 | ||
18720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18721 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18722 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18723 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18724 | else |
db9f46a9 | 18725 | if test x$gcc_no_link = xyes; then |
22e05272 | 18726 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18727 | fi |
5213506e | 18728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18729 | /* end confdefs.h. */ |
18730 | ||
db9f46a9 TG |
18731 | #ifdef HAVE_COMPLEX_H |
18732 | #include <complex.h> | |
18733 | #endif | |
18734 | #ifdef HAVE_MATH_H | |
18735 | #include <math.h> | |
1409cd0b | 18736 | #endif |
db9f46a9 TG |
18737 | |
18738 | int (*ptr)() = (int (*)())ccos; | |
18739 | ||
1409cd0b FXC |
18740 | int |
18741 | main () | |
18742 | { | |
1409cd0b FXC |
18743 | return 0; |
18744 | } | |
db9f46a9 | 18745 | |
1409cd0b | 18746 | _ACEOF |
5213506e | 18747 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18748 | gcc_cv_math_func_ccos=yes |
1409cd0b | 18749 | else |
db9f46a9 | 18750 | gcc_cv_math_func_ccos=no |
1409cd0b | 18751 | fi |
5213506e RW |
18752 | rm -f core conftest.err conftest.$ac_objext \ |
18753 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18754 | fi |
db9f46a9 TG |
18755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18756 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18757 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 18758 | |
f38a14ca TG |
18759 | cat >>confdefs.h <<_ACEOF |
18760 | #define HAVE_CCOS 1 | |
18761 | _ACEOF | |
db9f46a9 TG |
18762 | |
18763 | fi | |
1409cd0b | 18764 | |
1409cd0b | 18765 | |
1409cd0b | 18766 | |
db9f46a9 TG |
18767 | |
18768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18769 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 18770 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 18771 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18772 | else |
db9f46a9 | 18773 | if test x$gcc_no_link = xyes; then |
22e05272 | 18774 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18775 | fi |
5213506e | 18776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18777 | /* end confdefs.h. */ |
18778 | ||
db9f46a9 TG |
18779 | #ifdef HAVE_COMPLEX_H |
18780 | #include <complex.h> | |
1409cd0b | 18781 | #endif |
db9f46a9 TG |
18782 | #ifdef HAVE_MATH_H |
18783 | #include <math.h> | |
18784 | #endif | |
18785 | ||
18786 | int (*ptr)() = (int (*)())ccosl; | |
18787 | ||
1409cd0b FXC |
18788 | int |
18789 | main () | |
18790 | { | |
1409cd0b FXC |
18791 | return 0; |
18792 | } | |
db9f46a9 | 18793 | |
1409cd0b | 18794 | _ACEOF |
5213506e | 18795 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18796 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 18797 | else |
db9f46a9 | 18798 | gcc_cv_math_func_ccosl=no |
1409cd0b | 18799 | fi |
5213506e RW |
18800 | rm -f core conftest.err conftest.$ac_objext \ |
18801 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18802 | fi |
db9f46a9 TG |
18803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18804 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18805 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 18806 | |
f38a14ca TG |
18807 | cat >>confdefs.h <<_ACEOF |
18808 | #define HAVE_CCOSL 1 | |
18809 | _ACEOF | |
db9f46a9 TG |
18810 | |
18811 | fi | |
18812 | ||
1409cd0b | 18813 | |
1409cd0b | 18814 | |
1409cd0b | 18815 | |
db9f46a9 TG |
18816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18817 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 18818 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 18819 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18820 | else |
db9f46a9 | 18821 | if test x$gcc_no_link = xyes; then |
22e05272 | 18822 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18823 | fi |
5213506e | 18824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18825 | /* end confdefs.h. */ |
18826 | ||
db9f46a9 TG |
18827 | #ifdef HAVE_COMPLEX_H |
18828 | #include <complex.h> | |
18829 | #endif | |
18830 | #ifdef HAVE_MATH_H | |
18831 | #include <math.h> | |
1409cd0b | 18832 | #endif |
db9f46a9 TG |
18833 | |
18834 | int (*ptr)() = (int (*)())coshf; | |
18835 | ||
1409cd0b FXC |
18836 | int |
18837 | main () | |
18838 | { | |
1409cd0b FXC |
18839 | return 0; |
18840 | } | |
db9f46a9 | 18841 | |
1409cd0b | 18842 | _ACEOF |
5213506e | 18843 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18844 | gcc_cv_math_func_coshf=yes |
1409cd0b | 18845 | else |
db9f46a9 | 18846 | gcc_cv_math_func_coshf=no |
1409cd0b | 18847 | fi |
5213506e RW |
18848 | rm -f core conftest.err conftest.$ac_objext \ |
18849 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18850 | fi |
db9f46a9 TG |
18851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
18852 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
18853 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 18854 | |
f38a14ca TG |
18855 | cat >>confdefs.h <<_ACEOF |
18856 | #define HAVE_COSHF 1 | |
18857 | _ACEOF | |
db9f46a9 TG |
18858 | |
18859 | fi | |
1409cd0b | 18860 | |
1409cd0b | 18861 | |
1409cd0b | 18862 | |
db9f46a9 TG |
18863 | |
18864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
18865 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 18866 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 18867 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18868 | else |
db9f46a9 | 18869 | if test x$gcc_no_link = xyes; then |
22e05272 | 18870 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18871 | fi |
5213506e | 18872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18873 | /* end confdefs.h. */ |
18874 | ||
db9f46a9 TG |
18875 | #ifdef HAVE_COMPLEX_H |
18876 | #include <complex.h> | |
1409cd0b | 18877 | #endif |
db9f46a9 TG |
18878 | #ifdef HAVE_MATH_H |
18879 | #include <math.h> | |
18880 | #endif | |
18881 | ||
18882 | int (*ptr)() = (int (*)())cosh; | |
18883 | ||
1409cd0b FXC |
18884 | int |
18885 | main () | |
18886 | { | |
1409cd0b FXC |
18887 | return 0; |
18888 | } | |
db9f46a9 | 18889 | |
1409cd0b | 18890 | _ACEOF |
5213506e | 18891 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18892 | gcc_cv_math_func_cosh=yes |
1409cd0b | 18893 | else |
db9f46a9 | 18894 | gcc_cv_math_func_cosh=no |
1409cd0b | 18895 | fi |
5213506e RW |
18896 | rm -f core conftest.err conftest.$ac_objext \ |
18897 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18898 | fi |
db9f46a9 TG |
18899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
18900 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
18901 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 18902 | |
f38a14ca TG |
18903 | cat >>confdefs.h <<_ACEOF |
18904 | #define HAVE_COSH 1 | |
18905 | _ACEOF | |
1409cd0b | 18906 | |
db9f46a9 | 18907 | fi |
1409cd0b | 18908 | |
1409cd0b | 18909 | |
db9f46a9 TG |
18910 | |
18911 | ||
18912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
18913 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 18914 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 18915 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18916 | else |
db9f46a9 | 18917 | if test x$gcc_no_link = xyes; then |
22e05272 | 18918 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18919 | fi |
5213506e | 18920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18921 | /* end confdefs.h. */ |
18922 | ||
db9f46a9 TG |
18923 | #ifdef HAVE_COMPLEX_H |
18924 | #include <complex.h> | |
18925 | #endif | |
18926 | #ifdef HAVE_MATH_H | |
18927 | #include <math.h> | |
1409cd0b | 18928 | #endif |
db9f46a9 TG |
18929 | |
18930 | int (*ptr)() = (int (*)())coshl; | |
18931 | ||
1409cd0b FXC |
18932 | int |
18933 | main () | |
18934 | { | |
1409cd0b FXC |
18935 | return 0; |
18936 | } | |
db9f46a9 | 18937 | |
1409cd0b | 18938 | _ACEOF |
5213506e | 18939 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18940 | gcc_cv_math_func_coshl=yes |
1409cd0b | 18941 | else |
db9f46a9 | 18942 | gcc_cv_math_func_coshl=no |
1409cd0b | 18943 | fi |
5213506e RW |
18944 | rm -f core conftest.err conftest.$ac_objext \ |
18945 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18946 | fi |
db9f46a9 TG |
18947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
18948 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
18949 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 18950 | |
f38a14ca TG |
18951 | cat >>confdefs.h <<_ACEOF |
18952 | #define HAVE_COSHL 1 | |
18953 | _ACEOF | |
db9f46a9 TG |
18954 | |
18955 | fi | |
1409cd0b | 18956 | |
1409cd0b | 18957 | |
1409cd0b | 18958 | |
db9f46a9 TG |
18959 | |
18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
18961 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 18962 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 18963 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18964 | else |
db9f46a9 | 18965 | if test x$gcc_no_link = xyes; then |
22e05272 | 18966 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18967 | fi |
5213506e | 18968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18969 | /* end confdefs.h. */ |
18970 | ||
db9f46a9 TG |
18971 | #ifdef HAVE_COMPLEX_H |
18972 | #include <complex.h> | |
1409cd0b | 18973 | #endif |
db9f46a9 TG |
18974 | #ifdef HAVE_MATH_H |
18975 | #include <math.h> | |
18976 | #endif | |
18977 | ||
18978 | int (*ptr)() = (int (*)())ccoshf; | |
18979 | ||
1409cd0b FXC |
18980 | int |
18981 | main () | |
18982 | { | |
1409cd0b FXC |
18983 | return 0; |
18984 | } | |
db9f46a9 | 18985 | |
1409cd0b | 18986 | _ACEOF |
5213506e | 18987 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18988 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 18989 | else |
db9f46a9 | 18990 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 18991 | fi |
5213506e RW |
18992 | rm -f core conftest.err conftest.$ac_objext \ |
18993 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18994 | fi |
db9f46a9 TG |
18995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
18996 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
18997 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 18998 | |
f38a14ca TG |
18999 | cat >>confdefs.h <<_ACEOF |
19000 | #define HAVE_CCOSHF 1 | |
19001 | _ACEOF | |
db9f46a9 TG |
19002 | |
19003 | fi | |
19004 | ||
1409cd0b | 19005 | |
1409cd0b | 19006 | |
1409cd0b | 19007 | |
db9f46a9 TG |
19008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19009 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19010 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19011 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19012 | else |
db9f46a9 | 19013 | if test x$gcc_no_link = xyes; then |
22e05272 | 19014 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19015 | fi |
5213506e | 19016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19017 | /* end confdefs.h. */ |
19018 | ||
db9f46a9 TG |
19019 | #ifdef HAVE_COMPLEX_H |
19020 | #include <complex.h> | |
19021 | #endif | |
19022 | #ifdef HAVE_MATH_H | |
19023 | #include <math.h> | |
1409cd0b | 19024 | #endif |
db9f46a9 TG |
19025 | |
19026 | int (*ptr)() = (int (*)())ccosh; | |
19027 | ||
1409cd0b FXC |
19028 | int |
19029 | main () | |
19030 | { | |
1409cd0b FXC |
19031 | return 0; |
19032 | } | |
db9f46a9 | 19033 | |
1409cd0b | 19034 | _ACEOF |
5213506e | 19035 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19036 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19037 | else |
db9f46a9 | 19038 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19039 | fi |
5213506e RW |
19040 | rm -f core conftest.err conftest.$ac_objext \ |
19041 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19042 | fi |
db9f46a9 TG |
19043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19044 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19045 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19046 | |
f38a14ca TG |
19047 | cat >>confdefs.h <<_ACEOF |
19048 | #define HAVE_CCOSH 1 | |
19049 | _ACEOF | |
db9f46a9 TG |
19050 | |
19051 | fi | |
1409cd0b | 19052 | |
1409cd0b | 19053 | |
1409cd0b | 19054 | |
db9f46a9 TG |
19055 | |
19056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19057 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19058 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19059 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19060 | else |
db9f46a9 | 19061 | if test x$gcc_no_link = xyes; then |
22e05272 | 19062 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19063 | fi |
5213506e | 19064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19065 | /* end confdefs.h. */ |
19066 | ||
db9f46a9 TG |
19067 | #ifdef HAVE_COMPLEX_H |
19068 | #include <complex.h> | |
1409cd0b | 19069 | #endif |
db9f46a9 TG |
19070 | #ifdef HAVE_MATH_H |
19071 | #include <math.h> | |
19072 | #endif | |
19073 | ||
19074 | int (*ptr)() = (int (*)())ccoshl; | |
19075 | ||
1409cd0b FXC |
19076 | int |
19077 | main () | |
19078 | { | |
1409cd0b FXC |
19079 | return 0; |
19080 | } | |
db9f46a9 | 19081 | |
1409cd0b | 19082 | _ACEOF |
5213506e | 19083 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19084 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19085 | else |
db9f46a9 | 19086 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19087 | fi |
5213506e RW |
19088 | rm -f core conftest.err conftest.$ac_objext \ |
19089 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19090 | fi |
db9f46a9 TG |
19091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19092 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19093 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19094 | |
f38a14ca TG |
19095 | cat >>confdefs.h <<_ACEOF |
19096 | #define HAVE_CCOSHL 1 | |
19097 | _ACEOF | |
1409cd0b | 19098 | |
db9f46a9 | 19099 | fi |
1409cd0b | 19100 | |
1409cd0b | 19101 | |
db9f46a9 TG |
19102 | |
19103 | ||
19104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19105 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19106 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19107 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19108 | else |
db9f46a9 | 19109 | if test x$gcc_no_link = xyes; then |
22e05272 | 19110 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19111 | fi |
5213506e | 19112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19113 | /* end confdefs.h. */ |
19114 | ||
db9f46a9 TG |
19115 | #ifdef HAVE_COMPLEX_H |
19116 | #include <complex.h> | |
19117 | #endif | |
19118 | #ifdef HAVE_MATH_H | |
19119 | #include <math.h> | |
1409cd0b | 19120 | #endif |
db9f46a9 TG |
19121 | |
19122 | int (*ptr)() = (int (*)())expf; | |
19123 | ||
1409cd0b FXC |
19124 | int |
19125 | main () | |
19126 | { | |
1409cd0b FXC |
19127 | return 0; |
19128 | } | |
db9f46a9 | 19129 | |
1409cd0b | 19130 | _ACEOF |
5213506e | 19131 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19132 | gcc_cv_math_func_expf=yes |
1409cd0b | 19133 | else |
db9f46a9 | 19134 | gcc_cv_math_func_expf=no |
1409cd0b | 19135 | fi |
5213506e RW |
19136 | rm -f core conftest.err conftest.$ac_objext \ |
19137 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19138 | fi |
db9f46a9 TG |
19139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19140 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19141 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19142 | |
f38a14ca TG |
19143 | cat >>confdefs.h <<_ACEOF |
19144 | #define HAVE_EXPF 1 | |
19145 | _ACEOF | |
db9f46a9 TG |
19146 | |
19147 | fi | |
1409cd0b | 19148 | |
1409cd0b | 19149 | |
1409cd0b | 19150 | |
db9f46a9 TG |
19151 | |
19152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19153 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19154 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19155 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19156 | else |
db9f46a9 | 19157 | if test x$gcc_no_link = xyes; then |
22e05272 | 19158 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19159 | fi |
5213506e | 19160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19161 | /* end confdefs.h. */ |
19162 | ||
db9f46a9 TG |
19163 | #ifdef HAVE_COMPLEX_H |
19164 | #include <complex.h> | |
1409cd0b | 19165 | #endif |
db9f46a9 TG |
19166 | #ifdef HAVE_MATH_H |
19167 | #include <math.h> | |
19168 | #endif | |
19169 | ||
19170 | int (*ptr)() = (int (*)())exp; | |
19171 | ||
1409cd0b FXC |
19172 | int |
19173 | main () | |
19174 | { | |
1409cd0b FXC |
19175 | return 0; |
19176 | } | |
db9f46a9 | 19177 | |
1409cd0b | 19178 | _ACEOF |
5213506e | 19179 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19180 | gcc_cv_math_func_exp=yes |
1409cd0b | 19181 | else |
db9f46a9 | 19182 | gcc_cv_math_func_exp=no |
1409cd0b | 19183 | fi |
5213506e RW |
19184 | rm -f core conftest.err conftest.$ac_objext \ |
19185 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19186 | fi |
db9f46a9 TG |
19187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19188 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19189 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19190 | |
f38a14ca TG |
19191 | cat >>confdefs.h <<_ACEOF |
19192 | #define HAVE_EXP 1 | |
19193 | _ACEOF | |
db9f46a9 TG |
19194 | |
19195 | fi | |
19196 | ||
1409cd0b | 19197 | |
1409cd0b | 19198 | |
1409cd0b | 19199 | |
db9f46a9 TG |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19201 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19202 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19203 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19204 | else |
db9f46a9 | 19205 | if test x$gcc_no_link = xyes; then |
22e05272 | 19206 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19207 | fi |
5213506e | 19208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19209 | /* end confdefs.h. */ |
19210 | ||
db9f46a9 TG |
19211 | #ifdef HAVE_COMPLEX_H |
19212 | #include <complex.h> | |
19213 | #endif | |
19214 | #ifdef HAVE_MATH_H | |
19215 | #include <math.h> | |
1409cd0b | 19216 | #endif |
db9f46a9 TG |
19217 | |
19218 | int (*ptr)() = (int (*)())expl; | |
19219 | ||
1409cd0b FXC |
19220 | int |
19221 | main () | |
19222 | { | |
1409cd0b FXC |
19223 | return 0; |
19224 | } | |
db9f46a9 | 19225 | |
1409cd0b | 19226 | _ACEOF |
5213506e | 19227 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19228 | gcc_cv_math_func_expl=yes |
1409cd0b | 19229 | else |
db9f46a9 | 19230 | gcc_cv_math_func_expl=no |
1409cd0b | 19231 | fi |
5213506e RW |
19232 | rm -f core conftest.err conftest.$ac_objext \ |
19233 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19234 | fi |
db9f46a9 TG |
19235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19236 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19237 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19238 | |
f38a14ca TG |
19239 | cat >>confdefs.h <<_ACEOF |
19240 | #define HAVE_EXPL 1 | |
19241 | _ACEOF | |
db9f46a9 TG |
19242 | |
19243 | fi | |
1409cd0b | 19244 | |
1409cd0b | 19245 | |
1409cd0b | 19246 | |
db9f46a9 TG |
19247 | |
19248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19249 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19250 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19251 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19252 | else |
db9f46a9 | 19253 | if test x$gcc_no_link = xyes; then |
22e05272 | 19254 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19255 | fi |
5213506e | 19256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19257 | /* end confdefs.h. */ |
19258 | ||
db9f46a9 TG |
19259 | #ifdef HAVE_COMPLEX_H |
19260 | #include <complex.h> | |
1409cd0b | 19261 | #endif |
db9f46a9 TG |
19262 | #ifdef HAVE_MATH_H |
19263 | #include <math.h> | |
19264 | #endif | |
19265 | ||
19266 | int (*ptr)() = (int (*)())cexpf; | |
19267 | ||
1409cd0b FXC |
19268 | int |
19269 | main () | |
19270 | { | |
1409cd0b FXC |
19271 | return 0; |
19272 | } | |
db9f46a9 | 19273 | |
1409cd0b | 19274 | _ACEOF |
5213506e | 19275 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19276 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19277 | else |
db9f46a9 | 19278 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19279 | fi |
5213506e RW |
19280 | rm -f core conftest.err conftest.$ac_objext \ |
19281 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19282 | fi |
db9f46a9 TG |
19283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19284 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19285 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19286 | |
f38a14ca TG |
19287 | cat >>confdefs.h <<_ACEOF |
19288 | #define HAVE_CEXPF 1 | |
19289 | _ACEOF | |
1409cd0b | 19290 | |
db9f46a9 | 19291 | fi |
1409cd0b | 19292 | |
1409cd0b | 19293 | |
db9f46a9 TG |
19294 | |
19295 | ||
19296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19297 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19298 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19299 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19300 | else |
db9f46a9 | 19301 | if test x$gcc_no_link = xyes; then |
22e05272 | 19302 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19303 | fi |
5213506e | 19304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19305 | /* end confdefs.h. */ |
19306 | ||
db9f46a9 TG |
19307 | #ifdef HAVE_COMPLEX_H |
19308 | #include <complex.h> | |
19309 | #endif | |
19310 | #ifdef HAVE_MATH_H | |
19311 | #include <math.h> | |
1409cd0b | 19312 | #endif |
db9f46a9 TG |
19313 | |
19314 | int (*ptr)() = (int (*)())cexp; | |
19315 | ||
1409cd0b FXC |
19316 | int |
19317 | main () | |
19318 | { | |
1409cd0b FXC |
19319 | return 0; |
19320 | } | |
db9f46a9 | 19321 | |
1409cd0b | 19322 | _ACEOF |
5213506e | 19323 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19324 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19325 | else |
db9f46a9 | 19326 | gcc_cv_math_func_cexp=no |
1409cd0b | 19327 | fi |
5213506e RW |
19328 | rm -f core conftest.err conftest.$ac_objext \ |
19329 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19330 | fi |
db9f46a9 TG |
19331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19332 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19333 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19334 | |
f38a14ca TG |
19335 | cat >>confdefs.h <<_ACEOF |
19336 | #define HAVE_CEXP 1 | |
19337 | _ACEOF | |
db9f46a9 TG |
19338 | |
19339 | fi | |
1409cd0b | 19340 | |
1409cd0b | 19341 | |
1409cd0b | 19342 | |
db9f46a9 TG |
19343 | |
19344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19345 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19346 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19347 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19348 | else |
db9f46a9 | 19349 | if test x$gcc_no_link = xyes; then |
22e05272 | 19350 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19351 | fi |
5213506e | 19352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19353 | /* end confdefs.h. */ |
19354 | ||
db9f46a9 TG |
19355 | #ifdef HAVE_COMPLEX_H |
19356 | #include <complex.h> | |
1409cd0b | 19357 | #endif |
db9f46a9 TG |
19358 | #ifdef HAVE_MATH_H |
19359 | #include <math.h> | |
19360 | #endif | |
19361 | ||
19362 | int (*ptr)() = (int (*)())cexpl; | |
19363 | ||
1409cd0b FXC |
19364 | int |
19365 | main () | |
19366 | { | |
1409cd0b FXC |
19367 | return 0; |
19368 | } | |
db9f46a9 | 19369 | |
1409cd0b | 19370 | _ACEOF |
5213506e | 19371 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19372 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19373 | else |
db9f46a9 | 19374 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19375 | fi |
5213506e RW |
19376 | rm -f core conftest.err conftest.$ac_objext \ |
19377 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19378 | fi |
db9f46a9 TG |
19379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19380 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19381 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19382 | |
f38a14ca TG |
19383 | cat >>confdefs.h <<_ACEOF |
19384 | #define HAVE_CEXPL 1 | |
19385 | _ACEOF | |
db9f46a9 TG |
19386 | |
19387 | fi | |
19388 | ||
1409cd0b | 19389 | |
1409cd0b | 19390 | |
1409cd0b | 19391 | |
db9f46a9 TG |
19392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19393 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19394 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19395 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19396 | else |
db9f46a9 | 19397 | if test x$gcc_no_link = xyes; then |
22e05272 | 19398 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19399 | fi |
5213506e | 19400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19401 | /* end confdefs.h. */ |
19402 | ||
db9f46a9 TG |
19403 | #ifdef HAVE_COMPLEX_H |
19404 | #include <complex.h> | |
19405 | #endif | |
19406 | #ifdef HAVE_MATH_H | |
19407 | #include <math.h> | |
1409cd0b | 19408 | #endif |
db9f46a9 TG |
19409 | |
19410 | int (*ptr)() = (int (*)())fabsf; | |
19411 | ||
1409cd0b FXC |
19412 | int |
19413 | main () | |
19414 | { | |
1409cd0b FXC |
19415 | return 0; |
19416 | } | |
db9f46a9 | 19417 | |
1409cd0b | 19418 | _ACEOF |
5213506e | 19419 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19420 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19421 | else |
db9f46a9 | 19422 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19423 | fi |
5213506e RW |
19424 | rm -f core conftest.err conftest.$ac_objext \ |
19425 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19426 | fi |
db9f46a9 TG |
19427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19428 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19429 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19430 | |
f38a14ca TG |
19431 | cat >>confdefs.h <<_ACEOF |
19432 | #define HAVE_FABSF 1 | |
19433 | _ACEOF | |
db9f46a9 TG |
19434 | |
19435 | fi | |
1409cd0b | 19436 | |
1409cd0b | 19437 | |
1409cd0b | 19438 | |
db9f46a9 TG |
19439 | |
19440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19441 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19442 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19443 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19444 | else |
db9f46a9 | 19445 | if test x$gcc_no_link = xyes; then |
22e05272 | 19446 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19447 | fi |
5213506e | 19448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19449 | /* end confdefs.h. */ |
19450 | ||
db9f46a9 TG |
19451 | #ifdef HAVE_COMPLEX_H |
19452 | #include <complex.h> | |
1409cd0b | 19453 | #endif |
db9f46a9 TG |
19454 | #ifdef HAVE_MATH_H |
19455 | #include <math.h> | |
19456 | #endif | |
19457 | ||
19458 | int (*ptr)() = (int (*)())fabs; | |
19459 | ||
1409cd0b FXC |
19460 | int |
19461 | main () | |
19462 | { | |
1409cd0b FXC |
19463 | return 0; |
19464 | } | |
db9f46a9 | 19465 | |
1409cd0b | 19466 | _ACEOF |
5213506e | 19467 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19468 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19469 | else |
db9f46a9 | 19470 | gcc_cv_math_func_fabs=no |
1409cd0b | 19471 | fi |
5213506e RW |
19472 | rm -f core conftest.err conftest.$ac_objext \ |
19473 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19474 | fi |
db9f46a9 TG |
19475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19476 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19477 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19478 | |
f38a14ca TG |
19479 | cat >>confdefs.h <<_ACEOF |
19480 | #define HAVE_FABS 1 | |
19481 | _ACEOF | |
1409cd0b | 19482 | |
db9f46a9 | 19483 | fi |
1409cd0b | 19484 | |
1409cd0b | 19485 | |
db9f46a9 TG |
19486 | |
19487 | ||
19488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19489 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19490 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19491 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19492 | else |
db9f46a9 | 19493 | if test x$gcc_no_link = xyes; then |
22e05272 | 19494 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19495 | fi |
5213506e | 19496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19497 | /* end confdefs.h. */ |
19498 | ||
db9f46a9 TG |
19499 | #ifdef HAVE_COMPLEX_H |
19500 | #include <complex.h> | |
19501 | #endif | |
19502 | #ifdef HAVE_MATH_H | |
19503 | #include <math.h> | |
1409cd0b | 19504 | #endif |
db9f46a9 TG |
19505 | |
19506 | int (*ptr)() = (int (*)())fabsl; | |
19507 | ||
1409cd0b FXC |
19508 | int |
19509 | main () | |
19510 | { | |
1409cd0b FXC |
19511 | return 0; |
19512 | } | |
db9f46a9 | 19513 | |
1409cd0b | 19514 | _ACEOF |
5213506e | 19515 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19516 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19517 | else |
db9f46a9 | 19518 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19519 | fi |
5213506e RW |
19520 | rm -f core conftest.err conftest.$ac_objext \ |
19521 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19522 | fi |
db9f46a9 TG |
19523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19524 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19525 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19526 | |
f38a14ca TG |
19527 | cat >>confdefs.h <<_ACEOF |
19528 | #define HAVE_FABSL 1 | |
19529 | _ACEOF | |
db9f46a9 TG |
19530 | |
19531 | fi | |
1409cd0b | 19532 | |
1409cd0b | 19533 | |
1409cd0b | 19534 | |
db9f46a9 TG |
19535 | |
19536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19537 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19538 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19539 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19540 | else |
db9f46a9 | 19541 | if test x$gcc_no_link = xyes; then |
22e05272 | 19542 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19543 | fi |
5213506e | 19544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19545 | /* end confdefs.h. */ |
19546 | ||
db9f46a9 TG |
19547 | #ifdef HAVE_COMPLEX_H |
19548 | #include <complex.h> | |
1409cd0b | 19549 | #endif |
db9f46a9 TG |
19550 | #ifdef HAVE_MATH_H |
19551 | #include <math.h> | |
19552 | #endif | |
19553 | ||
19554 | int (*ptr)() = (int (*)())cabsf; | |
19555 | ||
1409cd0b FXC |
19556 | int |
19557 | main () | |
19558 | { | |
1409cd0b FXC |
19559 | return 0; |
19560 | } | |
db9f46a9 | 19561 | |
1409cd0b | 19562 | _ACEOF |
5213506e | 19563 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19564 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19565 | else |
db9f46a9 | 19566 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19567 | fi |
5213506e RW |
19568 | rm -f core conftest.err conftest.$ac_objext \ |
19569 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19570 | fi |
db9f46a9 TG |
19571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19572 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19573 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19574 | |
f38a14ca TG |
19575 | cat >>confdefs.h <<_ACEOF |
19576 | #define HAVE_CABSF 1 | |
19577 | _ACEOF | |
db9f46a9 TG |
19578 | |
19579 | fi | |
19580 | ||
1409cd0b | 19581 | |
1409cd0b | 19582 | |
1409cd0b | 19583 | |
db9f46a9 TG |
19584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19585 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19586 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19587 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19588 | else |
db9f46a9 | 19589 | if test x$gcc_no_link = xyes; then |
22e05272 | 19590 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19591 | fi |
5213506e | 19592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19593 | /* end confdefs.h. */ |
19594 | ||
db9f46a9 TG |
19595 | #ifdef HAVE_COMPLEX_H |
19596 | #include <complex.h> | |
19597 | #endif | |
19598 | #ifdef HAVE_MATH_H | |
19599 | #include <math.h> | |
1409cd0b | 19600 | #endif |
db9f46a9 TG |
19601 | |
19602 | int (*ptr)() = (int (*)())cabs; | |
19603 | ||
1409cd0b FXC |
19604 | int |
19605 | main () | |
19606 | { | |
1409cd0b FXC |
19607 | return 0; |
19608 | } | |
db9f46a9 | 19609 | |
1409cd0b | 19610 | _ACEOF |
5213506e | 19611 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19612 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19613 | else |
db9f46a9 | 19614 | gcc_cv_math_func_cabs=no |
1409cd0b | 19615 | fi |
5213506e RW |
19616 | rm -f core conftest.err conftest.$ac_objext \ |
19617 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19618 | fi |
db9f46a9 TG |
19619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19620 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19621 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19622 | |
f38a14ca TG |
19623 | cat >>confdefs.h <<_ACEOF |
19624 | #define HAVE_CABS 1 | |
19625 | _ACEOF | |
db9f46a9 TG |
19626 | |
19627 | fi | |
1409cd0b | 19628 | |
1409cd0b | 19629 | |
1409cd0b | 19630 | |
db9f46a9 TG |
19631 | |
19632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19633 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19634 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19635 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19636 | else |
db9f46a9 | 19637 | if test x$gcc_no_link = xyes; then |
22e05272 | 19638 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19639 | fi |
5213506e | 19640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19641 | /* end confdefs.h. */ |
19642 | ||
db9f46a9 TG |
19643 | #ifdef HAVE_COMPLEX_H |
19644 | #include <complex.h> | |
1409cd0b | 19645 | #endif |
db9f46a9 TG |
19646 | #ifdef HAVE_MATH_H |
19647 | #include <math.h> | |
19648 | #endif | |
19649 | ||
19650 | int (*ptr)() = (int (*)())cabsl; | |
19651 | ||
1409cd0b FXC |
19652 | int |
19653 | main () | |
19654 | { | |
1409cd0b FXC |
19655 | return 0; |
19656 | } | |
db9f46a9 | 19657 | |
1409cd0b | 19658 | _ACEOF |
5213506e | 19659 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19660 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19661 | else |
db9f46a9 | 19662 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19663 | fi |
5213506e RW |
19664 | rm -f core conftest.err conftest.$ac_objext \ |
19665 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19666 | fi |
db9f46a9 TG |
19667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19668 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19669 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19670 | |
f38a14ca TG |
19671 | cat >>confdefs.h <<_ACEOF |
19672 | #define HAVE_CABSL 1 | |
19673 | _ACEOF | |
1409cd0b | 19674 | |
db9f46a9 | 19675 | fi |
1409cd0b | 19676 | |
1409cd0b | 19677 | |
db9f46a9 TG |
19678 | |
19679 | ||
19680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19681 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19682 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19683 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19684 | else |
db9f46a9 | 19685 | if test x$gcc_no_link = xyes; then |
22e05272 | 19686 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19687 | fi |
5213506e | 19688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19689 | /* end confdefs.h. */ |
19690 | ||
db9f46a9 TG |
19691 | #ifdef HAVE_COMPLEX_H |
19692 | #include <complex.h> | |
19693 | #endif | |
19694 | #ifdef HAVE_MATH_H | |
19695 | #include <math.h> | |
1409cd0b | 19696 | #endif |
db9f46a9 TG |
19697 | |
19698 | int (*ptr)() = (int (*)())floorf; | |
19699 | ||
1409cd0b FXC |
19700 | int |
19701 | main () | |
19702 | { | |
5213506e RW |
19703 | return 0; |
19704 | } | |
db9f46a9 | 19705 | |
5213506e RW |
19706 | _ACEOF |
19707 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19708 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19709 | else |
db9f46a9 | 19710 | gcc_cv_math_func_floorf=no |
1409cd0b | 19711 | fi |
5213506e RW |
19712 | rm -f core conftest.err conftest.$ac_objext \ |
19713 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19714 | fi |
db9f46a9 TG |
19715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19716 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19717 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19718 | |
f38a14ca TG |
19719 | cat >>confdefs.h <<_ACEOF |
19720 | #define HAVE_FLOORF 1 | |
19721 | _ACEOF | |
db9f46a9 TG |
19722 | |
19723 | fi | |
1409cd0b | 19724 | |
1409cd0b | 19725 | |
1409cd0b | 19726 | |
db9f46a9 TG |
19727 | |
19728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19729 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19730 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19731 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19732 | else |
db9f46a9 | 19733 | if test x$gcc_no_link = xyes; then |
22e05272 | 19734 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19735 | fi |
5213506e | 19736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19737 | /* end confdefs.h. */ |
19738 | ||
db9f46a9 TG |
19739 | #ifdef HAVE_COMPLEX_H |
19740 | #include <complex.h> | |
1409cd0b | 19741 | #endif |
db9f46a9 TG |
19742 | #ifdef HAVE_MATH_H |
19743 | #include <math.h> | |
19744 | #endif | |
19745 | ||
19746 | int (*ptr)() = (int (*)())floor; | |
19747 | ||
1409cd0b FXC |
19748 | int |
19749 | main () | |
19750 | { | |
1409cd0b FXC |
19751 | return 0; |
19752 | } | |
db9f46a9 | 19753 | |
1409cd0b | 19754 | _ACEOF |
5213506e | 19755 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19756 | gcc_cv_math_func_floor=yes |
1409cd0b | 19757 | else |
db9f46a9 | 19758 | gcc_cv_math_func_floor=no |
1409cd0b | 19759 | fi |
5213506e RW |
19760 | rm -f core conftest.err conftest.$ac_objext \ |
19761 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19762 | fi |
db9f46a9 TG |
19763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19764 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19765 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 19766 | |
f38a14ca TG |
19767 | cat >>confdefs.h <<_ACEOF |
19768 | #define HAVE_FLOOR 1 | |
19769 | _ACEOF | |
db9f46a9 TG |
19770 | |
19771 | fi | |
19772 | ||
1409cd0b | 19773 | |
1409cd0b | 19774 | |
1409cd0b | 19775 | |
db9f46a9 TG |
19776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19777 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 19778 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 19779 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19780 | else |
db9f46a9 | 19781 | if test x$gcc_no_link = xyes; then |
22e05272 | 19782 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19783 | fi |
5213506e | 19784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19785 | /* end confdefs.h. */ |
19786 | ||
db9f46a9 TG |
19787 | #ifdef HAVE_COMPLEX_H |
19788 | #include <complex.h> | |
19789 | #endif | |
19790 | #ifdef HAVE_MATH_H | |
19791 | #include <math.h> | |
eb647f7d | 19792 | #endif |
db9f46a9 TG |
19793 | |
19794 | int (*ptr)() = (int (*)())floorl; | |
19795 | ||
eb647f7d FXC |
19796 | int |
19797 | main () | |
19798 | { | |
eb647f7d FXC |
19799 | return 0; |
19800 | } | |
db9f46a9 | 19801 | |
eb647f7d | 19802 | _ACEOF |
5213506e | 19803 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19804 | gcc_cv_math_func_floorl=yes |
eb647f7d | 19805 | else |
db9f46a9 | 19806 | gcc_cv_math_func_floorl=no |
eb647f7d | 19807 | fi |
5213506e RW |
19808 | rm -f core conftest.err conftest.$ac_objext \ |
19809 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 19810 | fi |
db9f46a9 TG |
19811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19812 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19813 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 19814 | |
f38a14ca TG |
19815 | cat >>confdefs.h <<_ACEOF |
19816 | #define HAVE_FLOORL 1 | |
19817 | _ACEOF | |
db9f46a9 TG |
19818 | |
19819 | fi | |
eb647f7d | 19820 | |
eb647f7d | 19821 | |
eb647f7d | 19822 | |
db9f46a9 TG |
19823 | |
19824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 | |
19825 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 19826 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 19827 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19828 | else |
db9f46a9 | 19829 | if test x$gcc_no_link = xyes; then |
22e05272 | 19830 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19831 | fi |
5213506e | 19832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19833 | /* end confdefs.h. */ |
19834 | ||
db9f46a9 TG |
19835 | #ifdef HAVE_COMPLEX_H |
19836 | #include <complex.h> | |
eb647f7d | 19837 | #endif |
db9f46a9 TG |
19838 | #ifdef HAVE_MATH_H |
19839 | #include <math.h> | |
19840 | #endif | |
19841 | ||
19842 | int (*ptr)() = (int (*)())fmodf; | |
19843 | ||
eb647f7d FXC |
19844 | int |
19845 | main () | |
19846 | { | |
eb647f7d FXC |
19847 | return 0; |
19848 | } | |
db9f46a9 | 19849 | |
eb647f7d | 19850 | _ACEOF |
5213506e | 19851 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19852 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 19853 | else |
db9f46a9 | 19854 | gcc_cv_math_func_fmodf=no |
eb647f7d | 19855 | fi |
5213506e RW |
19856 | rm -f core conftest.err conftest.$ac_objext \ |
19857 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 19858 | fi |
db9f46a9 TG |
19859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
19860 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
19861 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 19862 | |
f38a14ca TG |
19863 | cat >>confdefs.h <<_ACEOF |
19864 | #define HAVE_FMODF 1 | |
19865 | _ACEOF | |
eb647f7d | 19866 | |
db9f46a9 | 19867 | fi |
eb647f7d | 19868 | |
eb647f7d | 19869 | |
db9f46a9 TG |
19870 | |
19871 | ||
19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
19873 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 19874 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 19875 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19876 | else |
db9f46a9 | 19877 | if test x$gcc_no_link = xyes; then |
22e05272 | 19878 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19879 | fi |
5213506e | 19880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19881 | /* end confdefs.h. */ |
19882 | ||
db9f46a9 TG |
19883 | #ifdef HAVE_COMPLEX_H |
19884 | #include <complex.h> | |
19885 | #endif | |
19886 | #ifdef HAVE_MATH_H | |
19887 | #include <math.h> | |
eb647f7d | 19888 | #endif |
db9f46a9 TG |
19889 | |
19890 | int (*ptr)() = (int (*)())fmod; | |
19891 | ||
eb647f7d FXC |
19892 | int |
19893 | main () | |
19894 | { | |
eb647f7d FXC |
19895 | return 0; |
19896 | } | |
db9f46a9 | 19897 | |
eb647f7d | 19898 | _ACEOF |
5213506e | 19899 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19900 | gcc_cv_math_func_fmod=yes |
eb647f7d | 19901 | else |
db9f46a9 | 19902 | gcc_cv_math_func_fmod=no |
eb647f7d | 19903 | fi |
5213506e RW |
19904 | rm -f core conftest.err conftest.$ac_objext \ |
19905 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 19906 | fi |
db9f46a9 TG |
19907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
19908 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
19909 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 19910 | |
f38a14ca TG |
19911 | cat >>confdefs.h <<_ACEOF |
19912 | #define HAVE_FMOD 1 | |
19913 | _ACEOF | |
db9f46a9 TG |
19914 | |
19915 | fi | |
eb647f7d | 19916 | |
eb647f7d | 19917 | |
eb647f7d | 19918 | |
db9f46a9 TG |
19919 | |
19920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
19921 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 19922 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 19923 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19924 | else |
db9f46a9 | 19925 | if test x$gcc_no_link = xyes; then |
22e05272 | 19926 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19927 | fi |
5213506e | 19928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19929 | /* end confdefs.h. */ |
19930 | ||
db9f46a9 TG |
19931 | #ifdef HAVE_COMPLEX_H |
19932 | #include <complex.h> | |
1409cd0b | 19933 | #endif |
db9f46a9 TG |
19934 | #ifdef HAVE_MATH_H |
19935 | #include <math.h> | |
19936 | #endif | |
19937 | ||
19938 | int (*ptr)() = (int (*)())fmodl; | |
19939 | ||
1409cd0b FXC |
19940 | int |
19941 | main () | |
19942 | { | |
1409cd0b FXC |
19943 | return 0; |
19944 | } | |
db9f46a9 | 19945 | |
1409cd0b | 19946 | _ACEOF |
5213506e | 19947 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19948 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 19949 | else |
db9f46a9 | 19950 | gcc_cv_math_func_fmodl=no |
1409cd0b | 19951 | fi |
5213506e RW |
19952 | rm -f core conftest.err conftest.$ac_objext \ |
19953 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19954 | fi |
db9f46a9 TG |
19955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
19956 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
19957 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 19958 | |
f38a14ca TG |
19959 | cat >>confdefs.h <<_ACEOF |
19960 | #define HAVE_FMODL 1 | |
19961 | _ACEOF | |
db9f46a9 TG |
19962 | |
19963 | fi | |
19964 | ||
1409cd0b | 19965 | |
1409cd0b | 19966 | |
1409cd0b | 19967 | |
db9f46a9 TG |
19968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
19969 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 19970 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 19971 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19972 | else |
db9f46a9 | 19973 | if test x$gcc_no_link = xyes; then |
22e05272 | 19974 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19975 | fi |
5213506e | 19976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19977 | /* end confdefs.h. */ |
19978 | ||
db9f46a9 TG |
19979 | #ifdef HAVE_COMPLEX_H |
19980 | #include <complex.h> | |
19981 | #endif | |
19982 | #ifdef HAVE_MATH_H | |
19983 | #include <math.h> | |
1409cd0b | 19984 | #endif |
db9f46a9 TG |
19985 | |
19986 | int (*ptr)() = (int (*)())frexpf; | |
19987 | ||
1409cd0b FXC |
19988 | int |
19989 | main () | |
19990 | { | |
1409cd0b FXC |
19991 | return 0; |
19992 | } | |
db9f46a9 | 19993 | |
1409cd0b | 19994 | _ACEOF |
5213506e | 19995 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19996 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 19997 | else |
db9f46a9 | 19998 | gcc_cv_math_func_frexpf=no |
1409cd0b | 19999 | fi |
5213506e RW |
20000 | rm -f core conftest.err conftest.$ac_objext \ |
20001 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20002 | fi |
db9f46a9 TG |
20003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20004 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20005 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20006 | |
f38a14ca TG |
20007 | cat >>confdefs.h <<_ACEOF |
20008 | #define HAVE_FREXPF 1 | |
20009 | _ACEOF | |
db9f46a9 TG |
20010 | |
20011 | fi | |
1409cd0b | 20012 | |
1409cd0b | 20013 | |
1409cd0b | 20014 | |
db9f46a9 TG |
20015 | |
20016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20017 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20018 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20019 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20020 | else |
db9f46a9 | 20021 | if test x$gcc_no_link = xyes; then |
22e05272 | 20022 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20023 | fi |
5213506e | 20024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20025 | /* end confdefs.h. */ |
20026 | ||
db9f46a9 TG |
20027 | #ifdef HAVE_COMPLEX_H |
20028 | #include <complex.h> | |
1409cd0b | 20029 | #endif |
db9f46a9 TG |
20030 | #ifdef HAVE_MATH_H |
20031 | #include <math.h> | |
20032 | #endif | |
20033 | ||
20034 | int (*ptr)() = (int (*)())frexp; | |
20035 | ||
1409cd0b FXC |
20036 | int |
20037 | main () | |
20038 | { | |
1409cd0b FXC |
20039 | return 0; |
20040 | } | |
db9f46a9 | 20041 | |
1409cd0b | 20042 | _ACEOF |
5213506e | 20043 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20044 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20045 | else |
db9f46a9 | 20046 | gcc_cv_math_func_frexp=no |
1409cd0b | 20047 | fi |
5213506e RW |
20048 | rm -f core conftest.err conftest.$ac_objext \ |
20049 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20050 | fi |
db9f46a9 TG |
20051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20052 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20053 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20054 | |
f38a14ca TG |
20055 | cat >>confdefs.h <<_ACEOF |
20056 | #define HAVE_FREXP 1 | |
20057 | _ACEOF | |
1409cd0b | 20058 | |
db9f46a9 | 20059 | fi |
1409cd0b | 20060 | |
1409cd0b | 20061 | |
db9f46a9 TG |
20062 | |
20063 | ||
20064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20065 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20066 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20067 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20068 | else |
db9f46a9 | 20069 | if test x$gcc_no_link = xyes; then |
22e05272 | 20070 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20071 | fi |
5213506e | 20072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20073 | /* end confdefs.h. */ |
20074 | ||
db9f46a9 TG |
20075 | #ifdef HAVE_COMPLEX_H |
20076 | #include <complex.h> | |
20077 | #endif | |
20078 | #ifdef HAVE_MATH_H | |
20079 | #include <math.h> | |
1409cd0b | 20080 | #endif |
db9f46a9 TG |
20081 | |
20082 | int (*ptr)() = (int (*)())frexpl; | |
20083 | ||
1409cd0b FXC |
20084 | int |
20085 | main () | |
20086 | { | |
1409cd0b FXC |
20087 | return 0; |
20088 | } | |
db9f46a9 | 20089 | |
1409cd0b | 20090 | _ACEOF |
5213506e | 20091 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20092 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20093 | else |
db9f46a9 | 20094 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20095 | fi |
5213506e RW |
20096 | rm -f core conftest.err conftest.$ac_objext \ |
20097 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20098 | fi |
db9f46a9 TG |
20099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20100 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20101 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20102 | |
f38a14ca TG |
20103 | cat >>confdefs.h <<_ACEOF |
20104 | #define HAVE_FREXPL 1 | |
20105 | _ACEOF | |
db9f46a9 TG |
20106 | |
20107 | fi | |
1409cd0b | 20108 | |
1409cd0b | 20109 | |
1409cd0b | 20110 | |
db9f46a9 TG |
20111 | |
20112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20113 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20114 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20115 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20116 | else |
db9f46a9 | 20117 | if test x$gcc_no_link = xyes; then |
22e05272 | 20118 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20119 | fi |
5213506e | 20120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20121 | /* end confdefs.h. */ |
20122 | ||
db9f46a9 TG |
20123 | #ifdef HAVE_COMPLEX_H |
20124 | #include <complex.h> | |
1409cd0b | 20125 | #endif |
db9f46a9 TG |
20126 | #ifdef HAVE_MATH_H |
20127 | #include <math.h> | |
20128 | #endif | |
20129 | ||
20130 | int (*ptr)() = (int (*)())hypotf; | |
20131 | ||
1409cd0b FXC |
20132 | int |
20133 | main () | |
20134 | { | |
1409cd0b FXC |
20135 | return 0; |
20136 | } | |
db9f46a9 | 20137 | |
1409cd0b | 20138 | _ACEOF |
5213506e | 20139 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20140 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20141 | else |
db9f46a9 | 20142 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20143 | fi |
5213506e RW |
20144 | rm -f core conftest.err conftest.$ac_objext \ |
20145 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20146 | fi |
db9f46a9 TG |
20147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20148 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20149 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20150 | |
f38a14ca TG |
20151 | cat >>confdefs.h <<_ACEOF |
20152 | #define HAVE_HYPOTF 1 | |
20153 | _ACEOF | |
db9f46a9 TG |
20154 | |
20155 | fi | |
20156 | ||
1409cd0b | 20157 | |
1409cd0b | 20158 | |
1409cd0b | 20159 | |
db9f46a9 TG |
20160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20161 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20162 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20163 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20164 | else |
db9f46a9 | 20165 | if test x$gcc_no_link = xyes; then |
22e05272 | 20166 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20167 | fi |
5213506e | 20168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20169 | /* end confdefs.h. */ |
20170 | ||
db9f46a9 TG |
20171 | #ifdef HAVE_COMPLEX_H |
20172 | #include <complex.h> | |
20173 | #endif | |
20174 | #ifdef HAVE_MATH_H | |
20175 | #include <math.h> | |
1409cd0b | 20176 | #endif |
db9f46a9 TG |
20177 | |
20178 | int (*ptr)() = (int (*)())hypot; | |
20179 | ||
1409cd0b FXC |
20180 | int |
20181 | main () | |
20182 | { | |
1409cd0b FXC |
20183 | return 0; |
20184 | } | |
db9f46a9 | 20185 | |
1409cd0b | 20186 | _ACEOF |
5213506e | 20187 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20188 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20189 | else |
db9f46a9 | 20190 | gcc_cv_math_func_hypot=no |
1409cd0b | 20191 | fi |
5213506e RW |
20192 | rm -f core conftest.err conftest.$ac_objext \ |
20193 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20194 | fi |
db9f46a9 TG |
20195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20196 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20197 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20198 | |
f38a14ca TG |
20199 | cat >>confdefs.h <<_ACEOF |
20200 | #define HAVE_HYPOT 1 | |
20201 | _ACEOF | |
db9f46a9 TG |
20202 | |
20203 | fi | |
1409cd0b | 20204 | |
1409cd0b | 20205 | |
1409cd0b | 20206 | |
db9f46a9 TG |
20207 | |
20208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20209 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20210 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20211 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20212 | else |
db9f46a9 | 20213 | if test x$gcc_no_link = xyes; then |
22e05272 | 20214 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20215 | fi |
5213506e | 20216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20217 | /* end confdefs.h. */ |
20218 | ||
db9f46a9 TG |
20219 | #ifdef HAVE_COMPLEX_H |
20220 | #include <complex.h> | |
cc6d3bde | 20221 | #endif |
db9f46a9 TG |
20222 | #ifdef HAVE_MATH_H |
20223 | #include <math.h> | |
20224 | #endif | |
20225 | ||
20226 | int (*ptr)() = (int (*)())hypotl; | |
20227 | ||
cc6d3bde SK |
20228 | int |
20229 | main () | |
20230 | { | |
cc6d3bde SK |
20231 | return 0; |
20232 | } | |
db9f46a9 | 20233 | |
cc6d3bde | 20234 | _ACEOF |
5213506e | 20235 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20236 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20237 | else |
db9f46a9 | 20238 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20239 | fi |
5213506e RW |
20240 | rm -f core conftest.err conftest.$ac_objext \ |
20241 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20242 | fi |
db9f46a9 TG |
20243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20244 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20245 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20246 | |
f38a14ca TG |
20247 | cat >>confdefs.h <<_ACEOF |
20248 | #define HAVE_HYPOTL 1 | |
20249 | _ACEOF | |
cc6d3bde | 20250 | |
db9f46a9 | 20251 | fi |
cc6d3bde | 20252 | |
cc6d3bde | 20253 | |
db9f46a9 TG |
20254 | |
20255 | ||
20256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20257 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20258 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20259 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20260 | else |
db9f46a9 | 20261 | if test x$gcc_no_link = xyes; then |
22e05272 | 20262 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20263 | fi |
5213506e | 20264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20265 | /* end confdefs.h. */ |
20266 | ||
db9f46a9 TG |
20267 | #ifdef HAVE_COMPLEX_H |
20268 | #include <complex.h> | |
20269 | #endif | |
20270 | #ifdef HAVE_MATH_H | |
20271 | #include <math.h> | |
cc6d3bde | 20272 | #endif |
db9f46a9 TG |
20273 | |
20274 | int (*ptr)() = (int (*)())ldexpf; | |
20275 | ||
cc6d3bde SK |
20276 | int |
20277 | main () | |
20278 | { | |
cc6d3bde SK |
20279 | return 0; |
20280 | } | |
db9f46a9 | 20281 | |
cc6d3bde | 20282 | _ACEOF |
5213506e | 20283 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20284 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20285 | else |
db9f46a9 | 20286 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20287 | fi |
5213506e RW |
20288 | rm -f core conftest.err conftest.$ac_objext \ |
20289 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20290 | fi |
db9f46a9 TG |
20291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20292 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20293 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20294 | |
f38a14ca TG |
20295 | cat >>confdefs.h <<_ACEOF |
20296 | #define HAVE_LDEXPF 1 | |
20297 | _ACEOF | |
db9f46a9 TG |
20298 | |
20299 | fi | |
cc6d3bde | 20300 | |
cc6d3bde | 20301 | |
cc6d3bde | 20302 | |
db9f46a9 TG |
20303 | |
20304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20305 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20306 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20307 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20308 | else |
db9f46a9 | 20309 | if test x$gcc_no_link = xyes; then |
22e05272 | 20310 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20311 | fi |
5213506e | 20312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20313 | /* end confdefs.h. */ |
20314 | ||
db9f46a9 TG |
20315 | #ifdef HAVE_COMPLEX_H |
20316 | #include <complex.h> | |
cc6d3bde | 20317 | #endif |
db9f46a9 TG |
20318 | #ifdef HAVE_MATH_H |
20319 | #include <math.h> | |
20320 | #endif | |
20321 | ||
20322 | int (*ptr)() = (int (*)())ldexp; | |
20323 | ||
cc6d3bde SK |
20324 | int |
20325 | main () | |
20326 | { | |
cc6d3bde SK |
20327 | return 0; |
20328 | } | |
db9f46a9 | 20329 | |
cc6d3bde | 20330 | _ACEOF |
5213506e | 20331 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20332 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20333 | else |
db9f46a9 | 20334 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20335 | fi |
5213506e RW |
20336 | rm -f core conftest.err conftest.$ac_objext \ |
20337 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20338 | fi |
db9f46a9 TG |
20339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20340 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20341 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20342 | |
f38a14ca TG |
20343 | cat >>confdefs.h <<_ACEOF |
20344 | #define HAVE_LDEXP 1 | |
20345 | _ACEOF | |
db9f46a9 TG |
20346 | |
20347 | fi | |
20348 | ||
cc6d3bde | 20349 | |
cc6d3bde | 20350 | |
cc6d3bde | 20351 | |
db9f46a9 TG |
20352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20353 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20354 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20355 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20356 | else |
db9f46a9 | 20357 | if test x$gcc_no_link = xyes; then |
22e05272 | 20358 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20359 | fi |
5213506e | 20360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20361 | /* end confdefs.h. */ |
20362 | ||
db9f46a9 TG |
20363 | #ifdef HAVE_COMPLEX_H |
20364 | #include <complex.h> | |
20365 | #endif | |
20366 | #ifdef HAVE_MATH_H | |
20367 | #include <math.h> | |
1409cd0b | 20368 | #endif |
db9f46a9 TG |
20369 | |
20370 | int (*ptr)() = (int (*)())ldexpl; | |
20371 | ||
1409cd0b FXC |
20372 | int |
20373 | main () | |
20374 | { | |
1409cd0b FXC |
20375 | return 0; |
20376 | } | |
db9f46a9 | 20377 | |
1409cd0b | 20378 | _ACEOF |
5213506e | 20379 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20380 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20381 | else |
db9f46a9 | 20382 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20383 | fi |
5213506e RW |
20384 | rm -f core conftest.err conftest.$ac_objext \ |
20385 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20386 | fi |
db9f46a9 TG |
20387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20388 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20389 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20390 | |
f38a14ca TG |
20391 | cat >>confdefs.h <<_ACEOF |
20392 | #define HAVE_LDEXPL 1 | |
20393 | _ACEOF | |
db9f46a9 TG |
20394 | |
20395 | fi | |
1409cd0b | 20396 | |
1409cd0b | 20397 | |
1409cd0b | 20398 | |
db9f46a9 TG |
20399 | |
20400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20401 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20402 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20403 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20404 | else |
db9f46a9 | 20405 | if test x$gcc_no_link = xyes; then |
22e05272 | 20406 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20407 | fi |
5213506e | 20408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20409 | /* end confdefs.h. */ |
20410 | ||
db9f46a9 TG |
20411 | #ifdef HAVE_COMPLEX_H |
20412 | #include <complex.h> | |
1409cd0b | 20413 | #endif |
db9f46a9 TG |
20414 | #ifdef HAVE_MATH_H |
20415 | #include <math.h> | |
20416 | #endif | |
20417 | ||
20418 | int (*ptr)() = (int (*)())logf; | |
20419 | ||
1409cd0b FXC |
20420 | int |
20421 | main () | |
20422 | { | |
1409cd0b FXC |
20423 | return 0; |
20424 | } | |
db9f46a9 | 20425 | |
1409cd0b | 20426 | _ACEOF |
5213506e | 20427 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20428 | gcc_cv_math_func_logf=yes |
1409cd0b | 20429 | else |
db9f46a9 | 20430 | gcc_cv_math_func_logf=no |
1409cd0b | 20431 | fi |
5213506e RW |
20432 | rm -f core conftest.err conftest.$ac_objext \ |
20433 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20434 | fi |
db9f46a9 TG |
20435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20436 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20437 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20438 | |
f38a14ca TG |
20439 | cat >>confdefs.h <<_ACEOF |
20440 | #define HAVE_LOGF 1 | |
20441 | _ACEOF | |
1409cd0b | 20442 | |
db9f46a9 | 20443 | fi |
1409cd0b | 20444 | |
1409cd0b | 20445 | |
db9f46a9 TG |
20446 | |
20447 | ||
20448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20449 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20450 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20451 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20452 | else |
db9f46a9 | 20453 | if test x$gcc_no_link = xyes; then |
22e05272 | 20454 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20455 | fi |
5213506e | 20456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20457 | /* end confdefs.h. */ |
20458 | ||
db9f46a9 TG |
20459 | #ifdef HAVE_COMPLEX_H |
20460 | #include <complex.h> | |
20461 | #endif | |
20462 | #ifdef HAVE_MATH_H | |
20463 | #include <math.h> | |
1409cd0b | 20464 | #endif |
db9f46a9 TG |
20465 | |
20466 | int (*ptr)() = (int (*)())log; | |
20467 | ||
1409cd0b FXC |
20468 | int |
20469 | main () | |
20470 | { | |
1409cd0b FXC |
20471 | return 0; |
20472 | } | |
db9f46a9 | 20473 | |
1409cd0b | 20474 | _ACEOF |
5213506e | 20475 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20476 | gcc_cv_math_func_log=yes |
1409cd0b | 20477 | else |
db9f46a9 | 20478 | gcc_cv_math_func_log=no |
1409cd0b | 20479 | fi |
5213506e RW |
20480 | rm -f core conftest.err conftest.$ac_objext \ |
20481 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20482 | fi |
db9f46a9 TG |
20483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20484 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20485 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20486 | |
f38a14ca TG |
20487 | cat >>confdefs.h <<_ACEOF |
20488 | #define HAVE_LOG 1 | |
20489 | _ACEOF | |
db9f46a9 TG |
20490 | |
20491 | fi | |
1409cd0b | 20492 | |
1409cd0b | 20493 | |
1409cd0b | 20494 | |
db9f46a9 TG |
20495 | |
20496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20497 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20498 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20499 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20500 | else |
db9f46a9 | 20501 | if test x$gcc_no_link = xyes; then |
22e05272 | 20502 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20503 | fi |
5213506e | 20504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20505 | /* end confdefs.h. */ |
20506 | ||
db9f46a9 TG |
20507 | #ifdef HAVE_COMPLEX_H |
20508 | #include <complex.h> | |
1409cd0b | 20509 | #endif |
db9f46a9 TG |
20510 | #ifdef HAVE_MATH_H |
20511 | #include <math.h> | |
20512 | #endif | |
20513 | ||
20514 | int (*ptr)() = (int (*)())logl; | |
20515 | ||
1409cd0b FXC |
20516 | int |
20517 | main () | |
20518 | { | |
1409cd0b FXC |
20519 | return 0; |
20520 | } | |
db9f46a9 | 20521 | |
1409cd0b | 20522 | _ACEOF |
5213506e | 20523 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20524 | gcc_cv_math_func_logl=yes |
1409cd0b | 20525 | else |
db9f46a9 | 20526 | gcc_cv_math_func_logl=no |
1409cd0b | 20527 | fi |
5213506e RW |
20528 | rm -f core conftest.err conftest.$ac_objext \ |
20529 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20530 | fi |
db9f46a9 TG |
20531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20532 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20533 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20534 | |
f38a14ca TG |
20535 | cat >>confdefs.h <<_ACEOF |
20536 | #define HAVE_LOGL 1 | |
20537 | _ACEOF | |
db9f46a9 TG |
20538 | |
20539 | fi | |
20540 | ||
1409cd0b | 20541 | |
1409cd0b | 20542 | |
1409cd0b | 20543 | |
db9f46a9 TG |
20544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20545 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20546 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20547 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20548 | else |
db9f46a9 | 20549 | if test x$gcc_no_link = xyes; then |
22e05272 | 20550 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20551 | fi |
5213506e | 20552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20553 | /* end confdefs.h. */ |
20554 | ||
db9f46a9 TG |
20555 | #ifdef HAVE_COMPLEX_H |
20556 | #include <complex.h> | |
20557 | #endif | |
20558 | #ifdef HAVE_MATH_H | |
20559 | #include <math.h> | |
1409cd0b | 20560 | #endif |
db9f46a9 TG |
20561 | |
20562 | int (*ptr)() = (int (*)())clogf; | |
20563 | ||
1409cd0b FXC |
20564 | int |
20565 | main () | |
20566 | { | |
1409cd0b FXC |
20567 | return 0; |
20568 | } | |
db9f46a9 | 20569 | |
1409cd0b | 20570 | _ACEOF |
5213506e | 20571 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20572 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20573 | else |
db9f46a9 | 20574 | gcc_cv_math_func_clogf=no |
1409cd0b | 20575 | fi |
5213506e RW |
20576 | rm -f core conftest.err conftest.$ac_objext \ |
20577 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20578 | fi |
db9f46a9 TG |
20579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20580 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20581 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20582 | |
f38a14ca TG |
20583 | cat >>confdefs.h <<_ACEOF |
20584 | #define HAVE_CLOGF 1 | |
20585 | _ACEOF | |
db9f46a9 TG |
20586 | |
20587 | fi | |
1409cd0b | 20588 | |
1409cd0b | 20589 | |
1409cd0b | 20590 | |
db9f46a9 TG |
20591 | |
20592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20593 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20594 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 20595 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20596 | else |
db9f46a9 | 20597 | if test x$gcc_no_link = xyes; then |
22e05272 | 20598 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20599 | fi |
5213506e | 20600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20601 | /* end confdefs.h. */ |
20602 | ||
db9f46a9 TG |
20603 | #ifdef HAVE_COMPLEX_H |
20604 | #include <complex.h> | |
1409cd0b | 20605 | #endif |
db9f46a9 TG |
20606 | #ifdef HAVE_MATH_H |
20607 | #include <math.h> | |
20608 | #endif | |
20609 | ||
20610 | int (*ptr)() = (int (*)())clog; | |
20611 | ||
1409cd0b FXC |
20612 | int |
20613 | main () | |
20614 | { | |
1409cd0b FXC |
20615 | return 0; |
20616 | } | |
db9f46a9 | 20617 | |
1409cd0b | 20618 | _ACEOF |
5213506e | 20619 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20620 | gcc_cv_math_func_clog=yes |
1409cd0b | 20621 | else |
db9f46a9 | 20622 | gcc_cv_math_func_clog=no |
1409cd0b | 20623 | fi |
5213506e RW |
20624 | rm -f core conftest.err conftest.$ac_objext \ |
20625 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20626 | fi |
db9f46a9 TG |
20627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20628 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20629 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 20630 | |
f38a14ca TG |
20631 | cat >>confdefs.h <<_ACEOF |
20632 | #define HAVE_CLOG 1 | |
20633 | _ACEOF | |
1409cd0b | 20634 | |
db9f46a9 | 20635 | fi |
1409cd0b | 20636 | |
1409cd0b | 20637 | |
db9f46a9 TG |
20638 | |
20639 | ||
20640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20641 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 20642 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 20643 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20644 | else |
db9f46a9 | 20645 | if test x$gcc_no_link = xyes; then |
22e05272 | 20646 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20647 | fi |
5213506e | 20648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20649 | /* end confdefs.h. */ |
20650 | ||
db9f46a9 TG |
20651 | #ifdef HAVE_COMPLEX_H |
20652 | #include <complex.h> | |
20653 | #endif | |
20654 | #ifdef HAVE_MATH_H | |
20655 | #include <math.h> | |
1409cd0b | 20656 | #endif |
db9f46a9 TG |
20657 | |
20658 | int (*ptr)() = (int (*)())clogl; | |
20659 | ||
1409cd0b FXC |
20660 | int |
20661 | main () | |
20662 | { | |
1409cd0b FXC |
20663 | return 0; |
20664 | } | |
db9f46a9 | 20665 | |
1409cd0b | 20666 | _ACEOF |
5213506e | 20667 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20668 | gcc_cv_math_func_clogl=yes |
1409cd0b | 20669 | else |
db9f46a9 | 20670 | gcc_cv_math_func_clogl=no |
1409cd0b | 20671 | fi |
5213506e RW |
20672 | rm -f core conftest.err conftest.$ac_objext \ |
20673 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20674 | fi |
db9f46a9 TG |
20675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20676 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20677 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 20678 | |
f38a14ca TG |
20679 | cat >>confdefs.h <<_ACEOF |
20680 | #define HAVE_CLOGL 1 | |
20681 | _ACEOF | |
db9f46a9 TG |
20682 | |
20683 | fi | |
1409cd0b | 20684 | |
1409cd0b | 20685 | |
1409cd0b | 20686 | |
db9f46a9 TG |
20687 | |
20688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
20689 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 20690 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 20691 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20692 | else |
db9f46a9 | 20693 | if test x$gcc_no_link = xyes; then |
22e05272 | 20694 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20695 | fi |
5213506e | 20696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20697 | /* end confdefs.h. */ |
20698 | ||
db9f46a9 TG |
20699 | #ifdef HAVE_COMPLEX_H |
20700 | #include <complex.h> | |
1409cd0b | 20701 | #endif |
db9f46a9 TG |
20702 | #ifdef HAVE_MATH_H |
20703 | #include <math.h> | |
20704 | #endif | |
20705 | ||
20706 | int (*ptr)() = (int (*)())log10f; | |
20707 | ||
1409cd0b FXC |
20708 | int |
20709 | main () | |
20710 | { | |
1409cd0b FXC |
20711 | return 0; |
20712 | } | |
db9f46a9 | 20713 | |
1409cd0b | 20714 | _ACEOF |
5213506e | 20715 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20716 | gcc_cv_math_func_log10f=yes |
1409cd0b | 20717 | else |
db9f46a9 | 20718 | gcc_cv_math_func_log10f=no |
1409cd0b | 20719 | fi |
5213506e RW |
20720 | rm -f core conftest.err conftest.$ac_objext \ |
20721 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20722 | fi |
db9f46a9 TG |
20723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
20724 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
20725 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 20726 | |
f38a14ca TG |
20727 | cat >>confdefs.h <<_ACEOF |
20728 | #define HAVE_LOG10F 1 | |
20729 | _ACEOF | |
db9f46a9 TG |
20730 | |
20731 | fi | |
20732 | ||
1409cd0b | 20733 | |
1409cd0b | 20734 | |
1409cd0b | 20735 | |
db9f46a9 TG |
20736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
20737 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 20738 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 20739 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20740 | else |
db9f46a9 | 20741 | if test x$gcc_no_link = xyes; then |
22e05272 | 20742 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20743 | fi |
5213506e | 20744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20745 | /* end confdefs.h. */ |
20746 | ||
db9f46a9 TG |
20747 | #ifdef HAVE_COMPLEX_H |
20748 | #include <complex.h> | |
20749 | #endif | |
20750 | #ifdef HAVE_MATH_H | |
20751 | #include <math.h> | |
1409cd0b | 20752 | #endif |
db9f46a9 TG |
20753 | |
20754 | int (*ptr)() = (int (*)())log10; | |
20755 | ||
1409cd0b FXC |
20756 | int |
20757 | main () | |
20758 | { | |
1409cd0b FXC |
20759 | return 0; |
20760 | } | |
db9f46a9 | 20761 | |
1409cd0b | 20762 | _ACEOF |
5213506e | 20763 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20764 | gcc_cv_math_func_log10=yes |
1409cd0b | 20765 | else |
db9f46a9 | 20766 | gcc_cv_math_func_log10=no |
1409cd0b | 20767 | fi |
5213506e RW |
20768 | rm -f core conftest.err conftest.$ac_objext \ |
20769 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20770 | fi |
db9f46a9 TG |
20771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
20772 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
20773 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 20774 | |
f38a14ca TG |
20775 | cat >>confdefs.h <<_ACEOF |
20776 | #define HAVE_LOG10 1 | |
20777 | _ACEOF | |
db9f46a9 TG |
20778 | |
20779 | fi | |
1409cd0b | 20780 | |
1409cd0b | 20781 | |
1409cd0b | 20782 | |
db9f46a9 TG |
20783 | |
20784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
20785 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 20786 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 20787 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20788 | else |
db9f46a9 | 20789 | if test x$gcc_no_link = xyes; then |
22e05272 | 20790 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20791 | fi |
5213506e | 20792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20793 | /* end confdefs.h. */ |
20794 | ||
db9f46a9 TG |
20795 | #ifdef HAVE_COMPLEX_H |
20796 | #include <complex.h> | |
1409cd0b | 20797 | #endif |
db9f46a9 TG |
20798 | #ifdef HAVE_MATH_H |
20799 | #include <math.h> | |
20800 | #endif | |
20801 | ||
20802 | int (*ptr)() = (int (*)())log10l; | |
20803 | ||
1409cd0b FXC |
20804 | int |
20805 | main () | |
20806 | { | |
1409cd0b FXC |
20807 | return 0; |
20808 | } | |
db9f46a9 | 20809 | |
1409cd0b | 20810 | _ACEOF |
5213506e | 20811 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20812 | gcc_cv_math_func_log10l=yes |
1409cd0b | 20813 | else |
db9f46a9 | 20814 | gcc_cv_math_func_log10l=no |
1409cd0b | 20815 | fi |
5213506e RW |
20816 | rm -f core conftest.err conftest.$ac_objext \ |
20817 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20818 | fi |
db9f46a9 TG |
20819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
20820 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
20821 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 20822 | |
f38a14ca TG |
20823 | cat >>confdefs.h <<_ACEOF |
20824 | #define HAVE_LOG10L 1 | |
20825 | _ACEOF | |
1409cd0b | 20826 | |
db9f46a9 | 20827 | fi |
1409cd0b | 20828 | |
1409cd0b | 20829 | |
db9f46a9 TG |
20830 | |
20831 | ||
20832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
20833 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 20834 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 20835 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20836 | else |
db9f46a9 | 20837 | if test x$gcc_no_link = xyes; then |
22e05272 | 20838 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20839 | fi |
5213506e | 20840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20841 | /* end confdefs.h. */ |
20842 | ||
db9f46a9 TG |
20843 | #ifdef HAVE_COMPLEX_H |
20844 | #include <complex.h> | |
20845 | #endif | |
20846 | #ifdef HAVE_MATH_H | |
20847 | #include <math.h> | |
1409cd0b | 20848 | #endif |
db9f46a9 TG |
20849 | |
20850 | int (*ptr)() = (int (*)())clog10f; | |
20851 | ||
1409cd0b FXC |
20852 | int |
20853 | main () | |
20854 | { | |
1409cd0b FXC |
20855 | return 0; |
20856 | } | |
db9f46a9 | 20857 | |
1409cd0b | 20858 | _ACEOF |
5213506e | 20859 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20860 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 20861 | else |
db9f46a9 | 20862 | gcc_cv_math_func_clog10f=no |
1409cd0b | 20863 | fi |
5213506e RW |
20864 | rm -f core conftest.err conftest.$ac_objext \ |
20865 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20866 | fi |
db9f46a9 TG |
20867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
20868 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
20869 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 20870 | |
f38a14ca TG |
20871 | cat >>confdefs.h <<_ACEOF |
20872 | #define HAVE_CLOG10F 1 | |
20873 | _ACEOF | |
db9f46a9 TG |
20874 | |
20875 | fi | |
1409cd0b | 20876 | |
1409cd0b | 20877 | |
1409cd0b | 20878 | |
db9f46a9 TG |
20879 | |
20880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
20881 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 20882 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 20883 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20884 | else |
db9f46a9 | 20885 | if test x$gcc_no_link = xyes; then |
22e05272 | 20886 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20887 | fi |
5213506e | 20888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20889 | /* end confdefs.h. */ |
20890 | ||
db9f46a9 TG |
20891 | #ifdef HAVE_COMPLEX_H |
20892 | #include <complex.h> | |
1409cd0b | 20893 | #endif |
db9f46a9 TG |
20894 | #ifdef HAVE_MATH_H |
20895 | #include <math.h> | |
20896 | #endif | |
20897 | ||
20898 | int (*ptr)() = (int (*)())clog10; | |
20899 | ||
1409cd0b FXC |
20900 | int |
20901 | main () | |
20902 | { | |
5213506e RW |
20903 | return 0; |
20904 | } | |
db9f46a9 | 20905 | |
5213506e RW |
20906 | _ACEOF |
20907 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 20908 | gcc_cv_math_func_clog10=yes |
1409cd0b | 20909 | else |
db9f46a9 | 20910 | gcc_cv_math_func_clog10=no |
1409cd0b | 20911 | fi |
5213506e RW |
20912 | rm -f core conftest.err conftest.$ac_objext \ |
20913 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20914 | fi |
db9f46a9 TG |
20915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
20916 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
20917 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 20918 | |
f38a14ca TG |
20919 | cat >>confdefs.h <<_ACEOF |
20920 | #define HAVE_CLOG10 1 | |
20921 | _ACEOF | |
db9f46a9 TG |
20922 | |
20923 | fi | |
20924 | ||
1409cd0b | 20925 | |
1409cd0b | 20926 | |
1409cd0b | 20927 | |
db9f46a9 TG |
20928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
20929 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 20930 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 20931 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20932 | else |
db9f46a9 | 20933 | if test x$gcc_no_link = xyes; then |
22e05272 | 20934 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20935 | fi |
5213506e | 20936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20937 | /* end confdefs.h. */ |
20938 | ||
db9f46a9 TG |
20939 | #ifdef HAVE_COMPLEX_H |
20940 | #include <complex.h> | |
20941 | #endif | |
20942 | #ifdef HAVE_MATH_H | |
20943 | #include <math.h> | |
1409cd0b | 20944 | #endif |
db9f46a9 TG |
20945 | |
20946 | int (*ptr)() = (int (*)())clog10l; | |
20947 | ||
1409cd0b FXC |
20948 | int |
20949 | main () | |
20950 | { | |
1409cd0b FXC |
20951 | return 0; |
20952 | } | |
db9f46a9 | 20953 | |
1409cd0b | 20954 | _ACEOF |
5213506e | 20955 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20956 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 20957 | else |
db9f46a9 | 20958 | gcc_cv_math_func_clog10l=no |
1409cd0b | 20959 | fi |
5213506e RW |
20960 | rm -f core conftest.err conftest.$ac_objext \ |
20961 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20962 | fi |
db9f46a9 TG |
20963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
20964 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
20965 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 20966 | |
f38a14ca TG |
20967 | cat >>confdefs.h <<_ACEOF |
20968 | #define HAVE_CLOG10L 1 | |
20969 | _ACEOF | |
db9f46a9 TG |
20970 | |
20971 | fi | |
1409cd0b | 20972 | |
1409cd0b | 20973 | |
1409cd0b | 20974 | |
db9f46a9 TG |
20975 | |
20976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
20977 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 20978 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 20979 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20980 | else |
db9f46a9 | 20981 | if test x$gcc_no_link = xyes; then |
22e05272 | 20982 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20983 | fi |
5213506e | 20984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20985 | /* end confdefs.h. */ |
20986 | ||
db9f46a9 TG |
20987 | #ifdef HAVE_COMPLEX_H |
20988 | #include <complex.h> | |
1409cd0b | 20989 | #endif |
db9f46a9 TG |
20990 | #ifdef HAVE_MATH_H |
20991 | #include <math.h> | |
20992 | #endif | |
20993 | ||
20994 | int (*ptr)() = (int (*)())nextafterf; | |
20995 | ||
1409cd0b FXC |
20996 | int |
20997 | main () | |
20998 | { | |
1409cd0b FXC |
20999 | return 0; |
21000 | } | |
db9f46a9 | 21001 | |
1409cd0b | 21002 | _ACEOF |
5213506e | 21003 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21004 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21005 | else |
db9f46a9 | 21006 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21007 | fi |
5213506e RW |
21008 | rm -f core conftest.err conftest.$ac_objext \ |
21009 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21010 | fi |
db9f46a9 TG |
21011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21012 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21013 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21014 | |
f38a14ca TG |
21015 | cat >>confdefs.h <<_ACEOF |
21016 | #define HAVE_NEXTAFTERF 1 | |
21017 | _ACEOF | |
1409cd0b | 21018 | |
db9f46a9 | 21019 | fi |
1409cd0b | 21020 | |
1409cd0b | 21021 | |
db9f46a9 TG |
21022 | |
21023 | ||
21024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21025 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21026 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21027 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21028 | else |
db9f46a9 | 21029 | if test x$gcc_no_link = xyes; then |
22e05272 | 21030 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21031 | fi |
5213506e | 21032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21033 | /* end confdefs.h. */ |
21034 | ||
db9f46a9 TG |
21035 | #ifdef HAVE_COMPLEX_H |
21036 | #include <complex.h> | |
21037 | #endif | |
21038 | #ifdef HAVE_MATH_H | |
21039 | #include <math.h> | |
1409cd0b | 21040 | #endif |
db9f46a9 TG |
21041 | |
21042 | int (*ptr)() = (int (*)())nextafter; | |
21043 | ||
1409cd0b FXC |
21044 | int |
21045 | main () | |
21046 | { | |
1409cd0b FXC |
21047 | return 0; |
21048 | } | |
db9f46a9 | 21049 | |
1409cd0b | 21050 | _ACEOF |
5213506e | 21051 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21052 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21053 | else |
db9f46a9 | 21054 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21055 | fi |
5213506e RW |
21056 | rm -f core conftest.err conftest.$ac_objext \ |
21057 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21058 | fi |
db9f46a9 TG |
21059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21060 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21061 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21062 | |
f38a14ca TG |
21063 | cat >>confdefs.h <<_ACEOF |
21064 | #define HAVE_NEXTAFTER 1 | |
21065 | _ACEOF | |
db9f46a9 TG |
21066 | |
21067 | fi | |
1409cd0b | 21068 | |
1409cd0b | 21069 | |
1409cd0b | 21070 | |
db9f46a9 TG |
21071 | |
21072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21073 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21074 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21075 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21076 | else |
db9f46a9 | 21077 | if test x$gcc_no_link = xyes; then |
22e05272 | 21078 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21079 | fi |
5213506e | 21080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21081 | /* end confdefs.h. */ |
21082 | ||
db9f46a9 TG |
21083 | #ifdef HAVE_COMPLEX_H |
21084 | #include <complex.h> | |
1409cd0b | 21085 | #endif |
db9f46a9 TG |
21086 | #ifdef HAVE_MATH_H |
21087 | #include <math.h> | |
21088 | #endif | |
21089 | ||
21090 | int (*ptr)() = (int (*)())nextafterl; | |
21091 | ||
1409cd0b FXC |
21092 | int |
21093 | main () | |
21094 | { | |
1409cd0b FXC |
21095 | return 0; |
21096 | } | |
db9f46a9 | 21097 | |
1409cd0b | 21098 | _ACEOF |
5213506e | 21099 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21100 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21101 | else |
db9f46a9 | 21102 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21103 | fi |
5213506e RW |
21104 | rm -f core conftest.err conftest.$ac_objext \ |
21105 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21106 | fi |
db9f46a9 TG |
21107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21108 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21109 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21110 | |
f38a14ca TG |
21111 | cat >>confdefs.h <<_ACEOF |
21112 | #define HAVE_NEXTAFTERL 1 | |
21113 | _ACEOF | |
db9f46a9 TG |
21114 | |
21115 | fi | |
21116 | ||
1409cd0b | 21117 | |
1409cd0b | 21118 | |
1409cd0b | 21119 | |
db9f46a9 TG |
21120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21121 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21122 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21123 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21124 | else |
db9f46a9 | 21125 | if test x$gcc_no_link = xyes; then |
22e05272 | 21126 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21127 | fi |
5213506e | 21128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21129 | /* end confdefs.h. */ |
21130 | ||
db9f46a9 TG |
21131 | #ifdef HAVE_COMPLEX_H |
21132 | #include <complex.h> | |
21133 | #endif | |
21134 | #ifdef HAVE_MATH_H | |
21135 | #include <math.h> | |
1409cd0b | 21136 | #endif |
db9f46a9 TG |
21137 | |
21138 | int (*ptr)() = (int (*)())powf; | |
21139 | ||
1409cd0b FXC |
21140 | int |
21141 | main () | |
21142 | { | |
1409cd0b FXC |
21143 | return 0; |
21144 | } | |
db9f46a9 | 21145 | |
1409cd0b | 21146 | _ACEOF |
5213506e | 21147 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21148 | gcc_cv_math_func_powf=yes |
1409cd0b | 21149 | else |
db9f46a9 | 21150 | gcc_cv_math_func_powf=no |
1409cd0b | 21151 | fi |
5213506e RW |
21152 | rm -f core conftest.err conftest.$ac_objext \ |
21153 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21154 | fi |
db9f46a9 TG |
21155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21156 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21157 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21158 | |
f38a14ca TG |
21159 | cat >>confdefs.h <<_ACEOF |
21160 | #define HAVE_POWF 1 | |
21161 | _ACEOF | |
db9f46a9 TG |
21162 | |
21163 | fi | |
1409cd0b | 21164 | |
1409cd0b | 21165 | |
1409cd0b | 21166 | |
db9f46a9 TG |
21167 | |
21168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21169 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21170 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21171 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21172 | else |
db9f46a9 | 21173 | if test x$gcc_no_link = xyes; then |
22e05272 | 21174 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21175 | fi |
5213506e | 21176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21177 | /* end confdefs.h. */ |
21178 | ||
db9f46a9 TG |
21179 | #ifdef HAVE_COMPLEX_H |
21180 | #include <complex.h> | |
1409cd0b | 21181 | #endif |
db9f46a9 TG |
21182 | #ifdef HAVE_MATH_H |
21183 | #include <math.h> | |
21184 | #endif | |
21185 | ||
21186 | int (*ptr)() = (int (*)())pow; | |
21187 | ||
1409cd0b FXC |
21188 | int |
21189 | main () | |
21190 | { | |
1409cd0b FXC |
21191 | return 0; |
21192 | } | |
db9f46a9 | 21193 | |
1409cd0b | 21194 | _ACEOF |
5213506e | 21195 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21196 | gcc_cv_math_func_pow=yes |
1409cd0b | 21197 | else |
db9f46a9 | 21198 | gcc_cv_math_func_pow=no |
1409cd0b | 21199 | fi |
5213506e RW |
21200 | rm -f core conftest.err conftest.$ac_objext \ |
21201 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21202 | fi |
db9f46a9 TG |
21203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21204 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21205 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21206 | |
f38a14ca TG |
21207 | cat >>confdefs.h <<_ACEOF |
21208 | #define HAVE_POW 1 | |
21209 | _ACEOF | |
1409cd0b | 21210 | |
db9f46a9 | 21211 | fi |
1409cd0b | 21212 | |
1409cd0b | 21213 | |
db9f46a9 TG |
21214 | |
21215 | ||
db9f46a9 TG |
21216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21217 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21218 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21219 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21220 | else |
db9f46a9 | 21221 | if test x$gcc_no_link = xyes; then |
22e05272 | 21222 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21223 | fi |
5213506e | 21224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21225 | /* end confdefs.h. */ |
21226 | ||
db9f46a9 TG |
21227 | #ifdef HAVE_COMPLEX_H |
21228 | #include <complex.h> | |
1409cd0b | 21229 | #endif |
db9f46a9 TG |
21230 | #ifdef HAVE_MATH_H |
21231 | #include <math.h> | |
21232 | #endif | |
21233 | ||
21234 | int (*ptr)() = (int (*)())cpowf; | |
21235 | ||
1409cd0b FXC |
21236 | int |
21237 | main () | |
21238 | { | |
1409cd0b FXC |
21239 | return 0; |
21240 | } | |
db9f46a9 | 21241 | |
1409cd0b | 21242 | _ACEOF |
5213506e | 21243 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21244 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21245 | else |
db9f46a9 | 21246 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21247 | fi |
5213506e RW |
21248 | rm -f core conftest.err conftest.$ac_objext \ |
21249 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21250 | fi |
db9f46a9 TG |
21251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21252 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21253 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21254 | |
f38a14ca TG |
21255 | cat >>confdefs.h <<_ACEOF |
21256 | #define HAVE_CPOWF 1 | |
21257 | _ACEOF | |
db9f46a9 TG |
21258 | |
21259 | fi | |
21260 | ||
1409cd0b | 21261 | |
1409cd0b | 21262 | |
1409cd0b | 21263 | |
db9f46a9 TG |
21264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21265 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21266 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21267 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21268 | else |
db9f46a9 | 21269 | if test x$gcc_no_link = xyes; then |
22e05272 | 21270 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21271 | fi |
5213506e | 21272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21273 | /* end confdefs.h. */ |
21274 | ||
db9f46a9 TG |
21275 | #ifdef HAVE_COMPLEX_H |
21276 | #include <complex.h> | |
21277 | #endif | |
21278 | #ifdef HAVE_MATH_H | |
21279 | #include <math.h> | |
1409cd0b | 21280 | #endif |
db9f46a9 TG |
21281 | |
21282 | int (*ptr)() = (int (*)())cpow; | |
21283 | ||
1409cd0b FXC |
21284 | int |
21285 | main () | |
21286 | { | |
1409cd0b FXC |
21287 | return 0; |
21288 | } | |
db9f46a9 | 21289 | |
1409cd0b | 21290 | _ACEOF |
5213506e | 21291 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21292 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21293 | else |
db9f46a9 | 21294 | gcc_cv_math_func_cpow=no |
1409cd0b | 21295 | fi |
5213506e RW |
21296 | rm -f core conftest.err conftest.$ac_objext \ |
21297 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21298 | fi |
db9f46a9 TG |
21299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21300 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21301 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21302 | |
f38a14ca TG |
21303 | cat >>confdefs.h <<_ACEOF |
21304 | #define HAVE_CPOW 1 | |
21305 | _ACEOF | |
db9f46a9 TG |
21306 | |
21307 | fi | |
1409cd0b | 21308 | |
1409cd0b | 21309 | |
1409cd0b | 21310 | |
db9f46a9 TG |
21311 | |
21312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21313 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21314 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21315 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21316 | else |
db9f46a9 | 21317 | if test x$gcc_no_link = xyes; then |
22e05272 | 21318 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21319 | fi |
5213506e | 21320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21321 | /* end confdefs.h. */ |
21322 | ||
db9f46a9 TG |
21323 | #ifdef HAVE_COMPLEX_H |
21324 | #include <complex.h> | |
1409cd0b | 21325 | #endif |
db9f46a9 TG |
21326 | #ifdef HAVE_MATH_H |
21327 | #include <math.h> | |
21328 | #endif | |
21329 | ||
21330 | int (*ptr)() = (int (*)())cpowl; | |
21331 | ||
1409cd0b FXC |
21332 | int |
21333 | main () | |
21334 | { | |
1409cd0b FXC |
21335 | return 0; |
21336 | } | |
db9f46a9 | 21337 | |
1409cd0b | 21338 | _ACEOF |
5213506e | 21339 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21340 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21341 | else |
db9f46a9 | 21342 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21343 | fi |
5213506e RW |
21344 | rm -f core conftest.err conftest.$ac_objext \ |
21345 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21346 | fi |
db9f46a9 TG |
21347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21348 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21349 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21350 | |
f38a14ca TG |
21351 | cat >>confdefs.h <<_ACEOF |
21352 | #define HAVE_CPOWL 1 | |
21353 | _ACEOF | |
1409cd0b | 21354 | |
db9f46a9 | 21355 | fi |
1409cd0b | 21356 | |
1409cd0b | 21357 | |
db9f46a9 TG |
21358 | |
21359 | ||
21360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21361 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21362 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21363 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21364 | else |
db9f46a9 | 21365 | if test x$gcc_no_link = xyes; then |
22e05272 | 21366 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21367 | fi |
5213506e | 21368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21369 | /* end confdefs.h. */ |
21370 | ||
db9f46a9 TG |
21371 | #ifdef HAVE_COMPLEX_H |
21372 | #include <complex.h> | |
21373 | #endif | |
21374 | #ifdef HAVE_MATH_H | |
21375 | #include <math.h> | |
1409cd0b | 21376 | #endif |
db9f46a9 TG |
21377 | |
21378 | int (*ptr)() = (int (*)())roundf; | |
21379 | ||
1409cd0b FXC |
21380 | int |
21381 | main () | |
21382 | { | |
1409cd0b FXC |
21383 | return 0; |
21384 | } | |
db9f46a9 | 21385 | |
1409cd0b | 21386 | _ACEOF |
5213506e | 21387 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21388 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21389 | else |
db9f46a9 | 21390 | gcc_cv_math_func_roundf=no |
1409cd0b | 21391 | fi |
5213506e RW |
21392 | rm -f core conftest.err conftest.$ac_objext \ |
21393 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21394 | fi |
db9f46a9 TG |
21395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21396 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21397 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21398 | |
f38a14ca TG |
21399 | cat >>confdefs.h <<_ACEOF |
21400 | #define HAVE_ROUNDF 1 | |
21401 | _ACEOF | |
db9f46a9 TG |
21402 | |
21403 | fi | |
1409cd0b | 21404 | |
1409cd0b | 21405 | |
1409cd0b | 21406 | |
db9f46a9 TG |
21407 | |
21408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21409 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21410 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21411 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21412 | else |
db9f46a9 | 21413 | if test x$gcc_no_link = xyes; then |
22e05272 | 21414 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21415 | fi |
5213506e | 21416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21417 | /* end confdefs.h. */ |
21418 | ||
db9f46a9 TG |
21419 | #ifdef HAVE_COMPLEX_H |
21420 | #include <complex.h> | |
1409cd0b | 21421 | #endif |
db9f46a9 TG |
21422 | #ifdef HAVE_MATH_H |
21423 | #include <math.h> | |
21424 | #endif | |
21425 | ||
21426 | int (*ptr)() = (int (*)())round; | |
21427 | ||
1409cd0b FXC |
21428 | int |
21429 | main () | |
21430 | { | |
1409cd0b FXC |
21431 | return 0; |
21432 | } | |
db9f46a9 | 21433 | |
1409cd0b | 21434 | _ACEOF |
5213506e | 21435 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21436 | gcc_cv_math_func_round=yes |
1409cd0b | 21437 | else |
db9f46a9 | 21438 | gcc_cv_math_func_round=no |
1409cd0b | 21439 | fi |
5213506e RW |
21440 | rm -f core conftest.err conftest.$ac_objext \ |
21441 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21442 | fi |
db9f46a9 TG |
21443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21444 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21445 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21446 | |
f38a14ca TG |
21447 | cat >>confdefs.h <<_ACEOF |
21448 | #define HAVE_ROUND 1 | |
21449 | _ACEOF | |
db9f46a9 TG |
21450 | |
21451 | fi | |
21452 | ||
1409cd0b | 21453 | |
1409cd0b | 21454 | |
1409cd0b | 21455 | |
db9f46a9 TG |
21456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21457 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21458 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21459 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21460 | else |
db9f46a9 | 21461 | if test x$gcc_no_link = xyes; then |
22e05272 | 21462 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21463 | fi |
5213506e | 21464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21465 | /* end confdefs.h. */ |
21466 | ||
db9f46a9 TG |
21467 | #ifdef HAVE_COMPLEX_H |
21468 | #include <complex.h> | |
21469 | #endif | |
21470 | #ifdef HAVE_MATH_H | |
21471 | #include <math.h> | |
94f548c2 | 21472 | #endif |
db9f46a9 TG |
21473 | |
21474 | int (*ptr)() = (int (*)())roundl; | |
21475 | ||
94f548c2 FXC |
21476 | int |
21477 | main () | |
21478 | { | |
94f548c2 FXC |
21479 | return 0; |
21480 | } | |
db9f46a9 | 21481 | |
94f548c2 | 21482 | _ACEOF |
5213506e | 21483 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21484 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21485 | else |
db9f46a9 | 21486 | gcc_cv_math_func_roundl=no |
94f548c2 | 21487 | fi |
5213506e RW |
21488 | rm -f core conftest.err conftest.$ac_objext \ |
21489 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21490 | fi |
db9f46a9 TG |
21491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21492 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21493 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21494 | |
f38a14ca TG |
21495 | cat >>confdefs.h <<_ACEOF |
21496 | #define HAVE_ROUNDL 1 | |
21497 | _ACEOF | |
db9f46a9 TG |
21498 | |
21499 | fi | |
94f548c2 | 21500 | |
94f548c2 | 21501 | |
94f548c2 | 21502 | |
db9f46a9 TG |
21503 | |
21504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21505 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21506 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21507 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21508 | else |
db9f46a9 | 21509 | if test x$gcc_no_link = xyes; then |
22e05272 | 21510 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21511 | fi |
5213506e | 21512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21513 | /* end confdefs.h. */ |
21514 | ||
db9f46a9 TG |
21515 | #ifdef HAVE_COMPLEX_H |
21516 | #include <complex.h> | |
94f548c2 | 21517 | #endif |
db9f46a9 TG |
21518 | #ifdef HAVE_MATH_H |
21519 | #include <math.h> | |
21520 | #endif | |
21521 | ||
21522 | int (*ptr)() = (int (*)())lroundf; | |
21523 | ||
94f548c2 FXC |
21524 | int |
21525 | main () | |
21526 | { | |
94f548c2 FXC |
21527 | return 0; |
21528 | } | |
db9f46a9 | 21529 | |
94f548c2 | 21530 | _ACEOF |
5213506e | 21531 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21532 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21533 | else |
db9f46a9 | 21534 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21535 | fi |
5213506e RW |
21536 | rm -f core conftest.err conftest.$ac_objext \ |
21537 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21538 | fi |
db9f46a9 TG |
21539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21540 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21541 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21542 | |
f38a14ca TG |
21543 | cat >>confdefs.h <<_ACEOF |
21544 | #define HAVE_LROUNDF 1 | |
21545 | _ACEOF | |
94f548c2 | 21546 | |
db9f46a9 | 21547 | fi |
94f548c2 | 21548 | |
94f548c2 | 21549 | |
db9f46a9 TG |
21550 | |
21551 | ||
21552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21553 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21554 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21555 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21556 | else |
db9f46a9 | 21557 | if test x$gcc_no_link = xyes; then |
22e05272 | 21558 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21559 | fi |
5213506e | 21560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21561 | /* end confdefs.h. */ |
21562 | ||
db9f46a9 TG |
21563 | #ifdef HAVE_COMPLEX_H |
21564 | #include <complex.h> | |
21565 | #endif | |
21566 | #ifdef HAVE_MATH_H | |
21567 | #include <math.h> | |
94f548c2 | 21568 | #endif |
db9f46a9 TG |
21569 | |
21570 | int (*ptr)() = (int (*)())lround; | |
21571 | ||
94f548c2 FXC |
21572 | int |
21573 | main () | |
21574 | { | |
94f548c2 FXC |
21575 | return 0; |
21576 | } | |
db9f46a9 | 21577 | |
94f548c2 | 21578 | _ACEOF |
5213506e | 21579 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21580 | gcc_cv_math_func_lround=yes |
94f548c2 | 21581 | else |
db9f46a9 | 21582 | gcc_cv_math_func_lround=no |
94f548c2 | 21583 | fi |
5213506e RW |
21584 | rm -f core conftest.err conftest.$ac_objext \ |
21585 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21586 | fi |
db9f46a9 TG |
21587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21588 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21589 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21590 | |
f38a14ca TG |
21591 | cat >>confdefs.h <<_ACEOF |
21592 | #define HAVE_LROUND 1 | |
21593 | _ACEOF | |
db9f46a9 TG |
21594 | |
21595 | fi | |
21596 | ||
94f548c2 | 21597 | |
94f548c2 | 21598 | |
94f548c2 | 21599 | |
db9f46a9 TG |
21600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21601 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 21602 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 21603 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21604 | else |
db9f46a9 | 21605 | if test x$gcc_no_link = xyes; then |
22e05272 | 21606 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21607 | fi |
5213506e | 21608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21609 | /* end confdefs.h. */ |
21610 | ||
db9f46a9 TG |
21611 | #ifdef HAVE_COMPLEX_H |
21612 | #include <complex.h> | |
21613 | #endif | |
21614 | #ifdef HAVE_MATH_H | |
21615 | #include <math.h> | |
94f548c2 | 21616 | #endif |
db9f46a9 TG |
21617 | |
21618 | int (*ptr)() = (int (*)())lroundl; | |
21619 | ||
94f548c2 FXC |
21620 | int |
21621 | main () | |
21622 | { | |
94f548c2 FXC |
21623 | return 0; |
21624 | } | |
db9f46a9 | 21625 | |
94f548c2 | 21626 | _ACEOF |
5213506e | 21627 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21628 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 21629 | else |
db9f46a9 | 21630 | gcc_cv_math_func_lroundl=no |
94f548c2 | 21631 | fi |
5213506e RW |
21632 | rm -f core conftest.err conftest.$ac_objext \ |
21633 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21634 | fi |
db9f46a9 TG |
21635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21636 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21637 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 21638 | |
f38a14ca TG |
21639 | cat >>confdefs.h <<_ACEOF |
21640 | #define HAVE_LROUNDL 1 | |
21641 | _ACEOF | |
94f548c2 | 21642 | |
db9f46a9 | 21643 | fi |
94f548c2 | 21644 | |
94f548c2 | 21645 | |
db9f46a9 TG |
21646 | |
21647 | ||
21648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21649 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 21650 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 21651 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21652 | else |
db9f46a9 | 21653 | if test x$gcc_no_link = xyes; then |
22e05272 | 21654 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21655 | fi |
5213506e | 21656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21657 | /* end confdefs.h. */ |
21658 | ||
db9f46a9 TG |
21659 | #ifdef HAVE_COMPLEX_H |
21660 | #include <complex.h> | |
94f548c2 | 21661 | #endif |
db9f46a9 TG |
21662 | #ifdef HAVE_MATH_H |
21663 | #include <math.h> | |
21664 | #endif | |
21665 | ||
21666 | int (*ptr)() = (int (*)())llroundf; | |
21667 | ||
94f548c2 FXC |
21668 | int |
21669 | main () | |
21670 | { | |
94f548c2 FXC |
21671 | return 0; |
21672 | } | |
db9f46a9 | 21673 | |
94f548c2 | 21674 | _ACEOF |
5213506e | 21675 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21676 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 21677 | else |
db9f46a9 | 21678 | gcc_cv_math_func_llroundf=no |
94f548c2 | 21679 | fi |
5213506e RW |
21680 | rm -f core conftest.err conftest.$ac_objext \ |
21681 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21682 | fi |
db9f46a9 TG |
21683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21684 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21685 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 21686 | |
f38a14ca TG |
21687 | cat >>confdefs.h <<_ACEOF |
21688 | #define HAVE_LLROUNDF 1 | |
21689 | _ACEOF | |
94f548c2 | 21690 | |
db9f46a9 | 21691 | fi |
94f548c2 | 21692 | |
94f548c2 | 21693 | |
db9f46a9 TG |
21694 | |
21695 | ||
21696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
21697 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 21698 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 21699 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21700 | else |
db9f46a9 | 21701 | if test x$gcc_no_link = xyes; then |
22e05272 | 21702 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21703 | fi |
5213506e | 21704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21705 | /* end confdefs.h. */ |
21706 | ||
db9f46a9 TG |
21707 | #ifdef HAVE_COMPLEX_H |
21708 | #include <complex.h> | |
21709 | #endif | |
21710 | #ifdef HAVE_MATH_H | |
21711 | #include <math.h> | |
94f548c2 | 21712 | #endif |
db9f46a9 TG |
21713 | |
21714 | int (*ptr)() = (int (*)())llround; | |
21715 | ||
94f548c2 FXC |
21716 | int |
21717 | main () | |
21718 | { | |
94f548c2 FXC |
21719 | return 0; |
21720 | } | |
db9f46a9 | 21721 | |
94f548c2 | 21722 | _ACEOF |
5213506e | 21723 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21724 | gcc_cv_math_func_llround=yes |
94f548c2 | 21725 | else |
db9f46a9 | 21726 | gcc_cv_math_func_llround=no |
94f548c2 | 21727 | fi |
5213506e RW |
21728 | rm -f core conftest.err conftest.$ac_objext \ |
21729 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21730 | fi |
db9f46a9 TG |
21731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
21732 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
21733 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 21734 | |
f38a14ca TG |
21735 | cat >>confdefs.h <<_ACEOF |
21736 | #define HAVE_LLROUND 1 | |
21737 | _ACEOF | |
db9f46a9 TG |
21738 | |
21739 | fi | |
21740 | ||
94f548c2 | 21741 | |
94f548c2 | 21742 | |
94f548c2 | 21743 | |
db9f46a9 TG |
21744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
21745 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 21746 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 21747 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21748 | else |
db9f46a9 | 21749 | if test x$gcc_no_link = xyes; then |
22e05272 | 21750 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21751 | fi |
5213506e | 21752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21753 | /* end confdefs.h. */ |
21754 | ||
db9f46a9 TG |
21755 | #ifdef HAVE_COMPLEX_H |
21756 | #include <complex.h> | |
21757 | #endif | |
21758 | #ifdef HAVE_MATH_H | |
21759 | #include <math.h> | |
1409cd0b | 21760 | #endif |
db9f46a9 TG |
21761 | |
21762 | int (*ptr)() = (int (*)())llroundl; | |
21763 | ||
1409cd0b FXC |
21764 | int |
21765 | main () | |
21766 | { | |
1409cd0b FXC |
21767 | return 0; |
21768 | } | |
db9f46a9 | 21769 | |
1409cd0b | 21770 | _ACEOF |
5213506e | 21771 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21772 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 21773 | else |
db9f46a9 | 21774 | gcc_cv_math_func_llroundl=no |
1409cd0b | 21775 | fi |
5213506e RW |
21776 | rm -f core conftest.err conftest.$ac_objext \ |
21777 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21778 | fi |
db9f46a9 TG |
21779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
21780 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
21781 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 21782 | |
f38a14ca TG |
21783 | cat >>confdefs.h <<_ACEOF |
21784 | #define HAVE_LLROUNDL 1 | |
21785 | _ACEOF | |
1409cd0b | 21786 | |
db9f46a9 | 21787 | fi |
1409cd0b | 21788 | |
1409cd0b | 21789 | |
db9f46a9 TG |
21790 | |
21791 | ||
21792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
21793 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 21794 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 21795 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21796 | else |
db9f46a9 | 21797 | if test x$gcc_no_link = xyes; then |
22e05272 | 21798 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21799 | fi |
5213506e | 21800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21801 | /* end confdefs.h. */ |
21802 | ||
db9f46a9 TG |
21803 | #ifdef HAVE_COMPLEX_H |
21804 | #include <complex.h> | |
1409cd0b | 21805 | #endif |
db9f46a9 TG |
21806 | #ifdef HAVE_MATH_H |
21807 | #include <math.h> | |
21808 | #endif | |
21809 | ||
21810 | int (*ptr)() = (int (*)())scalbnf; | |
21811 | ||
1409cd0b FXC |
21812 | int |
21813 | main () | |
21814 | { | |
1409cd0b FXC |
21815 | return 0; |
21816 | } | |
db9f46a9 | 21817 | |
1409cd0b | 21818 | _ACEOF |
5213506e | 21819 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21820 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 21821 | else |
db9f46a9 | 21822 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 21823 | fi |
5213506e RW |
21824 | rm -f core conftest.err conftest.$ac_objext \ |
21825 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21826 | fi |
db9f46a9 TG |
21827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
21828 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
21829 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 21830 | |
f38a14ca TG |
21831 | cat >>confdefs.h <<_ACEOF |
21832 | #define HAVE_SCALBNF 1 | |
21833 | _ACEOF | |
1409cd0b | 21834 | |
db9f46a9 | 21835 | fi |
1409cd0b | 21836 | |
1409cd0b | 21837 | |
db9f46a9 TG |
21838 | |
21839 | ||
21840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
21841 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 21842 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 21843 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21844 | else |
db9f46a9 | 21845 | if test x$gcc_no_link = xyes; then |
22e05272 | 21846 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21847 | fi |
5213506e | 21848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21849 | /* end confdefs.h. */ |
21850 | ||
db9f46a9 TG |
21851 | #ifdef HAVE_COMPLEX_H |
21852 | #include <complex.h> | |
21853 | #endif | |
21854 | #ifdef HAVE_MATH_H | |
21855 | #include <math.h> | |
1409cd0b | 21856 | #endif |
db9f46a9 TG |
21857 | |
21858 | int (*ptr)() = (int (*)())scalbn; | |
21859 | ||
1409cd0b FXC |
21860 | int |
21861 | main () | |
21862 | { | |
1409cd0b FXC |
21863 | return 0; |
21864 | } | |
db9f46a9 | 21865 | |
1409cd0b | 21866 | _ACEOF |
5213506e | 21867 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21868 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 21869 | else |
db9f46a9 | 21870 | gcc_cv_math_func_scalbn=no |
1409cd0b | 21871 | fi |
5213506e RW |
21872 | rm -f core conftest.err conftest.$ac_objext \ |
21873 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21874 | fi |
db9f46a9 TG |
21875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
21876 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
21877 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 21878 | |
f38a14ca TG |
21879 | cat >>confdefs.h <<_ACEOF |
21880 | #define HAVE_SCALBN 1 | |
21881 | _ACEOF | |
db9f46a9 TG |
21882 | |
21883 | fi | |
21884 | ||
1409cd0b | 21885 | |
1409cd0b | 21886 | |
1409cd0b | 21887 | |
db9f46a9 TG |
21888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
21889 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 21890 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 21891 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21892 | else |
db9f46a9 | 21893 | if test x$gcc_no_link = xyes; then |
22e05272 | 21894 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21895 | fi |
5213506e | 21896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21897 | /* end confdefs.h. */ |
21898 | ||
db9f46a9 TG |
21899 | #ifdef HAVE_COMPLEX_H |
21900 | #include <complex.h> | |
21901 | #endif | |
21902 | #ifdef HAVE_MATH_H | |
21903 | #include <math.h> | |
1409cd0b | 21904 | #endif |
db9f46a9 TG |
21905 | |
21906 | int (*ptr)() = (int (*)())scalbnl; | |
21907 | ||
1409cd0b FXC |
21908 | int |
21909 | main () | |
21910 | { | |
1409cd0b FXC |
21911 | return 0; |
21912 | } | |
db9f46a9 | 21913 | |
1409cd0b | 21914 | _ACEOF |
5213506e | 21915 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21916 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 21917 | else |
db9f46a9 | 21918 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 21919 | fi |
5213506e RW |
21920 | rm -f core conftest.err conftest.$ac_objext \ |
21921 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21922 | fi |
db9f46a9 TG |
21923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
21924 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
21925 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 21926 | |
f38a14ca TG |
21927 | cat >>confdefs.h <<_ACEOF |
21928 | #define HAVE_SCALBNL 1 | |
21929 | _ACEOF | |
1409cd0b | 21930 | |
db9f46a9 | 21931 | fi |
1409cd0b | 21932 | |
1409cd0b | 21933 | |
db9f46a9 TG |
21934 | |
21935 | ||
21936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
21937 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 21938 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 21939 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21940 | else |
db9f46a9 | 21941 | if test x$gcc_no_link = xyes; then |
22e05272 | 21942 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21943 | fi |
5213506e | 21944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21945 | /* end confdefs.h. */ |
21946 | ||
db9f46a9 TG |
21947 | #ifdef HAVE_COMPLEX_H |
21948 | #include <complex.h> | |
1409cd0b | 21949 | #endif |
db9f46a9 TG |
21950 | #ifdef HAVE_MATH_H |
21951 | #include <math.h> | |
21952 | #endif | |
21953 | ||
21954 | int (*ptr)() = (int (*)())sinf; | |
21955 | ||
1409cd0b FXC |
21956 | int |
21957 | main () | |
21958 | { | |
1409cd0b FXC |
21959 | return 0; |
21960 | } | |
db9f46a9 | 21961 | |
1409cd0b | 21962 | _ACEOF |
5213506e | 21963 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21964 | gcc_cv_math_func_sinf=yes |
1409cd0b | 21965 | else |
db9f46a9 | 21966 | gcc_cv_math_func_sinf=no |
1409cd0b | 21967 | fi |
5213506e RW |
21968 | rm -f core conftest.err conftest.$ac_objext \ |
21969 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21970 | fi |
db9f46a9 TG |
21971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
21972 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
21973 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 21974 | |
f38a14ca TG |
21975 | cat >>confdefs.h <<_ACEOF |
21976 | #define HAVE_SINF 1 | |
21977 | _ACEOF | |
1409cd0b | 21978 | |
db9f46a9 | 21979 | fi |
1409cd0b | 21980 | |
1409cd0b | 21981 | |
db9f46a9 TG |
21982 | |
21983 | ||
21984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
21985 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 21986 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 21987 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21988 | else |
db9f46a9 | 21989 | if test x$gcc_no_link = xyes; then |
22e05272 | 21990 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21991 | fi |
5213506e | 21992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21993 | /* end confdefs.h. */ |
21994 | ||
db9f46a9 TG |
21995 | #ifdef HAVE_COMPLEX_H |
21996 | #include <complex.h> | |
1409cd0b | 21997 | #endif |
db9f46a9 TG |
21998 | #ifdef HAVE_MATH_H |
21999 | #include <math.h> | |
22000 | #endif | |
22001 | ||
22002 | int (*ptr)() = (int (*)())sin; | |
22003 | ||
1409cd0b FXC |
22004 | int |
22005 | main () | |
22006 | { | |
1409cd0b FXC |
22007 | return 0; |
22008 | } | |
db9f46a9 | 22009 | |
1409cd0b | 22010 | _ACEOF |
5213506e | 22011 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22012 | gcc_cv_math_func_sin=yes |
1409cd0b | 22013 | else |
db9f46a9 | 22014 | gcc_cv_math_func_sin=no |
1409cd0b | 22015 | fi |
5213506e RW |
22016 | rm -f core conftest.err conftest.$ac_objext \ |
22017 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22018 | fi |
db9f46a9 TG |
22019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22020 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22021 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22022 | |
f38a14ca TG |
22023 | cat >>confdefs.h <<_ACEOF |
22024 | #define HAVE_SIN 1 | |
22025 | _ACEOF | |
db9f46a9 TG |
22026 | |
22027 | fi | |
22028 | ||
1409cd0b | 22029 | |
1409cd0b | 22030 | |
1409cd0b | 22031 | |
db9f46a9 TG |
22032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22033 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22034 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22035 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22036 | else |
db9f46a9 | 22037 | if test x$gcc_no_link = xyes; then |
22e05272 | 22038 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22039 | fi |
5213506e | 22040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22041 | /* end confdefs.h. */ |
22042 | ||
db9f46a9 TG |
22043 | #ifdef HAVE_COMPLEX_H |
22044 | #include <complex.h> | |
1409cd0b | 22045 | #endif |
db9f46a9 TG |
22046 | #ifdef HAVE_MATH_H |
22047 | #include <math.h> | |
22048 | #endif | |
22049 | ||
22050 | int (*ptr)() = (int (*)())sinl; | |
22051 | ||
1409cd0b FXC |
22052 | int |
22053 | main () | |
22054 | { | |
5213506e RW |
22055 | return 0; |
22056 | } | |
db9f46a9 | 22057 | |
5213506e RW |
22058 | _ACEOF |
22059 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22060 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22061 | else |
db9f46a9 | 22062 | gcc_cv_math_func_sinl=no |
1409cd0b | 22063 | fi |
5213506e RW |
22064 | rm -f core conftest.err conftest.$ac_objext \ |
22065 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22066 | fi |
db9f46a9 TG |
22067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22068 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22069 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22070 | |
f38a14ca TG |
22071 | cat >>confdefs.h <<_ACEOF |
22072 | #define HAVE_SINL 1 | |
22073 | _ACEOF | |
db9f46a9 TG |
22074 | |
22075 | fi | |
1409cd0b | 22076 | |
1409cd0b | 22077 | |
1409cd0b | 22078 | |
db9f46a9 TG |
22079 | |
22080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22081 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22082 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22083 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22084 | else |
db9f46a9 | 22085 | if test x$gcc_no_link = xyes; then |
22e05272 | 22086 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22087 | fi |
5213506e | 22088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22089 | /* end confdefs.h. */ |
22090 | ||
db9f46a9 TG |
22091 | #ifdef HAVE_COMPLEX_H |
22092 | #include <complex.h> | |
22093 | #endif | |
22094 | #ifdef HAVE_MATH_H | |
22095 | #include <math.h> | |
1409cd0b | 22096 | #endif |
db9f46a9 TG |
22097 | |
22098 | int (*ptr)() = (int (*)())csinf; | |
22099 | ||
1409cd0b FXC |
22100 | int |
22101 | main () | |
22102 | { | |
1409cd0b FXC |
22103 | return 0; |
22104 | } | |
db9f46a9 | 22105 | |
1409cd0b | 22106 | _ACEOF |
5213506e | 22107 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22108 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22109 | else |
db9f46a9 | 22110 | gcc_cv_math_func_csinf=no |
1409cd0b | 22111 | fi |
5213506e RW |
22112 | rm -f core conftest.err conftest.$ac_objext \ |
22113 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22114 | fi |
db9f46a9 TG |
22115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22116 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22117 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22118 | |
f38a14ca TG |
22119 | cat >>confdefs.h <<_ACEOF |
22120 | #define HAVE_CSINF 1 | |
22121 | _ACEOF | |
1409cd0b | 22122 | |
db9f46a9 | 22123 | fi |
1409cd0b | 22124 | |
1409cd0b | 22125 | |
db9f46a9 TG |
22126 | |
22127 | ||
22128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22129 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22130 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22131 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22132 | else |
db9f46a9 | 22133 | if test x$gcc_no_link = xyes; then |
22e05272 | 22134 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22135 | fi |
5213506e | 22136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22137 | /* end confdefs.h. */ |
22138 | ||
db9f46a9 TG |
22139 | #ifdef HAVE_COMPLEX_H |
22140 | #include <complex.h> | |
1409cd0b | 22141 | #endif |
db9f46a9 TG |
22142 | #ifdef HAVE_MATH_H |
22143 | #include <math.h> | |
22144 | #endif | |
22145 | ||
22146 | int (*ptr)() = (int (*)())csin; | |
22147 | ||
1409cd0b FXC |
22148 | int |
22149 | main () | |
22150 | { | |
1409cd0b FXC |
22151 | return 0; |
22152 | } | |
db9f46a9 | 22153 | |
1409cd0b | 22154 | _ACEOF |
5213506e | 22155 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22156 | gcc_cv_math_func_csin=yes |
1409cd0b | 22157 | else |
db9f46a9 | 22158 | gcc_cv_math_func_csin=no |
1409cd0b | 22159 | fi |
5213506e RW |
22160 | rm -f core conftest.err conftest.$ac_objext \ |
22161 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22162 | fi |
db9f46a9 TG |
22163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22164 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22165 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22166 | |
f38a14ca TG |
22167 | cat >>confdefs.h <<_ACEOF |
22168 | #define HAVE_CSIN 1 | |
22169 | _ACEOF | |
db9f46a9 TG |
22170 | |
22171 | fi | |
22172 | ||
1409cd0b | 22173 | |
1409cd0b | 22174 | |
1409cd0b | 22175 | |
db9f46a9 TG |
22176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22177 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22178 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22179 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22180 | else |
db9f46a9 | 22181 | if test x$gcc_no_link = xyes; then |
22e05272 | 22182 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22183 | fi |
5213506e | 22184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22185 | /* end confdefs.h. */ |
22186 | ||
db9f46a9 TG |
22187 | #ifdef HAVE_COMPLEX_H |
22188 | #include <complex.h> | |
1409cd0b | 22189 | #endif |
db9f46a9 TG |
22190 | #ifdef HAVE_MATH_H |
22191 | #include <math.h> | |
22192 | #endif | |
22193 | ||
22194 | int (*ptr)() = (int (*)())csinl; | |
22195 | ||
1409cd0b FXC |
22196 | int |
22197 | main () | |
22198 | { | |
1409cd0b FXC |
22199 | return 0; |
22200 | } | |
db9f46a9 | 22201 | |
1409cd0b | 22202 | _ACEOF |
5213506e | 22203 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22204 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22205 | else |
db9f46a9 | 22206 | gcc_cv_math_func_csinl=no |
1409cd0b | 22207 | fi |
5213506e RW |
22208 | rm -f core conftest.err conftest.$ac_objext \ |
22209 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22210 | fi |
db9f46a9 TG |
22211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22212 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22213 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22214 | |
f38a14ca TG |
22215 | cat >>confdefs.h <<_ACEOF |
22216 | #define HAVE_CSINL 1 | |
22217 | _ACEOF | |
db9f46a9 TG |
22218 | |
22219 | fi | |
1409cd0b | 22220 | |
1409cd0b | 22221 | |
1409cd0b | 22222 | |
db9f46a9 TG |
22223 | |
22224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22225 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22226 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22227 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22228 | else |
db9f46a9 | 22229 | if test x$gcc_no_link = xyes; then |
22e05272 | 22230 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22231 | fi |
5213506e | 22232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22233 | /* end confdefs.h. */ |
22234 | ||
db9f46a9 TG |
22235 | #ifdef HAVE_COMPLEX_H |
22236 | #include <complex.h> | |
22237 | #endif | |
22238 | #ifdef HAVE_MATH_H | |
22239 | #include <math.h> | |
1409cd0b | 22240 | #endif |
db9f46a9 TG |
22241 | |
22242 | int (*ptr)() = (int (*)())sinhf; | |
22243 | ||
1409cd0b FXC |
22244 | int |
22245 | main () | |
22246 | { | |
1409cd0b FXC |
22247 | return 0; |
22248 | } | |
db9f46a9 | 22249 | |
1409cd0b | 22250 | _ACEOF |
5213506e | 22251 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22252 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22253 | else |
db9f46a9 | 22254 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22255 | fi |
5213506e RW |
22256 | rm -f core conftest.err conftest.$ac_objext \ |
22257 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22258 | fi |
db9f46a9 TG |
22259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22260 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22261 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22262 | |
f38a14ca TG |
22263 | cat >>confdefs.h <<_ACEOF |
22264 | #define HAVE_SINHF 1 | |
22265 | _ACEOF | |
1409cd0b | 22266 | |
db9f46a9 | 22267 | fi |
1409cd0b | 22268 | |
1409cd0b | 22269 | |
db9f46a9 TG |
22270 | |
22271 | ||
22272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22273 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22274 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22275 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22276 | else |
db9f46a9 | 22277 | if test x$gcc_no_link = xyes; then |
22e05272 | 22278 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22279 | fi |
5213506e | 22280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22281 | /* end confdefs.h. */ |
22282 | ||
db9f46a9 TG |
22283 | #ifdef HAVE_COMPLEX_H |
22284 | #include <complex.h> | |
1409cd0b | 22285 | #endif |
db9f46a9 TG |
22286 | #ifdef HAVE_MATH_H |
22287 | #include <math.h> | |
22288 | #endif | |
22289 | ||
22290 | int (*ptr)() = (int (*)())sinh; | |
22291 | ||
1409cd0b FXC |
22292 | int |
22293 | main () | |
22294 | { | |
1409cd0b FXC |
22295 | return 0; |
22296 | } | |
db9f46a9 | 22297 | |
1409cd0b | 22298 | _ACEOF |
5213506e | 22299 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22300 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22301 | else |
db9f46a9 | 22302 | gcc_cv_math_func_sinh=no |
1409cd0b | 22303 | fi |
5213506e RW |
22304 | rm -f core conftest.err conftest.$ac_objext \ |
22305 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22306 | fi |
db9f46a9 TG |
22307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22308 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22309 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22310 | |
f38a14ca TG |
22311 | cat >>confdefs.h <<_ACEOF |
22312 | #define HAVE_SINH 1 | |
22313 | _ACEOF | |
db9f46a9 TG |
22314 | |
22315 | fi | |
22316 | ||
1409cd0b | 22317 | |
1409cd0b | 22318 | |
1409cd0b | 22319 | |
db9f46a9 TG |
22320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22321 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22322 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22323 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22324 | else |
db9f46a9 | 22325 | if test x$gcc_no_link = xyes; then |
22e05272 | 22326 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22327 | fi |
5213506e | 22328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22329 | /* end confdefs.h. */ |
22330 | ||
db9f46a9 TG |
22331 | #ifdef HAVE_COMPLEX_H |
22332 | #include <complex.h> | |
1409cd0b | 22333 | #endif |
db9f46a9 TG |
22334 | #ifdef HAVE_MATH_H |
22335 | #include <math.h> | |
22336 | #endif | |
22337 | ||
22338 | int (*ptr)() = (int (*)())sinhl; | |
22339 | ||
1409cd0b FXC |
22340 | int |
22341 | main () | |
22342 | { | |
1409cd0b FXC |
22343 | return 0; |
22344 | } | |
db9f46a9 | 22345 | |
1409cd0b | 22346 | _ACEOF |
5213506e | 22347 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22348 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22349 | else |
db9f46a9 | 22350 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22351 | fi |
5213506e RW |
22352 | rm -f core conftest.err conftest.$ac_objext \ |
22353 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22354 | fi |
db9f46a9 TG |
22355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22356 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22357 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22358 | |
f38a14ca TG |
22359 | cat >>confdefs.h <<_ACEOF |
22360 | #define HAVE_SINHL 1 | |
22361 | _ACEOF | |
db9f46a9 TG |
22362 | |
22363 | fi | |
1409cd0b | 22364 | |
1409cd0b | 22365 | |
1409cd0b | 22366 | |
db9f46a9 TG |
22367 | |
22368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22369 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22370 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22371 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22372 | else |
db9f46a9 | 22373 | if test x$gcc_no_link = xyes; then |
22e05272 | 22374 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22375 | fi |
5213506e | 22376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22377 | /* end confdefs.h. */ |
22378 | ||
db9f46a9 TG |
22379 | #ifdef HAVE_COMPLEX_H |
22380 | #include <complex.h> | |
22381 | #endif | |
22382 | #ifdef HAVE_MATH_H | |
22383 | #include <math.h> | |
1409cd0b | 22384 | #endif |
db9f46a9 TG |
22385 | |
22386 | int (*ptr)() = (int (*)())csinhf; | |
22387 | ||
1409cd0b FXC |
22388 | int |
22389 | main () | |
22390 | { | |
1409cd0b FXC |
22391 | return 0; |
22392 | } | |
db9f46a9 | 22393 | |
1409cd0b | 22394 | _ACEOF |
5213506e | 22395 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22396 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22397 | else |
db9f46a9 | 22398 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22399 | fi |
5213506e RW |
22400 | rm -f core conftest.err conftest.$ac_objext \ |
22401 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22402 | fi |
db9f46a9 TG |
22403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22404 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22405 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22406 | |
f38a14ca TG |
22407 | cat >>confdefs.h <<_ACEOF |
22408 | #define HAVE_CSINHF 1 | |
22409 | _ACEOF | |
1409cd0b | 22410 | |
db9f46a9 | 22411 | fi |
1409cd0b | 22412 | |
1409cd0b | 22413 | |
db9f46a9 TG |
22414 | |
22415 | ||
22416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22417 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22418 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22419 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22420 | else |
db9f46a9 | 22421 | if test x$gcc_no_link = xyes; then |
22e05272 | 22422 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22423 | fi |
5213506e | 22424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22425 | /* end confdefs.h. */ |
22426 | ||
db9f46a9 TG |
22427 | #ifdef HAVE_COMPLEX_H |
22428 | #include <complex.h> | |
1409cd0b | 22429 | #endif |
db9f46a9 TG |
22430 | #ifdef HAVE_MATH_H |
22431 | #include <math.h> | |
22432 | #endif | |
22433 | ||
22434 | int (*ptr)() = (int (*)())csinh; | |
22435 | ||
1409cd0b FXC |
22436 | int |
22437 | main () | |
22438 | { | |
1409cd0b FXC |
22439 | return 0; |
22440 | } | |
db9f46a9 | 22441 | |
1409cd0b | 22442 | _ACEOF |
5213506e | 22443 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22444 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22445 | else |
db9f46a9 | 22446 | gcc_cv_math_func_csinh=no |
1409cd0b | 22447 | fi |
5213506e RW |
22448 | rm -f core conftest.err conftest.$ac_objext \ |
22449 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22450 | fi |
db9f46a9 TG |
22451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22452 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22453 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22454 | |
f38a14ca TG |
22455 | cat >>confdefs.h <<_ACEOF |
22456 | #define HAVE_CSINH 1 | |
22457 | _ACEOF | |
db9f46a9 TG |
22458 | |
22459 | fi | |
22460 | ||
1409cd0b | 22461 | |
1409cd0b | 22462 | |
1409cd0b | 22463 | |
db9f46a9 TG |
22464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22465 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22466 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22467 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22468 | else |
db9f46a9 | 22469 | if test x$gcc_no_link = xyes; then |
22e05272 | 22470 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22471 | fi |
5213506e | 22472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22473 | /* end confdefs.h. */ |
22474 | ||
db9f46a9 TG |
22475 | #ifdef HAVE_COMPLEX_H |
22476 | #include <complex.h> | |
1409cd0b | 22477 | #endif |
db9f46a9 TG |
22478 | #ifdef HAVE_MATH_H |
22479 | #include <math.h> | |
22480 | #endif | |
22481 | ||
22482 | int (*ptr)() = (int (*)())csinhl; | |
22483 | ||
1409cd0b FXC |
22484 | int |
22485 | main () | |
22486 | { | |
1409cd0b FXC |
22487 | return 0; |
22488 | } | |
db9f46a9 | 22489 | |
1409cd0b | 22490 | _ACEOF |
5213506e | 22491 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22492 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22493 | else |
db9f46a9 | 22494 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22495 | fi |
5213506e RW |
22496 | rm -f core conftest.err conftest.$ac_objext \ |
22497 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22498 | fi |
db9f46a9 TG |
22499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22500 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22501 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22502 | |
f38a14ca TG |
22503 | cat >>confdefs.h <<_ACEOF |
22504 | #define HAVE_CSINHL 1 | |
22505 | _ACEOF | |
db9f46a9 TG |
22506 | |
22507 | fi | |
1409cd0b | 22508 | |
1409cd0b | 22509 | |
1409cd0b | 22510 | |
db9f46a9 TG |
22511 | |
22512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22513 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22514 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22515 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22516 | else |
db9f46a9 | 22517 | if test x$gcc_no_link = xyes; then |
22e05272 | 22518 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22519 | fi |
5213506e | 22520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22521 | /* end confdefs.h. */ |
22522 | ||
db9f46a9 TG |
22523 | #ifdef HAVE_COMPLEX_H |
22524 | #include <complex.h> | |
22525 | #endif | |
22526 | #ifdef HAVE_MATH_H | |
22527 | #include <math.h> | |
1409cd0b | 22528 | #endif |
db9f46a9 TG |
22529 | |
22530 | int (*ptr)() = (int (*)())sqrtf; | |
22531 | ||
1409cd0b FXC |
22532 | int |
22533 | main () | |
22534 | { | |
1409cd0b FXC |
22535 | return 0; |
22536 | } | |
db9f46a9 | 22537 | |
1409cd0b | 22538 | _ACEOF |
5213506e | 22539 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22540 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22541 | else |
db9f46a9 | 22542 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22543 | fi |
5213506e RW |
22544 | rm -f core conftest.err conftest.$ac_objext \ |
22545 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22546 | fi |
db9f46a9 TG |
22547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22548 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22549 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22550 | |
f38a14ca TG |
22551 | cat >>confdefs.h <<_ACEOF |
22552 | #define HAVE_SQRTF 1 | |
22553 | _ACEOF | |
db9f46a9 TG |
22554 | |
22555 | fi | |
1409cd0b | 22556 | |
1409cd0b | 22557 | |
db9f46a9 TG |
22558 | |
22559 | ||
22560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22561 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22562 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22563 | $as_echo_n "(cached) " >&6 |
22564 | else | |
22565 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22566 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22567 | fi |
db9f46a9 TG |
22568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22569 | /* end confdefs.h. */ | |
22570 | ||
22571 | #ifdef HAVE_COMPLEX_H | |
22572 | #include <complex.h> | |
22573 | #endif | |
22574 | #ifdef HAVE_MATH_H | |
22575 | #include <math.h> | |
22576 | #endif | |
22577 | ||
22578 | int (*ptr)() = (int (*)())sqrt; | |
22579 | ||
22580 | int | |
22581 | main () | |
22582 | { | |
22583 | return 0; | |
22584 | } | |
22585 | ||
22586 | _ACEOF | |
22587 | if ac_fn_c_try_link "$LINENO"; then : | |
22588 | gcc_cv_math_func_sqrt=yes | |
22589 | else | |
22590 | gcc_cv_math_func_sqrt=no | |
22591 | fi | |
22592 | rm -f core conftest.err conftest.$ac_objext \ | |
22593 | conftest$ac_exeext conftest.$ac_ext | |
22594 | fi | |
22595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22596 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22597 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 22598 | |
f38a14ca TG |
22599 | cat >>confdefs.h <<_ACEOF |
22600 | #define HAVE_SQRT 1 | |
22601 | _ACEOF | |
db9f46a9 TG |
22602 | |
22603 | fi | |
1409cd0b | 22604 | |
db9f46a9 TG |
22605 | |
22606 | ||
22607 | ||
22608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22609 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 22610 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 22611 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22612 | else |
db9f46a9 | 22613 | if test x$gcc_no_link = xyes; then |
22e05272 | 22614 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22615 | fi |
5213506e | 22616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22617 | /* end confdefs.h. */ |
22618 | ||
db9f46a9 TG |
22619 | #ifdef HAVE_COMPLEX_H |
22620 | #include <complex.h> | |
22621 | #endif | |
22622 | #ifdef HAVE_MATH_H | |
22623 | #include <math.h> | |
1409cd0b | 22624 | #endif |
db9f46a9 TG |
22625 | |
22626 | int (*ptr)() = (int (*)())sqrtl; | |
22627 | ||
1409cd0b FXC |
22628 | int |
22629 | main () | |
22630 | { | |
1409cd0b FXC |
22631 | return 0; |
22632 | } | |
db9f46a9 | 22633 | |
1409cd0b | 22634 | _ACEOF |
5213506e | 22635 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22636 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 22637 | else |
db9f46a9 | 22638 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 22639 | fi |
5213506e RW |
22640 | rm -f core conftest.err conftest.$ac_objext \ |
22641 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22642 | fi |
db9f46a9 TG |
22643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22644 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22645 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 22646 | |
f38a14ca TG |
22647 | cat >>confdefs.h <<_ACEOF |
22648 | #define HAVE_SQRTL 1 | |
22649 | _ACEOF | |
db9f46a9 TG |
22650 | |
22651 | fi | |
1409cd0b | 22652 | |
1409cd0b | 22653 | |
1409cd0b | 22654 | |
db9f46a9 TG |
22655 | |
22656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22657 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 22658 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 22659 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22660 | else |
db9f46a9 | 22661 | if test x$gcc_no_link = xyes; then |
22e05272 | 22662 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22663 | fi |
5213506e | 22664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22665 | /* end confdefs.h. */ |
22666 | ||
db9f46a9 TG |
22667 | #ifdef HAVE_COMPLEX_H |
22668 | #include <complex.h> | |
1409cd0b | 22669 | #endif |
db9f46a9 TG |
22670 | #ifdef HAVE_MATH_H |
22671 | #include <math.h> | |
22672 | #endif | |
22673 | ||
22674 | int (*ptr)() = (int (*)())csqrtf; | |
22675 | ||
1409cd0b FXC |
22676 | int |
22677 | main () | |
22678 | { | |
1409cd0b FXC |
22679 | return 0; |
22680 | } | |
db9f46a9 | 22681 | |
1409cd0b | 22682 | _ACEOF |
5213506e | 22683 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22684 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 22685 | else |
db9f46a9 | 22686 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 22687 | fi |
5213506e RW |
22688 | rm -f core conftest.err conftest.$ac_objext \ |
22689 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22690 | fi |
db9f46a9 TG |
22691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
22692 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
22693 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 22694 | |
f38a14ca TG |
22695 | cat >>confdefs.h <<_ACEOF |
22696 | #define HAVE_CSQRTF 1 | |
22697 | _ACEOF | |
1409cd0b | 22698 | |
db9f46a9 | 22699 | fi |
1409cd0b | 22700 | |
1409cd0b | 22701 | |
db9f46a9 TG |
22702 | |
22703 | ||
22704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
22705 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 22706 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 22707 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22708 | else |
db9f46a9 | 22709 | if test x$gcc_no_link = xyes; then |
22e05272 | 22710 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22711 | fi |
5213506e | 22712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22713 | /* end confdefs.h. */ |
22714 | ||
db9f46a9 TG |
22715 | #ifdef HAVE_COMPLEX_H |
22716 | #include <complex.h> | |
22717 | #endif | |
22718 | #ifdef HAVE_MATH_H | |
22719 | #include <math.h> | |
1409cd0b | 22720 | #endif |
db9f46a9 TG |
22721 | |
22722 | int (*ptr)() = (int (*)())csqrt; | |
22723 | ||
1409cd0b FXC |
22724 | int |
22725 | main () | |
22726 | { | |
1409cd0b FXC |
22727 | return 0; |
22728 | } | |
db9f46a9 | 22729 | |
1409cd0b | 22730 | _ACEOF |
5213506e | 22731 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22732 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 22733 | else |
db9f46a9 | 22734 | gcc_cv_math_func_csqrt=no |
1409cd0b | 22735 | fi |
5213506e RW |
22736 | rm -f core conftest.err conftest.$ac_objext \ |
22737 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22738 | fi |
db9f46a9 TG |
22739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
22740 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
22741 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 22742 | |
f38a14ca TG |
22743 | cat >>confdefs.h <<_ACEOF |
22744 | #define HAVE_CSQRT 1 | |
22745 | _ACEOF | |
db9f46a9 TG |
22746 | |
22747 | fi | |
1409cd0b | 22748 | |
1409cd0b | 22749 | |
1409cd0b | 22750 | |
db9f46a9 TG |
22751 | |
22752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
22753 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 22754 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 22755 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22756 | else |
db9f46a9 | 22757 | if test x$gcc_no_link = xyes; then |
22e05272 | 22758 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22759 | fi |
5213506e | 22760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22761 | /* end confdefs.h. */ |
22762 | ||
db9f46a9 TG |
22763 | #ifdef HAVE_COMPLEX_H |
22764 | #include <complex.h> | |
1409cd0b | 22765 | #endif |
db9f46a9 TG |
22766 | #ifdef HAVE_MATH_H |
22767 | #include <math.h> | |
22768 | #endif | |
22769 | ||
22770 | int (*ptr)() = (int (*)())csqrtl; | |
22771 | ||
1409cd0b FXC |
22772 | int |
22773 | main () | |
22774 | { | |
1409cd0b FXC |
22775 | return 0; |
22776 | } | |
db9f46a9 | 22777 | |
1409cd0b | 22778 | _ACEOF |
5213506e | 22779 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22780 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 22781 | else |
db9f46a9 | 22782 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 22783 | fi |
5213506e RW |
22784 | rm -f core conftest.err conftest.$ac_objext \ |
22785 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22786 | fi |
db9f46a9 TG |
22787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
22788 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
22789 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 22790 | |
f38a14ca TG |
22791 | cat >>confdefs.h <<_ACEOF |
22792 | #define HAVE_CSQRTL 1 | |
22793 | _ACEOF | |
db9f46a9 TG |
22794 | |
22795 | fi | |
22796 | ||
1409cd0b | 22797 | |
1409cd0b | 22798 | |
1409cd0b | 22799 | |
db9f46a9 TG |
22800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
22801 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 22802 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 22803 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22804 | else |
db9f46a9 | 22805 | if test x$gcc_no_link = xyes; then |
22e05272 | 22806 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22807 | fi |
5213506e | 22808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22809 | /* end confdefs.h. */ |
22810 | ||
db9f46a9 TG |
22811 | #ifdef HAVE_COMPLEX_H |
22812 | #include <complex.h> | |
22813 | #endif | |
22814 | #ifdef HAVE_MATH_H | |
22815 | #include <math.h> | |
1409cd0b | 22816 | #endif |
db9f46a9 TG |
22817 | |
22818 | int (*ptr)() = (int (*)())tanf; | |
22819 | ||
1409cd0b FXC |
22820 | int |
22821 | main () | |
22822 | { | |
1409cd0b FXC |
22823 | return 0; |
22824 | } | |
db9f46a9 | 22825 | |
1409cd0b | 22826 | _ACEOF |
5213506e | 22827 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22828 | gcc_cv_math_func_tanf=yes |
1409cd0b | 22829 | else |
db9f46a9 | 22830 | gcc_cv_math_func_tanf=no |
1409cd0b | 22831 | fi |
5213506e RW |
22832 | rm -f core conftest.err conftest.$ac_objext \ |
22833 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22834 | fi |
db9f46a9 TG |
22835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
22836 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
22837 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 22838 | |
f38a14ca TG |
22839 | cat >>confdefs.h <<_ACEOF |
22840 | #define HAVE_TANF 1 | |
22841 | _ACEOF | |
db9f46a9 TG |
22842 | |
22843 | fi | |
1409cd0b | 22844 | |
1409cd0b | 22845 | |
1409cd0b | 22846 | |
db9f46a9 TG |
22847 | |
22848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
22849 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 22850 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 22851 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22852 | else |
db9f46a9 | 22853 | if test x$gcc_no_link = xyes; then |
22e05272 | 22854 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22855 | fi |
5213506e | 22856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22857 | /* end confdefs.h. */ |
22858 | ||
db9f46a9 TG |
22859 | #ifdef HAVE_COMPLEX_H |
22860 | #include <complex.h> | |
1409cd0b | 22861 | #endif |
db9f46a9 TG |
22862 | #ifdef HAVE_MATH_H |
22863 | #include <math.h> | |
22864 | #endif | |
22865 | ||
22866 | int (*ptr)() = (int (*)())tan; | |
22867 | ||
1409cd0b FXC |
22868 | int |
22869 | main () | |
22870 | { | |
1409cd0b FXC |
22871 | return 0; |
22872 | } | |
db9f46a9 | 22873 | |
1409cd0b | 22874 | _ACEOF |
5213506e | 22875 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22876 | gcc_cv_math_func_tan=yes |
1409cd0b | 22877 | else |
db9f46a9 | 22878 | gcc_cv_math_func_tan=no |
1409cd0b | 22879 | fi |
5213506e RW |
22880 | rm -f core conftest.err conftest.$ac_objext \ |
22881 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22882 | fi |
db9f46a9 TG |
22883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
22884 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
22885 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 22886 | |
f38a14ca TG |
22887 | cat >>confdefs.h <<_ACEOF |
22888 | #define HAVE_TAN 1 | |
22889 | _ACEOF | |
1409cd0b | 22890 | |
db9f46a9 | 22891 | fi |
1409cd0b | 22892 | |
1409cd0b | 22893 | |
db9f46a9 TG |
22894 | |
22895 | ||
22896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
22897 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 22898 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 22899 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22900 | else |
db9f46a9 | 22901 | if test x$gcc_no_link = xyes; then |
22e05272 | 22902 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22903 | fi |
5213506e | 22904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22905 | /* end confdefs.h. */ |
22906 | ||
db9f46a9 TG |
22907 | #ifdef HAVE_COMPLEX_H |
22908 | #include <complex.h> | |
22909 | #endif | |
22910 | #ifdef HAVE_MATH_H | |
22911 | #include <math.h> | |
1409cd0b | 22912 | #endif |
db9f46a9 TG |
22913 | |
22914 | int (*ptr)() = (int (*)())tanl; | |
22915 | ||
1409cd0b FXC |
22916 | int |
22917 | main () | |
22918 | { | |
1409cd0b FXC |
22919 | return 0; |
22920 | } | |
db9f46a9 | 22921 | |
1409cd0b | 22922 | _ACEOF |
5213506e | 22923 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22924 | gcc_cv_math_func_tanl=yes |
1409cd0b | 22925 | else |
db9f46a9 | 22926 | gcc_cv_math_func_tanl=no |
1409cd0b | 22927 | fi |
5213506e RW |
22928 | rm -f core conftest.err conftest.$ac_objext \ |
22929 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22930 | fi |
db9f46a9 TG |
22931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
22932 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
22933 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 22934 | |
f38a14ca TG |
22935 | cat >>confdefs.h <<_ACEOF |
22936 | #define HAVE_TANL 1 | |
22937 | _ACEOF | |
db9f46a9 TG |
22938 | |
22939 | fi | |
1409cd0b | 22940 | |
1409cd0b | 22941 | |
1409cd0b | 22942 | |
db9f46a9 TG |
22943 | |
22944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
22945 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 22946 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 22947 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22948 | else |
db9f46a9 | 22949 | if test x$gcc_no_link = xyes; then |
22e05272 | 22950 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22951 | fi |
5213506e | 22952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22953 | /* end confdefs.h. */ |
22954 | ||
db9f46a9 TG |
22955 | #ifdef HAVE_COMPLEX_H |
22956 | #include <complex.h> | |
1409cd0b | 22957 | #endif |
db9f46a9 TG |
22958 | #ifdef HAVE_MATH_H |
22959 | #include <math.h> | |
22960 | #endif | |
22961 | ||
22962 | int (*ptr)() = (int (*)())ctanf; | |
22963 | ||
1409cd0b FXC |
22964 | int |
22965 | main () | |
22966 | { | |
1409cd0b FXC |
22967 | return 0; |
22968 | } | |
db9f46a9 | 22969 | |
1409cd0b | 22970 | _ACEOF |
5213506e | 22971 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22972 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 22973 | else |
db9f46a9 | 22974 | gcc_cv_math_func_ctanf=no |
1409cd0b | 22975 | fi |
5213506e RW |
22976 | rm -f core conftest.err conftest.$ac_objext \ |
22977 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22978 | fi |
db9f46a9 TG |
22979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
22980 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
22981 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 22982 | |
f38a14ca TG |
22983 | cat >>confdefs.h <<_ACEOF |
22984 | #define HAVE_CTANF 1 | |
22985 | _ACEOF | |
db9f46a9 TG |
22986 | |
22987 | fi | |
22988 | ||
1409cd0b | 22989 | |
1409cd0b | 22990 | |
1409cd0b | 22991 | |
db9f46a9 TG |
22992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
22993 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 22994 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 22995 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22996 | else |
db9f46a9 | 22997 | if test x$gcc_no_link = xyes; then |
22e05272 | 22998 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22999 | fi |
5213506e | 23000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23001 | /* end confdefs.h. */ |
23002 | ||
db9f46a9 TG |
23003 | #ifdef HAVE_COMPLEX_H |
23004 | #include <complex.h> | |
23005 | #endif | |
23006 | #ifdef HAVE_MATH_H | |
23007 | #include <math.h> | |
1409cd0b | 23008 | #endif |
db9f46a9 TG |
23009 | |
23010 | int (*ptr)() = (int (*)())ctan; | |
23011 | ||
1409cd0b FXC |
23012 | int |
23013 | main () | |
23014 | { | |
1409cd0b FXC |
23015 | return 0; |
23016 | } | |
db9f46a9 | 23017 | |
1409cd0b | 23018 | _ACEOF |
5213506e | 23019 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23020 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23021 | else |
db9f46a9 | 23022 | gcc_cv_math_func_ctan=no |
1409cd0b | 23023 | fi |
5213506e RW |
23024 | rm -f core conftest.err conftest.$ac_objext \ |
23025 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23026 | fi |
db9f46a9 TG |
23027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23028 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23029 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23030 | |
f38a14ca TG |
23031 | cat >>confdefs.h <<_ACEOF |
23032 | #define HAVE_CTAN 1 | |
23033 | _ACEOF | |
db9f46a9 TG |
23034 | |
23035 | fi | |
1409cd0b | 23036 | |
1409cd0b | 23037 | |
1409cd0b | 23038 | |
db9f46a9 TG |
23039 | |
23040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23041 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23042 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23043 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23044 | else |
db9f46a9 | 23045 | if test x$gcc_no_link = xyes; then |
22e05272 | 23046 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23047 | fi |
5213506e | 23048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23049 | /* end confdefs.h. */ |
23050 | ||
db9f46a9 TG |
23051 | #ifdef HAVE_COMPLEX_H |
23052 | #include <complex.h> | |
1409cd0b | 23053 | #endif |
db9f46a9 TG |
23054 | #ifdef HAVE_MATH_H |
23055 | #include <math.h> | |
23056 | #endif | |
23057 | ||
23058 | int (*ptr)() = (int (*)())ctanl; | |
23059 | ||
1409cd0b FXC |
23060 | int |
23061 | main () | |
23062 | { | |
1409cd0b FXC |
23063 | return 0; |
23064 | } | |
db9f46a9 | 23065 | |
1409cd0b | 23066 | _ACEOF |
5213506e | 23067 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23068 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23069 | else |
db9f46a9 | 23070 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23071 | fi |
5213506e RW |
23072 | rm -f core conftest.err conftest.$ac_objext \ |
23073 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23074 | fi |
db9f46a9 TG |
23075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23076 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23077 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23078 | |
f38a14ca TG |
23079 | cat >>confdefs.h <<_ACEOF |
23080 | #define HAVE_CTANL 1 | |
23081 | _ACEOF | |
1409cd0b | 23082 | |
db9f46a9 | 23083 | fi |
1409cd0b | 23084 | |
1409cd0b | 23085 | |
db9f46a9 TG |
23086 | |
23087 | ||
23088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23089 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23090 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23091 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23092 | else |
db9f46a9 | 23093 | if test x$gcc_no_link = xyes; then |
22e05272 | 23094 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23095 | fi |
5213506e | 23096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23097 | /* end confdefs.h. */ |
23098 | ||
db9f46a9 TG |
23099 | #ifdef HAVE_COMPLEX_H |
23100 | #include <complex.h> | |
23101 | #endif | |
23102 | #ifdef HAVE_MATH_H | |
23103 | #include <math.h> | |
1409cd0b | 23104 | #endif |
db9f46a9 TG |
23105 | |
23106 | int (*ptr)() = (int (*)())tanhf; | |
23107 | ||
1409cd0b FXC |
23108 | int |
23109 | main () | |
23110 | { | |
1409cd0b FXC |
23111 | return 0; |
23112 | } | |
db9f46a9 | 23113 | |
1409cd0b | 23114 | _ACEOF |
5213506e | 23115 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23116 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23117 | else |
db9f46a9 | 23118 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23119 | fi |
5213506e RW |
23120 | rm -f core conftest.err conftest.$ac_objext \ |
23121 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23122 | fi |
db9f46a9 TG |
23123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23124 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23125 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23126 | |
f38a14ca TG |
23127 | cat >>confdefs.h <<_ACEOF |
23128 | #define HAVE_TANHF 1 | |
23129 | _ACEOF | |
db9f46a9 TG |
23130 | |
23131 | fi | |
1409cd0b | 23132 | |
1409cd0b | 23133 | |
1409cd0b | 23134 | |
db9f46a9 TG |
23135 | |
23136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23137 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23138 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23139 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23140 | else |
db9f46a9 | 23141 | if test x$gcc_no_link = xyes; then |
22e05272 | 23142 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23143 | fi |
5213506e | 23144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23145 | /* end confdefs.h. */ |
23146 | ||
db9f46a9 TG |
23147 | #ifdef HAVE_COMPLEX_H |
23148 | #include <complex.h> | |
1409cd0b | 23149 | #endif |
db9f46a9 TG |
23150 | #ifdef HAVE_MATH_H |
23151 | #include <math.h> | |
23152 | #endif | |
23153 | ||
23154 | int (*ptr)() = (int (*)())tanh; | |
23155 | ||
1409cd0b FXC |
23156 | int |
23157 | main () | |
23158 | { | |
1409cd0b FXC |
23159 | return 0; |
23160 | } | |
db9f46a9 | 23161 | |
1409cd0b | 23162 | _ACEOF |
5213506e | 23163 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23164 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23165 | else |
db9f46a9 | 23166 | gcc_cv_math_func_tanh=no |
1409cd0b | 23167 | fi |
5213506e RW |
23168 | rm -f core conftest.err conftest.$ac_objext \ |
23169 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23170 | fi |
db9f46a9 TG |
23171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23172 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23173 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23174 | |
f38a14ca TG |
23175 | cat >>confdefs.h <<_ACEOF |
23176 | #define HAVE_TANH 1 | |
23177 | _ACEOF | |
db9f46a9 TG |
23178 | |
23179 | fi | |
23180 | ||
1409cd0b | 23181 | |
1409cd0b | 23182 | |
1409cd0b | 23183 | |
db9f46a9 TG |
23184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23185 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23186 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23187 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23188 | else |
db9f46a9 | 23189 | if test x$gcc_no_link = xyes; then |
22e05272 | 23190 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23191 | fi |
5213506e | 23192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23193 | /* end confdefs.h. */ |
23194 | ||
db9f46a9 TG |
23195 | #ifdef HAVE_COMPLEX_H |
23196 | #include <complex.h> | |
23197 | #endif | |
23198 | #ifdef HAVE_MATH_H | |
23199 | #include <math.h> | |
1409cd0b | 23200 | #endif |
db9f46a9 TG |
23201 | |
23202 | int (*ptr)() = (int (*)())tanhl; | |
23203 | ||
1409cd0b FXC |
23204 | int |
23205 | main () | |
23206 | { | |
1409cd0b FXC |
23207 | return 0; |
23208 | } | |
db9f46a9 | 23209 | |
1409cd0b | 23210 | _ACEOF |
5213506e | 23211 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23212 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23213 | else |
db9f46a9 | 23214 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23215 | fi |
5213506e RW |
23216 | rm -f core conftest.err conftest.$ac_objext \ |
23217 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23218 | fi |
db9f46a9 TG |
23219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23220 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23221 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23222 | |
f38a14ca TG |
23223 | cat >>confdefs.h <<_ACEOF |
23224 | #define HAVE_TANHL 1 | |
23225 | _ACEOF | |
db9f46a9 TG |
23226 | |
23227 | fi | |
1409cd0b | 23228 | |
1409cd0b | 23229 | |
1409cd0b | 23230 | |
db9f46a9 TG |
23231 | |
23232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23233 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23234 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23235 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23236 | else |
db9f46a9 | 23237 | if test x$gcc_no_link = xyes; then |
22e05272 | 23238 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23239 | fi |
23240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23241 | /* end confdefs.h. */ | |
23242 | ||
23243 | #ifdef HAVE_COMPLEX_H | |
23244 | #include <complex.h> | |
1409cd0b | 23245 | #endif |
db9f46a9 TG |
23246 | #ifdef HAVE_MATH_H |
23247 | #include <math.h> | |
23248 | #endif | |
23249 | ||
23250 | int (*ptr)() = (int (*)())ctanhf; | |
23251 | ||
1409cd0b FXC |
23252 | int |
23253 | main () | |
23254 | { | |
1409cd0b FXC |
23255 | return 0; |
23256 | } | |
db9f46a9 | 23257 | |
1409cd0b | 23258 | _ACEOF |
5213506e | 23259 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23260 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23261 | else |
db9f46a9 | 23262 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23263 | fi |
5213506e RW |
23264 | rm -f core conftest.err conftest.$ac_objext \ |
23265 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23266 | fi |
db9f46a9 TG |
23267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23268 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23269 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23270 | |
f38a14ca TG |
23271 | cat >>confdefs.h <<_ACEOF |
23272 | #define HAVE_CTANHF 1 | |
23273 | _ACEOF | |
1409cd0b | 23274 | |
db9f46a9 | 23275 | fi |
1409cd0b | 23276 | |
1409cd0b | 23277 | |
db9f46a9 TG |
23278 | |
23279 | ||
23280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23281 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23282 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23283 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23284 | else |
db9f46a9 | 23285 | if test x$gcc_no_link = xyes; then |
22e05272 | 23286 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23287 | fi |
5213506e | 23288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23289 | /* end confdefs.h. */ |
23290 | ||
db9f46a9 TG |
23291 | #ifdef HAVE_COMPLEX_H |
23292 | #include <complex.h> | |
23293 | #endif | |
23294 | #ifdef HAVE_MATH_H | |
23295 | #include <math.h> | |
1409cd0b | 23296 | #endif |
db9f46a9 TG |
23297 | |
23298 | int (*ptr)() = (int (*)())ctanh; | |
23299 | ||
1409cd0b FXC |
23300 | int |
23301 | main () | |
23302 | { | |
5213506e RW |
23303 | return 0; |
23304 | } | |
db9f46a9 | 23305 | |
5213506e RW |
23306 | _ACEOF |
23307 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23308 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23309 | else |
db9f46a9 | 23310 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23311 | fi |
5213506e RW |
23312 | rm -f core conftest.err conftest.$ac_objext \ |
23313 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23314 | fi |
db9f46a9 TG |
23315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23316 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23317 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23318 | |
f38a14ca TG |
23319 | cat >>confdefs.h <<_ACEOF |
23320 | #define HAVE_CTANH 1 | |
23321 | _ACEOF | |
db9f46a9 TG |
23322 | |
23323 | fi | |
1409cd0b | 23324 | |
1409cd0b | 23325 | |
1409cd0b | 23326 | |
db9f46a9 TG |
23327 | |
23328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23329 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23330 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23331 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23332 | else |
db9f46a9 | 23333 | if test x$gcc_no_link = xyes; then |
22e05272 | 23334 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23335 | fi |
5213506e | 23336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23337 | /* end confdefs.h. */ |
23338 | ||
db9f46a9 TG |
23339 | #ifdef HAVE_COMPLEX_H |
23340 | #include <complex.h> | |
1409cd0b | 23341 | #endif |
db9f46a9 TG |
23342 | #ifdef HAVE_MATH_H |
23343 | #include <math.h> | |
23344 | #endif | |
23345 | ||
23346 | int (*ptr)() = (int (*)())ctanhl; | |
23347 | ||
1409cd0b FXC |
23348 | int |
23349 | main () | |
23350 | { | |
1409cd0b FXC |
23351 | return 0; |
23352 | } | |
db9f46a9 | 23353 | |
1409cd0b | 23354 | _ACEOF |
5213506e | 23355 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23356 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23357 | else |
db9f46a9 | 23358 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23359 | fi |
5213506e RW |
23360 | rm -f core conftest.err conftest.$ac_objext \ |
23361 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23362 | fi |
db9f46a9 TG |
23363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23364 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23365 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23366 | |
f38a14ca TG |
23367 | cat >>confdefs.h <<_ACEOF |
23368 | #define HAVE_CTANHL 1 | |
23369 | _ACEOF | |
db9f46a9 TG |
23370 | |
23371 | fi | |
23372 | ||
1409cd0b | 23373 | |
69a2d125 | 23374 | |
69a2d125 | 23375 | |
db9f46a9 TG |
23376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23377 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23378 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23379 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23380 | else |
db9f46a9 | 23381 | if test x$gcc_no_link = xyes; then |
22e05272 | 23382 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23383 | fi |
5213506e | 23384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23385 | /* end confdefs.h. */ |
23386 | ||
db9f46a9 TG |
23387 | #ifdef HAVE_COMPLEX_H |
23388 | #include <complex.h> | |
23389 | #endif | |
23390 | #ifdef HAVE_MATH_H | |
23391 | #include <math.h> | |
69a2d125 | 23392 | #endif |
db9f46a9 TG |
23393 | |
23394 | int (*ptr)() = (int (*)())truncf; | |
23395 | ||
1409cd0b FXC |
23396 | int |
23397 | main () | |
23398 | { | |
1409cd0b FXC |
23399 | return 0; |
23400 | } | |
db9f46a9 | 23401 | |
1409cd0b | 23402 | _ACEOF |
5213506e | 23403 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23404 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23405 | else |
db9f46a9 | 23406 | gcc_cv_math_func_truncf=no |
1409cd0b | 23407 | fi |
5213506e RW |
23408 | rm -f core conftest.err conftest.$ac_objext \ |
23409 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23410 | fi |
db9f46a9 TG |
23411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23412 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23413 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23414 | |
f38a14ca TG |
23415 | cat >>confdefs.h <<_ACEOF |
23416 | #define HAVE_TRUNCF 1 | |
23417 | _ACEOF | |
db9f46a9 TG |
23418 | |
23419 | fi | |
1409cd0b | 23420 | |
1409cd0b | 23421 | |
1409cd0b | 23422 | |
db9f46a9 TG |
23423 | |
23424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23425 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23426 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23427 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23428 | else |
db9f46a9 | 23429 | if test x$gcc_no_link = xyes; then |
22e05272 | 23430 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23431 | fi |
5213506e | 23432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23433 | /* end confdefs.h. */ |
23434 | ||
db9f46a9 TG |
23435 | #ifdef HAVE_COMPLEX_H |
23436 | #include <complex.h> | |
1409cd0b | 23437 | #endif |
db9f46a9 TG |
23438 | #ifdef HAVE_MATH_H |
23439 | #include <math.h> | |
23440 | #endif | |
23441 | ||
23442 | int (*ptr)() = (int (*)())trunc; | |
23443 | ||
1409cd0b FXC |
23444 | int |
23445 | main () | |
23446 | { | |
1409cd0b FXC |
23447 | return 0; |
23448 | } | |
db9f46a9 | 23449 | |
1409cd0b | 23450 | _ACEOF |
5213506e | 23451 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23452 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23453 | else |
db9f46a9 | 23454 | gcc_cv_math_func_trunc=no |
1409cd0b | 23455 | fi |
5213506e RW |
23456 | rm -f core conftest.err conftest.$ac_objext \ |
23457 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23458 | fi |
db9f46a9 TG |
23459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23460 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23461 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23462 | |
f38a14ca TG |
23463 | cat >>confdefs.h <<_ACEOF |
23464 | #define HAVE_TRUNC 1 | |
23465 | _ACEOF | |
1409cd0b | 23466 | |
db9f46a9 | 23467 | fi |
1409cd0b | 23468 | |
1409cd0b | 23469 | |
db9f46a9 TG |
23470 | |
23471 | ||
23472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23473 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23474 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23475 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23476 | else |
db9f46a9 | 23477 | if test x$gcc_no_link = xyes; then |
22e05272 | 23478 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23479 | fi |
5213506e | 23480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23481 | /* end confdefs.h. */ |
23482 | ||
db9f46a9 TG |
23483 | #ifdef HAVE_COMPLEX_H |
23484 | #include <complex.h> | |
23485 | #endif | |
23486 | #ifdef HAVE_MATH_H | |
23487 | #include <math.h> | |
1409cd0b | 23488 | #endif |
db9f46a9 TG |
23489 | |
23490 | int (*ptr)() = (int (*)())truncl; | |
23491 | ||
1409cd0b FXC |
23492 | int |
23493 | main () | |
23494 | { | |
1409cd0b FXC |
23495 | return 0; |
23496 | } | |
db9f46a9 | 23497 | |
1409cd0b | 23498 | _ACEOF |
5213506e | 23499 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23500 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23501 | else |
db9f46a9 | 23502 | gcc_cv_math_func_truncl=no |
1409cd0b | 23503 | fi |
5213506e RW |
23504 | rm -f core conftest.err conftest.$ac_objext \ |
23505 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23506 | fi |
db9f46a9 TG |
23507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23508 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23509 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23510 | |
f38a14ca TG |
23511 | cat >>confdefs.h <<_ACEOF |
23512 | #define HAVE_TRUNCL 1 | |
23513 | _ACEOF | |
db9f46a9 TG |
23514 | |
23515 | fi | |
1409cd0b | 23516 | |
1409cd0b | 23517 | |
1409cd0b | 23518 | |
db9f46a9 TG |
23519 | |
23520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23521 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23522 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23523 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23524 | else |
db9f46a9 | 23525 | if test x$gcc_no_link = xyes; then |
22e05272 | 23526 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23527 | fi |
5213506e | 23528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23529 | /* end confdefs.h. */ |
23530 | ||
db9f46a9 TG |
23531 | #ifdef HAVE_COMPLEX_H |
23532 | #include <complex.h> | |
1409cd0b | 23533 | #endif |
db9f46a9 TG |
23534 | #ifdef HAVE_MATH_H |
23535 | #include <math.h> | |
23536 | #endif | |
23537 | ||
23538 | int (*ptr)() = (int (*)())erff; | |
23539 | ||
1409cd0b FXC |
23540 | int |
23541 | main () | |
23542 | { | |
1409cd0b FXC |
23543 | return 0; |
23544 | } | |
db9f46a9 | 23545 | |
1409cd0b | 23546 | _ACEOF |
5213506e | 23547 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23548 | gcc_cv_math_func_erff=yes |
1409cd0b | 23549 | else |
db9f46a9 | 23550 | gcc_cv_math_func_erff=no |
1409cd0b | 23551 | fi |
5213506e RW |
23552 | rm -f core conftest.err conftest.$ac_objext \ |
23553 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23554 | fi |
db9f46a9 TG |
23555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23556 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23557 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23558 | |
f38a14ca TG |
23559 | cat >>confdefs.h <<_ACEOF |
23560 | #define HAVE_ERFF 1 | |
23561 | _ACEOF | |
db9f46a9 TG |
23562 | |
23563 | fi | |
23564 | ||
1409cd0b | 23565 | |
1409cd0b | 23566 | |
1409cd0b | 23567 | |
db9f46a9 TG |
23568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23569 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23570 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23571 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23572 | else |
db9f46a9 | 23573 | if test x$gcc_no_link = xyes; then |
22e05272 | 23574 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23575 | fi |
5213506e | 23576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23577 | /* end confdefs.h. */ |
23578 | ||
db9f46a9 TG |
23579 | #ifdef HAVE_COMPLEX_H |
23580 | #include <complex.h> | |
23581 | #endif | |
23582 | #ifdef HAVE_MATH_H | |
23583 | #include <math.h> | |
1409cd0b | 23584 | #endif |
db9f46a9 TG |
23585 | |
23586 | int (*ptr)() = (int (*)())erf; | |
23587 | ||
1409cd0b FXC |
23588 | int |
23589 | main () | |
23590 | { | |
1409cd0b FXC |
23591 | return 0; |
23592 | } | |
db9f46a9 | 23593 | |
1409cd0b | 23594 | _ACEOF |
5213506e | 23595 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23596 | gcc_cv_math_func_erf=yes |
1409cd0b | 23597 | else |
db9f46a9 | 23598 | gcc_cv_math_func_erf=no |
1409cd0b | 23599 | fi |
5213506e RW |
23600 | rm -f core conftest.err conftest.$ac_objext \ |
23601 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23602 | fi |
db9f46a9 TG |
23603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23604 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23605 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 23606 | |
f38a14ca TG |
23607 | cat >>confdefs.h <<_ACEOF |
23608 | #define HAVE_ERF 1 | |
23609 | _ACEOF | |
db9f46a9 TG |
23610 | |
23611 | fi | |
1409cd0b | 23612 | |
1409cd0b | 23613 | |
1409cd0b | 23614 | |
db9f46a9 | 23615 | |
db9f46a9 TG |
23616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23617 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 23618 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 23619 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23620 | else |
db9f46a9 | 23621 | if test x$gcc_no_link = xyes; then |
22e05272 | 23622 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23623 | fi |
5213506e | 23624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23625 | /* end confdefs.h. */ |
23626 | ||
db9f46a9 TG |
23627 | #ifdef HAVE_COMPLEX_H |
23628 | #include <complex.h> | |
23629 | #endif | |
23630 | #ifdef HAVE_MATH_H | |
23631 | #include <math.h> | |
1409cd0b | 23632 | #endif |
db9f46a9 TG |
23633 | |
23634 | int (*ptr)() = (int (*)())erfcf; | |
23635 | ||
1409cd0b FXC |
23636 | int |
23637 | main () | |
23638 | { | |
1409cd0b FXC |
23639 | return 0; |
23640 | } | |
db9f46a9 | 23641 | |
1409cd0b | 23642 | _ACEOF |
5213506e | 23643 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23644 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 23645 | else |
db9f46a9 | 23646 | gcc_cv_math_func_erfcf=no |
1409cd0b | 23647 | fi |
5213506e RW |
23648 | rm -f core conftest.err conftest.$ac_objext \ |
23649 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23650 | fi |
db9f46a9 TG |
23651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23652 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23653 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 23654 | |
f38a14ca TG |
23655 | cat >>confdefs.h <<_ACEOF |
23656 | #define HAVE_ERFCF 1 | |
23657 | _ACEOF | |
db9f46a9 TG |
23658 | |
23659 | fi | |
1409cd0b | 23660 | |
1409cd0b | 23661 | |
1409cd0b | 23662 | |
db9f46a9 TG |
23663 | |
23664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23665 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 23666 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 23667 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23668 | else |
db9f46a9 | 23669 | if test x$gcc_no_link = xyes; then |
22e05272 | 23670 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23671 | fi |
5213506e | 23672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23673 | /* end confdefs.h. */ |
23674 | ||
db9f46a9 TG |
23675 | #ifdef HAVE_COMPLEX_H |
23676 | #include <complex.h> | |
1409cd0b | 23677 | #endif |
db9f46a9 TG |
23678 | #ifdef HAVE_MATH_H |
23679 | #include <math.h> | |
23680 | #endif | |
23681 | ||
23682 | int (*ptr)() = (int (*)())erfc; | |
23683 | ||
69a2d125 EB |
23684 | int |
23685 | main () | |
23686 | { | |
69a2d125 EB |
23687 | return 0; |
23688 | } | |
db9f46a9 | 23689 | |
69a2d125 | 23690 | _ACEOF |
5213506e | 23691 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23692 | gcc_cv_math_func_erfc=yes |
69a2d125 | 23693 | else |
db9f46a9 | 23694 | gcc_cv_math_func_erfc=no |
69a2d125 | 23695 | fi |
5213506e RW |
23696 | rm -f core conftest.err conftest.$ac_objext \ |
23697 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 23698 | fi |
db9f46a9 TG |
23699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
23700 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
23701 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 23702 | |
f38a14ca TG |
23703 | cat >>confdefs.h <<_ACEOF |
23704 | #define HAVE_ERFC 1 | |
23705 | _ACEOF | |
db9f46a9 TG |
23706 | |
23707 | fi | |
23708 | ||
69a2d125 | 23709 | |
69a2d125 | 23710 | |
69a2d125 | 23711 | |
db9f46a9 TG |
23712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
23713 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 23714 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 23715 | $as_echo_n "(cached) " >&6 |
e8525382 | 23716 | else |
db9f46a9 | 23717 | if test x$gcc_no_link = xyes; then |
22e05272 | 23718 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23719 | fi |
5213506e | 23720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23721 | /* end confdefs.h. */ |
23722 | ||
db9f46a9 TG |
23723 | #ifdef HAVE_COMPLEX_H |
23724 | #include <complex.h> | |
23725 | #endif | |
23726 | #ifdef HAVE_MATH_H | |
23727 | #include <math.h> | |
e8525382 | 23728 | #endif |
db9f46a9 TG |
23729 | |
23730 | int (*ptr)() = (int (*)())erfcl; | |
23731 | ||
e8525382 SK |
23732 | int |
23733 | main () | |
23734 | { | |
e8525382 SK |
23735 | return 0; |
23736 | } | |
db9f46a9 | 23737 | |
e8525382 | 23738 | _ACEOF |
5213506e | 23739 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23740 | gcc_cv_math_func_erfcl=yes |
e8525382 | 23741 | else |
db9f46a9 | 23742 | gcc_cv_math_func_erfcl=no |
e8525382 | 23743 | fi |
5213506e RW |
23744 | rm -f core conftest.err conftest.$ac_objext \ |
23745 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 23746 | fi |
db9f46a9 TG |
23747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
23748 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
23749 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 23750 | |
f38a14ca TG |
23751 | cat >>confdefs.h <<_ACEOF |
23752 | #define HAVE_ERFCL 1 | |
23753 | _ACEOF | |
db9f46a9 TG |
23754 | |
23755 | fi | |
e8525382 | 23756 | |
e8525382 | 23757 | |
e8525382 | 23758 | |
db9f46a9 TG |
23759 | |
23760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
23761 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 23762 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 23763 | $as_echo_n "(cached) " >&6 |
e8525382 | 23764 | else |
db9f46a9 | 23765 | if test x$gcc_no_link = xyes; then |
22e05272 | 23766 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23767 | fi |
5213506e | 23768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23769 | /* end confdefs.h. */ |
23770 | ||
db9f46a9 TG |
23771 | #ifdef HAVE_COMPLEX_H |
23772 | #include <complex.h> | |
e8525382 | 23773 | #endif |
db9f46a9 TG |
23774 | #ifdef HAVE_MATH_H |
23775 | #include <math.h> | |
23776 | #endif | |
23777 | ||
23778 | int (*ptr)() = (int (*)())j0f; | |
23779 | ||
e8525382 SK |
23780 | int |
23781 | main () | |
23782 | { | |
e8525382 SK |
23783 | return 0; |
23784 | } | |
db9f46a9 | 23785 | |
e8525382 | 23786 | _ACEOF |
5213506e | 23787 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23788 | gcc_cv_math_func_j0f=yes |
e8525382 | 23789 | else |
db9f46a9 | 23790 | gcc_cv_math_func_j0f=no |
1409cd0b | 23791 | fi |
5213506e RW |
23792 | rm -f core conftest.err conftest.$ac_objext \ |
23793 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23794 | fi |
db9f46a9 TG |
23795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
23796 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
23797 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 23798 | |
f38a14ca TG |
23799 | cat >>confdefs.h <<_ACEOF |
23800 | #define HAVE_J0F 1 | |
23801 | _ACEOF | |
1409cd0b | 23802 | |
db9f46a9 | 23803 | fi |
1409cd0b | 23804 | |
1409cd0b | 23805 | |
db9f46a9 TG |
23806 | |
23807 | ||
23808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
23809 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 23810 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 23811 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23812 | else |
db9f46a9 | 23813 | if test x$gcc_no_link = xyes; then |
22e05272 | 23814 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23815 | fi |
5213506e | 23816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23817 | /* end confdefs.h. */ |
23818 | ||
db9f46a9 TG |
23819 | #ifdef HAVE_COMPLEX_H |
23820 | #include <complex.h> | |
23821 | #endif | |
23822 | #ifdef HAVE_MATH_H | |
23823 | #include <math.h> | |
1409cd0b | 23824 | #endif |
db9f46a9 TG |
23825 | |
23826 | int (*ptr)() = (int (*)())j0; | |
23827 | ||
1409cd0b FXC |
23828 | int |
23829 | main () | |
23830 | { | |
1409cd0b FXC |
23831 | return 0; |
23832 | } | |
db9f46a9 | 23833 | |
1409cd0b | 23834 | _ACEOF |
5213506e | 23835 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23836 | gcc_cv_math_func_j0=yes |
1409cd0b | 23837 | else |
db9f46a9 | 23838 | gcc_cv_math_func_j0=no |
1409cd0b | 23839 | fi |
5213506e RW |
23840 | rm -f core conftest.err conftest.$ac_objext \ |
23841 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23842 | fi |
db9f46a9 TG |
23843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
23844 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
23845 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 23846 | |
f38a14ca TG |
23847 | cat >>confdefs.h <<_ACEOF |
23848 | #define HAVE_J0 1 | |
23849 | _ACEOF | |
db9f46a9 TG |
23850 | |
23851 | fi | |
1409cd0b | 23852 | |
1409cd0b | 23853 | |
1409cd0b | 23854 | |
db9f46a9 | 23855 | |
db9f46a9 TG |
23856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
23857 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 23858 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 23859 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23860 | else |
db9f46a9 | 23861 | if test x$gcc_no_link = xyes; then |
22e05272 | 23862 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23863 | fi |
5213506e | 23864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23865 | /* end confdefs.h. */ |
23866 | ||
db9f46a9 TG |
23867 | #ifdef HAVE_COMPLEX_H |
23868 | #include <complex.h> | |
23869 | #endif | |
23870 | #ifdef HAVE_MATH_H | |
23871 | #include <math.h> | |
1409cd0b | 23872 | #endif |
db9f46a9 TG |
23873 | |
23874 | int (*ptr)() = (int (*)())j1f; | |
23875 | ||
1409cd0b FXC |
23876 | int |
23877 | main () | |
23878 | { | |
1409cd0b FXC |
23879 | return 0; |
23880 | } | |
db9f46a9 | 23881 | |
1409cd0b | 23882 | _ACEOF |
5213506e | 23883 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23884 | gcc_cv_math_func_j1f=yes |
1409cd0b | 23885 | else |
db9f46a9 | 23886 | gcc_cv_math_func_j1f=no |
e8525382 | 23887 | fi |
5213506e RW |
23888 | rm -f core conftest.err conftest.$ac_objext \ |
23889 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 23890 | fi |
db9f46a9 TG |
23891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
23892 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
23893 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 23894 | |
f38a14ca TG |
23895 | cat >>confdefs.h <<_ACEOF |
23896 | #define HAVE_J1F 1 | |
23897 | _ACEOF | |
db9f46a9 TG |
23898 | |
23899 | fi | |
e8525382 | 23900 | |
e8525382 | 23901 | |
e8525382 | 23902 | |
db9f46a9 TG |
23903 | |
23904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
23905 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 23906 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 23907 | $as_echo_n "(cached) " >&6 |
e8525382 | 23908 | else |
db9f46a9 | 23909 | if test x$gcc_no_link = xyes; then |
22e05272 | 23910 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23911 | fi |
5213506e | 23912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23913 | /* end confdefs.h. */ |
23914 | ||
db9f46a9 TG |
23915 | #ifdef HAVE_COMPLEX_H |
23916 | #include <complex.h> | |
e8525382 | 23917 | #endif |
db9f46a9 TG |
23918 | #ifdef HAVE_MATH_H |
23919 | #include <math.h> | |
23920 | #endif | |
23921 | ||
23922 | int (*ptr)() = (int (*)())j1; | |
23923 | ||
e8525382 SK |
23924 | int |
23925 | main () | |
23926 | { | |
e8525382 SK |
23927 | return 0; |
23928 | } | |
db9f46a9 | 23929 | |
e8525382 | 23930 | _ACEOF |
5213506e | 23931 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23932 | gcc_cv_math_func_j1=yes |
e8525382 | 23933 | else |
db9f46a9 | 23934 | gcc_cv_math_func_j1=no |
e8525382 | 23935 | fi |
5213506e RW |
23936 | rm -f core conftest.err conftest.$ac_objext \ |
23937 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 23938 | fi |
db9f46a9 TG |
23939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
23940 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
23941 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 23942 | |
f38a14ca TG |
23943 | cat >>confdefs.h <<_ACEOF |
23944 | #define HAVE_J1 1 | |
23945 | _ACEOF | |
e8525382 | 23946 | |
db9f46a9 | 23947 | fi |
e8525382 | 23948 | |
e8525382 | 23949 | |
db9f46a9 TG |
23950 | |
23951 | ||
db9f46a9 TG |
23952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
23953 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 23954 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 23955 | $as_echo_n "(cached) " >&6 |
e8525382 | 23956 | else |
db9f46a9 | 23957 | if test x$gcc_no_link = xyes; then |
22e05272 | 23958 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23959 | fi |
5213506e | 23960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23961 | /* end confdefs.h. */ |
23962 | ||
db9f46a9 TG |
23963 | #ifdef HAVE_COMPLEX_H |
23964 | #include <complex.h> | |
e8525382 | 23965 | #endif |
db9f46a9 TG |
23966 | #ifdef HAVE_MATH_H |
23967 | #include <math.h> | |
23968 | #endif | |
23969 | ||
23970 | int (*ptr)() = (int (*)())jnf; | |
23971 | ||
e8525382 SK |
23972 | int |
23973 | main () | |
23974 | { | |
e8525382 SK |
23975 | return 0; |
23976 | } | |
db9f46a9 | 23977 | |
e8525382 | 23978 | _ACEOF |
5213506e | 23979 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23980 | gcc_cv_math_func_jnf=yes |
e8525382 | 23981 | else |
db9f46a9 | 23982 | gcc_cv_math_func_jnf=no |
e8525382 | 23983 | fi |
5213506e RW |
23984 | rm -f core conftest.err conftest.$ac_objext \ |
23985 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 23986 | fi |
db9f46a9 TG |
23987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
23988 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
23989 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 23990 | |
f38a14ca TG |
23991 | cat >>confdefs.h <<_ACEOF |
23992 | #define HAVE_JNF 1 | |
23993 | _ACEOF | |
db9f46a9 TG |
23994 | |
23995 | fi | |
23996 | ||
e8525382 | 23997 | |
e8525382 | 23998 | |
e8525382 | 23999 | |
db9f46a9 TG |
24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24001 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24002 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24003 | $as_echo_n "(cached) " >&6 |
e8525382 | 24004 | else |
db9f46a9 | 24005 | if test x$gcc_no_link = xyes; then |
22e05272 | 24006 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24007 | fi |
5213506e | 24008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24009 | /* end confdefs.h. */ |
24010 | ||
db9f46a9 TG |
24011 | #ifdef HAVE_COMPLEX_H |
24012 | #include <complex.h> | |
24013 | #endif | |
24014 | #ifdef HAVE_MATH_H | |
24015 | #include <math.h> | |
e8525382 | 24016 | #endif |
db9f46a9 TG |
24017 | |
24018 | int (*ptr)() = (int (*)())jn; | |
24019 | ||
e8525382 SK |
24020 | int |
24021 | main () | |
24022 | { | |
e8525382 SK |
24023 | return 0; |
24024 | } | |
db9f46a9 | 24025 | |
e8525382 | 24026 | _ACEOF |
5213506e | 24027 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24028 | gcc_cv_math_func_jn=yes |
e8525382 | 24029 | else |
db9f46a9 | 24030 | gcc_cv_math_func_jn=no |
e8525382 | 24031 | fi |
5213506e RW |
24032 | rm -f core conftest.err conftest.$ac_objext \ |
24033 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24034 | fi |
db9f46a9 TG |
24035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24036 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24037 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24038 | |
f38a14ca TG |
24039 | cat >>confdefs.h <<_ACEOF |
24040 | #define HAVE_JN 1 | |
24041 | _ACEOF | |
db9f46a9 TG |
24042 | |
24043 | fi | |
e8525382 | 24044 | |
e8525382 | 24045 | |
e8525382 | 24046 | |
db9f46a9 TG |
24047 | |
24048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24049 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24050 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24051 | $as_echo_n "(cached) " >&6 |
e8525382 | 24052 | else |
db9f46a9 | 24053 | if test x$gcc_no_link = xyes; then |
22e05272 | 24054 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24055 | fi |
5213506e | 24056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24057 | /* end confdefs.h. */ |
24058 | ||
db9f46a9 TG |
24059 | #ifdef HAVE_COMPLEX_H |
24060 | #include <complex.h> | |
e8525382 | 24061 | #endif |
db9f46a9 TG |
24062 | #ifdef HAVE_MATH_H |
24063 | #include <math.h> | |
24064 | #endif | |
24065 | ||
24066 | int (*ptr)() = (int (*)())jnl; | |
24067 | ||
e8525382 SK |
24068 | int |
24069 | main () | |
24070 | { | |
e8525382 SK |
24071 | return 0; |
24072 | } | |
db9f46a9 | 24073 | |
e8525382 | 24074 | _ACEOF |
5213506e | 24075 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24076 | gcc_cv_math_func_jnl=yes |
e8525382 | 24077 | else |
db9f46a9 | 24078 | gcc_cv_math_func_jnl=no |
e8525382 | 24079 | fi |
5213506e RW |
24080 | rm -f core conftest.err conftest.$ac_objext \ |
24081 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24082 | fi |
db9f46a9 TG |
24083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24084 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24085 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24086 | |
f38a14ca TG |
24087 | cat >>confdefs.h <<_ACEOF |
24088 | #define HAVE_JNL 1 | |
24089 | _ACEOF | |
e8525382 | 24090 | |
db9f46a9 | 24091 | fi |
e8525382 | 24092 | |
e8525382 | 24093 | |
db9f46a9 TG |
24094 | |
24095 | ||
24096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24097 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24098 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24099 | $as_echo_n "(cached) " >&6 |
e8525382 | 24100 | else |
db9f46a9 | 24101 | if test x$gcc_no_link = xyes; then |
22e05272 | 24102 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24103 | fi |
5213506e | 24104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24105 | /* end confdefs.h. */ |
24106 | ||
db9f46a9 TG |
24107 | #ifdef HAVE_COMPLEX_H |
24108 | #include <complex.h> | |
24109 | #endif | |
24110 | #ifdef HAVE_MATH_H | |
24111 | #include <math.h> | |
e8525382 | 24112 | #endif |
db9f46a9 TG |
24113 | |
24114 | int (*ptr)() = (int (*)())y0f; | |
24115 | ||
e8525382 SK |
24116 | int |
24117 | main () | |
24118 | { | |
e8525382 SK |
24119 | return 0; |
24120 | } | |
db9f46a9 | 24121 | |
e8525382 | 24122 | _ACEOF |
5213506e | 24123 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24124 | gcc_cv_math_func_y0f=yes |
e8525382 | 24125 | else |
db9f46a9 | 24126 | gcc_cv_math_func_y0f=no |
e8525382 | 24127 | fi |
5213506e RW |
24128 | rm -f core conftest.err conftest.$ac_objext \ |
24129 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24130 | fi |
db9f46a9 TG |
24131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24132 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24133 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24134 | |
f38a14ca TG |
24135 | cat >>confdefs.h <<_ACEOF |
24136 | #define HAVE_Y0F 1 | |
24137 | _ACEOF | |
db9f46a9 TG |
24138 | |
24139 | fi | |
e8525382 | 24140 | |
e8525382 | 24141 | |
e8525382 | 24142 | |
db9f46a9 TG |
24143 | |
24144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24145 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24146 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24147 | $as_echo_n "(cached) " >&6 |
e8525382 | 24148 | else |
db9f46a9 | 24149 | if test x$gcc_no_link = xyes; then |
22e05272 | 24150 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24151 | fi |
5213506e | 24152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24153 | /* end confdefs.h. */ |
24154 | ||
db9f46a9 TG |
24155 | #ifdef HAVE_COMPLEX_H |
24156 | #include <complex.h> | |
e8525382 | 24157 | #endif |
db9f46a9 TG |
24158 | #ifdef HAVE_MATH_H |
24159 | #include <math.h> | |
24160 | #endif | |
24161 | ||
24162 | int (*ptr)() = (int (*)())y0; | |
24163 | ||
e8525382 SK |
24164 | int |
24165 | main () | |
24166 | { | |
e8525382 SK |
24167 | return 0; |
24168 | } | |
db9f46a9 | 24169 | |
e8525382 | 24170 | _ACEOF |
5213506e | 24171 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24172 | gcc_cv_math_func_y0=yes |
e8525382 | 24173 | else |
db9f46a9 | 24174 | gcc_cv_math_func_y0=no |
e8525382 | 24175 | fi |
5213506e RW |
24176 | rm -f core conftest.err conftest.$ac_objext \ |
24177 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24178 | fi |
db9f46a9 TG |
24179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24180 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24181 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24182 | |
f38a14ca TG |
24183 | cat >>confdefs.h <<_ACEOF |
24184 | #define HAVE_Y0 1 | |
24185 | _ACEOF | |
db9f46a9 TG |
24186 | |
24187 | fi | |
24188 | ||
e8525382 | 24189 | |
e8525382 | 24190 | |
e8525382 | 24191 | |
db9f46a9 TG |
24192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24193 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24194 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24195 | $as_echo_n "(cached) " >&6 |
e8525382 | 24196 | else |
db9f46a9 | 24197 | if test x$gcc_no_link = xyes; then |
22e05272 | 24198 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24199 | fi |
5213506e | 24200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24201 | /* end confdefs.h. */ |
24202 | ||
db9f46a9 TG |
24203 | #ifdef HAVE_COMPLEX_H |
24204 | #include <complex.h> | |
e8525382 | 24205 | #endif |
db9f46a9 TG |
24206 | #ifdef HAVE_MATH_H |
24207 | #include <math.h> | |
24208 | #endif | |
24209 | ||
24210 | int (*ptr)() = (int (*)())y1f; | |
24211 | ||
e8525382 SK |
24212 | int |
24213 | main () | |
24214 | { | |
e8525382 SK |
24215 | return 0; |
24216 | } | |
db9f46a9 | 24217 | |
e8525382 | 24218 | _ACEOF |
5213506e | 24219 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24220 | gcc_cv_math_func_y1f=yes |
e8525382 | 24221 | else |
db9f46a9 | 24222 | gcc_cv_math_func_y1f=no |
e8525382 | 24223 | fi |
5213506e RW |
24224 | rm -f core conftest.err conftest.$ac_objext \ |
24225 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24226 | fi |
db9f46a9 TG |
24227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24228 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24229 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24230 | |
f38a14ca TG |
24231 | cat >>confdefs.h <<_ACEOF |
24232 | #define HAVE_Y1F 1 | |
24233 | _ACEOF | |
e8525382 | 24234 | |
db9f46a9 | 24235 | fi |
e8525382 | 24236 | |
e8525382 | 24237 | |
db9f46a9 TG |
24238 | |
24239 | ||
24240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24241 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24242 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24243 | $as_echo_n "(cached) " >&6 |
e8525382 | 24244 | else |
db9f46a9 | 24245 | if test x$gcc_no_link = xyes; then |
22e05272 | 24246 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24247 | fi |
5213506e | 24248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24249 | /* end confdefs.h. */ |
24250 | ||
db9f46a9 TG |
24251 | #ifdef HAVE_COMPLEX_H |
24252 | #include <complex.h> | |
24253 | #endif | |
24254 | #ifdef HAVE_MATH_H | |
24255 | #include <math.h> | |
e8525382 | 24256 | #endif |
db9f46a9 TG |
24257 | |
24258 | int (*ptr)() = (int (*)())y1; | |
24259 | ||
e8525382 SK |
24260 | int |
24261 | main () | |
24262 | { | |
e8525382 SK |
24263 | return 0; |
24264 | } | |
db9f46a9 | 24265 | |
e8525382 | 24266 | _ACEOF |
5213506e | 24267 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24268 | gcc_cv_math_func_y1=yes |
e8525382 | 24269 | else |
db9f46a9 | 24270 | gcc_cv_math_func_y1=no |
e8525382 | 24271 | fi |
5213506e RW |
24272 | rm -f core conftest.err conftest.$ac_objext \ |
24273 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24274 | fi |
db9f46a9 TG |
24275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24276 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24277 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24278 | |
f38a14ca TG |
24279 | cat >>confdefs.h <<_ACEOF |
24280 | #define HAVE_Y1 1 | |
24281 | _ACEOF | |
db9f46a9 TG |
24282 | |
24283 | fi | |
e8525382 | 24284 | |
e8525382 | 24285 | |
e8525382 | 24286 | |
db9f46a9 | 24287 | |
db9f46a9 TG |
24288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24289 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24290 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24291 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24292 | else |
24293 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24294 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24295 | fi |
5213506e | 24296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24297 | /* end confdefs.h. */ |
24298 | ||
db9f46a9 TG |
24299 | #ifdef HAVE_COMPLEX_H |
24300 | #include <complex.h> | |
24301 | #endif | |
24302 | #ifdef HAVE_MATH_H | |
24303 | #include <math.h> | |
e8525382 | 24304 | #endif |
db9f46a9 TG |
24305 | |
24306 | int (*ptr)() = (int (*)())ynf; | |
24307 | ||
e8525382 SK |
24308 | int |
24309 | main () | |
24310 | { | |
e8525382 SK |
24311 | return 0; |
24312 | } | |
db9f46a9 | 24313 | |
e8525382 | 24314 | _ACEOF |
5213506e | 24315 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24316 | gcc_cv_math_func_ynf=yes |
e8525382 | 24317 | else |
db9f46a9 | 24318 | gcc_cv_math_func_ynf=no |
e8525382 | 24319 | fi |
5213506e RW |
24320 | rm -f core conftest.err conftest.$ac_objext \ |
24321 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24322 | fi |
db9f46a9 TG |
24323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24324 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24325 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24326 | |
f38a14ca TG |
24327 | cat >>confdefs.h <<_ACEOF |
24328 | #define HAVE_YNF 1 | |
24329 | _ACEOF | |
db9f46a9 TG |
24330 | |
24331 | fi | |
e8525382 | 24332 | |
e8525382 | 24333 | |
e8525382 | 24334 | |
db9f46a9 TG |
24335 | |
24336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24337 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24338 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24339 | $as_echo_n "(cached) " >&6 |
e8525382 | 24340 | else |
db9f46a9 | 24341 | if test x$gcc_no_link = xyes; then |
22e05272 | 24342 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24343 | fi |
5213506e | 24344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24345 | /* end confdefs.h. */ |
24346 | ||
db9f46a9 TG |
24347 | #ifdef HAVE_COMPLEX_H |
24348 | #include <complex.h> | |
e8525382 | 24349 | #endif |
db9f46a9 TG |
24350 | #ifdef HAVE_MATH_H |
24351 | #include <math.h> | |
24352 | #endif | |
24353 | ||
24354 | int (*ptr)() = (int (*)())yn; | |
24355 | ||
e8525382 SK |
24356 | int |
24357 | main () | |
24358 | { | |
e8525382 SK |
24359 | return 0; |
24360 | } | |
db9f46a9 | 24361 | |
e8525382 | 24362 | _ACEOF |
5213506e | 24363 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24364 | gcc_cv_math_func_yn=yes |
e8525382 | 24365 | else |
db9f46a9 | 24366 | gcc_cv_math_func_yn=no |
e8525382 | 24367 | fi |
5213506e RW |
24368 | rm -f core conftest.err conftest.$ac_objext \ |
24369 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24370 | fi |
db9f46a9 TG |
24371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24372 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24373 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24374 | |
f38a14ca TG |
24375 | cat >>confdefs.h <<_ACEOF |
24376 | #define HAVE_YN 1 | |
24377 | _ACEOF | |
db9f46a9 TG |
24378 | |
24379 | fi | |
24380 | ||
e8525382 | 24381 | |
e8525382 | 24382 | |
e8525382 | 24383 | |
db9f46a9 TG |
24384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24385 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24386 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24387 | $as_echo_n "(cached) " >&6 |
e8525382 | 24388 | else |
db9f46a9 | 24389 | if test x$gcc_no_link = xyes; then |
22e05272 | 24390 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24391 | fi |
5213506e | 24392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24393 | /* end confdefs.h. */ |
24394 | ||
db9f46a9 TG |
24395 | #ifdef HAVE_COMPLEX_H |
24396 | #include <complex.h> | |
24397 | #endif | |
24398 | #ifdef HAVE_MATH_H | |
24399 | #include <math.h> | |
e8525382 | 24400 | #endif |
db9f46a9 TG |
24401 | |
24402 | int (*ptr)() = (int (*)())ynl; | |
24403 | ||
e8525382 SK |
24404 | int |
24405 | main () | |
24406 | { | |
e8525382 SK |
24407 | return 0; |
24408 | } | |
db9f46a9 | 24409 | |
e8525382 | 24410 | _ACEOF |
5213506e | 24411 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24412 | gcc_cv_math_func_ynl=yes |
e8525382 | 24413 | else |
db9f46a9 | 24414 | gcc_cv_math_func_ynl=no |
e8525382 | 24415 | fi |
5213506e RW |
24416 | rm -f core conftest.err conftest.$ac_objext \ |
24417 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24418 | fi |
db9f46a9 TG |
24419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24420 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24421 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24422 | |
f38a14ca TG |
24423 | cat >>confdefs.h <<_ACEOF |
24424 | #define HAVE_YNL 1 | |
24425 | _ACEOF | |
db9f46a9 TG |
24426 | |
24427 | fi | |
e8525382 | 24428 | |
e8525382 | 24429 | |
e8525382 | 24430 | |
db9f46a9 TG |
24431 | |
24432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24433 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24434 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24435 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24436 | else |
db9f46a9 | 24437 | if test x$gcc_no_link = xyes; then |
22e05272 | 24438 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24439 | fi |
5213506e | 24440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24441 | /* end confdefs.h. */ |
24442 | ||
db9f46a9 TG |
24443 | #ifdef HAVE_COMPLEX_H |
24444 | #include <complex.h> | |
fb0a0e15 | 24445 | #endif |
db9f46a9 TG |
24446 | #ifdef HAVE_MATH_H |
24447 | #include <math.h> | |
24448 | #endif | |
24449 | ||
24450 | int (*ptr)() = (int (*)())tgamma; | |
24451 | ||
fb0a0e15 FXC |
24452 | int |
24453 | main () | |
24454 | { | |
fb0a0e15 FXC |
24455 | return 0; |
24456 | } | |
db9f46a9 | 24457 | |
fb0a0e15 | 24458 | _ACEOF |
5213506e | 24459 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24460 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24461 | else |
db9f46a9 | 24462 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24463 | fi |
5213506e RW |
24464 | rm -f core conftest.err conftest.$ac_objext \ |
24465 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24466 | fi |
db9f46a9 TG |
24467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24468 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24469 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24470 | |
f38a14ca TG |
24471 | cat >>confdefs.h <<_ACEOF |
24472 | #define HAVE_TGAMMA 1 | |
24473 | _ACEOF | |
fb0a0e15 | 24474 | |
db9f46a9 | 24475 | fi |
fb0a0e15 | 24476 | |
fb0a0e15 | 24477 | |
db9f46a9 TG |
24478 | |
24479 | ||
24480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24481 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24482 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24483 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24484 | else |
db9f46a9 | 24485 | if test x$gcc_no_link = xyes; then |
22e05272 | 24486 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24487 | fi |
5213506e | 24488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24489 | /* end confdefs.h. */ |
24490 | ||
db9f46a9 TG |
24491 | #ifdef HAVE_COMPLEX_H |
24492 | #include <complex.h> | |
24493 | #endif | |
24494 | #ifdef HAVE_MATH_H | |
24495 | #include <math.h> | |
fb0a0e15 | 24496 | #endif |
db9f46a9 TG |
24497 | |
24498 | int (*ptr)() = (int (*)())tgammaf; | |
24499 | ||
fb0a0e15 FXC |
24500 | int |
24501 | main () | |
24502 | { | |
fb0a0e15 FXC |
24503 | return 0; |
24504 | } | |
db9f46a9 | 24505 | |
fb0a0e15 | 24506 | _ACEOF |
5213506e | 24507 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24508 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24509 | else |
db9f46a9 | 24510 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24511 | fi |
5213506e RW |
24512 | rm -f core conftest.err conftest.$ac_objext \ |
24513 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24514 | fi |
db9f46a9 TG |
24515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24516 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24517 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24518 | |
f38a14ca TG |
24519 | cat >>confdefs.h <<_ACEOF |
24520 | #define HAVE_TGAMMAF 1 | |
24521 | _ACEOF | |
db9f46a9 TG |
24522 | |
24523 | fi | |
fb0a0e15 | 24524 | |
fb0a0e15 | 24525 | |
fb0a0e15 | 24526 | |
db9f46a9 | 24527 | |
db9f46a9 TG |
24528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24529 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24530 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24531 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24532 | else |
db9f46a9 | 24533 | if test x$gcc_no_link = xyes; then |
22e05272 | 24534 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24535 | fi |
5213506e | 24536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24537 | /* end confdefs.h. */ |
24538 | ||
db9f46a9 TG |
24539 | #ifdef HAVE_COMPLEX_H |
24540 | #include <complex.h> | |
24541 | #endif | |
24542 | #ifdef HAVE_MATH_H | |
24543 | #include <math.h> | |
fb0a0e15 | 24544 | #endif |
db9f46a9 TG |
24545 | |
24546 | int (*ptr)() = (int (*)())lgamma; | |
24547 | ||
fb0a0e15 FXC |
24548 | int |
24549 | main () | |
24550 | { | |
fb0a0e15 FXC |
24551 | return 0; |
24552 | } | |
db9f46a9 | 24553 | |
fb0a0e15 | 24554 | _ACEOF |
5213506e | 24555 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24556 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24557 | else |
db9f46a9 | 24558 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24559 | fi |
5213506e RW |
24560 | rm -f core conftest.err conftest.$ac_objext \ |
24561 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24562 | fi |
db9f46a9 TG |
24563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24564 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24565 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24566 | |
f38a14ca TG |
24567 | cat >>confdefs.h <<_ACEOF |
24568 | #define HAVE_LGAMMA 1 | |
24569 | _ACEOF | |
db9f46a9 TG |
24570 | |
24571 | fi | |
fb0a0e15 | 24572 | |
fb0a0e15 | 24573 | |
fb0a0e15 | 24574 | |
db9f46a9 TG |
24575 | |
24576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24577 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24578 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24579 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24580 | else |
db9f46a9 | 24581 | if test x$gcc_no_link = xyes; then |
22e05272 | 24582 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24583 | fi |
5213506e | 24584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24585 | /* end confdefs.h. */ |
24586 | ||
db9f46a9 TG |
24587 | #ifdef HAVE_COMPLEX_H |
24588 | #include <complex.h> | |
fb0a0e15 | 24589 | #endif |
db9f46a9 TG |
24590 | #ifdef HAVE_MATH_H |
24591 | #include <math.h> | |
24592 | #endif | |
24593 | ||
24594 | int (*ptr)() = (int (*)())lgammaf; | |
24595 | ||
fb0a0e15 FXC |
24596 | int |
24597 | main () | |
24598 | { | |
fb0a0e15 FXC |
24599 | return 0; |
24600 | } | |
db9f46a9 | 24601 | |
fb0a0e15 | 24602 | _ACEOF |
5213506e | 24603 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24604 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 24605 | else |
db9f46a9 | 24606 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 24607 | fi |
5213506e RW |
24608 | rm -f core conftest.err conftest.$ac_objext \ |
24609 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24610 | fi |
db9f46a9 TG |
24611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24612 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24613 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 24614 | |
f38a14ca TG |
24615 | cat >>confdefs.h <<_ACEOF |
24616 | #define HAVE_LGAMMAF 1 | |
24617 | _ACEOF | |
fb0a0e15 | 24618 | |
db9f46a9 | 24619 | fi |
fb0a0e15 | 24620 | |
fb0a0e15 | 24621 | |
db1cf15c | 24622 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
24623 | |
24624 | ||
24625 | ||
24626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24627 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 24628 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
24629 | $as_echo_n "(cached) " >&6 |
24630 | else | |
db9f46a9 | 24631 | if test x$gcc_no_link = xyes; then |
22e05272 | 24632 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24633 | fi |
24634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24635 | /* end confdefs.h. */ | |
24636 | ||
db9f46a9 TG |
24637 | #ifdef HAVE_COMPLEX_H |
24638 | #include <complex.h> | |
db1cf15c | 24639 | #endif |
db9f46a9 TG |
24640 | #ifdef HAVE_MATH_H |
24641 | #include <math.h> | |
24642 | #endif | |
24643 | ||
24644 | int (*ptr)() = (int (*)())cacos; | |
24645 | ||
db1cf15c IS |
24646 | int |
24647 | main () | |
24648 | { | |
db1cf15c IS |
24649 | return 0; |
24650 | } | |
db9f46a9 | 24651 | |
db1cf15c IS |
24652 | _ACEOF |
24653 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24654 | gcc_cv_math_func_cacos=yes |
db1cf15c | 24655 | else |
db9f46a9 | 24656 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
24657 | fi |
24658 | rm -f core conftest.err conftest.$ac_objext \ | |
24659 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24660 | fi |
db9f46a9 TG |
24661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24662 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24663 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 24664 | |
f38a14ca TG |
24665 | cat >>confdefs.h <<_ACEOF |
24666 | #define HAVE_CACOS 1 | |
24667 | _ACEOF | |
db1cf15c | 24668 | |
db9f46a9 | 24669 | fi |
db1cf15c | 24670 | |
db1cf15c | 24671 | |
db9f46a9 TG |
24672 | |
24673 | ||
24674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24675 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 24676 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
24677 | $as_echo_n "(cached) " >&6 |
24678 | else | |
db9f46a9 | 24679 | if test x$gcc_no_link = xyes; then |
22e05272 | 24680 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24681 | fi |
24682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24683 | /* end confdefs.h. */ | |
24684 | ||
db9f46a9 TG |
24685 | #ifdef HAVE_COMPLEX_H |
24686 | #include <complex.h> | |
24687 | #endif | |
24688 | #ifdef HAVE_MATH_H | |
24689 | #include <math.h> | |
db1cf15c | 24690 | #endif |
db9f46a9 TG |
24691 | |
24692 | int (*ptr)() = (int (*)())cacosf; | |
24693 | ||
db1cf15c IS |
24694 | int |
24695 | main () | |
24696 | { | |
db1cf15c IS |
24697 | return 0; |
24698 | } | |
db9f46a9 | 24699 | |
db1cf15c IS |
24700 | _ACEOF |
24701 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24702 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 24703 | else |
db9f46a9 | 24704 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
24705 | fi |
24706 | rm -f core conftest.err conftest.$ac_objext \ | |
24707 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24708 | fi |
db9f46a9 TG |
24709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
24710 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
24711 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 24712 | |
f38a14ca TG |
24713 | cat >>confdefs.h <<_ACEOF |
24714 | #define HAVE_CACOSF 1 | |
24715 | _ACEOF | |
db9f46a9 TG |
24716 | |
24717 | fi | |
db1cf15c | 24718 | |
db1cf15c | 24719 | |
db1cf15c | 24720 | |
db9f46a9 TG |
24721 | |
24722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
24723 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 24724 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
24725 | $as_echo_n "(cached) " >&6 |
24726 | else | |
db9f46a9 | 24727 | if test x$gcc_no_link = xyes; then |
22e05272 | 24728 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24729 | fi |
24730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24731 | /* end confdefs.h. */ | |
24732 | ||
db9f46a9 TG |
24733 | #ifdef HAVE_COMPLEX_H |
24734 | #include <complex.h> | |
db1cf15c | 24735 | #endif |
db9f46a9 TG |
24736 | #ifdef HAVE_MATH_H |
24737 | #include <math.h> | |
24738 | #endif | |
24739 | ||
24740 | int (*ptr)() = (int (*)())cacosh; | |
24741 | ||
db1cf15c IS |
24742 | int |
24743 | main () | |
24744 | { | |
db1cf15c IS |
24745 | return 0; |
24746 | } | |
db9f46a9 | 24747 | |
db1cf15c IS |
24748 | _ACEOF |
24749 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24750 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 24751 | else |
db9f46a9 | 24752 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
24753 | fi |
24754 | rm -f core conftest.err conftest.$ac_objext \ | |
24755 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24756 | fi |
db9f46a9 TG |
24757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
24758 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
24759 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 24760 | |
f38a14ca TG |
24761 | cat >>confdefs.h <<_ACEOF |
24762 | #define HAVE_CACOSH 1 | |
24763 | _ACEOF | |
db9f46a9 TG |
24764 | |
24765 | fi | |
24766 | ||
db1cf15c | 24767 | |
db1cf15c | 24768 | |
db1cf15c | 24769 | |
db9f46a9 TG |
24770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
24771 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 24772 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
24773 | $as_echo_n "(cached) " >&6 |
24774 | else | |
db9f46a9 | 24775 | if test x$gcc_no_link = xyes; then |
22e05272 | 24776 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24777 | fi |
24778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24779 | /* end confdefs.h. */ | |
24780 | ||
db9f46a9 TG |
24781 | #ifdef HAVE_COMPLEX_H |
24782 | #include <complex.h> | |
24783 | #endif | |
24784 | #ifdef HAVE_MATH_H | |
24785 | #include <math.h> | |
db1cf15c | 24786 | #endif |
db9f46a9 TG |
24787 | |
24788 | int (*ptr)() = (int (*)())cacoshf; | |
24789 | ||
db1cf15c IS |
24790 | int |
24791 | main () | |
24792 | { | |
db1cf15c IS |
24793 | return 0; |
24794 | } | |
db9f46a9 | 24795 | |
db1cf15c IS |
24796 | _ACEOF |
24797 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24798 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 24799 | else |
db9f46a9 | 24800 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
24801 | fi |
24802 | rm -f core conftest.err conftest.$ac_objext \ | |
24803 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24804 | fi |
db9f46a9 TG |
24805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
24806 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
24807 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 24808 | |
f38a14ca TG |
24809 | cat >>confdefs.h <<_ACEOF |
24810 | #define HAVE_CACOSHF 1 | |
24811 | _ACEOF | |
db9f46a9 TG |
24812 | |
24813 | fi | |
db1cf15c | 24814 | |
db1cf15c | 24815 | |
db1cf15c | 24816 | |
db9f46a9 TG |
24817 | |
24818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
24819 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 24820 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
24821 | $as_echo_n "(cached) " >&6 |
24822 | else | |
db9f46a9 | 24823 | if test x$gcc_no_link = xyes; then |
22e05272 | 24824 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24825 | fi |
24826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24827 | /* end confdefs.h. */ | |
24828 | ||
db9f46a9 TG |
24829 | #ifdef HAVE_COMPLEX_H |
24830 | #include <complex.h> | |
db1cf15c | 24831 | #endif |
db9f46a9 TG |
24832 | #ifdef HAVE_MATH_H |
24833 | #include <math.h> | |
24834 | #endif | |
24835 | ||
24836 | int (*ptr)() = (int (*)())cacoshl; | |
24837 | ||
db1cf15c IS |
24838 | int |
24839 | main () | |
24840 | { | |
db1cf15c IS |
24841 | return 0; |
24842 | } | |
db9f46a9 | 24843 | |
db1cf15c IS |
24844 | _ACEOF |
24845 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24846 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 24847 | else |
db9f46a9 | 24848 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
24849 | fi |
24850 | rm -f core conftest.err conftest.$ac_objext \ | |
24851 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24852 | fi |
db9f46a9 TG |
24853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
24854 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
24855 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 24856 | |
f38a14ca TG |
24857 | cat >>confdefs.h <<_ACEOF |
24858 | #define HAVE_CACOSHL 1 | |
24859 | _ACEOF | |
db1cf15c | 24860 | |
db9f46a9 | 24861 | fi |
db1cf15c | 24862 | |
db1cf15c | 24863 | |
db9f46a9 TG |
24864 | |
24865 | ||
24866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
24867 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 24868 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
24869 | $as_echo_n "(cached) " >&6 |
24870 | else | |
db9f46a9 | 24871 | if test x$gcc_no_link = xyes; then |
22e05272 | 24872 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24873 | fi |
24874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24875 | /* end confdefs.h. */ | |
24876 | ||
db9f46a9 TG |
24877 | #ifdef HAVE_COMPLEX_H |
24878 | #include <complex.h> | |
24879 | #endif | |
24880 | #ifdef HAVE_MATH_H | |
24881 | #include <math.h> | |
db1cf15c | 24882 | #endif |
db9f46a9 TG |
24883 | |
24884 | int (*ptr)() = (int (*)())cacosl; | |
24885 | ||
db1cf15c IS |
24886 | int |
24887 | main () | |
24888 | { | |
db1cf15c IS |
24889 | return 0; |
24890 | } | |
db9f46a9 | 24891 | |
db1cf15c IS |
24892 | _ACEOF |
24893 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24894 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 24895 | else |
db9f46a9 | 24896 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
24897 | fi |
24898 | rm -f core conftest.err conftest.$ac_objext \ | |
24899 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24900 | fi |
db9f46a9 TG |
24901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
24902 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
24903 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 24904 | |
f38a14ca TG |
24905 | cat >>confdefs.h <<_ACEOF |
24906 | #define HAVE_CACOSL 1 | |
24907 | _ACEOF | |
db9f46a9 TG |
24908 | |
24909 | fi | |
db1cf15c | 24910 | |
db1cf15c | 24911 | |
db1cf15c | 24912 | |
db9f46a9 TG |
24913 | |
24914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
24915 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 24916 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
24917 | $as_echo_n "(cached) " >&6 |
24918 | else | |
db9f46a9 | 24919 | if test x$gcc_no_link = xyes; then |
22e05272 | 24920 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24921 | fi |
24922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24923 | /* end confdefs.h. */ | |
24924 | ||
db9f46a9 TG |
24925 | #ifdef HAVE_COMPLEX_H |
24926 | #include <complex.h> | |
db1cf15c | 24927 | #endif |
db9f46a9 TG |
24928 | #ifdef HAVE_MATH_H |
24929 | #include <math.h> | |
24930 | #endif | |
24931 | ||
24932 | int (*ptr)() = (int (*)())casin; | |
24933 | ||
db1cf15c IS |
24934 | int |
24935 | main () | |
24936 | { | |
db1cf15c IS |
24937 | return 0; |
24938 | } | |
db9f46a9 | 24939 | |
db1cf15c IS |
24940 | _ACEOF |
24941 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24942 | gcc_cv_math_func_casin=yes |
db1cf15c | 24943 | else |
db9f46a9 | 24944 | gcc_cv_math_func_casin=no |
db1cf15c IS |
24945 | fi |
24946 | rm -f core conftest.err conftest.$ac_objext \ | |
24947 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24948 | fi |
db9f46a9 TG |
24949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
24950 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
24951 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 24952 | |
f38a14ca TG |
24953 | cat >>confdefs.h <<_ACEOF |
24954 | #define HAVE_CASIN 1 | |
24955 | _ACEOF | |
db9f46a9 TG |
24956 | |
24957 | fi | |
24958 | ||
db1cf15c | 24959 | |
db1cf15c | 24960 | |
db1cf15c | 24961 | |
db9f46a9 TG |
24962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
24963 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 24964 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
24965 | $as_echo_n "(cached) " >&6 |
24966 | else | |
db9f46a9 | 24967 | if test x$gcc_no_link = xyes; then |
22e05272 | 24968 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24969 | fi |
24970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24971 | /* end confdefs.h. */ | |
24972 | ||
db9f46a9 TG |
24973 | #ifdef HAVE_COMPLEX_H |
24974 | #include <complex.h> | |
24975 | #endif | |
24976 | #ifdef HAVE_MATH_H | |
24977 | #include <math.h> | |
db1cf15c | 24978 | #endif |
db9f46a9 TG |
24979 | |
24980 | int (*ptr)() = (int (*)())casinf; | |
24981 | ||
db1cf15c IS |
24982 | int |
24983 | main () | |
24984 | { | |
db1cf15c IS |
24985 | return 0; |
24986 | } | |
db9f46a9 | 24987 | |
db1cf15c IS |
24988 | _ACEOF |
24989 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24990 | gcc_cv_math_func_casinf=yes |
db1cf15c | 24991 | else |
db9f46a9 | 24992 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
24993 | fi |
24994 | rm -f core conftest.err conftest.$ac_objext \ | |
24995 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24996 | fi |
db9f46a9 TG |
24997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
24998 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
24999 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25000 | |
f38a14ca TG |
25001 | cat >>confdefs.h <<_ACEOF |
25002 | #define HAVE_CASINF 1 | |
25003 | _ACEOF | |
db9f46a9 TG |
25004 | |
25005 | fi | |
db1cf15c | 25006 | |
db1cf15c | 25007 | |
db1cf15c | 25008 | |
db9f46a9 TG |
25009 | |
25010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25011 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25012 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25013 | $as_echo_n "(cached) " >&6 |
25014 | else | |
db9f46a9 | 25015 | if test x$gcc_no_link = xyes; then |
22e05272 | 25016 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25017 | fi |
25018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25019 | /* end confdefs.h. */ | |
25020 | ||
db9f46a9 TG |
25021 | #ifdef HAVE_COMPLEX_H |
25022 | #include <complex.h> | |
db1cf15c | 25023 | #endif |
db9f46a9 TG |
25024 | #ifdef HAVE_MATH_H |
25025 | #include <math.h> | |
25026 | #endif | |
25027 | ||
25028 | int (*ptr)() = (int (*)())casinh; | |
25029 | ||
db1cf15c IS |
25030 | int |
25031 | main () | |
25032 | { | |
db1cf15c IS |
25033 | return 0; |
25034 | } | |
db9f46a9 | 25035 | |
db1cf15c IS |
25036 | _ACEOF |
25037 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25038 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25039 | else |
db9f46a9 | 25040 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25041 | fi |
25042 | rm -f core conftest.err conftest.$ac_objext \ | |
25043 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25044 | fi |
db9f46a9 TG |
25045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25046 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25047 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25048 | |
f38a14ca TG |
25049 | cat >>confdefs.h <<_ACEOF |
25050 | #define HAVE_CASINH 1 | |
25051 | _ACEOF | |
db1cf15c | 25052 | |
db9f46a9 | 25053 | fi |
db1cf15c | 25054 | |
db1cf15c | 25055 | |
db9f46a9 TG |
25056 | |
25057 | ||
25058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25059 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25060 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25061 | $as_echo_n "(cached) " >&6 |
25062 | else | |
db9f46a9 | 25063 | if test x$gcc_no_link = xyes; then |
22e05272 | 25064 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25065 | fi |
25066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25067 | /* end confdefs.h. */ | |
25068 | ||
db9f46a9 TG |
25069 | #ifdef HAVE_COMPLEX_H |
25070 | #include <complex.h> | |
25071 | #endif | |
25072 | #ifdef HAVE_MATH_H | |
25073 | #include <math.h> | |
db1cf15c | 25074 | #endif |
db9f46a9 TG |
25075 | |
25076 | int (*ptr)() = (int (*)())casinhf; | |
25077 | ||
db1cf15c IS |
25078 | int |
25079 | main () | |
25080 | { | |
db1cf15c IS |
25081 | return 0; |
25082 | } | |
db9f46a9 | 25083 | |
db1cf15c IS |
25084 | _ACEOF |
25085 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25086 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25087 | else |
db9f46a9 | 25088 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25089 | fi |
25090 | rm -f core conftest.err conftest.$ac_objext \ | |
25091 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25092 | fi |
db9f46a9 TG |
25093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25094 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25095 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25096 | |
f38a14ca TG |
25097 | cat >>confdefs.h <<_ACEOF |
25098 | #define HAVE_CASINHF 1 | |
25099 | _ACEOF | |
db9f46a9 TG |
25100 | |
25101 | fi | |
db1cf15c | 25102 | |
db1cf15c | 25103 | |
db1cf15c | 25104 | |
db9f46a9 TG |
25105 | |
25106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25107 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25108 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25109 | $as_echo_n "(cached) " >&6 |
25110 | else | |
db9f46a9 | 25111 | if test x$gcc_no_link = xyes; then |
22e05272 | 25112 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25113 | fi |
25114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25115 | /* end confdefs.h. */ | |
25116 | ||
db9f46a9 TG |
25117 | #ifdef HAVE_COMPLEX_H |
25118 | #include <complex.h> | |
db1cf15c | 25119 | #endif |
db9f46a9 TG |
25120 | #ifdef HAVE_MATH_H |
25121 | #include <math.h> | |
25122 | #endif | |
25123 | ||
25124 | int (*ptr)() = (int (*)())casinhl; | |
25125 | ||
db1cf15c IS |
25126 | int |
25127 | main () | |
25128 | { | |
db1cf15c IS |
25129 | return 0; |
25130 | } | |
db9f46a9 | 25131 | |
db1cf15c IS |
25132 | _ACEOF |
25133 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25134 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25135 | else |
db9f46a9 | 25136 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25137 | fi |
25138 | rm -f core conftest.err conftest.$ac_objext \ | |
25139 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25140 | fi |
db9f46a9 TG |
25141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25142 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25143 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25144 | |
f38a14ca TG |
25145 | cat >>confdefs.h <<_ACEOF |
25146 | #define HAVE_CASINHL 1 | |
25147 | _ACEOF | |
db9f46a9 TG |
25148 | |
25149 | fi | |
25150 | ||
db1cf15c | 25151 | |
db1cf15c | 25152 | |
db1cf15c | 25153 | |
db9f46a9 TG |
25154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25155 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25156 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25157 | $as_echo_n "(cached) " >&6 |
25158 | else | |
db9f46a9 | 25159 | if test x$gcc_no_link = xyes; then |
22e05272 | 25160 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25161 | fi |
25162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25163 | /* end confdefs.h. */ | |
25164 | ||
db9f46a9 TG |
25165 | #ifdef HAVE_COMPLEX_H |
25166 | #include <complex.h> | |
25167 | #endif | |
25168 | #ifdef HAVE_MATH_H | |
25169 | #include <math.h> | |
db1cf15c | 25170 | #endif |
db9f46a9 TG |
25171 | |
25172 | int (*ptr)() = (int (*)())casinl; | |
25173 | ||
db1cf15c IS |
25174 | int |
25175 | main () | |
25176 | { | |
db1cf15c IS |
25177 | return 0; |
25178 | } | |
db9f46a9 | 25179 | |
db1cf15c IS |
25180 | _ACEOF |
25181 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25182 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25183 | else |
db9f46a9 | 25184 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25185 | fi |
25186 | rm -f core conftest.err conftest.$ac_objext \ | |
25187 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25188 | fi |
db9f46a9 TG |
25189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25190 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25191 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25192 | |
f38a14ca TG |
25193 | cat >>confdefs.h <<_ACEOF |
25194 | #define HAVE_CASINL 1 | |
25195 | _ACEOF | |
db9f46a9 TG |
25196 | |
25197 | fi | |
db1cf15c | 25198 | |
db1cf15c | 25199 | |
db1cf15c | 25200 | |
db9f46a9 TG |
25201 | |
25202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25203 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25204 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25205 | $as_echo_n "(cached) " >&6 |
25206 | else | |
db9f46a9 | 25207 | if test x$gcc_no_link = xyes; then |
22e05272 | 25208 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25209 | fi |
25210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25211 | /* end confdefs.h. */ | |
25212 | ||
db9f46a9 TG |
25213 | #ifdef HAVE_COMPLEX_H |
25214 | #include <complex.h> | |
db1cf15c | 25215 | #endif |
db9f46a9 TG |
25216 | #ifdef HAVE_MATH_H |
25217 | #include <math.h> | |
25218 | #endif | |
25219 | ||
25220 | int (*ptr)() = (int (*)())catan; | |
25221 | ||
db1cf15c IS |
25222 | int |
25223 | main () | |
25224 | { | |
db1cf15c IS |
25225 | return 0; |
25226 | } | |
db9f46a9 | 25227 | |
db1cf15c IS |
25228 | _ACEOF |
25229 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25230 | gcc_cv_math_func_catan=yes |
db1cf15c | 25231 | else |
db9f46a9 | 25232 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25233 | fi |
25234 | rm -f core conftest.err conftest.$ac_objext \ | |
25235 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25236 | fi |
db9f46a9 TG |
25237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25238 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25239 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25240 | |
f38a14ca TG |
25241 | cat >>confdefs.h <<_ACEOF |
25242 | #define HAVE_CATAN 1 | |
25243 | _ACEOF | |
db1cf15c | 25244 | |
db9f46a9 | 25245 | fi |
db1cf15c | 25246 | |
db1cf15c | 25247 | |
db9f46a9 TG |
25248 | |
25249 | ||
25250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25251 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25252 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25253 | $as_echo_n "(cached) " >&6 |
25254 | else | |
db9f46a9 | 25255 | if test x$gcc_no_link = xyes; then |
22e05272 | 25256 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25257 | fi |
25258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25259 | /* end confdefs.h. */ | |
25260 | ||
db9f46a9 TG |
25261 | #ifdef HAVE_COMPLEX_H |
25262 | #include <complex.h> | |
25263 | #endif | |
25264 | #ifdef HAVE_MATH_H | |
25265 | #include <math.h> | |
db1cf15c | 25266 | #endif |
db9f46a9 TG |
25267 | |
25268 | int (*ptr)() = (int (*)())catanf; | |
25269 | ||
db1cf15c IS |
25270 | int |
25271 | main () | |
25272 | { | |
db1cf15c IS |
25273 | return 0; |
25274 | } | |
db9f46a9 | 25275 | |
db1cf15c IS |
25276 | _ACEOF |
25277 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25278 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25279 | else |
db9f46a9 | 25280 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25281 | fi |
25282 | rm -f core conftest.err conftest.$ac_objext \ | |
25283 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25284 | fi |
db9f46a9 TG |
25285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25286 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25287 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25288 | |
f38a14ca TG |
25289 | cat >>confdefs.h <<_ACEOF |
25290 | #define HAVE_CATANF 1 | |
25291 | _ACEOF | |
db9f46a9 TG |
25292 | |
25293 | fi | |
db1cf15c | 25294 | |
db1cf15c | 25295 | |
db1cf15c | 25296 | |
db9f46a9 TG |
25297 | |
25298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25299 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25300 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25301 | $as_echo_n "(cached) " >&6 |
25302 | else | |
db9f46a9 | 25303 | if test x$gcc_no_link = xyes; then |
22e05272 | 25304 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25305 | fi |
25306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25307 | /* end confdefs.h. */ | |
25308 | ||
db9f46a9 TG |
25309 | #ifdef HAVE_COMPLEX_H |
25310 | #include <complex.h> | |
db1cf15c | 25311 | #endif |
db9f46a9 TG |
25312 | #ifdef HAVE_MATH_H |
25313 | #include <math.h> | |
25314 | #endif | |
25315 | ||
25316 | int (*ptr)() = (int (*)())catanh; | |
25317 | ||
db1cf15c IS |
25318 | int |
25319 | main () | |
25320 | { | |
db1cf15c IS |
25321 | return 0; |
25322 | } | |
db9f46a9 | 25323 | |
db1cf15c IS |
25324 | _ACEOF |
25325 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25326 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25327 | else |
db9f46a9 | 25328 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25329 | fi |
25330 | rm -f core conftest.err conftest.$ac_objext \ | |
25331 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25332 | fi |
db9f46a9 TG |
25333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25334 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25335 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25336 | |
f38a14ca TG |
25337 | cat >>confdefs.h <<_ACEOF |
25338 | #define HAVE_CATANH 1 | |
25339 | _ACEOF | |
db9f46a9 TG |
25340 | |
25341 | fi | |
25342 | ||
db1cf15c | 25343 | |
db1cf15c | 25344 | |
db1cf15c | 25345 | |
db9f46a9 TG |
25346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25347 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25348 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25349 | $as_echo_n "(cached) " >&6 |
25350 | else | |
db9f46a9 | 25351 | if test x$gcc_no_link = xyes; then |
22e05272 | 25352 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25353 | fi |
25354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25355 | /* end confdefs.h. */ | |
25356 | ||
db9f46a9 TG |
25357 | #ifdef HAVE_COMPLEX_H |
25358 | #include <complex.h> | |
25359 | #endif | |
25360 | #ifdef HAVE_MATH_H | |
25361 | #include <math.h> | |
db1cf15c | 25362 | #endif |
db9f46a9 TG |
25363 | |
25364 | int (*ptr)() = (int (*)())catanhf; | |
25365 | ||
db1cf15c IS |
25366 | int |
25367 | main () | |
25368 | { | |
db1cf15c IS |
25369 | return 0; |
25370 | } | |
db9f46a9 | 25371 | |
db1cf15c IS |
25372 | _ACEOF |
25373 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25374 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25375 | else |
db9f46a9 | 25376 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25377 | fi |
25378 | rm -f core conftest.err conftest.$ac_objext \ | |
25379 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25380 | fi |
db9f46a9 TG |
25381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25382 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25383 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25384 | |
f38a14ca TG |
25385 | cat >>confdefs.h <<_ACEOF |
25386 | #define HAVE_CATANHF 1 | |
25387 | _ACEOF | |
db9f46a9 TG |
25388 | |
25389 | fi | |
db1cf15c | 25390 | |
db1cf15c | 25391 | |
db1cf15c | 25392 | |
db9f46a9 TG |
25393 | |
25394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25395 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25396 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25397 | $as_echo_n "(cached) " >&6 |
25398 | else | |
db9f46a9 | 25399 | if test x$gcc_no_link = xyes; then |
22e05272 | 25400 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25401 | fi |
25402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25403 | /* end confdefs.h. */ | |
25404 | ||
db9f46a9 TG |
25405 | #ifdef HAVE_COMPLEX_H |
25406 | #include <complex.h> | |
db1cf15c | 25407 | #endif |
db9f46a9 TG |
25408 | #ifdef HAVE_MATH_H |
25409 | #include <math.h> | |
25410 | #endif | |
25411 | ||
25412 | int (*ptr)() = (int (*)())catanhl; | |
25413 | ||
db1cf15c IS |
25414 | int |
25415 | main () | |
25416 | { | |
db1cf15c IS |
25417 | return 0; |
25418 | } | |
db9f46a9 | 25419 | |
db1cf15c IS |
25420 | _ACEOF |
25421 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25422 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25423 | else |
db9f46a9 | 25424 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25425 | fi |
25426 | rm -f core conftest.err conftest.$ac_objext \ | |
25427 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25428 | fi |
db9f46a9 TG |
25429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25430 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25431 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25432 | |
f38a14ca TG |
25433 | cat >>confdefs.h <<_ACEOF |
25434 | #define HAVE_CATANHL 1 | |
25435 | _ACEOF | |
db1cf15c | 25436 | |
db9f46a9 | 25437 | fi |
db1cf15c | 25438 | |
db1cf15c | 25439 | |
db9f46a9 TG |
25440 | |
25441 | ||
25442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25443 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25444 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25445 | $as_echo_n "(cached) " >&6 |
25446 | else | |
db9f46a9 | 25447 | if test x$gcc_no_link = xyes; then |
22e05272 | 25448 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25449 | fi |
25450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25451 | /* end confdefs.h. */ | |
25452 | ||
db9f46a9 TG |
25453 | #ifdef HAVE_COMPLEX_H |
25454 | #include <complex.h> | |
25455 | #endif | |
25456 | #ifdef HAVE_MATH_H | |
25457 | #include <math.h> | |
db1cf15c | 25458 | #endif |
db9f46a9 TG |
25459 | |
25460 | int (*ptr)() = (int (*)())catanl; | |
25461 | ||
db1cf15c IS |
25462 | int |
25463 | main () | |
25464 | { | |
db1cf15c IS |
25465 | return 0; |
25466 | } | |
db9f46a9 | 25467 | |
db1cf15c IS |
25468 | _ACEOF |
25469 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25470 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25471 | else |
db9f46a9 | 25472 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25473 | fi |
25474 | rm -f core conftest.err conftest.$ac_objext \ | |
25475 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25476 | fi |
db9f46a9 TG |
25477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25478 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25479 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25480 | |
f38a14ca TG |
25481 | cat >>confdefs.h <<_ACEOF |
25482 | #define HAVE_CATANL 1 | |
25483 | _ACEOF | |
db1cf15c | 25484 | |
db9f46a9 | 25485 | fi |
db1cf15c IS |
25486 | |
25487 | ||
118ea208 | 25488 | # On AIX, clog is present in libm as __clog |
5213506e RW |
25489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25490 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 25491 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 25492 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
25493 | else |
25494 | ac_check_lib_save_LIBS=$LIBS | |
25495 | LIBS="-lm $LIBS" | |
25496 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25497 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 25498 | fi |
5213506e | 25499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
25500 | /* end confdefs.h. */ |
25501 | ||
5213506e RW |
25502 | /* Override any GCC internal prototype to avoid an error. |
25503 | Use char because int might match the return type of a GCC | |
25504 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
25505 | #ifdef __cplusplus |
25506 | extern "C" | |
25507 | #endif | |
e097b4f1 DE |
25508 | char __clog (); |
25509 | int | |
25510 | main () | |
25511 | { | |
5213506e | 25512 | return __clog (); |
e097b4f1 DE |
25513 | ; |
25514 | return 0; | |
25515 | } | |
25516 | _ACEOF | |
5213506e | 25517 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
25518 | ac_cv_lib_m___clog=yes |
25519 | else | |
5213506e | 25520 | ac_cv_lib_m___clog=no |
e097b4f1 | 25521 | fi |
5213506e RW |
25522 | rm -f core conftest.err conftest.$ac_objext \ |
25523 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
25524 | LIBS=$ac_check_lib_save_LIBS |
25525 | fi | |
5213506e RW |
25526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25527 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 25528 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 25529 | |
5213506e | 25530 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
25531 | |
25532 | fi | |
25533 | ||
25534 | ||
ad238e4f FXC |
25535 | # Check whether the system has a working stat() |
25536 | ||
5213506e RW |
25537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25538 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
22e05272 | 25539 | if ${libgfor_cv_have_working_stat+:} false; then : |
5213506e | 25540 | $as_echo_n "(cached) " >&6 |
ad238e4f FXC |
25541 | else |
25542 | ||
5213506e | 25543 | if test "$cross_compiling" = yes; then : |
ad238e4f FXC |
25544 | |
25545 | case "${target}" in | |
6d26724a RW |
25546 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25547 | *) libgfor_cv_have_working_stat=yes;; | |
ad238e4f FXC |
25548 | esac |
25549 | else | |
5213506e | 25550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad238e4f FXC |
25551 | /* end confdefs.h. */ |
25552 | ||
25553 | #include <stdio.h> | |
25554 | #include <sys/types.h> | |
25555 | #include <sys/stat.h> | |
25556 | #include <unistd.h> | |
25557 | ||
25558 | int main () | |
25559 | { | |
25560 | FILE *f, *g; | |
25561 | struct stat st1, st2; | |
25562 | ||
25563 | f = fopen ("foo", "w"); | |
25564 | g = fopen ("bar", "w"); | |
25565 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25566 | return 1; | |
25567 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25568 | return 1; | |
25569 | fclose(f); | |
25570 | fclose(g); | |
25571 | return 0; | |
25572 | } | |
25573 | _ACEOF | |
5213506e | 25574 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 25575 | libgfor_cv_have_working_stat=yes |
ad238e4f | 25576 | else |
5213506e | 25577 | libgfor_cv_have_working_stat=no |
ad238e4f | 25578 | fi |
5213506e RW |
25579 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25580 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
ad238e4f | 25581 | fi |
5213506e | 25582 | |
ad238e4f | 25583 | fi |
5213506e RW |
25584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25585 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6d26724a | 25586 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
ad238e4f | 25587 | |
5213506e | 25588 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
ad238e4f FXC |
25589 | |
25590 | fi | |
25591 | ||
db8092dc FXC |
25592 | # Check whether __mingw_snprintf() is present |
25593 | ||
5213506e RW |
25594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25595 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
22e05272 | 25596 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : |
5213506e | 25597 | $as_echo_n "(cached) " >&6 |
db8092dc FXC |
25598 | else |
25599 | ||
25600 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 25602 | fi |
5213506e | 25603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
25604 | /* end confdefs.h. */ |
25605 | ||
25606 | #include <stdio.h> | |
25607 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25608 | ||
25609 | int | |
25610 | main () | |
25611 | { | |
25612 | ||
25613 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25614 | ||
25615 | ; | |
25616 | return 0; | |
25617 | } | |
25618 | _ACEOF | |
5213506e | 25619 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 25620 | eval "libgfor_cv_have_mingw_snprintf=yes" |
db8092dc | 25621 | else |
5213506e | 25622 | eval "libgfor_cv_have_mingw_snprintf=no" |
db8092dc | 25623 | fi |
5213506e RW |
25624 | rm -f core conftest.err conftest.$ac_objext \ |
25625 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc FXC |
25626 | |
25627 | fi | |
5213506e RW |
25628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25629 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6d26724a | 25630 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
db8092dc | 25631 | |
5213506e | 25632 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
db8092dc FXC |
25633 | |
25634 | fi | |
25635 | ||
25636 | ||
87e6d9dc TB |
25637 | # Check whether libquadmath should be used |
25638 | # Check whether --enable-libquadmath-support was given. | |
25639 | if test "${enable_libquadmath_support+set}" = set; then : | |
25640 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25641 | else | |
25642 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25643 | fi | |
25644 | ||
25645 | enable_libquadmath_support= | |
25646 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25647 | enable_libquadmath_support=no | |
25648 | fi | |
25649 | ||
25650 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
1ec601bf FXC |
25651 | |
25652 | LIBQUADSPEC= | |
87e6d9dc TB |
25653 | |
25654 | if test "x$enable_libquadmath_support" != xno; then | |
25655 | ||
1ec601bf FXC |
25656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
25657 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
22e05272 | 25658 | if ${libgfor_cv_have_float128+:} false; then : |
1ec601bf FXC |
25659 | $as_echo_n "(cached) " >&6 |
25660 | else | |
25661 | ||
69eb61d4 TB |
25662 | if test x$gcc_no_link = xyes; then |
25663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
25664 | /* end confdefs.h. */ |
25665 | ||
69eb61d4 TB |
25666 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
25667 | ||
25668 | __float128 foo (__float128 x) | |
25669 | { | |
25670 | ||
25671 | __complex128 z1, z2; | |
25672 | ||
25673 | z1 = x; | |
25674 | z2 = x / 7.Q; | |
25675 | z2 /= z1; | |
25676 | ||
25677 | return (__float128) z2; | |
25678 | } | |
25679 | ||
25680 | __float128 bar (__float128 x) | |
25681 | { | |
25682 | return x * __builtin_huge_valq (); | |
25683 | } | |
1ec601bf FXC |
25684 | |
25685 | int | |
25686 | main () | |
25687 | { | |
25688 | ||
69eb61d4 TB |
25689 | foo (1.2Q); |
25690 | bar (1.2Q); | |
1ec601bf | 25691 | |
69eb61d4 TB |
25692 | ; |
25693 | return 0; | |
25694 | } | |
25695 | _ACEOF | |
25696 | if ac_fn_c_try_compile "$LINENO"; then : | |
1ec601bf | 25697 | |
69eb61d4 | 25698 | libgfor_cv_have_float128=yes |
1ec601bf | 25699 | |
69eb61d4 TB |
25700 | else |
25701 | ||
25702 | libgfor_cv_have_float128=no | |
25703 | ||
25704 | fi | |
25705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25706 | else | |
25707 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25708 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
25709 | fi |
25710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25711 | /* end confdefs.h. */ | |
25712 | ||
25713 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
25714 | ||
25715 | __float128 foo (__float128 x) | |
25716 | { | |
25717 | ||
25718 | __complex128 z1, z2; | |
25719 | ||
25720 | z1 = x; | |
25721 | z2 = x / 7.Q; | |
25722 | z2 /= z1; | |
25723 | ||
25724 | return (__float128) z2; | |
25725 | } | |
25726 | ||
25727 | __float128 bar (__float128 x) | |
25728 | { | |
25729 | return x * __builtin_huge_valq (); | |
25730 | } | |
25731 | ||
25732 | int | |
25733 | main () | |
25734 | { | |
25735 | ||
25736 | foo (1.2Q); | |
25737 | bar (1.2Q); | |
1ec601bf FXC |
25738 | |
25739 | ; | |
25740 | return 0; | |
25741 | } | |
25742 | _ACEOF | |
25743 | if ac_fn_c_try_link "$LINENO"; then : | |
69eb61d4 TB |
25744 | |
25745 | libgfor_cv_have_float128=yes | |
25746 | ||
1ec601bf | 25747 | else |
69eb61d4 TB |
25748 | |
25749 | libgfor_cv_have_float128=no | |
25750 | ||
1ec601bf FXC |
25751 | fi |
25752 | rm -f core conftest.err conftest.$ac_objext \ | |
25753 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 25754 | fi |
1ec601bf FXC |
25755 | fi |
25756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
25757 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
25758 | ||
25759 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25760 | ||
25761 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
25762 | ||
25763 | ||
25764 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
828012a5 RO |
25765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
25766 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
22e05272 | 25767 | if ${libgfor_cv_have_as_needed+:} false; then : |
1ec601bf FXC |
25768 | $as_echo_n "(cached) " >&6 |
25769 | else | |
25770 | ||
828012a5 RO |
25771 | # Test for native Solaris options first. |
25772 | # No whitespace after -z to pass it through -Wl. | |
25773 | libgfor_cv_as_needed_option="-zignore" | |
25774 | libgfor_cv_no_as_needed_option="-zrecord" | |
1ec601bf | 25775 | save_LDFLAGS="$LDFLAGS" |
828012a5 | 25776 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
1ec601bf FXC |
25777 | libgfor_cv_have_as_needed=no |
25778 | ||
25779 | ac_c_werror_flag=yes | |
25780 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25781 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
25782 | fi |
25783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25784 | /* end confdefs.h. */ | |
25785 | ||
25786 | int | |
25787 | main () | |
25788 | { | |
25789 | ||
25790 | ; | |
25791 | return 0; | |
25792 | } | |
25793 | _ACEOF | |
25794 | if ac_fn_c_try_link "$LINENO"; then : | |
25795 | libgfor_cv_have_as_needed=yes | |
25796 | else | |
25797 | libgfor_cv_have_as_needed=no | |
25798 | fi | |
25799 | rm -f core conftest.err conftest.$ac_objext \ | |
25800 | conftest$ac_exeext conftest.$ac_ext | |
25801 | LDFLAGS="$save_LDFLAGS" | |
828012a5 RO |
25802 | if test "x$libgfor_cv_have_as_needed" = xno; then |
25803 | libgfor_cv_as_needed_option="--as-needed" | |
25804 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
25805 | save_LDFLAGS="$LDFLAGS" | |
25806 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
25807 | libgfor_cv_have_as_needed=no | |
25808 | ||
25809 | ac_c_werror_flag=yes | |
25810 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
25812 | fi |
25813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25814 | /* end confdefs.h. */ | |
25815 | ||
25816 | int | |
25817 | main () | |
25818 | { | |
25819 | ||
25820 | ; | |
25821 | return 0; | |
25822 | } | |
25823 | _ACEOF | |
25824 | if ac_fn_c_try_link "$LINENO"; then : | |
25825 | libgfor_cv_have_as_needed=yes | |
25826 | else | |
25827 | libgfor_cv_have_as_needed=no | |
25828 | fi | |
25829 | rm -f core conftest.err conftest.$ac_objext \ | |
25830 | conftest$ac_exeext conftest.$ac_ext | |
25831 | LDFLAGS="$save_LDFLAGS" | |
25832 | fi | |
1ec601bf FXC |
25833 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
25834 | ||
25835 | fi | |
25836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
25837 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
25838 | ||
25839 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
828012a5 | 25840 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
1ec601bf FXC |
25841 | else |
25842 | LIBQUADSPEC="-lquadmath" | |
25843 | fi | |
25844 | if test -f ../libquadmath/libquadmath.la; then | |
25845 | LIBQUADLIB=../libquadmath/libquadmath.la | |
25846 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
25847 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
25848 | else | |
25849 | LIBQUADLIB="-lquadmath" | |
25850 | LIBQUADLIB_DEP= | |
25851 | LIBQUADINCLUDE= | |
25852 | fi | |
25853 | fi | |
87e6d9dc TB |
25854 | else |
25855 | # for --disable-quadmath | |
25856 | LIBQUADLIB= | |
25857 | LIBQUADLIB_DEP= | |
25858 | LIBQUADINCLUDE= | |
25859 | fi | |
1ec601bf FXC |
25860 | |
25861 | ||
25862 | ||
25863 | ||
25864 | ||
25865 | ||
25866 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25867 | LIBGFOR_BUILD_QUAD_TRUE= | |
25868 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
25869 | else | |
25870 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
25871 | LIBGFOR_BUILD_QUAD_FALSE= | |
25872 | fi | |
25873 | ||
25874 | ||
25875 | ||
944b8b35 | 25876 | # Check for GNU libc feenableexcept |
5213506e RW |
25877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
25878 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 25879 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 25880 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
25881 | else |
25882 | ac_check_lib_save_LIBS=$LIBS | |
25883 | LIBS="-lm $LIBS" | |
25884 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 25886 | fi |
5213506e | 25887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
25888 | /* end confdefs.h. */ |
25889 | ||
5213506e RW |
25890 | /* Override any GCC internal prototype to avoid an error. |
25891 | Use char because int might match the return type of a GCC | |
25892 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
25893 | #ifdef __cplusplus |
25894 | extern "C" | |
25895 | #endif | |
944b8b35 FXC |
25896 | char feenableexcept (); |
25897 | int | |
25898 | main () | |
25899 | { | |
5213506e | 25900 | return feenableexcept (); |
944b8b35 FXC |
25901 | ; |
25902 | return 0; | |
25903 | } | |
25904 | _ACEOF | |
5213506e | 25905 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
25906 | ac_cv_lib_m_feenableexcept=yes |
25907 | else | |
5213506e | 25908 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 25909 | fi |
5213506e RW |
25910 | rm -f core conftest.err conftest.$ac_objext \ |
25911 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
25912 | LIBS=$ac_check_lib_save_LIBS |
25913 | fi | |
5213506e RW |
25914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
25915 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 25916 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 25917 | have_feenableexcept=yes |
5213506e | 25918 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
25919 | |
25920 | fi | |
25921 | ||
3b14f664 | 25922 | |
5c30094f | 25923 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
25924 | # pull that in if it still doesn't give us the function we want. This |
25925 | # test is copied from libgomp, and modified to not link in -lrt as | |
25926 | # libgfortran calls clock_gettime via a weak reference if it's found | |
25927 | # in librt. | |
deb9dd74 | 25928 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
25929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
25930 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 25931 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
25932 | $as_echo_n "(cached) " >&6 |
25933 | else | |
25934 | ac_check_lib_save_LIBS=$LIBS | |
25935 | LIBS="-lrt $LIBS" | |
25936 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25937 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
25938 | fi |
25939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25940 | /* end confdefs.h. */ | |
25941 | ||
25942 | /* Override any GCC internal prototype to avoid an error. | |
25943 | Use char because int might match the return type of a GCC | |
25944 | builtin and then its argument prototype would still apply. */ | |
25945 | #ifdef __cplusplus | |
25946 | extern "C" | |
25947 | #endif | |
25948 | char clock_gettime (); | |
25949 | int | |
25950 | main () | |
25951 | { | |
25952 | return clock_gettime (); | |
25953 | ; | |
25954 | return 0; | |
25955 | } | |
25956 | _ACEOF | |
25957 | if ac_fn_c_try_link "$LINENO"; then : | |
25958 | ac_cv_lib_rt_clock_gettime=yes | |
25959 | else | |
25960 | ac_cv_lib_rt_clock_gettime=no | |
25961 | fi | |
25962 | rm -f core conftest.err conftest.$ac_objext \ | |
25963 | conftest$ac_exeext conftest.$ac_ext | |
25964 | LIBS=$ac_check_lib_save_LIBS | |
25965 | fi | |
25966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
25967 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 25968 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 25969 | |
2aadeae2 | 25970 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
25971 | |
25972 | fi | |
25973 | ||
25974 | fi | |
25975 | ||
5213506e | 25976 | # Check for SysV fpsetmask |
3b14f664 | 25977 | |
5213506e RW |
25978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
25979 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 25980 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
25981 | $as_echo_n "(cached) " >&6 |
25982 | else | |
3b14f664 | 25983 | |
5213506e | 25984 | if test x$gcc_no_link = xyes; then |
22e05272 | 25985 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
25986 | fi |
25987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25988 | /* end confdefs.h. */ | |
3b14f664 | 25989 | |
5213506e RW |
25990 | #if HAVE_FLOATINGPOINT_H |
25991 | # include <floatingpoint.h> | |
25992 | #endif /* HAVE_FLOATINGPOINT_H */ | |
25993 | #if HAVE_IEEEFP_H | |
25994 | # include <ieeefp.h> | |
25995 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
25996 | int |
25997 | main () | |
25998 | { | |
5213506e | 25999 | fpsetmask(0); |
3b14f664 FXC |
26000 | ; |
26001 | return 0; | |
26002 | } | |
26003 | _ACEOF | |
5213506e RW |
26004 | if ac_fn_c_try_link "$LINENO"; then : |
26005 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 26006 | else |
5213506e RW |
26007 | eval "libgfor_cv_have_fpsetmask=no" |
26008 | fi | |
26009 | rm -f core conftest.err conftest.$ac_objext \ | |
26010 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 26011 | |
3b14f664 | 26012 | fi |
5213506e RW |
26013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
26014 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
26015 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 26016 | have_fpsetmask=yes |
5213506e RW |
26017 | |
26018 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
26019 | ||
26020 | fi | |
26021 | ||
6faf4751 | 26022 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 26023 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26024 | #include <ieeefp.h> |
67c4c164 | 26025 | #endif |
6faf4751 FXC |
26026 | #include <math.h> |
26027 | ||
7ae346c3 | 26028 | " |
22e05272 | 26029 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
26030 | |
26031 | cat >>confdefs.h <<_ACEOF | |
26032 | #define HAVE_FP_EXCEPT 1 | |
26033 | _ACEOF | |
26034 | ||
26035 | ||
26036 | fi | |
6faf4751 | 26037 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 26038 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26039 | #include <ieeefp.h> |
67c4c164 | 26040 | #endif |
6faf4751 FXC |
26041 | #include <math.h> |
26042 | ||
7ae346c3 | 26043 | " |
22e05272 | 26044 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
26045 | |
26046 | cat >>confdefs.h <<_ACEOF | |
26047 | #define HAVE_FP_EXCEPT_T 1 | |
26048 | _ACEOF | |
26049 | ||
26050 | ||
82a4f54c TB |
26051 | fi |
26052 | ||
6faf4751 | 26053 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 26054 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26055 | #include <ieeefp.h> |
67c4c164 | 26056 | #endif |
6faf4751 FXC |
26057 | #include <math.h> |
26058 | ||
82a4f54c | 26059 | " |
22e05272 | 26060 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
26061 | |
26062 | cat >>confdefs.h <<_ACEOF | |
26063 | #define HAVE_FP_RND 1 | |
26064 | _ACEOF | |
26065 | ||
26066 | ||
26067 | fi | |
6faf4751 | 26068 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 26069 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26070 | #include <ieeefp.h> |
67c4c164 | 26071 | #endif |
6faf4751 FXC |
26072 | #include <math.h> |
26073 | ||
82a4f54c | 26074 | " |
22e05272 | 26075 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
26076 | |
26077 | cat >>confdefs.h <<_ACEOF | |
26078 | #define HAVE_FP_RND_T 1 | |
26079 | _ACEOF | |
26080 | ||
26081 | ||
7ae346c3 TB |
26082 | fi |
26083 | ||
5213506e | 26084 | |
de51fc1b RO |
26085 | # Check whether we have fpsetsticky or fpresetsticky |
26086 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 26087 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
26088 | have_fpsetsticky=yes |
26089 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
26090 | ||
26091 | fi | |
26092 | ||
26093 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 26094 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
26095 | have_fpresetsticky=yes |
26096 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
26097 | ||
26098 | fi | |
26099 | ||
26100 | ||
5213506e RW |
26101 | # Check for AIX fp_trap and fp_enable |
26102 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 26103 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
26104 | have_fp_trap=yes |
26105 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
26106 | ||
3b14f664 | 26107 | fi |
5213506e RW |
26108 | |
26109 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 26110 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 26111 | have_fp_enable=yes |
5213506e | 26112 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
26113 | |
26114 | fi | |
26115 | ||
26116 | ||
7b32a8f6 UB |
26117 | # Check if _SOFT_FLOAT is defined |
26118 | ||
26119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
26120 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 26121 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
26122 | $as_echo_n "(cached) " >&6 |
26123 | else | |
26124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26125 | /* end confdefs.h. */ | |
26126 | ||
26127 | int | |
26128 | main () | |
26129 | { | |
26130 | ||
26131 | #ifdef _SOFT_FLOAT | |
26132 | int ok; | |
26133 | #else | |
26134 | choke me | |
26135 | #endif | |
26136 | ||
26137 | ; | |
26138 | return 0; | |
26139 | } | |
26140 | _ACEOF | |
26141 | if ac_fn_c_try_compile "$LINENO"; then : | |
26142 | ac_cv_defined__SOFT_FLOAT=yes | |
26143 | else | |
26144 | ac_cv_defined__SOFT_FLOAT=no | |
26145 | fi | |
26146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26147 | fi | |
26148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
26149 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
26150 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
26151 | have_soft_float=yes | |
26152 | fi | |
26153 | ||
944b8b35 FXC |
26154 | # Runs configure.host to set up necessary host-dependent shell variables. |
26155 | # We then display a message about it, and propagate them through the | |
26156 | # build chain. | |
26157 | . ${srcdir}/configure.host | |
5213506e RW |
26158 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
26159 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
26160 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
26161 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
26162 | FPU_HOST_HEADER=config/${fpu_host}.h |
26163 | ||
26164 | ||
8b198102 FXC |
26165 | # Whether we will build the IEEE modules |
26166 | if test x${ieee_support} = xyes; then | |
26167 | IEEE_SUPPORT_TRUE= | |
26168 | IEEE_SUPPORT_FALSE='#' | |
26169 | else | |
26170 | IEEE_SUPPORT_TRUE='#' | |
26171 | IEEE_SUPPORT_FALSE= | |
26172 | fi | |
26173 | ||
26174 | ||
26175 | ||
9fc77574 KK |
26176 | # Some targets require additional compiler options for IEEE compatibility. |
26177 | IEEE_FLAGS="${ieee_flags}" | |
26178 | ||
26179 | ||
23e6d4a5 JB |
26180 | |
26181 | # Check for POSIX getpwuid_r | |
26182 | # | |
26183 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
26184 | # arguments, and another one with 4 arguments used by at least HP-UX | |
26185 | # 10.2. | |
26186 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
26187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
26188 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 26189 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
26190 | $as_echo_n "(cached) " >&6 |
26191 | else | |
26192 | ||
26193 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26194 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
26195 | fi |
26196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26197 | /* end confdefs.h. */ | |
26198 | ||
26199 | #include <stdio.h> | |
26200 | #include <sys/types.h> | |
26201 | #include <pwd.h> | |
26202 | int | |
26203 | main () | |
26204 | { | |
26205 | ||
26206 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
26207 | ||
26208 | ; | |
26209 | return 0; | |
26210 | } | |
26211 | _ACEOF | |
26212 | if ac_fn_c_try_link "$LINENO"; then : | |
26213 | libgfor_cv_posix_getpwuid_r="yes" | |
26214 | else | |
26215 | libgfor_cv_posix_getpwuid_r="no" | |
26216 | fi | |
26217 | rm -f core conftest.err conftest.$ac_objext \ | |
26218 | conftest$ac_exeext conftest.$ac_ext | |
26219 | fi | |
26220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
26221 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
26222 | fi | |
26223 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
26224 | ||
26225 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
26226 | ||
26227 | fi | |
26228 | ||
26229 | ||
7d7b8bfe RH |
26230 | # Check out attribute support. |
26231 | ||
5213506e RW |
26232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
26233 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 26234 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 26235 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26236 | else |
26237 | ||
26238 | save_CFLAGS="$CFLAGS" | |
26239 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 26240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26241 | /* end confdefs.h. */ |
26242 | void __attribute__((visibility("hidden"))) foo(void) { } | |
26243 | int | |
26244 | main () | |
26245 | { | |
26246 | ||
26247 | ; | |
26248 | return 0; | |
26249 | } | |
26250 | _ACEOF | |
5213506e | 26251 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 26252 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 26253 | else |
5213506e | 26254 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 26255 | fi |
5213506e | 26256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
26257 | CFLAGS="$save_CFLAGS" |
26258 | fi | |
5213506e RW |
26259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
26260 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 26261 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 26262 | |
5213506e | 26263 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
26264 | |
26265 | fi | |
26266 | ||
5213506e RW |
26267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
26268 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 26269 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 26270 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26271 | else |
26272 | ||
f02d008e | 26273 | if test x$gcc_no_link = xyes; then |
22e05272 | 26274 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 26275 | fi |
5213506e | 26276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26277 | /* end confdefs.h. */ |
26278 | ||
7d7b8bfe | 26279 | void foo(void) { } |
16a314a9 | 26280 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
26281 | int |
26282 | main () | |
26283 | { | |
26284 | bar(); | |
26285 | ; | |
26286 | return 0; | |
26287 | } | |
26288 | _ACEOF | |
5213506e | 26289 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 26290 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 26291 | else |
5213506e | 26292 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 26293 | fi |
5213506e RW |
26294 | rm -f core conftest.err conftest.$ac_objext \ |
26295 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 26296 | fi |
5213506e RW |
26297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
26298 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 26299 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 26300 | |
5213506e | 26301 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
26302 | |
26303 | fi | |
26304 | ||
0536d5b3 | 26305 | # Check out atomic builtins support. |
5e805e44 | 26306 | |
0536d5b3 JB |
26307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
26308 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
26309 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 26310 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26311 | else |
26312 | ||
26313 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26314 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 26315 | fi |
5213506e | 26316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
26317 | /* end confdefs.h. */ |
26318 | int foovar = 0; | |
26319 | int | |
26320 | main () | |
26321 | { | |
26322 | ||
0536d5b3 JB |
26323 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
26324 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
26325 | ; |
26326 | return 0; | |
26327 | } | |
26328 | _ACEOF | |
5213506e | 26329 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 26330 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 26331 | else |
0536d5b3 | 26332 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 26333 | fi |
5213506e RW |
26334 | rm -f core conftest.err conftest.$ac_objext \ |
26335 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 26336 | fi |
0536d5b3 JB |
26337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
26338 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
26339 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 26340 | |
0536d5b3 | 26341 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
26342 | |
26343 | fi | |
26344 | ||
6a822a74 FXC |
26345 | # Check out #pragma weak. |
26346 | ||
26347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26348 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 26349 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
26350 | $as_echo_n "(cached) " >&6 |
26351 | else | |
26352 | ||
26353 | gfor_save_CFLAGS="$CFLAGS" | |
26354 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26356 | /* end confdefs.h. */ | |
26357 | ||
26358 | void foo (void); | |
26359 | #pragma weak foo | |
26360 | ||
26361 | int | |
26362 | main () | |
26363 | { | |
26364 | if (foo) foo (); | |
26365 | ; | |
26366 | return 0; | |
26367 | } | |
26368 | _ACEOF | |
26369 | if ac_fn_c_try_compile "$LINENO"; then : | |
26370 | libgfor_cv_have_pragma_weak=yes | |
26371 | else | |
26372 | libgfor_cv_have_pragma_weak=no | |
26373 | fi | |
26374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26375 | fi | |
26376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26377 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26378 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26379 | ||
26380 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26381 | ||
26382 | fi | |
26383 | case "$host" in | |
26384 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26385 | ||
26386 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26387 | ||
26388 | ;; | |
26389 | esac | |
26390 | ||
e7854993 | 26391 | # Check out weakref support. |
5e805e44 | 26392 | |
e7854993 FXC |
26393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26394 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 26395 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 26396 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26397 | else |
26398 | ||
e7854993 FXC |
26399 | save_CFLAGS="$CFLAGS" |
26400 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26401 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26402 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
26403 | fi |
26404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 26405 | /* end confdefs.h. */ |
de15ea94 | 26406 | |
e7854993 | 26407 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 26408 | |
5e805e44 JJ |
26409 | int |
26410 | main () | |
26411 | { | |
e7854993 | 26412 | return (mytoto != 0); |
5e805e44 JJ |
26413 | ; |
26414 | return 0; | |
26415 | } | |
26416 | _ACEOF | |
e7854993 FXC |
26417 | if ac_fn_c_try_link "$LINENO"; then : |
26418 | libgfor_cv_have_weakref=yes | |
5e805e44 | 26419 | else |
e7854993 | 26420 | libgfor_cv_have_weakref=no |
5e805e44 | 26421 | fi |
e7854993 FXC |
26422 | rm -f core conftest.err conftest.$ac_objext \ |
26423 | conftest$ac_exeext conftest.$ac_ext | |
26424 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 26425 | fi |
e7854993 FXC |
26426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26427 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26428 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 26429 | |
e7854993 | 26430 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
26431 | |
26432 | fi | |
26433 | ||
10c682a0 FXC |
26434 | # Various other checks on target |
26435 | ||
5213506e RW |
26436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26437 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 26438 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 26439 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
26440 | else |
26441 | ||
5213506e | 26442 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
26443 | |
26444 | case "${target}" in | |
6d26724a RW |
26445 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26446 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
26447 | esac |
26448 | else | |
5213506e | 26449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
26450 | /* end confdefs.h. */ |
26451 | ||
26452 | #include <errno.h> | |
26453 | #include <fcntl.h> | |
26454 | #include <unistd.h> | |
26455 | #include <sys/stat.h> | |
26456 | ||
26457 | int main () | |
26458 | { | |
26459 | int fd; | |
26460 | ||
42dfafa9 | 26461 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
26462 | if (fd <= 0) |
26463 | return 0; | |
26464 | if (unlink ("testfile") == -1) | |
26465 | return 1; | |
26466 | write (fd, "This is a test\n", 15); | |
26467 | close (fd); | |
26468 | ||
42dfafa9 | 26469 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
26470 | return 0; |
26471 | else | |
26472 | return 1; | |
26473 | } | |
26474 | _ACEOF | |
5213506e | 26475 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26476 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 26477 | else |
5213506e | 26478 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 26479 | fi |
5213506e RW |
26480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 26482 | fi |
5213506e | 26483 | |
10c682a0 | 26484 | fi |
5213506e RW |
26485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26486 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 26487 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 26488 | |
5213506e | 26489 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
26490 | |
26491 | fi | |
26492 | ||
3c127520 FXC |
26493 | # Check whether line terminator is LF or CRLF |
26494 | ||
5213506e RW |
26495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
26496 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 26497 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 26498 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
26499 | else |
26500 | ||
5213506e | 26501 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
26502 | |
26503 | case "${target}" in | |
6d26724a RW |
26504 | *mingw*) libgfor_cv_have_crlf=yes ;; |
26505 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
26506 | esac |
26507 | else | |
5213506e | 26508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
26509 | /* end confdefs.h. */ |
26510 | ||
26511 | /* This test program should exit with status 0 if system uses a CRLF as | |
26512 | line terminator, and status 1 otherwise. | |
26513 | Since it is used to check for mingw systems, and should return 0 in any | |
26514 | other case, in case of a failure we will not use CRLF. */ | |
26515 | #include <sys/stat.h> | |
26516 | #include <stdlib.h> | |
26517 | #include <fcntl.h> | |
26518 | #include <stdio.h> | |
26519 | ||
26520 | int main () | |
26521 | { | |
26522 | #ifndef O_BINARY | |
26523 | exit(1); | |
26524 | #else | |
26525 | int fd, bytes; | |
26526 | char buff[5]; | |
26527 | ||
26528 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
26529 | if (fd < 0) | |
26530 | exit(1); | |
26531 | if (write (fd, "\n", 1) < 0) | |
26532 | perror ("write"); | |
26533 | ||
26534 | close (fd); | |
26535 | ||
26536 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
26537 | exit(1); | |
26538 | bytes = read (fd, buff, 5); | |
26539 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
26540 | exit(0); | |
26541 | else | |
26542 | exit(1); | |
26543 | #endif | |
26544 | } | |
26545 | _ACEOF | |
5213506e | 26546 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26547 | libgfor_cv_have_crlf=yes |
3c127520 | 26548 | else |
5213506e | 26549 | libgfor_cv_have_crlf=no |
3c127520 | 26550 | fi |
5213506e RW |
26551 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26552 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 26553 | fi |
5213506e | 26554 | |
3c127520 | 26555 | fi |
5213506e RW |
26556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
26557 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 26558 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 26559 | |
5213506e | 26560 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
26561 | |
26562 | fi | |
26563 | ||
31cfd832 TK |
26564 | # Check whether we support AVX extensions |
26565 | ||
26566 | ac_save_CFLAGS="$CFLAGS" | |
26567 | CFLAGS="-O2 -mavx" | |
26568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26569 | /* end confdefs.h. */ | |
26570 | ||
26571 | void _mm256_zeroall (void) | |
26572 | { | |
26573 | __builtin_ia32_vzeroall (); | |
26574 | } | |
26575 | int | |
26576 | main () | |
26577 | { | |
26578 | ||
26579 | ; | |
26580 | return 0; | |
26581 | } | |
26582 | _ACEOF | |
26583 | if ac_fn_c_try_compile "$LINENO"; then : | |
26584 | ||
26585 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
26586 | ||
26587 | fi | |
26588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26589 | CFLAGS="$ac_save_CFLAGS" | |
26590 | ||
26591 | ||
26592 | # Check wether we support AVX2 extensions | |
26593 | ||
26594 | ac_save_CFLAGS="$CFLAGS" | |
26595 | CFLAGS="-O2 -mavx2" | |
26596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26597 | /* end confdefs.h. */ | |
26598 | ||
26599 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
26600 | __v4di | |
26601 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
26602 | { | |
26603 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
26604 | } | |
26605 | int | |
26606 | main () | |
26607 | { | |
26608 | ||
26609 | ; | |
26610 | return 0; | |
26611 | } | |
26612 | _ACEOF | |
26613 | if ac_fn_c_try_compile "$LINENO"; then : | |
26614 | ||
26615 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
26616 | ||
26617 | fi | |
26618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26619 | CFLAGS="$ac_save_CFLAGS" | |
26620 | ||
26621 | ||
26622 | # Check wether we support AVX512f extensions | |
26623 | ||
26624 | ac_save_CFLAGS="$CFLAGS" | |
26625 | CFLAGS="-O2 -mavx512f" | |
26626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26627 | /* end confdefs.h. */ | |
26628 | ||
26629 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
26630 | __m512d _mm512_add (__m512d a) | |
26631 | { | |
9db0a8c2 JJ |
26632 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
26633 | /* For -m64/-mx32 also verify that code will work even if | |
26634 | the target uses call saved zmm16+ and needs to emit | |
26635 | unwind info for them (e.g. on mingw). See PR79127. */ | |
26636 | #ifdef __x86_64__ | |
26637 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
26638 | #endif | |
26639 | return b; | |
31cfd832 TK |
26640 | } |
26641 | int | |
26642 | main () | |
26643 | { | |
26644 | ||
26645 | ; | |
26646 | return 0; | |
26647 | } | |
26648 | _ACEOF | |
26649 | if ac_fn_c_try_compile "$LINENO"; then : | |
26650 | ||
26651 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
26652 | ||
26653 | fi | |
26654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26655 | CFLAGS="$ac_save_CFLAGS" | |
26656 | ||
26657 | ||
1d5cf7fc TK |
26658 | # Check for FMA3 extensions |
26659 | ||
26660 | ac_save_CFLAGS="$CFLAGS" | |
26661 | CFLAGS="-O2 -mfma -mno-fma4" | |
26662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26663 | /* end confdefs.h. */ | |
26664 | ||
9698e1bb RO |
26665 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26666 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26667 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 26668 | { |
9698e1bb RO |
26669 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26670 | (__v4sf)__B, | |
26671 | (__v4sf)__C); | |
1d5cf7fc TK |
26672 | } |
26673 | int | |
26674 | main () | |
26675 | { | |
26676 | ||
26677 | ; | |
26678 | return 0; | |
26679 | } | |
26680 | _ACEOF | |
26681 | if ac_fn_c_try_compile "$LINENO"; then : | |
26682 | ||
26683 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
26684 | ||
26685 | fi | |
26686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26687 | CFLAGS="$ac_save_CFLAGS" | |
26688 | ||
26689 | ||
26690 | # Check for FMA4 extensions | |
26691 | ||
26692 | ac_save_CFLAGS="$CFLAGS" | |
26693 | CFLAGS="-O2 -mfma4 -mno-fma" | |
26694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26695 | /* end confdefs.h. */ | |
26696 | ||
9698e1bb RO |
26697 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26698 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26699 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 26700 | { |
9698e1bb RO |
26701 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26702 | (__v4sf)__B, | |
26703 | (__v4sf)__C); | |
1d5cf7fc TK |
26704 | } |
26705 | int | |
26706 | main () | |
26707 | { | |
26708 | ||
26709 | ; | |
26710 | return 0; | |
26711 | } | |
26712 | _ACEOF | |
26713 | if ac_fn_c_try_compile "$LINENO"; then : | |
26714 | ||
26715 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
26716 | ||
26717 | fi | |
26718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26719 | CFLAGS="$ac_save_CFLAGS" | |
26720 | ||
26721 | ||
26722 | # Check if AVX128 works | |
26723 | ||
26724 | ac_save_CFLAGS="$CFLAGS" | |
26725 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
26726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26727 | /* end confdefs.h. */ | |
26728 | ||
26729 | void foo() | |
26730 | { | |
26731 | } | |
26732 | int | |
26733 | main () | |
26734 | { | |
26735 | ||
26736 | ; | |
26737 | return 0; | |
26738 | } | |
26739 | _ACEOF | |
26740 | if ac_fn_c_try_compile "$LINENO"; then : | |
26741 | ||
26742 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
26743 | ||
26744 | if true; then | |
26745 | HAVE_AVX128_TRUE= | |
26746 | HAVE_AVX128_FALSE='#' | |
26747 | else | |
26748 | HAVE_AVX128_TRUE='#' | |
26749 | HAVE_AVX128_FALSE= | |
26750 | fi | |
26751 | ||
5596d26a TK |
26752 | else |
26753 | if false; then | |
26754 | HAVE_AVX128_TRUE= | |
26755 | HAVE_AVX128_FALSE='#' | |
26756 | else | |
26757 | HAVE_AVX128_TRUE='#' | |
26758 | HAVE_AVX128_FALSE= | |
26759 | fi | |
26760 | ||
1d5cf7fc TK |
26761 | fi |
26762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26763 | CFLAGS="$ac_save_CFLAGS" | |
26764 | ||
26765 | ||
3c36aa6b JJ |
26766 | # Determine what GCC version number to use in filesystem paths. |
26767 | ||
26768 | get_gcc_base_ver="cat" | |
26769 | ||
26770 | # Check whether --with-gcc-major-version-only was given. | |
26771 | if test "${with_gcc_major_version_only+set}" = set; then : | |
26772 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 26773 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
26774 | fi |
26775 | ||
26776 | fi | |
26777 | ||
26778 | ||
26779 | ||
26780 | ||
6de9cd9a DN |
26781 | cat >confcache <<\_ACEOF |
26782 | # This file is a shell script that caches the results of configure | |
26783 | # tests run on this system so they can be shared between configure | |
26784 | # scripts and configure runs, see configure's option --config-cache. | |
26785 | # It is not useful on other systems. If it contains results you don't | |
26786 | # want to keep, you may remove or edit it. | |
26787 | # | |
26788 | # config.status only pays attention to the cache file if you give it | |
26789 | # the --recheck option to rerun configure. | |
26790 | # | |
26791 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26792 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26793 | # following values. | |
26794 | ||
26795 | _ACEOF | |
26796 | ||
26797 | # The following way of writing the cache mishandles newlines in values, | |
26798 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 26799 | # So, we kill variables containing newlines. |
6de9cd9a DN |
26800 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26801 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
26802 | ( |
26803 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26804 | eval ac_val=\$$ac_var | |
26805 | case $ac_val in #( | |
26806 | *${as_nl}*) | |
26807 | case $ac_var in #( | |
26808 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26809 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26810 | esac | |
26811 | case $ac_var in #( | |
26812 | _ | IFS | as_nl) ;; #( | |
26813 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26814 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26815 | esac ;; | |
26816 | esac | |
26817 | done | |
26818 | ||
6de9cd9a | 26819 | (set) 2>&1 | |
5213506e RW |
26820 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26821 | *${as_nl}ac_space=\ *) | |
26822 | # `set' does not quote correctly, so add quotes: double-quote | |
26823 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
26824 | sed -n \ |
26825 | "s/'/'\\\\''/g; | |
26826 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 26827 | ;; #( |
6de9cd9a DN |
26828 | *) |
26829 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 26830 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 26831 | ;; |
5213506e RW |
26832 | esac | |
26833 | sort | |
26834 | ) | | |
6de9cd9a | 26835 | sed ' |
5213506e | 26836 | /^ac_cv_env_/b end |
6de9cd9a | 26837 | t clear |
5213506e | 26838 | :clear |
6de9cd9a DN |
26839 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26840 | t end | |
5213506e RW |
26841 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26842 | :end' >>confcache | |
26843 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26844 | if test -w "$cache_file"; then | |
22e05272 | 26845 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
26846 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26847 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
26848 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26849 | cat confcache >"$cache_file" | |
26850 | else | |
26851 | case $cache_file in #( | |
26852 | */* | ?:*) | |
26853 | mv -f confcache "$cache_file"$$ && | |
26854 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26855 | *) | |
26856 | mv -f confcache "$cache_file" ;; | |
26857 | esac | |
26858 | fi | |
26859 | fi | |
6de9cd9a | 26860 | else |
5213506e RW |
26861 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26862 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
26863 | fi |
26864 | fi | |
26865 | rm -f confcache | |
26866 | ||
96b8a615 AJ |
26867 | if test ${multilib} = yes; then |
26868 | multilib_arg="--enable-multilib" | |
6de9cd9a | 26869 | else |
96b8a615 | 26870 | multilib_arg= |
6de9cd9a | 26871 | fi |
6de9cd9a | 26872 | |
1ec601bf FXC |
26873 | # Write our Makefile and spec file. |
26874 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 26875 | |
6de9cd9a DN |
26876 | cat >confcache <<\_ACEOF |
26877 | # This file is a shell script that caches the results of configure | |
26878 | # tests run on this system so they can be shared between configure | |
26879 | # scripts and configure runs, see configure's option --config-cache. | |
26880 | # It is not useful on other systems. If it contains results you don't | |
26881 | # want to keep, you may remove or edit it. | |
26882 | # | |
26883 | # config.status only pays attention to the cache file if you give it | |
26884 | # the --recheck option to rerun configure. | |
26885 | # | |
26886 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26887 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26888 | # following values. | |
26889 | ||
26890 | _ACEOF | |
26891 | ||
26892 | # The following way of writing the cache mishandles newlines in values, | |
26893 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 26894 | # So, we kill variables containing newlines. |
6de9cd9a DN |
26895 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26896 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
26897 | ( |
26898 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26899 | eval ac_val=\$$ac_var | |
26900 | case $ac_val in #( | |
26901 | *${as_nl}*) | |
26902 | case $ac_var in #( | |
26903 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26904 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26905 | esac | |
26906 | case $ac_var in #( | |
26907 | _ | IFS | as_nl) ;; #( | |
26908 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26909 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26910 | esac ;; | |
26911 | esac | |
26912 | done | |
26913 | ||
6de9cd9a | 26914 | (set) 2>&1 | |
5213506e RW |
26915 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26916 | *${as_nl}ac_space=\ *) | |
26917 | # `set' does not quote correctly, so add quotes: double-quote | |
26918 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
26919 | sed -n \ |
26920 | "s/'/'\\\\''/g; | |
26921 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 26922 | ;; #( |
6de9cd9a DN |
26923 | *) |
26924 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 26925 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 26926 | ;; |
5213506e RW |
26927 | esac | |
26928 | sort | |
26929 | ) | | |
6de9cd9a | 26930 | sed ' |
5213506e | 26931 | /^ac_cv_env_/b end |
6de9cd9a | 26932 | t clear |
5213506e | 26933 | :clear |
6de9cd9a DN |
26934 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26935 | t end | |
5213506e RW |
26936 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26937 | :end' >>confcache | |
26938 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26939 | if test -w "$cache_file"; then | |
22e05272 | 26940 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
26941 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26942 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
26943 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26944 | cat confcache >"$cache_file" | |
26945 | else | |
26946 | case $cache_file in #( | |
26947 | */* | ?:*) | |
26948 | mv -f confcache "$cache_file"$$ && | |
26949 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26950 | *) | |
26951 | mv -f confcache "$cache_file" ;; | |
26952 | esac | |
26953 | fi | |
26954 | fi | |
6de9cd9a | 26955 | else |
5213506e RW |
26956 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26957 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
26958 | fi |
26959 | fi | |
26960 | rm -f confcache | |
26961 | ||
26962 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26963 | # Let make expand exec_prefix. | |
26964 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26965 | ||
6de9cd9a DN |
26966 | DEFS=-DHAVE_CONFIG_H |
26967 | ||
26968 | ac_libobjs= | |
26969 | ac_ltlibobjs= | |
22e05272 | 26970 | U= |
6de9cd9a DN |
26971 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
26972 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
26973 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26974 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26975 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26976 | # will be set to the directory where LIBOBJS objects are built. | |
26977 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26978 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
26979 | done |
26980 | LIBOBJS=$ac_libobjs | |
26981 | ||
26982 | LTLIBOBJS=$ac_ltlibobjs | |
26983 | ||
26984 | ||
b808ac33 | 26985 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
22e05272 | 26986 | as_fn_error $? "conditional \"onestep\" was never defined. |
5213506e RW |
26987 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
26988 | fi | |
22e05272 JM |
26989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
26990 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
26991 | if test -n "$am_sleep_pid"; then | |
26992 | # Hide warnings about reused PIDs. | |
26993 | wait $am_sleep_pid 2>/dev/null | |
26994 | fi | |
26995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
26996 | $as_echo "done" >&6; } | |
5213506e RW |
26997 | if test -n "$EXEEXT"; then |
26998 | am__EXEEXT_TRUE= | |
26999 | am__EXEEXT_FALSE='#' | |
27000 | else | |
27001 | am__EXEEXT_TRUE='#' | |
27002 | am__EXEEXT_FALSE= | |
b808ac33 | 27003 | fi |
5213506e | 27004 | |
6de9cd9a | 27005 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 27006 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 27007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 27008 | fi |
679c0f9a | 27009 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 27010 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 27011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
27012 | fi |
27013 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 27014 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 27015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 27016 | fi |
21be0a5a | 27017 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 27018 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
27019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27020 | fi | |
c0e7e2bf | 27021 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 27022 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 27023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 27024 | fi |
49ea7a0e | 27025 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 27026 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
27027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27028 | fi | |
27029 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 27030 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
27031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27032 | fi | |
ee95f928 | 27033 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 27034 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
27035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27036 | fi | |
66dbcf2d | 27037 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 27038 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
27039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27040 | fi | |
1ec601bf | 27041 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
22e05272 | 27042 | as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. |
1ec601bf FXC |
27043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27044 | fi | |
8b198102 | 27045 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 27046 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
27047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27048 | fi | |
1d5cf7fc | 27049 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27050 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
27051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27052 | fi | |
5596d26a | 27053 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27054 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
27055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27056 | fi | |
6de9cd9a | 27057 | |
22e05272 | 27058 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 27059 | ac_write_fail=0 |
6de9cd9a DN |
27060 | ac_clean_files_save=$ac_clean_files |
27061 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
27062 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
27063 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
27064 | as_write_fail=0 | |
27065 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
27066 | #! $SHELL |
27067 | # Generated by $as_me. | |
27068 | # Run this file to recreate the current configuration. | |
27069 | # Compiler output produced by configure, useful for debugging | |
27070 | # configure, is in config.log if it exists. | |
27071 | ||
27072 | debug=false | |
27073 | ac_cs_recheck=false | |
27074 | ac_cs_silent=false | |
6de9cd9a | 27075 | |
5213506e RW |
27076 | SHELL=\${CONFIG_SHELL-$SHELL} |
27077 | export SHELL | |
27078 | _ASEOF | |
27079 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
27080 | ## -------------------- ## | |
27081 | ## M4sh Initialization. ## | |
27082 | ## -------------------- ## | |
27083 | ||
27084 | # Be more Bourne compatible | |
27085 | DUALCASE=1; export DUALCASE # for MKS sh | |
27086 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
27087 | emulate sh |
27088 | NULLCMD=: | |
5213506e | 27089 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
27090 | # is contrary to our usage. Disable this feature. |
27091 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
27092 | setopt NO_GLOB_SUBST |
27093 | else | |
27094 | case `(set -o) 2>/dev/null` in #( | |
27095 | *posix*) : | |
27096 | set -o posix ;; #( | |
27097 | *) : | |
27098 | ;; | |
27099 | esac | |
6de9cd9a | 27100 | fi |
6de9cd9a | 27101 | |
5213506e RW |
27102 | |
27103 | as_nl=' | |
27104 | ' | |
27105 | export as_nl | |
27106 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
27107 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
27108 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
27109 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
27110 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
27111 | # but without wasting forks for bash or zsh. | |
27112 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
27113 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27114 | as_echo='print -r --' | |
27115 | as_echo_n='print -rn --' | |
27116 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27117 | as_echo='printf %s\n' | |
27118 | as_echo_n='printf %s' | |
27119 | else | |
27120 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
27121 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
27122 | as_echo_n='/usr/ucb/echo -n' | |
27123 | else | |
27124 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
27125 | as_echo_n_body='eval | |
27126 | arg=$1; | |
27127 | case $arg in #( | |
27128 | *"$as_nl"*) | |
27129 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
27130 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
27131 | esac; | |
27132 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
27133 | ' | |
27134 | export as_echo_n_body | |
27135 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
27136 | fi | |
27137 | export as_echo_body | |
27138 | as_echo='sh -c $as_echo_body as_echo' | |
27139 | fi | |
27140 | ||
27141 | # The user is always right. | |
27142 | if test "${PATH_SEPARATOR+set}" != set; then | |
27143 | PATH_SEPARATOR=: | |
27144 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
27145 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
27146 | PATH_SEPARATOR=';' | |
27147 | } | |
6de9cd9a DN |
27148 | fi |
27149 | ||
27150 | ||
5213506e RW |
27151 | # IFS |
27152 | # We need space, tab and new line, in precisely that order. Quoting is | |
27153 | # there to prevent editors from complaining about space-tab. | |
27154 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
27155 | # splitting by setting IFS to empty value.) | |
27156 | IFS=" "" $as_nl" | |
27157 | ||
27158 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 27159 | as_myself= |
5213506e RW |
27160 | case $0 in #(( |
27161 | *[\\/]* ) as_myself=$0 ;; | |
27162 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27163 | for as_dir in $PATH | |
27164 | do | |
27165 | IFS=$as_save_IFS | |
27166 | test -z "$as_dir" && as_dir=. | |
27167 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27168 | done | |
27169 | IFS=$as_save_IFS | |
27170 | ||
27171 | ;; | |
27172 | esac | |
27173 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27174 | # in which case we are not to be found in the path. | |
27175 | if test "x$as_myself" = x; then | |
27176 | as_myself=$0 | |
27177 | fi | |
27178 | if test ! -f "$as_myself"; then | |
27179 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
27180 | exit 1 | |
27181 | fi | |
27182 | ||
27183 | # Unset variables that we do not need and which cause bugs (e.g. in | |
27184 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
27185 | # suppresses any "Segmentation fault" message there. '((' could | |
27186 | # trigger a bug in pdksh 5.2.14. | |
27187 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
27188 | do eval test x\${$as_var+set} = xset \ | |
27189 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27190 | done | |
6de9cd9a DN |
27191 | PS1='$ ' |
27192 | PS2='> ' | |
27193 | PS4='+ ' | |
27194 | ||
27195 | # NLS nuisances. | |
5213506e RW |
27196 | LC_ALL=C |
27197 | export LC_ALL | |
27198 | LANGUAGE=C | |
27199 | export LANGUAGE | |
27200 | ||
27201 | # CDPATH. | |
27202 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27203 | ||
27204 | ||
22e05272 JM |
27205 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
27206 | # ---------------------------------------- | |
5213506e RW |
27207 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
27208 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 27209 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
27210 | as_fn_error () |
27211 | { | |
22e05272 JM |
27212 | as_status=$1; test $as_status -eq 0 && as_status=1 |
27213 | if test "$4"; then | |
27214 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
27215 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 27216 | fi |
22e05272 | 27217 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
27218 | as_fn_exit $as_status |
27219 | } # as_fn_error | |
27220 | ||
27221 | ||
27222 | # as_fn_set_status STATUS | |
27223 | # ----------------------- | |
27224 | # Set $? to STATUS, without forking. | |
27225 | as_fn_set_status () | |
27226 | { | |
27227 | return $1 | |
27228 | } # as_fn_set_status | |
27229 | ||
27230 | # as_fn_exit STATUS | |
27231 | # ----------------- | |
27232 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
27233 | as_fn_exit () | |
27234 | { | |
27235 | set +e | |
27236 | as_fn_set_status $1 | |
27237 | exit $1 | |
27238 | } # as_fn_exit | |
27239 | ||
27240 | # as_fn_unset VAR | |
27241 | # --------------- | |
27242 | # Portably unset VAR. | |
27243 | as_fn_unset () | |
27244 | { | |
27245 | { eval $1=; unset $1;} | |
27246 | } | |
27247 | as_unset=as_fn_unset | |
27248 | # as_fn_append VAR VALUE | |
27249 | # ---------------------- | |
27250 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
27251 | # advantage of any shell optimizations that allow amortized linear growth over | |
27252 | # repeated appends, instead of the typical quadratic growth present in naive | |
27253 | # implementations. | |
27254 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
27255 | eval 'as_fn_append () | |
27256 | { | |
27257 | eval $1+=\$2 | |
27258 | }' | |
27259 | else | |
27260 | as_fn_append () | |
27261 | { | |
27262 | eval $1=\$$1\$2 | |
27263 | } | |
27264 | fi # as_fn_append | |
27265 | ||
27266 | # as_fn_arith ARG... | |
27267 | # ------------------ | |
27268 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
27269 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
27270 | # must be portable across $(()) and expr. | |
27271 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
27272 | eval 'as_fn_arith () | |
27273 | { | |
27274 | as_val=$(( $* )) | |
27275 | }' | |
27276 | else | |
27277 | as_fn_arith () | |
27278 | { | |
27279 | as_val=`expr "$@" || test $? -eq 1` | |
27280 | } | |
27281 | fi # as_fn_arith | |
6de9cd9a | 27282 | |
5213506e RW |
27283 | |
27284 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
27285 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
27286 | as_expr=expr |
27287 | else | |
27288 | as_expr=false | |
27289 | fi | |
27290 | ||
5213506e | 27291 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
27292 | as_basename=basename |
27293 | else | |
27294 | as_basename=false | |
27295 | fi | |
27296 | ||
5213506e RW |
27297 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27298 | as_dirname=dirname | |
27299 | else | |
27300 | as_dirname=false | |
27301 | fi | |
6de9cd9a | 27302 | |
5213506e | 27303 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
27304 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27305 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
27306 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27307 | $as_echo X/"$0" | | |
27308 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
27309 | s//\1/ | |
27310 | q | |
27311 | } | |
27312 | /^X\/\(\/\/\)$/{ | |
27313 | s//\1/ | |
27314 | q | |
27315 | } | |
27316 | /^X\/\(\/\).*/{ | |
27317 | s//\1/ | |
27318 | q | |
27319 | } | |
27320 | s/.*/./; q'` | |
38d24731 | 27321 | |
38d24731 RW |
27322 | # Avoid depending upon Character Ranges. |
27323 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27324 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27325 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27326 | as_cr_digits='0123456789' | |
27327 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27328 | ||
5213506e RW |
27329 | ECHO_C= ECHO_N= ECHO_T= |
27330 | case `echo -n x` in #((((( | |
27331 | -n*) | |
27332 | case `echo 'xy\c'` in | |
27333 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
27334 | xy) ECHO_C='\c';; | |
27335 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
27336 | ECHO_T=' ';; | |
27337 | esac;; | |
27338 | *) | |
27339 | ECHO_N='-n';; | |
6de9cd9a DN |
27340 | esac |
27341 | ||
5213506e RW |
27342 | rm -f conf$$ conf$$.exe conf$$.file |
27343 | if test -d conf$$.dir; then | |
27344 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 27345 | else |
5213506e RW |
27346 | rm -f conf$$.dir |
27347 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 27348 | fi |
5213506e RW |
27349 | if (echo >conf$$.file) 2>/dev/null; then |
27350 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 27351 | as_ln_s='ln -s' |
5213506e RW |
27352 | # ... but there are two gotchas: |
27353 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
27354 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 27355 | # In both cases, we have to default to `cp -pR'. |
5213506e | 27356 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 27357 | as_ln_s='cp -pR' |
5213506e RW |
27358 | elif ln conf$$.file conf$$ 2>/dev/null; then |
27359 | as_ln_s=ln | |
27360 | else | |
22e05272 | 27361 | as_ln_s='cp -pR' |
38d24731 | 27362 | fi |
6de9cd9a | 27363 | else |
22e05272 | 27364 | as_ln_s='cp -pR' |
6de9cd9a | 27365 | fi |
5213506e RW |
27366 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27367 | rmdir conf$$.dir 2>/dev/null | |
27368 | ||
27369 | ||
27370 | # as_fn_mkdir_p | |
27371 | # ------------- | |
27372 | # Create "$as_dir" as a directory, including parents if necessary. | |
27373 | as_fn_mkdir_p () | |
27374 | { | |
27375 | ||
27376 | case $as_dir in #( | |
27377 | -*) as_dir=./$as_dir;; | |
27378 | esac | |
27379 | test -d "$as_dir" || eval $as_mkdir_p || { | |
27380 | as_dirs= | |
27381 | while :; do | |
27382 | case $as_dir in #( | |
27383 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27384 | *) as_qdir=$as_dir;; | |
27385 | esac | |
27386 | as_dirs="'$as_qdir' $as_dirs" | |
27387 | as_dir=`$as_dirname -- "$as_dir" || | |
27388 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27389 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27390 | X"$as_dir" : 'X\(//\)$' \| \ | |
27391 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27392 | $as_echo X"$as_dir" | | |
27393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27394 | s//\1/ | |
27395 | q | |
27396 | } | |
27397 | /^X\(\/\/\)[^/].*/{ | |
27398 | s//\1/ | |
27399 | q | |
27400 | } | |
27401 | /^X\(\/\/\)$/{ | |
27402 | s//\1/ | |
27403 | q | |
27404 | } | |
27405 | /^X\(\/\).*/{ | |
27406 | s//\1/ | |
27407 | q | |
27408 | } | |
27409 | s/.*/./; q'` | |
27410 | test -d "$as_dir" && break | |
27411 | done | |
27412 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 27413 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 27414 | |
6de9cd9a | 27415 | |
5213506e | 27416 | } # as_fn_mkdir_p |
6de9cd9a | 27417 | if mkdir -p . 2>/dev/null; then |
5213506e | 27418 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
27419 | else |
27420 | test -d ./-p && rmdir ./-p | |
27421 | as_mkdir_p=false | |
27422 | fi | |
27423 | ||
22e05272 JM |
27424 | |
27425 | # as_fn_executable_p FILE | |
27426 | # ----------------------- | |
27427 | # Test if FILE is an executable regular file. | |
27428 | as_fn_executable_p () | |
27429 | { | |
27430 | test -f "$1" && test -x "$1" | |
27431 | } # as_fn_executable_p | |
27432 | as_test_x='test -x' | |
27433 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
27434 | |
27435 | # Sed expression to map a string onto a valid CPP name. | |
27436 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27437 | ||
27438 | # Sed expression to map a string onto a valid variable name. | |
27439 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27440 | ||
27441 | ||
6de9cd9a | 27442 | exec 6>&1 |
5213506e RW |
27443 | ## ----------------------------------- ## |
27444 | ## Main body of $CONFIG_STATUS script. ## | |
27445 | ## ----------------------------------- ## | |
27446 | _ASEOF | |
27447 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
27448 | ||
27449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27450 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 27451 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
27452 | # values after options handling. |
27453 | ac_log=" | |
0dce3ca1 | 27454 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 27455 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
27456 | |
27457 | CONFIG_FILES = $CONFIG_FILES | |
27458 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27459 | CONFIG_LINKS = $CONFIG_LINKS | |
27460 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27461 | $ $0 $@ | |
27462 | ||
5213506e RW |
27463 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27464 | " | |
27465 | ||
6de9cd9a DN |
27466 | _ACEOF |
27467 | ||
5213506e RW |
27468 | case $ac_config_files in *" |
27469 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
27470 | esac | |
78511f8b | 27471 | |
5213506e RW |
27472 | case $ac_config_headers in *" |
27473 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27474 | esac | |
38d24731 | 27475 | |
38d24731 | 27476 | |
5213506e RW |
27477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27478 | # Files that config.status was made for. | |
27479 | config_files="$ac_config_files" | |
27480 | config_headers="$ac_config_headers" | |
27481 | config_commands="$ac_config_commands" | |
6de9cd9a | 27482 | |
5213506e | 27483 | _ACEOF |
38d24731 | 27484 | |
5213506e | 27485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 27486 | ac_cs_usage="\ |
5213506e RW |
27487 | \`$as_me' instantiates files and other configuration actions |
27488 | from templates according to the current configuration. Unless the files | |
27489 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 27490 | |
5213506e | 27491 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
27492 | |
27493 | -h, --help print this help, then exit | |
5213506e | 27494 | -V, --version print version number and configuration settings, then exit |
22e05272 | 27495 | --config print configuration, then exit |
5213506e RW |
27496 | -q, --quiet, --silent |
27497 | do not print progress messages | |
6de9cd9a DN |
27498 | -d, --debug don't remove temporary files |
27499 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
27500 | --file=FILE[:TEMPLATE] |
27501 | instantiate the configuration file FILE | |
27502 | --header=FILE[:TEMPLATE] | |
27503 | instantiate the configuration header FILE | |
6de9cd9a DN |
27504 | |
27505 | Configuration files: | |
27506 | $config_files | |
27507 | ||
27508 | Configuration headers: | |
27509 | $config_headers | |
27510 | ||
27511 | Configuration commands: | |
27512 | $config_commands | |
27513 | ||
5213506e RW |
27514 | Report bugs to the package provider. |
27515 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
27516 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 27517 | |
5213506e RW |
27518 | _ACEOF |
27519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 27520 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 27521 | ac_cs_version="\\ |
0dce3ca1 | 27522 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
27523 | configured by $0, generated by GNU Autoconf 2.69, |
27524 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 27525 | |
22e05272 | 27526 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
27527 | This config.status script is free software; the Free Software Foundation |
27528 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
27529 | |
27530 | ac_pwd='$ac_pwd' | |
27531 | srcdir='$srcdir' | |
27532 | INSTALL='$INSTALL' | |
27533 | MKDIR_P='$MKDIR_P' | |
27534 | AWK='$AWK' | |
27535 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
27536 | _ACEOF |
27537 | ||
5213506e RW |
27538 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27539 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
27540 | ac_need_defaults=: |
27541 | while test $# != 0 | |
27542 | do | |
27543 | case $1 in | |
22e05272 | 27544 | --*=?*) |
5213506e RW |
27545 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
27546 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
27547 | ac_shift=: |
27548 | ;; | |
22e05272 JM |
27549 | --*=) |
27550 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27551 | ac_optarg= | |
27552 | ac_shift=: | |
27553 | ;; | |
5213506e | 27554 | *) |
6de9cd9a DN |
27555 | ac_option=$1 |
27556 | ac_optarg=$2 | |
27557 | ac_shift=shift | |
27558 | ;; | |
6de9cd9a DN |
27559 | esac |
27560 | ||
27561 | case $ac_option in | |
27562 | # Handling of the options. | |
6de9cd9a DN |
27563 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27564 | ac_cs_recheck=: ;; | |
5213506e RW |
27565 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27566 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
27567 | --config | --confi | --conf | --con | --co | --c ) |
27568 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 27569 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
27570 | debug=: ;; |
27571 | --file | --fil | --fi | --f ) | |
27572 | $ac_shift | |
5213506e RW |
27573 | case $ac_optarg in |
27574 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 27575 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
27576 | esac |
27577 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
27578 | ac_need_defaults=false;; |
27579 | --header | --heade | --head | --hea ) | |
27580 | $ac_shift | |
5213506e RW |
27581 | case $ac_optarg in |
27582 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27583 | esac | |
27584 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 27585 | ac_need_defaults=false;; |
5213506e RW |
27586 | --he | --h) |
27587 | # Conflict between --help and --header | |
22e05272 | 27588 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
27589 | Try \`$0 --help' for more information.";; |
27590 | --help | --hel | -h ) | |
27591 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
27592 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27593 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27594 | ac_cs_silent=: ;; | |
27595 | ||
27596 | # This is an error. | |
22e05272 | 27597 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 27598 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 27599 | |
5213506e RW |
27600 | *) as_fn_append ac_config_targets " $1" |
27601 | ac_need_defaults=false ;; | |
6de9cd9a DN |
27602 | |
27603 | esac | |
27604 | shift | |
27605 | done | |
27606 | ||
27607 | ac_configure_extra_args= | |
27608 | ||
27609 | if $ac_cs_silent; then | |
27610 | exec 6>/dev/null | |
27611 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27612 | fi | |
27613 | ||
27614 | _ACEOF | |
5213506e | 27615 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 27616 | if \$ac_cs_recheck; then |
22e05272 | 27617 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
27618 | shift |
27619 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27620 | CONFIG_SHELL='$SHELL' | |
27621 | export CONFIG_SHELL | |
27622 | exec "\$@" | |
6de9cd9a DN |
27623 | fi |
27624 | ||
1cf3d07d | 27625 | _ACEOF |
5213506e RW |
27626 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27627 | exec 5>>config.log | |
27628 | { | |
27629 | echo | |
27630 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27631 | ## Running $as_me. ## | |
27632 | _ASBOX | |
27633 | $as_echo "$ac_log" | |
27634 | } >&5 | |
1cf3d07d | 27635 | |
5213506e RW |
27636 | _ACEOF |
27637 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 27638 | # |
5213506e | 27639 | # INIT-COMMANDS |
1cf3d07d SE |
27640 | # |
27641 | ||
1cf3d07d SE |
27642 | srcdir="$srcdir" |
27643 | host="$host" | |
27644 | target="$target" | |
27645 | with_multisubdir="$with_multisubdir" | |
27646 | with_multisrctop="$with_multisrctop" | |
27647 | with_target_subdir="$with_target_subdir" | |
27648 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
27649 | multi_basedir="$multi_basedir" | |
27650 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
27651 | CC="$CC" | |
2017c370 JB |
27652 | CXX="$CXX" |
27653 | GFORTRAN="$GFORTRAN" | |
22e05272 | 27654 | GDC="$GDC" |
1cf3d07d SE |
27655 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
27656 | ||
27657 | ||
27658 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
27659 | # if CDPATH is set. | |
27660 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27661 | ||
27662 | sed_quote_subst='$sed_quote_subst' | |
27663 | double_quote_subst='$double_quote_subst' | |
27664 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
27665 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
27666 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
27667 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
27668 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
27669 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
27670 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
27671 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
27672 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
27673 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
27674 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
27675 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
27676 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
27677 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
27678 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
27679 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
27680 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
27681 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
27682 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
27683 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
27684 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
27685 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
27686 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
27687 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
27688 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
27689 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
27690 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
27691 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
27692 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
27693 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
27694 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
27695 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
27696 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
27697 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
27698 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
27699 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
27700 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
27701 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
27702 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27703 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27704 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27705 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
27706 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
27707 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
27708 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
27709 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
27710 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
27711 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
27712 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
27713 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
27714 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
27715 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
27716 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
27717 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
27718 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
27719 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
27720 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
27721 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
27722 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
27723 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
27724 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
27725 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
27726 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
27727 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
27728 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
27729 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27730 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
27731 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
27732 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27733 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27734 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
27735 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
27736 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27737 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27738 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27739 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
27740 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27741 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
27742 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27743 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27744 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27745 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
27746 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
27747 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
27748 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
27749 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
27750 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27751 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
27752 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
27753 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
27754 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
27755 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
27756 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
27757 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
27758 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
27759 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
27760 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
27761 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
27762 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
27763 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
27764 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
27765 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
27766 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27767 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
27768 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
27769 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
27770 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
27771 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
27772 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27773 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27774 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
27775 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
27776 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
27777 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
27778 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
27779 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
27780 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
27781 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
27782 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
27783 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
27784 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
27785 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
27786 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
27787 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
27788 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
27789 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
27790 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
27791 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
27792 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27793 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27794 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27795 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
27796 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
27797 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27798 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
27799 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
27800 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
27801 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
27802 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
27803 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
27804 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27805 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27806 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
27807 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27808 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27809 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27810 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27811 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27812 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27813 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27814 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27815 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27816 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27817 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27818 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
27819 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
27820 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
27821 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
27822 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
27823 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
27824 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
27825 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
27826 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
27827 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
27828 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27829 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27830 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27831 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27832 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27833 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
27834 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
27835 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27836 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27837 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
27838 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
27839 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
27840 | |
27841 | LTCC='$LTCC' | |
27842 | LTCFLAGS='$LTCFLAGS' | |
27843 | compiler='$compiler_DEFAULT' | |
27844 | ||
43e02a8a RW |
27845 | # A function that is used when there is no print builtin or printf. |
27846 | func_fallback_echo () | |
27847 | { | |
27848 | eval 'cat <<_LTECHO_EOF | |
27849 | \$1 | |
27850 | _LTECHO_EOF' | |
27851 | } | |
27852 | ||
1cf3d07d | 27853 | # Quote evaled strings. |
66dbcf2d | 27854 | for var in SED \ |
1cf3d07d SE |
27855 | GREP \ |
27856 | EGREP \ | |
27857 | FGREP \ | |
66dbcf2d RO |
27858 | SHELL \ |
27859 | ECHO \ | |
1cf3d07d SE |
27860 | LD \ |
27861 | NM \ | |
27862 | LN_S \ | |
27863 | lt_SP2NL \ | |
27864 | lt_NL2SP \ | |
27865 | reload_flag \ | |
d58dead8 | 27866 | OBJDUMP \ |
1cf3d07d SE |
27867 | deplibs_check_method \ |
27868 | file_magic_cmd \ | |
27869 | AR \ | |
27870 | AR_FLAGS \ | |
27871 | STRIP \ | |
27872 | RANLIB \ | |
27873 | CC \ | |
27874 | CFLAGS \ | |
27875 | compiler \ | |
27876 | lt_cv_sys_global_symbol_pipe \ | |
27877 | lt_cv_sys_global_symbol_to_cdecl \ | |
27878 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 27879 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
27880 | lt_prog_compiler_no_builtin_flag \ |
27881 | lt_prog_compiler_wl \ | |
27882 | lt_prog_compiler_pic \ | |
27883 | lt_prog_compiler_static \ | |
27884 | lt_cv_prog_compiler_c_o \ | |
27885 | need_locks \ | |
d58dead8 PG |
27886 | DSYMUTIL \ |
27887 | NMEDIT \ | |
27888 | LIPO \ | |
27889 | OTOOL \ | |
27890 | OTOOL64 \ | |
1cf3d07d SE |
27891 | shrext_cmds \ |
27892 | export_dynamic_flag_spec \ | |
27893 | whole_archive_flag_spec \ | |
27894 | compiler_needs_object \ | |
27895 | with_gnu_ld \ | |
27896 | allow_undefined_flag \ | |
27897 | no_undefined_flag \ | |
27898 | hardcode_libdir_flag_spec \ | |
27899 | hardcode_libdir_flag_spec_ld \ | |
27900 | hardcode_libdir_separator \ | |
27901 | fix_srcfile_path \ | |
27902 | exclude_expsyms \ | |
27903 | include_expsyms \ | |
27904 | file_list_spec \ | |
27905 | variables_saved_for_relink \ | |
27906 | libname_spec \ | |
27907 | library_names_spec \ | |
27908 | soname_spec \ | |
43e02a8a | 27909 | install_override_mode \ |
1cf3d07d SE |
27910 | finish_eval \ |
27911 | old_striplib \ | |
27912 | striplib \ | |
d58dead8 | 27913 | compiler_lib_search_dirs \ |
1cf3d07d SE |
27914 | predep_objects \ |
27915 | postdep_objects \ | |
27916 | predeps \ | |
27917 | postdeps \ | |
27918 | compiler_lib_search_path \ | |
27919 | LD_FC \ | |
43e02a8a | 27920 | reload_flag_FC \ |
1cf3d07d SE |
27921 | compiler_FC \ |
27922 | lt_prog_compiler_no_builtin_flag_FC \ | |
27923 | lt_prog_compiler_wl_FC \ | |
27924 | lt_prog_compiler_pic_FC \ | |
27925 | lt_prog_compiler_static_FC \ | |
27926 | lt_cv_prog_compiler_c_o_FC \ | |
27927 | export_dynamic_flag_spec_FC \ | |
27928 | whole_archive_flag_spec_FC \ | |
27929 | compiler_needs_object_FC \ | |
27930 | with_gnu_ld_FC \ | |
27931 | allow_undefined_flag_FC \ | |
27932 | no_undefined_flag_FC \ | |
27933 | hardcode_libdir_flag_spec_FC \ | |
27934 | hardcode_libdir_flag_spec_ld_FC \ | |
27935 | hardcode_libdir_separator_FC \ | |
27936 | fix_srcfile_path_FC \ | |
27937 | exclude_expsyms_FC \ | |
27938 | include_expsyms_FC \ | |
27939 | file_list_spec_FC \ | |
d58dead8 | 27940 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
27941 | predep_objects_FC \ |
27942 | postdep_objects_FC \ | |
27943 | predeps_FC \ | |
27944 | postdeps_FC \ | |
27945 | compiler_lib_search_path_FC; do | |
43e02a8a | 27946 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 27947 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 27948 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
27949 | ;; |
27950 | *) | |
27951 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27952 | ;; | |
27953 | esac | |
27954 | done | |
27955 | ||
27956 | # Double-quote double-evaled strings. | |
27957 | for var in reload_cmds \ | |
27958 | old_postinstall_cmds \ | |
27959 | old_postuninstall_cmds \ | |
27960 | old_archive_cmds \ | |
27961 | extract_expsyms_cmds \ | |
27962 | old_archive_from_new_cmds \ | |
27963 | old_archive_from_expsyms_cmds \ | |
27964 | archive_cmds \ | |
27965 | archive_expsym_cmds \ | |
27966 | module_cmds \ | |
27967 | module_expsym_cmds \ | |
27968 | export_symbols_cmds \ | |
27969 | prelink_cmds \ | |
27970 | postinstall_cmds \ | |
27971 | postuninstall_cmds \ | |
27972 | finish_cmds \ | |
27973 | sys_lib_search_path_spec \ | |
27974 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 27975 | reload_cmds_FC \ |
1cf3d07d SE |
27976 | old_archive_cmds_FC \ |
27977 | old_archive_from_new_cmds_FC \ | |
27978 | old_archive_from_expsyms_cmds_FC \ | |
27979 | archive_cmds_FC \ | |
27980 | archive_expsym_cmds_FC \ | |
27981 | module_cmds_FC \ | |
27982 | module_expsym_cmds_FC \ | |
27983 | export_symbols_cmds_FC \ | |
27984 | prelink_cmds_FC; do | |
43e02a8a | 27985 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 27986 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 27987 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
27988 | ;; |
27989 | *) | |
27990 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27991 | ;; | |
27992 | esac | |
27993 | done | |
27994 | ||
1cf3d07d SE |
27995 | ac_aux_dir='$ac_aux_dir' |
27996 | xsi_shell='$xsi_shell' | |
27997 | lt_shell_append='$lt_shell_append' | |
27998 | ||
27999 | # See if we are running on zsh, and set the options which allow our | |
28000 | # commands through without removal of \ escapes INIT. | |
28001 | if test -n "\${ZSH_VERSION+set}" ; then | |
28002 | setopt NO_GLOB_SUBST | |
28003 | fi | |
28004 | ||
28005 | ||
28006 | PACKAGE='$PACKAGE' | |
28007 | VERSION='$VERSION' | |
28008 | TIMESTAMP='$TIMESTAMP' | |
28009 | RM='$RM' | |
28010 | ofile='$ofile' | |
28011 | ||
28012 | ||
6de9cd9a | 28013 | |
6de9cd9a | 28014 | |
78511f8b | 28015 | |
6de9cd9a | 28016 | |
c13e029b PB |
28017 | GCC="$GCC" |
28018 | CC="$CC" | |
28019 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
28020 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
28021 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
28022 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
28023 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
28024 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
28025 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
28026 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
28027 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
28028 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
28029 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
28030 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
28031 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 28032 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
28033 | |
28034 | ||
6de9cd9a DN |
28035 | _ACEOF |
28036 | ||
5213506e | 28037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 28038 | |
5213506e | 28039 | # Handling of arguments. |
6de9cd9a DN |
28040 | for ac_config_target in $ac_config_targets |
28041 | do | |
5213506e RW |
28042 | case $ac_config_target in |
28043 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
28044 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
28045 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
28046 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
28047 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
28048 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 28049 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 28050 | |
22e05272 | 28051 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
28052 | esac |
28053 | done | |
28054 | ||
5213506e | 28055 | |
6de9cd9a DN |
28056 | # If the user did not use the arguments to specify the items to instantiate, |
28057 | # then the envvar interface is used. Set only those that are not. | |
28058 | # We use the long form for the default assignment because of an extremely | |
28059 | # bizarre bug on SunOS 4.1.3. | |
28060 | if $ac_need_defaults; then | |
28061 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
28062 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
28063 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
28064 | fi | |
28065 | ||
28066 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 28067 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 28068 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
28069 | # Hook for its removal unless debugging. |
28070 | # Note that there is a small window in which the directory will not be cleaned: | |
28071 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
28072 | $debug || |
28073 | { | |
22e05272 | 28074 | tmp= ac_tmp= |
5213506e | 28075 | trap 'exit_status=$? |
22e05272 JM |
28076 | : "${ac_tmp:=$tmp}" |
28077 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
28078 | ' 0 |
28079 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 28080 | } |
6de9cd9a DN |
28081 | # Create a (secure) tmp directory for tmp files. |
28082 | ||
28083 | { | |
5213506e | 28084 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 28085 | test -d "$tmp" |
6de9cd9a DN |
28086 | } || |
28087 | { | |
5213506e RW |
28088 | tmp=./conf$$-$RANDOM |
28089 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
28090 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
28091 | ac_tmp=$tmp | |
5213506e RW |
28092 | |
28093 | # Set up the scripts for CONFIG_FILES section. | |
28094 | # No need to generate them if there are no CONFIG_FILES. | |
28095 | # This happens for instance with `./config.status config.h'. | |
28096 | if test -n "$CONFIG_FILES"; then | |
28097 | ||
28098 | ||
28099 | ac_cr=`echo X | tr X '\015'` | |
28100 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
28101 | # But we know of no other shell where ac_cr would be empty at this | |
28102 | # point, so we can use a bashism as a fallback. | |
28103 | if test "x$ac_cr" = x; then | |
28104 | eval ac_cr=\$\'\\r\' | |
28105 | fi | |
28106 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
28107 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 28108 | ac_cs_awk_cr='\\r' |
5213506e RW |
28109 | else |
28110 | ac_cs_awk_cr=$ac_cr | |
28111 | fi | |
28112 | ||
22e05272 | 28113 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
28114 | _ACEOF |
28115 | ||
28116 | ||
6de9cd9a | 28117 | { |
5213506e RW |
28118 | echo "cat >conf$$subs.awk <<_ACEOF" && |
28119 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
28120 | echo "_ACEOF" | |
28121 | } >conf$$subs.sh || | |
22e05272 JM |
28122 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
28123 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
28124 | ac_delim='%!_!# ' |
28125 | for ac_last_try in false false false false false :; do | |
28126 | . ./conf$$subs.sh || | |
22e05272 | 28127 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28128 | |
28129 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
28130 | if test $ac_delim_n = $ac_delim_num; then | |
28131 | break | |
28132 | elif $ac_last_try; then | |
22e05272 | 28133 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28134 | else |
28135 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
28136 | fi | |
28137 | done | |
28138 | rm -f conf$$subs.sh | |
28139 | ||
28140 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 28141 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
28142 | _ACEOF |
28143 | sed -n ' | |
28144 | h | |
28145 | s/^/S["/; s/!.*/"]=/ | |
28146 | p | |
28147 | g | |
28148 | s/^[^!]*!// | |
28149 | :repl | |
28150 | t repl | |
28151 | s/'"$ac_delim"'$// | |
28152 | t delim | |
28153 | :nl | |
28154 | h | |
22e05272 | 28155 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28156 | t more1 |
28157 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
28158 | p | |
28159 | n | |
28160 | b repl | |
28161 | :more1 | |
28162 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28163 | p | |
28164 | g | |
28165 | s/.\{148\}// | |
28166 | t nl | |
28167 | :delim | |
28168 | h | |
22e05272 | 28169 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28170 | t more2 |
28171 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
28172 | p | |
28173 | b | |
28174 | :more2 | |
28175 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28176 | p | |
28177 | g | |
28178 | s/.\{148\}// | |
28179 | t delim | |
28180 | ' <conf$$subs.awk | sed ' | |
28181 | /^[^""]/{ | |
28182 | N | |
28183 | s/\n// | |
28184 | } | |
28185 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
28186 | rm -f conf$$subs.awk | |
28187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28188 | _ACAWK | |
22e05272 | 28189 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
28190 | for (key in S) S_is_set[key] = 1 |
28191 | FS = "\a" | |
28192 | ||
28193 | } | |
28194 | { | |
28195 | line = $ 0 | |
28196 | nfields = split(line, field, "@") | |
28197 | substed = 0 | |
28198 | len = length(field[1]) | |
28199 | for (i = 2; i < nfields; i++) { | |
28200 | key = field[i] | |
28201 | keylen = length(key) | |
28202 | if (S_is_set[key]) { | |
28203 | value = S[key] | |
28204 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
28205 | len += length(value) + length(field[++i]) | |
28206 | substed = 1 | |
28207 | } else | |
28208 | len += 1 + keylen | |
28209 | } | |
28210 | ||
28211 | print line | |
6de9cd9a DN |
28212 | } |
28213 | ||
5213506e RW |
28214 | _ACAWK |
28215 | _ACEOF | |
28216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28217 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
28218 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
28219 | else | |
28220 | cat | |
22e05272 JM |
28221 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
28222 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
28223 | _ACEOF |
28224 | ||
22e05272 JM |
28225 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
28226 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
28227 | # trailing colons and then remove the whole line if VPATH becomes empty |
28228 | # (actually we leave an empty line to preserve line numbers). | |
28229 | if test "x$srcdir" = x.; then | |
22e05272 JM |
28230 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
28231 | h | |
28232 | s/// | |
28233 | s/^/:/ | |
28234 | s/[ ]*$/:/ | |
28235 | s/:\$(srcdir):/:/g | |
28236 | s/:\${srcdir}:/:/g | |
28237 | s/:@srcdir@:/:/g | |
28238 | s/^:*// | |
5213506e | 28239 | s/:*$// |
22e05272 JM |
28240 | x |
28241 | s/\(=[ ]*\).*/\1/ | |
28242 | G | |
28243 | s/\n// | |
5213506e RW |
28244 | s/^[^=]*=[ ]*$// |
28245 | }' | |
28246 | fi | |
38d24731 | 28247 | |
5213506e RW |
28248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28249 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 28250 | |
5213506e RW |
28251 | # Set up the scripts for CONFIG_HEADERS section. |
28252 | # No need to generate them if there are no CONFIG_HEADERS. | |
28253 | # This happens for instance with `./config.status Makefile'. | |
28254 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 28255 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
28256 | BEGIN { |
28257 | _ACEOF | |
28258 | ||
28259 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
28260 | # here-document in config.status, that substitutes the proper values into | |
28261 | # config.h.in to produce config.h. | |
28262 | ||
28263 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
28264 | # handling of long lines. | |
28265 | ac_delim='%!_!# ' | |
28266 | for ac_last_try in false false :; do | |
22e05272 JM |
28267 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
28268 | if test -z "$ac_tt"; then | |
5213506e RW |
28269 | break |
28270 | elif $ac_last_try; then | |
22e05272 | 28271 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
28272 | else |
28273 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 28274 | fi |
5213506e | 28275 | done |
c0e7e2bf | 28276 | |
5213506e RW |
28277 | # For the awk script, D is an array of macro values keyed by name, |
28278 | # likewise P contains macro parameters if any. Preserve backslash | |
28279 | # newline sequences. | |
28280 | ||
28281 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
28282 | sed -n ' | |
28283 | s/.\{148\}/&'"$ac_delim"'/g | |
28284 | t rset | |
28285 | :rset | |
28286 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
28287 | t def | |
28288 | d | |
28289 | :def | |
28290 | s/\\$// | |
28291 | t bsnl | |
28292 | s/["\\]/\\&/g | |
28293 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28294 | D["\1"]=" \3"/p | |
28295 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
28296 | d | |
28297 | :bsnl | |
28298 | s/["\\]/\\&/g | |
28299 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28300 | D["\1"]=" \3\\\\\\n"\\/p | |
28301 | t cont | |
28302 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
28303 | t cont | |
28304 | d | |
28305 | :cont | |
28306 | n | |
28307 | s/.\{148\}/&'"$ac_delim"'/g | |
28308 | t clear | |
28309 | :clear | |
28310 | s/\\$// | |
28311 | t bsnlc | |
28312 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
28313 | d | |
28314 | :bsnlc | |
28315 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
28316 | b cont | |
28317 | ' <confdefs.h | sed ' | |
28318 | s/'"$ac_delim"'/"\\\ | |
28319 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
28320 | ||
28321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28322 | for (key in D) D_is_set[key] = 1 | |
28323 | FS = "\a" | |
28324 | } | |
28325 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
28326 | line = \$ 0 | |
28327 | split(line, arg, " ") | |
28328 | if (arg[1] == "#") { | |
28329 | defundef = arg[2] | |
28330 | mac1 = arg[3] | |
28331 | } else { | |
28332 | defundef = substr(arg[1], 2) | |
28333 | mac1 = arg[2] | |
28334 | } | |
28335 | split(mac1, mac2, "(") #) | |
28336 | macro = mac2[1] | |
28337 | prefix = substr(line, 1, index(line, defundef) - 1) | |
28338 | if (D_is_set[macro]) { | |
28339 | # Preserve the white space surrounding the "#". | |
28340 | print prefix "define", macro P[macro] D[macro] | |
28341 | next | |
28342 | } else { | |
28343 | # Replace #undef with comments. This is necessary, for example, | |
28344 | # in the case of _POSIX_SOURCE, which is predefined and required | |
28345 | # on some systems where configure will not decide to define it. | |
28346 | if (defundef == "undef") { | |
28347 | print "/*", prefix defundef, macro, "*/" | |
28348 | next | |
28349 | } | |
28350 | } | |
28351 | } | |
28352 | { print } | |
28353 | _ACAWK | |
6de9cd9a | 28354 | _ACEOF |
5213506e | 28355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 28356 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
28357 | fi # test -n "$CONFIG_HEADERS" |
28358 | ||
28359 | ||
28360 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
28361 | shift | |
28362 | for ac_tag | |
28363 | do | |
28364 | case $ac_tag in | |
28365 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
28366 | esac | |
28367 | case $ac_mode$ac_tag in | |
28368 | :[FHL]*:*);; | |
22e05272 | 28369 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
28370 | :[FH]-) ac_tag=-:-;; |
28371 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
28372 | esac | |
28373 | ac_save_IFS=$IFS | |
28374 | IFS=: | |
28375 | set x $ac_tag | |
28376 | IFS=$ac_save_IFS | |
28377 | shift | |
28378 | ac_file=$1 | |
28379 | shift | |
28380 | ||
28381 | case $ac_mode in | |
28382 | :L) ac_source=$1;; | |
28383 | :[FH]) | |
28384 | ac_file_inputs= | |
28385 | for ac_f | |
28386 | do | |
28387 | case $ac_f in | |
22e05272 | 28388 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
28389 | *) # Look for the file first in the build tree, then in the source tree |
28390 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
28391 | # because $ac_f cannot contain `:'. | |
28392 | test -f "$ac_f" || | |
28393 | case $ac_f in | |
28394 | [\\/$]*) false;; | |
28395 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
28396 | esac || | |
22e05272 | 28397 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
28398 | esac |
28399 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
28400 | as_fn_append ac_file_inputs " '$ac_f'" | |
28401 | done | |
28402 | ||
28403 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28404 | # use $as_me), people would be surprised to read: | |
28405 | # /* config.h. Generated by config.status. */ | |
28406 | configure_input='Generated from '` | |
28407 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
28408 | `' by configure.' | |
28409 | if test x"$ac_file" != x-; then | |
28410 | configure_input="$ac_file. $configure_input" | |
28411 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
28412 | $as_echo "$as_me: creating $ac_file" >&6;} | |
28413 | fi | |
28414 | # Neutralize special characters interpreted by sed in replacement strings. | |
28415 | case $configure_input in #( | |
28416 | *\&* | *\|* | *\\* ) | |
28417 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
28418 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
28419 | *) ac_sed_conf_input=$configure_input;; | |
28420 | esac | |
28421 | ||
28422 | case $ac_tag in | |
22e05272 JM |
28423 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
28424 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
28425 | esac |
28426 | ;; | |
6de9cd9a DN |
28427 | esac |
28428 | ||
5213506e | 28429 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
28430 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28431 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28432 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
28433 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
28434 | $as_echo X"$ac_file" | | |
28435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28436 | s//\1/ | |
28437 | q | |
28438 | } | |
28439 | /^X\(\/\/\)[^/].*/{ | |
28440 | s//\1/ | |
28441 | q | |
28442 | } | |
28443 | /^X\(\/\/\)$/{ | |
28444 | s//\1/ | |
28445 | q | |
28446 | } | |
28447 | /^X\(\/\).*/{ | |
28448 | s//\1/ | |
28449 | q | |
28450 | } | |
28451 | s/.*/./; q'` | |
28452 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
28453 | ac_builddir=. |
28454 | ||
5213506e RW |
28455 | case "$ac_dir" in |
28456 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28457 | *) | |
28458 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28459 | # A ".." for each directory in $ac_dir_suffix. | |
28460 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28461 | case $ac_top_builddir_sub in | |
28462 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28463 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28464 | esac ;; | |
28465 | esac | |
28466 | ac_abs_top_builddir=$ac_pwd | |
28467 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28468 | # for backward compatibility: | |
28469 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
28470 | |
28471 | case $srcdir in | |
5213506e | 28472 | .) # We are building in place. |
6de9cd9a | 28473 | ac_srcdir=. |
5213506e RW |
28474 | ac_top_srcdir=$ac_top_builddir_sub |
28475 | ac_abs_top_srcdir=$ac_pwd ;; | |
28476 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 28477 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
28478 | ac_top_srcdir=$srcdir |
28479 | ac_abs_top_srcdir=$srcdir ;; | |
28480 | *) # Relative name. | |
28481 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28482 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28483 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 28484 | esac |
5213506e | 28485 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 28486 | |
6de9cd9a | 28487 | |
5213506e RW |
28488 | case $ac_mode in |
28489 | :F) | |
28490 | # | |
28491 | # CONFIG_FILE | |
28492 | # | |
6de9cd9a DN |
28493 | |
28494 | case $INSTALL in | |
28495 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
28496 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
28497 | esac | |
28498 | ac_MKDIR_P=$MKDIR_P | |
28499 | case $MKDIR_P in | |
28500 | [\\/$]* | ?:[\\/]* ) ;; | |
28501 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 28502 | esac |
5213506e | 28503 | _ACEOF |
6de9cd9a | 28504 | |
5213506e RW |
28505 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28506 | # If the template does not know about datarootdir, expand it. | |
28507 | # FIXME: This hack should be removed a few years after 2.60. | |
28508 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
28509 | ac_sed_dataroot=' | |
28510 | /datarootdir/ { | |
28511 | p | |
28512 | q | |
28513 | } | |
28514 | /@datadir@/p | |
28515 | /@docdir@/p | |
28516 | /@infodir@/p | |
28517 | /@localedir@/p | |
28518 | /@mandir@/p' | |
28519 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
28520 | *datarootdir*) ac_datarootdir_seen=yes;; | |
28521 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
28522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
28523 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
28524 | _ACEOF | |
28525 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28526 | ac_datarootdir_hack=' | |
28527 | s&@datadir@&$datadir&g | |
28528 | s&@docdir@&$docdir&g | |
28529 | s&@infodir@&$infodir&g | |
28530 | s&@localedir@&$localedir&g | |
28531 | s&@mandir@&$mandir&g | |
28532 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
28533 | esac | |
78511f8b | 28534 | _ACEOF |
5213506e RW |
28535 | |
28536 | # Neutralize VPATH when `$srcdir' = `.'. | |
28537 | # Shell code in configure.ac might set extrasub. | |
28538 | # FIXME: do we really want to maintain this feature? | |
28539 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28540 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
28541 | $extrasub |
28542 | _ACEOF | |
5213506e | 28543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
28544 | :t |
28545 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
28546 | s|@configure_input@|$ac_sed_conf_input|;t t |
28547 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28548 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28549 | s&@srcdir@&$ac_srcdir&;t t | |
28550 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28551 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
28552 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28553 | s&@builddir@&$ac_builddir&;t t | |
28554 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
28555 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28556 | s&@INSTALL@&$ac_INSTALL&;t t | |
28557 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28558 | $ac_datarootdir_hack | |
28559 | " | |
22e05272 JM |
28560 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
28561 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
28562 | |
28563 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
28564 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
28565 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
28566 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 28567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 28568 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 28569 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 28570 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 28571 | |
22e05272 | 28572 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 28573 | case $ac_file in |
22e05272 JM |
28574 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
28575 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 28576 | esac \ |
22e05272 | 28577 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
28578 | ;; |
28579 | :H) | |
28580 | # | |
28581 | # CONFIG_HEADER | |
28582 | # | |
6de9cd9a | 28583 | if test x"$ac_file" != x-; then |
5213506e RW |
28584 | { |
28585 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
28586 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
28587 | } >"$ac_tmp/config.h" \ | |
28588 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28589 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
28590 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
28591 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 28592 | else |
5213506e | 28593 | rm -f "$ac_file" |
22e05272 JM |
28594 | mv "$ac_tmp/config.h" "$ac_file" \ |
28595 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
28596 | fi |
28597 | else | |
5213506e | 28598 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
28599 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
28600 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 28601 | fi |
5213506e RW |
28602 | # Compute "$ac_file"'s index in $config_headers. |
28603 | _am_arg="$ac_file" | |
6de9cd9a DN |
28604 | _am_stamp_count=1 |
28605 | for _am_header in $config_headers :; do | |
28606 | case $_am_header in | |
5213506e | 28607 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
28608 | break ;; |
28609 | * ) | |
28610 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28611 | esac | |
28612 | done | |
5213506e RW |
28613 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
28614 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28615 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28616 | X"$_am_arg" : 'X\(//\)$' \| \ | |
28617 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28618 | $as_echo X"$_am_arg" | | |
28619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28620 | s//\1/ | |
28621 | q | |
28622 | } | |
28623 | /^X\(\/\/\)[^/].*/{ | |
28624 | s//\1/ | |
28625 | q | |
28626 | } | |
28627 | /^X\(\/\/\)$/{ | |
28628 | s//\1/ | |
28629 | q | |
28630 | } | |
28631 | /^X\(\/\).*/{ | |
28632 | s//\1/ | |
28633 | q | |
28634 | } | |
28635 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
28636 | ;; | |
38d24731 | 28637 | |
5213506e RW |
28638 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28639 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
28640 | ;; | |
28641 | esac | |
6de9cd9a DN |
28642 | |
28643 | ||
5213506e RW |
28644 | case $ac_file$ac_mode in |
28645 | "default-1":C) | |
96b8a615 AJ |
28646 | # Only add multilib support code if we just rebuilt the top-level |
28647 | # Makefile. | |
28648 | case " $CONFIG_FILES " in | |
28649 | *" Makefile "*) | |
28650 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
28651 | ;; | |
28652 | esac ;; | |
5213506e | 28653 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 28654 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
28655 | # are listed without --file. Let's play safe and only enable the eval |
28656 | # if we detect the quoting. | |
28657 | case $CONFIG_FILES in | |
28658 | *\'*) eval set x "$CONFIG_FILES" ;; | |
28659 | *) set x $CONFIG_FILES ;; | |
28660 | esac | |
28661 | shift | |
28662 | for mf | |
28663 | do | |
28664 | # Strip MF so we end up with the name of the file. | |
28665 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28666 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 28667 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
28668 | # some people rename them; so instead we look at the file content. |
28669 | # Grep'ing the first line is not enough: some people post-process | |
28670 | # each Makefile.in and add a new line on top of each file to say so. | |
28671 | # Grep'ing the whole file is not good either: AIX grep has a line | |
28672 | # limit of 2048, but all sed's we know have understand at least 4000. | |
28673 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
28674 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
28675 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28676 | X"$mf" : 'X\(//\)[^/]' \| \ | |
28677 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
28678 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
28679 | $as_echo X"$mf" | | |
28680 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28681 | s//\1/ | |
28682 | q | |
28683 | } | |
28684 | /^X\(\/\/\)[^/].*/{ | |
28685 | s//\1/ | |
28686 | q | |
28687 | } | |
28688 | /^X\(\/\/\)$/{ | |
28689 | s//\1/ | |
28690 | q | |
28691 | } | |
28692 | /^X\(\/\).*/{ | |
28693 | s//\1/ | |
28694 | q | |
28695 | } | |
28696 | s/.*/./; q'` | |
28697 | else | |
28698 | continue | |
28699 | fi | |
28700 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 28701 | # from the Makefile without running 'make'. |
5213506e RW |
28702 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
28703 | test -z "$DEPDIR" && continue | |
28704 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 28705 | test -z "$am__include" && continue |
5213506e | 28706 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
28707 | # Find all dependency output files, they are included files with |
28708 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28709 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
28710 | # expansion. | |
28711 | for file in `sed -n " | |
28712 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 28713 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
28714 | # Make sure the directory exists. |
28715 | test -f "$dirpart/$file" && continue | |
28716 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
28717 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28718 | X"$file" : 'X\(//\)[^/]' \| \ | |
28719 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
28720 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
28721 | $as_echo X"$file" | | |
28722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28723 | s//\1/ | |
28724 | q | |
28725 | } | |
28726 | /^X\(\/\/\)[^/].*/{ | |
28727 | s//\1/ | |
28728 | q | |
28729 | } | |
28730 | /^X\(\/\/\)$/{ | |
28731 | s//\1/ | |
28732 | q | |
28733 | } | |
28734 | /^X\(\/\).*/{ | |
28735 | s//\1/ | |
28736 | q | |
28737 | } | |
28738 | s/.*/./; q'` | |
28739 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
28740 | # echo "creating $dirpart/$file" | |
28741 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 28742 | done |
679c0f9a | 28743 | done |
5213506e | 28744 | } |
1cf3d07d | 28745 | ;; |
5213506e | 28746 | "libtool":C) |
1cf3d07d SE |
28747 | |
28748 | # See if we are running on zsh, and set the options which allow our | |
28749 | # commands through without removal of \ escapes. | |
28750 | if test -n "${ZSH_VERSION+set}" ; then | |
28751 | setopt NO_GLOB_SUBST | |
28752 | fi | |
28753 | ||
28754 | cfgfile="${ofile}T" | |
28755 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
28756 | $RM "$cfgfile" | |
28757 | ||
28758 | cat <<_LT_EOF >> "$cfgfile" | |
28759 | #! $SHELL | |
28760 | ||
28761 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 28762 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
28763 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
28764 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
28765 | # | |
d58dead8 | 28766 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 28767 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 28768 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 28769 | # |
d58dead8 | 28770 | # This file is part of GNU Libtool. |
1cf3d07d | 28771 | # |
d58dead8 PG |
28772 | # GNU Libtool is free software; you can redistribute it and/or |
28773 | # modify it under the terms of the GNU General Public License as | |
28774 | # published by the Free Software Foundation; either version 2 of | |
28775 | # the License, or (at your option) any later version. | |
1cf3d07d | 28776 | # |
d58dead8 PG |
28777 | # As a special exception to the GNU General Public License, |
28778 | # if you distribute this file as part of a program or library that | |
28779 | # is built using GNU Libtool, you may include this file under the | |
28780 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 28781 | # |
d58dead8 PG |
28782 | # GNU Libtool is distributed in the hope that it will be useful, |
28783 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28784 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28785 | # GNU General Public License for more details. | |
1cf3d07d | 28786 | # |
d58dead8 PG |
28787 | # You should have received a copy of the GNU General Public License |
28788 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
28789 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
28790 | # obtained by writing to the Free Software Foundation, Inc., | |
28791 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
28792 | |
28793 | ||
28794 | # The names of the tagged configurations supported by this script. | |
28795 | available_tags="FC " | |
28796 | ||
28797 | # ### BEGIN LIBTOOL CONFIG | |
28798 | ||
66dbcf2d RO |
28799 | # A sed program that does not truncate output. |
28800 | SED=$lt_SED | |
28801 | ||
28802 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
28803 | Xsed="\$SED -e 1s/^X//" | |
28804 | ||
28805 | # A grep program that handles long lines. | |
28806 | GREP=$lt_GREP | |
28807 | ||
28808 | # An ERE matcher. | |
28809 | EGREP=$lt_EGREP | |
28810 | ||
28811 | # A literal string matcher. | |
28812 | FGREP=$lt_FGREP | |
28813 | ||
28814 | # Shell to use when invoking shell scripts. | |
28815 | SHELL=$lt_SHELL | |
28816 | ||
28817 | # An echo program that protects backslashes. | |
28818 | ECHO=$lt_ECHO | |
28819 | ||
1cf3d07d SE |
28820 | # Which release of libtool.m4 was used? |
28821 | macro_version=$macro_version | |
28822 | macro_revision=$macro_revision | |
28823 | ||
28824 | # Whether or not to build shared libraries. | |
28825 | build_libtool_libs=$enable_shared | |
28826 | ||
28827 | # Whether or not to build static libraries. | |
28828 | build_old_libs=$enable_static | |
28829 | ||
28830 | # What type of objects to build. | |
28831 | pic_mode=$pic_mode | |
28832 | ||
28833 | # Whether or not to optimize for fast installation. | |
28834 | fast_install=$enable_fast_install | |
28835 | ||
28836 | # The host system. | |
28837 | host_alias=$host_alias | |
28838 | host=$host | |
28839 | host_os=$host_os | |
28840 | ||
28841 | # The build system. | |
28842 | build_alias=$build_alias | |
28843 | build=$build | |
28844 | build_os=$build_os | |
28845 | ||
1cf3d07d SE |
28846 | # A BSD- or MS-compatible name lister. |
28847 | NM=$lt_NM | |
28848 | ||
28849 | # Whether we need soft or hard links. | |
28850 | LN_S=$lt_LN_S | |
28851 | ||
28852 | # What is the maximum length of a command? | |
28853 | max_cmd_len=$max_cmd_len | |
28854 | ||
28855 | # Object file suffix (normally "o"). | |
28856 | objext=$ac_objext | |
28857 | ||
28858 | # Executable file suffix (normally ""). | |
28859 | exeext=$exeext | |
28860 | ||
28861 | # whether the shell understands "unset". | |
28862 | lt_unset=$lt_unset | |
28863 | ||
28864 | # turn spaces into newlines. | |
28865 | SP2NL=$lt_lt_SP2NL | |
28866 | ||
28867 | # turn newlines into spaces. | |
28868 | NL2SP=$lt_lt_NL2SP | |
28869 | ||
d58dead8 PG |
28870 | # An object symbol dumper. |
28871 | OBJDUMP=$lt_OBJDUMP | |
28872 | ||
1cf3d07d SE |
28873 | # Method to check whether dependent libraries are shared objects. |
28874 | deplibs_check_method=$lt_deplibs_check_method | |
28875 | ||
28876 | # Command to use when deplibs_check_method == "file_magic". | |
28877 | file_magic_cmd=$lt_file_magic_cmd | |
28878 | ||
28879 | # The archiver. | |
28880 | AR=$lt_AR | |
28881 | AR_FLAGS=$lt_AR_FLAGS | |
28882 | ||
28883 | # A symbol stripping program. | |
28884 | STRIP=$lt_STRIP | |
28885 | ||
28886 | # Commands used to install an old-style archive. | |
28887 | RANLIB=$lt_RANLIB | |
28888 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
28889 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
28890 | ||
43e02a8a RW |
28891 | # Whether to use a lock for old archive extraction. |
28892 | lock_old_archive_extraction=$lock_old_archive_extraction | |
28893 | ||
1cf3d07d SE |
28894 | # A C compiler. |
28895 | LTCC=$lt_CC | |
28896 | ||
28897 | # LTCC compiler flags. | |
28898 | LTCFLAGS=$lt_CFLAGS | |
28899 | ||
28900 | # Take the output of nm and produce a listing of raw symbols and C names. | |
28901 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
28902 | ||
28903 | # Transform the output of nm in a proper C declaration. | |
28904 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
28905 | ||
28906 | # Transform the output of nm in a C name address pair. | |
28907 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
28908 | ||
d58dead8 PG |
28909 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
28910 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
28911 | ||
1cf3d07d SE |
28912 | # The name of the directory that contains temporary libtool files. |
28913 | objdir=$objdir | |
28914 | ||
1cf3d07d SE |
28915 | # Used to examine libraries when file_magic_cmd begins with "file". |
28916 | MAGIC_CMD=$MAGIC_CMD | |
28917 | ||
28918 | # Must we lock files when doing compilation? | |
28919 | need_locks=$lt_need_locks | |
28920 | ||
d58dead8 PG |
28921 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
28922 | DSYMUTIL=$lt_DSYMUTIL | |
28923 | ||
28924 | # Tool to change global to local symbols on Mac OS X. | |
28925 | NMEDIT=$lt_NMEDIT | |
28926 | ||
28927 | # Tool to manipulate fat objects and archives on Mac OS X. | |
28928 | LIPO=$lt_LIPO | |
28929 | ||
28930 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
28931 | OTOOL=$lt_OTOOL | |
28932 | ||
28933 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
28934 | OTOOL64=$lt_OTOOL64 | |
28935 | ||
1cf3d07d SE |
28936 | # Old archive suffix (normally "a"). |
28937 | libext=$libext | |
28938 | ||
28939 | # Shared library suffix (normally ".so"). | |
28940 | shrext_cmds=$lt_shrext_cmds | |
28941 | ||
28942 | # The commands to extract the exported symbol list from a shared archive. | |
28943 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
28944 | ||
28945 | # Variables whose values should be saved in libtool wrapper scripts and | |
28946 | # restored at link time. | |
28947 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
28948 | ||
28949 | # Do we need the "lib" prefix for modules? | |
28950 | need_lib_prefix=$need_lib_prefix | |
28951 | ||
28952 | # Do we need a version for libraries? | |
28953 | need_version=$need_version | |
28954 | ||
28955 | # Library versioning type. | |
28956 | version_type=$version_type | |
28957 | ||
28958 | # Shared library runtime path variable. | |
28959 | runpath_var=$runpath_var | |
28960 | ||
28961 | # Shared library path variable. | |
28962 | shlibpath_var=$shlibpath_var | |
28963 | ||
28964 | # Is shlibpath searched before the hard-coded library search path? | |
28965 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
28966 | ||
28967 | # Format of library name prefix. | |
28968 | libname_spec=$lt_libname_spec | |
28969 | ||
28970 | # List of archive names. First name is the real one, the rest are links. | |
28971 | # The last name is the one that the linker finds with -lNAME | |
28972 | library_names_spec=$lt_library_names_spec | |
28973 | ||
28974 | # The coded name of the library, if different from the real name. | |
28975 | soname_spec=$lt_soname_spec | |
28976 | ||
43e02a8a RW |
28977 | # Permission mode override for installation of shared libraries. |
28978 | install_override_mode=$lt_install_override_mode | |
28979 | ||
1cf3d07d SE |
28980 | # Command to use after installation of a shared archive. |
28981 | postinstall_cmds=$lt_postinstall_cmds | |
28982 | ||
28983 | # Command to use after uninstallation of a shared archive. | |
28984 | postuninstall_cmds=$lt_postuninstall_cmds | |
28985 | ||
28986 | # Commands used to finish a libtool library installation in a directory. | |
28987 | finish_cmds=$lt_finish_cmds | |
28988 | ||
28989 | # As "finish_cmds", except a single script fragment to be evaled but | |
28990 | # not shown. | |
28991 | finish_eval=$lt_finish_eval | |
28992 | ||
28993 | # Whether we should hardcode library paths into libraries. | |
28994 | hardcode_into_libs=$hardcode_into_libs | |
28995 | ||
28996 | # Compile-time system search path for libraries. | |
28997 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
28998 | ||
28999 | # Run-time system search path for libraries. | |
29000 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
29001 | ||
29002 | # Whether dlopen is supported. | |
29003 | dlopen_support=$enable_dlopen | |
29004 | ||
29005 | # Whether dlopen of programs is supported. | |
29006 | dlopen_self=$enable_dlopen_self | |
29007 | ||
29008 | # Whether dlopen of statically linked programs is supported. | |
29009 | dlopen_self_static=$enable_dlopen_self_static | |
29010 | ||
29011 | # Commands to strip libraries. | |
29012 | old_striplib=$lt_old_striplib | |
29013 | striplib=$lt_striplib | |
29014 | ||
29015 | ||
29016 | # The linker used to build libraries. | |
29017 | LD=$lt_LD | |
29018 | ||
43e02a8a RW |
29019 | # How to create reloadable object files. |
29020 | reload_flag=$lt_reload_flag | |
29021 | reload_cmds=$lt_reload_cmds | |
29022 | ||
1cf3d07d SE |
29023 | # Commands used to build an old-style archive. |
29024 | old_archive_cmds=$lt_old_archive_cmds | |
29025 | ||
29026 | # A language specific compiler. | |
29027 | CC=$lt_compiler | |
29028 | ||
29029 | # Is the compiler the GNU compiler? | |
29030 | with_gcc=$GCC | |
29031 | ||
29032 | # Compiler flag to turn off builtin functions. | |
29033 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
29034 | ||
29035 | # How to pass a linker flag through the compiler. | |
29036 | wl=$lt_lt_prog_compiler_wl | |
29037 | ||
29038 | # Additional compiler flags for building library objects. | |
29039 | pic_flag=$lt_lt_prog_compiler_pic | |
29040 | ||
29041 | # Compiler flag to prevent dynamic linking. | |
29042 | link_static_flag=$lt_lt_prog_compiler_static | |
29043 | ||
29044 | # Does compiler simultaneously support -c and -o options? | |
29045 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
29046 | ||
29047 | # Whether or not to add -lc for building shared libraries. | |
29048 | build_libtool_need_lc=$archive_cmds_need_lc | |
29049 | ||
29050 | # Whether or not to disallow shared libs when runtime libs are static. | |
29051 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
29052 | ||
29053 | # Compiler flag to allow reflexive dlopens. | |
29054 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
29055 | ||
29056 | # Compiler flag to generate shared objects directly from archives. | |
29057 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
29058 | ||
29059 | # Whether the compiler copes with passing no objects directly. | |
29060 | compiler_needs_object=$lt_compiler_needs_object | |
29061 | ||
29062 | # Create an old-style archive from a shared archive. | |
29063 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
29064 | ||
29065 | # Create a temporary old-style archive to link instead of a shared archive. | |
29066 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
29067 | ||
29068 | # Commands used to build a shared archive. | |
29069 | archive_cmds=$lt_archive_cmds | |
29070 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
29071 | ||
29072 | # Commands used to build a loadable module if different from building | |
29073 | # a shared archive. | |
29074 | module_cmds=$lt_module_cmds | |
29075 | module_expsym_cmds=$lt_module_expsym_cmds | |
29076 | ||
29077 | # Whether we are building with GNU ld or not. | |
29078 | with_gnu_ld=$lt_with_gnu_ld | |
29079 | ||
29080 | # Flag that allows shared libraries with undefined symbols to be built. | |
29081 | allow_undefined_flag=$lt_allow_undefined_flag | |
29082 | ||
29083 | # Flag that enforces no undefined symbols. | |
29084 | no_undefined_flag=$lt_no_undefined_flag | |
29085 | ||
29086 | # Flag to hardcode \$libdir into a binary during linking. | |
29087 | # This must work even if \$libdir does not exist | |
29088 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
29089 | ||
29090 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29091 | # during linking. This must work even if \$libdir does not exist. | |
29092 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
29093 | ||
29094 | # Whether we need a single "-rpath" flag with a separated argument. | |
29095 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
29096 | ||
29097 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29098 | # DIR into the resulting binary. | |
29099 | hardcode_direct=$hardcode_direct | |
29100 | ||
29101 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29102 | # DIR into the resulting binary and the resulting library dependency is | |
29103 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29104 | # library is relocated. | |
29105 | hardcode_direct_absolute=$hardcode_direct_absolute | |
29106 | ||
29107 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29108 | # into the resulting binary. | |
29109 | hardcode_minus_L=$hardcode_minus_L | |
29110 | ||
29111 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29112 | # into the resulting binary. | |
29113 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
29114 | ||
29115 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29116 | # into the library and all subsequent libraries and executables linked | |
29117 | # against it. | |
29118 | hardcode_automatic=$hardcode_automatic | |
29119 | ||
29120 | # Set to yes if linker adds runtime paths of dependent libraries | |
29121 | # to runtime path list. | |
29122 | inherit_rpath=$inherit_rpath | |
29123 | ||
29124 | # Whether libtool must link a program against all its dependency libraries. | |
29125 | link_all_deplibs=$link_all_deplibs | |
29126 | ||
29127 | # Fix the shell variable \$srcfile for the compiler. | |
29128 | fix_srcfile_path=$lt_fix_srcfile_path | |
29129 | ||
29130 | # Set to "yes" if exported symbols are required. | |
29131 | always_export_symbols=$always_export_symbols | |
29132 | ||
29133 | # The commands to list exported symbols. | |
29134 | export_symbols_cmds=$lt_export_symbols_cmds | |
29135 | ||
29136 | # Symbols that should not be listed in the preloaded symbols. | |
29137 | exclude_expsyms=$lt_exclude_expsyms | |
29138 | ||
29139 | # Symbols that must always be exported. | |
29140 | include_expsyms=$lt_include_expsyms | |
29141 | ||
29142 | # Commands necessary for linking programs (against libraries) with templates. | |
29143 | prelink_cmds=$lt_prelink_cmds | |
29144 | ||
29145 | # Specify filename containing input files. | |
29146 | file_list_spec=$lt_file_list_spec | |
29147 | ||
29148 | # How to hardcode a shared library path into an executable. | |
29149 | hardcode_action=$hardcode_action | |
29150 | ||
d58dead8 PG |
29151 | # The directories searched by this compiler when creating a shared library. |
29152 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
29153 | ||
1cf3d07d SE |
29154 | # Dependencies to place before and after the objects being linked to |
29155 | # create a shared library. | |
29156 | predep_objects=$lt_predep_objects | |
29157 | postdep_objects=$lt_postdep_objects | |
29158 | predeps=$lt_predeps | |
29159 | postdeps=$lt_postdeps | |
29160 | ||
29161 | # The library search path used internally by the compiler when linking | |
29162 | # a shared library. | |
29163 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
29164 | ||
29165 | # ### END LIBTOOL CONFIG | |
29166 | ||
29167 | _LT_EOF | |
29168 | ||
29169 | case $host_os in | |
29170 | aix3*) | |
29171 | cat <<\_LT_EOF >> "$cfgfile" | |
29172 | # AIX sometimes has problems with the GCC collect2 program. For some | |
29173 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
29174 | # vanish in a puff of smoke. | |
29175 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
29176 | COLLECT_NAMES= | |
29177 | export COLLECT_NAMES | |
29178 | fi | |
29179 | _LT_EOF | |
29180 | ;; | |
29181 | esac | |
29182 | ||
29183 | ||
29184 | ltmain="$ac_aux_dir/ltmain.sh" | |
29185 | ||
29186 | ||
29187 | # We use sed instead of cat because bash on DJGPP gets confused if | |
29188 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
29189 | # text mode, it properly converts lines to CR/LF. This bash problem | |
29190 | # is reportedly fixed, but why not run on old versions too? | |
29191 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
29192 | || (rm -f "$cfgfile"; exit 1) | |
29193 | ||
29194 | case $xsi_shell in | |
29195 | yes) | |
29196 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29197 | |
1cf3d07d SE |
29198 | # func_dirname file append nondir_replacement |
29199 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29200 | # otherwise set result to NONDIR_REPLACEMENT. | |
29201 | func_dirname () | |
29202 | { | |
29203 | case ${1} in | |
29204 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29205 | * ) func_dirname_result="${3}" ;; | |
29206 | esac | |
29207 | } | |
29208 | ||
29209 | # func_basename file | |
29210 | func_basename () | |
29211 | { | |
29212 | func_basename_result="${1##*/}" | |
29213 | } | |
29214 | ||
d58dead8 PG |
29215 | # func_dirname_and_basename file append nondir_replacement |
29216 | # perform func_basename and func_dirname in a single function | |
29217 | # call: | |
29218 | # dirname: Compute the dirname of FILE. If nonempty, | |
29219 | # add APPEND to the result, otherwise set result | |
29220 | # to NONDIR_REPLACEMENT. | |
29221 | # value returned in "$func_dirname_result" | |
29222 | # basename: Compute filename of FILE. | |
29223 | # value retuned in "$func_basename_result" | |
29224 | # Implementation must be kept synchronized with func_dirname | |
29225 | # and func_basename. For efficiency, we do not delegate to | |
29226 | # those functions but instead duplicate the functionality here. | |
29227 | func_dirname_and_basename () | |
29228 | { | |
29229 | case ${1} in | |
29230 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29231 | * ) func_dirname_result="${3}" ;; | |
29232 | esac | |
29233 | func_basename_result="${1##*/}" | |
29234 | } | |
29235 | ||
1cf3d07d SE |
29236 | # func_stripname prefix suffix name |
29237 | # strip PREFIX and SUFFIX off of NAME. | |
29238 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29239 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29240 | # dot (in which case that matches only a dot). | |
29241 | func_stripname () | |
29242 | { | |
29243 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
29244 | # positional parameters, so assign one to ordinary parameter first. | |
29245 | func_stripname_result=${3} | |
29246 | func_stripname_result=${func_stripname_result#"${1}"} | |
29247 | func_stripname_result=${func_stripname_result%"${2}"} | |
29248 | } | |
29249 | ||
29250 | # func_opt_split | |
29251 | func_opt_split () | |
29252 | { | |
29253 | func_opt_split_opt=${1%%=*} | |
29254 | func_opt_split_arg=${1#*=} | |
29255 | } | |
29256 | ||
29257 | # func_lo2o object | |
29258 | func_lo2o () | |
29259 | { | |
29260 | case ${1} in | |
29261 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
29262 | *) func_lo2o_result=${1} ;; | |
29263 | esac | |
29264 | } | |
d58dead8 PG |
29265 | |
29266 | # func_xform libobj-or-source | |
29267 | func_xform () | |
29268 | { | |
29269 | func_xform_result=${1%.*}.lo | |
29270 | } | |
29271 | ||
29272 | # func_arith arithmetic-term... | |
29273 | func_arith () | |
29274 | { | |
29275 | func_arith_result=$(( $* )) | |
29276 | } | |
29277 | ||
29278 | # func_len string | |
29279 | # STRING may not start with a hyphen. | |
29280 | func_len () | |
29281 | { | |
29282 | func_len_result=${#1} | |
29283 | } | |
29284 | ||
1cf3d07d SE |
29285 | _LT_EOF |
29286 | ;; | |
29287 | *) # Bourne compatible functions. | |
29288 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29289 | |
1cf3d07d SE |
29290 | # func_dirname file append nondir_replacement |
29291 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29292 | # otherwise set result to NONDIR_REPLACEMENT. | |
29293 | func_dirname () | |
29294 | { | |
29295 | # Extract subdirectory from the argument. | |
43e02a8a | 29296 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
29297 | if test "X$func_dirname_result" = "X${1}"; then |
29298 | func_dirname_result="${3}" | |
29299 | else | |
29300 | func_dirname_result="$func_dirname_result${2}" | |
29301 | fi | |
29302 | } | |
29303 | ||
29304 | # func_basename file | |
29305 | func_basename () | |
29306 | { | |
43e02a8a | 29307 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
29308 | } |
29309 | ||
d58dead8 | 29310 | |
1cf3d07d SE |
29311 | # func_stripname prefix suffix name |
29312 | # strip PREFIX and SUFFIX off of NAME. | |
29313 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29314 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29315 | # dot (in which case that matches only a dot). | |
29316 | # func_strip_suffix prefix name | |
29317 | func_stripname () | |
29318 | { | |
29319 | case ${2} in | |
43e02a8a RW |
29320 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
29321 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
29322 | esac |
29323 | } | |
29324 | ||
29325 | # sed scripts: | |
29326 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
29327 | my_sed_long_arg='1s/^-[^=]*=//' | |
29328 | ||
29329 | # func_opt_split | |
29330 | func_opt_split () | |
29331 | { | |
43e02a8a RW |
29332 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
29333 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
29334 | } |
29335 | ||
29336 | # func_lo2o object | |
29337 | func_lo2o () | |
29338 | { | |
43e02a8a | 29339 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 29340 | } |
d58dead8 PG |
29341 | |
29342 | # func_xform libobj-or-source | |
29343 | func_xform () | |
29344 | { | |
43e02a8a | 29345 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
29346 | } |
29347 | ||
29348 | # func_arith arithmetic-term... | |
29349 | func_arith () | |
29350 | { | |
29351 | func_arith_result=`expr "$@"` | |
29352 | } | |
29353 | ||
29354 | # func_len string | |
29355 | # STRING may not start with a hyphen. | |
29356 | func_len () | |
29357 | { | |
29358 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
29359 | } | |
29360 | ||
1cf3d07d SE |
29361 | _LT_EOF |
29362 | esac | |
29363 | ||
29364 | case $lt_shell_append in | |
29365 | yes) | |
29366 | cat << \_LT_EOF >> "$cfgfile" | |
29367 | ||
29368 | # func_append var value | |
29369 | # Append VALUE to the end of shell variable VAR. | |
29370 | func_append () | |
29371 | { | |
29372 | eval "$1+=\$2" | |
29373 | } | |
29374 | _LT_EOF | |
29375 | ;; | |
29376 | *) | |
29377 | cat << \_LT_EOF >> "$cfgfile" | |
29378 | ||
29379 | # func_append var value | |
29380 | # Append VALUE to the end of shell variable VAR. | |
29381 | func_append () | |
29382 | { | |
29383 | eval "$1=\$$1\$2" | |
29384 | } | |
d58dead8 | 29385 | |
1cf3d07d SE |
29386 | _LT_EOF |
29387 | ;; | |
29388 | esac | |
29389 | ||
29390 | ||
29391 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
29392 | || (rm -f "$cfgfile"; exit 1) | |
29393 | ||
29394 | mv -f "$cfgfile" "$ofile" || | |
29395 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
29396 | chmod +x "$ofile" | |
29397 | ||
29398 | ||
29399 | cat <<_LT_EOF >> "$ofile" | |
29400 | ||
29401 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
29402 | ||
29403 | # The linker used to build libraries. | |
29404 | LD=$lt_LD_FC | |
29405 | ||
43e02a8a RW |
29406 | # How to create reloadable object files. |
29407 | reload_flag=$lt_reload_flag_FC | |
29408 | reload_cmds=$lt_reload_cmds_FC | |
29409 | ||
1cf3d07d SE |
29410 | # Commands used to build an old-style archive. |
29411 | old_archive_cmds=$lt_old_archive_cmds_FC | |
29412 | ||
29413 | # A language specific compiler. | |
29414 | CC=$lt_compiler_FC | |
29415 | ||
29416 | # Is the compiler the GNU compiler? | |
29417 | with_gcc=$GCC_FC | |
29418 | ||
29419 | # Compiler flag to turn off builtin functions. | |
29420 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
29421 | ||
29422 | # How to pass a linker flag through the compiler. | |
29423 | wl=$lt_lt_prog_compiler_wl_FC | |
29424 | ||
29425 | # Additional compiler flags for building library objects. | |
29426 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
29427 | ||
29428 | # Compiler flag to prevent dynamic linking. | |
29429 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
29430 | ||
29431 | # Does compiler simultaneously support -c and -o options? | |
29432 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
29433 | ||
29434 | # Whether or not to add -lc for building shared libraries. | |
29435 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
29436 | ||
29437 | # Whether or not to disallow shared libs when runtime libs are static. | |
29438 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
29439 | ||
29440 | # Compiler flag to allow reflexive dlopens. | |
29441 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
29442 | ||
29443 | # Compiler flag to generate shared objects directly from archives. | |
29444 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
29445 | ||
29446 | # Whether the compiler copes with passing no objects directly. | |
29447 | compiler_needs_object=$lt_compiler_needs_object_FC | |
29448 | ||
29449 | # Create an old-style archive from a shared archive. | |
29450 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
29451 | ||
29452 | # Create a temporary old-style archive to link instead of a shared archive. | |
29453 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
29454 | ||
29455 | # Commands used to build a shared archive. | |
29456 | archive_cmds=$lt_archive_cmds_FC | |
29457 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
29458 | ||
29459 | # Commands used to build a loadable module if different from building | |
29460 | # a shared archive. | |
29461 | module_cmds=$lt_module_cmds_FC | |
29462 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
29463 | ||
29464 | # Whether we are building with GNU ld or not. | |
29465 | with_gnu_ld=$lt_with_gnu_ld_FC | |
29466 | ||
29467 | # Flag that allows shared libraries with undefined symbols to be built. | |
29468 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
29469 | ||
29470 | # Flag that enforces no undefined symbols. | |
29471 | no_undefined_flag=$lt_no_undefined_flag_FC | |
29472 | ||
29473 | # Flag to hardcode \$libdir into a binary during linking. | |
29474 | # This must work even if \$libdir does not exist | |
29475 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
29476 | ||
29477 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29478 | # during linking. This must work even if \$libdir does not exist. | |
29479 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
29480 | ||
29481 | # Whether we need a single "-rpath" flag with a separated argument. | |
29482 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
29483 | ||
29484 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29485 | # DIR into the resulting binary. | |
29486 | hardcode_direct=$hardcode_direct_FC | |
29487 | ||
29488 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29489 | # DIR into the resulting binary and the resulting library dependency is | |
29490 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29491 | # library is relocated. | |
29492 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29493 | ||
29494 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29495 | # into the resulting binary. | |
29496 | hardcode_minus_L=$hardcode_minus_L_FC | |
29497 | ||
29498 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29499 | # into the resulting binary. | |
29500 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
29501 | ||
29502 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29503 | # into the library and all subsequent libraries and executables linked | |
29504 | # against it. | |
29505 | hardcode_automatic=$hardcode_automatic_FC | |
29506 | ||
29507 | # Set to yes if linker adds runtime paths of dependent libraries | |
29508 | # to runtime path list. | |
29509 | inherit_rpath=$inherit_rpath_FC | |
29510 | ||
29511 | # Whether libtool must link a program against all its dependency libraries. | |
29512 | link_all_deplibs=$link_all_deplibs_FC | |
29513 | ||
29514 | # Fix the shell variable \$srcfile for the compiler. | |
29515 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
29516 | ||
29517 | # Set to "yes" if exported symbols are required. | |
29518 | always_export_symbols=$always_export_symbols_FC | |
29519 | ||
29520 | # The commands to list exported symbols. | |
29521 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
29522 | ||
29523 | # Symbols that should not be listed in the preloaded symbols. | |
29524 | exclude_expsyms=$lt_exclude_expsyms_FC | |
29525 | ||
29526 | # Symbols that must always be exported. | |
29527 | include_expsyms=$lt_include_expsyms_FC | |
29528 | ||
29529 | # Commands necessary for linking programs (against libraries) with templates. | |
29530 | prelink_cmds=$lt_prelink_cmds_FC | |
29531 | ||
29532 | # Specify filename containing input files. | |
29533 | file_list_spec=$lt_file_list_spec_FC | |
29534 | ||
29535 | # How to hardcode a shared library path into an executable. | |
29536 | hardcode_action=$hardcode_action_FC | |
29537 | ||
d58dead8 PG |
29538 | # The directories searched by this compiler when creating a shared library. |
29539 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
29540 | ||
1cf3d07d SE |
29541 | # Dependencies to place before and after the objects being linked to |
29542 | # create a shared library. | |
29543 | predep_objects=$lt_predep_objects_FC | |
29544 | postdep_objects=$lt_postdep_objects_FC | |
29545 | predeps=$lt_predeps_FC | |
29546 | postdeps=$lt_postdeps_FC | |
29547 | ||
29548 | # The library search path used internally by the compiler when linking | |
29549 | # a shared library. | |
29550 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
29551 | ||
29552 | # ### END LIBTOOL TAG CONFIG: FC | |
29553 | _LT_EOF | |
29554 | ||
679c0f9a | 29555 | ;; |
5213506e | 29556 | "gstdint.h":C) |
c13e029b PB |
29557 | if test "$GCC" = yes; then |
29558 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
29559 | else | |
29560 | echo "/* generated for $CC */" > tmp-stdint.h | |
29561 | fi | |
4c4b3eb0 | 29562 | |
c13e029b PB |
29563 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29564 | ||
29565 | #ifndef GCC_GENERATED_STDINT_H | |
29566 | #define GCC_GENERATED_STDINT_H 1 | |
29567 | ||
29568 | #include <sys/types.h> | |
4c4b3eb0 | 29569 | EOF |
4c4b3eb0 | 29570 | |
c13e029b PB |
29571 | if test "$acx_cv_header_stdint" != stdint.h; then |
29572 | echo "#include <stddef.h>" >> tmp-stdint.h | |
29573 | fi | |
29574 | if test "$acx_cv_header_stdint" != stddef.h; then | |
29575 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
29576 | fi | |
29577 | ||
29578 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29579 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
29580 | #ifdef __int8_t_defined | |
29581 | #define _INT8_T | |
29582 | #define _INT16_T | |
29583 | #define _INT32_T | |
29584 | #endif | |
29585 | #ifdef __uint32_t_defined | |
29586 | #define _UINT32_T | |
29587 | #endif | |
29588 | ||
29589 | EOF | |
29590 | ||
29591 | # ----------------- done header, emit basic int types ------------- | |
29592 | if test "$acx_cv_header_stdint" = stddef.h; then | |
29593 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29594 | ||
29595 | #ifndef _UINT8_T | |
29596 | #define _UINT8_T | |
29597 | #ifndef __uint8_t_defined | |
29598 | #define __uint8_t_defined | |
b9497ab5 | 29599 | #ifndef uint8_t |
c13e029b PB |
29600 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
29601 | #endif | |
29602 | #endif | |
b9497ab5 | 29603 | #endif |
c13e029b PB |
29604 | |
29605 | #ifndef _UINT16_T | |
29606 | #define _UINT16_T | |
29607 | #ifndef __uint16_t_defined | |
29608 | #define __uint16_t_defined | |
b9497ab5 | 29609 | #ifndef uint16_t |
c13e029b PB |
29610 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
29611 | #endif | |
29612 | #endif | |
b9497ab5 | 29613 | #endif |
c13e029b PB |
29614 | |
29615 | #ifndef _UINT32_T | |
29616 | #define _UINT32_T | |
29617 | #ifndef __uint32_t_defined | |
29618 | #define __uint32_t_defined | |
b9497ab5 | 29619 | #ifndef uint32_t |
c13e029b PB |
29620 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
29621 | #endif | |
29622 | #endif | |
b9497ab5 | 29623 | #endif |
c13e029b PB |
29624 | |
29625 | #ifndef _INT8_T | |
29626 | #define _INT8_T | |
29627 | #ifndef __int8_t_defined | |
29628 | #define __int8_t_defined | |
b9497ab5 | 29629 | #ifndef int8_t |
c13e029b PB |
29630 | typedef $acx_cv_type_int8_t int8_t; |
29631 | #endif | |
29632 | #endif | |
b9497ab5 | 29633 | #endif |
c13e029b PB |
29634 | |
29635 | #ifndef _INT16_T | |
29636 | #define _INT16_T | |
29637 | #ifndef __int16_t_defined | |
29638 | #define __int16_t_defined | |
b9497ab5 | 29639 | #ifndef int16_t |
c13e029b PB |
29640 | typedef $acx_cv_type_int16_t int16_t; |
29641 | #endif | |
29642 | #endif | |
b9497ab5 | 29643 | #endif |
c13e029b PB |
29644 | |
29645 | #ifndef _INT32_T | |
29646 | #define _INT32_T | |
29647 | #ifndef __int32_t_defined | |
29648 | #define __int32_t_defined | |
b9497ab5 | 29649 | #ifndef int32_t |
c13e029b PB |
29650 | typedef $acx_cv_type_int32_t int32_t; |
29651 | #endif | |
29652 | #endif | |
b9497ab5 | 29653 | #endif |
c13e029b PB |
29654 | EOF |
29655 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
29656 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29657 | ||
29658 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
29659 | #ifndef _INT8_T | |
29660 | #define _INT8_T | |
29661 | #endif | |
29662 | #ifndef _INT16_T | |
29663 | #define _INT16_T | |
29664 | #endif | |
29665 | #ifndef _INT32_T | |
29666 | #define _INT32_T | |
29667 | #endif | |
29668 | ||
29669 | #ifndef _UINT8_T | |
29670 | #define _UINT8_T | |
29671 | #ifndef __uint8_t_defined | |
29672 | #define __uint8_t_defined | |
b9497ab5 | 29673 | #ifndef uint8_t |
c13e029b PB |
29674 | typedef u_int8_t uint8_t; |
29675 | #endif | |
29676 | #endif | |
b9497ab5 | 29677 | #endif |
c13e029b PB |
29678 | |
29679 | #ifndef _UINT16_T | |
29680 | #define _UINT16_T | |
29681 | #ifndef __uint16_t_defined | |
29682 | #define __uint16_t_defined | |
b9497ab5 | 29683 | #ifndef uint16_t |
c13e029b PB |
29684 | typedef u_int16_t uint16_t; |
29685 | #endif | |
29686 | #endif | |
b9497ab5 | 29687 | #endif |
c13e029b PB |
29688 | |
29689 | #ifndef _UINT32_T | |
29690 | #define _UINT32_T | |
29691 | #ifndef __uint32_t_defined | |
29692 | #define __uint32_t_defined | |
b9497ab5 | 29693 | #ifndef uint32_t |
c13e029b PB |
29694 | typedef u_int32_t uint32_t; |
29695 | #endif | |
29696 | #endif | |
b9497ab5 | 29697 | #endif |
c13e029b PB |
29698 | EOF |
29699 | else | |
29700 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29701 | ||
29702 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
29703 | #ifndef _INT8_T | |
29704 | #define _INT8_T | |
29705 | #endif | |
29706 | #ifndef _INT16_T | |
29707 | #define _INT16_T | |
29708 | #endif | |
29709 | #ifndef _INT32_T | |
29710 | #define _INT32_T | |
29711 | #endif | |
29712 | #ifndef _UINT8_T | |
29713 | #define _UINT8_T | |
29714 | #endif | |
29715 | #ifndef _UINT16_T | |
29716 | #define _UINT16_T | |
29717 | #endif | |
29718 | #ifndef _UINT32_T | |
29719 | #define _UINT32_T | |
29720 | #endif | |
29721 | EOF | |
29722 | fi | |
29723 | ||
29724 | # ------------- done basic int types, emit int64_t types ------------ | |
29725 | if test "$ac_cv_type_uint64_t" = yes; then | |
29726 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29727 | ||
29728 | /* system headers have good uint64_t and int64_t */ | |
29729 | #ifndef _INT64_T | |
29730 | #define _INT64_T | |
29731 | #endif | |
29732 | #ifndef _UINT64_T | |
29733 | #define _UINT64_T | |
29734 | #endif | |
29735 | EOF | |
29736 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
29737 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29738 | ||
29739 | /* system headers have an u_int64_t (and int64_t) */ | |
29740 | #ifndef _INT64_T | |
29741 | #define _INT64_T | |
29742 | #endif | |
29743 | #ifndef _UINT64_T | |
29744 | #define _UINT64_T | |
29745 | #ifndef __uint64_t_defined | |
29746 | #define __uint64_t_defined | |
b9497ab5 | 29747 | #ifndef uint64_t |
c13e029b PB |
29748 | typedef u_int64_t uint64_t; |
29749 | #endif | |
29750 | #endif | |
b9497ab5 | 29751 | #endif |
c13e029b PB |
29752 | EOF |
29753 | elif test -n "$acx_cv_type_int64_t"; then | |
29754 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29755 | ||
29756 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
29757 | #ifndef _INT64_T | |
29758 | #define _INT64_T | |
b9497ab5 | 29759 | #ifndef int64_t |
c13e029b PB |
29760 | typedef $acx_cv_type_int64_t int64_t; |
29761 | #endif | |
b9497ab5 | 29762 | #endif |
c13e029b PB |
29763 | #ifndef _UINT64_T |
29764 | #define _UINT64_T | |
29765 | #ifndef __uint64_t_defined | |
29766 | #define __uint64_t_defined | |
b9497ab5 | 29767 | #ifndef uint64_t |
c13e029b PB |
29768 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
29769 | #endif | |
29770 | #endif | |
b9497ab5 | 29771 | #endif |
c13e029b PB |
29772 | EOF |
29773 | else | |
29774 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29775 | ||
29776 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
29777 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
29778 | #ifndef _INT64_T | |
29779 | #define _INT64_T | |
29780 | #ifndef __int64_t_defined | |
b9497ab5 | 29781 | #ifndef int64_t |
c13e029b PB |
29782 | typedef long long int64_t; |
29783 | #endif | |
29784 | #endif | |
b9497ab5 | 29785 | #endif |
c13e029b PB |
29786 | #ifndef _UINT64_T |
29787 | #define _UINT64_T | |
b9497ab5 | 29788 | #ifndef uint64_t |
c13e029b PB |
29789 | typedef unsigned long long uint64_t; |
29790 | #endif | |
b9497ab5 | 29791 | #endif |
c13e029b PB |
29792 | |
29793 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
29794 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
29795 | does not implement __extension__. But that compiler doesn't define | |
29796 | __GNUC_MINOR__. */ | |
29797 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
29798 | # define __extension__ | |
29799 | # endif | |
29800 | ||
29801 | # ifndef _INT64_T | |
29802 | # define _INT64_T | |
b9497ab5 | 29803 | # ifndef int64_t |
c13e029b PB |
29804 | __extension__ typedef long long int64_t; |
29805 | # endif | |
b9497ab5 | 29806 | # endif |
c13e029b PB |
29807 | # ifndef _UINT64_T |
29808 | # define _UINT64_T | |
b9497ab5 | 29809 | # ifndef uint64_t |
c13e029b PB |
29810 | __extension__ typedef unsigned long long uint64_t; |
29811 | # endif | |
b9497ab5 | 29812 | # endif |
c13e029b PB |
29813 | |
29814 | #elif !defined __STRICT_ANSI__ | |
29815 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
29816 | ||
29817 | # ifndef _INT64_T | |
29818 | # define _INT64_T | |
b9497ab5 | 29819 | # ifndef int64_t |
c13e029b PB |
29820 | typedef __int64 int64_t; |
29821 | # endif | |
b9497ab5 | 29822 | # endif |
c13e029b PB |
29823 | # ifndef _UINT64_T |
29824 | # define _UINT64_T | |
b9497ab5 | 29825 | # ifndef uint64_t |
c13e029b PB |
29826 | typedef unsigned __int64 uint64_t; |
29827 | # endif | |
b9497ab5 | 29828 | # endif |
c13e029b PB |
29829 | # endif /* compiler */ |
29830 | ||
29831 | #endif /* ANSI version */ | |
29832 | EOF | |
29833 | fi | |
29834 | ||
29835 | # ------------- done int64_t types, emit intptr types ------------ | |
29836 | if test "$ac_cv_type_uintptr_t" != yes; then | |
29837 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29838 | ||
29839 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
29840 | #ifndef __uintptr_t_defined | |
b9497ab5 | 29841 | #ifndef uintptr_t |
c13e029b PB |
29842 | typedef u$acx_cv_type_intptr_t uintptr_t; |
29843 | #endif | |
b9497ab5 | 29844 | #endif |
c13e029b | 29845 | #ifndef __intptr_t_defined |
b9497ab5 | 29846 | #ifndef intptr_t |
c13e029b PB |
29847 | typedef $acx_cv_type_intptr_t intptr_t; |
29848 | #endif | |
b9497ab5 | 29849 | #endif |
c13e029b PB |
29850 | EOF |
29851 | fi | |
29852 | ||
29853 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 29854 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 29855 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
29856 | |
29857 | /* Define int_least types */ | |
29858 | typedef int8_t int_least8_t; | |
29859 | typedef int16_t int_least16_t; | |
29860 | typedef int32_t int_least32_t; | |
c13e029b | 29861 | #ifdef _INT64_T |
4c4b3eb0 | 29862 | typedef int64_t int_least64_t; |
c13e029b | 29863 | #endif |
4c4b3eb0 PB |
29864 | |
29865 | typedef uint8_t uint_least8_t; | |
29866 | typedef uint16_t uint_least16_t; | |
29867 | typedef uint32_t uint_least32_t; | |
c13e029b | 29868 | #ifdef _UINT64_T |
4c4b3eb0 | 29869 | typedef uint64_t uint_least64_t; |
c13e029b | 29870 | #endif |
4c4b3eb0 PB |
29871 | EOF |
29872 | fi | |
29873 | ||
c13e029b | 29874 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 29875 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 29876 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
29877 | |
29878 | /* Define int_fast types. short is often slow */ | |
29879 | typedef int8_t int_fast8_t; | |
29880 | typedef int int_fast16_t; | |
29881 | typedef int32_t int_fast32_t; | |
c13e029b | 29882 | #ifdef _INT64_T |
4c4b3eb0 | 29883 | typedef int64_t int_fast64_t; |
c13e029b | 29884 | #endif |
4c4b3eb0 PB |
29885 | |
29886 | typedef uint8_t uint_fast8_t; | |
29887 | typedef unsigned int uint_fast16_t; | |
29888 | typedef uint32_t uint_fast32_t; | |
c13e029b | 29889 | #ifdef _UINT64_T |
4c4b3eb0 | 29890 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
29891 | #endif |
29892 | EOF | |
29893 | fi | |
29894 | ||
29895 | if test "$ac_cv_type_uintmax_t" != yes; then | |
29896 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29897 | ||
29898 | /* Define intmax based on what we found */ | |
b9497ab5 | 29899 | #ifndef intmax_t |
c13e029b PB |
29900 | #ifdef _INT64_T |
29901 | typedef int64_t intmax_t; | |
29902 | #else | |
29903 | typedef long intmax_t; | |
29904 | #endif | |
b9497ab5 RO |
29905 | #endif |
29906 | #ifndef uintmax_t | |
c13e029b PB |
29907 | #ifdef _UINT64_T |
29908 | typedef uint64_t uintmax_t; | |
29909 | #else | |
29910 | typedef unsigned long uintmax_t; | |
29911 | #endif | |
b9497ab5 | 29912 | #endif |
4c4b3eb0 PB |
29913 | EOF |
29914 | fi | |
29915 | ||
c13e029b PB |
29916 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29917 | ||
29918 | #endif /* GCC_GENERATED_STDINT_H */ | |
29919 | EOF | |
4c4b3eb0 | 29920 | |
c13e029b PB |
29921 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
29922 | rm -f tmp-stdint.h | |
4c4b3eb0 | 29923 | else |
c13e029b | 29924 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
29925 | fi |
29926 | ||
29927 | ;; | |
5213506e | 29928 | |
6de9cd9a | 29929 | esac |
5213506e | 29930 | done # for ac_tag |
6de9cd9a | 29931 | |
6de9cd9a | 29932 | |
5213506e | 29933 | as_fn_exit 0 |
6de9cd9a | 29934 | _ACEOF |
6de9cd9a DN |
29935 | ac_clean_files=$ac_clean_files_save |
29936 | ||
5213506e | 29937 | test $ac_write_fail = 0 || |
22e05272 | 29938 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 29939 | |
6de9cd9a DN |
29940 | |
29941 | # configure is writing to config.log, and then calls config.status. | |
29942 | # config.status does its own redirection, appending to config.log. | |
29943 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
29944 | # by configure, so config.status won't be able to write to it; its | |
29945 | # output is simply discarded. So we exec the FD to /dev/null, | |
29946 | # effectively closing config.log, so it can be properly (re)opened and | |
29947 | # appended to by config.status. When coming back to configure, we | |
29948 | # need to make the FD available again. | |
29949 | if test "$no_create" != yes; then | |
29950 | ac_cs_success=: | |
29951 | ac_config_status_args= | |
29952 | test "$silent" = yes && | |
29953 | ac_config_status_args="$ac_config_status_args --quiet" | |
29954 | exec 5>/dev/null | |
29955 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
29956 | exec 5>>config.log | |
29957 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
29958 | # would make configure fail if this is the last instruction. | |
22e05272 | 29959 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
29960 | fi |
29961 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
29962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
29963 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
29964 | fi |
29965 |