]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
f00f02a3 | 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. | |
cd9a469c | 7 | # |
4ee9c684 | 8 | # |
4ee9c684 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
4ee9c684 | 14 | |
cd9a469c | 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 : | |
4ee9c684 | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
4ee9c684 | 31 | fi |
4ee9c684 | 32 | |
cd9a469c | 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 | } | |
4ee9c684 | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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. | |
f00f02a3 | 90 | as_myself= |
cd9a469c | 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 | |
4ee9c684 | 122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
cd9a469c | 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 | ||
f00f02a3 | 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;} | |
cd9a469c | 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 | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
cd9a469c | 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 | |
d5d92632 | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
e6408286 | 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\" \\ | |
d5d92632 | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
cd9a469c | 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 | |
4ee9c684 | 219 | do |
cd9a469c | 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 : | |
f00f02a3 | 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 | |
cd9a469c | 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." | |
4ee9c684 | 274 | else |
cd9a469c | 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." | |
4ee9c684 | 279 | fi |
cd9a469c | 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" | |
f00f02a3 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
f00f02a3 | 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 | |
cd9a469c | 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 | ||
f00f02a3 | 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
cd9a469c | 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 | |
f00f02a3 | 415 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 416 | as_fn_error () |
417 | { | |
f00f02a3 | 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 | |
cd9a469c | 422 | fi |
f00f02a3 | 423 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
4ee9c684 | 426 | |
cd9a469c | 427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
cd9a469c | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
cd9a469c | 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 | |
4ee9c684 | 445 | |
cd9a469c | 446 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 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'` | |
ce1a737c | 464 | |
82eaf560 | 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 | |
ff4425cf | 471 | |
4ee9c684 | 472 | |
cd9a469c | 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 | | |
4ee9c684 | 482 | sed ' |
cd9a469c | 483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
4ee9c684 | 487 | N |
cd9a469c | 488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4ee9c684 | 490 | t loop |
cd9a469c | 491 | s/-\n.*// |
4ee9c684 | 492 | ' >$as_me.lineno && |
cd9a469c | 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; } | |
4ee9c684 | 495 | |
f00f02a3 | 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 | |
4ee9c684 | 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 | |
cd9a469c | 502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
4ee9c684 | 504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
cd9a469c | 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';; | |
4ee9c684 | 519 | esac |
520 | ||
cd9a469c | 521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 524 | else |
cd9a469c | 525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 527 | fi |
cd9a469c | 528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 530 | as_ln_s='ln -s' |
cd9a469c | 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. | |
f00f02a3 | 534 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 536 | as_ln_s='cp -pR' |
cd9a469c | 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
f00f02a3 | 540 | as_ln_s='cp -pR' |
82eaf560 | 541 | fi |
4ee9c684 | 542 | else |
f00f02a3 | 543 | as_ln_s='cp -pR' |
4ee9c684 | 544 | fi |
cd9a469c | 545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
4ee9c684 | 547 | |
548 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
f00f02a3 | 555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
4ee9c684 | 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 | ||
542f9784 | 564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
542f9784 | 566 | |
f00f02a3 | 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
cd9a469c | 569 | |
4ee9c684 | 570 | # Name of the host. |
f00f02a3 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
4ee9c684 | 572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
4ee9c684 | 575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
cd9a469c | 579 | ac_clean_files= |
4ee9c684 | 580 | ac_config_libobj_dir=. |
cd9a469c | 581 | LIBOBJS= |
4ee9c684 | 582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
82eaf560 | 586 | |
4ee9c684 | 587 | # Identity of this package. |
588 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
589 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 590 | PACKAGE_VERSION='0.3' |
591 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 592 | PACKAGE_BUGREPORT='' |
cd9a469c | 593 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
4ee9c684 | 594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
cd9a469c | 598 | #ifdef HAVE_SYS_TYPES_H |
4ee9c684 | 599 | # include <sys/types.h> |
600 | #endif | |
cd9a469c | 601 | #ifdef HAVE_SYS_STAT_H |
4ee9c684 | 602 | # include <sys/stat.h> |
603 | #endif | |
cd9a469c | 604 | #ifdef STDC_HEADERS |
4ee9c684 | 605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
cd9a469c | 608 | # ifdef HAVE_STDLIB_H |
4ee9c684 | 609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
cd9a469c | 612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4ee9c684 | 614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
cd9a469c | 618 | #ifdef HAVE_STRINGS_H |
4ee9c684 | 619 | # include <strings.h> |
620 | #endif | |
cd9a469c | 621 | #ifdef HAVE_INTTYPES_H |
4ee9c684 | 622 | # include <inttypes.h> |
4ee9c684 | 623 | #endif |
cd9a469c | 624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
4ee9c684 | 628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
a1aa1d30 | 631 | ac_header_list= |
632 | ac_func_list= | |
87969c8c | 633 | ac_c_werror_flag= |
b14cf757 | 634 | ac_c_werror_flag= |
cd9a469c | 635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
0812bb06 | 639 | get_gcc_base_ver |
b4e409cb | 640 | HAVE_AVX128_FALSE |
641 | HAVE_AVX128_TRUE | |
cd9a469c | 642 | IEEE_FLAGS |
d566c3e0 | 643 | IEEE_SUPPORT |
644 | IEEE_SUPPORT_FALSE | |
645 | IEEE_SUPPORT_TRUE | |
cd9a469c | 646 | FPU_HOST_HEADER |
87969c8c | 647 | LIBGFOR_BUILD_QUAD_FALSE |
648 | LIBGFOR_BUILD_QUAD_TRUE | |
649 | LIBQUADINCLUDE | |
650 | LIBQUADLIB_DEP | |
651 | LIBQUADLIB | |
652 | LIBQUADSPEC | |
cd9a469c | 653 | extra_ldflags_libgfortran |
654 | ac_ct_FC | |
655 | FCFLAGS | |
656 | FC | |
657 | enable_static | |
658 | enable_shared | |
8c35d268 | 659 | lt_host_flags |
cd9a469c | 660 | OTOOL64 |
661 | OTOOL | |
662 | LIPO | |
663 | NMEDIT | |
664 | DSYMUTIL | |
cd9a469c | 665 | OBJDUMP |
666 | LN_S | |
667 | NM | |
668 | ac_ct_DUMPBIN | |
669 | DUMPBIN | |
cd9a469c | 670 | LIBTOOL |
671 | RANLIB | |
672 | AR | |
673 | AS | |
18ce903b | 674 | HAVE_HWCAP_FALSE |
675 | HAVE_HWCAP_TRUE | |
676 | HWCAP_LDFLAGS | |
677 | LD | |
678 | FGREP | |
679 | SED | |
cd9a469c | 680 | SECTION_FLAGS |
eb00e55c | 681 | LIBGFOR_MINIMAL_FALSE |
682 | LIBGFOR_MINIMAL_TRUE | |
019fb48a | 683 | LIBGFOR_USE_SYMVER_SUN_FALSE |
684 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
685 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
686 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
cd9a469c | 687 | LIBGFOR_USE_SYMVER_FALSE |
688 | LIBGFOR_USE_SYMVER_TRUE | |
689 | AM_CFLAGS | |
690 | AM_FCFLAGS | |
d5d92632 | 691 | toolexeclibdir |
692 | toolexecdir | |
693 | EGREP | |
694 | GREP | |
695 | CPP | |
cd9a469c | 696 | am__fastdepCC_FALSE |
697 | am__fastdepCC_TRUE | |
698 | CCDEPMODE | |
544db64f | 699 | am__nodep |
cd9a469c | 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 | |
cd9a469c | 713 | multi_basedir |
714 | MAINT | |
715 | MAINTAINER_MODE_FALSE | |
716 | MAINTAINER_MODE_TRUE | |
f00f02a3 | 717 | AM_BACKSLASH |
718 | AM_DEFAULT_VERBOSITY | |
719 | AM_DEFAULT_V | |
720 | AM_V | |
cd9a469c | 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 | |
7eda0fb7 | 744 | target_noncanonical |
cd9a469c | 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 | |
e38e222d | 783 | runstatedir |
cd9a469c | 784 | localstatedir |
785 | sharedstatedir | |
786 | sysconfdir | |
787 | datadir | |
788 | datarootdir | |
789 | libexecdir | |
790 | sbindir | |
791 | bindir | |
792 | program_transform_name | |
793 | prefix | |
794 | exec_prefix | |
795 | PACKAGE_URL | |
796 | PACKAGE_BUGREPORT | |
797 | PACKAGE_STRING | |
798 | PACKAGE_VERSION | |
799 | PACKAGE_TARNAME | |
800 | PACKAGE_NAME | |
801 | PATH_SEPARATOR | |
802 | SHELL' | |
4ee9c684 | 803 | ac_subst_files='' |
cd9a469c | 804 | ac_user_opts=' |
805 | enable_option_checking | |
806 | with_build_libsubdir | |
807 | enable_version_specific_runtime_libs | |
808 | enable_intermodule | |
f00f02a3 | 809 | enable_silent_rules |
cd9a469c | 810 | enable_maintainer_mode |
811 | enable_multilib | |
812 | enable_dependency_tracking | |
42ea2de2 | 813 | enable_cet |
bbb514dc | 814 | enable_symvers |
18ce903b | 815 | with_gnu_ld |
cd9a469c | 816 | enable_shared |
817 | enable_static | |
818 | with_pic | |
819 | enable_fast_install | |
cd9a469c | 820 | enable_libtool_lock |
821 | enable_largefile | |
d9d975ae | 822 | enable_libquadmath_support |
0812bb06 | 823 | with_gcc_major_version_only |
cd9a469c | 824 | ' |
825 | ac_precious_vars='build_alias | |
826 | host_alias | |
827 | target_alias | |
d5d92632 | 828 | CC |
829 | CFLAGS | |
830 | LDFLAGS | |
831 | LIBS | |
cd9a469c | 832 | CPPFLAGS |
d5d92632 | 833 | CPP |
cd9a469c | 834 | FC |
d5d92632 | 835 | FCFLAGS' |
cd9a469c | 836 | |
4ee9c684 | 837 | |
838 | # Initialize some variables set by options. | |
839 | ac_init_help= | |
840 | ac_init_version=false | |
cd9a469c | 841 | ac_unrecognized_opts= |
842 | ac_unrecognized_sep= | |
4ee9c684 | 843 | # The variables have the same names as the options, with |
844 | # dashes changed to underlines. | |
845 | cache_file=/dev/null | |
846 | exec_prefix=NONE | |
847 | no_create= | |
848 | no_recursion= | |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
856 | verbose= | |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
859 | ||
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 865 | # (The list follows the same order as the GNU Coding Standards.) |
4ee9c684 | 866 | bindir='${exec_prefix}/bin' |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 869 | datarootdir='${prefix}/share' |
870 | datadir='${datarootdir}' | |
4ee9c684 | 871 | sysconfdir='${prefix}/etc' |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
e38e222d | 874 | runstatedir='${localstatedir}/run' |
4ee9c684 | 875 | includedir='${prefix}/include' |
876 | oldincludedir='/usr/include' | |
cd9a469c | 877 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
878 | infodir='${datarootdir}/info' | |
879 | htmldir='${docdir}' | |
880 | dvidir='${docdir}' | |
881 | pdfdir='${docdir}' | |
882 | psdir='${docdir}' | |
883 | libdir='${exec_prefix}/lib' | |
884 | localedir='${datarootdir}/locale' | |
885 | mandir='${datarootdir}/man' | |
4ee9c684 | 886 | |
887 | ac_prev= | |
cd9a469c | 888 | ac_dashdash= |
4ee9c684 | 889 | for ac_option |
890 | do | |
891 | # If the previous option needs an argument, assign it. | |
892 | if test -n "$ac_prev"; then | |
cd9a469c | 893 | eval $ac_prev=\$ac_option |
4ee9c684 | 894 | ac_prev= |
895 | continue | |
896 | fi | |
897 | ||
cd9a469c | 898 | case $ac_option in |
f00f02a3 | 899 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
900 | *=) ac_optarg= ;; | |
901 | *) ac_optarg=yes ;; | |
cd9a469c | 902 | esac |
4ee9c684 | 903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
cd9a469c | 906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
4ee9c684 | 909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
913 | bindir=$ac_optarg ;; | |
914 | ||
915 | -build | --build | --buil | --bui | --bu) | |
916 | ac_prev=build_alias ;; | |
917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
918 | build_alias=$ac_optarg ;; | |
919 | ||
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
925 | cache_file=$ac_optarg ;; | |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
929 | ||
cd9a469c | 930 | -datadir | --datadir | --datadi | --datad) |
4ee9c684 | 931 | ac_prev=datadir ;; |
cd9a469c | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4ee9c684 | 933 | datadir=$ac_optarg ;; |
934 | ||
cd9a469c | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
4ee9c684 | 942 | -disable-* | --disable-*) |
cd9a469c | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4ee9c684 | 944 | # Reject names that are not valid shell variable names. |
cd9a469c | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 946 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 947 | ac_useropt_orig=$ac_useropt |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
4ee9c684 | 967 | |
968 | -enable-* | --enable-*) | |
cd9a469c | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4ee9c684 | 970 | # Reject names that are not valid shell variable names. |
cd9a469c | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 972 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 973 | ac_useropt_orig=$ac_useropt |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
82eaf560 | 981 | esac |
cd9a469c | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
991 | exec_prefix=$ac_optarg ;; | |
992 | ||
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
997 | -help | --help | --hel | --he | -h) | |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
1003 | ||
1004 | -host | --host | --hos | --ho) | |
1005 | ac_prev=host_alias ;; | |
1006 | -host=* | --host=* | --hos=* | --ho=*) | |
1007 | host_alias=$ac_optarg ;; | |
1008 | ||
cd9a469c | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
4ee9c684 | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1020 | includedir=$ac_optarg ;; | |
1021 | ||
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1025 | infodir=$ac_optarg ;; | |
1026 | ||
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1030 | libdir=$ac_optarg ;; | |
1031 | ||
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
1037 | libexecdir=$ac_optarg ;; | |
1038 | ||
cd9a469c | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
4ee9c684 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
4ee9c684 | 1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4ee9c684 | 1049 | localstatedir=$ac_optarg ;; |
1050 | ||
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1054 | mandir=$ac_optarg ;; | |
1055 | ||
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1061 | | --no-cr | --no-c | -n) | |
1062 | no_create=yes ;; | |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1075 | oldincludedir=$ac_optarg ;; | |
1076 | ||
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1080 | prefix=$ac_optarg ;; | |
1081 | ||
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1087 | program_prefix=$ac_optarg ;; | |
1088 | ||
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1094 | program_suffix=$ac_optarg ;; | |
1095 | ||
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1111 | program_transform_name=$ac_optarg ;; | |
1112 | ||
cd9a469c | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
4ee9c684 | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
e38e222d | 1127 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1128 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1129 | | --run | --ru | --r) | |
1130 | ac_prev=runstatedir ;; | |
1131 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1132 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1133 | | --run=* | --ru=* | --r=*) | |
1134 | runstatedir=$ac_optarg ;; | |
1135 | ||
4ee9c684 | 1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
1140 | sbindir=$ac_optarg ;; | |
1141 | ||
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
1151 | sharedstatedir=$ac_optarg ;; | |
1152 | ||
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
1156 | site=$ac_optarg ;; | |
1157 | ||
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1161 | srcdir=$ac_optarg ;; | |
1162 | ||
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1168 | sysconfdir=$ac_optarg ;; | |
1169 | ||
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1171 | ac_prev=target_alias ;; | |
1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1173 | target_alias=$ac_optarg ;; | |
1174 | ||
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
1178 | -version | --version | --versio | --versi | --vers | -V) | |
1179 | ac_init_version=: ;; | |
1180 | ||
1181 | -with-* | --with-*) | |
cd9a469c | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4ee9c684 | 1183 | # Reject names that are not valid shell variable names. |
cd9a469c | 1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1185 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1186 | ac_useropt_orig=$ac_useropt |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
82eaf560 | 1194 | esac |
cd9a469c | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 1196 | |
1197 | -without-* | --without-*) | |
cd9a469c | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4ee9c684 | 1199 | # Reject names that are not valid shell variable names. |
cd9a469c | 1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1201 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1202 | ac_useropt_orig=$ac_useropt |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
4ee9c684 | 1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1222 | x_includes=$ac_optarg ;; | |
1223 | ||
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1229 | x_libraries=$ac_optarg ;; | |
1230 | ||
f00f02a3 | 1231 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information" | |
4ee9c684 | 1233 | ;; |
1234 | ||
1235 | *=*) | |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1240 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
cd9a469c | 1241 | esac |
1242 | eval $ac_envvar=\$ac_optarg | |
4ee9c684 | 1243 | export $ac_envvar ;; |
1244 | ||
1245 | *) | |
1246 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4ee9c684 | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f00f02a3 | 1250 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
4ee9c684 | 1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
f00f02a3 | 1258 | as_fn_error $? "missing argument to $ac_option" |
4ee9c684 | 1259 | fi |
1260 | ||
cd9a469c | 1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
f00f02a3 | 1264 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
cd9a469c | 1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
82eaf560 | 1266 | esac |
cd9a469c | 1267 | fi |
82eaf560 | 1268 | |
cd9a469c | 1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e38e222d | 1273 | libdir localedir mandir runstatedir |
82eaf560 | 1274 | do |
cd9a469c | 1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
82eaf560 | 1283 | case $ac_val in |
cd9a469c | 1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4ee9c684 | 1286 | esac |
f00f02a3 | 1287 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
4ee9c684 | 1288 | done |
1289 | ||
1290 | # There might be people who depend on the old broken behavior: `$host' | |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
1296 | ||
1297 | # FIXME: To remove some day. | |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
4ee9c684 | 1301 | elif test "x$build_alias" != "x$host_alias"; then |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
1310 | ||
1311 | ||
cd9a469c | 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1315 | as_fn_error $? "working directory cannot be determined" |
cd9a469c | 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1317 | as_fn_error $? "pwd does not report name of working directory" |
cd9a469c | 1318 | |
1319 | ||
4ee9c684 | 1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
cd9a469c | 1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
4ee9c684 | 1347 | srcdir=$ac_confdir |
cd9a469c | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
4ee9c684 | 1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
cd9a469c | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1356 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd9a469c | 1357 | fi |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
f00f02a3 | 1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
cd9a469c | 1361 | pwd)` |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
1372 | for ac_var in $ac_precious_vars; do | |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
4ee9c684 | 1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
76c0a846 | 1386 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
4ee9c684 | 1387 | |
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
f00f02a3 | 1400 | -q, --quiet, --silent do not print \`checking ...' messages |
4ee9c684 | 1401 | --cache-file=FILE cache test results in FILE [disabled] |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
4ee9c684 | 1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1408 | [$ac_default_prefix] |
4ee9c684 | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1410 | [PREFIX] |
4ee9c684 | 1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
cd9a469c | 1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
e38e222d | 1426 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
cd9a469c | 1427 | --libdir=DIR object code libraries [EPREFIX/lib] |
1428 | --includedir=DIR C header files [PREFIX/include] | |
1429 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1430 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1431 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1432 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1433 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1434 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1435 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1436 | --htmldir=DIR html documentation [DOCDIR] | |
1437 | --dvidir=DIR dvi documentation [DOCDIR] | |
1438 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1439 | --psdir=DIR ps documentation [DOCDIR] | |
4ee9c684 | 1440 | _ACEOF |
1441 | ||
1442 | cat <<\_ACEOF | |
1443 | ||
1444 | Program names: | |
1445 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1446 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1447 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1448 | ||
1449 | System types: | |
1450 | --build=BUILD configure for building on BUILD [guessed] | |
1451 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 1452 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 1453 | _ACEOF |
1454 | fi | |
1455 | ||
1456 | if test -n "$ac_init_help"; then | |
1457 | case $ac_init_help in | |
76c0a846 | 1458 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
4ee9c684 | 1459 | esac |
1460 | cat <<\_ACEOF | |
1461 | ||
1462 | Optional Features: | |
cd9a469c | 1463 | --disable-option-checking ignore unrecognized --enable/--with options |
4ee9c684 | 1464 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1465 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9d975ae | 1466 | --enable-version-specific-runtime-libs |
1467 | specify that runtime libraries should be installed | |
1468 | in a compiler-specific directory | |
93773f82 | 1469 | --enable-intermodule build the library in one step |
f00f02a3 | 1470 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1471 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1472 | --enable-maintainer-mode | |
1473 | enable make rules and dependencies not useful (and | |
1474 | sometimes confusing) to the casual installer | |
90973b19 | 1475 | --enable-multilib build many library versions (default) |
f00f02a3 | 1476 | --enable-dependency-tracking |
1477 | do not reject slow dependency extractors | |
1478 | --disable-dependency-tracking | |
1479 | speeds up one-time build | |
ee8fea81 | 1480 | --enable-cet enable Intel CET in target libraries [default=no] |
bbb514dc | 1481 | --disable-symvers disable symbol versioning for libgfortran |
cd9a469c | 1482 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1483 | --enable-static[=PKGS] build static libraries [default=yes] | |
542f9784 | 1484 | --enable-fast-install[=PKGS] |
1485 | optimize for fast installation [default=yes] | |
4ee9c684 | 1486 | --disable-libtool-lock avoid locking (might break parallel builds) |
90e67cff | 1487 | --disable-largefile omit support for large files |
d9d975ae | 1488 | --disable-libquadmath-support |
1489 | disable libquadmath support for Fortran | |
4ee9c684 | 1490 | |
1491 | Optional Packages: | |
1492 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1493 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3e427a9c | 1494 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
18ce903b | 1495 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
542f9784 | 1496 | --with-pic try to use only PIC/non-PIC objects [default=use |
1497 | both] | |
0812bb06 | 1498 | --with-gcc-major-version-only |
1499 | use only GCC major number in filesystem paths | |
4ee9c684 | 1500 | |
1501 | Some influential environment variables: | |
1502 | CC C compiler command | |
1503 | CFLAGS C compiler flags | |
1504 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1505 | nonstandard directory <lib dir> | |
cd9a469c | 1506 | LIBS libraries to pass to the linker, e.g. -l<library> |
f00f02a3 | 1507 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cd9a469c | 1508 | you have headers in a nonstandard directory <include dir> |
542f9784 | 1509 | CPP C preprocessor |
6d73cceb | 1510 | FC Fortran compiler command |
1511 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 1512 | |
1513 | Use these variables to override the choices made by `configure' or to help | |
1514 | it to find libraries and programs with nonstandard names/locations. | |
1515 | ||
cd9a469c | 1516 | Report bugs to the package provider. |
1517 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1518 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
4ee9c684 | 1519 | _ACEOF |
cd9a469c | 1520 | ac_status=$? |
4ee9c684 | 1521 | fi |
1522 | ||
1523 | if test "$ac_init_help" = "recursive"; then | |
1524 | # If there are subdirs, report their specific --help. | |
4ee9c684 | 1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1526 | test -d "$ac_dir" || |
1527 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1528 | continue | |
4ee9c684 | 1529 | ac_builddir=. |
1530 | ||
cd9a469c | 1531 | case "$ac_dir" in |
1532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1533 | *) | |
1534 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1535 | # A ".." for each directory in $ac_dir_suffix. | |
1536 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1537 | case $ac_top_builddir_sub in | |
1538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1540 | esac ;; | |
1541 | esac | |
1542 | ac_abs_top_builddir=$ac_pwd | |
1543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1544 | # for backward compatibility: | |
1545 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 1546 | |
1547 | case $srcdir in | |
cd9a469c | 1548 | .) # We are building in place. |
4ee9c684 | 1549 | ac_srcdir=. |
cd9a469c | 1550 | ac_top_srcdir=$ac_top_builddir_sub |
1551 | ac_abs_top_srcdir=$ac_pwd ;; | |
1552 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 1553 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1554 | ac_top_srcdir=$srcdir |
1555 | ac_abs_top_srcdir=$srcdir ;; | |
1556 | *) # Relative name. | |
1557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1558 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a106dabe | 1560 | esac |
cd9a469c | 1561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1562 | ||
1563 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1564 | # Check for guested configure. | |
1565 | if test -f "$ac_srcdir/configure.gnu"; then | |
1566 | echo && | |
1567 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1568 | elif test -f "$ac_srcdir/configure"; then | |
1569 | echo && | |
1570 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4ee9c684 | 1571 | else |
cd9a469c | 1572 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1573 | fi || ac_status=$? | |
1574 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4ee9c684 | 1575 | done |
1576 | fi | |
1577 | ||
cd9a469c | 1578 | test -n "$ac_init_help" && exit $ac_status |
4ee9c684 | 1579 | if $ac_init_version; then |
1580 | cat <<\_ACEOF | |
76c0a846 | 1581 | GNU Fortran Runtime Library configure 0.3 |
f00f02a3 | 1582 | generated by GNU Autoconf 2.69 |
4ee9c684 | 1583 | |
f00f02a3 | 1584 | Copyright (C) 2012 Free Software Foundation, Inc. |
4ee9c684 | 1585 | This configure script is free software; the Free Software Foundation |
1586 | gives unlimited permission to copy, distribute and modify it. | |
1587 | _ACEOF | |
cd9a469c | 1588 | exit |
4ee9c684 | 1589 | fi |
4ee9c684 | 1590 | |
cd9a469c | 1591 | ## ------------------------ ## |
1592 | ## Autoconf initialization. ## | |
1593 | ## ------------------------ ## | |
4ee9c684 | 1594 | |
cd9a469c | 1595 | # ac_fn_c_try_compile LINENO |
1596 | # -------------------------- | |
1597 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1598 | ac_fn_c_try_compile () | |
1599 | { | |
1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1601 | rm -f conftest.$ac_objext | |
1602 | if { { ac_try="$ac_compile" | |
1603 | case "(($ac_try" in | |
1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1605 | *) ac_try_echo=$ac_try;; | |
1606 | esac | |
1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1608 | $as_echo "$ac_try_echo"; } >&5 | |
1609 | (eval "$ac_compile") 2>conftest.err | |
1610 | ac_status=$? | |
1611 | if test -s conftest.err; then | |
1612 | grep -v '^ *+' conftest.err >conftest.er1 | |
1613 | cat conftest.er1 >&5 | |
1614 | mv -f conftest.er1 conftest.err | |
1615 | fi | |
1616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1617 | test $ac_status = 0; } && { | |
1618 | test -z "$ac_c_werror_flag" || | |
1619 | test ! -s conftest.err | |
1620 | } && test -s conftest.$ac_objext; then : | |
1621 | ac_retval=0 | |
1622 | else | |
1623 | $as_echo "$as_me: failed program was:" >&5 | |
1624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1625 | |
cd9a469c | 1626 | ac_retval=1 |
1627 | fi | |
f00f02a3 | 1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1629 | as_fn_set_status $ac_retval | |
cd9a469c | 1630 | |
1631 | } # ac_fn_c_try_compile | |
1632 | ||
d5d92632 | 1633 | # ac_fn_c_try_cpp LINENO |
1634 | # ---------------------- | |
1635 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1636 | ac_fn_c_try_cpp () | |
4ee9c684 | 1637 | { |
cd9a469c | 1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
d5d92632 | 1639 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
cd9a469c | 1640 | case "(($ac_try" in |
1641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1642 | *) ac_try_echo=$ac_try;; | |
1643 | esac | |
1644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1645 | $as_echo "$ac_try_echo"; } >&5 | |
d5d92632 | 1646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
cd9a469c | 1647 | ac_status=$? |
1648 | if test -s conftest.err; then | |
1649 | grep -v '^ *+' conftest.err >conftest.er1 | |
1650 | cat conftest.er1 >&5 | |
1651 | mv -f conftest.er1 conftest.err | |
1652 | fi | |
1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
f00f02a3 | 1654 | test $ac_status = 0; } > conftest.i && { |
d5d92632 | 1655 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
cd9a469c | 1656 | test ! -s conftest.err |
cd9a469c | 1657 | }; then : |
1658 | ac_retval=0 | |
1659 | else | |
1660 | $as_echo "$as_me: failed program was:" >&5 | |
1661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1662 | |
d5d92632 | 1663 | ac_retval=1 |
cd9a469c | 1664 | fi |
f00f02a3 | 1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1666 | as_fn_set_status $ac_retval | |
4ee9c684 | 1667 | |
d5d92632 | 1668 | } # ac_fn_c_try_cpp |
4ee9c684 | 1669 | |
d5d92632 | 1670 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
cd9a469c | 1671 | # ------------------------------------------------------- |
d5d92632 | 1672 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1673 | # the include files in INCLUDES and setting the cache variable VAR | |
1674 | # accordingly. | |
1675 | ac_fn_c_check_header_mongrel () | |
cd9a469c | 1676 | { |
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
f00f02a3 | 1678 | if eval \${$3+:} false; then : |
cd9a469c | 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1680 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1681 | if eval \${$3+:} false; then : |
cd9a469c | 1682 | $as_echo_n "(cached) " >&6 |
d5d92632 | 1683 | fi |
1684 | eval ac_res=\$$3 | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1686 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1687 | else |
d5d92632 | 1688 | # Is the header compilable? |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1690 | $as_echo_n "checking $2 usability... " >&6; } | |
1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 1692 | /* end confdefs.h. */ |
1693 | $4 | |
1694 | #include <$2> | |
1695 | _ACEOF | |
1696 | if ac_fn_c_try_compile "$LINENO"; then : | |
d5d92632 | 1697 | ac_header_compiler=yes |
cd9a469c | 1698 | else |
d5d92632 | 1699 | ac_header_compiler=no |
cd9a469c | 1700 | fi |
1701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d5d92632 | 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1703 | $as_echo "$ac_header_compiler" >&6; } | |
4ee9c684 | 1704 | |
d5d92632 | 1705 | # Is the header present? |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1707 | $as_echo_n "checking $2 presence... " >&6; } | |
1708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1709 | /* end confdefs.h. */ | |
1710 | #include <$2> | |
1711 | _ACEOF | |
1712 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1713 | ac_header_preproc=yes | |
1714 | else | |
1715 | ac_header_preproc=no | |
1716 | fi | |
f00f02a3 | 1717 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1719 | $as_echo "$ac_header_preproc" >&6; } | |
4ee9c684 | 1720 | |
d5d92632 | 1721 | # So? What about this header? |
1722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1723 | yes:no: ) | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 | ;; | |
1729 | no:yes:* ) | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1739 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1740 | ;; | |
cd9a469c | 1741 | esac |
d5d92632 | 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1743 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1744 | if eval \${$3+:} false; then : |
d5d92632 | 1745 | $as_echo_n "(cached) " >&6 |
cd9a469c | 1746 | else |
d5d92632 | 1747 | eval "$3=\$ac_header_compiler" |
1748 | fi | |
1749 | eval ac_res=\$$3 | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1751 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1752 | fi |
f00f02a3 | 1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 1754 | |
d5d92632 | 1755 | } # ac_fn_c_check_header_mongrel |
4ee9c684 | 1756 | |
cd9a469c | 1757 | # ac_fn_c_try_run LINENO |
1758 | # ---------------------- | |
1759 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1760 | # that executables *can* be run. | |
1761 | ac_fn_c_try_run () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | if { { ac_try="$ac_link" | |
1765 | case "(($ac_try" in | |
1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1767 | *) ac_try_echo=$ac_try;; | |
1768 | esac | |
1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1770 | $as_echo "$ac_try_echo"; } >&5 | |
1771 | (eval "$ac_link") 2>&5 | |
1772 | ac_status=$? | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1775 | { { case "(($ac_try" in | |
1776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1777 | *) ac_try_echo=$ac_try;; | |
1778 | esac | |
1779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1780 | $as_echo "$ac_try_echo"; } >&5 | |
1781 | (eval "$ac_try") 2>&5 | |
1782 | ac_status=$? | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; }; }; then : | |
1785 | ac_retval=0 | |
1786 | else | |
1787 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1788 | $as_echo "$as_me: failed program was:" >&5 | |
1789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1790 | |
cd9a469c | 1791 | ac_retval=$ac_status |
1792 | fi | |
1793 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1795 | as_fn_set_status $ac_retval | |
4ee9c684 | 1796 | |
cd9a469c | 1797 | } # ac_fn_c_try_run |
4ee9c684 | 1798 | |
d5d92632 | 1799 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1800 | # ------------------------------------------------------- | |
1801 | # Tests whether HEADER exists and can be compiled using the include files in | |
1802 | # INCLUDES, setting the cache variable VAR accordingly. | |
1803 | ac_fn_c_check_header_compile () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1807 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1808 | if eval \${$3+:} false; then : |
d5d92632 | 1809 | $as_echo_n "(cached) " >&6 |
1810 | else | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | $4 | |
1814 | #include <$2> | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_compile "$LINENO"; then : | |
1817 | eval "$3=yes" | |
1818 | else | |
1819 | eval "$3=no" | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | fi | |
1823 | eval ac_res=\$$3 | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1825 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1826 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d5d92632 | 1827 | |
1828 | } # ac_fn_c_check_header_compile | |
1829 | ||
1830 | # ac_fn_c_try_link LINENO | |
1831 | # ----------------------- | |
1832 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1833 | ac_fn_c_try_link () | |
1834 | { | |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1837 | if { { ac_try="$ac_link" | |
1838 | case "(($ac_try" in | |
1839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1840 | *) ac_try_echo=$ac_try;; | |
1841 | esac | |
1842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1843 | $as_echo "$ac_try_echo"; } >&5 | |
1844 | (eval "$ac_link") 2>conftest.err | |
1845 | ac_status=$? | |
1846 | if test -s conftest.err; then | |
1847 | grep -v '^ *+' conftest.err >conftest.er1 | |
1848 | cat conftest.er1 >&5 | |
1849 | mv -f conftest.er1 conftest.err | |
1850 | fi | |
1851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1852 | test $ac_status = 0; } && { | |
1853 | test -z "$ac_c_werror_flag" || | |
1854 | test ! -s conftest.err | |
1855 | } && test -s conftest$ac_exeext && { | |
1856 | test "$cross_compiling" = yes || | |
f00f02a3 | 1857 | test -x conftest$ac_exeext |
d5d92632 | 1858 | }; then : |
1859 | ac_retval=0 | |
1860 | else | |
1861 | $as_echo "$as_me: failed program was:" >&5 | |
1862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1863 | ||
1864 | ac_retval=1 | |
1865 | fi | |
1866 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1867 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1868 | # interfere with the next link command; also delete a directory that is | |
1869 | # left behind by Apple's compiler. We do this before executing the actions. | |
1870 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1871 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1872 | as_fn_set_status $ac_retval | |
d5d92632 | 1873 | |
1874 | } # ac_fn_c_try_link | |
1875 | ||
cd9a469c | 1876 | # ac_fn_c_check_func LINENO FUNC VAR |
1877 | # ---------------------------------- | |
1878 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1879 | ac_fn_c_check_func () | |
1880 | { | |
1881 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1883 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1884 | if eval \${$3+:} false; then : |
cd9a469c | 1885 | $as_echo_n "(cached) " >&6 |
1886 | else | |
1887 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 1888 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cd9a469c | 1889 | fi |
1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1891 | /* end confdefs.h. */ | |
1892 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1894 | #define $2 innocuous_$2 | |
4ee9c684 | 1895 | |
cd9a469c | 1896 | /* System header to define __stub macros and hopefully few prototypes, |
1897 | which can conflict with char $2 (); below. | |
1898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1899 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 1900 | |
cd9a469c | 1901 | #ifdef __STDC__ |
1902 | # include <limits.h> | |
1903 | #else | |
1904 | # include <assert.h> | |
1905 | #endif | |
4ee9c684 | 1906 | |
cd9a469c | 1907 | #undef $2 |
1908 | ||
1909 | /* Override any GCC internal prototype to avoid an error. | |
1910 | Use char because int might match the return type of a GCC | |
1911 | builtin and then its argument prototype would still apply. */ | |
1912 | #ifdef __cplusplus | |
1913 | extern "C" | |
1914 | #endif | |
1915 | char $2 (); | |
1916 | /* The GNU C library defines this for functions which it implements | |
1917 | to always fail with ENOSYS. Some functions are actually named | |
1918 | something starting with __ and the normal name is an alias. */ | |
1919 | #if defined __stub_$2 || defined __stub___$2 | |
1920 | choke me | |
1921 | #endif | |
1922 | ||
1923 | int | |
1924 | main () | |
82eaf560 | 1925 | { |
cd9a469c | 1926 | return $2 (); |
1927 | ; | |
1928 | return 0; | |
82eaf560 | 1929 | } |
cd9a469c | 1930 | _ACEOF |
1931 | if ac_fn_c_try_link "$LINENO"; then : | |
1932 | eval "$3=yes" | |
1933 | else | |
1934 | eval "$3=no" | |
1935 | fi | |
1936 | rm -f core conftest.err conftest.$ac_objext \ | |
1937 | conftest$ac_exeext conftest.$ac_ext | |
1938 | fi | |
1939 | eval ac_res=\$$3 | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1941 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 1943 | |
cd9a469c | 1944 | } # ac_fn_c_check_func |
4ee9c684 | 1945 | |
cd9a469c | 1946 | # ac_fn_fc_try_compile LINENO |
1947 | # --------------------------- | |
1948 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1949 | ac_fn_fc_try_compile () | |
1950 | { | |
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1952 | rm -f conftest.$ac_objext | |
1953 | if { { ac_try="$ac_compile" | |
1954 | case "(($ac_try" in | |
1955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1956 | *) ac_try_echo=$ac_try;; | |
1957 | esac | |
1958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1959 | $as_echo "$ac_try_echo"; } >&5 | |
1960 | (eval "$ac_compile") 2>conftest.err | |
1961 | ac_status=$? | |
1962 | if test -s conftest.err; then | |
1963 | grep -v '^ *+' conftest.err >conftest.er1 | |
1964 | cat conftest.er1 >&5 | |
1965 | mv -f conftest.er1 conftest.err | |
1966 | fi | |
1967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1968 | test $ac_status = 0; } && { | |
1969 | test -z "$ac_fc_werror_flag" || | |
1970 | test ! -s conftest.err | |
1971 | } && test -s conftest.$ac_objext; then : | |
1972 | ac_retval=0 | |
1973 | else | |
1974 | $as_echo "$as_me: failed program was:" >&5 | |
1975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1976 | |
cd9a469c | 1977 | ac_retval=1 |
1978 | fi | |
f00f02a3 | 1979 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1980 | as_fn_set_status $ac_retval | |
4ee9c684 | 1981 | |
cd9a469c | 1982 | } # ac_fn_fc_try_compile |
4ee9c684 | 1983 | |
cd9a469c | 1984 | # ac_fn_fc_try_link LINENO |
1985 | # ------------------------ | |
1986 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1987 | ac_fn_fc_try_link () | |
1988 | { | |
1989 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1991 | if { { ac_try="$ac_link" | |
1992 | case "(($ac_try" in | |
1993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1994 | *) ac_try_echo=$ac_try;; | |
1995 | esac | |
1996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1997 | $as_echo "$ac_try_echo"; } >&5 | |
1998 | (eval "$ac_link") 2>conftest.err | |
1999 | ac_status=$? | |
2000 | if test -s conftest.err; then | |
2001 | grep -v '^ *+' conftest.err >conftest.er1 | |
2002 | cat conftest.er1 >&5 | |
2003 | mv -f conftest.er1 conftest.err | |
2004 | fi | |
2005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2006 | test $ac_status = 0; } && { | |
2007 | test -z "$ac_fc_werror_flag" || | |
2008 | test ! -s conftest.err | |
2009 | } && test -s conftest$ac_exeext && { | |
2010 | test "$cross_compiling" = yes || | |
f00f02a3 | 2011 | test -x conftest$ac_exeext |
cd9a469c | 2012 | }; then : |
2013 | ac_retval=0 | |
2014 | else | |
2015 | $as_echo "$as_me: failed program was:" >&5 | |
2016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 2017 | |
cd9a469c | 2018 | ac_retval=1 |
2019 | fi | |
2020 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2021 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2022 | # interfere with the next link command; also delete a directory that is | |
2023 | # left behind by Apple's compiler. We do this before executing the actions. | |
2024 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2026 | as_fn_set_status $ac_retval | |
4ee9c684 | 2027 | |
cd9a469c | 2028 | } # ac_fn_fc_try_link |
4ee9c684 | 2029 | |
cd9a469c | 2030 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2031 | # ------------------------------------------- | |
2032 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2033 | # variable VAR accordingly. | |
2034 | ac_fn_c_check_type () | |
2035 | { | |
2036 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2038 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 2039 | if eval \${$3+:} false; then : |
cd9a469c | 2040 | $as_echo_n "(cached) " >&6 |
2041 | else | |
2042 | eval "$3=no" | |
2043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2044 | /* end confdefs.h. */ | |
2045 | $4 | |
2046 | int | |
2047 | main () | |
2048 | { | |
2049 | if (sizeof ($2)) | |
2050 | return 0; | |
2051 | ; | |
2052 | return 0; | |
2053 | } | |
4ee9c684 | 2054 | _ACEOF |
cd9a469c | 2055 | if ac_fn_c_try_compile "$LINENO"; then : |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2057 | /* end confdefs.h. */ | |
2058 | $4 | |
2059 | int | |
2060 | main () | |
2061 | { | |
2062 | if (sizeof (($2))) | |
2063 | return 0; | |
2064 | ; | |
2065 | return 0; | |
2066 | } | |
4ee9c684 | 2067 | _ACEOF |
cd9a469c | 2068 | if ac_fn_c_try_compile "$LINENO"; then : |
4ee9c684 | 2069 | |
cd9a469c | 2070 | else |
2071 | eval "$3=yes" | |
2072 | fi | |
2073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2074 | fi | |
2075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2076 | fi | |
2077 | eval ac_res=\$$3 | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2079 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 2080 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 2081 | |
cd9a469c | 2082 | } # ac_fn_c_check_type |
4ee9c684 | 2083 | |
d5d92632 | 2084 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2085 | # -------------------------------------------- | |
2086 | # Tries to find the compile-time value of EXPR in a program that includes | |
2087 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2088 | # computed | |
2089 | ac_fn_c_compute_int () | |
cd9a469c | 2090 | { |
2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069752c | 2092 | if test "$cross_compiling" = yes; then |
2093 | # Depending upon the size, compute the lo and hi bounds. | |
2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2095 | /* end confdefs.h. */ |
2069752c | 2096 | $4 |
cd9a469c | 2097 | int |
2098 | main () | |
2099 | { | |
2069752c | 2100 | static int test_array [1 - 2 * !(($2) >= 0)]; |
f00f02a3 | 2101 | test_array [0] = 0; |
2102 | return test_array [0]; | |
4ee9c684 | 2103 | |
cd9a469c | 2104 | ; |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2109 | ac_lo=0 ac_mid=0 |
2110 | while :; do | |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2112 | /* end confdefs.h. */ |
2069752c | 2113 | $4 |
cd9a469c | 2114 | int |
2115 | main () | |
2116 | { | |
2069752c | 2117 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
f00f02a3 | 2118 | test_array [0] = 0; |
2119 | return test_array [0]; | |
4ee9c684 | 2120 | |
cd9a469c | 2121 | ; |
2122 | return 0; | |
2123 | } | |
2124 | _ACEOF | |
2125 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2126 | ac_hi=$ac_mid; break |
cd9a469c | 2127 | else |
2069752c | 2128 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2129 | if test $ac_lo -le $ac_mid; then | |
2130 | ac_lo= ac_hi= | |
2131 | break | |
2132 | fi | |
2133 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
cd9a469c | 2134 | fi |
2135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2136 | done |
2137 | else | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | $4 | |
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | static int test_array [1 - 2 * !(($2) < 0)]; | |
f00f02a3 | 2145 | test_array [0] = 0; |
2146 | return test_array [0]; | |
2069752c | 2147 | |
2148 | ; | |
2149 | return 0; | |
2150 | } | |
2151 | _ACEOF | |
2152 | if ac_fn_c_try_compile "$LINENO"; then : | |
2153 | ac_hi=-1 ac_mid=-1 | |
2154 | while :; do | |
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2156 | /* end confdefs.h. */ | |
2157 | $4 | |
2158 | int | |
2159 | main () | |
2160 | { | |
2161 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
f00f02a3 | 2162 | test_array [0] = 0; |
2163 | return test_array [0]; | |
2069752c | 2164 | |
2165 | ; | |
2166 | return 0; | |
2167 | } | |
2168 | _ACEOF | |
2169 | if ac_fn_c_try_compile "$LINENO"; then : | |
2170 | ac_lo=$ac_mid; break | |
2171 | else | |
2172 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2173 | if test $ac_mid -le $ac_hi; then | |
2174 | ac_lo= ac_hi= | |
2175 | break | |
2176 | fi | |
2177 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
cd9a469c | 2178 | fi |
2179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2180 | done |
ea6b3890 | 2181 | else |
2069752c | 2182 | ac_lo= ac_hi= |
cd9a469c | 2183 | fi |
2069752c | 2184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea6b3890 | 2185 | fi |
2069752c | 2186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2187 | # Binary search between lo and hi bounds. | |
2188 | while test "x$ac_lo" != "x$ac_hi"; do | |
2189 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2191 | /* end confdefs.h. */ |
2069752c | 2192 | $4 |
cd9a469c | 2193 | int |
2194 | main () | |
2195 | { | |
2069752c | 2196 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
f00f02a3 | 2197 | test_array [0] = 0; |
2198 | return test_array [0]; | |
4ee9c684 | 2199 | |
cd9a469c | 2200 | ; |
2201 | return 0; | |
2202 | } | |
2203 | _ACEOF | |
2204 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2205 | ac_hi=$ac_mid |
2206 | else | |
2207 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
cd9a469c | 2208 | fi |
2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2210 | done |
2211 | case $ac_lo in #(( | |
2212 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2213 | '') ac_retval=1 ;; | |
2214 | esac | |
2215 | else | |
2216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2217 | /* end confdefs.h. */ | |
2218 | $4 | |
2219 | static long int longval () { return $2; } | |
2220 | static unsigned long int ulongval () { return $2; } | |
2221 | #include <stdio.h> | |
2222 | #include <stdlib.h> | |
2223 | int | |
2224 | main () | |
2225 | { | |
4ee9c684 | 2226 | |
2069752c | 2227 | FILE *f = fopen ("conftest.val", "w"); |
2228 | if (! f) | |
2229 | return 1; | |
2230 | if (($2) < 0) | |
2231 | { | |
2232 | long int i = longval (); | |
2233 | if (i != ($2)) | |
2234 | return 1; | |
2235 | fprintf (f, "%ld", i); | |
2236 | } | |
2237 | else | |
2238 | { | |
2239 | unsigned long int i = ulongval (); | |
2240 | if (i != ($2)) | |
2241 | return 1; | |
2242 | fprintf (f, "%lu", i); | |
2243 | } | |
2244 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2245 | on some platforms. */ | |
2246 | return ferror (f) || fclose (f) != 0; | |
2247 | ||
2248 | ; | |
2249 | return 0; | |
2250 | } | |
2251 | _ACEOF | |
2252 | if ac_fn_c_try_run "$LINENO"; then : | |
2253 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
cd9a469c | 2254 | else |
2069752c | 2255 | ac_retval=1 |
ea6b3890 | 2256 | fi |
2069752c | 2257 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2258 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2259 | rm -f conftest.val | |
2260 | ||
2261 | fi | |
f00f02a3 | 2262 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2263 | as_fn_set_status $ac_retval | |
4ee9c684 | 2264 | |
2069752c | 2265 | } # ac_fn_c_compute_int |
4ee9c684 | 2266 | |
cd9a469c | 2267 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2268 | # ---------------------------------------------------- | |
2269 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2270 | # INCLUDES, setting cache variable VAR accordingly. | |
2271 | ac_fn_c_check_member () | |
2272 | { | |
2273 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2275 | $as_echo_n "checking for $2.$3... " >&6; } | |
f00f02a3 | 2276 | if eval \${$4+:} false; then : |
cd9a469c | 2277 | $as_echo_n "(cached) " >&6 |
2278 | else | |
2279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2280 | /* end confdefs.h. */ | |
2281 | $5 | |
2282 | int | |
2283 | main () | |
2284 | { | |
2285 | static $2 ac_aggr; | |
2286 | if (ac_aggr.$3) | |
2287 | return 0; | |
2288 | ; | |
2289 | return 0; | |
2290 | } | |
2291 | _ACEOF | |
2292 | if ac_fn_c_try_compile "$LINENO"; then : | |
2293 | eval "$4=yes" | |
2294 | else | |
2295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2296 | /* end confdefs.h. */ | |
2297 | $5 | |
2298 | int | |
2299 | main () | |
2300 | { | |
2301 | static $2 ac_aggr; | |
2302 | if (sizeof ac_aggr.$3) | |
2303 | return 0; | |
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | if ac_fn_c_try_compile "$LINENO"; then : | |
2309 | eval "$4=yes" | |
2310 | else | |
2311 | eval "$4=no" | |
2312 | fi | |
2313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2314 | fi | |
2315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2316 | fi | |
2317 | eval ac_res=\$$4 | |
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2319 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 2320 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 2321 | |
cd9a469c | 2322 | } # ac_fn_c_check_member |
2323 | cat >config.log <<_ACEOF | |
2324 | This file contains any messages produced by compilers while | |
2325 | running configure, to aid debugging if configure makes a mistake. | |
4ee9c684 | 2326 | |
cd9a469c | 2327 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
f00f02a3 | 2328 | generated by GNU Autoconf 2.69. Invocation command line was |
4ee9c684 | 2329 | |
cd9a469c | 2330 | $ $0 $@ |
4ee9c684 | 2331 | |
cd9a469c | 2332 | _ACEOF |
2333 | exec 5>>config.log | |
2334 | { | |
2335 | cat <<_ASUNAME | |
2336 | ## --------- ## | |
2337 | ## Platform. ## | |
2338 | ## --------- ## | |
4ee9c684 | 2339 | |
cd9a469c | 2340 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2341 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2342 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2343 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2344 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4ee9c684 | 2345 | |
cd9a469c | 2346 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2347 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
4ee9c684 | 2348 | |
cd9a469c | 2349 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2350 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2351 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2352 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2353 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2354 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2355 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
4ee9c684 | 2356 | |
cd9a469c | 2357 | _ASUNAME |
5b2c7553 | 2358 | |
cd9a469c | 2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2360 | for as_dir in $PATH | |
2361 | do | |
2362 | IFS=$as_save_IFS | |
2363 | test -z "$as_dir" && as_dir=. | |
2364 | $as_echo "PATH: $as_dir" | |
2365 | done | |
2366 | IFS=$as_save_IFS | |
5b2c7553 | 2367 | |
cd9a469c | 2368 | } >&5 |
5b2c7553 | 2369 | |
cd9a469c | 2370 | cat >&5 <<_ACEOF |
4ee9c684 | 2371 | |
2372 | ||
cd9a469c | 2373 | ## ----------- ## |
2374 | ## Core tests. ## | |
2375 | ## ----------- ## | |
a106dabe | 2376 | |
cd9a469c | 2377 | _ACEOF |
82eaf560 | 2378 | |
90973b19 | 2379 | |
cd9a469c | 2380 | # Keep a trace of the command line. |
2381 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2382 | # Strip out --silent because we don't want to record it for future runs. | |
2383 | # Also quote any args containing shell meta-characters. | |
2384 | # Make two passes to allow for proper duplicate-argument suppression. | |
2385 | ac_configure_args= | |
2386 | ac_configure_args0= | |
2387 | ac_configure_args1= | |
2388 | ac_must_keep_next=false | |
2389 | for ac_pass in 1 2 | |
2390 | do | |
2391 | for ac_arg | |
2392 | do | |
2393 | case $ac_arg in | |
2394 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2395 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2396 | | -silent | --silent | --silen | --sile | --sil) | |
2397 | continue ;; | |
2398 | *\'*) | |
2399 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2400 | esac | |
2401 | case $ac_pass in | |
2402 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2403 | 2) | |
2404 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2405 | if test $ac_must_keep_next = true; then | |
2406 | ac_must_keep_next=false # Got value, back to normal. | |
2407 | else | |
2408 | case $ac_arg in | |
2409 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2410 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2411 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2412 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2413 | case "$ac_configure_args0 " in | |
2414 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2415 | esac | |
2416 | ;; | |
2417 | -* ) ac_must_keep_next=true ;; | |
2418 | esac | |
2419 | fi | |
2420 | as_fn_append ac_configure_args " '$ac_arg'" | |
2421 | ;; | |
2422 | esac | |
2423 | done | |
4ee9c684 | 2424 | done |
cd9a469c | 2425 | { ac_configure_args0=; unset ac_configure_args0;} |
2426 | { ac_configure_args1=; unset ac_configure_args1;} | |
90973b19 | 2427 | |
cd9a469c | 2428 | # When interrupted or exit'd, cleanup temporary files, and complete |
2429 | # config.log. We remove comments because anyway the quotes in there | |
2430 | # would cause problems or look ugly. | |
2431 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2432 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2433 | trap 'exit_status=$? | |
2434 | # Save into config.log some information that might help in debugging. | |
2435 | { | |
2436 | echo | |
90973b19 | 2437 | |
f00f02a3 | 2438 | $as_echo "## ---------------- ## |
cd9a469c | 2439 | ## Cache variables. ## |
f00f02a3 | 2440 | ## ---------------- ##" |
cd9a469c | 2441 | echo |
2442 | # The following way of writing the cache mishandles newlines in values, | |
2443 | ( | |
2444 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2445 | eval ac_val=\$$ac_var | |
2446 | case $ac_val in #( | |
2447 | *${as_nl}*) | |
2448 | case $ac_var in #( | |
2449 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2450 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2451 | esac | |
2452 | case $ac_var in #( | |
2453 | _ | IFS | as_nl) ;; #( | |
2454 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2455 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2456 | esac ;; | |
2457 | esac | |
2458 | done | |
2459 | (set) 2>&1 | | |
2460 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2461 | *${as_nl}ac_space=\ *) | |
2462 | sed -n \ | |
2463 | "s/'\''/'\''\\\\'\'''\''/g; | |
2464 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2465 | ;; #( | |
2466 | *) | |
2467 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2468 | ;; | |
2469 | esac | | |
2470 | sort | |
2471 | ) | |
2472 | echo | |
2473 | ||
f00f02a3 | 2474 | $as_echo "## ----------------- ## |
cd9a469c | 2475 | ## Output variables. ## |
f00f02a3 | 2476 | ## ----------------- ##" |
cd9a469c | 2477 | echo |
2478 | for ac_var in $ac_subst_vars | |
2479 | do | |
2480 | eval ac_val=\$$ac_var | |
2481 | case $ac_val in | |
2482 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2483 | esac | |
2484 | $as_echo "$ac_var='\''$ac_val'\''" | |
2485 | done | sort | |
2486 | echo | |
2487 | ||
2488 | if test -n "$ac_subst_files"; then | |
f00f02a3 | 2489 | $as_echo "## ------------------- ## |
cd9a469c | 2490 | ## File substitutions. ## |
f00f02a3 | 2491 | ## ------------------- ##" |
cd9a469c | 2492 | echo |
2493 | for ac_var in $ac_subst_files | |
2494 | do | |
2495 | eval ac_val=\$$ac_var | |
2496 | case $ac_val in | |
2497 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2498 | esac | |
2499 | $as_echo "$ac_var='\''$ac_val'\''" | |
2500 | done | sort | |
2501 | echo | |
2502 | fi | |
2503 | ||
2504 | if test -s confdefs.h; then | |
f00f02a3 | 2505 | $as_echo "## ----------- ## |
cd9a469c | 2506 | ## confdefs.h. ## |
f00f02a3 | 2507 | ## ----------- ##" |
cd9a469c | 2508 | echo |
2509 | cat confdefs.h | |
2510 | echo | |
2511 | fi | |
2512 | test "$ac_signal" != 0 && | |
2513 | $as_echo "$as_me: caught signal $ac_signal" | |
2514 | $as_echo "$as_me: exit $exit_status" | |
2515 | } >&5 | |
2516 | rm -f core *.core core.conftest.* && | |
2517 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2518 | exit $exit_status | |
2519 | ' 0 | |
2520 | for ac_signal in 1 2 13 15; do | |
2521 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2522 | done | |
2523 | ac_signal=0 | |
2524 | ||
2525 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2526 | rm -f -r conftest* confdefs.h | |
2527 | ||
2528 | $as_echo "/* confdefs.h */" > confdefs.h | |
2529 | ||
2530 | # Predefined preprocessor variables. | |
2531 | ||
2532 | cat >>confdefs.h <<_ACEOF | |
2533 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2534 | _ACEOF | |
2535 | ||
2536 | cat >>confdefs.h <<_ACEOF | |
2537 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2538 | _ACEOF | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2546 | _ACEOF | |
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2550 | _ACEOF | |
2551 | ||
2552 | cat >>confdefs.h <<_ACEOF | |
2553 | #define PACKAGE_URL "$PACKAGE_URL" | |
2554 | _ACEOF | |
2555 | ||
2556 | ||
2557 | # Let the site file select an alternate cache file if it wants to. | |
2558 | # Prefer an explicitly selected file to automatically selected ones. | |
2559 | ac_site_file1=NONE | |
2560 | ac_site_file2=NONE | |
2561 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2562 | # We do not want a PATH search for config.site. |
2563 | case $CONFIG_SITE in #(( | |
2564 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2565 | */*) ac_site_file1=$CONFIG_SITE;; | |
2566 | *) ac_site_file1=./$CONFIG_SITE;; | |
2567 | esac | |
cd9a469c | 2568 | elif test "x$prefix" != xNONE; then |
2569 | ac_site_file1=$prefix/share/config.site | |
2570 | ac_site_file2=$prefix/etc/config.site | |
2571 | else | |
2572 | ac_site_file1=$ac_default_prefix/share/config.site | |
2573 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2574 | fi | |
2575 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2576 | do | |
2577 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2578 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cd9a469c | 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2580 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2581 | sed 's/^/| /' "$ac_site_file" >&5 | |
f00f02a3 | 2582 | . "$ac_site_file" \ |
2583 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2585 | as_fn_error $? "failed to load site script $ac_site_file | |
2586 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 2587 | fi |
2588 | done | |
2589 | ||
2590 | if test -r "$cache_file"; then | |
f00f02a3 | 2591 | # Some versions of bash will fail to source /dev/null (special files |
2592 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2593 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
cd9a469c | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2595 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2596 | case $cache_file in | |
2597 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2598 | *) . "./$cache_file";; | |
2599 | esac | |
2600 | fi | |
2601 | else | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2603 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2604 | >$cache_file | |
2605 | fi | |
2606 | ||
a1aa1d30 | 2607 | as_fn_append ac_header_list " unistd.h" |
1c383045 | 2608 | as_fn_append ac_header_list " sys/random.h" |
a1aa1d30 | 2609 | as_fn_append ac_header_list " sys/time.h" |
2610 | as_fn_append ac_header_list " sys/times.h" | |
2611 | as_fn_append ac_header_list " sys/resource.h" | |
2612 | as_fn_append ac_header_list " sys/types.h" | |
2613 | as_fn_append ac_header_list " sys/stat.h" | |
9680a5f4 | 2614 | as_fn_append ac_header_list " sys/uio.h" |
a1aa1d30 | 2615 | as_fn_append ac_header_list " sys/wait.h" |
2616 | as_fn_append ac_header_list " floatingpoint.h" | |
2617 | as_fn_append ac_header_list " ieeefp.h" | |
2618 | as_fn_append ac_header_list " fenv.h" | |
2619 | as_fn_append ac_header_list " fptrap.h" | |
553e7cef | 2620 | as_fn_append ac_header_list " fpxcp.h" |
a1aa1d30 | 2621 | as_fn_append ac_header_list " pwd.h" |
2622 | as_fn_append ac_header_list " complex.h" | |
b8a8c7bc | 2623 | as_fn_append ac_header_list " xlocale.h" |
a1aa1d30 | 2624 | as_fn_append ac_func_list " getrusage" |
2625 | as_fn_append ac_func_list " times" | |
2626 | as_fn_append ac_func_list " mkstemp" | |
2627 | as_fn_append ac_func_list " strtof" | |
2628 | as_fn_append ac_func_list " strtold" | |
2629 | as_fn_append ac_func_list " snprintf" | |
2630 | as_fn_append ac_func_list " ftruncate" | |
2631 | as_fn_append ac_func_list " chsize" | |
2632 | as_fn_append ac_func_list " chdir" | |
75535607 | 2633 | as_fn_append ac_func_list " getentropy" |
a1aa1d30 | 2634 | as_fn_append ac_func_list " getlogin" |
2635 | as_fn_append ac_func_list " gethostname" | |
2636 | as_fn_append ac_func_list " kill" | |
2637 | as_fn_append ac_func_list " link" | |
2638 | as_fn_append ac_func_list " symlink" | |
2639 | as_fn_append ac_func_list " sleep" | |
2640 | as_fn_append ac_func_list " ttyname" | |
69024fb7 | 2641 | as_fn_append ac_func_list " sigaction" |
2642 | as_fn_append ac_func_list " waitpid" | |
a1aa1d30 | 2643 | as_fn_append ac_func_list " alarm" |
2644 | as_fn_append ac_func_list " access" | |
2645 | as_fn_append ac_func_list " fork" | |
e38e222d | 2646 | as_fn_append ac_func_list " posix_spawn" |
a1aa1d30 | 2647 | as_fn_append ac_func_list " setmode" |
7520a494 | 2648 | as_fn_append ac_func_list " fcntl" |
9680a5f4 | 2649 | as_fn_append ac_func_list " writev" |
a1aa1d30 | 2650 | as_fn_append ac_func_list " gettimeofday" |
2651 | as_fn_append ac_func_list " stat" | |
2652 | as_fn_append ac_func_list " fstat" | |
2653 | as_fn_append ac_func_list " lstat" | |
2654 | as_fn_append ac_func_list " getpwuid" | |
2655 | as_fn_append ac_func_list " vsnprintf" | |
2656 | as_fn_append ac_func_list " dup" | |
2657 | as_fn_append ac_func_list " getcwd" | |
2658 | as_fn_append ac_func_list " localtime_r" | |
2659 | as_fn_append ac_func_list " gmtime_r" | |
a1aa1d30 | 2660 | as_fn_append ac_func_list " getpwuid_r" |
2661 | as_fn_append ac_func_list " ttyname_r" | |
2662 | as_fn_append ac_func_list " clock_gettime" | |
a1aa1d30 | 2663 | as_fn_append ac_func_list " getgid" |
2664 | as_fn_append ac_func_list " getpid" | |
a1aa1d30 | 2665 | as_fn_append ac_func_list " getuid" |
2666 | as_fn_append ac_func_list " geteuid" | |
ffb6d1fd | 2667 | as_fn_append ac_func_list " umask" |
a291e3b6 | 2668 | as_fn_append ac_func_list " getegid" |
5935a97b | 2669 | as_fn_append ac_func_list " secure_getenv" |
a291e3b6 | 2670 | as_fn_append ac_func_list " __secure_getenv" |
544db64f | 2671 | as_fn_append ac_func_list " mkostemp" |
fc3d374a | 2672 | as_fn_append ac_func_list " strnlen" |
2673 | as_fn_append ac_func_list " strndup" | |
b8a8c7bc | 2674 | as_fn_append ac_func_list " newlocale" |
2675 | as_fn_append ac_func_list " freelocale" | |
2676 | as_fn_append ac_func_list " uselocale" | |
2677 | as_fn_append ac_func_list " strerror_l" | |
7d9455ce | 2678 | as_fn_append ac_header_list " math.h" |
cd9a469c | 2679 | # Check that the precious variables saved in the cache have kept the same |
2680 | # value. | |
2681 | ac_cache_corrupted=false | |
2682 | for ac_var in $ac_precious_vars; do | |
2683 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2684 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2685 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2686 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2687 | case $ac_old_set,$ac_new_set in | |
2688 | set,) | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2690 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2691 | ac_cache_corrupted=: ;; | |
2692 | ,set) | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2694 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2695 | ac_cache_corrupted=: ;; | |
2696 | ,);; | |
2697 | *) | |
2698 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2699 | # differences in whitespace do not lead to failure. | |
2700 | ac_old_val_w=`echo x $ac_old_val` | |
2701 | ac_new_val_w=`echo x $ac_new_val` | |
2702 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2704 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2705 | ac_cache_corrupted=: | |
2706 | else | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2708 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2709 | eval $ac_var=\$ac_old_val | |
2710 | fi | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2712 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2714 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2715 | fi;; | |
2716 | esac | |
2717 | # Pass precious variables to config.status. | |
2718 | if test "$ac_new_set" = set; then | |
2719 | case $ac_new_val in | |
2720 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2721 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2722 | esac | |
2723 | case " $ac_configure_args " in | |
2724 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2725 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2726 | esac | |
2727 | fi | |
2728 | done | |
2729 | if $ac_cache_corrupted; then | |
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2733 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2734 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
cd9a469c | 2735 | fi |
2736 | ## -------------------- ## | |
2737 | ## Main body of script. ## | |
2738 | ## -------------------- ## | |
2739 | ||
2740 | ac_ext=c | |
2741 | ac_cpp='$CPP $CPPFLAGS' | |
2742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | ||
2750 | ac_config_headers="$ac_config_headers config.h" | |
2751 | ||
2752 | ac_aux_dir= | |
2753 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
f00f02a3 | 2754 | if test -f "$ac_dir/install-sh"; then |
2755 | ac_aux_dir=$ac_dir | |
2756 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2757 | break | |
2758 | elif test -f "$ac_dir/install.sh"; then | |
2759 | ac_aux_dir=$ac_dir | |
2760 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2761 | break | |
2762 | elif test -f "$ac_dir/shtool"; then | |
2763 | ac_aux_dir=$ac_dir | |
2764 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2765 | break | |
2766 | fi | |
cd9a469c | 2767 | done |
2768 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2769 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
cd9a469c | 2770 | fi |
2771 | ||
2772 | # These three variables are undocumented and unsupported, | |
2773 | # and are intended to be withdrawn in a future Autoconf release. | |
2774 | # They can cause serious problems if a builder's source tree is in a directory | |
2775 | # whose full name contains unusual characters. | |
2776 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2777 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2778 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2779 | ||
2780 | ||
2781 | # Make sure we can run config.sub. | |
2782 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
f00f02a3 | 2783 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cd9a469c | 2784 | |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2786 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2787 | if ${ac_cv_build+:} false; then : |
cd9a469c | 2788 | $as_echo_n "(cached) " >&6 |
2789 | else | |
2790 | ac_build_alias=$build_alias | |
2791 | test "x$ac_build_alias" = x && | |
2792 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2793 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2794 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
cd9a469c | 2795 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2796 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
cd9a469c | 2797 | |
2798 | fi | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2800 | $as_echo "$ac_cv_build" >&6; } | |
2801 | case $ac_cv_build in | |
2802 | *-*-*) ;; | |
f00f02a3 | 2803 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
cd9a469c | 2804 | esac |
2805 | build=$ac_cv_build | |
2806 | ac_save_IFS=$IFS; IFS='-' | |
2807 | set x $ac_cv_build | |
2808 | shift | |
2809 | build_cpu=$1 | |
2810 | build_vendor=$2 | |
2811 | shift; shift | |
2812 | # Remember, the first character of IFS is used to create $*, | |
2813 | # except with old shells: | |
2814 | build_os=$* | |
2815 | IFS=$ac_save_IFS | |
2816 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2817 | ||
2818 | ||
2819 | case ${build_alias} in | |
2820 | "") build_noncanonical=${build} ;; | |
2821 | *) build_noncanonical=${build_alias} ;; | |
2822 | esac | |
4c82c0dd | 2823 | |
2824 | case ${host_alias} in | |
2825 | "") host_noncanonical=${build_noncanonical} ;; | |
2826 | *) host_noncanonical=${host_alias} ;; | |
2827 | esac | |
2828 | ||
2829 | case ${target_alias} in | |
2830 | "") target_noncanonical=${host_noncanonical} ;; | |
2831 | *) target_noncanonical=${target_alias} ;; | |
2832 | esac | |
2833 | ||
3e427a9c | 2834 | |
2835 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2836 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2837 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2838 | # However, they still use the build modules, because the corresponding | |
2839 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2840 | # finishes. So: | |
2841 | # - build_subdir is where we find build modules, and never changes. | |
2842 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2843 | ||
2844 | # Prefix 'build-' so this never conflicts with target_subdir. | |
4c82c0dd | 2845 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 2846 | |
cd9a469c | 2847 | # Check whether --with-build-libsubdir was given. |
2848 | if test "${with_build_libsubdir+set}" = set; then : | |
2849 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3e427a9c | 2850 | else |
2851 | build_libsubdir="$build_subdir" | |
cd9a469c | 2852 | fi |
2853 | ||
4c82c0dd | 2854 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2855 | if ( test $srcdir = . && test -d gcc ) \ | |
2856 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2857 | host_subdir="host-${host_noncanonical}" | |
2858 | else | |
2859 | host_subdir=. | |
2860 | fi | |
2861 | # No prefix. | |
2862 | target_subdir=${target_noncanonical} | |
2863 | ||
2864 | ||
2865 | # ------- | |
2866 | # Options | |
2867 | # ------- | |
2868 | ||
cd9a469c | 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2870 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2871 | # Check whether --enable-version-specific-runtime-libs was given. | |
2872 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2873 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
4c82c0dd | 2874 | yes) version_specific_libs=yes ;; |
2875 | no) version_specific_libs=no ;; | |
f00f02a3 | 2876 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
4c82c0dd | 2877 | esac |
2878 | else | |
2879 | version_specific_libs=no | |
cd9a469c | 2880 | fi |
2881 | ||
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2883 | $as_echo "$version_specific_libs" >&6; } | |
4c82c0dd | 2884 | |
93773f82 | 2885 | # Build with intermodule optimisations |
cd9a469c | 2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2887 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2888 | # Check whether --enable-intermodule was given. | |
2889 | if test "${enable_intermodule+set}" = set; then : | |
2890 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
93773f82 | 2891 | yes) onestep="-onestep";; |
2892 | *) onestep="";; | |
2893 | esac | |
2894 | else | |
2895 | onestep="" | |
cd9a469c | 2896 | fi |
93773f82 | 2897 | |
cd9a469c | 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2899 | $as_echo "$enable_intermodule" >&6; } | |
2900 | if test x$onestep = x-onestep; then | |
93773f82 | 2901 | onestep_TRUE= |
2902 | onestep_FALSE='#' | |
2903 | else | |
2904 | onestep_TRUE='#' | |
2905 | onestep_FALSE= | |
2906 | fi | |
2907 | ||
2908 | ||
4c82c0dd | 2909 | |
2910 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2911 | # | |
2912 | # You will slowly go insane if you do not grok the following fact: when | |
2913 | # building this library, the top-level /target/ becomes the library's /host/. | |
2914 | # | |
2915 | # configure then causes --target to default to --host, exactly like any | |
2916 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2917 | # always be the same. This makes sense both for native and cross compilers | |
2918 | # just think about it for a little while. :-) | |
2919 | # | |
2920 | # Also, if this library is being configured as part of a cross compiler, the | |
2921 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2922 | # | |
2923 | # Do not delete or change the following two lines. For why, see | |
2924 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
cd9a469c | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2926 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2927 | if ${ac_cv_host+:} false; then : |
cd9a469c | 2928 | $as_echo_n "(cached) " >&6 |
2929 | else | |
2930 | if test "x$host_alias" = x; then | |
2931 | ac_cv_host=$ac_cv_build | |
2932 | else | |
2933 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2934 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
cd9a469c | 2935 | fi |
2936 | ||
2937 | fi | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2939 | $as_echo "$ac_cv_host" >&6; } | |
2940 | case $ac_cv_host in | |
2941 | *-*-*) ;; | |
f00f02a3 | 2942 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
cd9a469c | 2943 | esac |
90973b19 | 2944 | host=$ac_cv_host |
cd9a469c | 2945 | ac_save_IFS=$IFS; IFS='-' |
2946 | set x $ac_cv_host | |
2947 | shift | |
2948 | host_cpu=$1 | |
2949 | host_vendor=$2 | |
2950 | shift; shift | |
2951 | # Remember, the first character of IFS is used to create $*, | |
2952 | # except with old shells: | |
2953 | host_os=$* | |
2954 | IFS=$ac_save_IFS | |
2955 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
82eaf560 | 2956 | |
2957 | ||
cd9a469c | 2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2959 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2960 | if ${ac_cv_target+:} false; then : |
cd9a469c | 2961 | $as_echo_n "(cached) " >&6 |
90973b19 | 2962 | else |
cd9a469c | 2963 | if test "x$target_alias" = x; then |
2964 | ac_cv_target=$ac_cv_host | |
2965 | else | |
2966 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
f00f02a3 | 2967 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
cd9a469c | 2968 | fi |
90973b19 | 2969 | |
2970 | fi | |
cd9a469c | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2972 | $as_echo "$ac_cv_target" >&6; } | |
2973 | case $ac_cv_target in | |
2974 | *-*-*) ;; | |
f00f02a3 | 2975 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
cd9a469c | 2976 | esac |
90973b19 | 2977 | target=$ac_cv_target |
cd9a469c | 2978 | ac_save_IFS=$IFS; IFS='-' |
2979 | set x $ac_cv_target | |
2980 | shift | |
2981 | target_cpu=$1 | |
2982 | target_vendor=$2 | |
2983 | shift; shift | |
2984 | # Remember, the first character of IFS is used to create $*, | |
2985 | # except with old shells: | |
2986 | target_os=$* | |
2987 | IFS=$ac_save_IFS | |
2988 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
90973b19 | 2989 | |
2990 | ||
2991 | # The aliases save the names the user supplied, while $host etc. | |
2992 | # will get canonicalized. | |
2993 | test -n "$target_alias" && | |
2994 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2995 | NONENONEs,x,x, && | |
2996 | program_prefix=${target_alias}- | |
cd9a469c | 2997 | |
7eda0fb7 | 2998 | |
2999 | ||
3000 | ||
90973b19 | 3001 | target_alias=${target_alias-$host_alias} |
3002 | ||
7eda0fb7 | 3003 | |
90973b19 | 3004 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
3005 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2fd61f51 | 3006 | # 1.9.6: minimum required version |
90973b19 | 3007 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
3008 | # of other PACKAGE_* variables will, however, and there's nothing | |
3009 | # we can do about that; they come from AC_INIT). | |
3010 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
3011 | # file in the top srcdir, etc, etc), so stop complaining. | |
5dbeae57 | 3012 | # no-dist: we don't want 'dist' and related rules. |
90973b19 | 3013 | # -Wall: turns on all automake warnings... |
3014 | # -Wno-portability: ...except this one, since GNU make is required. | |
f00f02a3 | 3015 | am__api_version='1.15' |
cd9a469c | 3016 | |
4ee9c684 | 3017 | # Find a good install program. We prefer a C program (faster), |
3018 | # so one script is as good as another. But avoid the broken or | |
3019 | # incompatible versions: | |
3020 | # SysV /etc/install, /usr/sbin/install | |
3021 | # SunOS /usr/etc/install | |
3022 | # IRIX /sbin/install | |
3023 | # AIX /bin/install | |
3024 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3025 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3026 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3027 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3028 | # OS/2's system install, which has a completely different semantic | |
3029 | # ./install, which can be erroneously created by make from ./install.sh. | |
82eaf560 | 3030 | # Reject install programs that cannot install multiple files. |
cd9a469c | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3032 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4ee9c684 | 3033 | if test -z "$INSTALL"; then |
f00f02a3 | 3034 | if ${ac_cv_path_install+:} false; then : |
cd9a469c | 3035 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3036 | else |
3037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3038 | for as_dir in $PATH | |
3039 | do | |
3040 | IFS=$as_save_IFS | |
3041 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3042 | # Account for people who put trailing slashes in PATH elements. |
3043 | case $as_dir/ in #(( | |
3044 | ./ | .// | /[cC]/* | \ | |
4ee9c684 | 3045 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 3046 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4ee9c684 | 3047 | /usr/ucb/* ) ;; |
3048 | *) | |
3049 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3050 | # Don't use installbsd from OSF since it installs stuff as root | |
3051 | # by default. | |
3052 | for ac_prog in ginstall scoinst install; do | |
3053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3054 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
4ee9c684 | 3055 | if test $ac_prog = install && |
3056 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3057 | # AIX install. It has an incompatible calling convention. | |
3058 | : | |
3059 | elif test $ac_prog = install && | |
3060 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3061 | # program-specific install script used by HP pwplus--don't use. | |
3062 | : | |
3063 | else | |
82eaf560 | 3064 | rm -rf conftest.one conftest.two conftest.dir |
3065 | echo one > conftest.one | |
3066 | echo two > conftest.two | |
3067 | mkdir conftest.dir | |
3068 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3069 | test -s conftest.one && test -s conftest.two && | |
3070 | test -s conftest.dir/conftest.one && | |
3071 | test -s conftest.dir/conftest.two | |
3072 | then | |
3073 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3074 | break 3 | |
3075 | fi | |
4ee9c684 | 3076 | fi |
3077 | fi | |
3078 | done | |
3079 | done | |
3080 | ;; | |
3081 | esac | |
cd9a469c | 3082 | |
3083 | done | |
3084 | IFS=$as_save_IFS | |
4ee9c684 | 3085 | |
82eaf560 | 3086 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 3087 | |
3088 | fi | |
3089 | if test "${ac_cv_path_install+set}" = set; then | |
3090 | INSTALL=$ac_cv_path_install | |
3091 | else | |
ff4425cf | 3092 | # As a last resort, use the slow shell script. Don't cache a |
3093 | # value for INSTALL within a source directory, because that will | |
4ee9c684 | 3094 | # break other packages using the cache if that directory is |
ff4425cf | 3095 | # removed, or if the value is a relative name. |
4ee9c684 | 3096 | INSTALL=$ac_install_sh |
3097 | fi | |
3098 | fi | |
cd9a469c | 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3100 | $as_echo "$INSTALL" >&6; } | |
4ee9c684 | 3101 | |
3102 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3103 | # It thinks the first close brace ends the variable substitution. | |
3104 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3105 | ||
3106 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3107 | ||
3108 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3109 | ||
cd9a469c | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3111 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
cd9a469c | 3112 | # Reject unsafe characters in $srcdir or the absolute working directory |
3113 | # name. Accept space and tab only in the latter. | |
3114 | am_lf=' | |
3115 | ' | |
3116 | case `pwd` in | |
3117 | *[\\\"\#\$\&\'\`$am_lf]*) | |
f00f02a3 | 3118 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
cd9a469c | 3119 | esac |
3120 | case $srcdir in | |
3121 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
f00f02a3 | 3122 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
cd9a469c | 3123 | esac |
3124 | ||
f00f02a3 | 3125 | # Do 'set' in a subshell so we don't clobber the current shell's |
4ee9c684 | 3126 | # arguments. Must try -L first in case configure is actually a |
3127 | # symlink; some systems play weird games with the mod time of symlinks | |
3128 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3129 | # directory). | |
3130 | if ( | |
f00f02a3 | 3131 | am_has_slept=no |
3132 | for am_try in 1 2; do | |
3133 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3134 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3135 | if test "$*" = "X"; then | |
3136 | # -L didn't work. | |
3137 | set X `ls -t "$srcdir/configure" conftest.file` | |
3138 | fi | |
3139 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3140 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3141 | ||
3142 | # If neither matched, then we have a broken ls. This can happen | |
3143 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3144 | # broken ls alias from the environment. This has actually | |
3145 | # happened. Such a system could not be considered "sane". | |
3146 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3147 | alias in your environment" "$LINENO" 5 | |
3148 | fi | |
3149 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3150 | break | |
3151 | fi | |
3152 | # Just in case. | |
3153 | sleep 1 | |
3154 | am_has_slept=yes | |
3155 | done | |
4ee9c684 | 3156 | test "$2" = conftest.file |
3157 | ) | |
3158 | then | |
3159 | # Ok. | |
3160 | : | |
3161 | else | |
f00f02a3 | 3162 | as_fn_error $? "newly created file is older than distributed files! |
cd9a469c | 3163 | Check your system clock" "$LINENO" 5 |
4ee9c684 | 3164 | fi |
cd9a469c | 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3166 | $as_echo "yes" >&6; } | |
f00f02a3 | 3167 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3168 | # generated files are strictly newer. | |
3169 | am_sleep_pid= | |
3170 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3171 | ( sleep 1 ) & | |
3172 | am_sleep_pid=$! | |
3173 | fi | |
3174 | ||
3175 | rm -f conftest.file | |
3176 | ||
4ee9c684 | 3177 | test "$program_prefix" != NONE && |
cd9a469c | 3178 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
4ee9c684 | 3179 | # Use a double $ so make ignores it. |
3180 | test "$program_suffix" != NONE && | |
cd9a469c | 3181 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3182 | # Double any \ or $. | |
4ee9c684 | 3183 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 3184 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3185 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4ee9c684 | 3186 | |
f00f02a3 | 3187 | # Expand $ac_aux_dir to an absolute path. |
3188 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
4ee9c684 | 3189 | |
cd9a469c | 3190 | if test x"${MISSING+set}" != xset; then |
3191 | case $am_aux_dir in | |
3192 | *\ * | *\ *) | |
3193 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3194 | *) | |
3195 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3196 | esac | |
3197 | fi | |
4ee9c684 | 3198 | # Use eval to expand $SHELL |
f00f02a3 | 3199 | if eval "$MISSING --is-lightweight"; then |
3200 | am_missing_run="$MISSING " | |
4ee9c684 | 3201 | else |
3202 | am_missing_run= | |
f00f02a3 | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3204 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4ee9c684 | 3205 | fi |
3206 | ||
f00f02a3 | 3207 | if test x"${install_sh+set}" != xset; then |
cd9a469c | 3208 | case $am_aux_dir in |
3209 | *\ * | *\ *) | |
3210 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3211 | *) | |
3212 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3213 | esac | |
3214 | fi | |
3215 | ||
f00f02a3 | 3216 | # Installed binaries are usually stripped using 'strip' when the user |
3217 | # run "make install-strip". However 'strip' might not be the right | |
cd9a469c | 3218 | # tool to use in cross-compilation environments, therefore Automake |
f00f02a3 | 3219 | # will honor the 'STRIP' environment variable to overrule this program. |
cd9a469c | 3220 | if test "$cross_compiling" != no; then |
3221 | if test -n "$ac_tool_prefix"; then | |
3222 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3223 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3225 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3226 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 3227 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3228 | else |
cd9a469c | 3229 | if test -n "$STRIP"; then |
3230 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4ee9c684 | 3231 | else |
3232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3233 | for as_dir in $PATH | |
3234 | do | |
3235 | IFS=$as_save_IFS | |
3236 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3237 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3239 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4ee9c684 | 3241 | break 2 |
3242 | fi | |
3243 | done | |
cd9a469c | 3244 | done |
3245 | IFS=$as_save_IFS | |
4ee9c684 | 3246 | |
3247 | fi | |
3248 | fi | |
cd9a469c | 3249 | STRIP=$ac_cv_prog_STRIP |
3250 | if test -n "$STRIP"; then | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3252 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 3253 | else |
cd9a469c | 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3255 | $as_echo "no" >&6; } | |
4ee9c684 | 3256 | fi |
3257 | ||
4ee9c684 | 3258 | |
cd9a469c | 3259 | fi |
3260 | if test -z "$ac_cv_prog_STRIP"; then | |
3261 | ac_ct_STRIP=$STRIP | |
3262 | # Extract the first word of "strip", so it can be a program name with args. | |
3263 | set dummy strip; ac_word=$2 | |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3265 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3266 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 3267 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3268 | else |
cd9a469c | 3269 | if test -n "$ac_ct_STRIP"; then |
3270 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
82eaf560 | 3271 | else |
cd9a469c | 3272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3273 | for as_dir in $PATH | |
3274 | do | |
3275 | IFS=$as_save_IFS | |
3276 | test -z "$as_dir" && as_dir=. | |
3277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3279 | ac_cv_prog_ac_ct_STRIP="strip" |
3280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3281 | break 2 | |
3282 | fi | |
3283 | done | |
3284 | done | |
3285 | IFS=$as_save_IFS | |
3286 | ||
82eaf560 | 3287 | fi |
4ee9c684 | 3288 | fi |
cd9a469c | 3289 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3290 | if test -n "$ac_ct_STRIP"; then | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3292 | $as_echo "$ac_ct_STRIP" >&6; } | |
3293 | else | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3295 | $as_echo "no" >&6; } | |
3296 | fi | |
3297 | ||
3298 | if test "x$ac_ct_STRIP" = x; then | |
3299 | STRIP=":" | |
3300 | else | |
3301 | case $cross_compiling:$ac_tool_warned in | |
3302 | yes:) | |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3305 | ac_tool_warned=yes ;; | |
3306 | esac | |
3307 | STRIP=$ac_ct_STRIP | |
3308 | fi | |
3309 | else | |
3310 | STRIP="$ac_cv_prog_STRIP" | |
3311 | fi | |
3312 | ||
3313 | fi | |
3314 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3315 | ||
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3317 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3318 | if test -z "$MKDIR_P"; then | |
f00f02a3 | 3319 | if ${ac_cv_path_mkdir+:} false; then : |
cd9a469c | 3320 | $as_echo_n "(cached) " >&6 |
3321 | else | |
3322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3323 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3324 | do | |
3325 | IFS=$as_save_IFS | |
3326 | test -z "$as_dir" && as_dir=. | |
3327 | for ac_prog in mkdir gmkdir; do | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3329 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
cd9a469c | 3330 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3331 | 'mkdir (GNU coreutils) '* | \ | |
3332 | 'mkdir (coreutils) '* | \ | |
3333 | 'mkdir (fileutils) '4.1*) | |
3334 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3335 | break 3;; | |
3336 | esac | |
3337 | done | |
3338 | done | |
3339 | done | |
3340 | IFS=$as_save_IFS | |
3341 | ||
3342 | fi | |
3343 | ||
f00f02a3 | 3344 | test -d ./--version && rmdir ./--version |
cd9a469c | 3345 | if test "${ac_cv_path_mkdir+set}" = set; then |
3346 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3347 | else | |
3348 | # As a last resort, use the slow shell script. Don't cache a | |
3349 | # value for MKDIR_P within a source directory, because that will | |
3350 | # break other packages using the cache if that directory is | |
3351 | # removed, or if the value is a relative name. | |
cd9a469c | 3352 | MKDIR_P="$ac_install_sh -d" |
3353 | fi | |
3354 | fi | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3356 | $as_echo "$MKDIR_P" >&6; } | |
3357 | ||
cd9a469c | 3358 | for ac_prog in gawk mawk nawk awk |
3359 | do | |
3360 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3361 | set dummy $ac_prog; ac_word=$2 | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3363 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3364 | if ${ac_cv_prog_AWK+:} false; then : |
cd9a469c | 3365 | $as_echo_n "(cached) " >&6 |
3366 | else | |
3367 | if test -n "$AWK"; then | |
3368 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3369 | else | |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3371 | for as_dir in $PATH | |
3372 | do | |
3373 | IFS=$as_save_IFS | |
3374 | test -z "$as_dir" && as_dir=. | |
3375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3377 | ac_cv_prog_AWK="$ac_prog" |
3378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3379 | break 2 | |
3380 | fi | |
3381 | done | |
3382 | done | |
3383 | IFS=$as_save_IFS | |
3384 | ||
3385 | fi | |
3386 | fi | |
3387 | AWK=$ac_cv_prog_AWK | |
3388 | if test -n "$AWK"; then | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3390 | $as_echo "$AWK" >&6; } | |
3391 | else | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3393 | $as_echo "no" >&6; } | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | test -n "$AWK" && break | |
3398 | done | |
3399 | ||
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3401 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3402 | set x ${MAKE-make} | |
3403 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 3404 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
cd9a469c | 3405 | $as_echo_n "(cached) " >&6 |
3406 | else | |
3407 | cat >conftest.make <<\_ACEOF | |
3408 | SHELL = /bin/sh | |
3409 | all: | |
3410 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3411 | _ACEOF | |
f00f02a3 | 3412 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
cd9a469c | 3413 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3414 | *@@@%%%=?*=@@@%%%*) | |
3415 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3416 | *) | |
3417 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3418 | esac | |
3419 | rm -f conftest.make | |
3420 | fi | |
3421 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3423 | $as_echo "yes" >&6; } | |
4ee9c684 | 3424 | SET_MAKE= |
3425 | else | |
cd9a469c | 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3427 | $as_echo "no" >&6; } | |
4ee9c684 | 3428 | SET_MAKE="MAKE=${MAKE-make}" |
3429 | fi | |
3430 | ||
3431 | rm -rf .tst 2>/dev/null | |
3432 | mkdir .tst 2>/dev/null | |
3433 | if test -d .tst; then | |
3434 | am__leading_dot=. | |
3435 | else | |
3436 | am__leading_dot=_ | |
3437 | fi | |
3438 | rmdir .tst 2>/dev/null | |
3439 | ||
f00f02a3 | 3440 | # Check whether --enable-silent-rules was given. |
3441 | if test "${enable_silent_rules+set}" = set; then : | |
3442 | enableval=$enable_silent_rules; | |
3443 | fi | |
3444 | ||
3445 | case $enable_silent_rules in # ((( | |
3446 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3447 | no) AM_DEFAULT_VERBOSITY=1;; | |
3448 | *) AM_DEFAULT_VERBOSITY=1;; | |
3449 | esac | |
3450 | am_make=${MAKE-make} | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3452 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3453 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3454 | $as_echo_n "(cached) " >&6 | |
3455 | else | |
3456 | if $as_echo 'TRUE=$(BAR$(V)) | |
3457 | BAR0=false | |
3458 | BAR1=true | |
3459 | V=1 | |
3460 | am__doit: | |
3461 | @$(TRUE) | |
3462 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3463 | am_cv_make_support_nested_variables=yes | |
3464 | else | |
3465 | am_cv_make_support_nested_variables=no | |
3466 | fi | |
3467 | fi | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3469 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3470 | if test $am_cv_make_support_nested_variables = yes; then | |
3471 | AM_V='$(V)' | |
3472 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3473 | else | |
3474 | AM_V=$AM_DEFAULT_VERBOSITY | |
3475 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3476 | fi | |
3477 | AM_BACKSLASH='\' | |
3478 | ||
cd9a469c | 3479 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3480 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3481 | # is not polluted with repeated "-I." | |
3482 | am__isrc=' -I$(srcdir)' | |
3483 | # test to see if srcdir already configured | |
3484 | if test -f $srcdir/config.status; then | |
f00f02a3 | 3485 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
cd9a469c | 3486 | fi |
4ee9c684 | 3487 | fi |
3488 | ||
3489 | # test whether we have cygpath | |
3490 | if test -z "$CYGPATH_W"; then | |
3491 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3492 | CYGPATH_W='cygpath -w' | |
3493 | else | |
3494 | CYGPATH_W=echo | |
3495 | fi | |
3496 | fi | |
3497 | ||
3498 | ||
3499 | # Define the identity of the package. | |
3500 | PACKAGE='libgfortran' | |
76c0a846 | 3501 | VERSION='0.3' |
4ee9c684 | 3502 | |
3503 | ||
4ee9c684 | 3504 | # Some tools Automake needs. |
3505 | ||
3506 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3507 | ||
3508 | ||
3509 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3510 | ||
3511 | ||
3512 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3513 | ||
3514 | ||
3515 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3516 | ||
3517 | ||
3518 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3519 | ||
f00f02a3 | 3520 | # For better backward compatibility. To be removed once Automake 1.9.x |
3521 | # dies out for good. For more background, see: | |
3522 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3523 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3524 | mkdir_p='$(MKDIR_P)' | |
3525 | ||
3526 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3527 | # system "awk" is bad on some platforms. | |
544db64f | 3528 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3529 | # in the wild :-( We should find a proper way to deprecate it ... | |
3530 | AMTAR='$${TAR-tar}' | |
6745c9de | 3531 | |
f00f02a3 | 3532 | |
3533 | # We'll loop over all known methods to create a tar archive until one works. | |
3534 | _am_tools='gnutar pax cpio none' | |
3535 | ||
544db64f | 3536 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
6745c9de | 3537 | |
3538 | ||
4ee9c684 | 3539 | |
3540 | ||
3541 | ||
4ee9c684 | 3542 | |
f00f02a3 | 3543 | # POSIX will say in a future version that running "rm -f" with no argument |
3544 | # is OK; and we want to be able to make that assumption in our Makefile | |
3545 | # recipes. So use an aggressive probe to check that the usage we want is | |
3546 | # actually supported "in the wild" to an acceptable degree. | |
3547 | # See automake bug#10828. | |
3548 | # To make any issue more visible, cause the running configure to be aborted | |
3549 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3550 | # user can still override this though. | |
3551 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3552 | cat >&2 <<'END' | |
3553 | Oops! | |
3554 | ||
3555 | Your 'rm' program seems unable to run without file operands specified | |
3556 | on the command line, even when the '-f' option is present. This is contrary | |
3557 | to the behaviour of most rm programs out there, and not conforming with | |
3558 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3559 | ||
3560 | Please tell bug-automake@gnu.org about your system, including the value | |
3561 | of your $PATH and any error possibly output before this message. This | |
3562 | can help us improve future automake versions. | |
3563 | ||
3564 | END | |
3565 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3566 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3567 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3568 | echo >&2 | |
3569 | else | |
3570 | cat >&2 <<'END' | |
3571 | Aborting the configuration process, to ensure you take notice of the issue. | |
3572 | ||
3573 | You can download and install GNU coreutils to get an 'rm' implementation | |
3574 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3575 | ||
3576 | If you want to complete the configuration process using your problematic | |
3577 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3578 | to "yes", and re-run configure. | |
3579 | ||
3580 | END | |
3581 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3582 | fi | |
3583 | fi | |
3584 | ||
3585 | ||
cd9a469c | 3586 | |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3588 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3589 | # Check whether --enable-maintainer-mode was given. | |
3590 | if test "${enable_maintainer_mode+set}" = set; then : | |
3591 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 3592 | else |
3593 | USE_MAINTAINER_MODE=no | |
cd9a469c | 3594 | fi |
4ee9c684 | 3595 | |
cd9a469c | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3597 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3598 | if test $USE_MAINTAINER_MODE = yes; then | |
4ee9c684 | 3599 | MAINTAINER_MODE_TRUE= |
3600 | MAINTAINER_MODE_FALSE='#' | |
3601 | else | |
3602 | MAINTAINER_MODE_TRUE='#' | |
3603 | MAINTAINER_MODE_FALSE= | |
3604 | fi | |
3605 | ||
3606 | MAINT=$MAINTAINER_MODE_TRUE | |
3607 | ||
3608 | ||
90973b19 | 3609 | # Default to --enable-multilib |
cd9a469c | 3610 | # Check whether --enable-multilib was given. |
3611 | if test "${enable_multilib+set}" = set; then : | |
3612 | enableval=$enable_multilib; case "$enableval" in | |
90973b19 | 3613 | yes) multilib=yes ;; |
3614 | no) multilib=no ;; | |
f00f02a3 | 3615 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
90973b19 | 3616 | esac |
3617 | else | |
3618 | multilib=yes | |
cd9a469c | 3619 | fi |
3620 | ||
90973b19 | 3621 | |
3622 | # We may get other options which we leave undocumented: | |
3623 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3624 | # See config-ml.in if you want the gory details. | |
3625 | ||
3626 | if test "$srcdir" = "."; then | |
3627 | if test "$with_target_subdir" != "."; then | |
3628 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3629 | else | |
3630 | multi_basedir="$srcdir/$with_multisrctop.." | |
3631 | fi | |
3632 | else | |
3633 | multi_basedir="$srcdir/.." | |
3634 | fi | |
3635 | ||
3636 | ||
04c8b51e | 3637 | # Even if the default multilib is not a cross compilation, |
3638 | # it may be that some of the other multilibs are. | |
3639 | if test $cross_compiling = no && test $multilib = yes \ | |
3640 | && test "x${with_multisubdir}" != x ; then | |
3641 | cross_compiling=maybe | |
3642 | fi | |
3643 | ||
cd9a469c | 3644 | ac_config_commands="$ac_config_commands default-1" |
90973b19 | 3645 | |
3646 | ||
3647 | # Handy for debugging: | |
3648 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3649 | ||
3650 | # Are we being configured with some form of cross compiler? | |
3651 | # NB: We don't actually need to know this just now, but when, say, a test | |
3652 | # suite is included, we'll have to know. | |
3653 | if test "$build" != "$host"; then | |
3654 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 3655 | |
90973b19 | 3656 | else |
3657 | LIBGFOR_IS_NATIVE=true | |
3658 | fi | |
3659 | ||
d5d92632 | 3660 | DEPDIR="${am__leading_dot}deps" |
90973b19 | 3661 | |
d5d92632 | 3662 | ac_config_commands="$ac_config_commands depfiles" |
90973b19 | 3663 | |
4ee9c684 | 3664 | |
d5d92632 | 3665 | am_make=${MAKE-make} |
3666 | cat > confinc << 'END' | |
3667 | am__doit: | |
3668 | @echo this is the am__doit target | |
3669 | .PHONY: am__doit | |
3670 | END | |
3671 | # If we don't find an include directive, just comment out the code. | |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3673 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3674 | am__include="#" | |
3675 | am__quote= | |
3676 | _am_result=none | |
3677 | # First try GNU make style include. | |
3678 | echo "include confinc" > confmf | |
f00f02a3 | 3679 | # Ignore all kinds of additional output from 'make'. |
d5d92632 | 3680 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3681 | *the\ am__doit\ target*) | |
3682 | am__include=include | |
3683 | am__quote= | |
3684 | _am_result=GNU | |
3685 | ;; | |
3686 | esac | |
3687 | # Now try BSD make style include. | |
3688 | if test "$am__include" = "#"; then | |
3689 | echo '.include "confinc"' > confmf | |
3690 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3691 | *the\ am__doit\ target*) | |
3692 | am__include=.include | |
3693 | am__quote="\"" | |
3694 | _am_result=BSD | |
3695 | ;; | |
3696 | esac | |
3697 | fi | |
87969c8c | 3698 | |
4ee9c684 | 3699 | |
d5d92632 | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3701 | $as_echo "$_am_result" >&6; } | |
3702 | rm -f confinc confmf | |
3703 | ||
3704 | # Check whether --enable-dependency-tracking was given. | |
3705 | if test "${enable_dependency_tracking+set}" = set; then : | |
3706 | enableval=$enable_dependency_tracking; | |
3707 | fi | |
3708 | ||
3709 | if test "x$enable_dependency_tracking" != xno; then | |
3710 | am_depcomp="$ac_aux_dir/depcomp" | |
3711 | AMDEPBACKSLASH='\' | |
544db64f | 3712 | am__nodep='_no' |
d5d92632 | 3713 | fi |
3714 | if test "x$enable_dependency_tracking" != xno; then | |
3715 | AMDEP_TRUE= | |
3716 | AMDEP_FALSE='#' | |
3717 | else | |
3718 | AMDEP_TRUE='#' | |
3719 | AMDEP_FALSE= | |
3720 | fi | |
4ee9c684 | 3721 | |
3722 | ||
4ee9c684 | 3723 | ac_ext=c |
3724 | ac_cpp='$CPP $CPPFLAGS' | |
3725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3728 | if test -n "$ac_tool_prefix"; then | |
3729 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3730 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3732 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3733 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3734 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3735 | else |
3736 | if test -n "$CC"; then | |
3737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3738 | else | |
3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3740 | for as_dir in $PATH | |
3741 | do | |
3742 | IFS=$as_save_IFS | |
3743 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3744 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3746 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3748 | break 2 |
3749 | fi | |
3750 | done | |
cd9a469c | 3751 | done |
3752 | IFS=$as_save_IFS | |
4ee9c684 | 3753 | |
3754 | fi | |
3755 | fi | |
3756 | CC=$ac_cv_prog_CC | |
3757 | if test -n "$CC"; then | |
cd9a469c | 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3759 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3760 | else |
cd9a469c | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3762 | $as_echo "no" >&6; } | |
4ee9c684 | 3763 | fi |
3764 | ||
cd9a469c | 3765 | |
4ee9c684 | 3766 | fi |
3767 | if test -z "$ac_cv_prog_CC"; then | |
3768 | ac_ct_CC=$CC | |
3769 | # Extract the first word of "gcc", so it can be a program name with args. | |
3770 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3772 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3773 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3774 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3775 | else |
3776 | if test -n "$ac_ct_CC"; then | |
3777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3778 | else | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3784 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3786 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3788 | break 2 |
3789 | fi | |
3790 | done | |
cd9a469c | 3791 | done |
3792 | IFS=$as_save_IFS | |
4ee9c684 | 3793 | |
3794 | fi | |
3795 | fi | |
3796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3797 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3799 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3800 | else |
cd9a469c | 3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3802 | $as_echo "no" >&6; } | |
4ee9c684 | 3803 | fi |
3804 | ||
cd9a469c | 3805 | if test "x$ac_ct_CC" = x; then |
3806 | CC="" | |
3807 | else | |
3808 | case $cross_compiling:$ac_tool_warned in | |
3809 | yes:) | |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3812 | ac_tool_warned=yes ;; | |
3813 | esac | |
3814 | CC=$ac_ct_CC | |
3815 | fi | |
4ee9c684 | 3816 | else |
3817 | CC="$ac_cv_prog_CC" | |
3818 | fi | |
3819 | ||
3820 | if test -z "$CC"; then | |
cd9a469c | 3821 | if test -n "$ac_tool_prefix"; then |
3822 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4ee9c684 | 3823 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3825 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3826 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3827 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3828 | else |
3829 | if test -n "$CC"; then | |
3830 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3831 | else | |
3832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3833 | for as_dir in $PATH | |
3834 | do | |
3835 | IFS=$as_save_IFS | |
3836 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3837 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3839 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3841 | break 2 |
3842 | fi | |
3843 | done | |
cd9a469c | 3844 | done |
3845 | IFS=$as_save_IFS | |
4ee9c684 | 3846 | |
3847 | fi | |
3848 | fi | |
3849 | CC=$ac_cv_prog_CC | |
3850 | if test -n "$CC"; then | |
cd9a469c | 3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3852 | $as_echo "$CC" >&6; } | |
82eaf560 | 3853 | else |
cd9a469c | 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3855 | $as_echo "no" >&6; } | |
82eaf560 | 3856 | fi |
3857 | ||
82eaf560 | 3858 | |
cd9a469c | 3859 | fi |
4ee9c684 | 3860 | fi |
3861 | if test -z "$CC"; then | |
3862 | # Extract the first word of "cc", so it can be a program name with args. | |
3863 | set dummy cc; ac_word=$2 | |
cd9a469c | 3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3865 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3866 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3867 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3868 | else |
3869 | if test -n "$CC"; then | |
3870 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3871 | else | |
3872 | ac_prog_rejected=no | |
3873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3874 | for as_dir in $PATH | |
3875 | do | |
3876 | IFS=$as_save_IFS | |
3877 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3878 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3880 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3881 | ac_prog_rejected=yes | |
3882 | continue | |
3883 | fi | |
3884 | ac_cv_prog_CC="cc" | |
cd9a469c | 3885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3886 | break 2 |
3887 | fi | |
3888 | done | |
cd9a469c | 3889 | done |
3890 | IFS=$as_save_IFS | |
4ee9c684 | 3891 | |
3892 | if test $ac_prog_rejected = yes; then | |
3893 | # We found a bogon in the path, so make sure we never use it. | |
3894 | set dummy $ac_cv_prog_CC | |
3895 | shift | |
3896 | if test $# != 0; then | |
3897 | # We chose a different compiler from the bogus one. | |
3898 | # However, it has the same basename, so the bogon will be chosen | |
3899 | # first if we set CC to just the basename; use the full file name. | |
3900 | shift | |
3901 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3902 | fi | |
3903 | fi | |
3904 | fi | |
3905 | fi | |
3906 | CC=$ac_cv_prog_CC | |
3907 | if test -n "$CC"; then | |
cd9a469c | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3909 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3910 | else |
cd9a469c | 3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3912 | $as_echo "no" >&6; } | |
4ee9c684 | 3913 | fi |
3914 | ||
cd9a469c | 3915 | |
4ee9c684 | 3916 | fi |
3917 | if test -z "$CC"; then | |
3918 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3919 | for ac_prog in cl.exe |
4ee9c684 | 3920 | do |
3921 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3922 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3924 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3925 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3926 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3927 | else |
3928 | if test -n "$CC"; then | |
3929 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3930 | else | |
3931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3932 | for as_dir in $PATH | |
3933 | do | |
3934 | IFS=$as_save_IFS | |
3935 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3936 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3938 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3940 | break 2 |
3941 | fi | |
3942 | done | |
cd9a469c | 3943 | done |
3944 | IFS=$as_save_IFS | |
4ee9c684 | 3945 | |
3946 | fi | |
3947 | fi | |
3948 | CC=$ac_cv_prog_CC | |
3949 | if test -n "$CC"; then | |
cd9a469c | 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3951 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3952 | else |
cd9a469c | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3954 | $as_echo "no" >&6; } | |
4ee9c684 | 3955 | fi |
3956 | ||
cd9a469c | 3957 | |
4ee9c684 | 3958 | test -n "$CC" && break |
3959 | done | |
3960 | fi | |
3961 | if test -z "$CC"; then | |
3962 | ac_ct_CC=$CC | |
cd9a469c | 3963 | for ac_prog in cl.exe |
4ee9c684 | 3964 | do |
3965 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3966 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3968 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3969 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3970 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3971 | else |
3972 | if test -n "$ac_ct_CC"; then | |
3973 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3974 | else | |
3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3976 | for as_dir in $PATH | |
3977 | do | |
3978 | IFS=$as_save_IFS | |
3979 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3980 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3982 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3984 | break 2 |
3985 | fi | |
3986 | done | |
cd9a469c | 3987 | done |
3988 | IFS=$as_save_IFS | |
4ee9c684 | 3989 | |
3990 | fi | |
3991 | fi | |
3992 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3993 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3995 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3996 | else |
cd9a469c | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3998 | $as_echo "no" >&6; } | |
4ee9c684 | 3999 | fi |
4000 | ||
cd9a469c | 4001 | |
4ee9c684 | 4002 | test -n "$ac_ct_CC" && break |
4003 | done | |
4004 | ||
cd9a469c | 4005 | if test "x$ac_ct_CC" = x; then |
4006 | CC="" | |
4007 | else | |
4008 | case $cross_compiling:$ac_tool_warned in | |
4009 | yes:) | |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4012 | ac_tool_warned=yes ;; | |
4013 | esac | |
4014 | CC=$ac_ct_CC | |
4015 | fi | |
4ee9c684 | 4016 | fi |
4017 | ||
4018 | fi | |
4019 | ||
4020 | ||
cd9a469c | 4021 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4023 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4024 | See \`config.log' for more details" "$LINENO" 5; } | |
4ee9c684 | 4025 | |
4026 | # Provide some information about the compiler. | |
cd9a469c | 4027 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4028 | set X $ac_compile | |
4029 | ac_compiler=$2 | |
4030 | for ac_option in --version -v -V -qversion; do | |
4031 | { { ac_try="$ac_compiler $ac_option >&5" | |
4032 | case "(($ac_try" in | |
4033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4034 | *) ac_try_echo=$ac_try;; | |
4035 | esac | |
4036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4037 | $as_echo "$ac_try_echo"; } >&5 | |
4038 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4ee9c684 | 4039 | ac_status=$? |
cd9a469c | 4040 | if test -s conftest.err; then |
4041 | sed '10a\ | |
4042 | ... rest of stderr output deleted ... | |
4043 | 10q' conftest.err >conftest.er1 | |
4044 | cat conftest.er1 >&5 | |
cd9a469c | 4045 | fi |
f00f02a3 | 4046 | rm -f conftest.er1 conftest.err |
cd9a469c | 4047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4048 | test $ac_status = 0; } | |
4049 | done | |
4ee9c684 | 4050 | |
cd9a469c | 4051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4052 | /* end confdefs.h. */ |
4053 | ||
b52ee437 | 4054 | int |
4055 | main () | |
4056 | { | |
4057 | ||
4058 | ; | |
4059 | return 0; | |
4060 | } | |
4061 | _ACEOF | |
4062 | # FIXME: Cleanup? | |
cd9a469c | 4063 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b52ee437 | 4064 | (eval $ac_link) 2>&5 |
4065 | ac_status=$? | |
cd9a469c | 4066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4067 | test $ac_status = 0; }; then : | |
b52ee437 | 4068 | gcc_no_link=no |
4069 | else | |
4070 | gcc_no_link=yes | |
4071 | fi | |
b52ee437 | 4072 | if test x$gcc_no_link = xyes; then |
4073 | # Setting cross_compile will disable run tests; it will | |
4074 | # also disable AC_CHECK_FILE but that's generally | |
4075 | # correct if we can't link. | |
4076 | cross_compiling=yes | |
4077 | EXEEXT= | |
4078 | else | |
cd9a469c | 4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 4080 | /* end confdefs.h. */ |
4081 | ||
4ee9c684 | 4082 | int |
4083 | main () | |
4084 | { | |
4085 | ||
4086 | ; | |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
4090 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 4091 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
4ee9c684 | 4092 | # Try to create an executable without -o first, disregard a.out. |
4093 | # It will help us diagnose broken compilers, and finding out an intuition | |
4094 | # of exeext. | |
f00f02a3 | 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4096 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
cd9a469c | 4097 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4098 | ||
4099 | # The possible output files: | |
4100 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4101 | ||
4102 | ac_rmfiles= | |
4103 | for ac_file in $ac_files | |
4104 | do | |
4105 | case $ac_file in | |
4106 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4107 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4108 | esac | |
4109 | done | |
4110 | rm -f $ac_rmfiles | |
4111 | ||
4112 | if { { ac_try="$ac_link_default" | |
4113 | case "(($ac_try" in | |
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4115 | *) ac_try_echo=$ac_try;; | |
4116 | esac | |
4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4118 | $as_echo "$ac_try_echo"; } >&5 | |
4119 | (eval "$ac_link_default") 2>&5 | |
4120 | ac_status=$? | |
4121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4122 | test $ac_status = 0; }; then : | |
4123 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4124 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4125 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4126 | # so that the user can short-circuit this test for compilers unknown to | |
4127 | # Autoconf. | |
4128 | for ac_file in $ac_files '' | |
4ee9c684 | 4129 | do |
4130 | test -f "$ac_file" || continue | |
4131 | case $ac_file in | |
cd9a469c | 4132 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4ee9c684 | 4133 | ;; |
4134 | [ab].out ) | |
4135 | # We found the default executable, but exeext='' is most | |
4136 | # certainly right. | |
4137 | break;; | |
4138 | *.* ) | |
cd9a469c | 4139 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4140 | then :; else | |
4141 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4142 | fi | |
4143 | # We set ac_cv_exeext here because the later test for it is not | |
4144 | # safe: cross compilers may not add the suffix if given an `-o' | |
4145 | # argument, so we may need to know it at that point already. | |
4146 | # Even if this section looks crufty: it has the advantage of | |
4147 | # actually working. | |
4ee9c684 | 4148 | break;; |
4149 | * ) | |
4150 | break;; | |
4151 | esac | |
4152 | done | |
cd9a469c | 4153 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4154 | ||
4ee9c684 | 4155 | else |
cd9a469c | 4156 | ac_file='' |
4157 | fi | |
cd9a469c | 4158 | if test -z "$ac_file"; then : |
f00f02a3 | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4160 | $as_echo "no" >&6; } | |
4161 | $as_echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 4162 | sed 's/^/| /' conftest.$ac_ext >&5 |
4163 | ||
cd9a469c | 4164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4166 | as_fn_error 77 "C compiler cannot create executables |
4167 | See \`config.log' for more details" "$LINENO" 5; } | |
4168 | else | |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4170 | $as_echo "yes" >&6; } | |
4ee9c684 | 4171 | fi |
f00f02a3 | 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4173 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4175 | $as_echo "$ac_file" >&6; } | |
4ee9c684 | 4176 | ac_exeext=$ac_cv_exeext |
4ee9c684 | 4177 | |
f00f02a3 | 4178 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4ee9c684 | 4179 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4181 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4182 | if { { ac_try="$ac_link" | |
4183 | case "(($ac_try" in | |
4184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4185 | *) ac_try_echo=$ac_try;; | |
4186 | esac | |
4187 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4188 | $as_echo "$ac_try_echo"; } >&5 | |
4189 | (eval "$ac_link") 2>&5 | |
4ee9c684 | 4190 | ac_status=$? |
cd9a469c | 4191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4192 | test $ac_status = 0; }; then : | |
4ee9c684 | 4193 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4194 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4195 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4196 | # `rm'. | |
4197 | for ac_file in conftest.exe conftest conftest.*; do | |
4198 | test -f "$ac_file" || continue | |
4199 | case $ac_file in | |
cd9a469c | 4200 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4ee9c684 | 4201 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4ee9c684 | 4202 | break;; |
4203 | * ) break;; | |
4204 | esac | |
4205 | done | |
4206 | else | |
cd9a469c | 4207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4209 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4210 | See \`config.log' for more details" "$LINENO" 5; } | |
4ee9c684 | 4211 | fi |
f00f02a3 | 4212 | rm -f conftest conftest$ac_cv_exeext |
cd9a469c | 4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4214 | $as_echo "$ac_cv_exeext" >&6; } | |
4ee9c684 | 4215 | |
4216 | rm -f conftest.$ac_ext | |
4217 | EXEEXT=$ac_cv_exeext | |
4218 | ac_exeext=$EXEEXT | |
f00f02a3 | 4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4220 | /* end confdefs.h. */ | |
4221 | #include <stdio.h> | |
4222 | int | |
4223 | main () | |
4224 | { | |
4225 | FILE *f = fopen ("conftest.out", "w"); | |
4226 | return ferror (f) || fclose (f) != 0; | |
4227 | ||
4228 | ; | |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
4232 | ac_clean_files="$ac_clean_files conftest.out" | |
4233 | # Check that the compiler produces executables we can run. If not, either | |
4234 | # the compiler is broken, or we cross compile. | |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4236 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4237 | if test "$cross_compiling" != yes; then | |
4238 | { { ac_try="$ac_link" | |
4239 | case "(($ac_try" in | |
4240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4241 | *) ac_try_echo=$ac_try;; | |
4242 | esac | |
4243 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4244 | $as_echo "$ac_try_echo"; } >&5 | |
4245 | (eval "$ac_link") 2>&5 | |
4246 | ac_status=$? | |
4247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4248 | test $ac_status = 0; } | |
4249 | if { ac_try='./conftest$ac_cv_exeext' | |
4250 | { { case "(($ac_try" in | |
4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4252 | *) ac_try_echo=$ac_try;; | |
4253 | esac | |
4254 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4255 | $as_echo "$ac_try_echo"; } >&5 | |
4256 | (eval "$ac_try") 2>&5 | |
4257 | ac_status=$? | |
4258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4259 | test $ac_status = 0; }; }; then | |
4260 | cross_compiling=no | |
4261 | else | |
4262 | if test "$cross_compiling" = maybe; then | |
4263 | cross_compiling=yes | |
4264 | else | |
4265 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4266 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4267 | as_fn_error $? "cannot run C compiled programs. | |
4268 | If you meant to cross compile, use \`--host'. | |
4269 | See \`config.log' for more details" "$LINENO" 5; } | |
4270 | fi | |
4271 | fi | |
4272 | fi | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4274 | $as_echo "$cross_compiling" >&6; } | |
4275 | ||
4276 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4277 | ac_clean_files=$ac_clean_files_save | |
b52ee437 | 4278 | fi |
cd9a469c | 4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4280 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 4281 | if ${ac_cv_objext+:} false; then : |
cd9a469c | 4282 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4283 | else |
cd9a469c | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4285 | /* end confdefs.h. */ |
4286 | ||
4287 | int | |
4288 | main () | |
4289 | { | |
4290 | ||
4291 | ; | |
4292 | return 0; | |
4293 | } | |
4294 | _ACEOF | |
4295 | rm -f conftest.o conftest.obj | |
cd9a469c | 4296 | if { { ac_try="$ac_compile" |
4297 | case "(($ac_try" in | |
4298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4299 | *) ac_try_echo=$ac_try;; | |
4300 | esac | |
4301 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4302 | $as_echo "$ac_try_echo"; } >&5 | |
4303 | (eval "$ac_compile") 2>&5 | |
4304 | ac_status=$? | |
4305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4306 | test $ac_status = 0; }; then : | |
4307 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4308 | test -f "$ac_file" || continue; | |
4ee9c684 | 4309 | case $ac_file in |
cd9a469c | 4310 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4ee9c684 | 4311 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4312 | break;; | |
4313 | esac | |
4314 | done | |
4315 | else | |
cd9a469c | 4316 | $as_echo "$as_me: failed program was:" >&5 |
4ee9c684 | 4317 | sed 's/^/| /' conftest.$ac_ext >&5 |
4318 | ||
cd9a469c | 4319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4321 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4322 | See \`config.log' for more details" "$LINENO" 5; } | |
a106dabe | 4323 | fi |
a106dabe | 4324 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4325 | fi | |
cd9a469c | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4327 | $as_echo "$ac_cv_objext" >&6; } | |
a106dabe | 4328 | OBJEXT=$ac_cv_objext |
4329 | ac_objext=$OBJEXT | |
cd9a469c | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4331 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 4332 | if ${ac_cv_c_compiler_gnu+:} false; then : |
cd9a469c | 4333 | $as_echo_n "(cached) " >&6 |
a106dabe | 4334 | else |
cd9a469c | 4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4336 | /* end confdefs.h. */ |
4ee9c684 | 4337 | |
4ee9c684 | 4338 | int |
4339 | main () | |
4340 | { | |
a106dabe | 4341 | #ifndef __GNUC__ |
4342 | choke me | |
4343 | #endif | |
ce1a737c | 4344 | |
4ee9c684 | 4345 | ; |
4346 | return 0; | |
4347 | } | |
4348 | _ACEOF | |
cd9a469c | 4349 | if ac_fn_c_try_compile "$LINENO"; then : |
a106dabe | 4350 | ac_compiler_gnu=yes |
4ee9c684 | 4351 | else |
cd9a469c | 4352 | ac_compiler_gnu=no |
a106dabe | 4353 | fi |
cd9a469c | 4354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a106dabe | 4355 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4356 | ||
4357 | fi | |
cd9a469c | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4359 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4360 | if test $ac_compiler_gnu = yes; then | |
4361 | GCC=yes | |
4362 | else | |
4363 | GCC= | |
4364 | fi | |
a106dabe | 4365 | ac_test_CFLAGS=${CFLAGS+set} |
4366 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4368 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 4369 | if ${ac_cv_prog_cc_g+:} false; then : |
cd9a469c | 4370 | $as_echo_n "(cached) " >&6 |
a106dabe | 4371 | else |
cd9a469c | 4372 | ac_save_c_werror_flag=$ac_c_werror_flag |
4373 | ac_c_werror_flag=yes | |
4374 | ac_cv_prog_cc_g=no | |
4375 | CFLAGS="-g" | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4ee9c684 | 4377 | /* end confdefs.h. */ |
ce1a737c | 4378 | |
4ee9c684 | 4379 | int |
4380 | main () | |
4381 | { | |
ce1a737c | 4382 | |
4ee9c684 | 4383 | ; |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
cd9a469c | 4387 | if ac_fn_c_try_compile "$LINENO"; then : |
ff4425cf | 4388 | ac_cv_prog_cc_g=yes |
4389 | else | |
cd9a469c | 4390 | CFLAGS="" |
4391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4392 | /* end confdefs.h. */ | |
4393 | ||
4394 | int | |
4395 | main () | |
4396 | { | |
4397 | ||
4398 | ; | |
4399 | return 0; | |
4400 | } | |
4401 | _ACEOF | |
4402 | if ac_fn_c_try_compile "$LINENO"; then : | |
4403 | ||
4404 | else | |
4405 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4406 | CFLAGS="-g" | |
4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4408 | /* end confdefs.h. */ | |
ff4425cf | 4409 | |
cd9a469c | 4410 | int |
4411 | main () | |
4412 | { | |
4413 | ||
4414 | ; | |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
4418 | if ac_fn_c_try_compile "$LINENO"; then : | |
4419 | ac_cv_prog_cc_g=yes | |
4420 | fi | |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
82eaf560 | 4422 | fi |
cd9a469c | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
82eaf560 | 4424 | fi |
cd9a469c | 4425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4426 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4427 | fi | |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4429 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
82eaf560 | 4430 | if test "$ac_test_CFLAGS" = set; then |
4431 | CFLAGS=$ac_save_CFLAGS | |
4432 | elif test $ac_cv_prog_cc_g = yes; then | |
4433 | if test "$GCC" = yes; then | |
4434 | CFLAGS="-g -O2" | |
4435 | else | |
4436 | CFLAGS="-g" | |
4437 | fi | |
4438 | else | |
4439 | if test "$GCC" = yes; then | |
4440 | CFLAGS="-O2" | |
4441 | else | |
4442 | CFLAGS= | |
4443 | fi | |
4444 | fi | |
cd9a469c | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4446 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 4447 | if ${ac_cv_prog_cc_c89+:} false; then : |
cd9a469c | 4448 | $as_echo_n "(cached) " >&6 |
82eaf560 | 4449 | else |
cd9a469c | 4450 | ac_cv_prog_cc_c89=no |
82eaf560 | 4451 | ac_save_CC=$CC |
cd9a469c | 4452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff4425cf | 4453 | /* end confdefs.h. */ |
82eaf560 | 4454 | #include <stdarg.h> |
4455 | #include <stdio.h> | |
f00f02a3 | 4456 | struct stat; |
82eaf560 | 4457 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4458 | struct buf { int x; }; | |
4459 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4460 | static char *e (p, i) | |
4461 | char **p; | |
4462 | int i; | |
4463 | { | |
4464 | return p[i]; | |
4465 | } | |
4466 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4467 | { | |
4468 | char *s; | |
4469 | va_list v; | |
4470 | va_start (v,p); | |
4471 | s = g (p, va_arg (v,int)); | |
4472 | va_end (v); | |
4473 | return s; | |
4474 | } | |
ff4425cf | 4475 | |
82eaf560 | 4476 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4477 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4478 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4479 | as 'x'. The following induces an error, until -std is added to get |
82eaf560 | 4480 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4481 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4482 | that's true only with -std. */ |
82eaf560 | 4483 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4484 | ||
cd9a469c | 4485 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4486 | inside strings and character constants. */ | |
4487 | #define FOO(x) 'x' | |
4488 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4489 | ||
82eaf560 | 4490 | int test (int i, double x); |
4491 | struct s1 {int (*f) (int a);}; | |
4492 | struct s2 {int (*f) (double a);}; | |
4493 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4494 | int argc; | |
4495 | char **argv; | |
ff4425cf | 4496 | int |
4497 | main () | |
4498 | { | |
82eaf560 | 4499 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ff4425cf | 4500 | ; |
4501 | return 0; | |
4502 | } | |
4503 | _ACEOF | |
cd9a469c | 4504 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4505 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
82eaf560 | 4506 | do |
4507 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4508 | if ac_fn_c_try_compile "$LINENO"; then : |
4509 | ac_cv_prog_cc_c89=$ac_arg | |
82eaf560 | 4510 | fi |
cd9a469c | 4511 | rm -f core conftest.err conftest.$ac_objext |
4512 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
82eaf560 | 4513 | done |
cd9a469c | 4514 | rm -f conftest.$ac_ext |
82eaf560 | 4515 | CC=$ac_save_CC |
4516 | ||
4517 | fi | |
cd9a469c | 4518 | # AC_CACHE_VAL |
4519 | case "x$ac_cv_prog_cc_c89" in | |
4520 | x) | |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4522 | $as_echo "none needed" >&6; } ;; | |
4523 | xno) | |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4525 | $as_echo "unsupported" >&6; } ;; | |
82eaf560 | 4526 | *) |
cd9a469c | 4527 | CC="$CC $ac_cv_prog_cc_c89" |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4529 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
82eaf560 | 4530 | esac |
cd9a469c | 4531 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4ee9c684 | 4532 | |
4533 | fi | |
4ee9c684 | 4534 | |
4ee9c684 | 4535 | ac_ext=c |
4536 | ac_cpp='$CPP $CPPFLAGS' | |
4537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 4540 | |
f00f02a3 | 4541 | ac_ext=c |
4542 | ac_cpp='$CPP $CPPFLAGS' | |
4543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4547 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4548 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4549 | $as_echo_n "(cached) " >&6 | |
4550 | else | |
4551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4552 | /* end confdefs.h. */ | |
4553 | ||
4554 | int | |
4555 | main () | |
4556 | { | |
4557 | ||
4558 | ; | |
4559 | return 0; | |
4560 | } | |
4561 | _ACEOF | |
4562 | # Make sure it works both with $CC and with simple cc. | |
4563 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4564 | # compilers refuse to overwrite an existing .o file with -o, | |
4565 | # though they will create one. | |
4566 | am_cv_prog_cc_c_o=yes | |
4567 | for am_i in 1 2; do | |
4568 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4569 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4570 | ac_status=$? | |
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4572 | (exit $ac_status); } \ | |
4573 | && test -f conftest2.$ac_objext; then | |
4574 | : OK | |
4575 | else | |
4576 | am_cv_prog_cc_c_o=no | |
4577 | break | |
4578 | fi | |
4579 | done | |
4580 | rm -f core conftest* | |
4581 | unset am_i | |
4582 | fi | |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4584 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4585 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4586 | # Losing compiler, so override with the script. | |
4587 | # FIXME: It is wrong to rewrite CC. | |
4588 | # But if we don't then we get into trouble of one sort or another. | |
4589 | # A longer-term fix would be to have automake use am__CC in this case, | |
4590 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4591 | CC="$am_aux_dir/compile $CC" | |
4592 | fi | |
4593 | ac_ext=c | |
4594 | ac_cpp='$CPP $CPPFLAGS' | |
4595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4598 | ||
4599 | ||
2fd61f51 | 4600 | depcc="$CC" am_compiler_list= |
4601 | ||
cd9a469c | 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4603 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
f00f02a3 | 4604 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
cd9a469c | 4605 | $as_echo_n "(cached) " >&6 |
2fd61f51 | 4606 | else |
4607 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4608 | # We make a subdir and do the tests there. Otherwise we can end up | |
4609 | # making bogus files that we don't know about and never remove. For | |
4610 | # instance it was reported that on HP-UX the gcc test will end up | |
f00f02a3 | 4611 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4612 | # in D". | |
544db64f | 4613 | rm -rf conftest.dir |
2fd61f51 | 4614 | mkdir conftest.dir |
4615 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4616 | # using a relative directory. | |
4617 | cp "$am_depcomp" conftest.dir | |
4618 | cd conftest.dir | |
4619 | # We will build objects and dependencies in a subdirectory because | |
4620 | # it helps to detect inapplicable dependency modes. For instance | |
4621 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4622 | # side effect of compilation, but ICC will put the dependencies in | |
4623 | # the current directory while Tru64 will put them in the object | |
4624 | # directory. | |
4625 | mkdir sub | |
4626 | ||
4627 | am_cv_CC_dependencies_compiler_type=none | |
4628 | if test "$am_compiler_list" = ""; then | |
4629 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4630 | fi | |
cd9a469c | 4631 | am__universal=false |
4632 | case " $depcc " in #( | |
4633 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4634 | esac | |
4635 | ||
2fd61f51 | 4636 | for depmode in $am_compiler_list; do |
4637 | # Setup a source with many dependencies, because some compilers | |
4638 | # like to wrap large dependency lists on column 80 (with \), and | |
4639 | # we should not choose a depcomp mode which is confused by this. | |
4640 | # | |
4641 | # We need to recreate these files for each test, as the compiler may | |
4642 | # overwrite some of them when testing with obscure command lines. | |
4643 | # This happens at least with the AIX C compiler. | |
4644 | : > sub/conftest.c | |
4645 | for i in 1 2 3 4 5 6; do | |
4646 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
f00f02a3 | 4647 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4648 | # Solaris 10 /bin/sh. | |
4649 | echo '/* dummy */' > sub/conftst$i.h | |
2fd61f51 | 4650 | done |
4651 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4652 | ||
f00f02a3 | 4653 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
cd9a469c | 4654 | # mode. It turns out that the SunPro C++ compiler does not properly |
f00f02a3 | 4655 | # handle '-M -o', and we need to detect this. Also, some Intel |
4656 | # versions had trouble with output in subdirs. | |
cd9a469c | 4657 | am__obj=sub/conftest.${OBJEXT-o} |
4658 | am__minus_obj="-o $am__obj" | |
2fd61f51 | 4659 | case $depmode in |
cd9a469c | 4660 | gcc) |
4661 | # This depmode causes a compiler race in universal mode. | |
4662 | test "$am__universal" = false || continue | |
4663 | ;; | |
2fd61f51 | 4664 | nosideeffect) |
f00f02a3 | 4665 | # After this tag, mechanisms are not by side-effect, so they'll |
4666 | # only be used when explicitly requested. | |
2fd61f51 | 4667 | if test "x$enable_dependency_tracking" = xyes; then |
4668 | continue | |
4669 | else | |
4670 | break | |
4671 | fi | |
4672 | ;; | |
544db64f | 4673 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
f00f02a3 | 4674 | # This compiler won't grok '-c -o', but also, the minuso test has |
cd9a469c | 4675 | # not run yet. These depmodes are late enough in the game, and |
4676 | # so weak that their functioning should not be impacted. | |
4677 | am__obj=conftest.${OBJEXT-o} | |
4678 | am__minus_obj= | |
4679 | ;; | |
2fd61f51 | 4680 | none) break ;; |
4681 | esac | |
2fd61f51 | 4682 | if depmode=$depmode \ |
cd9a469c | 4683 | source=sub/conftest.c object=$am__obj \ |
2fd61f51 | 4684 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
cd9a469c | 4685 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2fd61f51 | 4686 | >/dev/null 2>conftest.err && |
cd9a469c | 4687 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4688 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
cd9a469c | 4689 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4690 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4691 | # icc doesn't choke on unknown options, it will just issue warnings | |
4692 | # or remarks (even with -Werror). So we grep stderr for any message | |
4693 | # that says an option was ignored or not supported. | |
4694 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4695 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4696 | # The diagnosis changed in icc 8.0: | |
4697 | # icc: Command line remark: option '-MP' not supported | |
4698 | if (grep 'ignoring option' conftest.err || | |
4699 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4700 | am_cv_CC_dependencies_compiler_type=$depmode | |
4701 | break | |
4702 | fi | |
4703 | fi | |
4704 | done | |
4705 | ||
4706 | cd .. | |
4707 | rm -rf conftest.dir | |
4708 | else | |
4709 | am_cv_CC_dependencies_compiler_type=none | |
4710 | fi | |
4711 | ||
4712 | fi | |
cd9a469c | 4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4714 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2fd61f51 | 4715 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4716 | ||
cd9a469c | 4717 | if |
2fd61f51 | 4718 | test "x$enable_dependency_tracking" != xno \ |
4719 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4720 | am__fastdepCC_TRUE= | |
4721 | am__fastdepCC_FALSE='#' | |
4722 | else | |
4723 | am__fastdepCC_TRUE='#' | |
4724 | am__fastdepCC_FALSE= | |
4725 | fi | |
4726 | ||
4ee9c684 | 4727 | |
4ee9c684 | 4728 | |
d5d92632 | 4729 | ac_ext=c |
4730 | ac_cpp='$CPP $CPPFLAGS' | |
4731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4735 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4736 | # On Suns, sometimes $CPP names a directory. | |
4737 | if test -n "$CPP" && test -d "$CPP"; then | |
4738 | CPP= | |
4ee9c684 | 4739 | fi |
d5d92632 | 4740 | if test -z "$CPP"; then |
f00f02a3 | 4741 | if ${ac_cv_prog_CPP+:} false; then : |
d5d92632 | 4742 | $as_echo_n "(cached) " >&6 |
4743 | else | |
4744 | # Double quotes because CPP needs to be expanded | |
4745 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4746 | do | |
4747 | ac_preproc_ok=false | |
4748 | for ac_c_preproc_warn_flag in '' yes | |
4749 | do | |
4750 | # Use a header file that comes with gcc, so configuring glibc | |
4751 | # with a fresh cross-compiler works. | |
4752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4753 | # <limits.h> exists even on freestanding compilers. | |
4754 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4755 | # not just through cpp. "Syntax error" is here to catch this case. | |
4756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce1a737c | 4757 | /* end confdefs.h. */ |
d5d92632 | 4758 | #ifdef __STDC__ |
4759 | # include <limits.h> | |
4760 | #else | |
4761 | # include <assert.h> | |
4762 | #endif | |
4763 | Syntax error | |
ce1a737c | 4764 | _ACEOF |
d5d92632 | 4765 | if ac_fn_c_try_cpp "$LINENO"; then : |
4766 | ||
019fb48a | 4767 | else |
d5d92632 | 4768 | # Broken: fails on valid input. |
4769 | continue | |
019fb48a | 4770 | fi |
f00f02a3 | 4771 | rm -f conftest.err conftest.i conftest.$ac_ext |
019fb48a | 4772 | |
d5d92632 | 4773 | # OK, works on sane cases. Now check whether nonexistent headers |
4774 | # can be detected and how. | |
4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4776 | /* end confdefs.h. */ | |
4777 | #include <ac_nonexistent.h> | |
019fb48a | 4778 | _ACEOF |
d5d92632 | 4779 | if ac_fn_c_try_cpp "$LINENO"; then : |
4780 | # Broken: success on invalid input. | |
4781 | continue | |
ce1a737c | 4782 | else |
d5d92632 | 4783 | # Passes both tests. |
4784 | ac_preproc_ok=: | |
4785 | break | |
019fb48a | 4786 | fi |
f00f02a3 | 4787 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 4788 | |
4789 | done | |
4790 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 4791 | rm -f conftest.i conftest.err conftest.$ac_ext |
d5d92632 | 4792 | if $ac_preproc_ok; then : |
4793 | break | |
ce1a737c | 4794 | fi |
4795 | ||
d5d92632 | 4796 | done |
4797 | ac_cv_prog_CPP=$CPP | |
4798 | ||
4799 | fi | |
4800 | CPP=$ac_cv_prog_CPP | |
019fb48a | 4801 | else |
d5d92632 | 4802 | ac_cv_prog_CPP=$CPP |
019fb48a | 4803 | fi |
d5d92632 | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4805 | $as_echo "$CPP" >&6; } | |
4806 | ac_preproc_ok=false | |
4807 | for ac_c_preproc_warn_flag in '' yes | |
4808 | do | |
4809 | # Use a header file that comes with gcc, so configuring glibc | |
4810 | # with a fresh cross-compiler works. | |
4811 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4812 | # <limits.h> exists even on freestanding compilers. | |
4813 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4814 | # not just through cpp. "Syntax error" is here to catch this case. | |
4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4816 | /* end confdefs.h. */ | |
4817 | #ifdef __STDC__ | |
4818 | # include <limits.h> | |
4819 | #else | |
4820 | # include <assert.h> | |
4821 | #endif | |
4822 | Syntax error | |
4823 | _ACEOF | |
4824 | if ac_fn_c_try_cpp "$LINENO"; then : | |
019fb48a | 4825 | |
019fb48a | 4826 | else |
d5d92632 | 4827 | # Broken: fails on valid input. |
4828 | continue | |
019fb48a | 4829 | fi |
f00f02a3 | 4830 | rm -f conftest.err conftest.i conftest.$ac_ext |
019fb48a | 4831 | |
d5d92632 | 4832 | # OK, works on sane cases. Now check whether nonexistent headers |
4833 | # can be detected and how. | |
4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443eac1 | 4835 | /* end confdefs.h. */ |
d5d92632 | 4836 | #include <ac_nonexistent.h> |
3443eac1 | 4837 | _ACEOF |
d5d92632 | 4838 | if ac_fn_c_try_cpp "$LINENO"; then : |
4839 | # Broken: success on invalid input. | |
4840 | continue | |
3443eac1 | 4841 | else |
d5d92632 | 4842 | # Passes both tests. |
4843 | ac_preproc_ok=: | |
4844 | break | |
3443eac1 | 4845 | fi |
f00f02a3 | 4846 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 4847 | |
4848 | done | |
4849 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 4850 | rm -f conftest.i conftest.err conftest.$ac_ext |
d5d92632 | 4851 | if $ac_preproc_ok; then : |
4852 | ||
3443eac1 | 4853 | else |
d5d92632 | 4854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4856 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4857 | See \`config.log' for more details" "$LINENO" 5; } | |
3443eac1 | 4858 | fi |
3443eac1 | 4859 | |
d5d92632 | 4860 | ac_ext=c |
4861 | ac_cpp='$CPP $CPPFLAGS' | |
4862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3443eac1 | 4865 | |
d5d92632 | 4866 | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4868 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
f00f02a3 | 4869 | if ${ac_cv_path_GREP+:} false; then : |
cd9a469c | 4870 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4871 | else |
d5d92632 | 4872 | if test -z "$GREP"; then |
4873 | ac_path_GREP_found=false | |
4874 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4876 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
90973b19 | 4877 | do |
4878 | IFS=$as_save_IFS | |
4879 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4880 | for ac_prog in grep ggrep; do |
cd9a469c | 4881 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4882 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 4883 | as_fn_executable_p "$ac_path_GREP" || continue |
d5d92632 | 4884 | # Check for GNU ac_path_GREP and select it if it is found. |
4885 | # Check for GNU $ac_path_GREP | |
4886 | case `"$ac_path_GREP" --version 2>&1` in | |
4887 | *GNU*) | |
4888 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4889 | *) | |
4890 | ac_count=0 | |
4891 | $as_echo_n 0123456789 >"conftest.in" | |
4892 | while : | |
4893 | do | |
4894 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4895 | mv "conftest.tmp" "conftest.in" | |
4896 | cp "conftest.in" "conftest.nl" | |
4897 | $as_echo 'GREP' >> "conftest.nl" | |
4898 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4899 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4900 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4901 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4902 | # Best one so far, save it but keep looking for a better one | |
4903 | ac_cv_path_GREP="$ac_path_GREP" | |
4904 | ac_path_GREP_max=$ac_count | |
4905 | fi | |
4906 | # 10*(2^10) chars as input seems more than enough | |
4907 | test $ac_count -gt 10 && break | |
cd9a469c | 4908 | done |
d5d92632 | 4909 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4910 | esac | |
4ee9c684 | 4911 | |
d5d92632 | 4912 | $ac_path_GREP_found && break 3 |
4913 | done | |
4914 | done | |
4915 | done | |
4916 | IFS=$as_save_IFS | |
4917 | if test -z "$ac_cv_path_GREP"; then | |
f00f02a3 | 4918 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
d5d92632 | 4919 | fi |
4ee9c684 | 4920 | else |
d5d92632 | 4921 | ac_cv_path_GREP=$GREP |
4ee9c684 | 4922 | fi |
4923 | ||
4ee9c684 | 4924 | fi |
d5d92632 | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4926 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4927 | GREP="$ac_cv_path_GREP" | |
4ee9c684 | 4928 | |
d5d92632 | 4929 | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4931 | $as_echo_n "checking for egrep... " >&6; } | |
f00f02a3 | 4932 | if ${ac_cv_path_EGREP+:} false; then : |
cd9a469c | 4933 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4934 | else |
d5d92632 | 4935 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4936 | then ac_cv_path_EGREP="$GREP -E" | |
4937 | else | |
4938 | if test -z "$EGREP"; then | |
4939 | ac_path_EGREP_found=false | |
4940 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4942 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4ee9c684 | 4943 | do |
4944 | IFS=$as_save_IFS | |
4945 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4946 | for ac_prog in egrep; do |
cd9a469c | 4947 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4948 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 4949 | as_fn_executable_p "$ac_path_EGREP" || continue |
d5d92632 | 4950 | # Check for GNU ac_path_EGREP and select it if it is found. |
4951 | # Check for GNU $ac_path_EGREP | |
4952 | case `"$ac_path_EGREP" --version 2>&1` in | |
4953 | *GNU*) | |
4954 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4955 | *) | |
4956 | ac_count=0 | |
4957 | $as_echo_n 0123456789 >"conftest.in" | |
4958 | while : | |
4959 | do | |
4960 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4961 | mv "conftest.tmp" "conftest.in" | |
4962 | cp "conftest.in" "conftest.nl" | |
4963 | $as_echo 'EGREP' >> "conftest.nl" | |
4964 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4965 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4966 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4967 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4968 | # Best one so far, save it but keep looking for a better one | |
4969 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4970 | ac_path_EGREP_max=$ac_count | |
4971 | fi | |
4972 | # 10*(2^10) chars as input seems more than enough | |
4973 | test $ac_count -gt 10 && break | |
cd9a469c | 4974 | done |
d5d92632 | 4975 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4976 | esac | |
4ee9c684 | 4977 | |
d5d92632 | 4978 | $ac_path_EGREP_found && break 3 |
4979 | done | |
4980 | done | |
4981 | done | |
4982 | IFS=$as_save_IFS | |
4983 | if test -z "$ac_cv_path_EGREP"; then | |
f00f02a3 | 4984 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
d5d92632 | 4985 | fi |
4ee9c684 | 4986 | else |
d5d92632 | 4987 | ac_cv_path_EGREP=$EGREP |
4ee9c684 | 4988 | fi |
4989 | ||
d5d92632 | 4990 | fi |
4ee9c684 | 4991 | fi |
d5d92632 | 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4993 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4994 | EGREP="$ac_cv_path_EGREP" | |
4995 | ||
4996 | ||
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4998 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
f00f02a3 | 4999 | if ${ac_cv_header_stdc+:} false; then : |
cd9a469c | 5000 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5001 | else |
d5d92632 | 5002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5003 | /* end confdefs.h. */ | |
5004 | #include <stdlib.h> | |
5005 | #include <stdarg.h> | |
5006 | #include <string.h> | |
5007 | #include <float.h> | |
5008 | ||
5009 | int | |
5010 | main () | |
5011 | { | |
5012 | ||
5013 | ; | |
5014 | return 0; | |
5015 | } | |
5016 | _ACEOF | |
5017 | if ac_fn_c_try_compile "$LINENO"; then : | |
5018 | ac_cv_header_stdc=yes | |
4ee9c684 | 5019 | else |
d5d92632 | 5020 | ac_cv_header_stdc=no |
5021 | fi | |
5022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 5023 | |
d5d92632 | 5024 | if test $ac_cv_header_stdc = yes; then |
5025 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5027 | /* end confdefs.h. */ | |
5028 | #include <string.h> | |
5029 | ||
5030 | _ACEOF | |
5031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5032 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5033 | ||
5034 | else | |
5035 | ac_cv_header_stdc=no | |
4ee9c684 | 5036 | fi |
d5d92632 | 5037 | rm -f conftest* |
5038 | ||
4ee9c684 | 5039 | fi |
d5d92632 | 5040 | |
5041 | if test $ac_cv_header_stdc = yes; then | |
5042 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5044 | /* end confdefs.h. */ | |
5045 | #include <stdlib.h> | |
5046 | ||
5047 | _ACEOF | |
5048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5049 | $EGREP "free" >/dev/null 2>&1; then : | |
5050 | ||
4ee9c684 | 5051 | else |
d5d92632 | 5052 | ac_cv_header_stdc=no |
4ee9c684 | 5053 | fi |
d5d92632 | 5054 | rm -f conftest* |
4ee9c684 | 5055 | |
4ee9c684 | 5056 | fi |
5057 | ||
d5d92632 | 5058 | if test $ac_cv_header_stdc = yes; then |
5059 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5060 | if test "$cross_compiling" = yes; then : | |
5061 | : | |
5062 | else | |
5063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5064 | /* end confdefs.h. */ | |
5065 | #include <ctype.h> | |
5066 | #include <stdlib.h> | |
5067 | #if ((' ' & 0x0FF) == 0x020) | |
5068 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5069 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5070 | #else | |
5071 | # define ISLOWER(c) \ | |
5072 | (('a' <= (c) && (c) <= 'i') \ | |
5073 | || ('j' <= (c) && (c) <= 'r') \ | |
5074 | || ('s' <= (c) && (c) <= 'z')) | |
5075 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5076 | #endif | |
5077 | ||
5078 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5079 | int | |
5080 | main () | |
5081 | { | |
5082 | int i; | |
5083 | for (i = 0; i < 256; i++) | |
5084 | if (XOR (islower (i), ISLOWER (i)) | |
5085 | || toupper (i) != TOUPPER (i)) | |
5086 | return 2; | |
5087 | return 0; | |
5088 | } | |
5089 | _ACEOF | |
5090 | if ac_fn_c_try_run "$LINENO"; then : | |
5091 | ||
5092 | else | |
5093 | ac_cv_header_stdc=no | |
5094 | fi | |
5095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5096 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5097 | fi | |
5098 | ||
5099 | fi | |
5100 | fi | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5102 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5103 | if test $ac_cv_header_stdc = yes; then | |
5104 | ||
5105 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5106 | ||
5107 | fi | |
5108 | ||
5109 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5110 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5111 | inttypes.h stdint.h unistd.h | |
5112 | do : | |
5113 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5114 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5115 | " | |
f00f02a3 | 5116 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
d5d92632 | 5117 | cat >>confdefs.h <<_ACEOF |
5118 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5119 | _ACEOF | |
5120 | ||
5121 | fi | |
5122 | ||
5123 | done | |
5124 | ||
5125 | ||
5126 | ||
5127 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
f00f02a3 | 5128 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
d5d92632 | 5129 | MINIX=yes |
5130 | else | |
5131 | MINIX= | |
5132 | fi | |
5133 | ||
5134 | ||
5135 | if test "$MINIX" = yes; then | |
5136 | ||
5137 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5138 | ||
5139 | ||
5140 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5141 | ||
5142 | ||
5143 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5144 | ||
5145 | fi | |
5146 | ||
5147 | ||
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5149 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
f00f02a3 | 5150 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
d5d92632 | 5151 | $as_echo_n "(cached) " >&6 |
5152 | else | |
5153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5154 | /* end confdefs.h. */ | |
5155 | ||
f00f02a3 | 5156 | # define __EXTENSIONS__ 1 |
5157 | $ac_includes_default | |
d5d92632 | 5158 | int |
5159 | main () | |
5160 | { | |
5161 | ||
5162 | ; | |
5163 | return 0; | |
5164 | } | |
5165 | _ACEOF | |
5166 | if ac_fn_c_try_compile "$LINENO"; then : | |
5167 | ac_cv_safe_to_define___extensions__=yes | |
5168 | else | |
5169 | ac_cv_safe_to_define___extensions__=no | |
5170 | fi | |
5171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5172 | fi | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5174 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5175 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5176 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5177 | ||
5178 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5179 | ||
5180 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5181 | ||
5182 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5183 | ||
5184 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5185 | ||
5186 | ||
5187 | ||
5188 | # Calculate toolexeclibdir | |
5189 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5190 | case ${version_specific_libs} in | |
5191 | yes) | |
5192 | # Need the gcc compiler version to know where to install libraries | |
5193 | # and header files if --enable-version-specific-runtime-libs option | |
5194 | # is selected. | |
5195 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5196 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5197 | ;; | |
5198 | no) | |
5199 | if test -n "$with_cross_host" && | |
5200 | test x"$with_cross_host" != x"no"; then | |
5201 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5202 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
5203 | toolexeclibdir='$(toolexecdir)/lib' | |
5204 | else | |
5205 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5206 | toolexeclibdir='$(libdir)' | |
5207 | fi | |
5208 | multi_os_directory=`$CC -print-multi-os-directory` | |
5209 | case $multi_os_directory in | |
5210 | .) ;; # Avoid trailing /. | |
5211 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5212 | esac | |
5213 | ;; | |
5214 | esac | |
5215 | ||
5216 | ||
5217 | ||
5218 | # Create a spec file, so that compile/link tests don't fail | |
5219 | test -f libgfortran.spec || touch libgfortran.spec | |
5220 | ||
7eda0fb7 | 5221 | ac_ext=c |
5222 | ac_cpp='$CPP $CPPFLAGS' | |
5223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5226 | ||
d5d92632 | 5227 | # Check the compiler. |
5228 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5229 | # We must force CC to /not/ be precious variables; otherwise | |
5230 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5231 | # As a side effect, we have to subst CFLAGS ourselves. | |
5232 | ||
5233 | ||
5234 | ||
5235 | ac_ext=c | |
5236 | ac_cpp='$CPP $CPPFLAGS' | |
5237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5240 | if test -n "$ac_tool_prefix"; then | |
5241 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5242 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5244 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5245 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 5246 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5247 | else |
d5d92632 | 5248 | if test -n "$CC"; then |
5249 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 5250 | else |
90973b19 | 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5252 | for as_dir in $PATH | |
5253 | do | |
5254 | IFS=$as_save_IFS | |
5255 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5258 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 5259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5260 | break 2 |
5261 | fi | |
5262 | done | |
cd9a469c | 5263 | done |
5264 | IFS=$as_save_IFS | |
4ee9c684 | 5265 | |
4ee9c684 | 5266 | fi |
90973b19 | 5267 | fi |
d5d92632 | 5268 | CC=$ac_cv_prog_CC |
5269 | if test -n "$CC"; then | |
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5271 | $as_echo "$CC" >&6; } | |
90973b19 | 5272 | else |
cd9a469c | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5274 | $as_echo "no" >&6; } | |
90973b19 | 5275 | fi |
4ee9c684 | 5276 | |
cd9a469c | 5277 | |
4ee9c684 | 5278 | fi |
d5d92632 | 5279 | if test -z "$ac_cv_prog_CC"; then |
5280 | ac_ct_CC=$CC | |
5281 | # Extract the first word of "gcc", so it can be a program name with args. | |
5282 | set dummy gcc; ac_word=$2 | |
cd9a469c | 5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5284 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5285 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 5286 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5287 | else |
d5d92632 | 5288 | if test -n "$ac_ct_CC"; then |
5289 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4ee9c684 | 5290 | else |
90973b19 | 5291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5292 | for as_dir in $PATH | |
5293 | do | |
5294 | IFS=$as_save_IFS | |
5295 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5296 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5298 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 5299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5300 | break 2 |
5301 | fi | |
5302 | done | |
cd9a469c | 5303 | done |
5304 | IFS=$as_save_IFS | |
4ee9c684 | 5305 | |
4ee9c684 | 5306 | fi |
4ee9c684 | 5307 | fi |
d5d92632 | 5308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5309 | if test -n "$ac_ct_CC"; then | |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5311 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 5312 | else |
cd9a469c | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5314 | $as_echo "no" >&6; } | |
4ee9c684 | 5315 | fi |
5316 | ||
d5d92632 | 5317 | if test "x$ac_ct_CC" = x; then |
5318 | CC="" | |
cd9a469c | 5319 | else |
5320 | case $cross_compiling:$ac_tool_warned in | |
5321 | yes:) | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5324 | ac_tool_warned=yes ;; | |
5325 | esac | |
d5d92632 | 5326 | CC=$ac_ct_CC |
cd9a469c | 5327 | fi |
90973b19 | 5328 | else |
d5d92632 | 5329 | CC="$ac_cv_prog_CC" |
4ee9c684 | 5330 | fi |
90973b19 | 5331 | |
d5d92632 | 5332 | if test -z "$CC"; then |
5333 | if test -n "$ac_tool_prefix"; then | |
5334 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5335 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5337 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5338 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 5339 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5340 | else |
d5d92632 | 5341 | if test -n "$CC"; then |
5342 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 5343 | else |
d5d92632 | 5344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5345 | for as_dir in $PATH | |
5346 | do | |
5347 | IFS=$as_save_IFS | |
5348 | test -z "$as_dir" && as_dir=. | |
5349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5351 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5353 | break 2 | |
5354 | fi | |
5355 | done | |
5356 | done | |
5357 | IFS=$as_save_IFS | |
5358 | ||
5359 | fi | |
5360 | fi | |
5361 | CC=$ac_cv_prog_CC | |
5362 | if test -n "$CC"; then | |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5364 | $as_echo "$CC" >&6; } | |
5365 | else | |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5367 | $as_echo "no" >&6; } | |
5368 | fi | |
5369 | ||
5370 | ||
5371 | fi | |
5372 | fi | |
5373 | if test -z "$CC"; then | |
5374 | # Extract the first word of "cc", so it can be a program name with args. | |
5375 | set dummy cc; ac_word=$2 | |
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5377 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5378 | if ${ac_cv_prog_CC+:} false; then : |
d5d92632 | 5379 | $as_echo_n "(cached) " >&6 |
5380 | else | |
5381 | if test -n "$CC"; then | |
5382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5383 | else | |
5384 | ac_prog_rejected=no | |
5385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5386 | for as_dir in $PATH | |
5387 | do | |
5388 | IFS=$as_save_IFS | |
5389 | test -z "$as_dir" && as_dir=. | |
5390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5392 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5393 | ac_prog_rejected=yes | |
5394 | continue | |
5395 | fi | |
5396 | ac_cv_prog_CC="cc" | |
5397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5398 | break 2 | |
5399 | fi | |
5400 | done | |
5401 | done | |
5402 | IFS=$as_save_IFS | |
5403 | ||
5404 | if test $ac_prog_rejected = yes; then | |
5405 | # We found a bogon in the path, so make sure we never use it. | |
5406 | set dummy $ac_cv_prog_CC | |
5407 | shift | |
5408 | if test $# != 0; then | |
5409 | # We chose a different compiler from the bogus one. | |
5410 | # However, it has the same basename, so the bogon will be chosen | |
5411 | # first if we set CC to just the basename; use the full file name. | |
5412 | shift | |
5413 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5414 | fi | |
5415 | fi | |
5416 | fi | |
5417 | fi | |
5418 | CC=$ac_cv_prog_CC | |
5419 | if test -n "$CC"; then | |
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5421 | $as_echo "$CC" >&6; } | |
5422 | else | |
5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5424 | $as_echo "no" >&6; } | |
5425 | fi | |
5426 | ||
5427 | ||
5428 | fi | |
5429 | if test -z "$CC"; then | |
5430 | if test -n "$ac_tool_prefix"; then | |
5431 | for ac_prog in cl.exe | |
5432 | do | |
5433 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5434 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5436 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5437 | if ${ac_cv_prog_CC+:} false; then : |
d5d92632 | 5438 | $as_echo_n "(cached) " >&6 |
5439 | else | |
5440 | if test -n "$CC"; then | |
5441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5442 | else | |
5443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5444 | for as_dir in $PATH | |
5445 | do | |
5446 | IFS=$as_save_IFS | |
5447 | test -z "$as_dir" && as_dir=. | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5449 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5450 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5452 | break 2 | |
5453 | fi | |
5454 | done | |
5455 | done | |
5456 | IFS=$as_save_IFS | |
5457 | ||
5458 | fi | |
5459 | fi | |
5460 | CC=$ac_cv_prog_CC | |
5461 | if test -n "$CC"; then | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5463 | $as_echo "$CC" >&6; } | |
5464 | else | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5466 | $as_echo "no" >&6; } | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | test -n "$CC" && break | |
5471 | done | |
5472 | fi | |
5473 | if test -z "$CC"; then | |
5474 | ac_ct_CC=$CC | |
5475 | for ac_prog in cl.exe | |
5476 | do | |
5477 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5478 | set dummy $ac_prog; ac_word=$2 | |
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5480 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5481 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
d5d92632 | 5482 | $as_echo_n "(cached) " >&6 |
5483 | else | |
5484 | if test -n "$ac_ct_CC"; then | |
5485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5486 | else | |
5487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5488 | for as_dir in $PATH | |
5489 | do | |
5490 | IFS=$as_save_IFS | |
5491 | test -z "$as_dir" && as_dir=. | |
5492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5494 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5496 | break 2 | |
5497 | fi | |
5498 | done | |
5499 | done | |
5500 | IFS=$as_save_IFS | |
5501 | ||
5502 | fi | |
5503 | fi | |
5504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5505 | if test -n "$ac_ct_CC"; then | |
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5507 | $as_echo "$ac_ct_CC" >&6; } | |
5508 | else | |
5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5510 | $as_echo "no" >&6; } | |
5511 | fi | |
5512 | ||
5513 | ||
5514 | test -n "$ac_ct_CC" && break | |
5515 | done | |
5516 | ||
5517 | if test "x$ac_ct_CC" = x; then | |
5518 | CC="" | |
5519 | else | |
5520 | case $cross_compiling:$ac_tool_warned in | |
5521 | yes:) | |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5523 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5524 | ac_tool_warned=yes ;; | |
5525 | esac | |
5526 | CC=$ac_ct_CC | |
5527 | fi | |
5528 | fi | |
5529 | ||
5530 | fi | |
5531 | ||
5532 | ||
5533 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 5535 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5536 | See \`config.log' for more details" "$LINENO" 5; } | |
d5d92632 | 5537 | |
5538 | # Provide some information about the compiler. | |
5539 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5540 | set X $ac_compile | |
5541 | ac_compiler=$2 | |
5542 | for ac_option in --version -v -V -qversion; do | |
5543 | { { ac_try="$ac_compiler $ac_option >&5" | |
5544 | case "(($ac_try" in | |
5545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5546 | *) ac_try_echo=$ac_try;; | |
5547 | esac | |
5548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5549 | $as_echo "$ac_try_echo"; } >&5 | |
5550 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5551 | ac_status=$? | |
5552 | if test -s conftest.err; then | |
5553 | sed '10a\ | |
5554 | ... rest of stderr output deleted ... | |
5555 | 10q' conftest.err >conftest.er1 | |
5556 | cat conftest.er1 >&5 | |
d5d92632 | 5557 | fi |
f00f02a3 | 5558 | rm -f conftest.er1 conftest.err |
d5d92632 | 5559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5560 | test $ac_status = 0; } | |
5561 | done | |
5562 | ||
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5564 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 5565 | if ${ac_cv_c_compiler_gnu+:} false; then : |
d5d92632 | 5566 | $as_echo_n "(cached) " >&6 |
5567 | else | |
5568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5569 | /* end confdefs.h. */ | |
5570 | ||
5571 | int | |
5572 | main () | |
5573 | { | |
5574 | #ifndef __GNUC__ | |
5575 | choke me | |
5576 | #endif | |
5577 | ||
5578 | ; | |
5579 | return 0; | |
5580 | } | |
5581 | _ACEOF | |
5582 | if ac_fn_c_try_compile "$LINENO"; then : | |
5583 | ac_compiler_gnu=yes | |
5584 | else | |
5585 | ac_compiler_gnu=no | |
5586 | fi | |
5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5588 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5589 | ||
5590 | fi | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5592 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5593 | if test $ac_compiler_gnu = yes; then | |
5594 | GCC=yes | |
5595 | else | |
5596 | GCC= | |
5597 | fi | |
5598 | ac_test_CFLAGS=${CFLAGS+set} | |
5599 | ac_save_CFLAGS=$CFLAGS | |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5601 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 5602 | if ${ac_cv_prog_cc_g+:} false; then : |
d5d92632 | 5603 | $as_echo_n "(cached) " >&6 |
5604 | else | |
5605 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5606 | ac_c_werror_flag=yes | |
5607 | ac_cv_prog_cc_g=no | |
5608 | CFLAGS="-g" | |
5609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5610 | /* end confdefs.h. */ | |
5611 | ||
5612 | int | |
5613 | main () | |
5614 | { | |
5615 | ||
5616 | ; | |
5617 | return 0; | |
5618 | } | |
5619 | _ACEOF | |
5620 | if ac_fn_c_try_compile "$LINENO"; then : | |
5621 | ac_cv_prog_cc_g=yes | |
5622 | else | |
5623 | CFLAGS="" | |
5624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5625 | /* end confdefs.h. */ | |
5626 | ||
5627 | int | |
5628 | main () | |
5629 | { | |
5630 | ||
5631 | ; | |
5632 | return 0; | |
5633 | } | |
5634 | _ACEOF | |
5635 | if ac_fn_c_try_compile "$LINENO"; then : | |
5636 | ||
5637 | else | |
5638 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5639 | CFLAGS="-g" | |
5640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5641 | /* end confdefs.h. */ | |
5642 | ||
5643 | int | |
5644 | main () | |
5645 | { | |
5646 | ||
5647 | ; | |
5648 | return 0; | |
5649 | } | |
5650 | _ACEOF | |
5651 | if ac_fn_c_try_compile "$LINENO"; then : | |
5652 | ac_cv_prog_cc_g=yes | |
5653 | fi | |
5654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5655 | fi | |
5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5657 | fi | |
5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5659 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5660 | fi | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5662 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5663 | if test "$ac_test_CFLAGS" = set; then | |
5664 | CFLAGS=$ac_save_CFLAGS | |
5665 | elif test $ac_cv_prog_cc_g = yes; then | |
5666 | if test "$GCC" = yes; then | |
5667 | CFLAGS="-g -O2" | |
5668 | else | |
5669 | CFLAGS="-g" | |
5670 | fi | |
5671 | else | |
5672 | if test "$GCC" = yes; then | |
5673 | CFLAGS="-O2" | |
5674 | else | |
5675 | CFLAGS= | |
5676 | fi | |
5677 | fi | |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5679 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 5680 | if ${ac_cv_prog_cc_c89+:} false; then : |
d5d92632 | 5681 | $as_echo_n "(cached) " >&6 |
5682 | else | |
5683 | ac_cv_prog_cc_c89=no | |
5684 | ac_save_CC=$CC | |
5685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5686 | /* end confdefs.h. */ | |
5687 | #include <stdarg.h> | |
5688 | #include <stdio.h> | |
f00f02a3 | 5689 | struct stat; |
d5d92632 | 5690 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5691 | struct buf { int x; }; | |
5692 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5693 | static char *e (p, i) | |
5694 | char **p; | |
5695 | int i; | |
5696 | { | |
5697 | return p[i]; | |
5698 | } | |
5699 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5700 | { | |
5701 | char *s; | |
5702 | va_list v; | |
5703 | va_start (v,p); | |
5704 | s = g (p, va_arg (v,int)); | |
5705 | va_end (v); | |
5706 | return s; | |
5707 | } | |
5708 | ||
5709 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5710 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5711 | These don't provoke an error unfortunately, instead are silently treated | |
5712 | as 'x'. The following induces an error, until -std is added to get | |
5713 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5714 | array size at least. It's necessary to write '\x00'==0 to get something | |
5715 | that's true only with -std. */ | |
5716 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5717 | ||
5718 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5719 | inside strings and character constants. */ | |
5720 | #define FOO(x) 'x' | |
5721 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5722 | ||
5723 | int test (int i, double x); | |
5724 | struct s1 {int (*f) (int a);}; | |
5725 | struct s2 {int (*f) (double a);}; | |
5726 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5727 | int argc; | |
5728 | char **argv; | |
5729 | int | |
5730 | main () | |
5731 | { | |
5732 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5733 | ; | |
5734 | return 0; | |
5735 | } | |
5736 | _ACEOF | |
5737 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5738 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5739 | do | |
5740 | CC="$ac_save_CC $ac_arg" | |
5741 | if ac_fn_c_try_compile "$LINENO"; then : | |
5742 | ac_cv_prog_cc_c89=$ac_arg | |
5743 | fi | |
5744 | rm -f core conftest.err conftest.$ac_objext | |
5745 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5746 | done | |
5747 | rm -f conftest.$ac_ext | |
5748 | CC=$ac_save_CC | |
5749 | ||
5750 | fi | |
5751 | # AC_CACHE_VAL | |
5752 | case "x$ac_cv_prog_cc_c89" in | |
5753 | x) | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5755 | $as_echo "none needed" >&6; } ;; | |
5756 | xno) | |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5758 | $as_echo "unsupported" >&6; } ;; | |
5759 | *) | |
5760 | CC="$CC $ac_cv_prog_cc_c89" | |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5762 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5763 | esac | |
5764 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5765 | ||
5766 | fi | |
5767 | ||
5768 | ac_ext=c | |
5769 | ac_cpp='$CPP $CPPFLAGS' | |
5770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5773 | ||
f00f02a3 | 5774 | ac_ext=c |
5775 | ac_cpp='$CPP $CPPFLAGS' | |
5776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5780 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5781 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5782 | $as_echo_n "(cached) " >&6 | |
5783 | else | |
5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5785 | /* end confdefs.h. */ | |
5786 | ||
5787 | int | |
5788 | main () | |
5789 | { | |
5790 | ||
5791 | ; | |
5792 | return 0; | |
5793 | } | |
5794 | _ACEOF | |
5795 | # Make sure it works both with $CC and with simple cc. | |
5796 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5797 | # compilers refuse to overwrite an existing .o file with -o, | |
5798 | # though they will create one. | |
5799 | am_cv_prog_cc_c_o=yes | |
5800 | for am_i in 1 2; do | |
5801 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5802 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5803 | ac_status=$? | |
5804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5805 | (exit $ac_status); } \ | |
5806 | && test -f conftest2.$ac_objext; then | |
5807 | : OK | |
5808 | else | |
5809 | am_cv_prog_cc_c_o=no | |
5810 | break | |
5811 | fi | |
5812 | done | |
5813 | rm -f core conftest* | |
5814 | unset am_i | |
5815 | fi | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5817 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5818 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5819 | # Losing compiler, so override with the script. | |
5820 | # FIXME: It is wrong to rewrite CC. | |
5821 | # But if we don't then we get into trouble of one sort or another. | |
5822 | # A longer-term fix would be to have automake use am__CC in this case, | |
5823 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5824 | CC="$am_aux_dir/compile $CC" | |
5825 | fi | |
5826 | ac_ext=c | |
5827 | ac_cpp='$CPP $CPPFLAGS' | |
5828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5831 | ||
5832 | ||
d5d92632 | 5833 | depcc="$CC" am_compiler_list= |
5834 | ||
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5836 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
f00f02a3 | 5837 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
d5d92632 | 5838 | $as_echo_n "(cached) " >&6 |
5839 | else | |
5840 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5841 | # We make a subdir and do the tests there. Otherwise we can end up | |
5842 | # making bogus files that we don't know about and never remove. For | |
5843 | # instance it was reported that on HP-UX the gcc test will end up | |
f00f02a3 | 5844 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5845 | # in D". | |
544db64f | 5846 | rm -rf conftest.dir |
d5d92632 | 5847 | mkdir conftest.dir |
5848 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5849 | # using a relative directory. | |
5850 | cp "$am_depcomp" conftest.dir | |
5851 | cd conftest.dir | |
5852 | # We will build objects and dependencies in a subdirectory because | |
5853 | # it helps to detect inapplicable dependency modes. For instance | |
5854 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5855 | # side effect of compilation, but ICC will put the dependencies in | |
5856 | # the current directory while Tru64 will put them in the object | |
5857 | # directory. | |
5858 | mkdir sub | |
5859 | ||
5860 | am_cv_CC_dependencies_compiler_type=none | |
5861 | if test "$am_compiler_list" = ""; then | |
5862 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5863 | fi | |
5864 | am__universal=false | |
5865 | case " $depcc " in #( | |
5866 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5867 | esac | |
5868 | ||
5869 | for depmode in $am_compiler_list; do | |
5870 | # Setup a source with many dependencies, because some compilers | |
5871 | # like to wrap large dependency lists on column 80 (with \), and | |
5872 | # we should not choose a depcomp mode which is confused by this. | |
5873 | # | |
5874 | # We need to recreate these files for each test, as the compiler may | |
5875 | # overwrite some of them when testing with obscure command lines. | |
5876 | # This happens at least with the AIX C compiler. | |
5877 | : > sub/conftest.c | |
5878 | for i in 1 2 3 4 5 6; do | |
5879 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
f00f02a3 | 5880 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5881 | # Solaris 10 /bin/sh. | |
5882 | echo '/* dummy */' > sub/conftst$i.h | |
d5d92632 | 5883 | done |
5884 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5885 | ||
f00f02a3 | 5886 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
d5d92632 | 5887 | # mode. It turns out that the SunPro C++ compiler does not properly |
f00f02a3 | 5888 | # handle '-M -o', and we need to detect this. Also, some Intel |
5889 | # versions had trouble with output in subdirs. | |
d5d92632 | 5890 | am__obj=sub/conftest.${OBJEXT-o} |
5891 | am__minus_obj="-o $am__obj" | |
5892 | case $depmode in | |
5893 | gcc) | |
5894 | # This depmode causes a compiler race in universal mode. | |
5895 | test "$am__universal" = false || continue | |
5896 | ;; | |
5897 | nosideeffect) | |
f00f02a3 | 5898 | # After this tag, mechanisms are not by side-effect, so they'll |
5899 | # only be used when explicitly requested. | |
d5d92632 | 5900 | if test "x$enable_dependency_tracking" = xyes; then |
5901 | continue | |
5902 | else | |
5903 | break | |
5904 | fi | |
5905 | ;; | |
544db64f | 5906 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
f00f02a3 | 5907 | # This compiler won't grok '-c -o', but also, the minuso test has |
d5d92632 | 5908 | # not run yet. These depmodes are late enough in the game, and |
5909 | # so weak that their functioning should not be impacted. | |
5910 | am__obj=conftest.${OBJEXT-o} | |
5911 | am__minus_obj= | |
5912 | ;; | |
5913 | none) break ;; | |
5914 | esac | |
5915 | if depmode=$depmode \ | |
5916 | source=sub/conftest.c object=$am__obj \ | |
5917 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5918 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5919 | >/dev/null 2>conftest.err && | |
5920 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5921 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5922 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5923 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5924 | # icc doesn't choke on unknown options, it will just issue warnings | |
5925 | # or remarks (even with -Werror). So we grep stderr for any message | |
5926 | # that says an option was ignored or not supported. | |
5927 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5928 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5929 | # The diagnosis changed in icc 8.0: | |
5930 | # icc: Command line remark: option '-MP' not supported | |
5931 | if (grep 'ignoring option' conftest.err || | |
5932 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5933 | am_cv_CC_dependencies_compiler_type=$depmode | |
5934 | break | |
5935 | fi | |
5936 | fi | |
5937 | done | |
5938 | ||
5939 | cd .. | |
5940 | rm -rf conftest.dir | |
5941 | else | |
5942 | am_cv_CC_dependencies_compiler_type=none | |
5943 | fi | |
5944 | ||
5945 | fi | |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5947 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5948 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5949 | ||
5950 | if | |
5951 | test "x$enable_dependency_tracking" != xno \ | |
5952 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5953 | am__fastdepCC_TRUE= | |
5954 | am__fastdepCC_FALSE='#' | |
5955 | else | |
5956 | am__fastdepCC_TRUE='#' | |
5957 | am__fastdepCC_FALSE= | |
5958 | fi | |
5959 | ||
5960 | ||
5961 | ||
5962 | ||
7eda0fb7 | 5963 | |
5964 | ||
7eda0fb7 | 5965 | |
5966 | ||
d5d92632 | 5967 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5968 | if test "x$GCC" = "xyes"; then | |
5969 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
a159faeb | 5970 | ## We like to use C11 and C99 routines when available. This makes |
5971 | ## sure that | |
d5d92632 | 5972 | ## __STDC_VERSION__ is set such that libc includes make them available. |
2cb567cf | 5973 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
d5d92632 | 5974 | ## Compile the following tests with the same system header contents |
5975 | ## that we'll encounter when compiling our own source files. | |
a159faeb | 5976 | CFLAGS="-std=gnu11 $CFLAGS" |
d5d92632 | 5977 | fi |
5978 | ||
42ea2de2 | 5979 | # Add CET specific flags if CET is enabled |
5980 | # Check whether --enable-cet was given. | |
5981 | if test "${enable_cet+set}" = set; then : | |
5982 | enableval=$enable_cet; | |
5983 | case "$enableval" in | |
ee8fea81 | 5984 | yes|no|auto) ;; |
f00f02a3 | 5985 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
42ea2de2 | 5986 | esac |
5987 | ||
5988 | else | |
ee8fea81 | 5989 | enable_cet=no |
42ea2de2 | 5990 | fi |
5991 | ||
5992 | ||
5611e648 | 5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
5994 | $as_echo_n "checking for CET support... " >&6; } | |
5995 | ||
42ea2de2 | 5996 | case "$host" in |
5997 | i[34567]86-*-linux* | x86_64-*-linux*) | |
5998 | case "$enable_cet" in | |
ee8fea81 | 5999 | auto) |
5611e648 | 6000 | # Check if target supports multi-byte NOPs |
6001 | # and if assembler supports CET insn. | |
42ea2de2 | 6002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6003 | /* end confdefs.h. */ | |
6004 | ||
6005 | int | |
6006 | main () | |
6007 | { | |
5611e648 | 6008 | |
6009 | #if !defined(__SSE2__) | |
6010 | #error target does not support multi-byte NOPs | |
6011 | #else | |
42ea2de2 | 6012 | asm ("setssbsy"); |
5611e648 | 6013 | #endif |
6014 | ||
42ea2de2 | 6015 | ; |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | if ac_fn_c_try_compile "$LINENO"; then : | |
6020 | enable_cet=yes | |
6021 | else | |
6022 | enable_cet=no | |
6023 | fi | |
6024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6025 | ;; | |
6026 | yes) | |
6027 | # Check if assembler supports CET. | |
6028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6029 | /* end confdefs.h. */ | |
6030 | ||
6031 | int | |
6032 | main () | |
6033 | { | |
6034 | asm ("setssbsy"); | |
6035 | ; | |
6036 | return 0; | |
6037 | } | |
6038 | _ACEOF | |
6039 | if ac_fn_c_try_compile "$LINENO"; then : | |
6040 | ||
6041 | else | |
f00f02a3 | 6042 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
42ea2de2 | 6043 | fi |
6044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6045 | ;; | |
6046 | esac | |
6047 | ;; | |
6048 | *) | |
6049 | enable_cet=no | |
6050 | ;; | |
6051 | esac | |
6052 | if test x$enable_cet = xyes; then | |
6726651f | 6053 | CET_FLAGS="-fcf-protection -mshstk" |
5611e648 | 6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6055 | $as_echo "yes" >&6; } | |
6056 | else | |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6058 | $as_echo "no" >&6; } | |
42ea2de2 | 6059 | fi |
6060 | ||
6061 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6062 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6063 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6064 | ||
6065 | ||
d5d92632 | 6066 | |
6067 | ||
6068 | ||
6069 | # Check for symbol versioning (copied from libssp). | |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6071 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bbb514dc | 6072 | # Check whether --enable-symvers was given. |
6073 | if test "${enable_symvers+set}" = set; then : | |
6074 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6075 | else | |
6076 | gfortran_use_symver=yes | |
6077 | fi | |
6078 | ||
06e4a265 | 6079 | if test "x$gfortran_use_symver" != xno; then |
bbb514dc | 6080 | save_LDFLAGS="$LDFLAGS" |
6081 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6082 | cat > conftest.map <<EOF | |
d5d92632 | 6083 | FOO_1.0 { |
6084 | global: *foo*; bar; local: *; | |
6085 | }; | |
6086 | EOF | |
bbb514dc | 6087 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 6088 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 6089 | fi |
6090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6091 | /* end confdefs.h. */ | |
6092 | int foo; | |
6093 | int | |
6094 | main () | |
6095 | { | |
6096 | ||
6097 | ; | |
6098 | return 0; | |
6099 | } | |
6100 | _ACEOF | |
6101 | if ac_fn_c_try_link "$LINENO"; then : | |
6102 | gfortran_use_symver=gnu | |
6103 | else | |
6104 | gfortran_use_symver=no | |
6105 | fi | |
6106 | rm -f core conftest.err conftest.$ac_objext \ | |
6107 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 6108 | if test x$gfortran_use_symver = xno; then |
6109 | case "$target_os" in | |
6110 | solaris2*) | |
6111 | LDFLAGS="$save_LDFLAGS" | |
6112 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6113 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6114 | cat > conftest.map <<EOF | |
d5d92632 | 6115 | FOO_1.0 { |
6116 | global: foo; local: *; | |
6117 | }; | |
6118 | EOF | |
bbb514dc | 6119 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 6120 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 6121 | fi |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6123 | /* end confdefs.h. */ | |
6124 | int foo; | |
6125 | int | |
6126 | main () | |
6127 | { | |
6128 | ||
6129 | ; | |
6130 | return 0; | |
6131 | } | |
6132 | _ACEOF | |
6133 | if ac_fn_c_try_link "$LINENO"; then : | |
6134 | gfortran_use_symver=sun | |
6135 | else | |
6136 | gfortran_use_symver=no | |
6137 | fi | |
6138 | rm -f core conftest.err conftest.$ac_objext \ | |
6139 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 6140 | ;; |
6141 | esac | |
6142 | fi | |
6143 | LDFLAGS="$save_LDFLAGS" | |
d5d92632 | 6144 | fi |
d5d92632 | 6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6146 | $as_echo "$gfortran_use_symver" >&6; } | |
6147 | if test "x$gfortran_use_symver" != xno; then | |
6148 | LIBGFOR_USE_SYMVER_TRUE= | |
6149 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6150 | else | |
6151 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6152 | LIBGFOR_USE_SYMVER_FALSE= | |
6153 | fi | |
6154 | ||
6155 | if test "x$gfortran_use_symver" = xgnu; then | |
6156 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6157 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6158 | else | |
6159 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6160 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6161 | fi | |
6162 | ||
6163 | if test "x$gfortran_use_symver" = xsun; then | |
6164 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6165 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6166 | else | |
6167 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6168 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6169 | fi | |
6170 | ||
6171 | ||
eb00e55c | 6172 | # For GPU offloading, not everything in libfortran can be supported. |
6173 | # Currently, the only target that has this problem is nvptx. The | |
6174 | # following is a (partial) list of features that are unsupportable on | |
6175 | # this particular target: | |
6176 | # * Constructors | |
6177 | # * alloca | |
6178 | # * C library support for I/O, with printf as the one notable exception | |
6179 | # * C library support for other features such as signal, environment | |
6180 | # variables, time functions | |
6181 | ||
14462095 | 6182 | if test "x${target_cpu}" = xnvptx; then |
eb00e55c | 6183 | LIBGFOR_MINIMAL_TRUE= |
6184 | LIBGFOR_MINIMAL_FALSE='#' | |
6185 | else | |
6186 | LIBGFOR_MINIMAL_TRUE='#' | |
6187 | LIBGFOR_MINIMAL_FALSE= | |
6188 | fi | |
6189 | ||
6190 | ||
d5d92632 | 6191 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6192 | # similarly to how libstdc++ does it | |
6193 | ac_test_CFLAGS="${CFLAGS+set}" | |
6194 | ac_save_CFLAGS="$CFLAGS" | |
6195 | ||
6196 | # Check for -ffunction-sections -fdata-sections | |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6198 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6199 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6201 | /* end confdefs.h. */ | |
6202 | ||
6203 | int | |
6204 | main () | |
6205 | { | |
6206 | int foo; | |
6207 | ; | |
6208 | return 0; | |
6209 | } | |
6210 | _ACEOF | |
6211 | if ac_fn_c_try_compile "$LINENO"; then : | |
6212 | ac_fdsections=yes | |
6213 | else | |
6214 | ac_fdsections=no | |
6215 | fi | |
6216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6217 | if test "$ac_test_CFLAGS" = set; then | |
6218 | CFLAGS="$ac_save_CFLAGS" | |
6219 | else | |
6220 | # this is the suspicious part | |
6221 | CFLAGS="" | |
6222 | fi | |
6223 | if test x"$ac_fdsections" = x"yes"; then | |
6224 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6225 | fi | |
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6227 | $as_echo "$ac_fdsections" >&6; } | |
6228 | ||
6229 | ||
18ce903b | 6230 | # Check linker hardware capability support. |
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6232 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
f00f02a3 | 6233 | if ${ac_cv_path_SED+:} false; then : |
d5d92632 | 6234 | $as_echo_n "(cached) " >&6 |
6235 | else | |
18ce903b | 6236 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6237 | for ac_i in 1 2 3 4 5 6 7; do | |
6238 | ac_script="$ac_script$as_nl$ac_script" | |
6239 | done | |
6240 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6241 | { ac_script=; unset ac_script;} | |
6242 | if test -z "$SED"; then | |
6243 | ac_path_SED_found=false | |
6244 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d5d92632 | 6246 | for as_dir in $PATH |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
18ce903b | 6250 | for ac_prog in sed gsed; do |
d5d92632 | 6251 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6252 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 6253 | as_fn_executable_p "$ac_path_SED" || continue |
18ce903b | 6254 | # Check for GNU ac_path_SED and select it if it is found. |
6255 | # Check for GNU $ac_path_SED | |
6256 | case `"$ac_path_SED" --version 2>&1` in | |
6257 | *GNU*) | |
6258 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6259 | *) | |
6260 | ac_count=0 | |
6261 | $as_echo_n 0123456789 >"conftest.in" | |
6262 | while : | |
6263 | do | |
6264 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6265 | mv "conftest.tmp" "conftest.in" | |
6266 | cp "conftest.in" "conftest.nl" | |
6267 | $as_echo '' >> "conftest.nl" | |
6268 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6269 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6270 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6271 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6272 | # Best one so far, save it but keep looking for a better one | |
6273 | ac_cv_path_SED="$ac_path_SED" | |
6274 | ac_path_SED_max=$ac_count | |
6275 | fi | |
6276 | # 10*(2^10) chars as input seems more than enough | |
6277 | test $ac_count -gt 10 && break | |
d5d92632 | 6278 | done |
18ce903b | 6279 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6280 | esac | |
d5d92632 | 6281 | |
18ce903b | 6282 | $ac_path_SED_found && break 3 |
6283 | done | |
6284 | done | |
d5d92632 | 6285 | done |
6286 | IFS=$as_save_IFS | |
18ce903b | 6287 | if test -z "$ac_cv_path_SED"; then |
f00f02a3 | 6288 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
18ce903b | 6289 | fi |
d5d92632 | 6290 | else |
18ce903b | 6291 | ac_cv_path_SED=$SED |
d5d92632 | 6292 | fi |
6293 | ||
d5d92632 | 6294 | fi |
18ce903b | 6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6296 | $as_echo "$ac_cv_path_SED" >&6; } | |
6297 | SED="$ac_cv_path_SED" | |
6298 | rm -f conftest.sed | |
d5d92632 | 6299 | |
18ce903b | 6300 | test -z "$SED" && SED=sed |
6301 | Xsed="$SED -e 1s/^X//" | |
d5d92632 | 6302 | |
d5d92632 | 6303 | |
6304 | ||
18ce903b | 6305 | |
6306 | ||
6307 | ||
6308 | ||
6309 | ||
6310 | ||
6311 | ||
6312 | ||
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6314 | $as_echo_n "checking for fgrep... " >&6; } | |
f00f02a3 | 6315 | if ${ac_cv_path_FGREP+:} false; then : |
d5d92632 | 6316 | $as_echo_n "(cached) " >&6 |
6317 | else | |
18ce903b | 6318 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6319 | then ac_cv_path_FGREP="$GREP -F" | |
6320 | else | |
6321 | if test -z "$FGREP"; then | |
6322 | ac_path_FGREP_found=false | |
6323 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6325 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d5d92632 | 6326 | do |
6327 | IFS=$as_save_IFS | |
6328 | test -z "$as_dir" && as_dir=. | |
18ce903b | 6329 | for ac_prog in fgrep; do |
d5d92632 | 6330 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6331 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 6332 | as_fn_executable_p "$ac_path_FGREP" || continue |
18ce903b | 6333 | # Check for GNU ac_path_FGREP and select it if it is found. |
6334 | # Check for GNU $ac_path_FGREP | |
6335 | case `"$ac_path_FGREP" --version 2>&1` in | |
6336 | *GNU*) | |
6337 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6338 | *) | |
6339 | ac_count=0 | |
6340 | $as_echo_n 0123456789 >"conftest.in" | |
6341 | while : | |
6342 | do | |
6343 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6344 | mv "conftest.tmp" "conftest.in" | |
6345 | cp "conftest.in" "conftest.nl" | |
6346 | $as_echo 'FGREP' >> "conftest.nl" | |
6347 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6349 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6350 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6351 | # Best one so far, save it but keep looking for a better one | |
6352 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6353 | ac_path_FGREP_max=$ac_count | |
6354 | fi | |
6355 | # 10*(2^10) chars as input seems more than enough | |
6356 | test $ac_count -gt 10 && break | |
6357 | done | |
6358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6359 | esac | |
6360 | ||
6361 | $ac_path_FGREP_found && break 3 | |
6362 | done | |
6363 | done | |
d5d92632 | 6364 | done |
6365 | IFS=$as_save_IFS | |
18ce903b | 6366 | if test -z "$ac_cv_path_FGREP"; then |
f00f02a3 | 6367 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
18ce903b | 6368 | fi |
6369 | else | |
6370 | ac_cv_path_FGREP=$FGREP | |
6371 | fi | |
d5d92632 | 6372 | |
18ce903b | 6373 | fi |
d5d92632 | 6374 | fi |
18ce903b | 6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6376 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6377 | FGREP="$ac_cv_path_FGREP" | |
542f9784 | 6378 | |
6379 | ||
18ce903b | 6380 | test -z "$GREP" && GREP=grep |
542f9784 | 6381 | |
6382 | ||
6383 | ||
6384 | ||
4ee9c684 | 6385 | |
542f9784 | 6386 | |
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
e6408286 | 6393 | |
e6408286 | 6394 | |
e6408286 | 6395 | |
e6408286 | 6396 | |
e6408286 | 6397 | |
6398 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6399 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6400 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6401 | ||
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6403 | $as_echo_n "checking how to print strings... " >&6; } | |
6404 | # Test print first, because it will be a builtin if present. | |
6405 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6406 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6407 | ECHO='print -r --' | |
6408 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6409 | ECHO='printf %s\n' | |
6410 | else | |
6411 | # Use this function as a fallback that always works. | |
6412 | func_fallback_echo () | |
6413 | { | |
6414 | eval 'cat <<_LTECHO_EOF | |
6415 | $1 | |
6416 | _LTECHO_EOF' | |
6417 | } | |
6418 | ECHO='func_fallback_echo' | |
6419 | fi | |
6420 | ||
6421 | # func_echo_all arg... | |
6422 | # Invoke $ECHO with all args, space-separated. | |
6423 | func_echo_all () | |
6424 | { | |
6425 | $ECHO "" | |
6426 | } | |
6427 | ||
6428 | case "$ECHO" in | |
6429 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6430 | $as_echo "printf" >&6; } ;; | |
6431 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6432 | $as_echo "print -r" >&6; } ;; | |
6433 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6434 | $as_echo "cat" >&6; } ;; | |
6435 | esac | |
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
d5d92632 | 6448 | |
6449 | ||
cd9a469c | 6450 | |
cd9a469c | 6451 | |
18ce903b | 6452 | # Check whether --with-gnu-ld was given. |
6453 | if test "${with_gnu_ld+set}" = set; then : | |
6454 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6455 | else | |
6456 | with_gnu_ld=no | |
542f9784 | 6457 | fi |
d5d92632 | 6458 | |
18ce903b | 6459 | ac_prog=ld |
6460 | if test "$GCC" = yes; then | |
6461 | # Check if gcc -print-prog-name=ld gives a path. | |
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6463 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6464 | case $host in | |
6465 | *-*-mingw*) | |
6466 | # gcc leaves a trailing carriage return which upsets mingw | |
6467 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6468 | *) | |
6469 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6470 | esac | |
6471 | case $ac_prog in | |
6472 | # Accept absolute paths. | |
6473 | [\\/]* | ?:[\\/]*) | |
6474 | re_direlt='/[^/][^/]*/\.\./' | |
6475 | # Canonicalize the pathname of ld | |
6476 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6477 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6478 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6479 | done | |
6480 | test -z "$LD" && LD="$ac_prog" | |
6481 | ;; | |
6482 | "") | |
6483 | # If it fails, then pretend we aren't using GCC. | |
6484 | ac_prog=ld | |
6485 | ;; | |
6486 | *) | |
6487 | # If it is relative, then search for the first ld in PATH. | |
6488 | with_gnu_ld=unknown | |
6489 | ;; | |
6490 | esac | |
6491 | elif test "$with_gnu_ld" = yes; then | |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6493 | $as_echo_n "checking for GNU ld... " >&6; } | |
6494 | else | |
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6496 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6497 | fi | |
f00f02a3 | 6498 | if ${lt_cv_path_LD+:} false; then : |
18ce903b | 6499 | $as_echo_n "(cached) " >&6 |
6500 | else | |
6501 | if test -z "$LD"; then | |
6502 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6503 | for ac_dir in $PATH; do | |
6504 | IFS="$lt_save_ifs" | |
6505 | test -z "$ac_dir" && ac_dir=. | |
6506 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6507 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6508 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6509 | # but apparently some variants of GNU ld only accept -v. | |
6510 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6511 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6512 | *GNU* | *'with BFD'*) | |
6513 | test "$with_gnu_ld" != no && break | |
6514 | ;; | |
6515 | *) | |
6516 | test "$with_gnu_ld" != yes && break | |
6517 | ;; | |
6518 | esac | |
6519 | fi | |
6520 | done | |
6521 | IFS="$lt_save_ifs" | |
6522 | else | |
6523 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6524 | fi | |
6525 | fi | |
6526 | ||
6527 | LD="$lt_cv_path_LD" | |
6528 | if test -n "$LD"; then | |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6530 | $as_echo "$LD" >&6; } | |
6531 | else | |
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6533 | $as_echo "no" >&6; } | |
6534 | fi | |
f00f02a3 | 6535 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
18ce903b | 6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6537 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
f00f02a3 | 6538 | if ${lt_cv_prog_gnu_ld+:} false; then : |
18ce903b | 6539 | $as_echo_n "(cached) " >&6 |
6540 | else | |
6541 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6542 | case `$LD -v 2>&1 </dev/null` in | |
6543 | *GNU* | *'with BFD'*) | |
6544 | lt_cv_prog_gnu_ld=yes | |
6545 | ;; | |
6546 | *) | |
6547 | lt_cv_prog_gnu_ld=no | |
6548 | ;; | |
6549 | esac | |
6550 | fi | |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6552 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6553 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d5d92632 | 6554 | |
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
542f9784 | 6562 | |
6563 | ||
18ce903b | 6564 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6565 | ||
6566 | ||
6567 | ac_save_LDFLAGS="$LDFLAGS" | |
6568 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6569 | ||
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6571 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6572 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 6573 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
18ce903b | 6574 | fi |
6575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6576 | /* end confdefs.h. */ | |
6577 | ||
6578 | int | |
6579 | main () | |
6580 | { | |
6581 | return 0; | |
6582 | ; | |
6583 | return 0; | |
6584 | } | |
6585 | _ACEOF | |
6586 | if ac_fn_c_try_link "$LINENO"; then : | |
6587 | ac_hwcap_ldflags=yes | |
6588 | else | |
6589 | ac_hwcap_ldflags=no | |
6590 | fi | |
6591 | rm -f core conftest.err conftest.$ac_objext \ | |
6592 | conftest$ac_exeext conftest.$ac_ext | |
6593 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6594 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6595 | fi | |
6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6597 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6598 | ||
6599 | LDFLAGS="$ac_save_LDFLAGS" | |
6600 | ||
6601 | ||
6602 | ||
6603 | if test $ac_hwcap_ldflags != no; then | |
6604 | HAVE_HWCAP_TRUE= | |
6605 | HAVE_HWCAP_FALSE='#' | |
6606 | else | |
6607 | HAVE_HWCAP_TRUE='#' | |
6608 | HAVE_HWCAP_FALSE= | |
6609 | fi | |
6610 | ||
6611 | ||
6612 | ||
6613 | # Find other programs we need. | |
6614 | if test -n "$ac_tool_prefix"; then | |
6615 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6616 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6618 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6619 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 6620 | $as_echo_n "(cached) " >&6 |
82eaf560 | 6621 | else |
18ce903b | 6622 | if test -n "$AS"; then |
6623 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6624 | else | |
6625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6626 | for as_dir in $PATH | |
cd9a469c | 6627 | do |
6628 | IFS=$as_save_IFS | |
6629 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6630 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6632 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6634 | break 2 | |
6635 | fi | |
6636 | done | |
cd9a469c | 6637 | done |
18ce903b | 6638 | IFS=$as_save_IFS |
6639 | ||
6640 | fi | |
6641 | fi | |
6642 | AS=$ac_cv_prog_AS | |
6643 | if test -n "$AS"; then | |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6645 | $as_echo "$AS" >&6; } | |
6646 | else | |
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6648 | $as_echo "no" >&6; } | |
6649 | fi | |
6650 | ||
6651 | ||
6652 | fi | |
6653 | if test -z "$ac_cv_prog_AS"; then | |
6654 | ac_ct_AS=$AS | |
6655 | # Extract the first word of "as", so it can be a program name with args. | |
6656 | set dummy as; ac_word=$2 | |
6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6658 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6659 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
18ce903b | 6660 | $as_echo_n "(cached) " >&6 |
6661 | else | |
6662 | if test -n "$ac_ct_AS"; then | |
6663 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6664 | else | |
6665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6666 | for as_dir in $PATH | |
6667 | do | |
6668 | IFS=$as_save_IFS | |
6669 | test -z "$as_dir" && as_dir=. | |
6670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6672 | ac_cv_prog_ac_ct_AS="as" |
6673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6674 | break 2 | |
6675 | fi | |
6676 | done | |
6677 | done | |
6678 | IFS=$as_save_IFS | |
6679 | ||
6680 | fi | |
6681 | fi | |
6682 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6683 | if test -n "$ac_ct_AS"; then | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6685 | $as_echo "$ac_ct_AS" >&6; } | |
6686 | else | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6688 | $as_echo "no" >&6; } | |
6689 | fi | |
6690 | ||
6691 | if test "x$ac_ct_AS" = x; then | |
6692 | AS="" | |
6693 | else | |
6694 | case $cross_compiling:$ac_tool_warned in | |
6695 | yes:) | |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6697 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6698 | ac_tool_warned=yes ;; | |
cd9a469c | 6699 | esac |
18ce903b | 6700 | AS=$ac_ct_AS |
6701 | fi | |
6702 | else | |
6703 | AS="$ac_cv_prog_AS" | |
6704 | fi | |
cd9a469c | 6705 | |
18ce903b | 6706 | if test -n "$ac_tool_prefix"; then |
6707 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6708 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6710 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6711 | if ${ac_cv_prog_AR+:} false; then : |
18ce903b | 6712 | $as_echo_n "(cached) " >&6 |
6713 | else | |
6714 | if test -n "$AR"; then | |
6715 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6716 | else | |
6717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6718 | for as_dir in $PATH | |
6719 | do | |
6720 | IFS=$as_save_IFS | |
6721 | test -z "$as_dir" && as_dir=. | |
6722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6724 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6726 | break 2 | |
6727 | fi | |
6728 | done | |
cd9a469c | 6729 | done |
18ce903b | 6730 | IFS=$as_save_IFS |
6731 | ||
6732 | fi | |
6733 | fi | |
6734 | AR=$ac_cv_prog_AR | |
6735 | if test -n "$AR"; then | |
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6737 | $as_echo "$AR" >&6; } | |
6738 | else | |
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6740 | $as_echo "no" >&6; } | |
6741 | fi | |
6742 | ||
6743 | ||
6744 | fi | |
6745 | if test -z "$ac_cv_prog_AR"; then | |
6746 | ac_ct_AR=$AR | |
6747 | # Extract the first word of "ar", so it can be a program name with args. | |
6748 | set dummy ar; ac_word=$2 | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6750 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6751 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
18ce903b | 6752 | $as_echo_n "(cached) " >&6 |
6753 | else | |
6754 | if test -n "$ac_ct_AR"; then | |
6755 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6756 | else | |
6757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6758 | for as_dir in $PATH | |
6759 | do | |
6760 | IFS=$as_save_IFS | |
6761 | test -z "$as_dir" && as_dir=. | |
6762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6764 | ac_cv_prog_ac_ct_AR="ar" |
6765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6766 | break 2 | |
6767 | fi | |
6768 | done | |
6769 | done | |
6770 | IFS=$as_save_IFS | |
6771 | ||
6772 | fi | |
6773 | fi | |
6774 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6775 | if test -n "$ac_ct_AR"; then | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6777 | $as_echo "$ac_ct_AR" >&6; } | |
6778 | else | |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6780 | $as_echo "no" >&6; } | |
6781 | fi | |
6782 | ||
6783 | if test "x$ac_ct_AR" = x; then | |
6784 | AR="" | |
6785 | else | |
6786 | case $cross_compiling:$ac_tool_warned in | |
6787 | yes:) | |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6789 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6790 | ac_tool_warned=yes ;; | |
6791 | esac | |
6792 | AR=$ac_ct_AR | |
6793 | fi | |
6794 | else | |
6795 | AR="$ac_cv_prog_AR" | |
6796 | fi | |
6797 | ||
6798 | if test -n "$ac_tool_prefix"; then | |
6799 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6800 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6802 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6803 | if ${ac_cv_prog_RANLIB+:} false; then : |
18ce903b | 6804 | $as_echo_n "(cached) " >&6 |
6805 | else | |
6806 | if test -n "$RANLIB"; then | |
6807 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6808 | else | |
6809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6810 | for as_dir in $PATH | |
6811 | do | |
6812 | IFS=$as_save_IFS | |
6813 | test -z "$as_dir" && as_dir=. | |
6814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6816 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6818 | break 2 | |
6819 | fi | |
6820 | done | |
6821 | done | |
6822 | IFS=$as_save_IFS | |
6823 | ||
6824 | fi | |
6825 | fi | |
6826 | RANLIB=$ac_cv_prog_RANLIB | |
6827 | if test -n "$RANLIB"; then | |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6829 | $as_echo "$RANLIB" >&6; } | |
6830 | else | |
6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6832 | $as_echo "no" >&6; } | |
6833 | fi | |
6834 | ||
6835 | ||
6836 | fi | |
6837 | if test -z "$ac_cv_prog_RANLIB"; then | |
6838 | ac_ct_RANLIB=$RANLIB | |
6839 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6840 | set dummy ranlib; ac_word=$2 | |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6842 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6843 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
18ce903b | 6844 | $as_echo_n "(cached) " >&6 |
6845 | else | |
6846 | if test -n "$ac_ct_RANLIB"; then | |
6847 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6848 | else | |
6849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6850 | for as_dir in $PATH | |
6851 | do | |
6852 | IFS=$as_save_IFS | |
6853 | test -z "$as_dir" && as_dir=. | |
6854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6856 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6858 | break 2 | |
6859 | fi | |
6860 | done | |
cd9a469c | 6861 | done |
6862 | IFS=$as_save_IFS | |
18ce903b | 6863 | |
6864 | fi | |
6865 | fi | |
6866 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6867 | if test -n "$ac_ct_RANLIB"; then | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6869 | $as_echo "$ac_ct_RANLIB" >&6; } | |
cd9a469c | 6870 | else |
18ce903b | 6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6872 | $as_echo "no" >&6; } | |
542f9784 | 6873 | fi |
cd9a469c | 6874 | |
18ce903b | 6875 | if test "x$ac_ct_RANLIB" = x; then |
6876 | RANLIB="ranlib-not-found-in-path-error" | |
6877 | else | |
6878 | case $cross_compiling:$ac_tool_warned in | |
6879 | yes:) | |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6881 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6882 | ac_tool_warned=yes ;; | |
6883 | esac | |
6884 | RANLIB=$ac_ct_RANLIB | |
6885 | fi | |
6886 | else | |
6887 | RANLIB="$ac_cv_prog_RANLIB" | |
cd9a469c | 6888 | fi |
542f9784 | 6889 | |
18ce903b | 6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6891 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6892 | set x ${MAKE-make} | |
6893 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 6894 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
18ce903b | 6895 | $as_echo_n "(cached) " >&6 |
6896 | else | |
6897 | cat >conftest.make <<\_ACEOF | |
6898 | SHELL = /bin/sh | |
6899 | all: | |
6900 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6901 | _ACEOF | |
f00f02a3 | 6902 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
18ce903b | 6903 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6904 | *@@@%%%=?*=@@@%%%*) | |
6905 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6906 | *) | |
6907 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6908 | esac | |
6909 | rm -f conftest.make | |
6910 | fi | |
6911 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6913 | $as_echo "yes" >&6; } | |
6914 | SET_MAKE= | |
6915 | else | |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6917 | $as_echo "no" >&6; } | |
6918 | SET_MAKE="MAKE=${MAKE-make}" | |
6919 | fi | |
542f9784 | 6920 | |
6921 | ||
6922 | ||
18ce903b | 6923 | # Configure libtool |
6924 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6925 | enable_dlopen=yes | |
542f9784 | 6926 | |
6927 | ||
6928 | ||
18ce903b | 6929 | case `pwd` in |
6930 | *\ * | *\ *) | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6932 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6933 | esac | |
542f9784 | 6934 | |
6935 | ||
6936 | ||
18ce903b | 6937 | macro_version='2.2.7a' |
6938 | macro_revision='1.3134' | |
542f9784 | 6939 | |
6940 | ||
6941 | ||
6942 | ||
6943 | ||
6944 | ||
6945 | ||
6946 | ||
cd9a469c | 6947 | |
90973b19 | 6948 | |
90973b19 | 6949 | |
6950 | ||
90973b19 | 6951 | |
18ce903b | 6952 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 6953 | |
18ce903b | 6954 | # Backslashify metacharacters that are still active within |
6955 | # double-quoted strings. | |
6956 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
542f9784 | 6957 | |
18ce903b | 6958 | # Same as above, but do not quote variable references. |
6959 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
542f9784 | 6960 | |
18ce903b | 6961 | # Sed substitution to delay expansion of an escaped shell variable in a |
6962 | # double_quote_subst'ed string. | |
6963 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
542f9784 | 6964 | |
18ce903b | 6965 | # Sed substitution to delay expansion of an escaped single quote. |
6966 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
542f9784 | 6967 | |
18ce903b | 6968 | # Sed substitution to avoid accidental globbing in evaled expressions |
6969 | no_glob_subst='s/\*/\\\*/g' | |
542f9784 | 6970 | |
cd9a469c | 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6972 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
f00f02a3 | 6973 | if ${lt_cv_path_NM+:} false; then : |
cd9a469c | 6974 | $as_echo_n "(cached) " >&6 |
90973b19 | 6975 | else |
6976 | if test -n "$NM"; then | |
6977 | # Let the user override the test. | |
6978 | lt_cv_path_NM="$NM" | |
6979 | else | |
542f9784 | 6980 | lt_nm_to_check="${ac_tool_prefix}nm" |
6981 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6982 | lt_nm_to_check="$lt_nm_to_check nm" | |
6983 | fi | |
6984 | for lt_tmp_nm in $lt_nm_to_check; do | |
6985 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6986 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6987 | IFS="$lt_save_ifs" | |
6988 | test -z "$ac_dir" && ac_dir=. | |
6989 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6990 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6991 | # Check to see if the nm accepts a BSD-compat flag. | |
6992 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6993 | # nm: unknown option "B" ignored | |
6994 | # Tru64's nm complains that /dev/null is an invalid object file | |
6995 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6996 | */dev/null* | *'Invalid file or object type'*) | |
6997 | lt_cv_path_NM="$tmp_nm -B" | |
6998 | break | |
6999 | ;; | |
7000 | *) | |
7001 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7002 | */dev/null*) | |
7003 | lt_cv_path_NM="$tmp_nm -p" | |
7004 | break | |
7005 | ;; | |
7006 | *) | |
7007 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7008 | continue # so that we can try to find one that supports BSD flags | |
7009 | ;; | |
7010 | esac | |
7011 | ;; | |
7012 | esac | |
7013 | fi | |
7014 | done | |
7015 | IFS="$lt_save_ifs" | |
7016 | done | |
7017 | : ${lt_cv_path_NM=no} | |
7018 | fi | |
7019 | fi | |
cd9a469c | 7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7021 | $as_echo "$lt_cv_path_NM" >&6; } | |
542f9784 | 7022 | if test "$lt_cv_path_NM" != "no"; then |
7023 | NM="$lt_cv_path_NM" | |
7024 | else | |
7025 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
e6408286 | 7026 | if test -n "$DUMPBIN"; then : |
7027 | # Let the user override the test. | |
7028 | else | |
7029 | if test -n "$ac_tool_prefix"; then | |
7030 | for ac_prog in dumpbin "link -dump" | |
542f9784 | 7031 | do |
7032 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7033 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7035 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7036 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
cd9a469c | 7037 | $as_echo_n "(cached) " >&6 |
542f9784 | 7038 | else |
7039 | if test -n "$DUMPBIN"; then | |
7040 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7041 | else | |
7042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7043 | for as_dir in $PATH | |
7044 | do | |
7045 | IFS=$as_save_IFS | |
7046 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7047 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7049 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
cd9a469c | 7050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7051 | break 2 |
7052 | fi | |
7053 | done | |
cd9a469c | 7054 | done |
7055 | IFS=$as_save_IFS | |
542f9784 | 7056 | |
7057 | fi | |
7058 | fi | |
7059 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7060 | if test -n "$DUMPBIN"; then | |
cd9a469c | 7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7062 | $as_echo "$DUMPBIN" >&6; } | |
542f9784 | 7063 | else |
cd9a469c | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7065 | $as_echo "no" >&6; } | |
542f9784 | 7066 | fi |
7067 | ||
cd9a469c | 7068 | |
542f9784 | 7069 | test -n "$DUMPBIN" && break |
7070 | done | |
7071 | fi | |
7072 | if test -z "$DUMPBIN"; then | |
7073 | ac_ct_DUMPBIN=$DUMPBIN | |
e6408286 | 7074 | for ac_prog in dumpbin "link -dump" |
542f9784 | 7075 | do |
7076 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7077 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7079 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7080 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
cd9a469c | 7081 | $as_echo_n "(cached) " >&6 |
542f9784 | 7082 | else |
7083 | if test -n "$ac_ct_DUMPBIN"; then | |
7084 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7085 | else | |
7086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7087 | for as_dir in $PATH | |
7088 | do | |
7089 | IFS=$as_save_IFS | |
7090 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7091 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7093 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
cd9a469c | 7094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7095 | break 2 |
7096 | fi | |
7097 | done | |
cd9a469c | 7098 | done |
7099 | IFS=$as_save_IFS | |
542f9784 | 7100 | |
7101 | fi | |
7102 | fi | |
7103 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7104 | if test -n "$ac_ct_DUMPBIN"; then | |
cd9a469c | 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7106 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
542f9784 | 7107 | else |
cd9a469c | 7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7109 | $as_echo "no" >&6; } | |
542f9784 | 7110 | fi |
7111 | ||
cd9a469c | 7112 | |
542f9784 | 7113 | test -n "$ac_ct_DUMPBIN" && break |
7114 | done | |
542f9784 | 7115 | |
cd9a469c | 7116 | if test "x$ac_ct_DUMPBIN" = x; then |
7117 | DUMPBIN=":" | |
7118 | else | |
7119 | case $cross_compiling:$ac_tool_warned in | |
7120 | yes:) | |
7121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7122 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7123 | ac_tool_warned=yes ;; | |
7124 | esac | |
7125 | DUMPBIN=$ac_ct_DUMPBIN | |
7126 | fi | |
90973b19 | 7127 | fi |
542f9784 | 7128 | |
e6408286 | 7129 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7130 | *COFF*) | |
7131 | DUMPBIN="$DUMPBIN -symbols" | |
7132 | ;; | |
7133 | *) | |
7134 | DUMPBIN=: | |
7135 | ;; | |
7136 | esac | |
7137 | fi | |
542f9784 | 7138 | |
7139 | if test "$DUMPBIN" != ":"; then | |
7140 | NM="$DUMPBIN" | |
7141 | fi | |
90973b19 | 7142 | fi |
542f9784 | 7143 | test -z "$NM" && NM=nm |
7144 | ||
7145 | ||
90973b19 | 7146 | |
542f9784 | 7147 | |
7148 | ||
7149 | ||
cd9a469c | 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7151 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
f00f02a3 | 7152 | if ${lt_cv_nm_interface+:} false; then : |
cd9a469c | 7153 | $as_echo_n "(cached) " >&6 |
542f9784 | 7154 | else |
7155 | lt_cv_nm_interface="BSD nm" | |
7156 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e6408286 | 7157 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
542f9784 | 7158 | (eval "$ac_compile" 2>conftest.err) |
7159 | cat conftest.err >&5 | |
e6408286 | 7160 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 7161 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7162 | cat conftest.err >&5 | |
e6408286 | 7163 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
542f9784 | 7164 | cat conftest.out >&5 |
7165 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7166 | lt_cv_nm_interface="MS dumpbin" | |
7167 | fi | |
7168 | rm -f conftest* | |
7169 | fi | |
cd9a469c | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7171 | $as_echo "$lt_cv_nm_interface" >&6; } | |
90973b19 | 7172 | |
cd9a469c | 7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7174 | $as_echo_n "checking whether ln -s works... " >&6; } | |
90973b19 | 7175 | LN_S=$as_ln_s |
7176 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7178 | $as_echo "yes" >&6; } | |
90973b19 | 7179 | else |
cd9a469c | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7181 | $as_echo "no, using $LN_S" >&6; } | |
90973b19 | 7182 | fi |
7183 | ||
542f9784 | 7184 | # find the maximum length of command line arguments |
cd9a469c | 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7186 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
f00f02a3 | 7187 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
cd9a469c | 7188 | $as_echo_n "(cached) " >&6 |
542f9784 | 7189 | else |
7190 | i=0 | |
7191 | teststring="ABCD" | |
7192 | ||
7193 | case $build_os in | |
7194 | msdosdjgpp*) | |
7195 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7196 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7197 | # during glob expansion). Even if it were fixed, the result of this | |
7198 | # check would be larger than it should be. | |
7199 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7200 | ;; | |
7201 | ||
7202 | gnu*) | |
7203 | # Under GNU Hurd, this test is not required because there is | |
7204 | # no limit to the length of command line arguments. | |
7205 | # Libtool will interpret -1 as no limit whatsoever | |
7206 | lt_cv_sys_max_cmd_len=-1; | |
7207 | ;; | |
7208 | ||
00aafda4 | 7209 | cygwin* | mingw* | cegcc*) |
542f9784 | 7210 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7211 | # about 5 minutes as the teststring grows exponentially. | |
7212 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7213 | # you end up with a "frozen" computer, even though with patience | |
7214 | # the test eventually succeeds (with a max line length of 256k). | |
7215 | # Instead, let's just punt: use the minimum linelength reported by | |
7216 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7217 | lt_cv_sys_max_cmd_len=8192; | |
7218 | ;; | |
7219 | ||
e6408286 | 7220 | mint*) |
7221 | # On MiNT this can take a long time and run out of memory. | |
7222 | lt_cv_sys_max_cmd_len=8192; | |
7223 | ;; | |
7224 | ||
542f9784 | 7225 | amigaos*) |
7226 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7227 | # So we just punt and use a minimum line length of 8192. | |
7228 | lt_cv_sys_max_cmd_len=8192; | |
7229 | ;; | |
7230 | ||
7231 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7232 | # This has been around since 386BSD, at least. Likely further. | |
7233 | if test -x /sbin/sysctl; then | |
7234 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7235 | elif test -x /usr/sbin/sysctl; then | |
7236 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7237 | else | |
7238 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7239 | fi | |
7240 | # And add a safety zone | |
7241 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7242 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7243 | ;; | |
7244 | ||
7245 | interix*) | |
7246 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7247 | lt_cv_sys_max_cmd_len=196608 | |
7248 | ;; | |
7249 | ||
7250 | osf*) | |
7251 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7252 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7253 | # nice to cause kernel panics so lets avoid the loop below. | |
7254 | # First set a reasonable default. | |
7255 | lt_cv_sys_max_cmd_len=16384 | |
7256 | # | |
7257 | if test -x /sbin/sysconfig; then | |
7258 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7259 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7260 | esac | |
7261 | fi | |
7262 | ;; | |
7263 | sco3.2v5*) | |
7264 | lt_cv_sys_max_cmd_len=102400 | |
7265 | ;; | |
7266 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7267 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7268 | if test -n "$kargmax"; then | |
7269 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7270 | else | |
7271 | lt_cv_sys_max_cmd_len=32768 | |
7272 | fi | |
7273 | ;; | |
7274 | *) | |
00aafda4 | 7275 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7276 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
07c46636 | 7277 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7278 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7279 | else | |
7280 | # Make teststring a little bigger before we do anything with it. | |
7281 | # a 1K string should be a reasonable start. | |
7282 | for i in 1 2 3 4 5 6 7 8 ; do | |
7283 | teststring=$teststring$teststring | |
7284 | done | |
7285 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7286 | # If test is not a shell built-in, we'll probably end up computing a | |
7287 | # maximum length that is only half of the actual maximum length, but | |
7288 | # we can't tell. | |
e6408286 | 7289 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7290 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
07c46636 | 7291 | test $i != 17 # 1/2 MB should be enough |
7292 | do | |
7293 | i=`expr $i + 1` | |
7294 | teststring=$teststring$teststring | |
7295 | done | |
7296 | # Only check the string length outside the loop. | |
7297 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7298 | teststring= | |
7299 | # Add a significant safety factor because C++ compilers can tack on | |
7300 | # massive amounts of additional arguments before passing them to the | |
7301 | # linker. It appears as though 1/2 is a usable value. | |
7302 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7303 | fi | |
542f9784 | 7304 | ;; |
7305 | esac | |
7306 | ||
7307 | fi | |
7308 | ||
7309 | if test -n $lt_cv_sys_max_cmd_len ; then | |
cd9a469c | 7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7311 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
542f9784 | 7312 | else |
cd9a469c | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7314 | $as_echo "none" >&6; } | |
542f9784 | 7315 | fi |
7316 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | ||
7322 | ||
542f9784 | 7323 | : ${CP="cp -f"} |
7324 | : ${MV="mv -f"} | |
7325 | : ${RM="rm -f"} | |
7326 | ||
cd9a469c | 7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7328 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
542f9784 | 7329 | # Try some XSI features |
7330 | xsi_shell=no | |
7331 | ( _lt_dummy="a/b/c" | |
7332 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
00aafda4 | 7333 | = c,a/b,, \ |
7334 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7335 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
542f9784 | 7336 | && xsi_shell=yes |
cd9a469c | 7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7338 | $as_echo "$xsi_shell" >&6; } | |
542f9784 | 7339 | |
7340 | ||
cd9a469c | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7342 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
542f9784 | 7343 | lt_shell_append=no |
7344 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7345 | >/dev/null 2>&1 \ | |
7346 | && lt_shell_append=yes | |
cd9a469c | 7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7348 | $as_echo "$lt_shell_append" >&6; } | |
542f9784 | 7349 | |
7350 | ||
7351 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7352 | lt_unset=unset | |
7353 | else | |
7354 | lt_unset=false | |
7355 | fi | |
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | # test EBCDIC or ASCII | |
7362 | case `echo X|tr X '\101'` in | |
7363 | A) # ASCII based system | |
7364 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7365 | lt_SP2NL='tr \040 \012' | |
7366 | lt_NL2SP='tr \015\012 \040\040' | |
7367 | ;; | |
7368 | *) # EBCDIC based system | |
7369 | lt_SP2NL='tr \100 \n' | |
7370 | lt_NL2SP='tr \r\n \100\100' | |
7371 | ;; | |
7372 | esac | |
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | ||
7381 | ||
cd9a469c | 7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7383 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
f00f02a3 | 7384 | if ${lt_cv_ld_reload_flag+:} false; then : |
cd9a469c | 7385 | $as_echo_n "(cached) " >&6 |
542f9784 | 7386 | else |
7387 | lt_cv_ld_reload_flag='-r' | |
7388 | fi | |
cd9a469c | 7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7390 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
542f9784 | 7391 | reload_flag=$lt_cv_ld_reload_flag |
7392 | case $reload_flag in | |
7393 | "" | " "*) ;; | |
7394 | *) reload_flag=" $reload_flag" ;; | |
7395 | esac | |
7396 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7397 | case $host_os in | |
7398 | darwin*) | |
7399 | if test "$GCC" = yes; then | |
7400 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7401 | else | |
7402 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7403 | fi | |
7404 | ;; | |
7405 | esac | |
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | ||
7413 | ||
7414 | ||
00aafda4 | 7415 | if test -n "$ac_tool_prefix"; then |
7416 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7417 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
cd9a469c | 7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7419 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7420 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 7421 | $as_echo_n "(cached) " >&6 |
00aafda4 | 7422 | else |
7423 | if test -n "$OBJDUMP"; then | |
7424 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7425 | else | |
7426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7427 | for as_dir in $PATH | |
7428 | do | |
7429 | IFS=$as_save_IFS | |
7430 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7431 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 7433 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
cd9a469c | 7434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7435 | break 2 |
7436 | fi | |
7437 | done | |
cd9a469c | 7438 | done |
7439 | IFS=$as_save_IFS | |
00aafda4 | 7440 | |
7441 | fi | |
7442 | fi | |
7443 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7444 | if test -n "$OBJDUMP"; then | |
cd9a469c | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7446 | $as_echo "$OBJDUMP" >&6; } | |
00aafda4 | 7447 | else |
cd9a469c | 7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7449 | $as_echo "no" >&6; } | |
00aafda4 | 7450 | fi |
7451 | ||
cd9a469c | 7452 | |
00aafda4 | 7453 | fi |
7454 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7455 | ac_ct_OBJDUMP=$OBJDUMP | |
7456 | # Extract the first word of "objdump", so it can be a program name with args. | |
7457 | set dummy objdump; ac_word=$2 | |
cd9a469c | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7459 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7460 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
cd9a469c | 7461 | $as_echo_n "(cached) " >&6 |
00aafda4 | 7462 | else |
7463 | if test -n "$ac_ct_OBJDUMP"; then | |
7464 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7465 | else | |
7466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7467 | for as_dir in $PATH | |
7468 | do | |
7469 | IFS=$as_save_IFS | |
7470 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7471 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 7473 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
cd9a469c | 7474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7475 | break 2 |
7476 | fi | |
7477 | done | |
cd9a469c | 7478 | done |
7479 | IFS=$as_save_IFS | |
00aafda4 | 7480 | |
00aafda4 | 7481 | fi |
7482 | fi | |
7483 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7484 | if test -n "$ac_ct_OBJDUMP"; then | |
cd9a469c | 7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7486 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
00aafda4 | 7487 | else |
cd9a469c | 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7489 | $as_echo "no" >&6; } | |
00aafda4 | 7490 | fi |
7491 | ||
cd9a469c | 7492 | if test "x$ac_ct_OBJDUMP" = x; then |
7493 | OBJDUMP="false" | |
7494 | else | |
7495 | case $cross_compiling:$ac_tool_warned in | |
7496 | yes:) | |
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7498 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7499 | ac_tool_warned=yes ;; | |
7500 | esac | |
7501 | OBJDUMP=$ac_ct_OBJDUMP | |
7502 | fi | |
00aafda4 | 7503 | else |
7504 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7505 | fi | |
7506 | ||
7507 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
542f9784 | 7516 | |
cd9a469c | 7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7518 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
f00f02a3 | 7519 | if ${lt_cv_deplibs_check_method+:} false; then : |
cd9a469c | 7520 | $as_echo_n "(cached) " >&6 |
90973b19 | 7521 | else |
7522 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7523 | lt_cv_file_magic_test_file= | |
7524 | lt_cv_deplibs_check_method='unknown' | |
7525 | # Need to set the preceding variable on all platforms that support | |
7526 | # interlibrary dependencies. | |
7527 | # 'none' -- dependencies not supported. | |
7528 | # `unknown' -- same as none, but documents that we really don't know. | |
7529 | # 'pass_all' -- all dependencies passed with no checks. | |
7530 | # 'test_compile' -- check by making test program. | |
542f9784 | 7531 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7532 | # which responds to the $file_magic_cmd with a given extended regex. | |
90973b19 | 7533 | # If you have `file' or equivalent on your system and you're not sure |
7534 | # whether `pass_all' will *always* work, you probably want this one. | |
7535 | ||
7536 | case $host_os in | |
21e07d2f | 7537 | aix[4-9]*) |
90973b19 | 7538 | lt_cv_deplibs_check_method=pass_all |
7539 | ;; | |
7540 | ||
7541 | beos*) | |
7542 | lt_cv_deplibs_check_method=pass_all | |
7543 | ;; | |
7544 | ||
542f9784 | 7545 | bsdi[45]*) |
90973b19 | 7546 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7547 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7548 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7549 | ;; | |
7550 | ||
542f9784 | 7551 | cygwin*) |
7552 | # func_win32_libid is a shell function defined in ltmain.sh | |
7553 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7554 | lt_cv_file_magic_cmd='func_win32_libid' | |
7555 | ;; | |
7556 | ||
7557 | mingw* | pw32*) | |
7558 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7559 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7560 | # unless we find 'file', for example because we are cross-compiling. | |
e6408286 | 7561 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7562 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
542f9784 | 7563 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7564 | lt_cv_file_magic_cmd='func_win32_libid' | |
7565 | else | |
7566 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7567 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7568 | fi | |
90973b19 | 7569 | ;; |
7570 | ||
e6408286 | 7571 | cegcc*) |
00aafda4 | 7572 | # use the weaker test based on 'objdump'. See mingw*. |
7573 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7574 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7575 | ;; | |
7576 | ||
90973b19 | 7577 | darwin* | rhapsody*) |
90973b19 | 7578 | lt_cv_deplibs_check_method=pass_all |
7579 | ;; | |
7580 | ||
542f9784 | 7581 | freebsd* | dragonfly*) |
7582 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
90973b19 | 7583 | case $host_cpu in |
7584 | i*86 ) | |
7585 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7586 | # Let's accept both of them until this is cleared up. | |
542f9784 | 7587 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
90973b19 | 7588 | lt_cv_file_magic_cmd=/usr/bin/file |
7589 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7590 | ;; | |
7591 | esac | |
7592 | else | |
7593 | lt_cv_deplibs_check_method=pass_all | |
7594 | fi | |
7595 | ;; | |
7596 | ||
7597 | gnu*) | |
7598 | lt_cv_deplibs_check_method=pass_all | |
7599 | ;; | |
7600 | ||
e6408286 | 7601 | haiku*) |
7602 | lt_cv_deplibs_check_method=pass_all | |
7603 | ;; | |
7604 | ||
542f9784 | 7605 | hpux10.20* | hpux11*) |
7606 | lt_cv_file_magic_cmd=/usr/bin/file | |
90973b19 | 7607 | case $host_cpu in |
90973b19 | 7608 | ia64*) |
7609 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
90973b19 | 7610 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7611 | ;; | |
542f9784 | 7612 | hppa*64*) |
e6408286 | 7613 | 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]' |
542f9784 | 7614 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
90973b19 | 7615 | ;; |
7616 | *) | |
e6408286 | 7617 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
542f9784 | 7618 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
90973b19 | 7619 | ;; |
7620 | esac | |
542f9784 | 7621 | ;; |
7622 | ||
7623 | interix[3-9]*) | |
7624 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7625 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7626 | ;; | |
7627 | ||
7628 | irix5* | irix6* | nonstopux*) | |
7629 | case $LD in | |
7630 | *-32|*"-32 ") libmagic=32-bit;; | |
7631 | *-n32|*"-n32 ") libmagic=N32;; | |
7632 | *-64|*"-64 ") libmagic=64-bit;; | |
7633 | *) libmagic=never-match;; | |
7634 | esac | |
90973b19 | 7635 | lt_cv_deplibs_check_method=pass_all |
7636 | ;; | |
7637 | ||
7638 | # This must be Linux ELF. | |
9af964d4 | 7639 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7f93fe7a | 7640 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 7641 | ;; |
7642 | ||
542f9784 | 7643 | netbsd*) |
7644 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7645 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
90973b19 | 7646 | else |
542f9784 | 7647 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
90973b19 | 7648 | fi |
7649 | ;; | |
7650 | ||
542f9784 | 7651 | newos6*) |
90973b19 | 7652 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7653 | lt_cv_file_magic_cmd=/usr/bin/file | |
7654 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7655 | ;; | |
7656 | ||
542f9784 | 7657 | *nto* | *qnx*) |
7658 | lt_cv_deplibs_check_method=pass_all | |
7659 | ;; | |
7660 | ||
7661 | openbsd*) | |
7662 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7663 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7664 | else | |
7665 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7666 | fi | |
7667 | ;; | |
7668 | ||
90973b19 | 7669 | osf3* | osf4* | osf5*) |
90973b19 | 7670 | lt_cv_deplibs_check_method=pass_all |
7671 | ;; | |
7672 | ||
542f9784 | 7673 | rdos*) |
90973b19 | 7674 | lt_cv_deplibs_check_method=pass_all |
7675 | ;; | |
7676 | ||
7677 | solaris*) | |
7678 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 7679 | ;; |
7680 | ||
542f9784 | 7681 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 7682 | lt_cv_deplibs_check_method=pass_all |
7683 | ;; | |
7684 | ||
542f9784 | 7685 | sysv4 | sysv4.3*) |
90973b19 | 7686 | case $host_vendor in |
90973b19 | 7687 | motorola) |
7688 | 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]' | |
7689 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7690 | ;; | |
542f9784 | 7691 | ncr) |
7692 | lt_cv_deplibs_check_method=pass_all | |
7693 | ;; | |
7694 | sequent) | |
7695 | lt_cv_file_magic_cmd='/bin/file' | |
7696 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7697 | ;; | |
7698 | sni) | |
7699 | lt_cv_file_magic_cmd='/bin/file' | |
7700 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7701 | lt_cv_file_magic_test_file=/lib/libc.so | |
7702 | ;; | |
7703 | siemens) | |
7704 | lt_cv_deplibs_check_method=pass_all | |
7705 | ;; | |
7706 | pc) | |
7707 | lt_cv_deplibs_check_method=pass_all | |
7708 | ;; | |
90973b19 | 7709 | esac |
7710 | ;; | |
542f9784 | 7711 | |
7712 | tpf*) | |
7713 | lt_cv_deplibs_check_method=pass_all | |
7714 | ;; | |
90973b19 | 7715 | esac |
7716 | ||
7717 | fi | |
cd9a469c | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7719 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
90973b19 | 7720 | file_magic_cmd=$lt_cv_file_magic_cmd |
7721 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 7722 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
90973b19 | 7723 | |
7724 | ||
7725 | ||
7726 | ||
90973b19 | 7727 | |
90973b19 | 7728 | |
90973b19 | 7729 | |
90973b19 | 7730 | |
4ee9c684 | 7731 | |
4ee9c684 | 7732 | |
4ee9c684 | 7733 | |
4ee9c684 | 7734 | |
90973b19 | 7735 | if test -n "$ac_tool_prefix"; then |
542f9784 | 7736 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7737 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7739 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7740 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 7741 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7742 | else |
542f9784 | 7743 | if test -n "$AR"; then |
7744 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 7745 | else |
7746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7747 | for as_dir in $PATH | |
7748 | do | |
7749 | IFS=$as_save_IFS | |
7750 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7751 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7753 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 7754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7755 | break 2 |
7756 | fi | |
7757 | done | |
cd9a469c | 7758 | done |
7759 | IFS=$as_save_IFS | |
4ee9c684 | 7760 | |
90973b19 | 7761 | fi |
7762 | fi | |
542f9784 | 7763 | AR=$ac_cv_prog_AR |
7764 | if test -n "$AR"; then | |
cd9a469c | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7766 | $as_echo "$AR" >&6; } | |
90973b19 | 7767 | else |
cd9a469c | 7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7769 | $as_echo "no" >&6; } | |
4ee9c684 | 7770 | fi |
7771 | ||
cd9a469c | 7772 | |
90973b19 | 7773 | fi |
542f9784 | 7774 | if test -z "$ac_cv_prog_AR"; then |
7775 | ac_ct_AR=$AR | |
7776 | # Extract the first word of "ar", so it can be a program name with args. | |
7777 | set dummy ar; ac_word=$2 | |
cd9a469c | 7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7779 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7780 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
cd9a469c | 7781 | $as_echo_n "(cached) " >&6 |
90973b19 | 7782 | else |
542f9784 | 7783 | if test -n "$ac_ct_AR"; then |
7784 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
90973b19 | 7785 | else |
7786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7787 | for as_dir in $PATH | |
7788 | do | |
7789 | IFS=$as_save_IFS | |
7790 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7791 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7793 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 7794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7795 | break 2 |
7796 | fi | |
7797 | done | |
cd9a469c | 7798 | done |
7799 | IFS=$as_save_IFS | |
4ee9c684 | 7800 | |
90973b19 | 7801 | fi |
7802 | fi | |
542f9784 | 7803 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7804 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7806 | $as_echo "$ac_ct_AR" >&6; } | |
4ee9c684 | 7807 | else |
cd9a469c | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7809 | $as_echo "no" >&6; } | |
4ee9c684 | 7810 | fi |
4ee9c684 | 7811 | |
cd9a469c | 7812 | if test "x$ac_ct_AR" = x; then |
7813 | AR="false" | |
7814 | else | |
7815 | case $cross_compiling:$ac_tool_warned in | |
7816 | yes:) | |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7819 | ac_tool_warned=yes ;; | |
7820 | esac | |
7821 | AR=$ac_ct_AR | |
7822 | fi | |
90973b19 | 7823 | else |
542f9784 | 7824 | AR="$ac_cv_prog_AR" |
4ee9c684 | 7825 | fi |
7826 | ||
542f9784 | 7827 | test -z "$AR" && AR=ar |
7828 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7829 | ||
7830 | ||
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | ||
90973b19 | 7840 | if test -n "$ac_tool_prefix"; then |
7841 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7842 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
cd9a469c | 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7844 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7845 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 7846 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7847 | else |
90973b19 | 7848 | if test -n "$STRIP"; then |
7849 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7850 | else | |
7851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7852 | for as_dir in $PATH | |
7853 | do | |
7854 | IFS=$as_save_IFS | |
7855 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7856 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 7858 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
cd9a469c | 7859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7860 | break 2 |
7861 | fi | |
7862 | done | |
cd9a469c | 7863 | done |
7864 | IFS=$as_save_IFS | |
4ee9c684 | 7865 | |
90973b19 | 7866 | fi |
7867 | fi | |
7868 | STRIP=$ac_cv_prog_STRIP | |
7869 | if test -n "$STRIP"; then | |
cd9a469c | 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7871 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 7872 | else |
cd9a469c | 7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7874 | $as_echo "no" >&6; } | |
90973b19 | 7875 | fi |
4ee9c684 | 7876 | |
cd9a469c | 7877 | |
4ee9c684 | 7878 | fi |
90973b19 | 7879 | if test -z "$ac_cv_prog_STRIP"; then |
7880 | ac_ct_STRIP=$STRIP | |
7881 | # Extract the first word of "strip", so it can be a program name with args. | |
7882 | set dummy strip; ac_word=$2 | |
cd9a469c | 7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7884 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7885 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 7886 | $as_echo_n "(cached) " >&6 |
90973b19 | 7887 | else |
7888 | if test -n "$ac_ct_STRIP"; then | |
7889 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7890 | else | |
7891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7892 | for as_dir in $PATH | |
7893 | do | |
7894 | IFS=$as_save_IFS | |
7895 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7896 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 7898 | ac_cv_prog_ac_ct_STRIP="strip" |
cd9a469c | 7899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7900 | break 2 |
7901 | fi | |
7902 | done | |
cd9a469c | 7903 | done |
7904 | IFS=$as_save_IFS | |
90973b19 | 7905 | |
4ee9c684 | 7906 | fi |
7907 | fi | |
90973b19 | 7908 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7909 | if test -n "$ac_ct_STRIP"; then | |
cd9a469c | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7911 | $as_echo "$ac_ct_STRIP" >&6; } | |
90973b19 | 7912 | else |
cd9a469c | 7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7914 | $as_echo "no" >&6; } | |
4ee9c684 | 7915 | fi |
4ee9c684 | 7916 | |
cd9a469c | 7917 | if test "x$ac_ct_STRIP" = x; then |
7918 | STRIP=":" | |
7919 | else | |
7920 | case $cross_compiling:$ac_tool_warned in | |
7921 | yes:) | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7923 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7924 | ac_tool_warned=yes ;; | |
7925 | esac | |
7926 | STRIP=$ac_ct_STRIP | |
7927 | fi | |
90973b19 | 7928 | else |
7929 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 7930 | fi |
7931 | ||
542f9784 | 7932 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 7933 | |
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
542f9784 | 7939 | if test -n "$ac_tool_prefix"; then |
7940 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7941 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7943 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7944 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 7945 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7946 | else |
542f9784 | 7947 | if test -n "$RANLIB"; then |
7948 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7949 | else | |
7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7951 | for as_dir in $PATH | |
7952 | do | |
7953 | IFS=$as_save_IFS | |
7954 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7955 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7957 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 7958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7959 | break 2 |
7960 | fi | |
7961 | done | |
cd9a469c | 7962 | done |
7963 | IFS=$as_save_IFS | |
542f9784 | 7964 | |
7965 | fi | |
7966 | fi | |
7967 | RANLIB=$ac_cv_prog_RANLIB | |
7968 | if test -n "$RANLIB"; then | |
cd9a469c | 7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7970 | $as_echo "$RANLIB" >&6; } | |
542f9784 | 7971 | else |
cd9a469c | 7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7973 | $as_echo "no" >&6; } | |
542f9784 | 7974 | fi |
7975 | ||
cd9a469c | 7976 | |
542f9784 | 7977 | fi |
7978 | if test -z "$ac_cv_prog_RANLIB"; then | |
7979 | ac_ct_RANLIB=$RANLIB | |
7980 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7981 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7983 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7984 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
cd9a469c | 7985 | $as_echo_n "(cached) " >&6 |
542f9784 | 7986 | else |
7987 | if test -n "$ac_ct_RANLIB"; then | |
7988 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7989 | else | |
7990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7991 | for as_dir in $PATH | |
7992 | do | |
7993 | IFS=$as_save_IFS | |
7994 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7995 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7997 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 7998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7999 | break 2 |
8000 | fi | |
8001 | done | |
cd9a469c | 8002 | done |
8003 | IFS=$as_save_IFS | |
542f9784 | 8004 | |
542f9784 | 8005 | fi |
8006 | fi | |
8007 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8008 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8010 | $as_echo "$ac_ct_RANLIB" >&6; } | |
542f9784 | 8011 | else |
cd9a469c | 8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8013 | $as_echo "no" >&6; } | |
542f9784 | 8014 | fi |
8015 | ||
cd9a469c | 8016 | if test "x$ac_ct_RANLIB" = x; then |
8017 | RANLIB=":" | |
8018 | else | |
8019 | case $cross_compiling:$ac_tool_warned in | |
8020 | yes:) | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8023 | ac_tool_warned=yes ;; | |
8024 | esac | |
8025 | RANLIB=$ac_ct_RANLIB | |
8026 | fi | |
542f9784 | 8027 | else |
8028 | RANLIB="$ac_cv_prog_RANLIB" | |
8029 | fi | |
8030 | ||
8031 | test -z "$RANLIB" && RANLIB=: | |
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | ||
8038 | # Determine commands to create old-style static archives. | |
00aafda4 | 8039 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 8040 | old_postinstall_cmds='chmod 644 $oldlib' |
8041 | old_postuninstall_cmds= | |
8042 | ||
8043 | if test -n "$RANLIB"; then | |
8044 | case $host_os in | |
8045 | openbsd*) | |
8046 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8047 | ;; | |
8048 | *) | |
8049 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8050 | ;; | |
8051 | esac | |
8052 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8053 | fi | |
8054 | ||
e6408286 | 8055 | case $host_os in |
8056 | darwin*) | |
8057 | lock_old_archive_extraction=yes ;; | |
8058 | *) | |
8059 | lock_old_archive_extraction=no ;; | |
8060 | esac | |
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
542f9784 | 8067 | |
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | # If no C compiler was specified, use CC. | |
8101 | LTCC=${LTCC-"$CC"} | |
8102 | ||
8103 | # If no C compiler flags were specified, use CFLAGS. | |
8104 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8105 | ||
8106 | # Allow CC to be a program name with arguments. | |
8107 | compiler=$CC | |
8108 | ||
8109 | ||
8110 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
cd9a469c | 8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8112 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
f00f02a3 | 8113 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
cd9a469c | 8114 | $as_echo_n "(cached) " >&6 |
542f9784 | 8115 | else |
8116 | ||
8117 | # These are sane defaults that work on at least a few old systems. | |
8118 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8119 | ||
8120 | # Character class describing NM global symbol codes. | |
8121 | symcode='[BCDEGRST]' | |
8122 | ||
8123 | # Regexp to match symbols that can be accessed directly from C. | |
8124 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8125 | ||
8126 | # Define system-specific variables. | |
8127 | case $host_os in | |
8128 | aix*) | |
8129 | symcode='[BCDT]' | |
8130 | ;; | |
00aafda4 | 8131 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 8132 | symcode='[ABCDGISTW]' |
8133 | ;; | |
8134 | hpux*) | |
8135 | if test "$host_cpu" = ia64; then | |
8136 | symcode='[ABCDEGRST]' | |
8137 | fi | |
8138 | ;; | |
8139 | irix* | nonstopux*) | |
8140 | symcode='[BCDEGRST]' | |
8141 | ;; | |
8142 | osf*) | |
8143 | symcode='[BCDEGQRST]' | |
8144 | ;; | |
8145 | solaris*) | |
8146 | symcode='[BDRT]' | |
8147 | ;; | |
8148 | sco3.2v5*) | |
8149 | symcode='[DT]' | |
8150 | ;; | |
8151 | sysv4.2uw2*) | |
8152 | symcode='[DT]' | |
8153 | ;; | |
8154 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8155 | symcode='[ABDT]' | |
8156 | ;; | |
8157 | sysv4) | |
8158 | symcode='[DFNSTU]' | |
8159 | ;; | |
8160 | esac | |
8161 | ||
8162 | # If we're using GNU nm, then use its standard symbol codes. | |
8163 | case `$NM -V 2>&1` in | |
8164 | *GNU* | *'with BFD'*) | |
8165 | symcode='[ABCDGIRSTW]' ;; | |
8166 | esac | |
8167 | ||
8168 | # Transform an extracted symbol line into a proper C declaration. | |
8169 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8170 | # so use this general approach. | |
8171 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8172 | ||
8173 | # Transform an extracted symbol line into symbol name and symbol address | |
8174 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
00aafda4 | 8175 | 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'" |
542f9784 | 8176 | |
8177 | # Handle CRLF in mingw tool chain | |
8178 | opt_cr= | |
8179 | case $build_os in | |
8180 | mingw*) | |
8181 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8182 | ;; | |
8183 | esac | |
8184 | ||
8185 | # Try without a prefix underscore, then with it. | |
8186 | for ac_symprfx in "" "_"; do | |
8187 | ||
8188 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8189 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8190 | ||
8191 | # Write the raw and C identifiers. | |
8192 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8193 | # Fake it for dumpbin and say T for any non-static function | |
8194 | # and D for any global variable. | |
8195 | # Also find C++ and __fastcall symbols from MSVC++, | |
8196 | # which start with @ or ?. | |
8197 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8198 | " {last_section=section; section=\$ 3};"\ | |
8199 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8200 | " \$ 0!~/External *\|/{next};"\ | |
8201 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8202 | " {if(hide[section]) next};"\ | |
8203 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8204 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8205 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8206 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8207 | " ' prfx=^$ac_symprfx" | |
8208 | else | |
8209 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8210 | fi | |
8211 | ||
8212 | # Check to see that the pipe works correctly. | |
8213 | pipe_works=no | |
8214 | ||
8215 | rm -f conftest* | |
8216 | cat > conftest.$ac_ext <<_LT_EOF | |
8217 | #ifdef __cplusplus | |
8218 | extern "C" { | |
8219 | #endif | |
8220 | char nm_test_var; | |
8221 | void nm_test_func(void); | |
8222 | void nm_test_func(void){} | |
8223 | #ifdef __cplusplus | |
8224 | } | |
8225 | #endif | |
8226 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8227 | _LT_EOF | |
8228 | ||
cd9a469c | 8229 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 8230 | (eval $ac_compile) 2>&5 |
8231 | ac_status=$? | |
cd9a469c | 8232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8233 | test $ac_status = 0; }; then | |
542f9784 | 8234 | # Now try to grab the symbols. |
8235 | nlist=conftest.nm | |
e6408286 | 8236 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8237 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
542f9784 | 8238 | ac_status=$? |
cd9a469c | 8239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8240 | test $ac_status = 0; } && test -s "$nlist"; then | |
542f9784 | 8241 | # Try sorting and uniquifying the output. |
8242 | if sort "$nlist" | uniq > "$nlist"T; then | |
8243 | mv -f "$nlist"T "$nlist" | |
8244 | else | |
8245 | rm -f "$nlist"T | |
8246 | fi | |
8247 | ||
8248 | # Make sure that we snagged all the symbols we need. | |
8249 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8250 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8251 | cat <<_LT_EOF > conftest.$ac_ext | |
8252 | #ifdef __cplusplus | |
8253 | extern "C" { | |
8254 | #endif | |
8255 | ||
8256 | _LT_EOF | |
8257 | # Now generate the symbol file. | |
8258 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8259 | ||
8260 | cat <<_LT_EOF >> conftest.$ac_ext | |
8261 | ||
8262 | /* The mapping between symbol names and symbols. */ | |
8263 | const struct { | |
8264 | const char *name; | |
8265 | void *address; | |
8266 | } | |
8267 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8268 | { | |
8269 | { "@PROGRAM@", (void *) 0 }, | |
8270 | _LT_EOF | |
8271 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8272 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8273 | {0, (void *) 0} | |
8274 | }; | |
8275 | ||
8276 | /* This works around a problem in FreeBSD linker */ | |
8277 | #ifdef FREEBSD_WORKAROUND | |
8278 | static const void *lt_preloaded_setup() { | |
8279 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8280 | } | |
8281 | #endif | |
8282 | ||
8283 | #ifdef __cplusplus | |
8284 | } | |
8285 | #endif | |
8286 | _LT_EOF | |
8287 | # Now try linking the two files. | |
8288 | mv conftest.$ac_objext conftstm.$ac_objext | |
8289 | lt_save_LIBS="$LIBS" | |
8290 | lt_save_CFLAGS="$CFLAGS" | |
8291 | LIBS="conftstm.$ac_objext" | |
8292 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
cd9a469c | 8293 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 8294 | (eval $ac_link) 2>&5 |
8295 | ac_status=$? | |
cd9a469c | 8296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8297 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
542f9784 | 8298 | pipe_works=yes |
8299 | fi | |
8300 | LIBS="$lt_save_LIBS" | |
8301 | CFLAGS="$lt_save_CFLAGS" | |
8302 | else | |
8303 | echo "cannot find nm_test_func in $nlist" >&5 | |
8304 | fi | |
8305 | else | |
8306 | echo "cannot find nm_test_var in $nlist" >&5 | |
8307 | fi | |
8308 | else | |
8309 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8310 | fi | |
8311 | else | |
8312 | echo "$progname: failed program was:" >&5 | |
8313 | cat conftest.$ac_ext >&5 | |
8314 | fi | |
00aafda4 | 8315 | rm -rf conftest* conftst* |
542f9784 | 8316 | |
8317 | # Do not use the global_symbol_pipe unless it works. | |
8318 | if test "$pipe_works" = yes; then | |
8319 | break | |
8320 | else | |
8321 | lt_cv_sys_global_symbol_pipe= | |
8322 | fi | |
8323 | done | |
8324 | ||
8325 | fi | |
8326 | ||
8327 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8328 | lt_cv_sys_global_symbol_to_cdecl= | |
8329 | fi | |
8330 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
cd9a469c | 8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8332 | $as_echo "failed" >&6; } | |
542f9784 | 8333 | else |
cd9a469c | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8335 | $as_echo "ok" >&6; } | |
542f9784 | 8336 | fi |
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
00aafda4 | 8352 | |
8353 | ||
8354 | ||
8355 | ||
8356 | ||
542f9784 | 8357 | |
8358 | ||
cd9a469c | 8359 | # Check whether --enable-libtool-lock was given. |
8360 | if test "${enable_libtool_lock+set}" = set; then : | |
8361 | enableval=$enable_libtool_lock; | |
8362 | fi | |
542f9784 | 8363 | |
542f9784 | 8364 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4ee9c684 | 8365 | |
90973b19 | 8366 | # Some flags need to be propagated to the compiler or linker for good |
8367 | # libtool support. | |
8368 | case $host in | |
542f9784 | 8369 | ia64-*-hpux*) |
90973b19 | 8370 | # Find out which ABI we are using. |
542f9784 | 8371 | echo 'int i;' > conftest.$ac_ext |
cd9a469c | 8372 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8373 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8374 | ac_status=$? |
cd9a469c | 8375 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8376 | test $ac_status = 0; }; then | |
90973b19 | 8377 | case `/usr/bin/file conftest.$ac_objext` in |
542f9784 | 8378 | *ELF-32*) |
8379 | HPUX_IA64_MODE="32" | |
8380 | ;; | |
8381 | *ELF-64*) | |
8382 | HPUX_IA64_MODE="64" | |
8383 | ;; | |
90973b19 | 8384 | esac |
90973b19 | 8385 | fi |
8386 | rm -rf conftest* | |
8387 | ;; | |
542f9784 | 8388 | *-*-irix6*) |
90973b19 | 8389 | # Find out which ABI we are using. |
e6408286 | 8390 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
cd9a469c | 8391 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8392 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8393 | ac_status=$? |
cd9a469c | 8394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8395 | test $ac_status = 0; }; then | |
542f9784 | 8396 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8397 | case `/usr/bin/file conftest.$ac_objext` in | |
8398 | *32-bit*) | |
8399 | LD="${LD-ld} -melf32bsmip" | |
8400 | ;; | |
8401 | *N32*) | |
8402 | LD="${LD-ld} -melf32bmipn32" | |
8403 | ;; | |
8404 | *64-bit*) | |
8405 | LD="${LD-ld} -melf64bmip" | |
8406 | ;; | |
8407 | esac | |
8408 | else | |
8409 | case `/usr/bin/file conftest.$ac_objext` in | |
8410 | *32-bit*) | |
8411 | LD="${LD-ld} -32" | |
8412 | ;; | |
8413 | *N32*) | |
8414 | LD="${LD-ld} -n32" | |
8415 | ;; | |
8416 | *64-bit*) | |
8417 | LD="${LD-ld} -64" | |
8418 | ;; | |
8419 | esac | |
8420 | fi | |
90973b19 | 8421 | fi |
8422 | rm -rf conftest* | |
8423 | ;; | |
4ee9c684 | 8424 | |
9613c003 | 8425 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
542f9784 | 8426 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
90973b19 | 8427 | # Find out which ABI we are using. |
8428 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8429 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8430 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8431 | ac_status=$? |
cd9a469c | 8432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8433 | test $ac_status = 0; }; then | |
542f9784 | 8434 | case `/usr/bin/file conftest.o` in |
8435 | *32-bit*) | |
8436 | case $host in | |
8437 | x86_64-*kfreebsd*-gnu) | |
8438 | LD="${LD-ld} -m elf_i386_fbsd" | |
8439 | ;; | |
8440 | x86_64-*linux*) | |
b4b3bbba | 8441 | case `/usr/bin/file conftest.o` in |
8442 | *x86-64*) | |
8443 | LD="${LD-ld} -m elf32_x86_64" | |
8444 | ;; | |
8445 | *) | |
8446 | LD="${LD-ld} -m elf_i386" | |
8447 | ;; | |
8448 | esac | |
542f9784 | 8449 | ;; |
9613c003 | 8450 | powerpc64le-*linux*) |
8451 | LD="${LD-ld} -m elf32lppclinux" | |
8452 | ;; | |
8453 | powerpc64-*linux*) | |
542f9784 | 8454 | LD="${LD-ld} -m elf32ppclinux" |
8455 | ;; | |
8456 | s390x-*linux*) | |
8457 | LD="${LD-ld} -m elf_s390" | |
8458 | ;; | |
8459 | sparc64-*linux*) | |
8460 | LD="${LD-ld} -m elf32_sparc" | |
8461 | ;; | |
8462 | esac | |
8463 | ;; | |
8464 | *64-bit*) | |
8465 | case $host in | |
8466 | x86_64-*kfreebsd*-gnu) | |
8467 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8468 | ;; | |
8469 | x86_64-*linux*) | |
8470 | LD="${LD-ld} -m elf_x86_64" | |
8471 | ;; | |
9613c003 | 8472 | powerpcle-*linux*) |
8473 | LD="${LD-ld} -m elf64lppc" | |
8474 | ;; | |
8475 | powerpc-*linux*) | |
542f9784 | 8476 | LD="${LD-ld} -m elf64ppc" |
8477 | ;; | |
8478 | s390*-*linux*|s390*-*tpf*) | |
8479 | LD="${LD-ld} -m elf64_s390" | |
8480 | ;; | |
8481 | sparc*-*linux*) | |
8482 | LD="${LD-ld} -m elf64_sparc" | |
8483 | ;; | |
8484 | esac | |
8485 | ;; | |
90973b19 | 8486 | esac |
4ee9c684 | 8487 | fi |
90973b19 | 8488 | rm -rf conftest* |
8489 | ;; | |
4ee9c684 | 8490 | |
90973b19 | 8491 | *-*-sco3.2v5*) |
8492 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8493 | SAVE_CFLAGS="$CFLAGS" | |
8494 | CFLAGS="$CFLAGS -belf" | |
cd9a469c | 8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8496 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
f00f02a3 | 8497 | if ${lt_cv_cc_needs_belf+:} false; then : |
cd9a469c | 8498 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 8499 | else |
542f9784 | 8500 | ac_ext=c |
90973b19 | 8501 | ac_cpp='$CPP $CPPFLAGS' |
8502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 8505 | |
b52ee437 | 8506 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 8507 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 8508 | fi |
cd9a469c | 8509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 8510 | /* end confdefs.h. */ |
4ee9c684 | 8511 | |
8512 | int | |
8513 | main () | |
8514 | { | |
90973b19 | 8515 | |
4ee9c684 | 8516 | ; |
8517 | return 0; | |
8518 | } | |
8519 | _ACEOF | |
cd9a469c | 8520 | if ac_fn_c_try_link "$LINENO"; then : |
90973b19 | 8521 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 8522 | else |
cd9a469c | 8523 | lt_cv_cc_needs_belf=no |
4ee9c684 | 8524 | fi |
cd9a469c | 8525 | rm -f core conftest.err conftest.$ac_objext \ |
8526 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 8527 | ac_ext=c |
8528 | ac_cpp='$CPP $CPPFLAGS' | |
8529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8532 | ||
4ee9c684 | 8533 | fi |
cd9a469c | 8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8535 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
90973b19 | 8536 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8537 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8538 | CFLAGS="$SAVE_CFLAGS" | |
8539 | fi | |
8540 | ;; | |
542f9784 | 8541 | sparc*-*solaris*) |
8542 | # Find out which ABI we are using. | |
8543 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 8545 | (eval $ac_compile) 2>&5 |
8546 | ac_status=$? | |
cd9a469c | 8547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8548 | test $ac_status = 0; }; then | |
542f9784 | 8549 | case `/usr/bin/file conftest.o` in |
8550 | *64-bit*) | |
8551 | case $lt_cv_prog_gnu_ld in | |
8552 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
00aafda4 | 8553 | *) |
8554 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8555 | LD="${LD-ld} -64" | |
8556 | fi | |
8557 | ;; | |
542f9784 | 8558 | esac |
8559 | ;; | |
8560 | esac | |
8561 | fi | |
8562 | rm -rf conftest* | |
8563 | ;; | |
90973b19 | 8564 | esac |
8565 | ||
542f9784 | 8566 | need_locks="$enable_libtool_lock" |
90973b19 | 8567 | |
00aafda4 | 8568 | |
8569 | case $host_os in | |
8570 | rhapsody* | darwin*) | |
8571 | if test -n "$ac_tool_prefix"; then | |
8572 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8573 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
cd9a469c | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8575 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8576 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
cd9a469c | 8577 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8578 | else |
8579 | if test -n "$DSYMUTIL"; then | |
8580 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8581 | else | |
8582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8583 | for as_dir in $PATH | |
8584 | do | |
8585 | IFS=$as_save_IFS | |
8586 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8587 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 8589 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
cd9a469c | 8590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8591 | break 2 |
8592 | fi | |
8593 | done | |
cd9a469c | 8594 | done |
8595 | IFS=$as_save_IFS | |
00aafda4 | 8596 | |
8597 | fi | |
8598 | fi | |
8599 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8600 | if test -n "$DSYMUTIL"; then | |
cd9a469c | 8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8602 | $as_echo "$DSYMUTIL" >&6; } | |
00aafda4 | 8603 | else |
cd9a469c | 8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8605 | $as_echo "no" >&6; } | |
00aafda4 | 8606 | fi |
8607 | ||
cd9a469c | 8608 | |
00aafda4 | 8609 | fi |
8610 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8611 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8612 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8613 | set dummy dsymutil; ac_word=$2 | |
cd9a469c | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8615 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8616 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
cd9a469c | 8617 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8618 | else |
d5d92632 | 8619 | if test -n "$ac_ct_DSYMUTIL"; then |
8620 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
00aafda4 | 8621 | else |
8622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8623 | for as_dir in $PATH | |
8624 | do | |
8625 | IFS=$as_save_IFS | |
8626 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8627 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8629 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
cd9a469c | 8630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8631 | break 2 |
8632 | fi | |
8633 | done | |
cd9a469c | 8634 | done |
8635 | IFS=$as_save_IFS | |
00aafda4 | 8636 | |
00aafda4 | 8637 | fi |
8638 | fi | |
d5d92632 | 8639 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8640 | if test -n "$ac_ct_DSYMUTIL"; then | |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8642 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
00aafda4 | 8643 | else |
cd9a469c | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8645 | $as_echo "no" >&6; } | |
00aafda4 | 8646 | fi |
8647 | ||
d5d92632 | 8648 | if test "x$ac_ct_DSYMUTIL" = x; then |
8649 | DSYMUTIL=":" | |
cd9a469c | 8650 | else |
8651 | case $cross_compiling:$ac_tool_warned in | |
8652 | yes:) | |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8655 | ac_tool_warned=yes ;; | |
8656 | esac | |
d5d92632 | 8657 | DSYMUTIL=$ac_ct_DSYMUTIL |
cd9a469c | 8658 | fi |
00aafda4 | 8659 | else |
d5d92632 | 8660 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
00aafda4 | 8661 | fi |
8662 | ||
8663 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8664 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8665 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
cd9a469c | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8667 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8668 | if ${ac_cv_prog_NMEDIT+:} false; then : |
cd9a469c | 8669 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8670 | else |
d5d92632 | 8671 | if test -n "$NMEDIT"; then |
8672 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
00aafda4 | 8673 | else |
8674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8675 | for as_dir in $PATH | |
8676 | do | |
8677 | IFS=$as_save_IFS | |
8678 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8679 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8681 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
cd9a469c | 8682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8683 | break 2 |
8684 | fi | |
8685 | done | |
cd9a469c | 8686 | done |
8687 | IFS=$as_save_IFS | |
00aafda4 | 8688 | |
8689 | fi | |
8690 | fi | |
d5d92632 | 8691 | NMEDIT=$ac_cv_prog_NMEDIT |
8692 | if test -n "$NMEDIT"; then | |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8694 | $as_echo "$NMEDIT" >&6; } | |
00aafda4 | 8695 | else |
cd9a469c | 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8697 | $as_echo "no" >&6; } | |
00aafda4 | 8698 | fi |
8699 | ||
cd9a469c | 8700 | |
00aafda4 | 8701 | fi |
d5d92632 | 8702 | if test -z "$ac_cv_prog_NMEDIT"; then |
8703 | ac_ct_NMEDIT=$NMEDIT | |
8704 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8705 | set dummy nmedit; ac_word=$2 | |
cd9a469c | 8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8707 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8708 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
cd9a469c | 8709 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8710 | else |
d5d92632 | 8711 | if test -n "$ac_ct_NMEDIT"; then |
8712 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
00aafda4 | 8713 | else |
8714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8715 | for as_dir in $PATH | |
8716 | do | |
8717 | IFS=$as_save_IFS | |
8718 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8719 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8721 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
cd9a469c | 8722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8723 | break 2 |
8724 | fi | |
8725 | done | |
cd9a469c | 8726 | done |
8727 | IFS=$as_save_IFS | |
00aafda4 | 8728 | |
00aafda4 | 8729 | fi |
8730 | fi | |
d5d92632 | 8731 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8732 | if test -n "$ac_ct_NMEDIT"; then | |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8734 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
00aafda4 | 8735 | else |
cd9a469c | 8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8737 | $as_echo "no" >&6; } | |
00aafda4 | 8738 | fi |
8739 | ||
d5d92632 | 8740 | if test "x$ac_ct_NMEDIT" = x; then |
8741 | NMEDIT=":" | |
cd9a469c | 8742 | else |
8743 | case $cross_compiling:$ac_tool_warned in | |
8744 | yes:) | |
8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8747 | ac_tool_warned=yes ;; | |
8748 | esac | |
d5d92632 | 8749 | NMEDIT=$ac_ct_NMEDIT |
cd9a469c | 8750 | fi |
00aafda4 | 8751 | else |
d5d92632 | 8752 | NMEDIT="$ac_cv_prog_NMEDIT" |
00aafda4 | 8753 | fi |
8754 | ||
8755 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8756 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8757 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
cd9a469c | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8759 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8760 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8761 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8762 | else |
d5d92632 | 8763 | if test -n "$LIPO"; then |
8764 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
00aafda4 | 8765 | else |
8766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8767 | for as_dir in $PATH | |
8768 | do | |
8769 | IFS=$as_save_IFS | |
8770 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8771 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8773 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
cd9a469c | 8774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8775 | break 2 |
8776 | fi | |
8777 | done | |
cd9a469c | 8778 | done |
8779 | IFS=$as_save_IFS | |
00aafda4 | 8780 | |
8781 | fi | |
8782 | fi | |
d5d92632 | 8783 | LIPO=$ac_cv_prog_LIPO |
8784 | if test -n "$LIPO"; then | |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8786 | $as_echo "$LIPO" >&6; } | |
00aafda4 | 8787 | else |
cd9a469c | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8789 | $as_echo "no" >&6; } | |
00aafda4 | 8790 | fi |
8791 | ||
cd9a469c | 8792 | |
00aafda4 | 8793 | fi |
d5d92632 | 8794 | if test -z "$ac_cv_prog_LIPO"; then |
8795 | ac_ct_LIPO=$LIPO | |
8796 | # Extract the first word of "lipo", so it can be a program name with args. | |
8797 | set dummy lipo; ac_word=$2 | |
cd9a469c | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8799 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8800 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
cd9a469c | 8801 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8802 | else |
d5d92632 | 8803 | if test -n "$ac_ct_LIPO"; then |
8804 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
00aafda4 | 8805 | else |
8806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8807 | for as_dir in $PATH | |
8808 | do | |
8809 | IFS=$as_save_IFS | |
8810 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8811 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8813 | ac_cv_prog_ac_ct_LIPO="lipo" |
cd9a469c | 8814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8815 | break 2 |
8816 | fi | |
8817 | done | |
cd9a469c | 8818 | done |
8819 | IFS=$as_save_IFS | |
00aafda4 | 8820 | |
00aafda4 | 8821 | fi |
8822 | fi | |
d5d92632 | 8823 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8824 | if test -n "$ac_ct_LIPO"; then | |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8826 | $as_echo "$ac_ct_LIPO" >&6; } | |
00aafda4 | 8827 | else |
cd9a469c | 8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8829 | $as_echo "no" >&6; } | |
00aafda4 | 8830 | fi |
8831 | ||
d5d92632 | 8832 | if test "x$ac_ct_LIPO" = x; then |
8833 | LIPO=":" | |
cd9a469c | 8834 | else |
8835 | case $cross_compiling:$ac_tool_warned in | |
8836 | yes:) | |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8839 | ac_tool_warned=yes ;; | |
8840 | esac | |
d5d92632 | 8841 | LIPO=$ac_ct_LIPO |
cd9a469c | 8842 | fi |
00aafda4 | 8843 | else |
d5d92632 | 8844 | LIPO="$ac_cv_prog_LIPO" |
00aafda4 | 8845 | fi |
8846 | ||
d5d92632 | 8847 | if test -n "$ac_tool_prefix"; then |
8848 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8849 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8851 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8852 | if ${ac_cv_prog_OTOOL+:} false; then : |
cd9a469c | 8853 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8854 | else |
d5d92632 | 8855 | if test -n "$OTOOL"; then |
8856 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
e6408286 | 8857 | else |
d5d92632 | 8858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8859 | for as_dir in $PATH | |
8860 | do | |
8861 | IFS=$as_save_IFS | |
8862 | test -z "$as_dir" && as_dir=. | |
8863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8865 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8867 | break 2 | |
8868 | fi | |
8869 | done | |
8870 | done | |
8871 | IFS=$as_save_IFS | |
e6408286 | 8872 | |
8873 | fi | |
d5d92632 | 8874 | fi |
8875 | OTOOL=$ac_cv_prog_OTOOL | |
8876 | if test -n "$OTOOL"; then | |
8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8878 | $as_echo "$OTOOL" >&6; } | |
8879 | else | |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8881 | $as_echo "no" >&6; } | |
8882 | fi | |
8883 | ||
00aafda4 | 8884 | |
542f9784 | 8885 | fi |
d5d92632 | 8886 | if test -z "$ac_cv_prog_OTOOL"; then |
8887 | ac_ct_OTOOL=$OTOOL | |
8888 | # Extract the first word of "otool", so it can be a program name with args. | |
8889 | set dummy otool; ac_word=$2 | |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8891 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8892 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
cd9a469c | 8893 | $as_echo_n "(cached) " >&6 |
542f9784 | 8894 | else |
d5d92632 | 8895 | if test -n "$ac_ct_OTOOL"; then |
8896 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8897 | else | |
8898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8899 | for as_dir in $PATH | |
542f9784 | 8900 | do |
d5d92632 | 8901 | IFS=$as_save_IFS |
8902 | test -z "$as_dir" && as_dir=. | |
8903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8905 | ac_cv_prog_ac_ct_OTOOL="otool" |
8906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8907 | break 2 | |
8908 | fi | |
8909 | done | |
8910 | done | |
8911 | IFS=$as_save_IFS | |
4ee9c684 | 8912 | |
d5d92632 | 8913 | fi |
8914 | fi | |
8915 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8916 | if test -n "$ac_ct_OTOOL"; then | |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8918 | $as_echo "$ac_ct_OTOOL" >&6; } | |
cd9a469c | 8919 | else |
d5d92632 | 8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8921 | $as_echo "no" >&6; } | |
542f9784 | 8922 | fi |
90973b19 | 8923 | |
d5d92632 | 8924 | if test "x$ac_ct_OTOOL" = x; then |
8925 | OTOOL=":" | |
8926 | else | |
8927 | case $cross_compiling:$ac_tool_warned in | |
8928 | yes:) | |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8930 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8931 | ac_tool_warned=yes ;; | |
8932 | esac | |
8933 | OTOOL=$ac_ct_OTOOL | |
8934 | fi | |
542f9784 | 8935 | else |
d5d92632 | 8936 | OTOOL="$ac_cv_prog_OTOOL" |
542f9784 | 8937 | fi |
4ee9c684 | 8938 | |
d5d92632 | 8939 | if test -n "$ac_tool_prefix"; then |
8940 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8941 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8943 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8944 | if ${ac_cv_prog_OTOOL64+:} false; then : |
d5d92632 | 8945 | $as_echo_n "(cached) " >&6 |
8946 | else | |
8947 | if test -n "$OTOOL64"; then | |
8948 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8949 | else | |
8950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8951 | for as_dir in $PATH | |
8952 | do | |
8953 | IFS=$as_save_IFS | |
8954 | test -z "$as_dir" && as_dir=. | |
8955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8957 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8959 | break 2 | |
8960 | fi | |
542f9784 | 8961 | done |
d5d92632 | 8962 | done |
8963 | IFS=$as_save_IFS | |
8964 | ||
8965 | fi | |
8966 | fi | |
8967 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8968 | if test -n "$OTOOL64"; then | |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8970 | $as_echo "$OTOOL64" >&6; } | |
8971 | else | |
8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8973 | $as_echo "no" >&6; } | |
542f9784 | 8974 | fi |
4ee9c684 | 8975 | |
90973b19 | 8976 | |
542f9784 | 8977 | fi |
d5d92632 | 8978 | if test -z "$ac_cv_prog_OTOOL64"; then |
8979 | ac_ct_OTOOL64=$OTOOL64 | |
8980 | # Extract the first word of "otool64", so it can be a program name with args. | |
8981 | set dummy otool64; ac_word=$2 | |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8983 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8984 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
d5d92632 | 8985 | $as_echo_n "(cached) " >&6 |
90973b19 | 8986 | else |
d5d92632 | 8987 | if test -n "$ac_ct_OTOOL64"; then |
8988 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8989 | else | |
8990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8991 | for as_dir in $PATH | |
90973b19 | 8992 | do |
d5d92632 | 8993 | IFS=$as_save_IFS |
8994 | test -z "$as_dir" && as_dir=. | |
8995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8997 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8999 | break 2 | |
9000 | fi | |
9001 | done | |
9002 | done | |
9003 | IFS=$as_save_IFS | |
90973b19 | 9004 | |
d5d92632 | 9005 | fi |
9006 | fi | |
9007 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9008 | if test -n "$ac_ct_OTOOL64"; then | |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9010 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
cd9a469c | 9011 | else |
d5d92632 | 9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9013 | $as_echo "no" >&6; } | |
90973b19 | 9014 | fi |
9015 | ||
d5d92632 | 9016 | if test "x$ac_ct_OTOOL64" = x; then |
9017 | OTOOL64=":" | |
9018 | else | |
9019 | case $cross_compiling:$ac_tool_warned in | |
9020 | yes:) | |
9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9023 | ac_tool_warned=yes ;; | |
9024 | esac | |
9025 | OTOOL64=$ac_ct_OTOOL64 | |
9026 | fi | |
4ee9c684 | 9027 | else |
d5d92632 | 9028 | OTOOL64="$ac_cv_prog_OTOOL64" |
4ee9c684 | 9029 | fi |
4ee9c684 | 9030 | |
cd9a469c | 9031 | |
542f9784 | 9032 | |
542f9784 | 9033 | |
9034 | ||
4ee9c684 | 9035 | |
542f9784 | 9036 | |
4ee9c684 | 9037 | |
542f9784 | 9038 | |
cd9a469c | 9039 | |
4ee9c684 | 9040 | |
9cf1c244 | 9041 | |
2e4ef4e4 | 9042 | |
cd9a469c | 9043 | |
2e4ef4e4 | 9044 | |
2e4ef4e4 | 9045 | |
d5d92632 | 9046 | |
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9058 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
f00f02a3 | 9059 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
d5d92632 | 9060 | $as_echo_n "(cached) " >&6 |
542f9784 | 9061 | else |
d5d92632 | 9062 | lt_cv_apple_cc_single_mod=no |
9063 | if test -z "${LT_MULTI_MODULE}"; then | |
9064 | # By default we will add the -single_module flag. You can override | |
9065 | # by either setting the environment variable LT_MULTI_MODULE | |
9066 | # non-empty at configure time, or by adding -multi_module to the | |
9067 | # link flags. | |
9068 | rm -rf libconftest.dylib* | |
9069 | echo "int foo(void){return 1;}" > conftest.c | |
9070 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9071 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9072 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9073 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9074 | _lt_result=$? | |
9075 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9076 | lt_cv_apple_cc_single_mod=yes | |
9077 | else | |
9078 | cat conftest.err >&5 | |
9079 | fi | |
9080 | rm -rf libconftest.dylib* | |
9081 | rm -f conftest.* | |
9082 | fi | |
9083 | fi | |
9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9085 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9087 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
f00f02a3 | 9088 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
d5d92632 | 9089 | $as_echo_n "(cached) " >&6 |
9090 | else | |
9091 | lt_cv_ld_exported_symbols_list=no | |
9092 | save_LDFLAGS=$LDFLAGS | |
9093 | echo "_main" > conftest.sym | |
9094 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9095 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 9096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 9097 | fi |
9098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
542f9784 | 9099 | /* end confdefs.h. */ |
2e4ef4e4 | 9100 | |
542f9784 | 9101 | int |
9102 | main () | |
9103 | { | |
d5d92632 | 9104 | |
9105 | ; | |
cd9a469c | 9106 | return 0; |
542f9784 | 9107 | } |
2e4ef4e4 | 9108 | _ACEOF |
d5d92632 | 9109 | if ac_fn_c_try_link "$LINENO"; then : |
9110 | lt_cv_ld_exported_symbols_list=yes | |
cd9a469c | 9111 | else |
d5d92632 | 9112 | lt_cv_ld_exported_symbols_list=no |
542f9784 | 9113 | fi |
d5d92632 | 9114 | rm -f core conftest.err conftest.$ac_objext \ |
9115 | conftest$ac_exeext conftest.$ac_ext | |
9116 | LDFLAGS="$save_LDFLAGS" | |
2e4ef4e4 | 9117 | |
9118 | fi | |
d5d92632 | 9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9120 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9122 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
f00f02a3 | 9123 | if ${lt_cv_ld_force_load+:} false; then : |
d5d92632 | 9124 | $as_echo_n "(cached) " >&6 |
9125 | else | |
9126 | lt_cv_ld_force_load=no | |
9127 | cat > conftest.c << _LT_EOF | |
9128 | int forced_loaded() { return 2;} | |
9129 | _LT_EOF | |
9130 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9131 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9132 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9133 | $AR cru libconftest.a conftest.o 2>&5 | |
9134 | cat > conftest.c << _LT_EOF | |
9135 | int main() { return 0;} | |
9136 | _LT_EOF | |
9137 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9138 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9139 | _lt_result=$? | |
9140 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9141 | lt_cv_ld_force_load=yes | |
9142 | else | |
9143 | cat conftest.err >&5 | |
9144 | fi | |
9145 | rm -f conftest.err libconftest.a conftest conftest.c | |
9146 | rm -rf conftest.dSYM | |
542f9784 | 9147 | |
9148 | fi | |
d5d92632 | 9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9150 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
9151 | case $host_os in | |
9152 | rhapsody* | darwin1.[012]) | |
9153 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
9154 | darwin1.*) | |
9155 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9156 | darwin*) # darwin 5.x on | |
9157 | # if running on 10.5 or later, the deployment target defaults | |
9158 | # to the OS version, if on x86, and 10.4, the deployment | |
9159 | # target defaults to 10.4. Don't you love it? | |
9160 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
9161 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9162 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7c407808 | 9163 | 10.[012][,.]*) |
d5d92632 | 9164 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
9165 | 10.*) | |
9166 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9167 | esac | |
9168 | ;; | |
9169 | esac | |
9170 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9171 | _lt_dar_single_mod='$single_module' | |
9172 | fi | |
9173 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9174 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9175 | else | |
9176 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9177 | fi | |
9178 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9179 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9180 | else | |
9181 | _lt_dsymutil= | |
9182 | fi | |
9183 | ;; | |
9184 | esac | |
542f9784 | 9185 | |
542f9784 | 9186 | for ac_header in dlfcn.h |
cd9a469c | 9187 | do : |
9188 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9189 | " | |
f00f02a3 | 9190 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
542f9784 | 9191 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 9192 | #define HAVE_DLFCN_H 1 |
90e67cff | 9193 | _ACEOF |
90e67cff | 9194 | |
542f9784 | 9195 | fi |
9196 | ||
9197 | done | |
9198 | ||
9199 | ||
9200 | ||
e6408286 | 9201 | |
9202 | ||
00aafda4 | 9203 | # Set options |
9204 | ||
9205 | ||
9206 | ||
9207 | ||
9208 | enable_win32_dll=no | |
9209 | ||
9210 | ||
cd9a469c | 9211 | # Check whether --enable-shared was given. |
9212 | if test "${enable_shared+set}" = set; then : | |
9213 | enableval=$enable_shared; p=${PACKAGE-default} | |
00aafda4 | 9214 | case $enableval in |
9215 | yes) enable_shared=yes ;; | |
9216 | no) enable_shared=no ;; | |
9217 | *) | |
9218 | enable_shared=no | |
9219 | # Look at the argument we got. We use all the common list separators. | |
9220 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9221 | for pkg in $enableval; do | |
9222 | IFS="$lt_save_ifs" | |
9223 | if test "X$pkg" = "X$p"; then | |
9224 | enable_shared=yes | |
9225 | fi | |
9226 | done | |
9227 | IFS="$lt_save_ifs" | |
9228 | ;; | |
9229 | esac | |
9230 | else | |
9231 | enable_shared=yes | |
cd9a469c | 9232 | fi |
9233 | ||
00aafda4 | 9234 | |
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
cd9a469c | 9242 | # Check whether --enable-static was given. |
9243 | if test "${enable_static+set}" = set; then : | |
9244 | enableval=$enable_static; p=${PACKAGE-default} | |
00aafda4 | 9245 | case $enableval in |
9246 | yes) enable_static=yes ;; | |
9247 | no) enable_static=no ;; | |
9248 | *) | |
9249 | enable_static=no | |
9250 | # Look at the argument we got. We use all the common list separators. | |
9251 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9252 | for pkg in $enableval; do | |
9253 | IFS="$lt_save_ifs" | |
9254 | if test "X$pkg" = "X$p"; then | |
9255 | enable_static=yes | |
9256 | fi | |
9257 | done | |
9258 | IFS="$lt_save_ifs" | |
9259 | ;; | |
9260 | esac | |
9261 | else | |
9262 | enable_static=yes | |
cd9a469c | 9263 | fi |
9264 | ||
00aafda4 | 9265 | |
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
cd9a469c | 9274 | # Check whether --with-pic was given. |
9275 | if test "${with_pic+set}" = set; then : | |
9276 | withval=$with_pic; pic_mode="$withval" | |
00aafda4 | 9277 | else |
9278 | pic_mode=default | |
cd9a469c | 9279 | fi |
9280 | ||
00aafda4 | 9281 | |
9282 | test -z "$pic_mode" && pic_mode=default | |
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
cd9a469c | 9290 | # Check whether --enable-fast-install was given. |
9291 | if test "${enable_fast_install+set}" = set; then : | |
9292 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
00aafda4 | 9293 | case $enableval in |
9294 | yes) enable_fast_install=yes ;; | |
9295 | no) enable_fast_install=no ;; | |
9296 | *) | |
9297 | enable_fast_install=no | |
9298 | # Look at the argument we got. We use all the common list separators. | |
9299 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9300 | for pkg in $enableval; do | |
9301 | IFS="$lt_save_ifs" | |
9302 | if test "X$pkg" = "X$p"; then | |
9303 | enable_fast_install=yes | |
9304 | fi | |
9305 | done | |
9306 | IFS="$lt_save_ifs" | |
9307 | ;; | |
9308 | esac | |
9309 | else | |
9310 | enable_fast_install=yes | |
cd9a469c | 9311 | fi |
9312 | ||
00aafda4 | 9313 | |
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
542f9784 | 9323 | # This can be used to rebuild libtool when needed |
9324 | LIBTOOL_DEPS="$ltmain" | |
9325 | ||
9326 | # Always use our own libtool. | |
9327 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
e6408286 | 9351 | |
542f9784 | 9352 | |
9353 | ||
9354 | test -z "$LN_S" && LN_S="ln -s" | |
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
90e67cff | 9360 | |
542f9784 | 9361 | |
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | if test -n "${ZSH_VERSION+set}" ; then | |
9370 | setopt NO_GLOB_SUBST | |
90e67cff | 9371 | fi |
90e67cff | 9372 | |
cd9a469c | 9373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9374 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 9375 | if ${lt_cv_objdir+:} false; then : |
cd9a469c | 9376 | $as_echo_n "(cached) " >&6 |
90e67cff | 9377 | else |
542f9784 | 9378 | rm -f .libs 2>/dev/null |
9379 | mkdir .libs 2>/dev/null | |
9380 | if test -d .libs; then | |
9381 | lt_cv_objdir=.libs | |
9382 | else | |
9383 | # MS-DOS does not allow filenames that begin with a dot. | |
9384 | lt_cv_objdir=_libs | |
90e67cff | 9385 | fi |
542f9784 | 9386 | rmdir .libs 2>/dev/null |
90e67cff | 9387 | fi |
cd9a469c | 9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9389 | $as_echo "$lt_cv_objdir" >&6; } | |
542f9784 | 9390 | objdir=$lt_cv_objdir |
9391 | ||
9392 | ||
9393 | ||
9394 | ||
90e67cff | 9395 | |
9396 | cat >>confdefs.h <<_ACEOF | |
542f9784 | 9397 | #define LT_OBJDIR "$lt_cv_objdir/" |
90e67cff | 9398 | _ACEOF |
9399 | ||
542f9784 | 9400 | |
9401 | ||
9402 | ||
542f9784 | 9403 | case $host_os in |
9404 | aix3*) | |
9405 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9406 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9407 | # vanish in a puff of smoke. | |
9408 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9409 | COLLECT_NAMES= | |
9410 | export COLLECT_NAMES | |
9411 | fi | |
9412 | ;; | |
9413 | esac | |
9414 | ||
542f9784 | 9415 | # Global variables: |
9416 | ofile=libtool | |
9417 | can_build_shared=yes | |
9418 | ||
9419 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9420 | # which needs '.lib'). | |
9421 | libext=a | |
9422 | ||
9423 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9424 | ||
9425 | old_CC="$CC" | |
9426 | old_CFLAGS="$CFLAGS" | |
9427 | ||
9428 | # Set sane defaults for various variables | |
9429 | test -z "$CC" && CC=cc | |
9430 | test -z "$LTCC" && LTCC=$CC | |
9431 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9432 | test -z "$LD" && LD=ld | |
9433 | test -z "$ac_objext" && ac_objext=o | |
9434 | ||
9435 | for cc_temp in $compiler""; do | |
9436 | case $cc_temp in | |
9437 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9438 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9439 | \-*) ;; | |
9440 | *) break;; | |
9441 | esac | |
9442 | done | |
e6408286 | 9443 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 9444 | |
9445 | ||
9446 | # Only perform the check for file, if the check method requires it | |
9447 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9448 | case $deplibs_check_method in | |
9449 | file_magic*) | |
9450 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
cd9a469c | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9452 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
f00f02a3 | 9453 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 9454 | $as_echo_n "(cached) " >&6 |
90e67cff | 9455 | else |
542f9784 | 9456 | case $MAGIC_CMD in |
9457 | [\\/*] | ?:[\\/]*) | |
9458 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9459 | ;; | |
9460 | *) | |
9461 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9462 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9463 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9464 | for ac_dir in $ac_dummy; do | |
9465 | IFS="$lt_save_ifs" | |
9466 | test -z "$ac_dir" && ac_dir=. | |
9467 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9468 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9469 | if test -n "$file_magic_test_file"; then | |
9470 | case $deplibs_check_method in | |
9471 | "file_magic "*) | |
9472 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9473 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9474 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9475 | $EGREP "$file_magic_regex" > /dev/null; then | |
9476 | : | |
9477 | else | |
9478 | cat <<_LT_EOF 1>&2 | |
90e67cff | 9479 | |
542f9784 | 9480 | *** Warning: the command libtool uses to detect shared libraries, |
9481 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9482 | *** The result is that libtool may fail to recognize shared libraries | |
9483 | *** as such. This will affect the creation of libtool libraries that | |
9484 | *** depend on shared libraries, but programs linked with such libtool | |
9485 | *** libraries will work regardless of this problem. Nevertheless, you | |
9486 | *** may want to report the problem to your system manager and/or to | |
9487 | *** bug-libtool@gnu.org | |
9488 | ||
9489 | _LT_EOF | |
9490 | fi ;; | |
9491 | esac | |
9492 | fi | |
9493 | break | |
9494 | fi | |
9495 | done | |
9496 | IFS="$lt_save_ifs" | |
9497 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9498 | ;; | |
9499 | esac | |
9500 | fi | |
9501 | ||
9502 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9503 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9505 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9506 | else |
cd9a469c | 9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9508 | $as_echo "no" >&6; } | |
542f9784 | 9509 | fi |
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9516 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9518 | $as_echo_n "checking for file... " >&6; } | |
f00f02a3 | 9519 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 9520 | $as_echo_n "(cached) " >&6 |
542f9784 | 9521 | else |
9522 | case $MAGIC_CMD in | |
9523 | [\\/*] | ?:[\\/]*) | |
9524 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9525 | ;; | |
9526 | *) | |
9527 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9528 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9529 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9530 | for ac_dir in $ac_dummy; do | |
9531 | IFS="$lt_save_ifs" | |
9532 | test -z "$ac_dir" && ac_dir=. | |
9533 | if test -f $ac_dir/file; then | |
9534 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9535 | if test -n "$file_magic_test_file"; then | |
9536 | case $deplibs_check_method in | |
9537 | "file_magic "*) | |
9538 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9539 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9540 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9541 | $EGREP "$file_magic_regex" > /dev/null; then | |
9542 | : | |
9543 | else | |
9544 | cat <<_LT_EOF 1>&2 | |
9545 | ||
9546 | *** Warning: the command libtool uses to detect shared libraries, | |
9547 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9548 | *** The result is that libtool may fail to recognize shared libraries | |
9549 | *** as such. This will affect the creation of libtool libraries that | |
9550 | *** depend on shared libraries, but programs linked with such libtool | |
9551 | *** libraries will work regardless of this problem. Nevertheless, you | |
9552 | *** may want to report the problem to your system manager and/or to | |
9553 | *** bug-libtool@gnu.org | |
9554 | ||
9555 | _LT_EOF | |
9556 | fi ;; | |
9557 | esac | |
9558 | fi | |
9559 | break | |
9560 | fi | |
9561 | done | |
9562 | IFS="$lt_save_ifs" | |
9563 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9564 | ;; | |
9565 | esac | |
9566 | fi | |
9567 | ||
9568 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9569 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9571 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9572 | else |
cd9a469c | 9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9574 | $as_echo "no" >&6; } | |
542f9784 | 9575 | fi |
9576 | ||
9577 | ||
9578 | else | |
9579 | MAGIC_CMD=: | |
9580 | fi | |
9581 | fi | |
9582 | ||
9583 | fi | |
9584 | ;; | |
9585 | esac | |
9586 | ||
9587 | # Use C for the default configuration in the libtool script | |
9588 | ||
9589 | lt_save_CC="$CC" | |
9590 | ac_ext=c | |
9591 | ac_cpp='$CPP $CPPFLAGS' | |
9592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9595 | ||
9596 | ||
9597 | # Source file extension for C test sources. | |
9598 | ac_ext=c | |
9599 | ||
9600 | # Object file extension for compiled C test sources. | |
9601 | objext=o | |
9602 | objext=$objext | |
9603 | ||
9604 | # Code to be used in simple compile tests | |
9605 | lt_simple_compile_test_code="int some_variable = 0;" | |
9606 | ||
9607 | # Code to be used in simple link tests | |
9608 | lt_simple_link_test_code='int main(){return(0);}' | |
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | # If no C compiler was specified, use CC. | |
9617 | LTCC=${LTCC-"$CC"} | |
9618 | ||
9619 | # If no C compiler flags were specified, use CFLAGS. | |
9620 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9621 | ||
9622 | # Allow CC to be a program name with arguments. | |
9623 | compiler=$CC | |
9624 | ||
9625 | # Save the default compiler, since it gets overwritten when the other | |
9626 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9627 | compiler_DEFAULT=$CC | |
9628 | ||
9629 | # save warnings/boilerplate of simple test code | |
9630 | ac_outfile=conftest.$ac_objext | |
9631 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9632 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9633 | _lt_compiler_boilerplate=`cat conftest.err` | |
9634 | $RM conftest* | |
9635 | ||
9636 | ac_outfile=conftest.$ac_objext | |
9637 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9638 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9639 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 9640 | $RM -r conftest* |
542f9784 | 9641 | |
9642 | ||
9643 | ## CAVEAT EMPTOR: | |
9644 | ## There is no encapsulation within the following macros, do not change | |
9645 | ## the running order or otherwise move them around unless you know exactly | |
9646 | ## what you are doing... | |
9647 | if test -n "$compiler"; then | |
9648 | ||
9649 | lt_prog_compiler_no_builtin_flag= | |
9650 | ||
9651 | if test "$GCC" = yes; then | |
e6408286 | 9652 | case $cc_basename in |
9653 | nvcc*) | |
9654 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9655 | *) | |
9656 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9657 | esac | |
542f9784 | 9658 | |
cd9a469c | 9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9660 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
f00f02a3 | 9661 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
cd9a469c | 9662 | $as_echo_n "(cached) " >&6 |
542f9784 | 9663 | else |
9664 | lt_cv_prog_compiler_rtti_exceptions=no | |
9665 | ac_outfile=conftest.$ac_objext | |
9666 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9667 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9668 | # Insert the option either (1) after the last *FLAGS variable, or | |
9669 | # (2) before a word containing "conftest.", or (3) at the end. | |
9670 | # Note that $ac_compile itself does not contain backslashes and begins | |
9671 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9672 | # The option is referenced via a variable to avoid confusing sed. | |
9673 | lt_compile=`echo "$ac_compile" | $SED \ | |
9674 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9675 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9676 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9677 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9678 | (eval "$lt_compile" 2>conftest.err) |
9679 | ac_status=$? | |
9680 | cat conftest.err >&5 | |
e6408286 | 9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9682 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9683 | # The compiler can only warn and ignore the option if not recognized | |
9684 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9685 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9686 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9687 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9688 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9689 | fi | |
9690 | fi | |
9691 | $RM conftest* | |
9692 | ||
9693 | fi | |
cd9a469c | 9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9695 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
542f9784 | 9696 | |
9697 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9698 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9699 | else | |
9700 | : | |
9701 | fi | |
9702 | ||
9703 | fi | |
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | lt_prog_compiler_wl= | |
9711 | lt_prog_compiler_pic= | |
9712 | lt_prog_compiler_static= | |
9713 | ||
cd9a469c | 9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9715 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 9716 | |
9717 | if test "$GCC" = yes; then | |
9718 | lt_prog_compiler_wl='-Wl,' | |
9719 | lt_prog_compiler_static='-static' | |
9720 | ||
9721 | case $host_os in | |
9722 | aix*) | |
9723 | # All AIX code is PIC. | |
9724 | if test "$host_cpu" = ia64; then | |
9725 | # AIX 5 now supports IA64 processor | |
9726 | lt_prog_compiler_static='-Bstatic' | |
9727 | fi | |
ccc0b0f9 | 9728 | lt_prog_compiler_pic='-fPIC' |
542f9784 | 9729 | ;; |
9730 | ||
9731 | amigaos*) | |
00aafda4 | 9732 | case $host_cpu in |
9733 | powerpc) | |
9734 | # see comment about AmigaOS4 .so support | |
9735 | lt_prog_compiler_pic='-fPIC' | |
9736 | ;; | |
9737 | m68k) | |
9738 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9739 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9740 | # like `-m68040'. | |
9741 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9742 | ;; | |
9743 | esac | |
542f9784 | 9744 | ;; |
9745 | ||
9746 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9747 | # PIC is the default for these OSes. | |
9748 | ;; | |
9749 | ||
00aafda4 | 9750 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9751 | # This hack is so that the source file can tell whether it is being |
9752 | # built for inclusion in a dll (and should export symbols for example). | |
9753 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9754 | # (--disable-auto-import) libraries | |
9755 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9756 | ;; | |
9757 | ||
9758 | darwin* | rhapsody*) | |
9759 | # PIC is the default on this platform | |
9760 | # Common symbols not allowed in MH_DYLIB files | |
9761 | lt_prog_compiler_pic='-fno-common' | |
9762 | ;; | |
9763 | ||
e6408286 | 9764 | haiku*) |
9765 | # PIC is the default for Haiku. | |
9766 | # The "-static" flag exists, but is broken. | |
9767 | lt_prog_compiler_static= | |
9768 | ;; | |
9769 | ||
542f9784 | 9770 | hpux*) |
00aafda4 | 9771 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9772 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9773 | # sets the default TLS model and affects inlining. | |
542f9784 | 9774 | case $host_cpu in |
00aafda4 | 9775 | hppa*64*) |
542f9784 | 9776 | # +Z the default |
9777 | ;; | |
9778 | *) | |
9779 | lt_prog_compiler_pic='-fPIC' | |
9780 | ;; | |
9781 | esac | |
9782 | ;; | |
9783 | ||
9784 | interix[3-9]*) | |
9785 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9786 | # Instead, we relocate shared libraries at runtime. | |
9787 | ;; | |
9788 | ||
9789 | msdosdjgpp*) | |
9790 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9791 | # on systems that don't support them. | |
9792 | lt_prog_compiler_can_build_shared=no | |
9793 | enable_shared=no | |
9794 | ;; | |
9795 | ||
9796 | *nto* | *qnx*) | |
9797 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9798 | # it will coredump. | |
9799 | lt_prog_compiler_pic='-fPIC -shared' | |
9800 | ;; | |
9801 | ||
9802 | sysv4*MP*) | |
9803 | if test -d /usr/nec; then | |
9804 | lt_prog_compiler_pic=-Kconform_pic | |
9805 | fi | |
9806 | ;; | |
9807 | ||
9808 | *) | |
9809 | lt_prog_compiler_pic='-fPIC' | |
9810 | ;; | |
9811 | esac | |
e6408286 | 9812 | |
9813 | case $cc_basename in | |
9814 | nvcc*) # Cuda Compiler Driver 2.2 | |
9815 | lt_prog_compiler_wl='-Xlinker ' | |
9816 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9817 | ;; | |
9818 | esac | |
542f9784 | 9819 | else |
9820 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9821 | case $host_os in | |
9822 | aix*) | |
9823 | lt_prog_compiler_wl='-Wl,' | |
9824 | if test "$host_cpu" = ia64; then | |
9825 | # AIX 5 now supports IA64 processor | |
9826 | lt_prog_compiler_static='-Bstatic' | |
9827 | else | |
9828 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9829 | fi | |
9830 | ;; | |
542f9784 | 9831 | |
00aafda4 | 9832 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9833 | # This hack is so that the source file can tell whether it is being |
9834 | # built for inclusion in a dll (and should export symbols for example). | |
9835 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9836 | ;; | |
9837 | ||
9838 | hpux9* | hpux10* | hpux11*) | |
9839 | lt_prog_compiler_wl='-Wl,' | |
9840 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9841 | # not for PA HP-UX. | |
9842 | case $host_cpu in | |
9843 | hppa*64*|ia64*) | |
9844 | # +Z the default | |
9845 | ;; | |
9846 | *) | |
9847 | lt_prog_compiler_pic='+Z' | |
9848 | ;; | |
9849 | esac | |
9850 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9851 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9852 | ;; | |
9853 | ||
9854 | irix5* | irix6* | nonstopux*) | |
9855 | lt_prog_compiler_wl='-Wl,' | |
9856 | # PIC (with -KPIC) is the default. | |
9857 | lt_prog_compiler_static='-non_shared' | |
9858 | ;; | |
9859 | ||
9af964d4 | 9860 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9861 | case $cc_basename in |
00aafda4 | 9862 | # old Intel for x86_64 which still supported -KPIC. |
9863 | ecc*) | |
542f9784 | 9864 | lt_prog_compiler_wl='-Wl,' |
9865 | lt_prog_compiler_pic='-KPIC' | |
9866 | lt_prog_compiler_static='-static' | |
9867 | ;; | |
00aafda4 | 9868 | # icc used to be incompatible with GCC. |
9869 | # ICC 10 doesn't accept -KPIC any more. | |
9870 | icc* | ifort*) | |
9871 | lt_prog_compiler_wl='-Wl,' | |
9872 | lt_prog_compiler_pic='-fPIC' | |
9873 | lt_prog_compiler_static='-static' | |
9874 | ;; | |
9875 | # Lahey Fortran 8.1. | |
9876 | lf95*) | |
9877 | lt_prog_compiler_wl='-Wl,' | |
9878 | lt_prog_compiler_pic='--shared' | |
9879 | lt_prog_compiler_static='--static' | |
9880 | ;; | |
e6408286 | 9881 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 9882 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9883 | # which looks to be a dead project) | |
9884 | lt_prog_compiler_wl='-Wl,' | |
9885 | lt_prog_compiler_pic='-fpic' | |
9886 | lt_prog_compiler_static='-Bstatic' | |
9887 | ;; | |
9888 | ccc*) | |
9889 | lt_prog_compiler_wl='-Wl,' | |
9890 | # All Alpha code is PIC. | |
9891 | lt_prog_compiler_static='-non_shared' | |
9892 | ;; | |
e6408286 | 9893 | xl* | bgxl* | bgf* | mpixl*) |
9894 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 9895 | lt_prog_compiler_wl='-Wl,' |
9896 | lt_prog_compiler_pic='-qpic' | |
9897 | lt_prog_compiler_static='-qstaticlink' | |
9898 | ;; | |
542f9784 | 9899 | *) |
9900 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 9901 | *Sun\ F* | *Sun*Fortran*) |
9902 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 9903 | lt_prog_compiler_pic='-KPIC' |
9904 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9905 | lt_prog_compiler_wl='' |
542f9784 | 9906 | ;; |
e6408286 | 9907 | *Sun\ C*) |
9908 | # Sun C 5.9 | |
542f9784 | 9909 | lt_prog_compiler_pic='-KPIC' |
9910 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9911 | lt_prog_compiler_wl='-Wl,' |
542f9784 | 9912 | ;; |
9913 | esac | |
9914 | ;; | |
9915 | esac | |
9916 | ;; | |
9917 | ||
9918 | newsos6) | |
9919 | lt_prog_compiler_pic='-KPIC' | |
9920 | lt_prog_compiler_static='-Bstatic' | |
9921 | ;; | |
9922 | ||
9923 | *nto* | *qnx*) | |
9924 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9925 | # it will coredump. | |
9926 | lt_prog_compiler_pic='-fPIC -shared' | |
9927 | ;; | |
9928 | ||
9929 | osf3* | osf4* | osf5*) | |
9930 | lt_prog_compiler_wl='-Wl,' | |
9931 | # All OSF/1 code is PIC. | |
9932 | lt_prog_compiler_static='-non_shared' | |
9933 | ;; | |
9934 | ||
9935 | rdos*) | |
9936 | lt_prog_compiler_static='-non_shared' | |
9937 | ;; | |
9938 | ||
9939 | solaris*) | |
9940 | lt_prog_compiler_pic='-KPIC' | |
9941 | lt_prog_compiler_static='-Bstatic' | |
9942 | case $cc_basename in | |
9943 | f77* | f90* | f95*) | |
9944 | lt_prog_compiler_wl='-Qoption ld ';; | |
9945 | *) | |
9946 | lt_prog_compiler_wl='-Wl,';; | |
9947 | esac | |
9948 | ;; | |
9949 | ||
9950 | sunos4*) | |
9951 | lt_prog_compiler_wl='-Qoption ld ' | |
9952 | lt_prog_compiler_pic='-PIC' | |
9953 | lt_prog_compiler_static='-Bstatic' | |
9954 | ;; | |
9955 | ||
9956 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9957 | lt_prog_compiler_wl='-Wl,' | |
9958 | lt_prog_compiler_pic='-KPIC' | |
9959 | lt_prog_compiler_static='-Bstatic' | |
9960 | ;; | |
9961 | ||
9962 | sysv4*MP*) | |
9963 | if test -d /usr/nec ;then | |
9964 | lt_prog_compiler_pic='-Kconform_pic' | |
9965 | lt_prog_compiler_static='-Bstatic' | |
9966 | fi | |
9967 | ;; | |
9968 | ||
9969 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9970 | lt_prog_compiler_wl='-Wl,' | |
9971 | lt_prog_compiler_pic='-KPIC' | |
9972 | lt_prog_compiler_static='-Bstatic' | |
9973 | ;; | |
9974 | ||
9975 | unicos*) | |
9976 | lt_prog_compiler_wl='-Wl,' | |
9977 | lt_prog_compiler_can_build_shared=no | |
9978 | ;; | |
9979 | ||
9980 | uts4*) | |
9981 | lt_prog_compiler_pic='-pic' | |
9982 | lt_prog_compiler_static='-Bstatic' | |
9983 | ;; | |
9984 | ||
9985 | *) | |
9986 | lt_prog_compiler_can_build_shared=no | |
9987 | ;; | |
9988 | esac | |
9989 | fi | |
9990 | ||
9991 | case $host_os in | |
9992 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9993 | *djgpp*) | |
9994 | lt_prog_compiler_pic= | |
9995 | ;; | |
9996 | *) | |
9997 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9998 | ;; | |
9999 | esac | |
cd9a469c | 10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10001 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
542f9784 | 10002 | |
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | # | |
10009 | # Check to make sure the PIC flag actually works. | |
10010 | # | |
10011 | if test -n "$lt_prog_compiler_pic"; then | |
cd9a469c | 10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10013 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
f00f02a3 | 10014 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
cd9a469c | 10015 | $as_echo_n "(cached) " >&6 |
542f9784 | 10016 | else |
00aafda4 | 10017 | lt_cv_prog_compiler_pic_works=no |
542f9784 | 10018 | ac_outfile=conftest.$ac_objext |
10019 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10020 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10021 | # Insert the option either (1) after the last *FLAGS variable, or | |
10022 | # (2) before a word containing "conftest.", or (3) at the end. | |
10023 | # Note that $ac_compile itself does not contain backslashes and begins | |
10024 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10025 | # The option is referenced via a variable to avoid confusing sed. | |
10026 | lt_compile=`echo "$ac_compile" | $SED \ | |
10027 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10028 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10029 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10030 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10031 | (eval "$lt_compile" 2>conftest.err) |
10032 | ac_status=$? | |
10033 | cat conftest.err >&5 | |
e6408286 | 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10035 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10036 | # The compiler can only warn and ignore the option if not recognized | |
10037 | # So say no if there are warnings other than the usual output. | |
e6408286 | 10038 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 10039 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10040 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 10041 | lt_cv_prog_compiler_pic_works=yes |
542f9784 | 10042 | fi |
10043 | fi | |
10044 | $RM conftest* | |
10045 | ||
10046 | fi | |
cd9a469c | 10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10048 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
542f9784 | 10049 | |
00aafda4 | 10050 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
542f9784 | 10051 | case $lt_prog_compiler_pic in |
10052 | "" | " "*) ;; | |
10053 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10054 | esac | |
10055 | else | |
10056 | lt_prog_compiler_pic= | |
10057 | lt_prog_compiler_can_build_shared=no | |
10058 | fi | |
10059 | ||
10060 | fi | |
10061 | ||
10062 | ||
10063 | ||
10064 | ||
10065 | ||
10066 | ||
10067 | # | |
10068 | # Check to make sure the static flag actually works. | |
10069 | # | |
10070 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
cd9a469c | 10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10072 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 10073 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
cd9a469c | 10074 | $as_echo_n "(cached) " >&6 |
542f9784 | 10075 | else |
00aafda4 | 10076 | lt_cv_prog_compiler_static_works=no |
542f9784 | 10077 | save_LDFLAGS="$LDFLAGS" |
10078 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10079 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10080 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10081 | # The linker can only warn and ignore the option if not recognized | |
10082 | # So say no if there are warnings | |
10083 | if test -s conftest.err; then | |
10084 | # Append any errors to the config.log. | |
10085 | cat conftest.err 1>&5 | |
e6408286 | 10086 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 10087 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10088 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 10089 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 10090 | fi |
10091 | else | |
00aafda4 | 10092 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 10093 | fi |
10094 | fi | |
00aafda4 | 10095 | $RM -r conftest* |
542f9784 | 10096 | LDFLAGS="$save_LDFLAGS" |
10097 | ||
10098 | fi | |
cd9a469c | 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10100 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
542f9784 | 10101 | |
00aafda4 | 10102 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 10103 | : |
10104 | else | |
10105 | lt_prog_compiler_static= | |
10106 | fi | |
10107 | ||
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
cd9a469c | 10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10115 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 10116 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 10117 | $as_echo_n "(cached) " >&6 |
542f9784 | 10118 | else |
10119 | lt_cv_prog_compiler_c_o=no | |
10120 | $RM -r conftest 2>/dev/null | |
10121 | mkdir conftest | |
10122 | cd conftest | |
10123 | mkdir out | |
10124 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10125 | ||
10126 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10127 | # Insert the option either (1) after the last *FLAGS variable, or | |
10128 | # (2) before a word containing "conftest.", or (3) at the end. | |
10129 | # Note that $ac_compile itself does not contain backslashes and begins | |
10130 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10131 | lt_compile=`echo "$ac_compile" | $SED \ | |
10132 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10133 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10134 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10135 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10136 | (eval "$lt_compile" 2>out/conftest.err) |
10137 | ac_status=$? | |
10138 | cat out/conftest.err >&5 | |
e6408286 | 10139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10140 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10141 | then | |
10142 | # The compiler can only warn and ignore the option if not recognized | |
10143 | # So say no if there are warnings | |
e6408286 | 10144 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 10145 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10146 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10147 | lt_cv_prog_compiler_c_o=yes | |
10148 | fi | |
10149 | fi | |
10150 | chmod u+w . 2>&5 | |
10151 | $RM conftest* | |
10152 | # SGI C++ compiler will create directory out/ii_files/ for | |
10153 | # template instantiation | |
10154 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10155 | $RM out/* && rmdir out | |
10156 | cd .. | |
10157 | $RM -r conftest | |
10158 | $RM conftest* | |
10159 | ||
10160 | fi | |
cd9a469c | 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10162 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 10163 | |
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
cd9a469c | 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10170 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 10171 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 10172 | $as_echo_n "(cached) " >&6 |
542f9784 | 10173 | else |
10174 | lt_cv_prog_compiler_c_o=no | |
10175 | $RM -r conftest 2>/dev/null | |
10176 | mkdir conftest | |
10177 | cd conftest | |
10178 | mkdir out | |
10179 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10180 | ||
10181 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10182 | # Insert the option either (1) after the last *FLAGS variable, or | |
10183 | # (2) before a word containing "conftest.", or (3) at the end. | |
10184 | # Note that $ac_compile itself does not contain backslashes and begins | |
10185 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10186 | lt_compile=`echo "$ac_compile" | $SED \ | |
10187 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10188 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10189 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10190 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10191 | (eval "$lt_compile" 2>out/conftest.err) |
10192 | ac_status=$? | |
10193 | cat out/conftest.err >&5 | |
e6408286 | 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10195 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10196 | then | |
10197 | # The compiler can only warn and ignore the option if not recognized | |
10198 | # So say no if there are warnings | |
e6408286 | 10199 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 10200 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10201 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10202 | lt_cv_prog_compiler_c_o=yes | |
10203 | fi | |
10204 | fi | |
10205 | chmod u+w . 2>&5 | |
10206 | $RM conftest* | |
10207 | # SGI C++ compiler will create directory out/ii_files/ for | |
10208 | # template instantiation | |
10209 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10210 | $RM out/* && rmdir out | |
10211 | cd .. | |
10212 | $RM -r conftest | |
10213 | $RM conftest* | |
10214 | ||
10215 | fi | |
cd9a469c | 10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10217 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 10218 | |
10219 | ||
10220 | ||
10221 | ||
10222 | hard_links="nottested" | |
10223 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10224 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10226 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 10227 | hard_links=yes |
10228 | $RM conftest* | |
10229 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10230 | touch conftest.a | |
10231 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10232 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10234 | $as_echo "$hard_links" >&6; } | |
542f9784 | 10235 | if test "$hard_links" = no; then |
cd9a469c | 10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10237 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 10238 | need_locks=warn |
10239 | fi | |
10240 | else | |
10241 | need_locks=no | |
10242 | fi | |
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
cd9a469c | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10250 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 10251 | |
10252 | runpath_var= | |
10253 | allow_undefined_flag= | |
10254 | always_export_symbols=no | |
10255 | archive_cmds= | |
10256 | archive_expsym_cmds= | |
10257 | compiler_needs_object=no | |
10258 | enable_shared_with_static_runtimes=no | |
10259 | export_dynamic_flag_spec= | |
10260 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10261 | hardcode_automatic=no | |
10262 | hardcode_direct=no | |
10263 | hardcode_direct_absolute=no | |
10264 | hardcode_libdir_flag_spec= | |
10265 | hardcode_libdir_flag_spec_ld= | |
10266 | hardcode_libdir_separator= | |
10267 | hardcode_minus_L=no | |
10268 | hardcode_shlibpath_var=unsupported | |
10269 | inherit_rpath=no | |
10270 | link_all_deplibs=unknown | |
10271 | module_cmds= | |
10272 | module_expsym_cmds= | |
10273 | old_archive_from_new_cmds= | |
10274 | old_archive_from_expsyms_cmds= | |
10275 | thread_safe_flag_spec= | |
10276 | whole_archive_flag_spec= | |
10277 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10278 | # included in the symbol list | |
10279 | include_expsyms= | |
10280 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10281 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10282 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10283 | # as well as any symbol that contains `d'. | |
00aafda4 | 10284 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 10285 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10286 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10287 | # the symbol is explicitly referenced. Since portable code cannot | |
10288 | # rely on this symbol name, it's probably fine to never include it in | |
10289 | # preloaded symbol tables. | |
00aafda4 | 10290 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 10291 | extract_expsyms_cmds= |
10292 | ||
10293 | case $host_os in | |
00aafda4 | 10294 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10295 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10296 | # When not using gcc, we currently assume that we are using | |
10297 | # Microsoft Visual C++. | |
10298 | if test "$GCC" != yes; then | |
10299 | with_gnu_ld=no | |
10300 | fi | |
10301 | ;; | |
10302 | interix*) | |
10303 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10304 | with_gnu_ld=yes | |
10305 | ;; | |
10306 | openbsd*) | |
10307 | with_gnu_ld=no | |
10308 | ;; | |
10309 | esac | |
10310 | ||
10311 | ld_shlibs=yes | |
e6408286 | 10312 | |
10313 | # On some targets, GNU ld is compatible enough with the native linker | |
10314 | # that we're better off using the native interface for both. | |
10315 | lt_use_gnu_ld_interface=no | |
542f9784 | 10316 | if test "$with_gnu_ld" = yes; then |
e6408286 | 10317 | case $host_os in |
10318 | aix*) | |
10319 | # The AIX port of GNU ld has always aspired to compatibility | |
10320 | # with the native linker. However, as the warning in the GNU ld | |
10321 | # block says, versions before 2.19.5* couldn't really create working | |
10322 | # shared libraries, regardless of the interface used. | |
10323 | case `$LD -v 2>&1` in | |
10324 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10325 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10326 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10327 | *) | |
10328 | lt_use_gnu_ld_interface=yes | |
10329 | ;; | |
10330 | esac | |
10331 | ;; | |
10332 | *) | |
10333 | lt_use_gnu_ld_interface=yes | |
10334 | ;; | |
10335 | esac | |
10336 | fi | |
10337 | ||
10338 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 10339 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10340 | wlarc='${wl}' | |
10341 | ||
10342 | # Set some defaults for GNU ld with shared library support. These | |
10343 | # are reset later if shared libraries are not supported. Putting them | |
10344 | # here allows them to be overridden if necessary. | |
10345 | runpath_var=LD_RUN_PATH | |
10346 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10347 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10348 | # ancient GNU ld didn't support --whole-archive et. al. | |
10349 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10350 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10351 | else | |
10352 | whole_archive_flag_spec= | |
10353 | fi | |
10354 | supports_anon_versioning=no | |
10355 | case `$LD -v 2>&1` in | |
e6408286 | 10356 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 10357 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10358 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10359 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10360 | *\ 2.11.*) ;; # other 2.11 versions | |
10361 | *) supports_anon_versioning=yes ;; | |
10362 | esac | |
10363 | ||
10364 | # See if GNU ld supports shared libraries. | |
10365 | case $host_os in | |
21e07d2f | 10366 | aix[3-9]*) |
542f9784 | 10367 | # On AIX/PPC, the GNU linker is very broken |
10368 | if test "$host_cpu" != ia64; then | |
10369 | ld_shlibs=no | |
10370 | cat <<_LT_EOF 1>&2 | |
10371 | ||
e6408286 | 10372 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 10373 | *** to be unable to reliably create shared libraries on AIX. |
10374 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 10375 | *** really care for shared libraries, you may want to install binutils |
10376 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10377 | *** You will then need to restart the configuration process. | |
542f9784 | 10378 | |
10379 | _LT_EOF | |
10380 | fi | |
10381 | ;; | |
10382 | ||
10383 | amigaos*) | |
00aafda4 | 10384 | case $host_cpu in |
10385 | powerpc) | |
10386 | # see comment about AmigaOS4 .so support | |
10387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10388 | archive_expsym_cmds='' | |
10389 | ;; | |
10390 | m68k) | |
10391 | 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)' | |
10392 | hardcode_libdir_flag_spec='-L$libdir' | |
10393 | hardcode_minus_L=yes | |
10394 | ;; | |
10395 | esac | |
542f9784 | 10396 | ;; |
10397 | ||
10398 | beos*) | |
10399 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10400 | allow_undefined_flag=unsupported | |
10401 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10402 | # support --undefined. This deserves some investigation. FIXME | |
10403 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10404 | else | |
10405 | ld_shlibs=no | |
10406 | fi | |
10407 | ;; | |
10408 | ||
00aafda4 | 10409 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10410 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10411 | # as there is no search path for DLLs. | |
10412 | hardcode_libdir_flag_spec='-L$libdir' | |
e6408286 | 10413 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
542f9784 | 10414 | allow_undefined_flag=unsupported |
10415 | always_export_symbols=no | |
10416 | enable_shared_with_static_runtimes=yes | |
10417 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10418 | ||
10419 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10420 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10421 | # If the export-symbols file already is a .def file (1st line | |
10422 | # is EXPORTS), use it as is; otherwise, prepend... | |
10423 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10424 | cp $export_symbols $output_objdir/$soname.def; | |
10425 | else | |
10426 | echo EXPORTS > $output_objdir/$soname.def; | |
10427 | cat $export_symbols >> $output_objdir/$soname.def; | |
10428 | fi~ | |
10429 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10430 | else | |
10431 | ld_shlibs=no | |
10432 | fi | |
10433 | ;; | |
10434 | ||
e6408286 | 10435 | haiku*) |
10436 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10437 | link_all_deplibs=yes | |
10438 | ;; | |
10439 | ||
542f9784 | 10440 | interix[3-9]*) |
10441 | hardcode_direct=no | |
10442 | hardcode_shlibpath_var=no | |
10443 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10444 | export_dynamic_flag_spec='${wl}-E' | |
10445 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10446 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10447 | # default) and relocated if they conflict, which is a slow very memory | |
10448 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10449 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10450 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10451 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10452 | 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' | |
10453 | ;; | |
10454 | ||
9af964d4 | 10455 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 10456 | tmp_diet=no |
10457 | if test "$host_os" = linux-dietlibc; then | |
10458 | case $cc_basename in | |
10459 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10460 | esac | |
10461 | fi | |
10462 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10463 | && test "$tmp_diet" = no | |
10464 | then | |
4e8a08d4 | 10465 | tmp_addflag=' $pic_flag' |
00aafda4 | 10466 | tmp_sharedflag='-shared' |
542f9784 | 10467 | case $cc_basename,$host_cpu in |
10468 | pgcc*) # Portland Group C compiler | |
e6408286 | 10469 | 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' |
542f9784 | 10470 | tmp_addflag=' $pic_flag' |
10471 | ;; | |
e6408286 | 10472 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10473 | # Portland Group f77 and f90 compilers | |
10474 | 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' | |
542f9784 | 10475 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10476 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10477 | tmp_addflag=' -i_dynamic' ;; | |
10478 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10479 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10480 | ifc* | ifort*) # Intel Fortran compiler | |
10481 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 10482 | lf95*) # Lahey Fortran 8.1 |
10483 | whole_archive_flag_spec= | |
10484 | tmp_sharedflag='--shared' ;; | |
e6408286 | 10485 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 10486 | tmp_sharedflag='-qmkshrobj' |
10487 | tmp_addflag= ;; | |
e6408286 | 10488 | nvcc*) # Cuda Compiler Driver 2.2 |
10489 | 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' | |
10490 | compiler_needs_object=yes | |
10491 | ;; | |
542f9784 | 10492 | esac |
10493 | case `$CC -V 2>&1 | sed 5q` in | |
10494 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 10495 | 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' |
542f9784 | 10496 | compiler_needs_object=yes |
10497 | tmp_sharedflag='-G' ;; | |
10498 | *Sun\ F*) # Sun Fortran 8.3 | |
10499 | tmp_sharedflag='-G' ;; | |
542f9784 | 10500 | esac |
10501 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10502 | ||
10503 | if test "x$supports_anon_versioning" = xyes; then | |
10504 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10505 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10506 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10507 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10508 | fi | |
00aafda4 | 10509 | |
10510 | case $cc_basename in | |
e6408286 | 10511 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 10512 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10513 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10514 | hardcode_libdir_flag_spec= | |
10515 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10516 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10517 | if test "x$supports_anon_versioning" = xyes; then | |
10518 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10519 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10520 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10521 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10522 | fi | |
10523 | ;; | |
10524 | esac | |
542f9784 | 10525 | else |
10526 | ld_shlibs=no | |
10527 | fi | |
10528 | ;; | |
10529 | ||
10530 | netbsd*) | |
10531 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10532 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10533 | wlarc= | |
10534 | else | |
10535 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10536 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10537 | fi | |
10538 | ;; | |
10539 | ||
10540 | solaris*) | |
10541 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10542 | ld_shlibs=no | |
10543 | cat <<_LT_EOF 1>&2 | |
10544 | ||
10545 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10546 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10547 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10548 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10549 | *** your PATH or compiler configuration so that the native linker is | |
10550 | *** used, and then restart. | |
10551 | ||
10552 | _LT_EOF | |
10553 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10554 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10555 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10556 | else | |
10557 | ld_shlibs=no | |
10558 | fi | |
10559 | ;; | |
10560 | ||
10561 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10562 | case `$LD -v 2>&1` in | |
10563 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10564 | ld_shlibs=no | |
10565 | cat <<_LT_EOF 1>&2 | |
10566 | ||
10567 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10568 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10569 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10570 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10571 | *** your PATH or compiler configuration so that the native linker is | |
10572 | *** used, and then restart. | |
10573 | ||
10574 | _LT_EOF | |
10575 | ;; | |
10576 | *) | |
10577 | # For security reasons, it is highly recommended that you always | |
10578 | # use absolute paths for naming shared libraries, and exclude the | |
10579 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10580 | # requires that you compile everything twice, which is a pain. | |
10581 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10582 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10583 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10584 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10585 | else | |
10586 | ld_shlibs=no | |
10587 | fi | |
10588 | ;; | |
10589 | esac | |
10590 | ;; | |
10591 | ||
10592 | sunos4*) | |
10593 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10594 | wlarc= | |
10595 | hardcode_direct=yes | |
10596 | hardcode_shlibpath_var=no | |
10597 | ;; | |
10598 | ||
10599 | *) | |
10600 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10601 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10602 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10603 | else | |
10604 | ld_shlibs=no | |
10605 | fi | |
10606 | ;; | |
10607 | esac | |
10608 | ||
10609 | if test "$ld_shlibs" = no; then | |
10610 | runpath_var= | |
10611 | hardcode_libdir_flag_spec= | |
10612 | export_dynamic_flag_spec= | |
10613 | whole_archive_flag_spec= | |
10614 | fi | |
10615 | else | |
10616 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10617 | case $host_os in | |
10618 | aix3*) | |
10619 | allow_undefined_flag=unsupported | |
10620 | always_export_symbols=yes | |
10621 | 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' | |
10622 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10623 | # are no directories specified by -L. | |
10624 | hardcode_minus_L=yes | |
10625 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10626 | # Neither direct hardcoding nor static linking is supported with a | |
10627 | # broken collect2. | |
10628 | hardcode_direct=unsupported | |
10629 | fi | |
10630 | ;; | |
10631 | ||
21e07d2f | 10632 | aix[4-9]*) |
542f9784 | 10633 | if test "$host_cpu" = ia64; then |
10634 | # On IA64, the linker does run time linking by default, so we don't | |
10635 | # have to do anything special. | |
10636 | aix_use_runtimelinking=no | |
10637 | exp_sym_flag='-Bexport' | |
10638 | no_entry_flag="" | |
10639 | else | |
10640 | # If we're using GNU nm, then we don't want the "-C" option. | |
10641 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 10642 | # Also, AIX nm treats weak defined symbols like other global |
10643 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 10644 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 10645 | 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' |
542f9784 | 10646 | else |
8c596dcc | 10647 | 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' |
542f9784 | 10648 | fi |
10649 | aix_use_runtimelinking=no | |
10650 | ||
10651 | # Test if we are trying to use run time linking or normal | |
10652 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10653 | # need to do runtime linking. | |
21e07d2f | 10654 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 10655 | for ld_flag in $LDFLAGS; do |
10656 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10657 | aix_use_runtimelinking=yes | |
10658 | break | |
10659 | fi | |
10660 | done | |
10661 | ;; | |
10662 | esac | |
10663 | ||
10664 | exp_sym_flag='-bexport' | |
10665 | no_entry_flag='-bnoentry' | |
10666 | fi | |
10667 | ||
10668 | # When large executables or shared objects are built, AIX ld can | |
10669 | # have problems creating the table of contents. If linking a library | |
10670 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10671 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10672 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10673 | ||
10674 | archive_cmds='' | |
10675 | hardcode_direct=yes | |
10676 | hardcode_direct_absolute=yes | |
10677 | hardcode_libdir_separator=':' | |
10678 | link_all_deplibs=yes | |
10679 | file_list_spec='${wl}-f,' | |
10680 | ||
10681 | if test "$GCC" = yes; then | |
10682 | case $host_os in aix4.[012]|aix4.[012].*) | |
10683 | # We only want to do this on AIX 4.2 and lower, the check | |
10684 | # below for broken collect2 doesn't work under 4.3+ | |
10685 | collect2name=`${CC} -print-prog-name=collect2` | |
10686 | if test -f "$collect2name" && | |
10687 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10688 | then | |
10689 | # We have reworked collect2 | |
10690 | : | |
10691 | else | |
10692 | # We have old collect2 | |
10693 | hardcode_direct=unsupported | |
10694 | # It fails to find uninstalled libraries when the uninstalled | |
10695 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10696 | # to unsupported forces relinking | |
10697 | hardcode_minus_L=yes | |
10698 | hardcode_libdir_flag_spec='-L$libdir' | |
10699 | hardcode_libdir_separator= | |
10700 | fi | |
10701 | ;; | |
10702 | esac | |
10703 | shared_flag='-shared' | |
10704 | if test "$aix_use_runtimelinking" = yes; then | |
10705 | shared_flag="$shared_flag "'${wl}-G' | |
10706 | fi | |
10707 | else | |
10708 | # not using gcc | |
10709 | if test "$host_cpu" = ia64; then | |
10710 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10711 | # chokes on -Wl,-G. The following line is correct: | |
10712 | shared_flag='-G' | |
10713 | else | |
10714 | if test "$aix_use_runtimelinking" = yes; then | |
10715 | shared_flag='${wl}-G' | |
10716 | else | |
10717 | shared_flag='${wl}-bM:SRE' | |
10718 | fi | |
10719 | fi | |
10720 | fi | |
10721 | ||
00aafda4 | 10722 | export_dynamic_flag_spec='${wl}-bexpall' |
542f9784 | 10723 | # It seems that -bexpall does not export symbols beginning with |
10724 | # underscore (_), so it is better to generate a list of symbols to export. | |
10725 | always_export_symbols=yes | |
10726 | if test "$aix_use_runtimelinking" = yes; then | |
10727 | # Warning - without using the other runtime loading flags (-brtl), | |
10728 | # -berok will link without error, but may produce a broken library. | |
10729 | allow_undefined_flag='-berok' | |
10730 | # Determine the default libpath from the value encoded in an | |
10731 | # empty executable. | |
10732 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 10733 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10734 | fi |
cd9a469c | 10735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10736 | /* end confdefs.h. */ |
10737 | ||
10738 | int | |
10739 | main () | |
10740 | { | |
10741 | ||
10742 | ; | |
10743 | return 0; | |
10744 | } | |
10745 | _ACEOF | |
cd9a469c | 10746 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10747 | |
10748 | lt_aix_libpath_sed=' | |
10749 | /Import File Strings/,/^$/ { | |
10750 | /^0/ { | |
10751 | s/^0 *\(.*\)$/\1/ | |
10752 | p | |
10753 | } | |
10754 | }' | |
10755 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10756 | # Check for a 64-bit object if we didn't find anything. | |
10757 | if test -z "$aix_libpath"; then | |
10758 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10759 | fi | |
542f9784 | 10760 | fi |
cd9a469c | 10761 | rm -f core conftest.err conftest.$ac_objext \ |
10762 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10763 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10764 | ||
10765 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 10766 | 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" |
542f9784 | 10767 | else |
10768 | if test "$host_cpu" = ia64; then | |
10769 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10770 | allow_undefined_flag="-z nodefs" | |
10771 | 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" | |
10772 | else | |
10773 | # Determine the default libpath from the value encoded in an | |
10774 | # empty executable. | |
10775 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 10776 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10777 | fi |
cd9a469c | 10778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10779 | /* end confdefs.h. */ |
10780 | ||
10781 | int | |
10782 | main () | |
10783 | { | |
10784 | ||
10785 | ; | |
10786 | return 0; | |
10787 | } | |
10788 | _ACEOF | |
cd9a469c | 10789 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10790 | |
10791 | lt_aix_libpath_sed=' | |
10792 | /Import File Strings/,/^$/ { | |
10793 | /^0/ { | |
10794 | s/^0 *\(.*\)$/\1/ | |
10795 | p | |
10796 | } | |
10797 | }' | |
10798 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10799 | # Check for a 64-bit object if we didn't find anything. | |
10800 | if test -z "$aix_libpath"; then | |
10801 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10802 | fi | |
542f9784 | 10803 | fi |
cd9a469c | 10804 | rm -f core conftest.err conftest.$ac_objext \ |
10805 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10806 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10807 | ||
10808 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10809 | # Warning - without using the other run time loading flags, | |
10810 | # -berok will link without error, but may produce a broken library. | |
10811 | no_undefined_flag=' ${wl}-bernotok' | |
10812 | allow_undefined_flag=' ${wl}-berok' | |
e6408286 | 10813 | if test "$with_gnu_ld" = yes; then |
10814 | # We only use this code for GNU lds that support --whole-archive. | |
10815 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10816 | else | |
10817 | # Exported symbols can be pulled into shared objects from archives | |
10818 | whole_archive_flag_spec='$convenience' | |
10819 | fi | |
542f9784 | 10820 | archive_cmds_need_lc=yes |
10821 | # This is similar to how AIX traditionally builds its shared libraries. | |
10822 | 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' | |
10823 | fi | |
10824 | fi | |
10825 | ;; | |
10826 | ||
10827 | amigaos*) | |
00aafda4 | 10828 | case $host_cpu in |
10829 | powerpc) | |
10830 | # see comment about AmigaOS4 .so support | |
10831 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10832 | archive_expsym_cmds='' | |
10833 | ;; | |
10834 | m68k) | |
10835 | 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)' | |
10836 | hardcode_libdir_flag_spec='-L$libdir' | |
10837 | hardcode_minus_L=yes | |
10838 | ;; | |
10839 | esac | |
542f9784 | 10840 | ;; |
10841 | ||
10842 | bsdi[45]*) | |
10843 | export_dynamic_flag_spec=-rdynamic | |
10844 | ;; | |
10845 | ||
00aafda4 | 10846 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10847 | # When not using gcc, we currently assume that we are using |
10848 | # Microsoft Visual C++. | |
10849 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10850 | # no search path for DLLs. | |
10851 | hardcode_libdir_flag_spec=' ' | |
10852 | allow_undefined_flag=unsupported | |
10853 | # Tell ltmain to make .lib files, not .a files. | |
10854 | libext=lib | |
10855 | # Tell ltmain to make .dll files, not .so files. | |
10856 | shrext_cmds=".dll" | |
10857 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 10858 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 10859 | # The linker will automatically build a .lib file if we build a DLL. |
10860 | old_archive_from_new_cmds='true' | |
10861 | # FIXME: Should let the user specify the lib program. | |
10862 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10863 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10864 | enable_shared_with_static_runtimes=yes | |
10865 | ;; | |
10866 | ||
10867 | darwin* | rhapsody*) | |
542f9784 | 10868 | |
00aafda4 | 10869 | |
10870 | archive_cmds_need_lc=no | |
10871 | hardcode_direct=no | |
10872 | hardcode_automatic=yes | |
10873 | hardcode_shlibpath_var=unsupported | |
e6408286 | 10874 | if test "$lt_cv_ld_force_load" = "yes"; then |
10875 | 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\"`' | |
10876 | else | |
10877 | whole_archive_flag_spec='' | |
10878 | fi | |
00aafda4 | 10879 | link_all_deplibs=yes |
10880 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10881 | case $cc_basename in | |
10882 | ifort*) _lt_dar_can_shared=yes ;; | |
10883 | *) _lt_dar_can_shared=$GCC ;; | |
10884 | esac | |
10885 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 10886 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 10887 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10888 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10889 | 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}" | |
10890 | 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}" | |
10891 | ||
10892 | else | |
10893 | ld_shlibs=no | |
10894 | fi | |
10895 | ||
542f9784 | 10896 | ;; |
10897 | ||
10898 | dgux*) | |
10899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10900 | hardcode_libdir_flag_spec='-L$libdir' | |
10901 | hardcode_shlibpath_var=no | |
10902 | ;; | |
10903 | ||
542f9784 | 10904 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10905 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10906 | # does not break anything, and helps significantly (at the cost of a little | |
10907 | # extra space). | |
10908 | freebsd2.2*) | |
10909 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10910 | hardcode_libdir_flag_spec='-R$libdir' | |
10911 | hardcode_direct=yes | |
10912 | hardcode_shlibpath_var=no | |
10913 | ;; | |
10914 | ||
10915 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 10916 | freebsd2.*) |
542f9784 | 10917 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10918 | hardcode_direct=yes | |
10919 | hardcode_minus_L=yes | |
10920 | hardcode_shlibpath_var=no | |
10921 | ;; | |
10922 | ||
10923 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10924 | freebsd* | dragonfly*) | |
10925 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10926 | hardcode_libdir_flag_spec='-R$libdir' | |
10927 | hardcode_direct=yes | |
10928 | hardcode_shlibpath_var=no | |
10929 | ;; | |
10930 | ||
10931 | hpux9*) | |
10932 | if test "$GCC" = yes; then | |
10933 | 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' | |
10934 | else | |
10935 | 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' | |
10936 | fi | |
10937 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10938 | hardcode_libdir_separator=: | |
10939 | hardcode_direct=yes | |
10940 | ||
10941 | # hardcode_minus_L: Not really in the search PATH, | |
10942 | # but as the default location of the library. | |
10943 | hardcode_minus_L=yes | |
10944 | export_dynamic_flag_spec='${wl}-E' | |
10945 | ;; | |
10946 | ||
10947 | hpux10*) | |
e6408286 | 10948 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10949 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10950 | else | |
10951 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10952 | fi | |
10953 | if test "$with_gnu_ld" = no; then | |
10954 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10955 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10956 | hardcode_libdir_separator=: | |
10957 | hardcode_direct=yes | |
10958 | hardcode_direct_absolute=yes | |
10959 | export_dynamic_flag_spec='${wl}-E' | |
10960 | # hardcode_minus_L: Not really in the search PATH, | |
10961 | # but as the default location of the library. | |
10962 | hardcode_minus_L=yes | |
10963 | fi | |
10964 | ;; | |
10965 | ||
10966 | hpux11*) | |
e6408286 | 10967 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10968 | case $host_cpu in |
10969 | hppa*64*) | |
10970 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10971 | ;; | |
10972 | ia64*) | |
00aafda4 | 10973 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 10974 | ;; |
10975 | *) | |
10976 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10977 | ;; | |
10978 | esac | |
10979 | else | |
10980 | case $host_cpu in | |
10981 | hppa*64*) | |
10982 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10983 | ;; | |
10984 | ia64*) | |
10985 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10986 | ;; | |
10987 | *) | |
e6408286 | 10988 | |
10989 | # Older versions of the 11.00 compiler do not understand -b yet | |
10990 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10992 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
f00f02a3 | 10993 | if ${lt_cv_prog_compiler__b+:} false; then : |
e6408286 | 10994 | $as_echo_n "(cached) " >&6 |
10995 | else | |
10996 | lt_cv_prog_compiler__b=no | |
10997 | save_LDFLAGS="$LDFLAGS" | |
10998 | LDFLAGS="$LDFLAGS -b" | |
10999 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11000 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11001 | # The linker can only warn and ignore the option if not recognized | |
11002 | # So say no if there are warnings | |
11003 | if test -s conftest.err; then | |
11004 | # Append any errors to the config.log. | |
11005 | cat conftest.err 1>&5 | |
11006 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11007 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11008 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11009 | lt_cv_prog_compiler__b=yes | |
11010 | fi | |
11011 | else | |
11012 | lt_cv_prog_compiler__b=yes | |
11013 | fi | |
11014 | fi | |
11015 | $RM -r conftest* | |
11016 | LDFLAGS="$save_LDFLAGS" | |
11017 | ||
11018 | fi | |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11020 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11021 | ||
11022 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11023 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11024 | else | |
11025 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11026 | fi | |
11027 | ||
542f9784 | 11028 | ;; |
11029 | esac | |
11030 | fi | |
11031 | if test "$with_gnu_ld" = no; then | |
11032 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11033 | hardcode_libdir_separator=: | |
11034 | ||
11035 | case $host_cpu in | |
11036 | hppa*64*|ia64*) | |
11037 | hardcode_direct=no | |
11038 | hardcode_shlibpath_var=no | |
11039 | ;; | |
11040 | *) | |
11041 | hardcode_direct=yes | |
11042 | hardcode_direct_absolute=yes | |
11043 | export_dynamic_flag_spec='${wl}-E' | |
11044 | ||
11045 | # hardcode_minus_L: Not really in the search PATH, | |
11046 | # but as the default location of the library. | |
11047 | hardcode_minus_L=yes | |
11048 | ;; | |
11049 | esac | |
11050 | fi | |
11051 | ;; | |
11052 | ||
11053 | irix5* | irix6* | nonstopux*) | |
11054 | if test "$GCC" = yes; then | |
e6408286 | 11055 | 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' |
542f9784 | 11056 | # Try to use the -exported_symbol ld option, if it does not |
11057 | # work, assume that -exports_file does not work either and | |
11058 | # implicitly export all symbols. | |
11059 | save_LDFLAGS="$LDFLAGS" | |
11060 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11061 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 11062 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11063 | fi |
cd9a469c | 11064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11065 | /* end confdefs.h. */ | |
542f9784 | 11066 | int foo(void) {} |
11067 | _ACEOF | |
cd9a469c | 11068 | if ac_fn_c_try_link "$LINENO"; then : |
e6408286 | 11069 | 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' |
542f9784 | 11070 | |
542f9784 | 11071 | fi |
cd9a469c | 11072 | rm -f core conftest.err conftest.$ac_objext \ |
11073 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11074 | LDFLAGS="$save_LDFLAGS" |
11075 | else | |
e6408286 | 11076 | 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' |
11077 | 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' | |
542f9784 | 11078 | fi |
11079 | archive_cmds_need_lc='no' | |
11080 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11081 | hardcode_libdir_separator=: | |
11082 | inherit_rpath=yes | |
11083 | link_all_deplibs=yes | |
11084 | ;; | |
11085 | ||
11086 | netbsd*) | |
11087 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11088 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11089 | else | |
11090 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11091 | fi | |
11092 | hardcode_libdir_flag_spec='-R$libdir' | |
11093 | hardcode_direct=yes | |
11094 | hardcode_shlibpath_var=no | |
11095 | ;; | |
11096 | ||
11097 | newsos6) | |
11098 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11099 | hardcode_direct=yes | |
11100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11101 | hardcode_libdir_separator=: | |
11102 | hardcode_shlibpath_var=no | |
11103 | ;; | |
11104 | ||
11105 | *nto* | *qnx*) | |
11106 | ;; | |
11107 | ||
11108 | openbsd*) | |
00aafda4 | 11109 | if test -f /usr/libexec/ld.so; then |
11110 | hardcode_direct=yes | |
11111 | hardcode_shlibpath_var=no | |
11112 | hardcode_direct_absolute=yes | |
11113 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 11114 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 11115 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 11116 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
00aafda4 | 11117 | export_dynamic_flag_spec='${wl}-E' |
11118 | else | |
11119 | case $host_os in | |
11120 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11121 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11122 | hardcode_libdir_flag_spec='-R$libdir' | |
11123 | ;; | |
11124 | *) | |
11125 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11126 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11127 | ;; | |
11128 | esac | |
11129 | fi | |
11130 | else | |
11131 | ld_shlibs=no | |
542f9784 | 11132 | fi |
11133 | ;; | |
11134 | ||
11135 | os2*) | |
11136 | hardcode_libdir_flag_spec='-L$libdir' | |
11137 | hardcode_minus_L=yes | |
11138 | allow_undefined_flag=unsupported | |
e6408286 | 11139 | 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' |
542f9784 | 11140 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11141 | ;; | |
11142 | ||
11143 | osf3*) | |
11144 | if test "$GCC" = yes; then | |
11145 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 11146 | 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' |
542f9784 | 11147 | else |
11148 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 11149 | 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' |
542f9784 | 11150 | fi |
11151 | archive_cmds_need_lc='no' | |
11152 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11153 | hardcode_libdir_separator=: | |
11154 | ;; | |
11155 | ||
11156 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11157 | if test "$GCC" = yes; then | |
11158 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 11159 | 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' |
542f9784 | 11160 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11161 | else | |
11162 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 11163 | 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' |
542f9784 | 11164 | 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~ |
e6408286 | 11165 | $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' |
542f9784 | 11166 | |
11167 | # Both c and cxx compiler support -rpath directly | |
11168 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11169 | fi | |
11170 | archive_cmds_need_lc='no' | |
11171 | hardcode_libdir_separator=: | |
11172 | ;; | |
11173 | ||
11174 | solaris*) | |
11175 | no_undefined_flag=' -z defs' | |
11176 | if test "$GCC" = yes; then | |
11177 | wlarc='${wl}' | |
11178 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11179 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11180 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11181 | else | |
11182 | case `$CC -V 2>&1` in | |
11183 | *"Compilers 5.0"*) | |
11184 | wlarc='' | |
11185 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11186 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11187 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11188 | ;; | |
11189 | *) | |
11190 | wlarc='${wl}' | |
11191 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11192 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11193 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11194 | ;; | |
11195 | esac | |
11196 | fi | |
11197 | hardcode_libdir_flag_spec='-R$libdir' | |
11198 | hardcode_shlibpath_var=no | |
11199 | case $host_os in | |
11200 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11201 | *) | |
11202 | # The compiler driver will combine and reorder linker options, | |
11203 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11204 | # but is careful enough not to reorder. | |
11205 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11206 | if test "$GCC" = yes; then | |
11207 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11208 | else | |
11209 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11210 | fi | |
11211 | ;; | |
11212 | esac | |
11213 | link_all_deplibs=yes | |
11214 | ;; | |
11215 | ||
11216 | sunos4*) | |
11217 | if test "x$host_vendor" = xsequent; then | |
11218 | # Use $CC to link under sequent, because it throws in some extra .o | |
11219 | # files that make .init and .fini sections work. | |
11220 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11221 | else | |
11222 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11223 | fi | |
11224 | hardcode_libdir_flag_spec='-L$libdir' | |
11225 | hardcode_direct=yes | |
11226 | hardcode_minus_L=yes | |
11227 | hardcode_shlibpath_var=no | |
11228 | ;; | |
11229 | ||
11230 | sysv4) | |
11231 | case $host_vendor in | |
11232 | sni) | |
11233 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11234 | hardcode_direct=yes # is this really true??? | |
11235 | ;; | |
11236 | siemens) | |
11237 | ## LD is ld it makes a PLAMLIB | |
11238 | ## CC just makes a GrossModule. | |
11239 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11240 | reload_cmds='$CC -r -o $output$reload_objs' | |
11241 | hardcode_direct=no | |
11242 | ;; | |
11243 | motorola) | |
11244 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11245 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11246 | ;; | |
11247 | esac | |
11248 | runpath_var='LD_RUN_PATH' | |
11249 | hardcode_shlibpath_var=no | |
11250 | ;; | |
11251 | ||
11252 | sysv4.3*) | |
11253 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11254 | hardcode_shlibpath_var=no | |
11255 | export_dynamic_flag_spec='-Bexport' | |
11256 | ;; | |
11257 | ||
11258 | sysv4*MP*) | |
11259 | if test -d /usr/nec; then | |
11260 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11261 | hardcode_shlibpath_var=no | |
11262 | runpath_var=LD_RUN_PATH | |
11263 | hardcode_runpath_var=yes | |
11264 | ld_shlibs=yes | |
11265 | fi | |
11266 | ;; | |
11267 | ||
11268 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11269 | no_undefined_flag='${wl}-z,text' | |
11270 | archive_cmds_need_lc=no | |
11271 | hardcode_shlibpath_var=no | |
11272 | runpath_var='LD_RUN_PATH' | |
11273 | ||
11274 | if test "$GCC" = yes; then | |
11275 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11276 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11277 | else | |
11278 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11279 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11280 | fi | |
11281 | ;; | |
11282 | ||
11283 | sysv5* | sco3.2v5* | sco5v6*) | |
11284 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11285 | # link with -lc, and that would cause any symbols used from libc to | |
11286 | # always be unresolved, which means just about no library would | |
11287 | # ever link correctly. If we're not using GNU ld we use -z text | |
11288 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11289 | # as -z defs. | |
11290 | no_undefined_flag='${wl}-z,text' | |
11291 | allow_undefined_flag='${wl}-z,nodefs' | |
11292 | archive_cmds_need_lc=no | |
11293 | hardcode_shlibpath_var=no | |
11294 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11295 | hardcode_libdir_separator=':' | |
11296 | link_all_deplibs=yes | |
11297 | export_dynamic_flag_spec='${wl}-Bexport' | |
11298 | runpath_var='LD_RUN_PATH' | |
11299 | ||
11300 | if test "$GCC" = yes; then | |
11301 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11302 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11303 | else | |
11304 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11305 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11306 | fi | |
11307 | ;; | |
11308 | ||
11309 | uts4*) | |
11310 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11311 | hardcode_libdir_flag_spec='-L$libdir' | |
11312 | hardcode_shlibpath_var=no | |
11313 | ;; | |
11314 | ||
11315 | *) | |
11316 | ld_shlibs=no | |
11317 | ;; | |
11318 | esac | |
11319 | ||
11320 | if test x$host_vendor = xsni; then | |
11321 | case $host in | |
11322 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11323 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11324 | ;; | |
11325 | esac | |
11326 | fi | |
11327 | fi | |
11328 | ||
cd9a469c | 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11330 | $as_echo "$ld_shlibs" >&6; } | |
542f9784 | 11331 | test "$ld_shlibs" = no && can_build_shared=no |
11332 | ||
11333 | with_gnu_ld=$with_gnu_ld | |
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | # | |
11350 | # Do we need to explicitly link libc? | |
11351 | # | |
11352 | case "x$archive_cmds_need_lc" in | |
11353 | x|xyes) | |
11354 | # Assume -lc should be added | |
11355 | archive_cmds_need_lc=yes | |
11356 | ||
11357 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11358 | case $archive_cmds in | |
11359 | *'~'*) | |
11360 | # FIXME: we may have to deal with multi-command sequences. | |
11361 | ;; | |
11362 | '$CC '*) | |
11363 | # Test whether the compiler implicitly links with -lc since on some | |
11364 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11365 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11367 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 11368 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
cd9a469c | 11369 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 11370 | else |
11371 | $RM conftest* | |
11372 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 11373 | |
cd9a469c | 11374 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 11375 | (eval $ac_compile) 2>&5 |
11376 | ac_status=$? | |
cd9a469c | 11377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11378 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 11379 | soname=conftest |
11380 | lib=conftest | |
11381 | libobjs=conftest.$ac_objext | |
11382 | deplibs= | |
11383 | wl=$lt_prog_compiler_wl | |
11384 | pic_flag=$lt_prog_compiler_pic | |
11385 | compiler_flags=-v | |
11386 | linker_flags=-v | |
11387 | verstring= | |
11388 | output_objdir=. | |
11389 | libname=conftest | |
11390 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11391 | allow_undefined_flag= | |
cd9a469c | 11392 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 11393 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11394 | ac_status=$? | |
cd9a469c | 11395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11396 | test $ac_status = 0; } | |
9e6fd619 | 11397 | then |
11398 | lt_cv_archive_cmds_need_lc=no | |
11399 | else | |
11400 | lt_cv_archive_cmds_need_lc=yes | |
11401 | fi | |
11402 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11403 | else | |
11404 | cat conftest.err 1>&5 | |
11405 | fi | |
11406 | $RM conftest* | |
11407 | ||
11408 | fi | |
cd9a469c | 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11410 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9e6fd619 | 11411 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
542f9784 | 11412 | ;; |
11413 | esac | |
11414 | fi | |
11415 | ;; | |
11416 | esac | |
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 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
cd9a469c | 11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11575 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 11576 | |
11577 | if test "$GCC" = yes; then | |
542f9784 | 11578 | case $host_os in |
11579 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11580 | *) lt_awk_arg="/^libraries:/" ;; | |
11581 | esac | |
e6408286 | 11582 | case $host_os in |
11583 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11584 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11585 | esac | |
11586 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11587 | case $lt_search_path_spec in | |
11588 | *\;*) | |
542f9784 | 11589 | # if the path contains ";" then we assume it to be the separator |
11590 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11591 | # assumed that no part of a normal pathname contains ";" but that should | |
11592 | # okay in the real world where ";" in dirpaths is itself problematic. | |
e6408286 | 11593 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11594 | ;; | |
11595 | *) | |
11596 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11597 | ;; | |
11598 | esac | |
542f9784 | 11599 | # Ok, now we have the path, separated by spaces, we can step through it |
11600 | # and add multilib dir if necessary. | |
11601 | lt_tmp_lt_search_path_spec= | |
11602 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11603 | for lt_sys_path in $lt_search_path_spec; do | |
11604 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11605 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11606 | else | |
11607 | test -d "$lt_sys_path" && \ | |
11608 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11609 | fi | |
11610 | done | |
e6408286 | 11611 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
542f9784 | 11612 | BEGIN {RS=" "; FS="/|\n";} { |
11613 | lt_foo=""; | |
11614 | lt_count=0; | |
11615 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11616 | if ($lt_i != "" && $lt_i != ".") { | |
11617 | if ($lt_i == "..") { | |
11618 | lt_count++; | |
11619 | } else { | |
11620 | if (lt_count == 0) { | |
11621 | lt_foo="/" $lt_i lt_foo; | |
11622 | } else { | |
11623 | lt_count--; | |
11624 | } | |
11625 | } | |
11626 | } | |
11627 | } | |
11628 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11629 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11630 | }'` | |
e6408286 | 11631 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11632 | # for these hosts. | |
11633 | case $host_os in | |
11634 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11635 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11636 | esac | |
11637 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
542f9784 | 11638 | else |
11639 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11640 | fi | |
11641 | library_names_spec= | |
11642 | libname_spec='lib$name' | |
11643 | soname_spec= | |
11644 | shrext_cmds=".so" | |
11645 | postinstall_cmds= | |
11646 | postuninstall_cmds= | |
11647 | finish_cmds= | |
11648 | finish_eval= | |
11649 | shlibpath_var= | |
11650 | shlibpath_overrides_runpath=unknown | |
11651 | version_type=none | |
11652 | dynamic_linker="$host_os ld.so" | |
11653 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11654 | need_lib_prefix=unknown | |
11655 | hardcode_into_libs=no | |
11656 | ||
11657 | # when you set need_version to no, make sure it does not cause -set_version | |
11658 | # flags to be left without arguments | |
11659 | need_version=unknown | |
11660 | ||
11661 | case $host_os in | |
11662 | aix3*) | |
11663 | version_type=linux | |
11664 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11665 | shlibpath_var=LIBPATH | |
11666 | ||
11667 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11668 | soname_spec='${libname}${release}${shared_ext}$major' | |
11669 | ;; | |
11670 | ||
21e07d2f | 11671 | aix[4-9]*) |
542f9784 | 11672 | version_type=linux |
11673 | need_lib_prefix=no | |
11674 | need_version=no | |
11675 | hardcode_into_libs=yes | |
11676 | if test "$host_cpu" = ia64; then | |
11677 | # AIX 5 supports IA64 | |
11678 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11679 | shlibpath_var=LD_LIBRARY_PATH | |
11680 | else | |
11681 | # With GCC up to 2.95.x, collect2 would create an import file | |
11682 | # for dependence libraries. The import file would start with | |
11683 | # the line `#! .'. This would cause the generated library to | |
11684 | # depend on `.', always an invalid library. This was fixed in | |
11685 | # development snapshots of GCC prior to 3.0. | |
11686 | case $host_os in | |
11687 | aix4 | aix4.[01] | aix4.[01].*) | |
11688 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11689 | echo ' yes ' | |
11690 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11691 | : | |
11692 | else | |
11693 | can_build_shared=no | |
11694 | fi | |
11695 | ;; | |
11696 | esac | |
11697 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11698 | # soname into executable. Probably we can add versioning support to | |
11699 | # collect2, so additional links can be useful in future. | |
11700 | if test "$aix_use_runtimelinking" = yes; then | |
11701 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11702 | # instead of lib<name>.a to let people know that these are not | |
11703 | # typical AIX shared libraries. | |
11704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11705 | else | |
11706 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11707 | # and later when we are not doing run time linking. | |
11708 | library_names_spec='${libname}${release}.a $libname.a' | |
11709 | soname_spec='${libname}${release}${shared_ext}$major' | |
11710 | fi | |
11711 | shlibpath_var=LIBPATH | |
11712 | fi | |
11713 | ;; | |
11714 | ||
11715 | amigaos*) | |
00aafda4 | 11716 | case $host_cpu in |
11717 | powerpc) | |
11718 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11719 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11721 | ;; | |
11722 | m68k) | |
542f9784 | 11723 | library_names_spec='$libname.ixlibrary $libname.a' |
11724 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 11725 | 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' |
00aafda4 | 11726 | ;; |
11727 | esac | |
542f9784 | 11728 | ;; |
11729 | ||
11730 | beos*) | |
11731 | library_names_spec='${libname}${shared_ext}' | |
11732 | dynamic_linker="$host_os ld.so" | |
11733 | shlibpath_var=LIBRARY_PATH | |
11734 | ;; | |
11735 | ||
11736 | bsdi[45]*) | |
11737 | version_type=linux | |
11738 | need_version=no | |
11739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11740 | soname_spec='${libname}${release}${shared_ext}$major' | |
11741 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11742 | shlibpath_var=LD_LIBRARY_PATH | |
11743 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11744 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11745 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11746 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11747 | # libtool to hard-code these into programs | |
11748 | ;; | |
11749 | ||
00aafda4 | 11750 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 11751 | version_type=windows |
11752 | shrext_cmds=".dll" | |
11753 | need_version=no | |
11754 | need_lib_prefix=no | |
11755 | ||
00aafda4 | 11756 | case $GCC,$host_os in |
11757 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 11758 | library_names_spec='$libname.dll.a' |
11759 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11760 | postinstall_cmds='base_file=`basename \${file}`~ | |
11761 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11762 | dldir=$destdir/`dirname \$dlpath`~ | |
11763 | test -d \$dldir || mkdir -p \$dldir~ | |
11764 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11765 | chmod a+x \$dldir/$dlname~ | |
11766 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11767 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11768 | fi' | |
11769 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11770 | dlpath=$dir/\$dldll~ | |
11771 | $RM \$dlpath' | |
11772 | shlibpath_overrides_runpath=yes | |
11773 | ||
11774 | case $host_os in | |
11775 | cygwin*) | |
11776 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11777 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 11778 | |
11779 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
542f9784 | 11780 | ;; |
00aafda4 | 11781 | mingw* | cegcc*) |
542f9784 | 11782 | # MinGW DLLs use traditional 'lib' prefix |
11783 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 11784 | ;; |
11785 | pw32*) | |
11786 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11787 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11788 | ;; | |
11789 | esac | |
11790 | ;; | |
11791 | ||
11792 | *) | |
11793 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11794 | ;; | |
11795 | esac | |
11796 | dynamic_linker='Win32 ld.exe' | |
11797 | # FIXME: first we should search . and the directory the executable is in | |
11798 | shlibpath_var=PATH | |
11799 | ;; | |
11800 | ||
11801 | darwin* | rhapsody*) | |
11802 | dynamic_linker="$host_os dyld" | |
11803 | version_type=darwin | |
11804 | need_lib_prefix=no | |
11805 | need_version=no | |
11806 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11807 | soname_spec='${libname}${release}${major}$shared_ext' | |
11808 | shlibpath_overrides_runpath=yes | |
11809 | shlibpath_var=DYLD_LIBRARY_PATH | |
11810 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11811 | ||
11812 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11813 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11814 | ;; | |
11815 | ||
11816 | dgux*) | |
11817 | version_type=linux | |
11818 | need_lib_prefix=no | |
11819 | need_version=no | |
11820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11821 | soname_spec='${libname}${release}${shared_ext}$major' | |
11822 | shlibpath_var=LD_LIBRARY_PATH | |
11823 | ;; | |
11824 | ||
542f9784 | 11825 | freebsd* | dragonfly*) |
11826 | # DragonFly does not have aout. When/if they implement a new | |
11827 | # versioning mechanism, adjust this. | |
11828 | if test -x /usr/bin/objformat; then | |
11829 | objformat=`/usr/bin/objformat` | |
11830 | else | |
11831 | case $host_os in | |
30369aff | 11832 | freebsd[23].*) objformat=aout ;; |
542f9784 | 11833 | *) objformat=elf ;; |
11834 | esac | |
11835 | fi | |
11836 | version_type=freebsd-$objformat | |
11837 | case $version_type in | |
11838 | freebsd-elf*) | |
11839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11840 | need_version=no | |
11841 | need_lib_prefix=no | |
11842 | ;; | |
11843 | freebsd-*) | |
11844 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11845 | need_version=yes | |
11846 | ;; | |
11847 | esac | |
11848 | shlibpath_var=LD_LIBRARY_PATH | |
11849 | case $host_os in | |
30369aff | 11850 | freebsd2.*) |
542f9784 | 11851 | shlibpath_overrides_runpath=yes |
11852 | ;; | |
11853 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11854 | shlibpath_overrides_runpath=yes | |
11855 | hardcode_into_libs=yes | |
11856 | ;; | |
11857 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11858 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11859 | shlibpath_overrides_runpath=no | |
11860 | hardcode_into_libs=yes | |
11861 | ;; | |
11862 | *) # from 4.6 on, and DragonFly | |
11863 | shlibpath_overrides_runpath=yes | |
11864 | hardcode_into_libs=yes | |
11865 | ;; | |
11866 | esac | |
11867 | ;; | |
11868 | ||
11869 | gnu*) | |
11870 | version_type=linux | |
11871 | need_lib_prefix=no | |
11872 | need_version=no | |
11873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11874 | soname_spec='${libname}${release}${shared_ext}$major' | |
11875 | shlibpath_var=LD_LIBRARY_PATH | |
11876 | hardcode_into_libs=yes | |
11877 | ;; | |
11878 | ||
e6408286 | 11879 | haiku*) |
11880 | version_type=linux | |
11881 | need_lib_prefix=no | |
11882 | need_version=no | |
11883 | dynamic_linker="$host_os runtime_loader" | |
11884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11885 | soname_spec='${libname}${release}${shared_ext}$major' | |
11886 | shlibpath_var=LIBRARY_PATH | |
11887 | shlibpath_overrides_runpath=yes | |
11888 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11889 | hardcode_into_libs=yes | |
11890 | ;; | |
11891 | ||
542f9784 | 11892 | hpux9* | hpux10* | hpux11*) |
11893 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11894 | # link against other versions. | |
11895 | version_type=sunos | |
11896 | need_lib_prefix=no | |
11897 | need_version=no | |
11898 | case $host_cpu in | |
11899 | ia64*) | |
11900 | shrext_cmds='.so' | |
11901 | hardcode_into_libs=yes | |
11902 | dynamic_linker="$host_os dld.so" | |
11903 | shlibpath_var=LD_LIBRARY_PATH | |
11904 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11906 | soname_spec='${libname}${release}${shared_ext}$major' | |
11907 | if test "X$HPUX_IA64_MODE" = X32; then | |
11908 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11909 | else | |
11910 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11911 | fi | |
11912 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11913 | ;; | |
11914 | hppa*64*) | |
11915 | shrext_cmds='.sl' | |
11916 | hardcode_into_libs=yes | |
11917 | dynamic_linker="$host_os dld.sl" | |
11918 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11919 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11921 | soname_spec='${libname}${release}${shared_ext}$major' | |
11922 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11923 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11924 | ;; | |
11925 | *) | |
11926 | shrext_cmds='.sl' | |
11927 | dynamic_linker="$host_os dld.sl" | |
11928 | shlibpath_var=SHLIB_PATH | |
11929 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11931 | soname_spec='${libname}${release}${shared_ext}$major' | |
11932 | ;; | |
11933 | esac | |
e6408286 | 11934 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 11935 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 11936 | # or fails outright, so override atomically: |
11937 | install_override_mode=555 | |
542f9784 | 11938 | ;; |
11939 | ||
11940 | interix[3-9]*) | |
11941 | version_type=linux | |
11942 | need_lib_prefix=no | |
11943 | need_version=no | |
11944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11945 | soname_spec='${libname}${release}${shared_ext}$major' | |
11946 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11947 | shlibpath_var=LD_LIBRARY_PATH | |
11948 | shlibpath_overrides_runpath=no | |
11949 | hardcode_into_libs=yes | |
11950 | ;; | |
11951 | ||
11952 | irix5* | irix6* | nonstopux*) | |
11953 | case $host_os in | |
11954 | nonstopux*) version_type=nonstopux ;; | |
11955 | *) | |
11956 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11957 | version_type=linux | |
11958 | else | |
11959 | version_type=irix | |
11960 | fi ;; | |
11961 | esac | |
11962 | need_lib_prefix=no | |
11963 | need_version=no | |
11964 | soname_spec='${libname}${release}${shared_ext}$major' | |
11965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11966 | case $host_os in | |
11967 | irix5* | nonstopux*) | |
11968 | libsuff= shlibsuff= | |
11969 | ;; | |
11970 | *) | |
11971 | case $LD in # libtool.m4 will add one of these switches to LD | |
11972 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11973 | libsuff= shlibsuff= libmagic=32-bit;; | |
11974 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11975 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11976 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11977 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11978 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11979 | esac | |
11980 | ;; | |
11981 | esac | |
11982 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11983 | shlibpath_overrides_runpath=no | |
11984 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11985 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11986 | hardcode_into_libs=yes | |
11987 | ;; | |
11988 | ||
11989 | # No shared lib support for Linux oldld, aout, or coff. | |
11990 | linux*oldld* | linux*aout* | linux*coff*) | |
11991 | dynamic_linker=no | |
11992 | ;; | |
11993 | ||
11994 | # This must be Linux ELF. | |
9af964d4 | 11995 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 11996 | version_type=linux |
11997 | need_lib_prefix=no | |
11998 | need_version=no | |
11999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12000 | soname_spec='${libname}${release}${shared_ext}$major' | |
12001 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12002 | shlibpath_var=LD_LIBRARY_PATH | |
12003 | shlibpath_overrides_runpath=no | |
9e6fd619 | 12004 | |
542f9784 | 12005 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 12006 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 12007 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 12008 | else |
12009 | lt_cv_shlibpath_overrides_runpath=no | |
12010 | save_LDFLAGS=$LDFLAGS | |
12011 | save_libdir=$libdir | |
12012 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12013 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12014 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12015 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12016 | fi |
cd9a469c | 12017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12018 | /* end confdefs.h. */ |
12019 | ||
12020 | int | |
12021 | main () | |
12022 | { | |
12023 | ||
12024 | ; | |
12025 | return 0; | |
12026 | } | |
12027 | _ACEOF | |
cd9a469c | 12028 | if ac_fn_c_try_link "$LINENO"; then : |
12029 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 12030 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 12031 | fi |
542f9784 | 12032 | fi |
cd9a469c | 12033 | rm -f core conftest.err conftest.$ac_objext \ |
12034 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 12035 | LDFLAGS=$save_LDFLAGS |
12036 | libdir=$save_libdir | |
12037 | ||
12038 | fi | |
12039 | ||
12040 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 12041 | |
12042 | # This implies no fast_install, which is unacceptable. | |
12043 | # Some rework will be needed to allow for fast_install | |
12044 | # before this can be enabled. | |
12045 | hardcode_into_libs=yes | |
12046 | ||
12047 | # Append ld.so.conf contents to the search path | |
12048 | if test -f /etc/ld.so.conf; then | |
e6408286 | 12049 | 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' ' '` |
542f9784 | 12050 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12051 | fi | |
12052 | ||
12053 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12054 | # powerpc, because MkLinux only supported shared libraries with the | |
12055 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12056 | # most powerpc-linux boxes support dynamic linking these days and | |
12057 | # people can always --disable-shared, the test was removed, and we | |
12058 | # assume the GNU/Linux dynamic linker is in use. | |
12059 | dynamic_linker='GNU/Linux ld.so' | |
12060 | ;; | |
12061 | ||
12062 | netbsd*) | |
12063 | version_type=sunos | |
12064 | need_lib_prefix=no | |
12065 | need_version=no | |
12066 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12068 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12069 | dynamic_linker='NetBSD (a.out) ld.so' | |
12070 | else | |
12071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12072 | soname_spec='${libname}${release}${shared_ext}$major' | |
12073 | dynamic_linker='NetBSD ld.elf_so' | |
12074 | fi | |
12075 | shlibpath_var=LD_LIBRARY_PATH | |
12076 | shlibpath_overrides_runpath=yes | |
12077 | hardcode_into_libs=yes | |
12078 | ;; | |
12079 | ||
12080 | newsos6) | |
12081 | version_type=linux | |
12082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12083 | shlibpath_var=LD_LIBRARY_PATH | |
12084 | shlibpath_overrides_runpath=yes | |
12085 | ;; | |
12086 | ||
12087 | *nto* | *qnx*) | |
12088 | version_type=qnx | |
12089 | need_lib_prefix=no | |
12090 | need_version=no | |
12091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12092 | soname_spec='${libname}${release}${shared_ext}$major' | |
12093 | shlibpath_var=LD_LIBRARY_PATH | |
12094 | shlibpath_overrides_runpath=no | |
12095 | hardcode_into_libs=yes | |
12096 | dynamic_linker='ldqnx.so' | |
12097 | ;; | |
12098 | ||
12099 | openbsd*) | |
12100 | version_type=sunos | |
12101 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12102 | need_lib_prefix=no | |
12103 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12104 | case $host_os in | |
12105 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12106 | *) need_version=no ;; | |
12107 | esac | |
12108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12109 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12110 | shlibpath_var=LD_LIBRARY_PATH | |
12111 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12112 | case $host_os in | |
12113 | openbsd2.[89] | openbsd2.[89].*) | |
12114 | shlibpath_overrides_runpath=no | |
12115 | ;; | |
12116 | *) | |
12117 | shlibpath_overrides_runpath=yes | |
12118 | ;; | |
12119 | esac | |
12120 | else | |
12121 | shlibpath_overrides_runpath=yes | |
12122 | fi | |
12123 | ;; | |
12124 | ||
12125 | os2*) | |
12126 | libname_spec='$name' | |
12127 | shrext_cmds=".dll" | |
12128 | need_lib_prefix=no | |
12129 | library_names_spec='$libname${shared_ext} $libname.a' | |
12130 | dynamic_linker='OS/2 ld.exe' | |
12131 | shlibpath_var=LIBPATH | |
12132 | ;; | |
12133 | ||
12134 | osf3* | osf4* | osf5*) | |
12135 | version_type=osf | |
12136 | need_lib_prefix=no | |
12137 | need_version=no | |
12138 | soname_spec='${libname}${release}${shared_ext}$major' | |
12139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12140 | shlibpath_var=LD_LIBRARY_PATH | |
12141 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12142 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12143 | ;; | |
12144 | ||
12145 | rdos*) | |
12146 | dynamic_linker=no | |
12147 | ;; | |
12148 | ||
12149 | solaris*) | |
12150 | version_type=linux | |
12151 | need_lib_prefix=no | |
12152 | need_version=no | |
12153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12154 | soname_spec='${libname}${release}${shared_ext}$major' | |
12155 | shlibpath_var=LD_LIBRARY_PATH | |
12156 | shlibpath_overrides_runpath=yes | |
12157 | hardcode_into_libs=yes | |
12158 | # ldd complains unless libraries are executable | |
12159 | postinstall_cmds='chmod +x $lib' | |
12160 | ;; | |
12161 | ||
12162 | sunos4*) | |
12163 | version_type=sunos | |
12164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12165 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12166 | shlibpath_var=LD_LIBRARY_PATH | |
12167 | shlibpath_overrides_runpath=yes | |
12168 | if test "$with_gnu_ld" = yes; then | |
12169 | need_lib_prefix=no | |
12170 | fi | |
12171 | need_version=yes | |
12172 | ;; | |
12173 | ||
12174 | sysv4 | sysv4.3*) | |
12175 | version_type=linux | |
12176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12177 | soname_spec='${libname}${release}${shared_ext}$major' | |
12178 | shlibpath_var=LD_LIBRARY_PATH | |
12179 | case $host_vendor in | |
12180 | sni) | |
12181 | shlibpath_overrides_runpath=no | |
12182 | need_lib_prefix=no | |
12183 | runpath_var=LD_RUN_PATH | |
12184 | ;; | |
12185 | siemens) | |
12186 | need_lib_prefix=no | |
12187 | ;; | |
12188 | motorola) | |
12189 | need_lib_prefix=no | |
12190 | need_version=no | |
12191 | shlibpath_overrides_runpath=no | |
12192 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12193 | ;; | |
12194 | esac | |
12195 | ;; | |
12196 | ||
12197 | sysv4*MP*) | |
12198 | if test -d /usr/nec ;then | |
12199 | version_type=linux | |
12200 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12201 | soname_spec='$libname${shared_ext}.$major' | |
12202 | shlibpath_var=LD_LIBRARY_PATH | |
12203 | fi | |
12204 | ;; | |
12205 | ||
12206 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12207 | version_type=freebsd-elf | |
12208 | need_lib_prefix=no | |
12209 | need_version=no | |
12210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12211 | soname_spec='${libname}${release}${shared_ext}$major' | |
12212 | shlibpath_var=LD_LIBRARY_PATH | |
12213 | shlibpath_overrides_runpath=yes | |
12214 | hardcode_into_libs=yes | |
12215 | if test "$with_gnu_ld" = yes; then | |
12216 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12217 | else | |
12218 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12219 | case $host_os in | |
12220 | sco3.2v5*) | |
12221 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12222 | ;; | |
12223 | esac | |
12224 | fi | |
12225 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12226 | ;; | |
12227 | ||
12228 | tpf*) | |
12229 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12230 | version_type=linux | |
12231 | need_lib_prefix=no | |
12232 | need_version=no | |
00aafda4 | 12233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 12234 | shlibpath_var=LD_LIBRARY_PATH |
12235 | shlibpath_overrides_runpath=no | |
12236 | hardcode_into_libs=yes | |
12237 | ;; | |
12238 | ||
12239 | uts4*) | |
12240 | version_type=linux | |
12241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12242 | soname_spec='${libname}${release}${shared_ext}$major' | |
12243 | shlibpath_var=LD_LIBRARY_PATH | |
12244 | ;; | |
12245 | ||
12246 | *) | |
12247 | dynamic_linker=no | |
12248 | ;; | |
12249 | esac | |
cd9a469c | 12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12251 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 12252 | test "$dynamic_linker" = no && can_build_shared=no |
12253 | ||
12254 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12255 | if test "$GCC" = yes; then | |
12256 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12257 | fi | |
12258 | ||
00aafda4 | 12259 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12260 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12261 | fi | |
12262 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12263 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12264 | fi | |
12265 | ||
542f9784 | 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 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
e6408286 | 12346 | |
12347 | ||
12348 | ||
12349 | ||
12350 | ||
542f9784 | 12351 | |
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | ||
cd9a469c | 12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12358 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 12359 | hardcode_action= |
12360 | if test -n "$hardcode_libdir_flag_spec" || | |
12361 | test -n "$runpath_var" || | |
12362 | test "X$hardcode_automatic" = "Xyes" ; then | |
12363 | ||
12364 | # We can hardcode non-existent directories. | |
12365 | if test "$hardcode_direct" != no && | |
12366 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12367 | # have to relink, otherwise we might link with an installed library | |
12368 | # when we should be linking with a yet-to-be-installed one | |
12369 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12370 | test "$hardcode_minus_L" != no; then | |
12371 | # Linking always hardcodes the temporary library directory. | |
12372 | hardcode_action=relink | |
12373 | else | |
12374 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12375 | hardcode_action=immediate | |
12376 | fi | |
12377 | else | |
12378 | # We cannot hardcode anything, or else we can only hardcode existing | |
12379 | # directories. | |
12380 | hardcode_action=unsupported | |
12381 | fi | |
cd9a469c | 12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12383 | $as_echo "$hardcode_action" >&6; } | |
542f9784 | 12384 | |
12385 | if test "$hardcode_action" = relink || | |
12386 | test "$inherit_rpath" = yes; then | |
12387 | # Fast installation is not supported | |
12388 | enable_fast_install=no | |
12389 | elif test "$shlibpath_overrides_runpath" = yes || | |
12390 | test "$enable_shared" = no; then | |
12391 | # Fast installation is not necessary | |
12392 | enable_fast_install=needless | |
12393 | fi | |
12394 | ||
12395 | ||
12396 | ||
12397 | ||
12398 | ||
12399 | ||
12400 | if test "x$enable_dlopen" != xyes; then | |
12401 | enable_dlopen=unknown | |
12402 | enable_dlopen_self=unknown | |
12403 | enable_dlopen_self_static=unknown | |
12404 | else | |
12405 | lt_cv_dlopen=no | |
12406 | lt_cv_dlopen_libs= | |
12407 | ||
12408 | case $host_os in | |
12409 | beos*) | |
12410 | lt_cv_dlopen="load_add_on" | |
12411 | lt_cv_dlopen_libs= | |
12412 | lt_cv_dlopen_self=yes | |
12413 | ;; | |
12414 | ||
00aafda4 | 12415 | mingw* | pw32* | cegcc*) |
542f9784 | 12416 | lt_cv_dlopen="LoadLibrary" |
12417 | lt_cv_dlopen_libs= | |
12418 | ;; | |
12419 | ||
12420 | cygwin*) | |
12421 | lt_cv_dlopen="dlopen" | |
12422 | lt_cv_dlopen_libs= | |
12423 | ;; | |
12424 | ||
12425 | darwin*) | |
12426 | # if libdl is installed we need to link against it | |
cd9a469c | 12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12428 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 12429 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 12430 | $as_echo_n "(cached) " >&6 |
542f9784 | 12431 | else |
12432 | ac_check_lib_save_LIBS=$LIBS | |
12433 | LIBS="-ldl $LIBS" | |
12434 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12435 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12436 | fi |
cd9a469c | 12437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12438 | /* end confdefs.h. */ |
12439 | ||
cd9a469c | 12440 | /* Override any GCC internal prototype to avoid an error. |
12441 | Use char because int might match the return type of a GCC | |
12442 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12443 | #ifdef __cplusplus |
12444 | extern "C" | |
12445 | #endif | |
542f9784 | 12446 | char dlopen (); |
12447 | int | |
12448 | main () | |
12449 | { | |
cd9a469c | 12450 | return dlopen (); |
542f9784 | 12451 | ; |
12452 | return 0; | |
12453 | } | |
12454 | _ACEOF | |
cd9a469c | 12455 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12456 | ac_cv_lib_dl_dlopen=yes |
12457 | else | |
cd9a469c | 12458 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12459 | fi |
cd9a469c | 12460 | rm -f core conftest.err conftest.$ac_objext \ |
12461 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12462 | LIBS=$ac_check_lib_save_LIBS |
12463 | fi | |
cd9a469c | 12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12465 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 12466 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 12467 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12468 | else | |
12469 | ||
12470 | lt_cv_dlopen="dyld" | |
12471 | lt_cv_dlopen_libs= | |
12472 | lt_cv_dlopen_self=yes | |
12473 | ||
12474 | fi | |
12475 | ||
12476 | ;; | |
12477 | ||
12478 | *) | |
cd9a469c | 12479 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
f00f02a3 | 12480 | if test "x$ac_cv_func_shl_load" = xyes; then : |
542f9784 | 12481 | lt_cv_dlopen="shl_load" |
12482 | else | |
cd9a469c | 12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12484 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
f00f02a3 | 12485 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
cd9a469c | 12486 | $as_echo_n "(cached) " >&6 |
542f9784 | 12487 | else |
12488 | ac_check_lib_save_LIBS=$LIBS | |
12489 | LIBS="-ldld $LIBS" | |
12490 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12492 | fi |
cd9a469c | 12493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12494 | /* end confdefs.h. */ |
12495 | ||
cd9a469c | 12496 | /* Override any GCC internal prototype to avoid an error. |
12497 | Use char because int might match the return type of a GCC | |
12498 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12499 | #ifdef __cplusplus |
12500 | extern "C" | |
12501 | #endif | |
542f9784 | 12502 | char shl_load (); |
12503 | int | |
12504 | main () | |
12505 | { | |
cd9a469c | 12506 | return shl_load (); |
542f9784 | 12507 | ; |
12508 | return 0; | |
12509 | } | |
12510 | _ACEOF | |
cd9a469c | 12511 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12512 | ac_cv_lib_dld_shl_load=yes |
12513 | else | |
cd9a469c | 12514 | ac_cv_lib_dld_shl_load=no |
542f9784 | 12515 | fi |
cd9a469c | 12516 | rm -f core conftest.err conftest.$ac_objext \ |
12517 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12518 | LIBS=$ac_check_lib_save_LIBS |
12519 | fi | |
cd9a469c | 12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12521 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
f00f02a3 | 12522 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
00aafda4 | 12523 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12524 | else |
cd9a469c | 12525 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
f00f02a3 | 12526 | if test "x$ac_cv_func_dlopen" = xyes; then : |
542f9784 | 12527 | lt_cv_dlopen="dlopen" |
12528 | else | |
cd9a469c | 12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12530 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 12531 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 12532 | $as_echo_n "(cached) " >&6 |
542f9784 | 12533 | else |
12534 | ac_check_lib_save_LIBS=$LIBS | |
12535 | LIBS="-ldl $LIBS" | |
12536 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12537 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12538 | fi |
cd9a469c | 12539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12540 | /* end confdefs.h. */ |
12541 | ||
cd9a469c | 12542 | /* Override any GCC internal prototype to avoid an error. |
12543 | Use char because int might match the return type of a GCC | |
12544 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12545 | #ifdef __cplusplus |
12546 | extern "C" | |
12547 | #endif | |
542f9784 | 12548 | char dlopen (); |
12549 | int | |
12550 | main () | |
12551 | { | |
cd9a469c | 12552 | return dlopen (); |
542f9784 | 12553 | ; |
12554 | return 0; | |
12555 | } | |
12556 | _ACEOF | |
cd9a469c | 12557 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12558 | ac_cv_lib_dl_dlopen=yes |
12559 | else | |
cd9a469c | 12560 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12561 | fi |
cd9a469c | 12562 | rm -f core conftest.err conftest.$ac_objext \ |
12563 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12564 | LIBS=$ac_check_lib_save_LIBS |
12565 | fi | |
cd9a469c | 12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12567 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 12568 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 12569 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12570 | else | |
cd9a469c | 12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12572 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
f00f02a3 | 12573 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
cd9a469c | 12574 | $as_echo_n "(cached) " >&6 |
542f9784 | 12575 | else |
12576 | ac_check_lib_save_LIBS=$LIBS | |
12577 | LIBS="-lsvld $LIBS" | |
12578 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12579 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12580 | fi |
cd9a469c | 12581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12582 | /* end confdefs.h. */ |
12583 | ||
cd9a469c | 12584 | /* Override any GCC internal prototype to avoid an error. |
12585 | Use char because int might match the return type of a GCC | |
12586 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12587 | #ifdef __cplusplus |
12588 | extern "C" | |
12589 | #endif | |
542f9784 | 12590 | char dlopen (); |
12591 | int | |
12592 | main () | |
12593 | { | |
cd9a469c | 12594 | return dlopen (); |
542f9784 | 12595 | ; |
12596 | return 0; | |
12597 | } | |
12598 | _ACEOF | |
cd9a469c | 12599 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12600 | ac_cv_lib_svld_dlopen=yes |
12601 | else | |
cd9a469c | 12602 | ac_cv_lib_svld_dlopen=no |
542f9784 | 12603 | fi |
cd9a469c | 12604 | rm -f core conftest.err conftest.$ac_objext \ |
12605 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12606 | LIBS=$ac_check_lib_save_LIBS |
12607 | fi | |
cd9a469c | 12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12609 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
f00f02a3 | 12610 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
542f9784 | 12611 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12612 | else | |
cd9a469c | 12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12614 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
f00f02a3 | 12615 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
cd9a469c | 12616 | $as_echo_n "(cached) " >&6 |
542f9784 | 12617 | else |
12618 | ac_check_lib_save_LIBS=$LIBS | |
12619 | LIBS="-ldld $LIBS" | |
12620 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12621 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12622 | fi |
cd9a469c | 12623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12624 | /* end confdefs.h. */ |
12625 | ||
cd9a469c | 12626 | /* Override any GCC internal prototype to avoid an error. |
12627 | Use char because int might match the return type of a GCC | |
12628 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12629 | #ifdef __cplusplus |
12630 | extern "C" | |
12631 | #endif | |
542f9784 | 12632 | char dld_link (); |
12633 | int | |
12634 | main () | |
12635 | { | |
cd9a469c | 12636 | return dld_link (); |
542f9784 | 12637 | ; |
12638 | return 0; | |
12639 | } | |
12640 | _ACEOF | |
cd9a469c | 12641 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12642 | ac_cv_lib_dld_dld_link=yes |
12643 | else | |
cd9a469c | 12644 | ac_cv_lib_dld_dld_link=no |
542f9784 | 12645 | fi |
cd9a469c | 12646 | rm -f core conftest.err conftest.$ac_objext \ |
12647 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12648 | LIBS=$ac_check_lib_save_LIBS |
12649 | fi | |
cd9a469c | 12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12651 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
f00f02a3 | 12652 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
00aafda4 | 12653 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12654 | fi |
12655 | ||
12656 | ||
12657 | fi | |
12658 | ||
12659 | ||
12660 | fi | |
12661 | ||
12662 | ||
12663 | fi | |
12664 | ||
12665 | ||
12666 | fi | |
12667 | ||
12668 | ||
12669 | fi | |
12670 | ||
12671 | ;; | |
12672 | esac | |
12673 | ||
12674 | if test "x$lt_cv_dlopen" != xno; then | |
12675 | enable_dlopen=yes | |
12676 | else | |
12677 | enable_dlopen=no | |
12678 | fi | |
12679 | ||
12680 | case $lt_cv_dlopen in | |
12681 | dlopen) | |
12682 | save_CPPFLAGS="$CPPFLAGS" | |
12683 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12684 | ||
12685 | save_LDFLAGS="$LDFLAGS" | |
12686 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12687 | ||
12688 | save_LIBS="$LIBS" | |
12689 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12690 | ||
cd9a469c | 12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12692 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
f00f02a3 | 12693 | if ${lt_cv_dlopen_self+:} false; then : |
cd9a469c | 12694 | $as_echo_n "(cached) " >&6 |
542f9784 | 12695 | else |
12696 | if test "$cross_compiling" = yes; then : | |
12697 | lt_cv_dlopen_self=cross | |
12698 | else | |
12699 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12700 | lt_status=$lt_dlunknown | |
12701 | cat > conftest.$ac_ext <<_LT_EOF | |
69024fb7 | 12702 | #line 12703 "configure" |
542f9784 | 12703 | #include "confdefs.h" |
12704 | ||
12705 | #if HAVE_DLFCN_H | |
12706 | #include <dlfcn.h> | |
12707 | #endif | |
12708 | ||
12709 | #include <stdio.h> | |
12710 | ||
12711 | #ifdef RTLD_GLOBAL | |
12712 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12713 | #else | |
12714 | # ifdef DL_GLOBAL | |
12715 | # define LT_DLGLOBAL DL_GLOBAL | |
12716 | # else | |
12717 | # define LT_DLGLOBAL 0 | |
12718 | # endif | |
12719 | #endif | |
12720 | ||
12721 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12722 | find out it does not work in some platform. */ | |
12723 | #ifndef LT_DLLAZY_OR_NOW | |
12724 | # ifdef RTLD_LAZY | |
12725 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12726 | # else | |
12727 | # ifdef DL_LAZY | |
12728 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12729 | # else | |
12730 | # ifdef RTLD_NOW | |
12731 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12732 | # else | |
12733 | # ifdef DL_NOW | |
12734 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12735 | # else | |
12736 | # define LT_DLLAZY_OR_NOW 0 | |
12737 | # endif | |
12738 | # endif | |
12739 | # endif | |
12740 | # endif | |
12741 | #endif | |
12742 | ||
e6408286 | 12743 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12744 | correspondingly for the symbols needed. */ | |
12745 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12746 | void fnord () __attribute__((visibility("default"))); | |
12747 | #endif | |
12748 | ||
12749 | void fnord () { int i=42; } | |
542f9784 | 12750 | int main () |
12751 | { | |
12752 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12753 | int status = $lt_dlunknown; | |
12754 | ||
12755 | if (self) | |
12756 | { | |
12757 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12758 | else |
12759 | { | |
12760 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12761 | else puts (dlerror ()); | |
12762 | } | |
542f9784 | 12763 | /* dlclose (self); */ |
12764 | } | |
12765 | else | |
12766 | puts (dlerror ()); | |
12767 | ||
00aafda4 | 12768 | return status; |
542f9784 | 12769 | } |
12770 | _LT_EOF | |
cd9a469c | 12771 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12772 | (eval $ac_link) 2>&5 |
12773 | ac_status=$? | |
cd9a469c | 12774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12775 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12776 | (./conftest; exit; ) >&5 2>/dev/null |
12777 | lt_status=$? | |
12778 | case x$lt_status in | |
12779 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12780 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12781 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12782 | esac | |
12783 | else : | |
12784 | # compilation failed | |
12785 | lt_cv_dlopen_self=no | |
12786 | fi | |
12787 | fi | |
12788 | rm -fr conftest* | |
12789 | ||
12790 | ||
12791 | fi | |
cd9a469c | 12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12793 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
542f9784 | 12794 | |
12795 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12796 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
cd9a469c | 12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12798 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
f00f02a3 | 12799 | if ${lt_cv_dlopen_self_static+:} false; then : |
cd9a469c | 12800 | $as_echo_n "(cached) " >&6 |
542f9784 | 12801 | else |
12802 | if test "$cross_compiling" = yes; then : | |
12803 | lt_cv_dlopen_self_static=cross | |
12804 | else | |
12805 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12806 | lt_status=$lt_dlunknown | |
12807 | cat > conftest.$ac_ext <<_LT_EOF | |
69024fb7 | 12808 | #line 12809 "configure" |
542f9784 | 12809 | #include "confdefs.h" |
12810 | ||
12811 | #if HAVE_DLFCN_H | |
12812 | #include <dlfcn.h> | |
12813 | #endif | |
12814 | ||
12815 | #include <stdio.h> | |
12816 | ||
12817 | #ifdef RTLD_GLOBAL | |
12818 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12819 | #else | |
12820 | # ifdef DL_GLOBAL | |
12821 | # define LT_DLGLOBAL DL_GLOBAL | |
12822 | # else | |
12823 | # define LT_DLGLOBAL 0 | |
12824 | # endif | |
12825 | #endif | |
12826 | ||
12827 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12828 | find out it does not work in some platform. */ | |
12829 | #ifndef LT_DLLAZY_OR_NOW | |
12830 | # ifdef RTLD_LAZY | |
12831 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12832 | # else | |
12833 | # ifdef DL_LAZY | |
12834 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12835 | # else | |
12836 | # ifdef RTLD_NOW | |
12837 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12838 | # else | |
12839 | # ifdef DL_NOW | |
12840 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12841 | # else | |
12842 | # define LT_DLLAZY_OR_NOW 0 | |
12843 | # endif | |
12844 | # endif | |
12845 | # endif | |
12846 | # endif | |
12847 | #endif | |
12848 | ||
e6408286 | 12849 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12850 | correspondingly for the symbols needed. */ | |
12851 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12852 | void fnord () __attribute__((visibility("default"))); | |
12853 | #endif | |
12854 | ||
12855 | void fnord () { int i=42; } | |
542f9784 | 12856 | int main () |
12857 | { | |
12858 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12859 | int status = $lt_dlunknown; | |
12860 | ||
12861 | if (self) | |
12862 | { | |
12863 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12864 | else |
12865 | { | |
12866 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12867 | else puts (dlerror ()); | |
12868 | } | |
542f9784 | 12869 | /* dlclose (self); */ |
12870 | } | |
12871 | else | |
12872 | puts (dlerror ()); | |
12873 | ||
00aafda4 | 12874 | return status; |
542f9784 | 12875 | } |
12876 | _LT_EOF | |
cd9a469c | 12877 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12878 | (eval $ac_link) 2>&5 |
12879 | ac_status=$? | |
cd9a469c | 12880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12881 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12882 | (./conftest; exit; ) >&5 2>/dev/null |
12883 | lt_status=$? | |
12884 | case x$lt_status in | |
12885 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12886 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12887 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12888 | esac | |
12889 | else : | |
12890 | # compilation failed | |
12891 | lt_cv_dlopen_self_static=no | |
12892 | fi | |
12893 | fi | |
12894 | rm -fr conftest* | |
12895 | ||
12896 | ||
12897 | fi | |
cd9a469c | 12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12899 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
542f9784 | 12900 | fi |
12901 | ||
12902 | CPPFLAGS="$save_CPPFLAGS" | |
12903 | LDFLAGS="$save_LDFLAGS" | |
12904 | LIBS="$save_LIBS" | |
12905 | ;; | |
12906 | esac | |
12907 | ||
12908 | case $lt_cv_dlopen_self in | |
12909 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12910 | *) enable_dlopen_self=unknown ;; | |
12911 | esac | |
12912 | ||
12913 | case $lt_cv_dlopen_self_static in | |
12914 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12915 | *) enable_dlopen_self_static=unknown ;; | |
12916 | esac | |
12917 | fi | |
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | ||
12935 | striplib= | |
12936 | old_striplib= | |
cd9a469c | 12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12938 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
542f9784 | 12939 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12940 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12941 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
cd9a469c | 12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12943 | $as_echo "yes" >&6; } | |
542f9784 | 12944 | else |
12945 | # FIXME - insert some real tests, host_os isn't really good enough | |
12946 | case $host_os in | |
12947 | darwin*) | |
12948 | if test -n "$STRIP" ; then | |
12949 | striplib="$STRIP -x" | |
12950 | old_striplib="$STRIP -S" | |
cd9a469c | 12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12952 | $as_echo "yes" >&6; } | |
542f9784 | 12953 | else |
cd9a469c | 12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12955 | $as_echo "no" >&6; } | |
542f9784 | 12956 | fi |
12957 | ;; | |
12958 | *) | |
cd9a469c | 12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12960 | $as_echo "no" >&6; } | |
542f9784 | 12961 | ;; |
12962 | esac | |
12963 | fi | |
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ||
e6408286 | 12976 | # Report which library types will actually be built |
12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12978 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12980 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12981 | |
e6408286 | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12983 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12984 | test "$can_build_shared" = "no" && enable_shared=no | |
542f9784 | 12985 | |
e6408286 | 12986 | # On AIX, shared libraries and static libraries use the same namespace, and |
12987 | # are all built from PIC. | |
12988 | case $host_os in | |
12989 | aix3*) | |
12990 | test "$enable_shared" = yes && enable_static=no | |
12991 | if test -n "$RANLIB"; then | |
12992 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12993 | postinstall_cmds='$RANLIB $lib' | |
12994 | fi | |
12995 | ;; | |
542f9784 | 12996 | |
e6408286 | 12997 | aix[4-9]*) |
12998 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12999 | test "$enable_shared" = yes && enable_static=no | |
13000 | fi | |
13001 | ;; | |
13002 | esac | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13004 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 13005 | |
e6408286 | 13006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13007 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13008 | # Make sure either enable_shared or enable_static is yes. | |
13009 | test "$enable_shared" = yes || enable_static=yes | |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13011 | $as_echo "$enable_static" >&6; } | |
542f9784 | 13012 | |
542f9784 | 13013 | |
542f9784 | 13014 | |
542f9784 | 13015 | |
13016 | fi | |
542f9784 | 13017 | ac_ext=c |
13018 | ac_cpp='$CPP $CPPFLAGS' | |
13019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13022 | ||
e6408286 | 13023 | CC="$lt_save_CC" |
13024 | ||
13025 | ||
13026 | ||
13027 | ||
13028 | ||
13029 | ||
13030 | ||
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | ||
13036 | ||
13037 | ac_config_commands="$ac_config_commands libtool" | |
13038 | ||
13039 | ||
13040 | ||
13041 | ||
13042 | # Only expand once: | |
13043 | ||
13044 | ||
13045 | ||
13046 | ||
8c35d268 | 13047 | |
13048 | case $host in | |
13049 | *-cygwin* | *-mingw*) | |
13050 | # 'host' will be top-level target in the case of a target lib, | |
13051 | # we must compare to with_cross_host to decide if this is a native | |
13052 | # or cross-compiler and select where to install dlls appropriately. | |
13053 | if test -n "$with_cross_host" && | |
13054 | test x"$with_cross_host" != x"no"; then | |
13055 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13056 | else | |
13057 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13058 | fi | |
13059 | ;; | |
13060 | *) | |
13061 | lt_host_flags= | |
13062 | ;; | |
13063 | esac | |
13064 | ||
13065 | ||
13066 | ||
13067 | ||
13068 | ||
e6408286 | 13069 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
542f9784 | 13070 | |
e6408286 | 13071 | # We need gfortran to compile parts of the library |
13072 | #AC_PROG_FC(gfortran) | |
13073 | FC="$GFORTRAN" | |
cd9a469c | 13074 | ac_ext=${ac_fc_srcext-f} |
13075 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13076 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 13077 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13078 | if test -n "$ac_tool_prefix"; then | |
e6408286 | 13079 | for ac_prog in gfortran |
542f9784 | 13080 | do |
13081 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13082 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13084 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13085 | if ${ac_cv_prog_FC+:} false; then : |
cd9a469c | 13086 | $as_echo_n "(cached) " >&6 |
542f9784 | 13087 | else |
13088 | if test -n "$FC"; then | |
13089 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13090 | else | |
13091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13092 | for as_dir in $PATH | |
13093 | do | |
13094 | IFS=$as_save_IFS | |
13095 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13096 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 13098 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
cd9a469c | 13099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 13100 | break 2 |
13101 | fi | |
13102 | done | |
cd9a469c | 13103 | done |
13104 | IFS=$as_save_IFS | |
542f9784 | 13105 | |
13106 | fi | |
13107 | fi | |
13108 | FC=$ac_cv_prog_FC | |
13109 | if test -n "$FC"; then | |
cd9a469c | 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13111 | $as_echo "$FC" >&6; } | |
542f9784 | 13112 | else |
cd9a469c | 13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13114 | $as_echo "no" >&6; } | |
542f9784 | 13115 | fi |
13116 | ||
cd9a469c | 13117 | |
542f9784 | 13118 | test -n "$FC" && break |
13119 | done | |
13120 | fi | |
13121 | if test -z "$FC"; then | |
13122 | ac_ct_FC=$FC | |
e6408286 | 13123 | for ac_prog in gfortran |
542f9784 | 13124 | do |
13125 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13126 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13128 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13129 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
cd9a469c | 13130 | $as_echo_n "(cached) " >&6 |
542f9784 | 13131 | else |
13132 | if test -n "$ac_ct_FC"; then | |
13133 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13134 | else | |
13135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13136 | for as_dir in $PATH | |
13137 | do | |
13138 | IFS=$as_save_IFS | |
13139 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13140 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 13142 | ac_cv_prog_ac_ct_FC="$ac_prog" |
cd9a469c | 13143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 13144 | break 2 |
13145 | fi | |
13146 | done | |
cd9a469c | 13147 | done |
13148 | IFS=$as_save_IFS | |
542f9784 | 13149 | |
13150 | fi | |
13151 | fi | |
13152 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13153 | if test -n "$ac_ct_FC"; then | |
cd9a469c | 13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13155 | $as_echo "$ac_ct_FC" >&6; } | |
542f9784 | 13156 | else |
cd9a469c | 13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13158 | $as_echo "no" >&6; } | |
542f9784 | 13159 | fi |
13160 | ||
cd9a469c | 13161 | |
542f9784 | 13162 | test -n "$ac_ct_FC" && break |
82eaf560 | 13163 | done |
13164 | ||
cd9a469c | 13165 | if test "x$ac_ct_FC" = x; then |
13166 | FC="" | |
13167 | else | |
13168 | case $cross_compiling:$ac_tool_warned in | |
13169 | yes:) | |
13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13171 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13172 | ac_tool_warned=yes ;; | |
13173 | esac | |
13174 | FC=$ac_ct_FC | |
13175 | fi | |
542f9784 | 13176 | fi |
13177 | ||
13178 | ||
13179 | # Provide some information about the compiler. | |
cd9a469c | 13180 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13181 | set X $ac_compile | |
13182 | ac_compiler=$2 | |
13183 | for ac_option in --version -v -V -qversion; do | |
13184 | { { ac_try="$ac_compiler $ac_option >&5" | |
13185 | case "(($ac_try" in | |
13186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13187 | *) ac_try_echo=$ac_try;; | |
13188 | esac | |
13189 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13190 | $as_echo "$ac_try_echo"; } >&5 | |
13191 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
542f9784 | 13192 | ac_status=$? |
cd9a469c | 13193 | if test -s conftest.err; then |
13194 | sed '10a\ | |
13195 | ... rest of stderr output deleted ... | |
13196 | 10q' conftest.err >conftest.er1 | |
13197 | cat conftest.er1 >&5 | |
cd9a469c | 13198 | fi |
f00f02a3 | 13199 | rm -f conftest.er1 conftest.err |
cd9a469c | 13200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13201 | test $ac_status = 0; } | |
13202 | done | |
542f9784 | 13203 | rm -f a.out |
13204 | ||
13205 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13206 | # input file. (Note that this only needs to work for GNU compilers.) | |
13207 | ac_save_ext=$ac_ext | |
13208 | ac_ext=F | |
cd9a469c | 13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13210 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
f00f02a3 | 13211 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
cd9a469c | 13212 | $as_echo_n "(cached) " >&6 |
542f9784 | 13213 | else |
cd9a469c | 13214 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13215 | program main |
13216 | #ifndef __GNUC__ | |
13217 | choke me | |
13218 | #endif | |
13219 | ||
13220 | end | |
13221 | _ACEOF | |
cd9a469c | 13222 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 13223 | ac_compiler_gnu=yes |
13224 | else | |
cd9a469c | 13225 | ac_compiler_gnu=no |
542f9784 | 13226 | fi |
cd9a469c | 13227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 13228 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13229 | ||
13230 | fi | |
cd9a469c | 13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13232 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
542f9784 | 13233 | ac_ext=$ac_save_ext |
cd9a469c | 13234 | ac_test_FCFLAGS=${FCFLAGS+set} |
13235 | ac_save_FCFLAGS=$FCFLAGS | |
542f9784 | 13236 | FCFLAGS= |
cd9a469c | 13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13238 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
f00f02a3 | 13239 | if ${ac_cv_prog_fc_g+:} false; then : |
cd9a469c | 13240 | $as_echo_n "(cached) " >&6 |
542f9784 | 13241 | else |
13242 | FCFLAGS=-g | |
cd9a469c | 13243 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13244 | program main |
13245 | ||
13246 | end | |
13247 | _ACEOF | |
cd9a469c | 13248 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 13249 | ac_cv_prog_fc_g=yes |
13250 | else | |
cd9a469c | 13251 | ac_cv_prog_fc_g=no |
542f9784 | 13252 | fi |
cd9a469c | 13253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 13254 | |
13255 | fi | |
cd9a469c | 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13257 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13258 | if test "$ac_test_FCFLAGS" = set; then | |
13259 | FCFLAGS=$ac_save_FCFLAGS | |
542f9784 | 13260 | elif test $ac_cv_prog_fc_g = yes; then |
13261 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13262 | FCFLAGS="-g -O2" | |
13263 | else | |
13264 | FCFLAGS="-g" | |
13265 | fi | |
13266 | else | |
13267 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13268 | FCFLAGS="-O2" | |
13269 | else | |
13270 | FCFLAGS= | |
13271 | fi | |
13272 | fi | |
13273 | ||
f00f02a3 | 13274 | if test $ac_compiler_gnu = yes; then |
13275 | GFC=yes | |
13276 | else | |
13277 | GFC= | |
13278 | fi | |
542f9784 | 13279 | ac_ext=c |
13280 | ac_cpp='$CPP $CPPFLAGS' | |
13281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13284 | ||
cd9a469c | 13285 | ac_ext=${ac_fc_srcext-f} |
13286 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13287 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 13288 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13289 | ||
13290 | ||
e6408286 | 13291 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13292 | _lt_disable_FC=yes | |
13293 | fi | |
13294 | ||
542f9784 | 13295 | archive_cmds_need_lc_FC=no |
13296 | allow_undefined_flag_FC= | |
13297 | always_export_symbols_FC=no | |
13298 | archive_expsym_cmds_FC= | |
13299 | export_dynamic_flag_spec_FC= | |
13300 | hardcode_direct_FC=no | |
13301 | hardcode_direct_absolute_FC=no | |
13302 | hardcode_libdir_flag_spec_FC= | |
13303 | hardcode_libdir_flag_spec_ld_FC= | |
13304 | hardcode_libdir_separator_FC= | |
13305 | hardcode_minus_L_FC=no | |
13306 | hardcode_automatic_FC=no | |
13307 | inherit_rpath_FC=no | |
13308 | module_cmds_FC= | |
13309 | module_expsym_cmds_FC= | |
13310 | link_all_deplibs_FC=unknown | |
13311 | old_archive_cmds_FC=$old_archive_cmds | |
e6408286 | 13312 | reload_flag_FC=$reload_flag |
13313 | reload_cmds_FC=$reload_cmds | |
542f9784 | 13314 | no_undefined_flag_FC= |
13315 | whole_archive_flag_spec_FC= | |
13316 | enable_shared_with_static_runtimes_FC=no | |
13317 | ||
13318 | # Source file extension for fc test sources. | |
13319 | ac_ext=${ac_fc_srcext-f} | |
13320 | ||
13321 | # Object file extension for compiled fc test sources. | |
13322 | objext=o | |
13323 | objext_FC=$objext | |
13324 | ||
13325 | # No sense in running all these tests if we already determined that | |
13326 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13327 | # are currently assumed to apply to all compilers on this platform, | |
13328 | # and will be corrupted by setting them based on a non-working compiler. | |
13329 | if test "$_lt_disable_FC" != yes; then | |
13330 | # Code to be used in simple compile tests | |
13331 | lt_simple_compile_test_code="\ | |
13332 | subroutine t | |
13333 | return | |
13334 | end | |
13335 | " | |
13336 | ||
13337 | # Code to be used in simple link tests | |
13338 | lt_simple_link_test_code="\ | |
13339 | program t | |
13340 | end | |
13341 | " | |
13342 | ||
13343 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | ||
13349 | ||
13350 | # If no C compiler was specified, use CC. | |
13351 | LTCC=${LTCC-"$CC"} | |
13352 | ||
13353 | # If no C compiler flags were specified, use CFLAGS. | |
13354 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13355 | ||
13356 | # Allow CC to be a program name with arguments. | |
13357 | compiler=$CC | |
13358 | ||
13359 | ||
13360 | # save warnings/boilerplate of simple test code | |
13361 | ac_outfile=conftest.$ac_objext | |
13362 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13363 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13364 | _lt_compiler_boilerplate=`cat conftest.err` | |
13365 | $RM conftest* | |
13366 | ||
13367 | ac_outfile=conftest.$ac_objext | |
13368 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13369 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13370 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 13371 | $RM -r conftest* |
542f9784 | 13372 | |
13373 | ||
13374 | # Allow CC to be a program name with arguments. | |
13375 | lt_save_CC="$CC" | |
00aafda4 | 13376 | lt_save_GCC=$GCC |
542f9784 | 13377 | CC=${FC-"f95"} |
13378 | compiler=$CC | |
00aafda4 | 13379 | GCC=$ac_cv_fc_compiler_gnu |
13380 | ||
542f9784 | 13381 | compiler_FC=$CC |
13382 | for cc_temp in $compiler""; do | |
13383 | case $cc_temp in | |
13384 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13385 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13386 | \-*) ;; | |
13387 | *) break;; | |
13388 | esac | |
13389 | done | |
e6408286 | 13390 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 13391 | |
13392 | ||
13393 | if test -n "$compiler"; then | |
cd9a469c | 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13395 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13397 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 13398 | |
cd9a469c | 13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13400 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 13401 | test "$can_build_shared" = "no" && enable_shared=no |
13402 | ||
13403 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13404 | # are all built from PIC. | |
13405 | case $host_os in | |
13406 | aix3*) | |
13407 | test "$enable_shared" = yes && enable_static=no | |
13408 | if test -n "$RANLIB"; then | |
13409 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13410 | postinstall_cmds='$RANLIB $lib' | |
13411 | fi | |
13412 | ;; | |
21e07d2f | 13413 | aix[4-9]*) |
542f9784 | 13414 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13415 | test "$enable_shared" = yes && enable_static=no | |
13416 | fi | |
13417 | ;; | |
13418 | esac | |
cd9a469c | 13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13420 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 13421 | |
cd9a469c | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13423 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 13424 | # Make sure either enable_shared or enable_static is yes. |
13425 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13427 | $as_echo "$enable_static" >&6; } | |
542f9784 | 13428 | |
13429 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13430 | LD_FC="$LD" | |
13431 | ||
13432 | ## CAVEAT EMPTOR: | |
13433 | ## There is no encapsulation within the following macros, do not change | |
13434 | ## the running order or otherwise move them around unless you know exactly | |
13435 | ## what you are doing... | |
13436 | # Dependencies to place before and after the object being linked: | |
13437 | predep_objects_FC= | |
13438 | postdep_objects_FC= | |
13439 | predeps_FC= | |
13440 | postdeps_FC= | |
13441 | compiler_lib_search_path_FC= | |
13442 | ||
13443 | cat > conftest.$ac_ext <<_LT_EOF | |
13444 | subroutine foo | |
13445 | implicit none | |
13446 | integer a | |
13447 | a=0 | |
13448 | return | |
13449 | end | |
13450 | _LT_EOF | |
13451 | ||
cd9a469c | 13452 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 13453 | (eval $ac_compile) 2>&5 |
13454 | ac_status=$? | |
cd9a469c | 13455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13456 | test $ac_status = 0; }; then | |
542f9784 | 13457 | # Parse the compiler output and extract the necessary |
13458 | # objects, libraries and library flags. | |
13459 | ||
13460 | # Sentinel used to keep track of whether or not we are before | |
13461 | # the conftest object file. | |
13462 | pre_test_object_deps_done=no | |
13463 | ||
00aafda4 | 13464 | for p in `eval "$output_verbose_link_cmd"`; do |
542f9784 | 13465 | case $p in |
13466 | ||
13467 | -L* | -R* | -l*) | |
13468 | # Some compilers place space between "-{L,R}" and the path. | |
13469 | # Remove the space. | |
13470 | if test $p = "-L" || | |
13471 | test $p = "-R"; then | |
13472 | prev=$p | |
13473 | continue | |
13474 | else | |
13475 | prev= | |
13476 | fi | |
13477 | ||
13478 | if test "$pre_test_object_deps_done" = no; then | |
13479 | case $p in | |
13480 | -L* | -R*) | |
13481 | # Internal compiler library paths should come after those | |
13482 | # provided the user. The postdeps already come after the | |
13483 | # user supplied libs so there is no need to process them. | |
13484 | if test -z "$compiler_lib_search_path_FC"; then | |
13485 | compiler_lib_search_path_FC="${prev}${p}" | |
13486 | else | |
13487 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13488 | fi | |
13489 | ;; | |
13490 | # The "-l" case would never come before the object being | |
13491 | # linked, so don't bother handling this case. | |
13492 | esac | |
13493 | else | |
13494 | if test -z "$postdeps_FC"; then | |
13495 | postdeps_FC="${prev}${p}" | |
13496 | else | |
13497 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13498 | fi | |
13499 | fi | |
13500 | ;; | |
13501 | ||
13502 | *.$objext) | |
13503 | # This assumes that the test object file only shows up | |
13504 | # once in the compiler output. | |
13505 | if test "$p" = "conftest.$objext"; then | |
13506 | pre_test_object_deps_done=yes | |
13507 | continue | |
13508 | fi | |
13509 | ||
13510 | if test "$pre_test_object_deps_done" = no; then | |
13511 | if test -z "$predep_objects_FC"; then | |
13512 | predep_objects_FC="$p" | |
13513 | else | |
13514 | predep_objects_FC="$predep_objects_FC $p" | |
13515 | fi | |
13516 | else | |
13517 | if test -z "$postdep_objects_FC"; then | |
13518 | postdep_objects_FC="$p" | |
13519 | else | |
13520 | postdep_objects_FC="$postdep_objects_FC $p" | |
13521 | fi | |
13522 | fi | |
13523 | ;; | |
13524 | ||
13525 | *) ;; # Ignore the rest. | |
13526 | ||
13527 | esac | |
13528 | done | |
13529 | ||
13530 | # Clean up. | |
13531 | rm -f a.out a.exe | |
13532 | else | |
13533 | echo "libtool.m4: error: problem compiling FC test program" | |
13534 | fi | |
13535 | ||
13536 | $RM -f confest.$objext | |
13537 | ||
13538 | # PORTME: override above test on systems where it is broken | |
13539 | ||
13540 | ||
13541 | case " $postdeps_FC " in | |
13542 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13543 | esac | |
00aafda4 | 13544 | compiler_lib_search_dirs_FC= |
13545 | if test -n "${compiler_lib_search_path_FC}"; then | |
13546 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13547 | fi | |
13548 | ||
13549 | ||
13550 | ||
13551 | ||
13552 | ||
542f9784 | 13553 | |
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | ||
13560 | ||
13561 | ||
13562 | ||
13563 | ||
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | lt_prog_compiler_wl_FC= | |
13580 | lt_prog_compiler_pic_FC= | |
13581 | lt_prog_compiler_static_FC= | |
13582 | ||
cd9a469c | 13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13584 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 13585 | |
13586 | if test "$GCC" = yes; then | |
13587 | lt_prog_compiler_wl_FC='-Wl,' | |
13588 | lt_prog_compiler_static_FC='-static' | |
13589 | ||
13590 | case $host_os in | |
13591 | aix*) | |
13592 | # All AIX code is PIC. | |
13593 | if test "$host_cpu" = ia64; then | |
13594 | # AIX 5 now supports IA64 processor | |
13595 | lt_prog_compiler_static_FC='-Bstatic' | |
13596 | fi | |
ccc0b0f9 | 13597 | lt_prog_compiler_pic_FC='-fPIC' |
542f9784 | 13598 | ;; |
13599 | ||
13600 | amigaos*) | |
00aafda4 | 13601 | case $host_cpu in |
13602 | powerpc) | |
13603 | # see comment about AmigaOS4 .so support | |
13604 | lt_prog_compiler_pic_FC='-fPIC' | |
13605 | ;; | |
13606 | m68k) | |
13607 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13608 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13609 | # like `-m68040'. | |
13610 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13611 | ;; | |
13612 | esac | |
542f9784 | 13613 | ;; |
13614 | ||
13615 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13616 | # PIC is the default for these OSes. | |
13617 | ;; | |
13618 | ||
00aafda4 | 13619 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13620 | # This hack is so that the source file can tell whether it is being |
13621 | # built for inclusion in a dll (and should export symbols for example). | |
13622 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13623 | # (--disable-auto-import) libraries | |
13624 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13625 | ;; | |
13626 | ||
13627 | darwin* | rhapsody*) | |
13628 | # PIC is the default on this platform | |
13629 | # Common symbols not allowed in MH_DYLIB files | |
13630 | lt_prog_compiler_pic_FC='-fno-common' | |
13631 | ;; | |
13632 | ||
e6408286 | 13633 | haiku*) |
13634 | # PIC is the default for Haiku. | |
13635 | # The "-static" flag exists, but is broken. | |
13636 | lt_prog_compiler_static_FC= | |
13637 | ;; | |
13638 | ||
542f9784 | 13639 | hpux*) |
00aafda4 | 13640 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13641 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13642 | # sets the default TLS model and affects inlining. | |
542f9784 | 13643 | case $host_cpu in |
00aafda4 | 13644 | hppa*64*) |
542f9784 | 13645 | # +Z the default |
13646 | ;; | |
13647 | *) | |
13648 | lt_prog_compiler_pic_FC='-fPIC' | |
13649 | ;; | |
13650 | esac | |
13651 | ;; | |
13652 | ||
13653 | interix[3-9]*) | |
13654 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13655 | # Instead, we relocate shared libraries at runtime. | |
13656 | ;; | |
13657 | ||
13658 | msdosdjgpp*) | |
13659 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13660 | # on systems that don't support them. | |
13661 | lt_prog_compiler_can_build_shared_FC=no | |
13662 | enable_shared=no | |
13663 | ;; | |
13664 | ||
13665 | *nto* | *qnx*) | |
13666 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13667 | # it will coredump. | |
13668 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13669 | ;; | |
13670 | ||
13671 | sysv4*MP*) | |
13672 | if test -d /usr/nec; then | |
13673 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13674 | fi | |
13675 | ;; | |
13676 | ||
13677 | *) | |
13678 | lt_prog_compiler_pic_FC='-fPIC' | |
13679 | ;; | |
13680 | esac | |
e6408286 | 13681 | |
13682 | case $cc_basename in | |
13683 | nvcc*) # Cuda Compiler Driver 2.2 | |
13684 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13685 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13686 | ;; | |
13687 | esac | |
542f9784 | 13688 | else |
13689 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13690 | case $host_os in | |
13691 | aix*) | |
13692 | lt_prog_compiler_wl_FC='-Wl,' | |
13693 | if test "$host_cpu" = ia64; then | |
13694 | # AIX 5 now supports IA64 processor | |
13695 | lt_prog_compiler_static_FC='-Bstatic' | |
13696 | else | |
13697 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13698 | fi | |
13699 | ;; | |
542f9784 | 13700 | |
00aafda4 | 13701 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13702 | # This hack is so that the source file can tell whether it is being |
13703 | # built for inclusion in a dll (and should export symbols for example). | |
13704 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13705 | ;; | |
13706 | ||
13707 | hpux9* | hpux10* | hpux11*) | |
13708 | lt_prog_compiler_wl_FC='-Wl,' | |
13709 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13710 | # not for PA HP-UX. | |
13711 | case $host_cpu in | |
13712 | hppa*64*|ia64*) | |
13713 | # +Z the default | |
13714 | ;; | |
13715 | *) | |
13716 | lt_prog_compiler_pic_FC='+Z' | |
13717 | ;; | |
13718 | esac | |
13719 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13720 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13721 | ;; | |
13722 | ||
13723 | irix5* | irix6* | nonstopux*) | |
13724 | lt_prog_compiler_wl_FC='-Wl,' | |
13725 | # PIC (with -KPIC) is the default. | |
13726 | lt_prog_compiler_static_FC='-non_shared' | |
13727 | ;; | |
13728 | ||
9af964d4 | 13729 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13730 | case $cc_basename in |
00aafda4 | 13731 | # old Intel for x86_64 which still supported -KPIC. |
13732 | ecc*) | |
542f9784 | 13733 | lt_prog_compiler_wl_FC='-Wl,' |
13734 | lt_prog_compiler_pic_FC='-KPIC' | |
13735 | lt_prog_compiler_static_FC='-static' | |
13736 | ;; | |
00aafda4 | 13737 | # icc used to be incompatible with GCC. |
13738 | # ICC 10 doesn't accept -KPIC any more. | |
13739 | icc* | ifort*) | |
13740 | lt_prog_compiler_wl_FC='-Wl,' | |
13741 | lt_prog_compiler_pic_FC='-fPIC' | |
13742 | lt_prog_compiler_static_FC='-static' | |
13743 | ;; | |
13744 | # Lahey Fortran 8.1. | |
13745 | lf95*) | |
13746 | lt_prog_compiler_wl_FC='-Wl,' | |
13747 | lt_prog_compiler_pic_FC='--shared' | |
13748 | lt_prog_compiler_static_FC='--static' | |
13749 | ;; | |
e6408286 | 13750 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 13751 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13752 | # which looks to be a dead project) | |
13753 | lt_prog_compiler_wl_FC='-Wl,' | |
13754 | lt_prog_compiler_pic_FC='-fpic' | |
13755 | lt_prog_compiler_static_FC='-Bstatic' | |
13756 | ;; | |
13757 | ccc*) | |
13758 | lt_prog_compiler_wl_FC='-Wl,' | |
13759 | # All Alpha code is PIC. | |
13760 | lt_prog_compiler_static_FC='-non_shared' | |
13761 | ;; | |
e6408286 | 13762 | xl* | bgxl* | bgf* | mpixl*) |
13763 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 13764 | lt_prog_compiler_wl_FC='-Wl,' |
13765 | lt_prog_compiler_pic_FC='-qpic' | |
13766 | lt_prog_compiler_static_FC='-qstaticlink' | |
13767 | ;; | |
542f9784 | 13768 | *) |
13769 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 13770 | *Sun\ F* | *Sun*Fortran*) |
13771 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 13772 | lt_prog_compiler_pic_FC='-KPIC' |
13773 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13774 | lt_prog_compiler_wl_FC='' |
542f9784 | 13775 | ;; |
e6408286 | 13776 | *Sun\ C*) |
13777 | # Sun C 5.9 | |
542f9784 | 13778 | lt_prog_compiler_pic_FC='-KPIC' |
13779 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13780 | lt_prog_compiler_wl_FC='-Wl,' |
542f9784 | 13781 | ;; |
13782 | esac | |
13783 | ;; | |
13784 | esac | |
13785 | ;; | |
13786 | ||
13787 | newsos6) | |
13788 | lt_prog_compiler_pic_FC='-KPIC' | |
13789 | lt_prog_compiler_static_FC='-Bstatic' | |
13790 | ;; | |
13791 | ||
13792 | *nto* | *qnx*) | |
13793 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13794 | # it will coredump. | |
13795 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13796 | ;; | |
13797 | ||
13798 | osf3* | osf4* | osf5*) | |
13799 | lt_prog_compiler_wl_FC='-Wl,' | |
13800 | # All OSF/1 code is PIC. | |
13801 | lt_prog_compiler_static_FC='-non_shared' | |
13802 | ;; | |
13803 | ||
13804 | rdos*) | |
13805 | lt_prog_compiler_static_FC='-non_shared' | |
13806 | ;; | |
13807 | ||
13808 | solaris*) | |
13809 | lt_prog_compiler_pic_FC='-KPIC' | |
13810 | lt_prog_compiler_static_FC='-Bstatic' | |
13811 | case $cc_basename in | |
13812 | f77* | f90* | f95*) | |
13813 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13814 | *) | |
13815 | lt_prog_compiler_wl_FC='-Wl,';; | |
13816 | esac | |
13817 | ;; | |
13818 | ||
13819 | sunos4*) | |
13820 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13821 | lt_prog_compiler_pic_FC='-PIC' | |
13822 | lt_prog_compiler_static_FC='-Bstatic' | |
13823 | ;; | |
13824 | ||
13825 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13826 | lt_prog_compiler_wl_FC='-Wl,' | |
13827 | lt_prog_compiler_pic_FC='-KPIC' | |
13828 | lt_prog_compiler_static_FC='-Bstatic' | |
13829 | ;; | |
13830 | ||
13831 | sysv4*MP*) | |
13832 | if test -d /usr/nec ;then | |
13833 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13834 | lt_prog_compiler_static_FC='-Bstatic' | |
13835 | fi | |
13836 | ;; | |
13837 | ||
13838 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13839 | lt_prog_compiler_wl_FC='-Wl,' | |
13840 | lt_prog_compiler_pic_FC='-KPIC' | |
13841 | lt_prog_compiler_static_FC='-Bstatic' | |
13842 | ;; | |
13843 | ||
13844 | unicos*) | |
13845 | lt_prog_compiler_wl_FC='-Wl,' | |
13846 | lt_prog_compiler_can_build_shared_FC=no | |
13847 | ;; | |
13848 | ||
13849 | uts4*) | |
13850 | lt_prog_compiler_pic_FC='-pic' | |
13851 | lt_prog_compiler_static_FC='-Bstatic' | |
13852 | ;; | |
13853 | ||
13854 | *) | |
13855 | lt_prog_compiler_can_build_shared_FC=no | |
13856 | ;; | |
13857 | esac | |
13858 | fi | |
13859 | ||
13860 | case $host_os in | |
13861 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13862 | *djgpp*) | |
13863 | lt_prog_compiler_pic_FC= | |
13864 | ;; | |
13865 | *) | |
13866 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13867 | ;; | |
13868 | esac | |
cd9a469c | 13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13870 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
542f9784 | 13871 | |
13872 | ||
13873 | ||
13874 | # | |
13875 | # Check to make sure the PIC flag actually works. | |
13876 | # | |
13877 | if test -n "$lt_prog_compiler_pic_FC"; then | |
cd9a469c | 13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13879 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
f00f02a3 | 13880 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
cd9a469c | 13881 | $as_echo_n "(cached) " >&6 |
542f9784 | 13882 | else |
00aafda4 | 13883 | lt_cv_prog_compiler_pic_works_FC=no |
542f9784 | 13884 | ac_outfile=conftest.$ac_objext |
13885 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13886 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13887 | # Insert the option either (1) after the last *FLAGS variable, or | |
13888 | # (2) before a word containing "conftest.", or (3) at the end. | |
13889 | # Note that $ac_compile itself does not contain backslashes and begins | |
13890 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13891 | # The option is referenced via a variable to avoid confusing sed. | |
13892 | lt_compile=`echo "$ac_compile" | $SED \ | |
13893 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13894 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13895 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13896 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13897 | (eval "$lt_compile" 2>conftest.err) |
13898 | ac_status=$? | |
13899 | cat conftest.err >&5 | |
e6408286 | 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13901 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13902 | # The compiler can only warn and ignore the option if not recognized | |
13903 | # So say no if there are warnings other than the usual output. | |
e6408286 | 13904 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 13905 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13906 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13907 | lt_cv_prog_compiler_pic_works_FC=yes |
542f9784 | 13908 | fi |
13909 | fi | |
13910 | $RM conftest* | |
13911 | ||
13912 | fi | |
cd9a469c | 13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13914 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
542f9784 | 13915 | |
00aafda4 | 13916 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
542f9784 | 13917 | case $lt_prog_compiler_pic_FC in |
13918 | "" | " "*) ;; | |
13919 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13920 | esac | |
13921 | else | |
13922 | lt_prog_compiler_pic_FC= | |
13923 | lt_prog_compiler_can_build_shared_FC=no | |
13924 | fi | |
13925 | ||
13926 | fi | |
13927 | ||
13928 | ||
13929 | ||
13930 | # | |
13931 | # Check to make sure the static flag actually works. | |
13932 | # | |
13933 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
cd9a469c | 13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13935 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 13936 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
cd9a469c | 13937 | $as_echo_n "(cached) " >&6 |
542f9784 | 13938 | else |
00aafda4 | 13939 | lt_cv_prog_compiler_static_works_FC=no |
542f9784 | 13940 | save_LDFLAGS="$LDFLAGS" |
13941 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13942 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13943 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13944 | # The linker can only warn and ignore the option if not recognized | |
13945 | # So say no if there are warnings | |
13946 | if test -s conftest.err; then | |
13947 | # Append any errors to the config.log. | |
13948 | cat conftest.err 1>&5 | |
e6408286 | 13949 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 13950 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13951 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13952 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13953 | fi |
13954 | else | |
00aafda4 | 13955 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13956 | fi |
13957 | fi | |
00aafda4 | 13958 | $RM -r conftest* |
542f9784 | 13959 | LDFLAGS="$save_LDFLAGS" |
13960 | ||
13961 | fi | |
cd9a469c | 13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13963 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
542f9784 | 13964 | |
00aafda4 | 13965 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 13966 | : |
13967 | else | |
13968 | lt_prog_compiler_static_FC= | |
13969 | fi | |
13970 | ||
13971 | ||
13972 | ||
13973 | ||
cd9a469c | 13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13975 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 13976 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 13977 | $as_echo_n "(cached) " >&6 |
542f9784 | 13978 | else |
13979 | lt_cv_prog_compiler_c_o_FC=no | |
13980 | $RM -r conftest 2>/dev/null | |
13981 | mkdir conftest | |
13982 | cd conftest | |
13983 | mkdir out | |
13984 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13985 | ||
13986 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13987 | # Insert the option either (1) after the last *FLAGS variable, or | |
13988 | # (2) before a word containing "conftest.", or (3) at the end. | |
13989 | # Note that $ac_compile itself does not contain backslashes and begins | |
13990 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13991 | lt_compile=`echo "$ac_compile" | $SED \ | |
13992 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13993 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13994 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13995 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13996 | (eval "$lt_compile" 2>out/conftest.err) |
13997 | ac_status=$? | |
13998 | cat out/conftest.err >&5 | |
e6408286 | 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 14000 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14001 | then | |
14002 | # The compiler can only warn and ignore the option if not recognized | |
14003 | # So say no if there are warnings | |
e6408286 | 14004 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 14005 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14006 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14007 | lt_cv_prog_compiler_c_o_FC=yes | |
14008 | fi | |
14009 | fi | |
14010 | chmod u+w . 2>&5 | |
14011 | $RM conftest* | |
14012 | # SGI C++ compiler will create directory out/ii_files/ for | |
14013 | # template instantiation | |
14014 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14015 | $RM out/* && rmdir out | |
14016 | cd .. | |
14017 | $RM -r conftest | |
14018 | $RM conftest* | |
14019 | ||
14020 | fi | |
cd9a469c | 14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14022 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 14023 | |
14024 | ||
14025 | ||
cd9a469c | 14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14027 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 14028 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 14029 | $as_echo_n "(cached) " >&6 |
542f9784 | 14030 | else |
14031 | lt_cv_prog_compiler_c_o_FC=no | |
14032 | $RM -r conftest 2>/dev/null | |
14033 | mkdir conftest | |
14034 | cd conftest | |
14035 | mkdir out | |
14036 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14037 | ||
14038 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14039 | # Insert the option either (1) after the last *FLAGS variable, or | |
14040 | # (2) before a word containing "conftest.", or (3) at the end. | |
14041 | # Note that $ac_compile itself does not contain backslashes and begins | |
14042 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14043 | lt_compile=`echo "$ac_compile" | $SED \ | |
14044 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14045 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14046 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 14047 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 14048 | (eval "$lt_compile" 2>out/conftest.err) |
14049 | ac_status=$? | |
14050 | cat out/conftest.err >&5 | |
e6408286 | 14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 14052 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14053 | then | |
14054 | # The compiler can only warn and ignore the option if not recognized | |
14055 | # So say no if there are warnings | |
e6408286 | 14056 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 14057 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14058 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14059 | lt_cv_prog_compiler_c_o_FC=yes | |
14060 | fi | |
14061 | fi | |
14062 | chmod u+w . 2>&5 | |
14063 | $RM conftest* | |
14064 | # SGI C++ compiler will create directory out/ii_files/ for | |
14065 | # template instantiation | |
14066 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14067 | $RM out/* && rmdir out | |
14068 | cd .. | |
14069 | $RM -r conftest | |
14070 | $RM conftest* | |
14071 | ||
14072 | fi | |
cd9a469c | 14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14074 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 14075 | |
14076 | ||
14077 | ||
14078 | ||
14079 | hard_links="nottested" | |
14080 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14081 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14083 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 14084 | hard_links=yes |
14085 | $RM conftest* | |
14086 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14087 | touch conftest.a | |
14088 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14089 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14091 | $as_echo "$hard_links" >&6; } | |
542f9784 | 14092 | if test "$hard_links" = no; then |
cd9a469c | 14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14094 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 14095 | need_locks=warn |
14096 | fi | |
14097 | else | |
14098 | need_locks=no | |
14099 | fi | |
14100 | ||
14101 | ||
14102 | ||
cd9a469c | 14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14104 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 14105 | |
14106 | runpath_var= | |
14107 | allow_undefined_flag_FC= | |
14108 | always_export_symbols_FC=no | |
14109 | archive_cmds_FC= | |
14110 | archive_expsym_cmds_FC= | |
14111 | compiler_needs_object_FC=no | |
14112 | enable_shared_with_static_runtimes_FC=no | |
14113 | export_dynamic_flag_spec_FC= | |
14114 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14115 | hardcode_automatic_FC=no | |
14116 | hardcode_direct_FC=no | |
14117 | hardcode_direct_absolute_FC=no | |
14118 | hardcode_libdir_flag_spec_FC= | |
14119 | hardcode_libdir_flag_spec_ld_FC= | |
14120 | hardcode_libdir_separator_FC= | |
14121 | hardcode_minus_L_FC=no | |
14122 | hardcode_shlibpath_var_FC=unsupported | |
14123 | inherit_rpath_FC=no | |
14124 | link_all_deplibs_FC=unknown | |
14125 | module_cmds_FC= | |
14126 | module_expsym_cmds_FC= | |
14127 | old_archive_from_new_cmds_FC= | |
14128 | old_archive_from_expsyms_cmds_FC= | |
14129 | thread_safe_flag_spec_FC= | |
14130 | whole_archive_flag_spec_FC= | |
14131 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14132 | # included in the symbol list | |
14133 | include_expsyms_FC= | |
14134 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14135 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14136 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14137 | # as well as any symbol that contains `d'. | |
00aafda4 | 14138 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 14139 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14140 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14141 | # the symbol is explicitly referenced. Since portable code cannot | |
14142 | # rely on this symbol name, it's probably fine to never include it in | |
14143 | # preloaded symbol tables. | |
00aafda4 | 14144 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 14145 | extract_expsyms_cmds= |
14146 | ||
14147 | case $host_os in | |
00aafda4 | 14148 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14149 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14150 | # When not using gcc, we currently assume that we are using | |
14151 | # Microsoft Visual C++. | |
14152 | if test "$GCC" != yes; then | |
14153 | with_gnu_ld=no | |
14154 | fi | |
14155 | ;; | |
14156 | interix*) | |
14157 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14158 | with_gnu_ld=yes | |
14159 | ;; | |
14160 | openbsd*) | |
14161 | with_gnu_ld=no | |
14162 | ;; | |
14163 | esac | |
14164 | ||
14165 | ld_shlibs_FC=yes | |
e6408286 | 14166 | |
14167 | # On some targets, GNU ld is compatible enough with the native linker | |
14168 | # that we're better off using the native interface for both. | |
14169 | lt_use_gnu_ld_interface=no | |
542f9784 | 14170 | if test "$with_gnu_ld" = yes; then |
e6408286 | 14171 | case $host_os in |
14172 | aix*) | |
14173 | # The AIX port of GNU ld has always aspired to compatibility | |
14174 | # with the native linker. However, as the warning in the GNU ld | |
14175 | # block says, versions before 2.19.5* couldn't really create working | |
14176 | # shared libraries, regardless of the interface used. | |
14177 | case `$LD -v 2>&1` in | |
14178 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14179 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14180 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14181 | *) | |
14182 | lt_use_gnu_ld_interface=yes | |
14183 | ;; | |
14184 | esac | |
14185 | ;; | |
14186 | *) | |
14187 | lt_use_gnu_ld_interface=yes | |
14188 | ;; | |
14189 | esac | |
14190 | fi | |
14191 | ||
14192 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 14193 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14194 | wlarc='${wl}' | |
14195 | ||
14196 | # Set some defaults for GNU ld with shared library support. These | |
14197 | # are reset later if shared libraries are not supported. Putting them | |
14198 | # here allows them to be overridden if necessary. | |
14199 | runpath_var=LD_RUN_PATH | |
14200 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14201 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14202 | # ancient GNU ld didn't support --whole-archive et. al. | |
14203 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14204 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14205 | else | |
14206 | whole_archive_flag_spec_FC= | |
14207 | fi | |
14208 | supports_anon_versioning=no | |
14209 | case `$LD -v 2>&1` in | |
e6408286 | 14210 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 14211 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14212 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14213 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14214 | *\ 2.11.*) ;; # other 2.11 versions | |
14215 | *) supports_anon_versioning=yes ;; | |
14216 | esac | |
14217 | ||
14218 | # See if GNU ld supports shared libraries. | |
14219 | case $host_os in | |
21e07d2f | 14220 | aix[3-9]*) |
542f9784 | 14221 | # On AIX/PPC, the GNU linker is very broken |
14222 | if test "$host_cpu" != ia64; then | |
14223 | ld_shlibs_FC=no | |
14224 | cat <<_LT_EOF 1>&2 | |
14225 | ||
e6408286 | 14226 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 14227 | *** to be unable to reliably create shared libraries on AIX. |
14228 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 14229 | *** really care for shared libraries, you may want to install binutils |
14230 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14231 | *** You will then need to restart the configuration process. | |
542f9784 | 14232 | |
14233 | _LT_EOF | |
14234 | fi | |
14235 | ;; | |
14236 | ||
14237 | amigaos*) | |
00aafda4 | 14238 | case $host_cpu in |
14239 | powerpc) | |
14240 | # see comment about AmigaOS4 .so support | |
14241 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14242 | archive_expsym_cmds_FC='' | |
14243 | ;; | |
14244 | m68k) | |
14245 | 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)' | |
14246 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14247 | hardcode_minus_L_FC=yes | |
14248 | ;; | |
14249 | esac | |
542f9784 | 14250 | ;; |
14251 | ||
14252 | beos*) | |
14253 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14254 | allow_undefined_flag_FC=unsupported | |
14255 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14256 | # support --undefined. This deserves some investigation. FIXME | |
14257 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14258 | else | |
14259 | ld_shlibs_FC=no | |
14260 | fi | |
14261 | ;; | |
14262 | ||
00aafda4 | 14263 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14264 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14265 | # as there is no search path for DLLs. | |
14266 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
e6408286 | 14267 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
542f9784 | 14268 | allow_undefined_flag_FC=unsupported |
14269 | always_export_symbols_FC=no | |
14270 | enable_shared_with_static_runtimes_FC=yes | |
14271 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14272 | ||
14273 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14274 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14275 | # If the export-symbols file already is a .def file (1st line | |
14276 | # is EXPORTS), use it as is; otherwise, prepend... | |
14277 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14278 | cp $export_symbols $output_objdir/$soname.def; | |
14279 | else | |
14280 | echo EXPORTS > $output_objdir/$soname.def; | |
14281 | cat $export_symbols >> $output_objdir/$soname.def; | |
14282 | fi~ | |
14283 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14284 | else | |
14285 | ld_shlibs_FC=no | |
14286 | fi | |
14287 | ;; | |
14288 | ||
e6408286 | 14289 | haiku*) |
14290 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14291 | link_all_deplibs_FC=yes | |
14292 | ;; | |
14293 | ||
542f9784 | 14294 | interix[3-9]*) |
14295 | hardcode_direct_FC=no | |
14296 | hardcode_shlibpath_var_FC=no | |
14297 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14298 | export_dynamic_flag_spec_FC='${wl}-E' | |
14299 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14300 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14301 | # default) and relocated if they conflict, which is a slow very memory | |
14302 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14303 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14304 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14305 | 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' | |
14306 | 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' | |
14307 | ;; | |
14308 | ||
9af964d4 | 14309 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 14310 | tmp_diet=no |
14311 | if test "$host_os" = linux-dietlibc; then | |
14312 | case $cc_basename in | |
14313 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14314 | esac | |
14315 | fi | |
14316 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14317 | && test "$tmp_diet" = no | |
14318 | then | |
4e8a08d4 | 14319 | tmp_addflag=' $pic_flag' |
00aafda4 | 14320 | tmp_sharedflag='-shared' |
542f9784 | 14321 | case $cc_basename,$host_cpu in |
14322 | pgcc*) # Portland Group C compiler | |
e6408286 | 14323 | 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' |
542f9784 | 14324 | tmp_addflag=' $pic_flag' |
14325 | ;; | |
e6408286 | 14326 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14327 | # Portland Group f77 and f90 compilers | |
14328 | 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' | |
542f9784 | 14329 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14330 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14331 | tmp_addflag=' -i_dynamic' ;; | |
14332 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14333 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14334 | ifc* | ifort*) # Intel Fortran compiler | |
14335 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 14336 | lf95*) # Lahey Fortran 8.1 |
14337 | whole_archive_flag_spec_FC= | |
14338 | tmp_sharedflag='--shared' ;; | |
e6408286 | 14339 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 14340 | tmp_sharedflag='-qmkshrobj' |
14341 | tmp_addflag= ;; | |
e6408286 | 14342 | nvcc*) # Cuda Compiler Driver 2.2 |
14343 | 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' | |
14344 | compiler_needs_object_FC=yes | |
14345 | ;; | |
542f9784 | 14346 | esac |
14347 | case `$CC -V 2>&1 | sed 5q` in | |
14348 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 14349 | 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' |
542f9784 | 14350 | compiler_needs_object_FC=yes |
14351 | tmp_sharedflag='-G' ;; | |
14352 | *Sun\ F*) # Sun Fortran 8.3 | |
14353 | tmp_sharedflag='-G' ;; | |
542f9784 | 14354 | esac |
14355 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14356 | ||
14357 | if test "x$supports_anon_versioning" = xyes; then | |
14358 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14359 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14360 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14361 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14362 | fi | |
00aafda4 | 14363 | |
14364 | case $cc_basename in | |
e6408286 | 14365 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 14366 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14367 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14368 | hardcode_libdir_flag_spec_FC= | |
14369 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14370 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14371 | if test "x$supports_anon_versioning" = xyes; then | |
14372 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14373 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14374 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14375 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14376 | fi | |
14377 | ;; | |
14378 | esac | |
542f9784 | 14379 | else |
14380 | ld_shlibs_FC=no | |
14381 | fi | |
14382 | ;; | |
14383 | ||
14384 | netbsd*) | |
14385 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14386 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14387 | wlarc= | |
14388 | else | |
14389 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14390 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14391 | fi | |
14392 | ;; | |
14393 | ||
14394 | solaris*) | |
14395 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14396 | ld_shlibs_FC=no | |
14397 | cat <<_LT_EOF 1>&2 | |
14398 | ||
14399 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14400 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14401 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14402 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14403 | *** your PATH or compiler configuration so that the native linker is | |
14404 | *** used, and then restart. | |
14405 | ||
14406 | _LT_EOF | |
14407 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14408 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14409 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14410 | else | |
14411 | ld_shlibs_FC=no | |
14412 | fi | |
14413 | ;; | |
14414 | ||
14415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14416 | case `$LD -v 2>&1` in | |
14417 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14418 | ld_shlibs_FC=no | |
14419 | cat <<_LT_EOF 1>&2 | |
14420 | ||
14421 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14422 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14423 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14424 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14425 | *** your PATH or compiler configuration so that the native linker is | |
14426 | *** used, and then restart. | |
14427 | ||
14428 | _LT_EOF | |
14429 | ;; | |
14430 | *) | |
14431 | # For security reasons, it is highly recommended that you always | |
14432 | # use absolute paths for naming shared libraries, and exclude the | |
14433 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14434 | # requires that you compile everything twice, which is a pain. | |
14435 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14436 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14437 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14438 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14439 | else | |
14440 | ld_shlibs_FC=no | |
14441 | fi | |
14442 | ;; | |
14443 | esac | |
14444 | ;; | |
14445 | ||
14446 | sunos4*) | |
14447 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14448 | wlarc= | |
14449 | hardcode_direct_FC=yes | |
14450 | hardcode_shlibpath_var_FC=no | |
14451 | ;; | |
14452 | ||
14453 | *) | |
14454 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14455 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14456 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14457 | else | |
14458 | ld_shlibs_FC=no | |
14459 | fi | |
14460 | ;; | |
14461 | esac | |
14462 | ||
14463 | if test "$ld_shlibs_FC" = no; then | |
14464 | runpath_var= | |
14465 | hardcode_libdir_flag_spec_FC= | |
14466 | export_dynamic_flag_spec_FC= | |
14467 | whole_archive_flag_spec_FC= | |
14468 | fi | |
14469 | else | |
14470 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14471 | case $host_os in | |
14472 | aix3*) | |
14473 | allow_undefined_flag_FC=unsupported | |
14474 | always_export_symbols_FC=yes | |
14475 | 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' | |
14476 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14477 | # are no directories specified by -L. | |
14478 | hardcode_minus_L_FC=yes | |
14479 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14480 | # Neither direct hardcoding nor static linking is supported with a | |
14481 | # broken collect2. | |
14482 | hardcode_direct_FC=unsupported | |
14483 | fi | |
14484 | ;; | |
14485 | ||
21e07d2f | 14486 | aix[4-9]*) |
542f9784 | 14487 | if test "$host_cpu" = ia64; then |
14488 | # On IA64, the linker does run time linking by default, so we don't | |
14489 | # have to do anything special. | |
14490 | aix_use_runtimelinking=no | |
14491 | exp_sym_flag='-Bexport' | |
14492 | no_entry_flag="" | |
14493 | else | |
14494 | # If we're using GNU nm, then we don't want the "-C" option. | |
14495 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 14496 | # Also, AIX nm treats weak defined symbols like other global |
14497 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 14498 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 14499 | 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' |
542f9784 | 14500 | else |
8c596dcc | 14501 | 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' |
542f9784 | 14502 | fi |
14503 | aix_use_runtimelinking=no | |
14504 | ||
14505 | # Test if we are trying to use run time linking or normal | |
14506 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14507 | # need to do runtime linking. | |
21e07d2f | 14508 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 14509 | for ld_flag in $LDFLAGS; do |
14510 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14511 | aix_use_runtimelinking=yes | |
14512 | break | |
14513 | fi | |
14514 | done | |
14515 | ;; | |
14516 | esac | |
14517 | ||
14518 | exp_sym_flag='-bexport' | |
14519 | no_entry_flag='-bnoentry' | |
14520 | fi | |
14521 | ||
14522 | # When large executables or shared objects are built, AIX ld can | |
14523 | # have problems creating the table of contents. If linking a library | |
14524 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14525 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14526 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14527 | ||
14528 | archive_cmds_FC='' | |
14529 | hardcode_direct_FC=yes | |
14530 | hardcode_direct_absolute_FC=yes | |
14531 | hardcode_libdir_separator_FC=':' | |
14532 | link_all_deplibs_FC=yes | |
14533 | file_list_spec_FC='${wl}-f,' | |
14534 | ||
14535 | if test "$GCC" = yes; then | |
14536 | case $host_os in aix4.[012]|aix4.[012].*) | |
14537 | # We only want to do this on AIX 4.2 and lower, the check | |
14538 | # below for broken collect2 doesn't work under 4.3+ | |
14539 | collect2name=`${CC} -print-prog-name=collect2` | |
14540 | if test -f "$collect2name" && | |
14541 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14542 | then | |
14543 | # We have reworked collect2 | |
14544 | : | |
14545 | else | |
14546 | # We have old collect2 | |
14547 | hardcode_direct_FC=unsupported | |
14548 | # It fails to find uninstalled libraries when the uninstalled | |
14549 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14550 | # to unsupported forces relinking | |
14551 | hardcode_minus_L_FC=yes | |
14552 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14553 | hardcode_libdir_separator_FC= | |
14554 | fi | |
14555 | ;; | |
14556 | esac | |
14557 | shared_flag='-shared' | |
14558 | if test "$aix_use_runtimelinking" = yes; then | |
14559 | shared_flag="$shared_flag "'${wl}-G' | |
14560 | fi | |
14561 | else | |
14562 | # not using gcc | |
14563 | if test "$host_cpu" = ia64; then | |
14564 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14565 | # chokes on -Wl,-G. The following line is correct: | |
14566 | shared_flag='-G' | |
14567 | else | |
14568 | if test "$aix_use_runtimelinking" = yes; then | |
14569 | shared_flag='${wl}-G' | |
14570 | else | |
14571 | shared_flag='${wl}-bM:SRE' | |
14572 | fi | |
14573 | fi | |
14574 | fi | |
14575 | ||
00aafda4 | 14576 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
542f9784 | 14577 | # It seems that -bexpall does not export symbols beginning with |
14578 | # underscore (_), so it is better to generate a list of symbols to export. | |
14579 | always_export_symbols_FC=yes | |
14580 | if test "$aix_use_runtimelinking" = yes; then | |
14581 | # Warning - without using the other runtime loading flags (-brtl), | |
14582 | # -berok will link without error, but may produce a broken library. | |
14583 | allow_undefined_flag_FC='-berok' | |
14584 | # Determine the default libpath from the value encoded in an | |
14585 | # empty executable. | |
14586 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14587 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14588 | fi |
cd9a469c | 14589 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14590 | program main |
14591 | ||
14592 | end | |
14593 | _ACEOF | |
cd9a469c | 14594 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14595 | |
14596 | lt_aix_libpath_sed=' | |
14597 | /Import File Strings/,/^$/ { | |
14598 | /^0/ { | |
14599 | s/^0 *\(.*\)$/\1/ | |
14600 | p | |
14601 | } | |
14602 | }' | |
14603 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14604 | # Check for a 64-bit object if we didn't find anything. | |
14605 | if test -z "$aix_libpath"; then | |
14606 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14607 | fi | |
542f9784 | 14608 | fi |
cd9a469c | 14609 | rm -f core conftest.err conftest.$ac_objext \ |
14610 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14611 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14612 | ||
14613 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 14614 | 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" |
542f9784 | 14615 | else |
14616 | if test "$host_cpu" = ia64; then | |
14617 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14618 | allow_undefined_flag_FC="-z nodefs" | |
14619 | 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" | |
14620 | else | |
14621 | # Determine the default libpath from the value encoded in an | |
14622 | # empty executable. | |
14623 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14624 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14625 | fi |
cd9a469c | 14626 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14627 | program main |
14628 | ||
14629 | end | |
14630 | _ACEOF | |
cd9a469c | 14631 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14632 | |
14633 | lt_aix_libpath_sed=' | |
14634 | /Import File Strings/,/^$/ { | |
14635 | /^0/ { | |
14636 | s/^0 *\(.*\)$/\1/ | |
14637 | p | |
14638 | } | |
14639 | }' | |
14640 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14641 | # Check for a 64-bit object if we didn't find anything. | |
14642 | if test -z "$aix_libpath"; then | |
14643 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14644 | fi | |
542f9784 | 14645 | fi |
cd9a469c | 14646 | rm -f core conftest.err conftest.$ac_objext \ |
14647 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14648 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14649 | ||
14650 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14651 | # Warning - without using the other run time loading flags, | |
14652 | # -berok will link without error, but may produce a broken library. | |
14653 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14654 | allow_undefined_flag_FC=' ${wl}-berok' | |
e6408286 | 14655 | if test "$with_gnu_ld" = yes; then |
14656 | # We only use this code for GNU lds that support --whole-archive. | |
14657 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14658 | else | |
14659 | # Exported symbols can be pulled into shared objects from archives | |
14660 | whole_archive_flag_spec_FC='$convenience' | |
14661 | fi | |
542f9784 | 14662 | archive_cmds_need_lc_FC=yes |
14663 | # This is similar to how AIX traditionally builds its shared libraries. | |
14664 | 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' | |
14665 | fi | |
14666 | fi | |
14667 | ;; | |
14668 | ||
14669 | amigaos*) | |
00aafda4 | 14670 | case $host_cpu in |
14671 | powerpc) | |
14672 | # see comment about AmigaOS4 .so support | |
14673 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14674 | archive_expsym_cmds_FC='' | |
14675 | ;; | |
14676 | m68k) | |
14677 | 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)' | |
14678 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14679 | hardcode_minus_L_FC=yes | |
14680 | ;; | |
14681 | esac | |
542f9784 | 14682 | ;; |
14683 | ||
14684 | bsdi[45]*) | |
14685 | export_dynamic_flag_spec_FC=-rdynamic | |
14686 | ;; | |
14687 | ||
00aafda4 | 14688 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14689 | # When not using gcc, we currently assume that we are using |
14690 | # Microsoft Visual C++. | |
14691 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14692 | # no search path for DLLs. | |
14693 | hardcode_libdir_flag_spec_FC=' ' | |
14694 | allow_undefined_flag_FC=unsupported | |
14695 | # Tell ltmain to make .lib files, not .a files. | |
14696 | libext=lib | |
14697 | # Tell ltmain to make .dll files, not .so files. | |
14698 | shrext_cmds=".dll" | |
14699 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 14700 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 14701 | # The linker will automatically build a .lib file if we build a DLL. |
14702 | old_archive_from_new_cmds_FC='true' | |
14703 | # FIXME: Should let the user specify the lib program. | |
14704 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14705 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14706 | enable_shared_with_static_runtimes_FC=yes | |
14707 | ;; | |
14708 | ||
14709 | darwin* | rhapsody*) | |
542f9784 | 14710 | |
00aafda4 | 14711 | |
14712 | archive_cmds_need_lc_FC=no | |
14713 | hardcode_direct_FC=no | |
14714 | hardcode_automatic_FC=yes | |
14715 | hardcode_shlibpath_var_FC=unsupported | |
e6408286 | 14716 | if test "$lt_cv_ld_force_load" = "yes"; then |
14717 | 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\"`' | |
14718 | else | |
14719 | whole_archive_flag_spec_FC='' | |
14720 | fi | |
00aafda4 | 14721 | link_all_deplibs_FC=yes |
14722 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14723 | case $cc_basename in | |
14724 | ifort*) _lt_dar_can_shared=yes ;; | |
14725 | *) _lt_dar_can_shared=$GCC ;; | |
14726 | esac | |
14727 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 14728 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 14729 | 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}" |
14730 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14731 | 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}" | |
14732 | 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}" | |
14733 | ||
14734 | else | |
14735 | ld_shlibs_FC=no | |
14736 | fi | |
14737 | ||
542f9784 | 14738 | ;; |
14739 | ||
14740 | dgux*) | |
14741 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14742 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14743 | hardcode_shlibpath_var_FC=no | |
14744 | ;; | |
14745 | ||
542f9784 | 14746 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14747 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14748 | # does not break anything, and helps significantly (at the cost of a little | |
14749 | # extra space). | |
14750 | freebsd2.2*) | |
14751 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14752 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14753 | hardcode_direct_FC=yes | |
14754 | hardcode_shlibpath_var_FC=no | |
14755 | ;; | |
14756 | ||
14757 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 14758 | freebsd2.*) |
542f9784 | 14759 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14760 | hardcode_direct_FC=yes | |
14761 | hardcode_minus_L_FC=yes | |
14762 | hardcode_shlibpath_var_FC=no | |
14763 | ;; | |
14764 | ||
14765 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14766 | freebsd* | dragonfly*) | |
14767 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14768 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14769 | hardcode_direct_FC=yes | |
14770 | hardcode_shlibpath_var_FC=no | |
14771 | ;; | |
14772 | ||
14773 | hpux9*) | |
14774 | if test "$GCC" = yes; then | |
14775 | 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' | |
14776 | else | |
14777 | 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' | |
14778 | fi | |
14779 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14780 | hardcode_libdir_separator_FC=: | |
14781 | hardcode_direct_FC=yes | |
14782 | ||
14783 | # hardcode_minus_L: Not really in the search PATH, | |
14784 | # but as the default location of the library. | |
14785 | hardcode_minus_L_FC=yes | |
14786 | export_dynamic_flag_spec_FC='${wl}-E' | |
14787 | ;; | |
14788 | ||
14789 | hpux10*) | |
e6408286 | 14790 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14791 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14792 | else | |
14793 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14794 | fi | |
14795 | if test "$with_gnu_ld" = no; then | |
14796 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14797 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14798 | hardcode_libdir_separator_FC=: | |
14799 | hardcode_direct_FC=yes | |
14800 | hardcode_direct_absolute_FC=yes | |
14801 | export_dynamic_flag_spec_FC='${wl}-E' | |
14802 | # hardcode_minus_L: Not really in the search PATH, | |
14803 | # but as the default location of the library. | |
14804 | hardcode_minus_L_FC=yes | |
14805 | fi | |
14806 | ;; | |
14807 | ||
14808 | hpux11*) | |
e6408286 | 14809 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14810 | case $host_cpu in |
14811 | hppa*64*) | |
14812 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14813 | ;; | |
14814 | ia64*) | |
00aafda4 | 14815 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14816 | ;; |
14817 | *) | |
14818 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14819 | ;; | |
14820 | esac | |
14821 | else | |
14822 | case $host_cpu in | |
14823 | hppa*64*) | |
14824 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14825 | ;; | |
14826 | ia64*) | |
14827 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14828 | ;; | |
14829 | *) | |
e6408286 | 14830 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14831 | ;; |
14832 | esac | |
14833 | fi | |
14834 | if test "$with_gnu_ld" = no; then | |
14835 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14836 | hardcode_libdir_separator_FC=: | |
14837 | ||
14838 | case $host_cpu in | |
14839 | hppa*64*|ia64*) | |
14840 | hardcode_direct_FC=no | |
14841 | hardcode_shlibpath_var_FC=no | |
14842 | ;; | |
14843 | *) | |
14844 | hardcode_direct_FC=yes | |
14845 | hardcode_direct_absolute_FC=yes | |
14846 | export_dynamic_flag_spec_FC='${wl}-E' | |
14847 | ||
14848 | # hardcode_minus_L: Not really in the search PATH, | |
14849 | # but as the default location of the library. | |
14850 | hardcode_minus_L_FC=yes | |
14851 | ;; | |
14852 | esac | |
14853 | fi | |
14854 | ;; | |
14855 | ||
14856 | irix5* | irix6* | nonstopux*) | |
14857 | if test "$GCC" = yes; then | |
e6408286 | 14858 | 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' |
542f9784 | 14859 | # Try to use the -exported_symbol ld option, if it does not |
14860 | # work, assume that -exports_file does not work either and | |
14861 | # implicitly export all symbols. | |
14862 | save_LDFLAGS="$LDFLAGS" | |
14863 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14864 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14865 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14866 | fi |
cd9a469c | 14867 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14868 | int foo(void) {} |
14869 | _ACEOF | |
cd9a469c | 14870 | if ac_fn_fc_try_link "$LINENO"; then : |
e6408286 | 14871 | 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' |
542f9784 | 14872 | |
542f9784 | 14873 | fi |
cd9a469c | 14874 | rm -f core conftest.err conftest.$ac_objext \ |
14875 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14876 | LDFLAGS="$save_LDFLAGS" |
14877 | else | |
e6408286 | 14878 | 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' |
14879 | 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' | |
542f9784 | 14880 | fi |
14881 | archive_cmds_need_lc_FC='no' | |
14882 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14883 | hardcode_libdir_separator_FC=: | |
14884 | inherit_rpath_FC=yes | |
14885 | link_all_deplibs_FC=yes | |
14886 | ;; | |
14887 | ||
14888 | netbsd*) | |
14889 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14890 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14891 | else | |
14892 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14893 | fi | |
14894 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14895 | hardcode_direct_FC=yes | |
14896 | hardcode_shlibpath_var_FC=no | |
14897 | ;; | |
14898 | ||
14899 | newsos6) | |
14900 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14901 | hardcode_direct_FC=yes | |
14902 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14903 | hardcode_libdir_separator_FC=: | |
14904 | hardcode_shlibpath_var_FC=no | |
14905 | ;; | |
14906 | ||
14907 | *nto* | *qnx*) | |
14908 | ;; | |
14909 | ||
14910 | openbsd*) | |
00aafda4 | 14911 | if test -f /usr/libexec/ld.so; then |
14912 | hardcode_direct_FC=yes | |
14913 | hardcode_shlibpath_var_FC=no | |
14914 | hardcode_direct_absolute_FC=yes | |
14915 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 14916 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 14917 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 14918 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
00aafda4 | 14919 | export_dynamic_flag_spec_FC='${wl}-E' |
14920 | else | |
14921 | case $host_os in | |
14922 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14923 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14924 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14925 | ;; | |
14926 | *) | |
14927 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14928 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14929 | ;; | |
14930 | esac | |
14931 | fi | |
14932 | else | |
14933 | ld_shlibs_FC=no | |
542f9784 | 14934 | fi |
14935 | ;; | |
14936 | ||
14937 | os2*) | |
14938 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14939 | hardcode_minus_L_FC=yes | |
14940 | allow_undefined_flag_FC=unsupported | |
e6408286 | 14941 | 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' |
542f9784 | 14942 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14943 | ;; | |
14944 | ||
14945 | osf3*) | |
14946 | if test "$GCC" = yes; then | |
14947 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14948 | 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' |
542f9784 | 14949 | else |
14950 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14951 | 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' |
542f9784 | 14952 | fi |
14953 | archive_cmds_need_lc_FC='no' | |
14954 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14955 | hardcode_libdir_separator_FC=: | |
14956 | ;; | |
14957 | ||
14958 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14959 | if test "$GCC" = yes; then | |
14960 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14961 | 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' |
542f9784 | 14962 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14963 | else | |
14964 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14965 | 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' |
542f9784 | 14966 | 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~ |
e6408286 | 14967 | $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' |
542f9784 | 14968 | |
14969 | # Both c and cxx compiler support -rpath directly | |
14970 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14971 | fi | |
14972 | archive_cmds_need_lc_FC='no' | |
14973 | hardcode_libdir_separator_FC=: | |
14974 | ;; | |
14975 | ||
14976 | solaris*) | |
14977 | no_undefined_flag_FC=' -z defs' | |
14978 | if test "$GCC" = yes; then | |
14979 | wlarc='${wl}' | |
14980 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14981 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14982 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14983 | else | |
14984 | case `$CC -V 2>&1` in | |
14985 | *"Compilers 5.0"*) | |
14986 | wlarc='' | |
14987 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14988 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14989 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
14990 | ;; | |
14991 | *) | |
14992 | wlarc='${wl}' | |
14993 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14994 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14995 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14996 | ;; | |
14997 | esac | |
14998 | fi | |
14999 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15000 | hardcode_shlibpath_var_FC=no | |
15001 | case $host_os in | |
15002 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15003 | *) | |
15004 | # The compiler driver will combine and reorder linker options, | |
15005 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15006 | # but is careful enough not to reorder. | |
15007 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15008 | if test "$GCC" = yes; then | |
15009 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15010 | else | |
15011 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15012 | fi | |
15013 | ;; | |
15014 | esac | |
15015 | link_all_deplibs_FC=yes | |
15016 | ;; | |
15017 | ||
15018 | sunos4*) | |
15019 | if test "x$host_vendor" = xsequent; then | |
15020 | # Use $CC to link under sequent, because it throws in some extra .o | |
15021 | # files that make .init and .fini sections work. | |
15022 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15023 | else | |
15024 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15025 | fi | |
15026 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15027 | hardcode_direct_FC=yes | |
15028 | hardcode_minus_L_FC=yes | |
15029 | hardcode_shlibpath_var_FC=no | |
15030 | ;; | |
15031 | ||
15032 | sysv4) | |
15033 | case $host_vendor in | |
15034 | sni) | |
15035 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15036 | hardcode_direct_FC=yes # is this really true??? | |
15037 | ;; | |
15038 | siemens) | |
15039 | ## LD is ld it makes a PLAMLIB | |
15040 | ## CC just makes a GrossModule. | |
15041 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15042 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15043 | hardcode_direct_FC=no | |
15044 | ;; | |
15045 | motorola) | |
15046 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15047 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15048 | ;; | |
15049 | esac | |
15050 | runpath_var='LD_RUN_PATH' | |
15051 | hardcode_shlibpath_var_FC=no | |
15052 | ;; | |
15053 | ||
15054 | sysv4.3*) | |
15055 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15056 | hardcode_shlibpath_var_FC=no | |
15057 | export_dynamic_flag_spec_FC='-Bexport' | |
15058 | ;; | |
15059 | ||
15060 | sysv4*MP*) | |
15061 | if test -d /usr/nec; then | |
15062 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15063 | hardcode_shlibpath_var_FC=no | |
15064 | runpath_var=LD_RUN_PATH | |
15065 | hardcode_runpath_var=yes | |
15066 | ld_shlibs_FC=yes | |
15067 | fi | |
15068 | ;; | |
15069 | ||
15070 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15071 | no_undefined_flag_FC='${wl}-z,text' | |
15072 | archive_cmds_need_lc_FC=no | |
15073 | hardcode_shlibpath_var_FC=no | |
15074 | runpath_var='LD_RUN_PATH' | |
15075 | ||
15076 | if test "$GCC" = yes; then | |
15077 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15078 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15079 | else | |
15080 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15081 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15082 | fi | |
15083 | ;; | |
15084 | ||
15085 | sysv5* | sco3.2v5* | sco5v6*) | |
15086 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15087 | # link with -lc, and that would cause any symbols used from libc to | |
15088 | # always be unresolved, which means just about no library would | |
15089 | # ever link correctly. If we're not using GNU ld we use -z text | |
15090 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15091 | # as -z defs. | |
15092 | no_undefined_flag_FC='${wl}-z,text' | |
15093 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15094 | archive_cmds_need_lc_FC=no | |
15095 | hardcode_shlibpath_var_FC=no | |
15096 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15097 | hardcode_libdir_separator_FC=':' | |
15098 | link_all_deplibs_FC=yes | |
15099 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15100 | runpath_var='LD_RUN_PATH' | |
15101 | ||
15102 | if test "$GCC" = yes; then | |
15103 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15104 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15105 | else | |
15106 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15107 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15108 | fi | |
15109 | ;; | |
15110 | ||
15111 | uts4*) | |
15112 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15113 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15114 | hardcode_shlibpath_var_FC=no | |
15115 | ;; | |
15116 | ||
15117 | *) | |
15118 | ld_shlibs_FC=no | |
15119 | ;; | |
15120 | esac | |
15121 | ||
15122 | if test x$host_vendor = xsni; then | |
15123 | case $host in | |
15124 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15125 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15126 | ;; | |
15127 | esac | |
15128 | fi | |
15129 | fi | |
15130 | ||
cd9a469c | 15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15132 | $as_echo "$ld_shlibs_FC" >&6; } | |
542f9784 | 15133 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15134 | ||
15135 | with_gnu_ld_FC=$with_gnu_ld | |
15136 | ||
15137 | ||
15138 | ||
15139 | ||
15140 | ||
15141 | ||
15142 | # | |
15143 | # Do we need to explicitly link libc? | |
15144 | # | |
15145 | case "x$archive_cmds_need_lc_FC" in | |
15146 | x|xyes) | |
15147 | # Assume -lc should be added | |
15148 | archive_cmds_need_lc_FC=yes | |
15149 | ||
15150 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15151 | case $archive_cmds_FC in | |
15152 | *'~'*) | |
15153 | # FIXME: we may have to deal with multi-command sequences. | |
15154 | ;; | |
15155 | '$CC '*) | |
15156 | # Test whether the compiler implicitly links with -lc since on some | |
15157 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15158 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 15159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15160 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 15161 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
cd9a469c | 15162 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 15163 | else |
15164 | $RM conftest* | |
15165 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 15166 | |
cd9a469c | 15167 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 15168 | (eval $ac_compile) 2>&5 |
15169 | ac_status=$? | |
cd9a469c | 15170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15171 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 15172 | soname=conftest |
15173 | lib=conftest | |
15174 | libobjs=conftest.$ac_objext | |
15175 | deplibs= | |
15176 | wl=$lt_prog_compiler_wl_FC | |
15177 | pic_flag=$lt_prog_compiler_pic_FC | |
15178 | compiler_flags=-v | |
15179 | linker_flags=-v | |
15180 | verstring= | |
15181 | output_objdir=. | |
15182 | libname=conftest | |
15183 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15184 | allow_undefined_flag_FC= | |
cd9a469c | 15185 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 15186 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
90e67cff | 15187 | ac_status=$? |
cd9a469c | 15188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15189 | test $ac_status = 0; } | |
9e6fd619 | 15190 | then |
15191 | lt_cv_archive_cmds_need_lc_FC=no | |
15192 | else | |
15193 | lt_cv_archive_cmds_need_lc_FC=yes | |
15194 | fi | |
15195 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15196 | else | |
15197 | cat conftest.err 1>&5 | |
15198 | fi | |
15199 | $RM conftest* | |
15200 | ||
15201 | fi | |
cd9a469c | 15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15203 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
9e6fd619 | 15204 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
542f9784 | 15205 | ;; |
15206 | esac | |
15207 | fi | |
15208 | ;; | |
15209 | esac | |
90e67cff | 15210 | |
90e67cff | 15211 | |
542f9784 | 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 | ||
15267 | ||
15268 | ||
15269 | ||
15270 | ||
15271 | ||
15272 | ||
15273 | ||
cd9a469c | 15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15275 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 15276 | |
542f9784 | 15277 | library_names_spec= |
15278 | libname_spec='lib$name' | |
15279 | soname_spec= | |
15280 | shrext_cmds=".so" | |
15281 | postinstall_cmds= | |
15282 | postuninstall_cmds= | |
15283 | finish_cmds= | |
15284 | finish_eval= | |
15285 | shlibpath_var= | |
15286 | shlibpath_overrides_runpath=unknown | |
15287 | version_type=none | |
15288 | dynamic_linker="$host_os ld.so" | |
15289 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15290 | need_lib_prefix=unknown | |
15291 | hardcode_into_libs=no | |
15292 | ||
15293 | # when you set need_version to no, make sure it does not cause -set_version | |
15294 | # flags to be left without arguments | |
15295 | need_version=unknown | |
15296 | ||
15297 | case $host_os in | |
15298 | aix3*) | |
15299 | version_type=linux | |
15300 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15301 | shlibpath_var=LIBPATH | |
15302 | ||
15303 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15304 | soname_spec='${libname}${release}${shared_ext}$major' | |
15305 | ;; | |
15306 | ||
21e07d2f | 15307 | aix[4-9]*) |
542f9784 | 15308 | version_type=linux |
15309 | need_lib_prefix=no | |
15310 | need_version=no | |
15311 | hardcode_into_libs=yes | |
15312 | if test "$host_cpu" = ia64; then | |
15313 | # AIX 5 supports IA64 | |
15314 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15315 | shlibpath_var=LD_LIBRARY_PATH | |
15316 | else | |
15317 | # With GCC up to 2.95.x, collect2 would create an import file | |
15318 | # for dependence libraries. The import file would start with | |
15319 | # the line `#! .'. This would cause the generated library to | |
15320 | # depend on `.', always an invalid library. This was fixed in | |
15321 | # development snapshots of GCC prior to 3.0. | |
15322 | case $host_os in | |
15323 | aix4 | aix4.[01] | aix4.[01].*) | |
15324 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15325 | echo ' yes ' | |
15326 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15327 | : | |
15328 | else | |
15329 | can_build_shared=no | |
15330 | fi | |
15331 | ;; | |
15332 | esac | |
15333 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15334 | # soname into executable. Probably we can add versioning support to | |
15335 | # collect2, so additional links can be useful in future. | |
15336 | if test "$aix_use_runtimelinking" = yes; then | |
15337 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15338 | # instead of lib<name>.a to let people know that these are not | |
15339 | # typical AIX shared libraries. | |
15340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15341 | else | |
15342 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15343 | # and later when we are not doing run time linking. | |
15344 | library_names_spec='${libname}${release}.a $libname.a' | |
15345 | soname_spec='${libname}${release}${shared_ext}$major' | |
15346 | fi | |
15347 | shlibpath_var=LIBPATH | |
15348 | fi | |
15349 | ;; | |
15350 | ||
15351 | amigaos*) | |
00aafda4 | 15352 | case $host_cpu in |
15353 | powerpc) | |
15354 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15355 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15357 | ;; | |
15358 | m68k) | |
542f9784 | 15359 | library_names_spec='$libname.ixlibrary $libname.a' |
15360 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 15361 | 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' |
00aafda4 | 15362 | ;; |
15363 | esac | |
542f9784 | 15364 | ;; |
15365 | ||
15366 | beos*) | |
15367 | library_names_spec='${libname}${shared_ext}' | |
15368 | dynamic_linker="$host_os ld.so" | |
15369 | shlibpath_var=LIBRARY_PATH | |
15370 | ;; | |
15371 | ||
15372 | bsdi[45]*) | |
15373 | version_type=linux | |
15374 | need_version=no | |
15375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15376 | soname_spec='${libname}${release}${shared_ext}$major' | |
15377 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15378 | shlibpath_var=LD_LIBRARY_PATH | |
15379 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15380 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15381 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15382 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15383 | # libtool to hard-code these into programs | |
15384 | ;; | |
15385 | ||
00aafda4 | 15386 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 15387 | version_type=windows |
15388 | shrext_cmds=".dll" | |
15389 | need_version=no | |
15390 | need_lib_prefix=no | |
15391 | ||
00aafda4 | 15392 | case $GCC,$host_os in |
15393 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 15394 | library_names_spec='$libname.dll.a' |
15395 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15396 | postinstall_cmds='base_file=`basename \${file}`~ | |
15397 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15398 | dldir=$destdir/`dirname \$dlpath`~ | |
15399 | test -d \$dldir || mkdir -p \$dldir~ | |
15400 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15401 | chmod a+x \$dldir/$dlname~ | |
15402 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15403 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15404 | fi' | |
15405 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15406 | dlpath=$dir/\$dldll~ | |
15407 | $RM \$dlpath' | |
15408 | shlibpath_overrides_runpath=yes | |
15409 | ||
15410 | case $host_os in | |
15411 | cygwin*) | |
15412 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15413 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 15414 | |
542f9784 | 15415 | ;; |
00aafda4 | 15416 | mingw* | cegcc*) |
542f9784 | 15417 | # MinGW DLLs use traditional 'lib' prefix |
15418 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 15419 | ;; |
15420 | pw32*) | |
15421 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15422 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15423 | ;; | |
15424 | esac | |
15425 | ;; | |
15426 | ||
15427 | *) | |
15428 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15429 | ;; | |
15430 | esac | |
15431 | dynamic_linker='Win32 ld.exe' | |
15432 | # FIXME: first we should search . and the directory the executable is in | |
15433 | shlibpath_var=PATH | |
15434 | ;; | |
15435 | ||
15436 | darwin* | rhapsody*) | |
15437 | dynamic_linker="$host_os dyld" | |
15438 | version_type=darwin | |
15439 | need_lib_prefix=no | |
15440 | need_version=no | |
15441 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15442 | soname_spec='${libname}${release}${major}$shared_ext' | |
15443 | shlibpath_overrides_runpath=yes | |
15444 | shlibpath_var=DYLD_LIBRARY_PATH | |
15445 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15446 | ||
15447 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15448 | ;; | |
15449 | ||
15450 | dgux*) | |
15451 | version_type=linux | |
15452 | need_lib_prefix=no | |
15453 | need_version=no | |
15454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15455 | soname_spec='${libname}${release}${shared_ext}$major' | |
15456 | shlibpath_var=LD_LIBRARY_PATH | |
15457 | ;; | |
15458 | ||
542f9784 | 15459 | freebsd* | dragonfly*) |
15460 | # DragonFly does not have aout. When/if they implement a new | |
15461 | # versioning mechanism, adjust this. | |
15462 | if test -x /usr/bin/objformat; then | |
15463 | objformat=`/usr/bin/objformat` | |
15464 | else | |
15465 | case $host_os in | |
30369aff | 15466 | freebsd[23].*) objformat=aout ;; |
542f9784 | 15467 | *) objformat=elf ;; |
15468 | esac | |
15469 | fi | |
15470 | version_type=freebsd-$objformat | |
15471 | case $version_type in | |
15472 | freebsd-elf*) | |
15473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15474 | need_version=no | |
15475 | need_lib_prefix=no | |
15476 | ;; | |
15477 | freebsd-*) | |
15478 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15479 | need_version=yes | |
15480 | ;; | |
15481 | esac | |
15482 | shlibpath_var=LD_LIBRARY_PATH | |
15483 | case $host_os in | |
30369aff | 15484 | freebsd2.*) |
542f9784 | 15485 | shlibpath_overrides_runpath=yes |
15486 | ;; | |
15487 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15488 | shlibpath_overrides_runpath=yes | |
15489 | hardcode_into_libs=yes | |
15490 | ;; | |
15491 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15492 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15493 | shlibpath_overrides_runpath=no | |
15494 | hardcode_into_libs=yes | |
15495 | ;; | |
15496 | *) # from 4.6 on, and DragonFly | |
15497 | shlibpath_overrides_runpath=yes | |
15498 | hardcode_into_libs=yes | |
15499 | ;; | |
15500 | esac | |
15501 | ;; | |
15502 | ||
15503 | gnu*) | |
15504 | version_type=linux | |
15505 | need_lib_prefix=no | |
15506 | need_version=no | |
15507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15508 | soname_spec='${libname}${release}${shared_ext}$major' | |
15509 | shlibpath_var=LD_LIBRARY_PATH | |
15510 | hardcode_into_libs=yes | |
15511 | ;; | |
15512 | ||
e6408286 | 15513 | haiku*) |
15514 | version_type=linux | |
15515 | need_lib_prefix=no | |
15516 | need_version=no | |
15517 | dynamic_linker="$host_os runtime_loader" | |
15518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15519 | soname_spec='${libname}${release}${shared_ext}$major' | |
15520 | shlibpath_var=LIBRARY_PATH | |
15521 | shlibpath_overrides_runpath=yes | |
15522 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15523 | hardcode_into_libs=yes | |
15524 | ;; | |
15525 | ||
542f9784 | 15526 | hpux9* | hpux10* | hpux11*) |
15527 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15528 | # link against other versions. | |
15529 | version_type=sunos | |
15530 | need_lib_prefix=no | |
15531 | need_version=no | |
15532 | case $host_cpu in | |
15533 | ia64*) | |
15534 | shrext_cmds='.so' | |
15535 | hardcode_into_libs=yes | |
15536 | dynamic_linker="$host_os dld.so" | |
15537 | shlibpath_var=LD_LIBRARY_PATH | |
15538 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15540 | soname_spec='${libname}${release}${shared_ext}$major' | |
15541 | if test "X$HPUX_IA64_MODE" = X32; then | |
15542 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15543 | else | |
15544 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15545 | fi | |
15546 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15547 | ;; | |
15548 | hppa*64*) | |
15549 | shrext_cmds='.sl' | |
15550 | hardcode_into_libs=yes | |
15551 | dynamic_linker="$host_os dld.sl" | |
15552 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15553 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15555 | soname_spec='${libname}${release}${shared_ext}$major' | |
15556 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15557 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15558 | ;; | |
15559 | *) | |
15560 | shrext_cmds='.sl' | |
15561 | dynamic_linker="$host_os dld.sl" | |
15562 | shlibpath_var=SHLIB_PATH | |
15563 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15565 | soname_spec='${libname}${release}${shared_ext}$major' | |
15566 | ;; | |
15567 | esac | |
e6408286 | 15568 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 15569 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 15570 | # or fails outright, so override atomically: |
15571 | install_override_mode=555 | |
542f9784 | 15572 | ;; |
15573 | ||
15574 | interix[3-9]*) | |
15575 | version_type=linux | |
15576 | need_lib_prefix=no | |
15577 | need_version=no | |
15578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15579 | soname_spec='${libname}${release}${shared_ext}$major' | |
15580 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15581 | shlibpath_var=LD_LIBRARY_PATH | |
15582 | shlibpath_overrides_runpath=no | |
15583 | hardcode_into_libs=yes | |
15584 | ;; | |
15585 | ||
15586 | irix5* | irix6* | nonstopux*) | |
15587 | case $host_os in | |
15588 | nonstopux*) version_type=nonstopux ;; | |
15589 | *) | |
15590 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15591 | version_type=linux | |
15592 | else | |
15593 | version_type=irix | |
15594 | fi ;; | |
15595 | esac | |
15596 | need_lib_prefix=no | |
15597 | need_version=no | |
15598 | soname_spec='${libname}${release}${shared_ext}$major' | |
15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15600 | case $host_os in | |
15601 | irix5* | nonstopux*) | |
15602 | libsuff= shlibsuff= | |
15603 | ;; | |
15604 | *) | |
15605 | case $LD in # libtool.m4 will add one of these switches to LD | |
15606 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15607 | libsuff= shlibsuff= libmagic=32-bit;; | |
15608 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15609 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15610 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15611 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15612 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15613 | esac | |
15614 | ;; | |
15615 | esac | |
15616 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15617 | shlibpath_overrides_runpath=no | |
15618 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15619 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15620 | hardcode_into_libs=yes | |
15621 | ;; | |
15622 | ||
15623 | # No shared lib support for Linux oldld, aout, or coff. | |
15624 | linux*oldld* | linux*aout* | linux*coff*) | |
15625 | dynamic_linker=no | |
15626 | ;; | |
15627 | ||
15628 | # This must be Linux ELF. | |
9af964d4 | 15629 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 15630 | version_type=linux |
15631 | need_lib_prefix=no | |
15632 | need_version=no | |
15633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15634 | soname_spec='${libname}${release}${shared_ext}$major' | |
15635 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15636 | shlibpath_var=LD_LIBRARY_PATH | |
15637 | shlibpath_overrides_runpath=no | |
9e6fd619 | 15638 | |
542f9784 | 15639 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 15640 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 15641 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 15642 | else |
15643 | lt_cv_shlibpath_overrides_runpath=no | |
15644 | save_LDFLAGS=$LDFLAGS | |
15645 | save_libdir=$libdir | |
15646 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15647 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15648 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 15649 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 15650 | fi |
cd9a469c | 15651 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15652 | program main |
15653 | ||
15654 | end | |
90e67cff | 15655 | _ACEOF |
cd9a469c | 15656 | if ac_fn_fc_try_link "$LINENO"; then : |
15657 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 15658 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 15659 | fi |
90e67cff | 15660 | fi |
cd9a469c | 15661 | rm -f core conftest.err conftest.$ac_objext \ |
15662 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 15663 | LDFLAGS=$save_LDFLAGS |
15664 | libdir=$save_libdir | |
15665 | ||
15666 | fi | |
15667 | ||
15668 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 15669 | |
15670 | # This implies no fast_install, which is unacceptable. | |
15671 | # Some rework will be needed to allow for fast_install | |
15672 | # before this can be enabled. | |
15673 | hardcode_into_libs=yes | |
15674 | ||
15675 | # Append ld.so.conf contents to the search path | |
15676 | if test -f /etc/ld.so.conf; then | |
e6408286 | 15677 | 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' ' '` |
542f9784 | 15678 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15679 | fi | |
15680 | ||
15681 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15682 | # powerpc, because MkLinux only supported shared libraries with the | |
15683 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15684 | # most powerpc-linux boxes support dynamic linking these days and | |
15685 | # people can always --disable-shared, the test was removed, and we | |
15686 | # assume the GNU/Linux dynamic linker is in use. | |
15687 | dynamic_linker='GNU/Linux ld.so' | |
15688 | ;; | |
15689 | ||
15690 | netbsd*) | |
15691 | version_type=sunos | |
15692 | need_lib_prefix=no | |
15693 | need_version=no | |
15694 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15696 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15697 | dynamic_linker='NetBSD (a.out) ld.so' | |
15698 | else | |
15699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15700 | soname_spec='${libname}${release}${shared_ext}$major' | |
15701 | dynamic_linker='NetBSD ld.elf_so' | |
15702 | fi | |
15703 | shlibpath_var=LD_LIBRARY_PATH | |
15704 | shlibpath_overrides_runpath=yes | |
15705 | hardcode_into_libs=yes | |
15706 | ;; | |
15707 | ||
15708 | newsos6) | |
15709 | version_type=linux | |
15710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15711 | shlibpath_var=LD_LIBRARY_PATH | |
15712 | shlibpath_overrides_runpath=yes | |
15713 | ;; | |
15714 | ||
15715 | *nto* | *qnx*) | |
15716 | version_type=qnx | |
15717 | need_lib_prefix=no | |
15718 | need_version=no | |
15719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15720 | soname_spec='${libname}${release}${shared_ext}$major' | |
15721 | shlibpath_var=LD_LIBRARY_PATH | |
15722 | shlibpath_overrides_runpath=no | |
15723 | hardcode_into_libs=yes | |
15724 | dynamic_linker='ldqnx.so' | |
15725 | ;; | |
15726 | ||
15727 | openbsd*) | |
15728 | version_type=sunos | |
15729 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15730 | need_lib_prefix=no | |
15731 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15732 | case $host_os in | |
15733 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15734 | *) need_version=no ;; | |
15735 | esac | |
15736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15737 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15738 | shlibpath_var=LD_LIBRARY_PATH | |
15739 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15740 | case $host_os in | |
15741 | openbsd2.[89] | openbsd2.[89].*) | |
15742 | shlibpath_overrides_runpath=no | |
15743 | ;; | |
15744 | *) | |
15745 | shlibpath_overrides_runpath=yes | |
15746 | ;; | |
15747 | esac | |
15748 | else | |
15749 | shlibpath_overrides_runpath=yes | |
15750 | fi | |
15751 | ;; | |
15752 | ||
15753 | os2*) | |
15754 | libname_spec='$name' | |
15755 | shrext_cmds=".dll" | |
15756 | need_lib_prefix=no | |
15757 | library_names_spec='$libname${shared_ext} $libname.a' | |
15758 | dynamic_linker='OS/2 ld.exe' | |
15759 | shlibpath_var=LIBPATH | |
15760 | ;; | |
15761 | ||
15762 | osf3* | osf4* | osf5*) | |
15763 | version_type=osf | |
15764 | need_lib_prefix=no | |
15765 | need_version=no | |
15766 | soname_spec='${libname}${release}${shared_ext}$major' | |
15767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15768 | shlibpath_var=LD_LIBRARY_PATH | |
15769 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15770 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15771 | ;; | |
15772 | ||
15773 | rdos*) | |
15774 | dynamic_linker=no | |
15775 | ;; | |
15776 | ||
15777 | solaris*) | |
15778 | version_type=linux | |
15779 | need_lib_prefix=no | |
15780 | need_version=no | |
15781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15782 | soname_spec='${libname}${release}${shared_ext}$major' | |
15783 | shlibpath_var=LD_LIBRARY_PATH | |
15784 | shlibpath_overrides_runpath=yes | |
15785 | hardcode_into_libs=yes | |
15786 | # ldd complains unless libraries are executable | |
15787 | postinstall_cmds='chmod +x $lib' | |
15788 | ;; | |
15789 | ||
15790 | sunos4*) | |
15791 | version_type=sunos | |
15792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15793 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15794 | shlibpath_var=LD_LIBRARY_PATH | |
15795 | shlibpath_overrides_runpath=yes | |
15796 | if test "$with_gnu_ld" = yes; then | |
15797 | need_lib_prefix=no | |
15798 | fi | |
15799 | need_version=yes | |
15800 | ;; | |
15801 | ||
15802 | sysv4 | sysv4.3*) | |
15803 | version_type=linux | |
15804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15805 | soname_spec='${libname}${release}${shared_ext}$major' | |
15806 | shlibpath_var=LD_LIBRARY_PATH | |
15807 | case $host_vendor in | |
15808 | sni) | |
15809 | shlibpath_overrides_runpath=no | |
15810 | need_lib_prefix=no | |
15811 | runpath_var=LD_RUN_PATH | |
15812 | ;; | |
15813 | siemens) | |
15814 | need_lib_prefix=no | |
15815 | ;; | |
15816 | motorola) | |
15817 | need_lib_prefix=no | |
15818 | need_version=no | |
15819 | shlibpath_overrides_runpath=no | |
15820 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15821 | ;; | |
15822 | esac | |
15823 | ;; | |
15824 | ||
15825 | sysv4*MP*) | |
15826 | if test -d /usr/nec ;then | |
15827 | version_type=linux | |
15828 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15829 | soname_spec='$libname${shared_ext}.$major' | |
15830 | shlibpath_var=LD_LIBRARY_PATH | |
15831 | fi | |
15832 | ;; | |
15833 | ||
15834 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15835 | version_type=freebsd-elf | |
15836 | need_lib_prefix=no | |
15837 | need_version=no | |
15838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15839 | soname_spec='${libname}${release}${shared_ext}$major' | |
15840 | shlibpath_var=LD_LIBRARY_PATH | |
15841 | shlibpath_overrides_runpath=yes | |
15842 | hardcode_into_libs=yes | |
15843 | if test "$with_gnu_ld" = yes; then | |
15844 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15845 | else | |
15846 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15847 | case $host_os in | |
15848 | sco3.2v5*) | |
15849 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15850 | ;; | |
15851 | esac | |
15852 | fi | |
15853 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15854 | ;; | |
15855 | ||
15856 | tpf*) | |
15857 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15858 | version_type=linux | |
15859 | need_lib_prefix=no | |
15860 | need_version=no | |
00aafda4 | 15861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 15862 | shlibpath_var=LD_LIBRARY_PATH |
15863 | shlibpath_overrides_runpath=no | |
15864 | hardcode_into_libs=yes | |
15865 | ;; | |
15866 | ||
15867 | uts4*) | |
15868 | version_type=linux | |
15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15870 | soname_spec='${libname}${release}${shared_ext}$major' | |
15871 | shlibpath_var=LD_LIBRARY_PATH | |
15872 | ;; | |
15873 | ||
15874 | *) | |
15875 | dynamic_linker=no | |
15876 | ;; | |
15877 | esac | |
cd9a469c | 15878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15879 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 15880 | test "$dynamic_linker" = no && can_build_shared=no |
15881 | ||
15882 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15883 | if test "$GCC" = yes; then | |
15884 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 15885 | fi |
90e67cff | 15886 | |
00aafda4 | 15887 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15888 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15889 | fi | |
15890 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15891 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15892 | fi | |
15893 | ||
90e67cff | 15894 | |
542f9784 | 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 | ||
15924 | ||
15925 | ||
e6408286 | 15926 | |
15927 | ||
542f9784 | 15928 | |
15929 | ||
15930 | ||
cd9a469c | 15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15932 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 15933 | hardcode_action_FC= |
15934 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15935 | test -n "$runpath_var_FC" || | |
15936 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15937 | ||
15938 | # We can hardcode non-existent directories. | |
15939 | if test "$hardcode_direct_FC" != no && | |
15940 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15941 | # have to relink, otherwise we might link with an installed library | |
15942 | # when we should be linking with a yet-to-be-installed one | |
15943 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15944 | test "$hardcode_minus_L_FC" != no; then | |
15945 | # Linking always hardcodes the temporary library directory. | |
15946 | hardcode_action_FC=relink | |
15947 | else | |
15948 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15949 | hardcode_action_FC=immediate | |
15950 | fi | |
15951 | else | |
15952 | # We cannot hardcode anything, or else we can only hardcode existing | |
15953 | # directories. | |
15954 | hardcode_action_FC=unsupported | |
90e67cff | 15955 | fi |
cd9a469c | 15956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15957 | $as_echo "$hardcode_action_FC" >&6; } | |
542f9784 | 15958 | |
15959 | if test "$hardcode_action_FC" = relink || | |
15960 | test "$inherit_rpath_FC" = yes; then | |
15961 | # Fast installation is not supported | |
15962 | enable_fast_install=no | |
15963 | elif test "$shlibpath_overrides_runpath" = yes || | |
15964 | test "$enable_shared" = no; then | |
15965 | # Fast installation is not necessary | |
15966 | enable_fast_install=needless | |
90e67cff | 15967 | fi |
15968 | ||
542f9784 | 15969 | |
15970 | ||
15971 | ||
15972 | ||
15973 | ||
15974 | ||
15975 | fi # test -n "$compiler" | |
15976 | ||
00aafda4 | 15977 | GCC=$lt_save_GCC |
542f9784 | 15978 | CC="$lt_save_CC" |
15979 | fi # test "$_lt_disable_FC" != yes | |
15980 | ||
5c88bcbb | 15981 | ac_ext=c |
90973b19 | 15982 | ac_cpp='$CPP $CPPFLAGS' |
15983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 15986 | |
15987 | ||
15988 | ||
15989 | # extra LD Flags which are required for targets | |
15990 | case "${host}" in | |
15991 | *-darwin*) | |
15992 | # Darwin needs -single_module when linking libgfortran | |
15993 | extra_ldflags_libgfortran=-Wl,-single_module | |
15994 | ;; | |
15995 | esac | |
15996 | ||
15997 | ||
15998 | # We need a working compiler at that point, otherwise give a clear | |
15999 | # error message and bail out. | |
16000 | ||
cd9a469c | 16001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16002 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16003 | ac_ext=${ac_fc_srcext-f} | |
16004 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16005 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 16006 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16007 | ||
cd9a469c | 16008 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 16009 | |
16010 | program foo | |
16011 | real, parameter :: bar = sin (12.34 / 2.5) | |
16012 | end program foo | |
4ee9c684 | 16013 | _ACEOF |
cd9a469c | 16014 | if ac_fn_fc_try_compile "$LINENO"; then : |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16016 | $as_echo "yes" >&6; } | |
4ee9c684 | 16017 | else |
cd9a469c | 16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16019 | $as_echo "no" >&6; } | |
f00f02a3 | 16020 | as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 |
4ee9c684 | 16021 | |
90973b19 | 16022 | fi |
cd9a469c | 16023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 16024 | ac_ext=c |
16025 | ac_cpp='$CPP $CPPFLAGS' | |
16026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
90973b19 | 16029 | |
90973b19 | 16030 | |
542f9784 | 16031 | |
cd9a469c | 16032 | # Check whether --enable-largefile was given. |
16033 | if test "${enable_largefile+set}" = set; then : | |
16034 | enableval=$enable_largefile; | |
16035 | fi | |
542f9784 | 16036 | |
542f9784 | 16037 | if test "$enable_largefile" != no; then |
16038 | ||
cd9a469c | 16039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16040 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
f00f02a3 | 16041 | if ${ac_cv_sys_largefile_CC+:} false; then : |
cd9a469c | 16042 | $as_echo_n "(cached) " >&6 |
90973b19 | 16043 | else |
542f9784 | 16044 | ac_cv_sys_largefile_CC=no |
16045 | if test "$GCC" != yes; then | |
16046 | ac_save_CC=$CC | |
16047 | while :; do | |
cd9a469c | 16048 | # IRIX 6.2 and later do not support large files by default, |
16049 | # so use the C compiler's -n32 option if that helps. | |
16050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90973b19 | 16051 | /* end confdefs.h. */ |
542f9784 | 16052 | #include <sys/types.h> |
16053 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16054 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16055 | since some C++ compilers masquerading as C compilers | |
16056 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16057 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16058 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16059 | && LARGE_OFF_T % 2147483647 == 1) | |
16060 | ? 1 : -1]; | |
56c15991 | 16061 | int |
16062 | main () | |
16063 | { | |
56c15991 | 16064 | |
16065 | ; | |
16066 | return 0; | |
16067 | } | |
16068 | _ACEOF | |
cd9a469c | 16069 | if ac_fn_c_try_compile "$LINENO"; then : |
16070 | break | |
56c15991 | 16071 | fi |
cd9a469c | 16072 | rm -f core conftest.err conftest.$ac_objext |
16073 | CC="$CC -n32" | |
16074 | if ac_fn_c_try_compile "$LINENO"; then : | |
16075 | ac_cv_sys_largefile_CC=' -n32'; break | |
16076 | fi | |
16077 | rm -f core conftest.err conftest.$ac_objext | |
16078 | break | |
16079 | done | |
16080 | CC=$ac_save_CC | |
16081 | rm -f conftest.$ac_ext | |
16082 | fi | |
16083 | fi | |
16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16085 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16086 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16087 | CC=$CC$ac_cv_sys_largefile_CC | |
16088 | fi | |
56c15991 | 16089 | |
cd9a469c | 16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16091 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
f00f02a3 | 16092 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
cd9a469c | 16093 | $as_echo_n "(cached) " >&6 |
16094 | else | |
16095 | while :; do | |
16096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16097 | /* end confdefs.h. */ |
cd9a469c | 16098 | #include <sys/types.h> |
16099 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16100 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16101 | since some C++ compilers masquerading as C compilers | |
16102 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16103 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16104 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16105 | && LARGE_OFF_T % 2147483647 == 1) | |
16106 | ? 1 : -1]; | |
56c15991 | 16107 | int |
16108 | main () | |
16109 | { | |
56c15991 | 16110 | |
16111 | ; | |
16112 | return 0; | |
16113 | } | |
16114 | _ACEOF | |
cd9a469c | 16115 | if ac_fn_c_try_compile "$LINENO"; then : |
16116 | ac_cv_sys_file_offset_bits=no; break | |
16117 | fi | |
16118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16120 | /* end confdefs.h. */ |
cd9a469c | 16121 | #define _FILE_OFFSET_BITS 64 |
16122 | #include <sys/types.h> | |
16123 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16124 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16125 | since some C++ compilers masquerading as C compilers | |
16126 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16127 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16128 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16129 | && LARGE_OFF_T % 2147483647 == 1) | |
16130 | ? 1 : -1]; | |
56c15991 | 16131 | int |
16132 | main () | |
16133 | { | |
56c15991 | 16134 | |
16135 | ; | |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
cd9a469c | 16139 | if ac_fn_c_try_compile "$LINENO"; then : |
16140 | ac_cv_sys_file_offset_bits=64; break | |
56c15991 | 16141 | fi |
cd9a469c | 16142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16143 | ac_cv_sys_file_offset_bits=unknown | |
16144 | break | |
16145 | done | |
56c15991 | 16146 | fi |
cd9a469c | 16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16148 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16149 | case $ac_cv_sys_file_offset_bits in #( | |
16150 | no | unknown) ;; | |
16151 | *) | |
16152 | cat >>confdefs.h <<_ACEOF | |
16153 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
56c15991 | 16154 | _ACEOF |
cd9a469c | 16155 | ;; |
16156 | esac | |
16157 | rm -rf conftest* | |
16158 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16160 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
f00f02a3 | 16161 | if ${ac_cv_sys_large_files+:} false; then : |
cd9a469c | 16162 | $as_echo_n "(cached) " >&6 |
16163 | else | |
16164 | while :; do | |
16165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16166 | /* end confdefs.h. */ |
cd9a469c | 16167 | #include <sys/types.h> |
16168 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16169 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16170 | since some C++ compilers masquerading as C compilers | |
16171 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16172 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16173 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16174 | && LARGE_OFF_T % 2147483647 == 1) | |
16175 | ? 1 : -1]; | |
56c15991 | 16176 | int |
16177 | main () | |
16178 | { | |
56c15991 | 16179 | |
16180 | ; | |
16181 | return 0; | |
16182 | } | |
16183 | _ACEOF | |
cd9a469c | 16184 | if ac_fn_c_try_compile "$LINENO"; then : |
16185 | ac_cv_sys_large_files=no; break | |
56c15991 | 16186 | fi |
cd9a469c | 16187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16189 | /* end confdefs.h. */ |
cd9a469c | 16190 | #define _LARGE_FILES 1 |
16191 | #include <sys/types.h> | |
16192 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16193 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16194 | since some C++ compilers masquerading as C compilers | |
16195 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16196 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16197 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16198 | && LARGE_OFF_T % 2147483647 == 1) | |
16199 | ? 1 : -1]; | |
56c15991 | 16200 | int |
16201 | main () | |
16202 | { | |
16203 | ||
56c15991 | 16204 | ; |
16205 | return 0; | |
16206 | } | |
16207 | _ACEOF | |
cd9a469c | 16208 | if ac_fn_c_try_compile "$LINENO"; then : |
16209 | ac_cv_sys_large_files=1; break | |
56c15991 | 16210 | fi |
cd9a469c | 16211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16212 | ac_cv_sys_large_files=unknown | |
16213 | break | |
16214 | done | |
82eaf560 | 16215 | fi |
cd9a469c | 16216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16217 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16218 | case $ac_cv_sys_large_files in #( | |
16219 | no | unknown) ;; | |
16220 | *) | |
56c15991 | 16221 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 16222 | #define _LARGE_FILES $ac_cv_sys_large_files |
56c15991 | 16223 | _ACEOF |
cd9a469c | 16224 | ;; |
16225 | esac | |
16226 | rm -rf conftest* | |
16227 | fi | |
f00f02a3 | 16228 | |
16229 | ||
56c15991 | 16230 | fi |
16231 | ||
c75dca49 | 16232 | |
16233 | # Types | |
cd9a469c | 16234 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
f00f02a3 | 16235 | if test "x$ac_cv_type_off_t" = xyes; then : |
56c15991 | 16236 | |
cd9a469c | 16237 | else |
56c15991 | 16238 | |
cd9a469c | 16239 | cat >>confdefs.h <<_ACEOF |
16240 | #define off_t long int | |
16241 | _ACEOF | |
56c15991 | 16242 | |
c75dca49 | 16243 | fi |
16244 | ||
16245 | ||
16246 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
f00f02a3 | 16247 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
c75dca49 | 16248 | |
16249 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16250 | ||
16251 | else | |
16252 | for ac_type in 'int' 'long int' 'long long int'; do | |
16253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16254 | /* end confdefs.h. */ | |
16255 | $ac_includes_default | |
16256 | int | |
16257 | main () | |
16258 | { | |
16259 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
f00f02a3 | 16260 | test_array [0] = 0; |
16261 | return test_array [0]; | |
c75dca49 | 16262 | |
16263 | ; | |
16264 | return 0; | |
16265 | } | |
16266 | _ACEOF | |
16267 | if ac_fn_c_try_compile "$LINENO"; then : | |
16268 | ||
16269 | cat >>confdefs.h <<_ACEOF | |
16270 | #define intptr_t $ac_type | |
16271 | _ACEOF | |
16272 | ||
16273 | ac_type= | |
16274 | fi | |
16275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16276 | test -z "$ac_type" && break | |
16277 | done | |
16278 | fi | |
16279 | ||
16280 | ||
16281 | ||
16282 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
f00f02a3 | 16283 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
c75dca49 | 16284 | |
16285 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16286 | ||
16287 | else | |
16288 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16289 | 'unsigned long long int'; do | |
16290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16291 | /* end confdefs.h. */ | |
16292 | $ac_includes_default | |
16293 | int | |
16294 | main () | |
16295 | { | |
16296 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
f00f02a3 | 16297 | test_array [0] = 0; |
16298 | return test_array [0]; | |
c75dca49 | 16299 | |
16300 | ; | |
16301 | return 0; | |
16302 | } | |
16303 | _ACEOF | |
16304 | if ac_fn_c_try_compile "$LINENO"; then : | |
16305 | ||
16306 | cat >>confdefs.h <<_ACEOF | |
16307 | #define uintptr_t $ac_type | |
16308 | _ACEOF | |
16309 | ||
16310 | ac_type= | |
16311 | fi | |
16312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16313 | test -z "$ac_type" && break | |
16314 | done | |
16315 | fi | |
16316 | ||
16317 | ||
16318 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
f00f02a3 | 16319 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
c75dca49 | 16320 | |
16321 | cat >>confdefs.h <<_ACEOF | |
16322 | #define HAVE_PTRDIFF_T 1 | |
16323 | _ACEOF | |
16324 | ||
16325 | ||
56c15991 | 16326 | fi |
16327 | ||
56c15991 | 16328 | |
a1aa1d30 | 16329 | # check header files (we assume C89 is available, so don't check for that) |
771c1b50 | 16330 | |
cd9a469c | 16331 | |
771c1b50 | 16332 | |
a1aa1d30 | 16333 | for ac_header in $ac_header_list |
16334 | do : | |
16335 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16336 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16337 | " | |
f00f02a3 | 16338 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
a1aa1d30 | 16339 | cat >>confdefs.h <<_ACEOF |
16340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
771c1b50 | 16341 | _ACEOF |
16342 | ||
cd9a469c | 16343 | fi |
771c1b50 | 16344 | |
a1aa1d30 | 16345 | done |
1c383045 | 16346 | |
16347 | ||
771c1b50 | 16348 | |
cd9a469c | 16349 | |
cd9a469c | 16350 | |
771c1b50 | 16351 | |
cd9a469c | 16352 | |
cd9a469c | 16353 | |
771c1b50 | 16354 | |
771c1b50 | 16355 | |
771c1b50 | 16356 | |
16357 | ||
771c1b50 | 16358 | |
771c1b50 | 16359 | |
771c1b50 | 16360 | |
16361 | ||
771c1b50 | 16362 | |
16363 | ||
7dfba97b | 16364 | |
5e7b82bb | 16365 | |
c436f700 | 16366 | |
a54b1ce7 | 16367 | |
16368 | ||
14c3c235 | 16369 | |
4dd3972f | 16370 | |
4dd3972f | 16371 | |
4dd3972f | 16372 | |
4dd3972f | 16373 | |
4dd3972f | 16374 | |
4dd3972f | 16375 | |
553e7cef | 16376 | |
16377 | ||
b8a8c7bc | 16378 | |
16379 | ||
9680a5f4 | 16380 | |
16381 | ||
4dd3972f | 16382 | |
4dd3972f | 16383 | |
4ee9c684 | 16384 | |
2069752c | 16385 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
4ee9c684 | 16386 | |
2069752c | 16387 | acx_cv_header_stdint=stddef.h |
16388 | acx_cv_header_stdint_kind="(already complete)" | |
16389 | for i in stdint.h $inttype_headers; do | |
16390 | unset ac_cv_type_uintptr_t | |
16391 | unset ac_cv_type_uintmax_t | |
16392 | unset ac_cv_type_int_least32_t | |
16393 | unset ac_cv_type_int_fast32_t | |
16394 | unset ac_cv_type_uint64_t | |
16395 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16396 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16397 | #include <$i> | |
16398 | " | |
f00f02a3 | 16399 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
2069752c | 16400 | acx_cv_header_stdint=$i |
cd9a469c | 16401 | else |
2069752c | 16402 | continue |
cd9a469c | 16403 | fi |
4ee9c684 | 16404 | |
2069752c | 16405 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16406 | #include <$i> | |
16407 | " | |
f00f02a3 | 16408 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
90973b19 | 16409 | |
cd9a469c | 16410 | else |
2069752c | 16411 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16412 | fi |
90973b19 | 16413 | |
2069752c | 16414 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16415 | #include <$i> | |
16416 | " | |
f00f02a3 | 16417 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
2069752c | 16418 | |
4dd3972f | 16419 | else |
2069752c | 16420 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16421 | fi |
cd9a469c | 16422 | |
2069752c | 16423 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16424 | #include <$i> | |
16425 | " | |
f00f02a3 | 16426 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
4dd3972f | 16427 | |
2069752c | 16428 | else |
16429 | acx_cv_header_stdint_kind="(mostly complete)" | |
16430 | fi | |
ea6b3890 | 16431 | |
2069752c | 16432 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16433 | #include <$i> | |
16434 | " | |
f00f02a3 | 16435 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
ea6b3890 | 16436 | |
cd9a469c | 16437 | else |
2069752c | 16438 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16439 | fi | |
4dd3972f | 16440 | |
2069752c | 16441 | break |
16442 | done | |
16443 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16444 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16445 | for i in stdint.h $inttype_headers; do | |
16446 | unset ac_cv_type_uintptr_t | |
16447 | unset ac_cv_type_uint32_t | |
16448 | unset ac_cv_type_uint64_t | |
16449 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16450 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16451 | #include <$i> | |
16452 | " | |
f00f02a3 | 16453 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
2069752c | 16454 | acx_cv_header_stdint=$i |
16455 | else | |
16456 | continue | |
cd9a469c | 16457 | fi |
4dd3972f | 16458 | |
2069752c | 16459 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16460 | #include <$i> | |
16461 | " | |
f00f02a3 | 16462 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
f2c0a16d | 16463 | |
2069752c | 16464 | fi |
247981ce | 16465 | |
2069752c | 16466 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16467 | #include <$i> | |
16468 | " | |
f00f02a3 | 16469 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
247981ce | 16470 | |
2069752c | 16471 | fi |
b902b078 | 16472 | |
2069752c | 16473 | break |
16474 | done | |
16475 | fi | |
16476 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16477 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16478 | for i in sys/types.h $inttype_headers; do | |
16479 | unset ac_cv_type_u_int32_t | |
16480 | unset ac_cv_type_u_int64_t | |
16481 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16482 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16483 | #include <$i> | |
16484 | " | |
f00f02a3 | 16485 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
2069752c | 16486 | acx_cv_header_stdint=$i |
ea6b3890 | 16487 | else |
2069752c | 16488 | continue |
16489 | fi | |
d2fc5bb1 | 16490 | |
2069752c | 16491 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16492 | #include <$i> | |
16493 | " | |
f00f02a3 | 16494 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
d2fc5bb1 | 16495 | |
2069752c | 16496 | fi |
d2fc5bb1 | 16497 | |
2069752c | 16498 | break |
16499 | done | |
d2fc5bb1 | 16500 | fi |
2069752c | 16501 | if test "$acx_cv_header_stdint" = stddef.h; then |
16502 | acx_cv_header_stdint_kind="(using manual detection)" | |
cd9a469c | 16503 | fi |
d2fc5bb1 | 16504 | |
2069752c | 16505 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16506 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16507 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16508 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16509 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
d2fc5bb1 | 16510 | |
2069752c | 16511 | # ----------------- Summarize what we found so far |
cd9a469c | 16512 | |
2069752c | 16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16514 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
d2fc5bb1 | 16515 | |
2069752c | 16516 | case `$as_basename -- gstdint.h || |
16517 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16518 | Xgstdint.h : 'X\(//\)$' \| \ | |
16519 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16520 | $as_echo X/gstdint.h | | |
16521 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16522 | s//\1/ | |
16523 | q | |
16524 | } | |
16525 | /^X\/\(\/\/\)$/{ | |
16526 | s//\1/ | |
16527 | q | |
16528 | } | |
16529 | /^X\/\(\/\).*/{ | |
16530 | s//\1/ | |
16531 | q | |
16532 | } | |
16533 | s/.*/./; q'` in | |
16534 | stdint.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 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16537 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16538 | *) ;; | |
16539 | esac | |
d2fc5bb1 | 16540 | |
2069752c | 16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16542 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
e93cd318 | 16543 | |
2069752c | 16544 | # ----------------- done included file, check C basic types -------- |
99798ba4 | 16545 | |
2069752c | 16546 | # Lacking an uintptr_t? Test size of void * |
16547 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16548 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16549 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16550 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16551 | # This bug is HP SR number 8606223364. | |
16552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16553 | $as_echo_n "checking size of void *... " >&6; } | |
f00f02a3 | 16554 | if ${ac_cv_sizeof_void_p+:} false; then : |
2069752c | 16555 | $as_echo_n "(cached) " >&6 |
16556 | else | |
16557 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
99798ba4 | 16558 | |
2069752c | 16559 | else |
16560 | if test "$ac_cv_type_void_p" = yes; then | |
16561 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16562 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16563 | as_fn_error 77 "cannot compute sizeof (void *) |
16564 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16565 | else |
16566 | ac_cv_sizeof_void_p=0 | |
16567 | fi | |
16568 | fi | |
ea6b3890 | 16569 | |
2069752c | 16570 | fi |
16571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16572 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
ea6b3890 | 16573 | |
99798ba4 | 16574 | |
16575 | ||
ea6b3890 | 16576 | cat >>confdefs.h <<_ACEOF |
2069752c | 16577 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
ea6b3890 | 16578 | _ACEOF |
ea6b3890 | 16579 | |
2069752c | 16580 | ;; |
16581 | esac | |
ea6b3890 | 16582 | |
2069752c | 16583 | # Lacking an uint64_t? Test size of long |
16584 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16585 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16586 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16587 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16588 | # This bug is HP SR number 8606223364. | |
16589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16590 | $as_echo_n "checking size of long... " >&6; } | |
f00f02a3 | 16591 | if ${ac_cv_sizeof_long+:} false; then : |
cd9a469c | 16592 | $as_echo_n "(cached) " >&6 |
16593 | else | |
2069752c | 16594 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
ea6b3890 | 16595 | |
c634bedf | 16596 | else |
2069752c | 16597 | if test "$ac_cv_type_long" = yes; then |
16598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16600 | as_fn_error 77 "cannot compute sizeof (long) |
16601 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16602 | else |
16603 | ac_cv_sizeof_long=0 | |
16604 | fi | |
cd9a469c | 16605 | fi |
c634bedf | 16606 | |
2069752c | 16607 | fi |
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16609 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
ea6b3890 | 16610 | |
c634bedf | 16611 | |
ea6b3890 | 16612 | |
16613 | cat >>confdefs.h <<_ACEOF | |
2069752c | 16614 | #define SIZEOF_LONG $ac_cv_sizeof_long |
ea6b3890 | 16615 | _ACEOF |
c634bedf | 16616 | |
2069752c | 16617 | ;; |
16618 | esac | |
74b918e9 | 16619 | |
2069752c | 16620 | if test $acx_cv_header_stdint = stddef.h; then |
16621 | # Lacking a good header? Test size of everything and deduce all types. | |
16622 | # The cast to long int works around a bug in the HP C Compiler | |
16623 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16624 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16625 | # This bug is HP SR number 8606223364. | |
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16627 | $as_echo_n "checking size of int... " >&6; } | |
f00f02a3 | 16628 | if ${ac_cv_sizeof_int+:} false; then : |
2069752c | 16629 | $as_echo_n "(cached) " >&6 |
16630 | else | |
16631 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
c0e8efbe | 16632 | |
2069752c | 16633 | else |
16634 | if test "$ac_cv_type_int" = yes; then | |
16635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16637 | as_fn_error 77 "cannot compute sizeof (int) |
16638 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16639 | else |
16640 | ac_cv_sizeof_int=0 | |
16641 | fi | |
16642 | fi | |
5a037dbd | 16643 | |
2069752c | 16644 | fi |
16645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16646 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e0582811 | 16647 | |
16648 | ||
99798ba4 | 16649 | |
ea6b3890 | 16650 | cat >>confdefs.h <<_ACEOF |
2069752c | 16651 | #define SIZEOF_INT $ac_cv_sizeof_int |
ea6b3890 | 16652 | _ACEOF |
16653 | ||
ea6b3890 | 16654 | |
2069752c | 16655 | # The cast to long int works around a bug in the HP C Compiler |
16656 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16657 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16658 | # This bug is HP SR number 8606223364. | |
16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16660 | $as_echo_n "checking size of short... " >&6; } | |
f00f02a3 | 16661 | if ${ac_cv_sizeof_short+:} false; then : |
2069752c | 16662 | $as_echo_n "(cached) " >&6 |
16663 | else | |
16664 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
ea6b3890 | 16665 | |
2069752c | 16666 | else |
16667 | if test "$ac_cv_type_short" = yes; then | |
16668 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16670 | as_fn_error 77 "cannot compute sizeof (short) |
16671 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16672 | else |
16673 | ac_cv_sizeof_short=0 | |
16674 | fi | |
16675 | fi | |
ea6b3890 | 16676 | |
2069752c | 16677 | fi |
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16679 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ea6b3890 | 16680 | |
16681 | ||
16682 | ||
2069752c | 16683 | cat >>confdefs.h <<_ACEOF |
16684 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16685 | _ACEOF | |
ea6b3890 | 16686 | |
16687 | ||
2069752c | 16688 | # The cast to long int works around a bug in the HP C Compiler |
16689 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16690 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16691 | # This bug is HP SR number 8606223364. | |
16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16693 | $as_echo_n "checking size of char... " >&6; } | |
f00f02a3 | 16694 | if ${ac_cv_sizeof_char+:} false; then : |
2069752c | 16695 | $as_echo_n "(cached) " >&6 |
16696 | else | |
16697 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
ea6b3890 | 16698 | |
2069752c | 16699 | else |
16700 | if test "$ac_cv_type_char" = yes; then | |
16701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16703 | as_fn_error 77 "cannot compute sizeof (char) |
16704 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16705 | else |
16706 | ac_cv_sizeof_char=0 | |
16707 | fi | |
16708 | fi | |
ea6b3890 | 16709 | |
2069752c | 16710 | fi |
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16712 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
ea6b3890 | 16713 | |
16714 | ||
ea6b3890 | 16715 | |
cd9a469c | 16716 | cat >>confdefs.h <<_ACEOF |
2069752c | 16717 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
99798ba4 | 16718 | _ACEOF |
99798ba4 | 16719 | |
99798ba4 | 16720 | |
eaae6999 | 16721 | |
2069752c | 16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16723 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16724 | case "$ac_cv_sizeof_char" in | |
16725 | 1) acx_cv_type_int8_t=char ;; | |
f00f02a3 | 16726 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16727 | esac |
16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16729 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16730 | ||
16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16732 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16733 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16734 | 2:*) acx_cv_type_int16_t=int ;; | |
16735 | *:2) acx_cv_type_int16_t=short ;; | |
f00f02a3 | 16736 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16737 | esac |
16738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16739 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16740 | ||
16741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16742 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16743 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16744 | 4:*) acx_cv_type_int32_t=int ;; | |
16745 | *:4) acx_cv_type_int32_t=long ;; | |
f00f02a3 | 16746 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16747 | esac |
16748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16749 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
cd9a469c | 16750 | fi |
16751 | ||
2069752c | 16752 | # These tests are here to make the output prettier |
ea6b3890 | 16753 | |
2069752c | 16754 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16755 | case "$ac_cv_sizeof_long" in | |
16756 | 8) acx_cv_type_int64_t=long ;; | |
16757 | esac | |
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16759 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16761 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16762 | fi | |
16763 | ||
16764 | # Now we can use the above types | |
16765 | ||
16766 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16768 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16769 | case $ac_cv_sizeof_void_p in | |
16770 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16771 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16772 | 8) acx_cv_type_intptr_t=int64_t ;; | |
f00f02a3 | 16773 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
2069752c | 16774 | esac |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16776 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16777 | fi | |
ea6b3890 | 16778 | |
2069752c | 16779 | # ----------------- done all checks, emit header ------------- |
cd9a469c | 16780 | ac_config_commands="$ac_config_commands gstdint.h" |
eaae6999 | 16781 | |
eaae6999 | 16782 | |
cd9a469c | 16783 | |
16784 | ||
16785 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
f00f02a3 | 16786 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
cd9a469c | 16787 | |
16788 | cat >>confdefs.h <<_ACEOF | |
16789 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
eaae6999 | 16790 | _ACEOF |
eaae6999 | 16791 | |
cd9a469c | 16792 | |
eaae6999 | 16793 | fi |
cd9a469c | 16794 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
f00f02a3 | 16795 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
cd9a469c | 16796 | |
16797 | cat >>confdefs.h <<_ACEOF | |
16798 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
eaae6999 | 16799 | _ACEOF |
16800 | ||
cd9a469c | 16801 | |
eaae6999 | 16802 | fi |
cd9a469c | 16803 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
f00f02a3 | 16804 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
eaae6999 | 16805 | |
cd9a469c | 16806 | cat >>confdefs.h <<_ACEOF |
16807 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16808 | _ACEOF | |
99798ba4 | 16809 | |
16810 | ||
b52ee437 | 16811 | fi |
cd9a469c | 16812 | |
16813 | ||
0d9d2088 | 16814 | case "${host}--x${with_newlib}" in |
16815 | mips*--xyes) | |
16816 | hardwire_newlib=1;; | |
8c596dcc | 16817 | nvptx*--xyes) |
16818 | hardwire_newlib=1;; | |
0d9d2088 | 16819 | esac |
16820 | ||
cd9a469c | 16821 | # Check for library functions. |
0d9d2088 | 16822 | if test "${hardwire_newlib:-0}" -eq 1; then |
e4812daa | 16823 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16824 | # may not work correctly, because the compiler may not be able to | |
16825 | # link executables. | |
16826 | ||
16827 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16828 | ||
16829 | ||
16830 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16831 | ||
16832 | ||
e4812daa | 16833 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16834 | ||
16835 | ||
e4812daa | 16836 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
16837 | ||
16838 | ||
16839 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
16840 | ||
16841 | ||
16842 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
16843 | ||
cec5cd66 | 16844 | |
4531a456 | 16845 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
16846 | ||
16847 | ||
16848 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
16849 | ||
16850 | ||
cec5cd66 | 16851 | # At some point, we should differentiate between architectures |
16852 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
16853 | # which don't. For the time being, punt. | |
16854 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
16855 | ||
16856 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
16857 | ||
16858 | fi | |
e4812daa | 16859 | else |
4dd3972f | 16860 | |
4dd3972f | 16861 | |
a1aa1d30 | 16862 | |
16863 | for ac_func in $ac_func_list | |
cd9a469c | 16864 | do : |
16865 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16866 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
f00f02a3 | 16867 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
cd9a469c | 16868 | cat >>confdefs.h <<_ACEOF |
16869 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16870 | _ACEOF | |
4dd3972f | 16871 | |
cd9a469c | 16872 | fi |
16873 | done | |
4dd3972f | 16874 | |
4dd3972f | 16875 | |
cd9a469c | 16876 | |
90973b19 | 16877 | |
cd9a469c | 16878 | |
cd9a469c | 16879 | |
cd9a469c | 16880 | |
4ee9c684 | 16881 | |
4ee9c684 | 16882 | |
a2c0dc0f | 16883 | |
a2c0dc0f | 16884 | |
4ee9c684 | 16885 | |
adad6c74 | 16886 | |
adad6c74 | 16887 | |
adad6c74 | 16888 | |
adad6c74 | 16889 | |
adad6c74 | 16890 | |
adad6c74 | 16891 | |
adad6c74 | 16892 | |
adad6c74 | 16893 | |
99798ba4 | 16894 | |
99798ba4 | 16895 | |
99798ba4 | 16896 | |
99798ba4 | 16897 | |
adad6c74 | 16898 | |
adad6c74 | 16899 | |
adad6c74 | 16900 | |
adad6c74 | 16901 | |
c0e8efbe | 16902 | |
c0e8efbe | 16903 | |
c0e8efbe | 16904 | |
a1aa1d30 | 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 | ||
16959 | ||
16960 | ||
a291e3b6 | 16961 | |
5935a97b | 16962 | |
b8a8c7bc | 16963 | |
16964 | ||
fc3d374a | 16965 | |
16966 | ||
7520a494 | 16967 | |
16968 | ||
7f0d992b | 16969 | |
16970 | ||
75535607 | 16971 | |
16972 | ||
9680a5f4 | 16973 | |
16974 | ||
69024fb7 | 16975 | |
16976 | ||
16977 | ||
16978 | ||
e38e222d | 16979 | |
16980 | ||
5935a97b | 16981 | |
ffb6d1fd | 16982 | |
16983 | ||
e4812daa | 16984 | fi |
a1aa1d30 | 16985 | |
a8d8f723 | 16986 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
16987 | ||
16988 | ac_save_CFLAGS="$CFLAGS" | |
16989 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
16990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16991 | /* end confdefs.h. */ | |
16992 | #define _GNU_SOURCE 1 | |
16993 | #include <string.h> | |
16994 | #include <locale.h> | |
16995 | int | |
16996 | main () | |
16997 | { | |
16998 | char s[128]; strerror_r(5, s, 128); | |
16999 | ; | |
17000 | return 0; | |
17001 | } | |
17002 | _ACEOF | |
17003 | if ac_fn_c_try_compile "$LINENO"; then : | |
17004 | ||
17005 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17006 | ||
17007 | fi | |
17008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17009 | CFLAGS="$ac_save_CFLAGS" | |
17010 | ||
17011 | ac_save_CFLAGS="$CFLAGS" | |
17012 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17014 | /* end confdefs.h. */ | |
17015 | #define _GNU_SOURCE 1 | |
17016 | #include <string.h> | |
17017 | #include <locale.h> | |
17018 | int | |
17019 | main () | |
17020 | { | |
17021 | char s[128]; strerror_r(5, s); | |
17022 | ; | |
17023 | return 0; | |
17024 | } | |
17025 | _ACEOF | |
17026 | if ac_fn_c_try_compile "$LINENO"; then : | |
17027 | ||
17028 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17029 | ||
17030 | fi | |
17031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17032 | CFLAGS="$ac_save_CFLAGS" | |
c0e8efbe | 17033 | |
adad6c74 | 17034 | |
8f838781 | 17035 | # Check for C99 (and other IEEE) math functions |
7d9455ce | 17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17037 | $as_echo_n "checking for sin in -lm... " >&6; } | |
f00f02a3 | 17038 | if ${ac_cv_lib_m_sin+:} false; then : |
cd9a469c | 17039 | $as_echo_n "(cached) " >&6 |
8f838781 | 17040 | else |
17041 | ac_check_lib_save_LIBS=$LIBS | |
17042 | LIBS="-lm $LIBS" | |
b52ee437 | 17043 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17044 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17045 | fi |
cd9a469c | 17046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17047 | /* end confdefs.h. */ |
17048 | ||
cd9a469c | 17049 | /* Override any GCC internal prototype to avoid an error. |
17050 | Use char because int might match the return type of a GCC | |
17051 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17052 | #ifdef __cplusplus |
17053 | extern "C" | |
17054 | #endif | |
7d9455ce | 17055 | char sin (); |
8f838781 | 17056 | int |
17057 | main () | |
17058 | { | |
7d9455ce | 17059 | return sin (); |
8f838781 | 17060 | ; |
17061 | return 0; | |
17062 | } | |
17063 | _ACEOF | |
cd9a469c | 17064 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17065 | ac_cv_lib_m_sin=yes |
8f838781 | 17066 | else |
7d9455ce | 17067 | ac_cv_lib_m_sin=no |
8f838781 | 17068 | fi |
cd9a469c | 17069 | rm -f core conftest.err conftest.$ac_objext \ |
17070 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17071 | LIBS=$ac_check_lib_save_LIBS |
17072 | fi | |
7d9455ce | 17073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17074 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
f00f02a3 | 17075 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
7d9455ce | 17076 | cat >>confdefs.h <<_ACEOF |
17077 | #define HAVE_LIBM 1 | |
17078 | _ACEOF | |
8f838781 | 17079 | |
7d9455ce | 17080 | LIBS="-lm $LIBS" |
8f838781 | 17081 | |
17082 | fi | |
17083 | ||
7d9455ce | 17084 | |
17085 | ||
17086 | ||
17087 | ||
17088 | ||
17089 | ||
17090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17091 | $as_echo_n "checking for acosf... " >&6; } | |
f00f02a3 | 17092 | if ${gcc_cv_math_func_acosf+:} false; then : |
cd9a469c | 17093 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17094 | else |
7d9455ce | 17095 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17097 | fi |
cd9a469c | 17098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17099 | /* end confdefs.h. */ |
17100 | ||
7d9455ce | 17101 | #ifdef HAVE_COMPLEX_H |
17102 | #include <complex.h> | |
17103 | #endif | |
17104 | #ifdef HAVE_MATH_H | |
17105 | #include <math.h> | |
b52ee437 | 17106 | #endif |
7d9455ce | 17107 | |
17108 | int (*ptr)() = (int (*)())acosf; | |
17109 | ||
b52ee437 | 17110 | int |
17111 | main () | |
17112 | { | |
b52ee437 | 17113 | return 0; |
17114 | } | |
7d9455ce | 17115 | |
b52ee437 | 17116 | _ACEOF |
cd9a469c | 17117 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17118 | gcc_cv_math_func_acosf=yes |
b52ee437 | 17119 | else |
7d9455ce | 17120 | gcc_cv_math_func_acosf=no |
b52ee437 | 17121 | fi |
cd9a469c | 17122 | rm -f core conftest.err conftest.$ac_objext \ |
17123 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17124 | fi |
7d9455ce | 17125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17126 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17127 | if test $gcc_cv_math_func_acosf = yes; then | |
bd647a17 | 17128 | |
6affa8e1 | 17129 | cat >>confdefs.h <<_ACEOF |
17130 | #define HAVE_ACOSF 1 | |
17131 | _ACEOF | |
7d9455ce | 17132 | |
17133 | fi | |
b52ee437 | 17134 | |
b52ee437 | 17135 | |
b52ee437 | 17136 | |
7d9455ce | 17137 | |
17138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17139 | $as_echo_n "checking for acos... " >&6; } | |
f00f02a3 | 17140 | if ${gcc_cv_math_func_acos+:} false; then : |
cd9a469c | 17141 | $as_echo_n "(cached) " >&6 |
8f838781 | 17142 | else |
7d9455ce | 17143 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17144 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17145 | fi |
cd9a469c | 17146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17147 | /* end confdefs.h. */ |
17148 | ||
7d9455ce | 17149 | #ifdef HAVE_COMPLEX_H |
17150 | #include <complex.h> | |
8f838781 | 17151 | #endif |
7d9455ce | 17152 | #ifdef HAVE_MATH_H |
17153 | #include <math.h> | |
17154 | #endif | |
17155 | ||
17156 | int (*ptr)() = (int (*)())acos; | |
17157 | ||
8f838781 | 17158 | int |
17159 | main () | |
17160 | { | |
8f838781 | 17161 | return 0; |
17162 | } | |
7d9455ce | 17163 | |
8f838781 | 17164 | _ACEOF |
cd9a469c | 17165 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17166 | gcc_cv_math_func_acos=yes |
8f838781 | 17167 | else |
7d9455ce | 17168 | gcc_cv_math_func_acos=no |
8f838781 | 17169 | fi |
cd9a469c | 17170 | rm -f core conftest.err conftest.$ac_objext \ |
17171 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17172 | fi |
7d9455ce | 17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17174 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17175 | if test $gcc_cv_math_func_acos = yes; then | |
bd647a17 | 17176 | |
6affa8e1 | 17177 | cat >>confdefs.h <<_ACEOF |
17178 | #define HAVE_ACOS 1 | |
17179 | _ACEOF | |
7d9455ce | 17180 | |
17181 | fi | |
17182 | ||
8f838781 | 17183 | |
8f838781 | 17184 | |
8f838781 | 17185 | |
7d9455ce | 17186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17187 | $as_echo_n "checking for acosl... " >&6; } | |
f00f02a3 | 17188 | if ${gcc_cv_math_func_acosl+:} false; then : |
cd9a469c | 17189 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17190 | else |
7d9455ce | 17191 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17192 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17193 | fi |
cd9a469c | 17194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17195 | /* end confdefs.h. */ |
17196 | ||
7d9455ce | 17197 | #ifdef HAVE_COMPLEX_H |
17198 | #include <complex.h> | |
17199 | #endif | |
17200 | #ifdef HAVE_MATH_H | |
17201 | #include <math.h> | |
b52ee437 | 17202 | #endif |
7d9455ce | 17203 | |
17204 | int (*ptr)() = (int (*)())acosl; | |
17205 | ||
b52ee437 | 17206 | int |
17207 | main () | |
17208 | { | |
b52ee437 | 17209 | return 0; |
17210 | } | |
7d9455ce | 17211 | |
b52ee437 | 17212 | _ACEOF |
cd9a469c | 17213 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17214 | gcc_cv_math_func_acosl=yes |
b52ee437 | 17215 | else |
7d9455ce | 17216 | gcc_cv_math_func_acosl=no |
b52ee437 | 17217 | fi |
cd9a469c | 17218 | rm -f core conftest.err conftest.$ac_objext \ |
17219 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17220 | fi |
7d9455ce | 17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17222 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17223 | if test $gcc_cv_math_func_acosl = yes; then | |
bd647a17 | 17224 | |
6affa8e1 | 17225 | cat >>confdefs.h <<_ACEOF |
17226 | #define HAVE_ACOSL 1 | |
17227 | _ACEOF | |
7d9455ce | 17228 | |
17229 | fi | |
b52ee437 | 17230 | |
b52ee437 | 17231 | |
b52ee437 | 17232 | |
7d9455ce | 17233 | |
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17235 | $as_echo_n "checking for acoshf... " >&6; } | |
f00f02a3 | 17236 | if ${gcc_cv_math_func_acoshf+:} false; then : |
cd9a469c | 17237 | $as_echo_n "(cached) " >&6 |
8f838781 | 17238 | else |
7d9455ce | 17239 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17240 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17241 | fi |
cd9a469c | 17242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17243 | /* end confdefs.h. */ |
17244 | ||
7d9455ce | 17245 | #ifdef HAVE_COMPLEX_H |
17246 | #include <complex.h> | |
8f838781 | 17247 | #endif |
7d9455ce | 17248 | #ifdef HAVE_MATH_H |
17249 | #include <math.h> | |
17250 | #endif | |
17251 | ||
17252 | int (*ptr)() = (int (*)())acoshf; | |
17253 | ||
8f838781 | 17254 | int |
17255 | main () | |
17256 | { | |
8f838781 | 17257 | return 0; |
17258 | } | |
7d9455ce | 17259 | |
8f838781 | 17260 | _ACEOF |
cd9a469c | 17261 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17262 | gcc_cv_math_func_acoshf=yes |
8f838781 | 17263 | else |
7d9455ce | 17264 | gcc_cv_math_func_acoshf=no |
8f838781 | 17265 | fi |
cd9a469c | 17266 | rm -f core conftest.err conftest.$ac_objext \ |
17267 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17268 | fi |
7d9455ce | 17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17270 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17271 | if test $gcc_cv_math_func_acoshf = yes; then | |
bd647a17 | 17272 | |
6affa8e1 | 17273 | cat >>confdefs.h <<_ACEOF |
17274 | #define HAVE_ACOSHF 1 | |
17275 | _ACEOF | |
8f838781 | 17276 | |
7d9455ce | 17277 | fi |
8f838781 | 17278 | |
8f838781 | 17279 | |
7d9455ce | 17280 | |
17281 | ||
17282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17283 | $as_echo_n "checking for acosh... " >&6; } | |
f00f02a3 | 17284 | if ${gcc_cv_math_func_acosh+:} false; then : |
cd9a469c | 17285 | $as_echo_n "(cached) " >&6 |
8f838781 | 17286 | else |
7d9455ce | 17287 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17288 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17289 | fi |
cd9a469c | 17290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17291 | /* end confdefs.h. */ |
17292 | ||
7d9455ce | 17293 | #ifdef HAVE_COMPLEX_H |
17294 | #include <complex.h> | |
17295 | #endif | |
17296 | #ifdef HAVE_MATH_H | |
17297 | #include <math.h> | |
8f838781 | 17298 | #endif |
7d9455ce | 17299 | |
17300 | int (*ptr)() = (int (*)())acosh; | |
17301 | ||
8f838781 | 17302 | int |
17303 | main () | |
17304 | { | |
cd9a469c | 17305 | return 0; |
17306 | } | |
7d9455ce | 17307 | |
cd9a469c | 17308 | _ACEOF |
17309 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 17310 | gcc_cv_math_func_acosh=yes |
8f838781 | 17311 | else |
7d9455ce | 17312 | gcc_cv_math_func_acosh=no |
8f838781 | 17313 | fi |
cd9a469c | 17314 | rm -f core conftest.err conftest.$ac_objext \ |
17315 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17316 | fi |
7d9455ce | 17317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17318 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17319 | if test $gcc_cv_math_func_acosh = yes; then | |
bd647a17 | 17320 | |
6affa8e1 | 17321 | cat >>confdefs.h <<_ACEOF |
17322 | #define HAVE_ACOSH 1 | |
17323 | _ACEOF | |
7d9455ce | 17324 | |
17325 | fi | |
8f838781 | 17326 | |
8f838781 | 17327 | |
8f838781 | 17328 | |
7d9455ce | 17329 | |
17330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17331 | $as_echo_n "checking for acoshl... " >&6; } | |
f00f02a3 | 17332 | if ${gcc_cv_math_func_acoshl+:} false; then : |
cd9a469c | 17333 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17334 | else |
7d9455ce | 17335 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17336 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17337 | fi |
cd9a469c | 17338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17339 | /* end confdefs.h. */ |
17340 | ||
7d9455ce | 17341 | #ifdef HAVE_COMPLEX_H |
17342 | #include <complex.h> | |
b52ee437 | 17343 | #endif |
7d9455ce | 17344 | #ifdef HAVE_MATH_H |
17345 | #include <math.h> | |
17346 | #endif | |
17347 | ||
17348 | int (*ptr)() = (int (*)())acoshl; | |
17349 | ||
b52ee437 | 17350 | int |
17351 | main () | |
17352 | { | |
b52ee437 | 17353 | return 0; |
17354 | } | |
7d9455ce | 17355 | |
b52ee437 | 17356 | _ACEOF |
cd9a469c | 17357 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17358 | gcc_cv_math_func_acoshl=yes |
b52ee437 | 17359 | else |
7d9455ce | 17360 | gcc_cv_math_func_acoshl=no |
b52ee437 | 17361 | fi |
cd9a469c | 17362 | rm -f core conftest.err conftest.$ac_objext \ |
17363 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17364 | fi |
7d9455ce | 17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17366 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17367 | if test $gcc_cv_math_func_acoshl = yes; then | |
bd647a17 | 17368 | |
6affa8e1 | 17369 | cat >>confdefs.h <<_ACEOF |
17370 | #define HAVE_ACOSHL 1 | |
17371 | _ACEOF | |
7d9455ce | 17372 | |
17373 | fi | |
17374 | ||
b52ee437 | 17375 | |
b52ee437 | 17376 | |
b52ee437 | 17377 | |
7d9455ce | 17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17379 | $as_echo_n "checking for asinf... " >&6; } | |
f00f02a3 | 17380 | if ${gcc_cv_math_func_asinf+:} false; then : |
cd9a469c | 17381 | $as_echo_n "(cached) " >&6 |
8f838781 | 17382 | else |
7d9455ce | 17383 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17384 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17385 | fi |
cd9a469c | 17386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17387 | /* end confdefs.h. */ |
17388 | ||
7d9455ce | 17389 | #ifdef HAVE_COMPLEX_H |
17390 | #include <complex.h> | |
17391 | #endif | |
17392 | #ifdef HAVE_MATH_H | |
17393 | #include <math.h> | |
8f838781 | 17394 | #endif |
7d9455ce | 17395 | |
17396 | int (*ptr)() = (int (*)())asinf; | |
17397 | ||
8f838781 | 17398 | int |
17399 | main () | |
17400 | { | |
8f838781 | 17401 | return 0; |
17402 | } | |
7d9455ce | 17403 | |
8f838781 | 17404 | _ACEOF |
cd9a469c | 17405 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17406 | gcc_cv_math_func_asinf=yes |
8f838781 | 17407 | else |
7d9455ce | 17408 | gcc_cv_math_func_asinf=no |
8f838781 | 17409 | fi |
cd9a469c | 17410 | rm -f core conftest.err conftest.$ac_objext \ |
17411 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17412 | fi |
7d9455ce | 17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17414 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17415 | if test $gcc_cv_math_func_asinf = yes; then | |
bd647a17 | 17416 | |
6affa8e1 | 17417 | cat >>confdefs.h <<_ACEOF |
17418 | #define HAVE_ASINF 1 | |
17419 | _ACEOF | |
7d9455ce | 17420 | |
17421 | fi | |
8f838781 | 17422 | |
8f838781 | 17423 | |
8f838781 | 17424 | |
7d9455ce | 17425 | |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17427 | $as_echo_n "checking for asin... " >&6; } | |
f00f02a3 | 17428 | if ${gcc_cv_math_func_asin+:} false; then : |
cd9a469c | 17429 | $as_echo_n "(cached) " >&6 |
8f838781 | 17430 | else |
7d9455ce | 17431 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17432 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17433 | fi |
cd9a469c | 17434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17435 | /* end confdefs.h. */ |
17436 | ||
7d9455ce | 17437 | #ifdef HAVE_COMPLEX_H |
17438 | #include <complex.h> | |
8f838781 | 17439 | #endif |
7d9455ce | 17440 | #ifdef HAVE_MATH_H |
17441 | #include <math.h> | |
17442 | #endif | |
17443 | ||
17444 | int (*ptr)() = (int (*)())asin; | |
17445 | ||
8f838781 | 17446 | int |
17447 | main () | |
17448 | { | |
8f838781 | 17449 | return 0; |
17450 | } | |
7d9455ce | 17451 | |
8f838781 | 17452 | _ACEOF |
cd9a469c | 17453 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17454 | gcc_cv_math_func_asin=yes |
8f838781 | 17455 | else |
7d9455ce | 17456 | gcc_cv_math_func_asin=no |
8f838781 | 17457 | fi |
cd9a469c | 17458 | rm -f core conftest.err conftest.$ac_objext \ |
17459 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17460 | fi |
7d9455ce | 17461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17462 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17463 | if test $gcc_cv_math_func_asin = yes; then | |
bd647a17 | 17464 | |
6affa8e1 | 17465 | cat >>confdefs.h <<_ACEOF |
17466 | #define HAVE_ASIN 1 | |
17467 | _ACEOF | |
8f838781 | 17468 | |
7d9455ce | 17469 | fi |
8f838781 | 17470 | |
8f838781 | 17471 | |
7d9455ce | 17472 | |
17473 | ||
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17475 | $as_echo_n "checking for asinl... " >&6; } | |
f00f02a3 | 17476 | if ${gcc_cv_math_func_asinl+:} false; then : |
cd9a469c | 17477 | $as_echo_n "(cached) " >&6 |
8f838781 | 17478 | else |
7d9455ce | 17479 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17480 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17481 | fi |
cd9a469c | 17482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17483 | /* end confdefs.h. */ |
17484 | ||
7d9455ce | 17485 | #ifdef HAVE_COMPLEX_H |
17486 | #include <complex.h> | |
17487 | #endif | |
17488 | #ifdef HAVE_MATH_H | |
17489 | #include <math.h> | |
8f838781 | 17490 | #endif |
7d9455ce | 17491 | |
17492 | int (*ptr)() = (int (*)())asinl; | |
17493 | ||
8f838781 | 17494 | int |
17495 | main () | |
17496 | { | |
8f838781 | 17497 | return 0; |
17498 | } | |
7d9455ce | 17499 | |
8f838781 | 17500 | _ACEOF |
cd9a469c | 17501 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17502 | gcc_cv_math_func_asinl=yes |
8f838781 | 17503 | else |
7d9455ce | 17504 | gcc_cv_math_func_asinl=no |
8f838781 | 17505 | fi |
cd9a469c | 17506 | rm -f core conftest.err conftest.$ac_objext \ |
17507 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17508 | fi |
7d9455ce | 17509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17510 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17511 | if test $gcc_cv_math_func_asinl = yes; then | |
bd647a17 | 17512 | |
6affa8e1 | 17513 | cat >>confdefs.h <<_ACEOF |
17514 | #define HAVE_ASINL 1 | |
17515 | _ACEOF | |
7d9455ce | 17516 | |
17517 | fi | |
8f838781 | 17518 | |
8f838781 | 17519 | |
8f838781 | 17520 | |
7d9455ce | 17521 | |
17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17523 | $as_echo_n "checking for asinhf... " >&6; } | |
f00f02a3 | 17524 | if ${gcc_cv_math_func_asinhf+:} false; then : |
cd9a469c | 17525 | $as_echo_n "(cached) " >&6 |
8f838781 | 17526 | else |
7d9455ce | 17527 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17528 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17529 | fi |
cd9a469c | 17530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17531 | /* end confdefs.h. */ |
17532 | ||
7d9455ce | 17533 | #ifdef HAVE_COMPLEX_H |
17534 | #include <complex.h> | |
8f838781 | 17535 | #endif |
7d9455ce | 17536 | #ifdef HAVE_MATH_H |
17537 | #include <math.h> | |
17538 | #endif | |
17539 | ||
17540 | int (*ptr)() = (int (*)())asinhf; | |
17541 | ||
8f838781 | 17542 | int |
17543 | main () | |
17544 | { | |
8f838781 | 17545 | return 0; |
17546 | } | |
7d9455ce | 17547 | |
8f838781 | 17548 | _ACEOF |
cd9a469c | 17549 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17550 | gcc_cv_math_func_asinhf=yes |
8f838781 | 17551 | else |
7d9455ce | 17552 | gcc_cv_math_func_asinhf=no |
8f838781 | 17553 | fi |
cd9a469c | 17554 | rm -f core conftest.err conftest.$ac_objext \ |
17555 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17556 | fi |
7d9455ce | 17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17558 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17559 | if test $gcc_cv_math_func_asinhf = yes; then | |
bd647a17 | 17560 | |
6affa8e1 | 17561 | cat >>confdefs.h <<_ACEOF |
17562 | #define HAVE_ASINHF 1 | |
17563 | _ACEOF | |
7d9455ce | 17564 | |
17565 | fi | |
17566 | ||
8f838781 | 17567 | |
8f838781 | 17568 | |
8f838781 | 17569 | |
7d9455ce | 17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17571 | $as_echo_n "checking for asinh... " >&6; } | |
f00f02a3 | 17572 | if ${gcc_cv_math_func_asinh+:} false; then : |
cd9a469c | 17573 | $as_echo_n "(cached) " >&6 |
8f838781 | 17574 | else |
7d9455ce | 17575 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17576 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17577 | fi |
cd9a469c | 17578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17579 | /* end confdefs.h. */ |
17580 | ||
7d9455ce | 17581 | #ifdef HAVE_COMPLEX_H |
17582 | #include <complex.h> | |
17583 | #endif | |
17584 | #ifdef HAVE_MATH_H | |
17585 | #include <math.h> | |
8f838781 | 17586 | #endif |
7d9455ce | 17587 | |
17588 | int (*ptr)() = (int (*)())asinh; | |
17589 | ||
8f838781 | 17590 | int |
17591 | main () | |
17592 | { | |
8f838781 | 17593 | return 0; |
17594 | } | |
7d9455ce | 17595 | |
8f838781 | 17596 | _ACEOF |
cd9a469c | 17597 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17598 | gcc_cv_math_func_asinh=yes |
8f838781 | 17599 | else |
7d9455ce | 17600 | gcc_cv_math_func_asinh=no |
8f838781 | 17601 | fi |
cd9a469c | 17602 | rm -f core conftest.err conftest.$ac_objext \ |
17603 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17604 | fi |
7d9455ce | 17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17606 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17607 | if test $gcc_cv_math_func_asinh = yes; then | |
bd647a17 | 17608 | |
6affa8e1 | 17609 | cat >>confdefs.h <<_ACEOF |
17610 | #define HAVE_ASINH 1 | |
17611 | _ACEOF | |
7d9455ce | 17612 | |
17613 | fi | |
8f838781 | 17614 | |
8f838781 | 17615 | |
8f838781 | 17616 | |
7d9455ce | 17617 | |
17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17619 | $as_echo_n "checking for asinhl... " >&6; } | |
f00f02a3 | 17620 | if ${gcc_cv_math_func_asinhl+:} false; then : |
cd9a469c | 17621 | $as_echo_n "(cached) " >&6 |
334f03a1 | 17622 | else |
7d9455ce | 17623 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17624 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17625 | fi |
cd9a469c | 17626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
334f03a1 | 17627 | /* end confdefs.h. */ |
17628 | ||
7d9455ce | 17629 | #ifdef HAVE_COMPLEX_H |
17630 | #include <complex.h> | |
334f03a1 | 17631 | #endif |
7d9455ce | 17632 | #ifdef HAVE_MATH_H |
17633 | #include <math.h> | |
17634 | #endif | |
17635 | ||
17636 | int (*ptr)() = (int (*)())asinhl; | |
17637 | ||
334f03a1 | 17638 | int |
17639 | main () | |
17640 | { | |
334f03a1 | 17641 | return 0; |
17642 | } | |
7d9455ce | 17643 | |
334f03a1 | 17644 | _ACEOF |
cd9a469c | 17645 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17646 | gcc_cv_math_func_asinhl=yes |
334f03a1 | 17647 | else |
7d9455ce | 17648 | gcc_cv_math_func_asinhl=no |
334f03a1 | 17649 | fi |
cd9a469c | 17650 | rm -f core conftest.err conftest.$ac_objext \ |
17651 | conftest$ac_exeext conftest.$ac_ext | |
334f03a1 | 17652 | fi |
7d9455ce | 17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17654 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17655 | if test $gcc_cv_math_func_asinhl = yes; then | |
bd647a17 | 17656 | |
6affa8e1 | 17657 | cat >>confdefs.h <<_ACEOF |
17658 | #define HAVE_ASINHL 1 | |
17659 | _ACEOF | |
334f03a1 | 17660 | |
7d9455ce | 17661 | fi |
334f03a1 | 17662 | |
334f03a1 | 17663 | |
7d9455ce | 17664 | |
17665 | ||
17666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17667 | $as_echo_n "checking for atan2f... " >&6; } | |
f00f02a3 | 17668 | if ${gcc_cv_math_func_atan2f+:} false; then : |
cd9a469c | 17669 | $as_echo_n "(cached) " >&6 |
8f838781 | 17670 | else |
7d9455ce | 17671 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17672 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17673 | fi |
cd9a469c | 17674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17675 | /* end confdefs.h. */ |
17676 | ||
7d9455ce | 17677 | #ifdef HAVE_COMPLEX_H |
17678 | #include <complex.h> | |
8f838781 | 17679 | #endif |
7d9455ce | 17680 | #ifdef HAVE_MATH_H |
17681 | #include <math.h> | |
17682 | #endif | |
17683 | ||
17684 | int (*ptr)() = (int (*)())atan2f; | |
17685 | ||
17686 | int | |
8f838781 | 17687 | main () |
17688 | { | |
8f838781 | 17689 | return 0; |
17690 | } | |
7d9455ce | 17691 | |
8f838781 | 17692 | _ACEOF |
cd9a469c | 17693 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17694 | gcc_cv_math_func_atan2f=yes |
8f838781 | 17695 | else |
7d9455ce | 17696 | gcc_cv_math_func_atan2f=no |
8f838781 | 17697 | fi |
cd9a469c | 17698 | rm -f core conftest.err conftest.$ac_objext \ |
17699 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17700 | fi |
7d9455ce | 17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17702 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17703 | if test $gcc_cv_math_func_atan2f = yes; then | |
bd647a17 | 17704 | |
6affa8e1 | 17705 | cat >>confdefs.h <<_ACEOF |
17706 | #define HAVE_ATAN2F 1 | |
17707 | _ACEOF | |
7d9455ce | 17708 | |
17709 | fi | |
8f838781 | 17710 | |
8f838781 | 17711 | |
8f838781 | 17712 | |
7d9455ce | 17713 | |
17714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17715 | $as_echo_n "checking for atan2... " >&6; } | |
f00f02a3 | 17716 | if ${gcc_cv_math_func_atan2+:} false; then : |
cd9a469c | 17717 | $as_echo_n "(cached) " >&6 |
8f838781 | 17718 | else |
7d9455ce | 17719 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17720 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17721 | fi |
cd9a469c | 17722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17723 | /* end confdefs.h. */ |
17724 | ||
7d9455ce | 17725 | #ifdef HAVE_COMPLEX_H |
17726 | #include <complex.h> | |
8f838781 | 17727 | #endif |
7d9455ce | 17728 | #ifdef HAVE_MATH_H |
17729 | #include <math.h> | |
17730 | #endif | |
17731 | ||
17732 | int (*ptr)() = (int (*)())atan2; | |
17733 | ||
8f838781 | 17734 | int |
17735 | main () | |
17736 | { | |
8f838781 | 17737 | return 0; |
17738 | } | |
7d9455ce | 17739 | |
8f838781 | 17740 | _ACEOF |
cd9a469c | 17741 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17742 | gcc_cv_math_func_atan2=yes |
8f838781 | 17743 | else |
7d9455ce | 17744 | gcc_cv_math_func_atan2=no |
8f838781 | 17745 | fi |
cd9a469c | 17746 | rm -f core conftest.err conftest.$ac_objext \ |
17747 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17748 | fi |
7d9455ce | 17749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17750 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17751 | if test $gcc_cv_math_func_atan2 = yes; then | |
bd647a17 | 17752 | |
6affa8e1 | 17753 | cat >>confdefs.h <<_ACEOF |
17754 | #define HAVE_ATAN2 1 | |
17755 | _ACEOF | |
8f838781 | 17756 | |
7d9455ce | 17757 | fi |
8f838781 | 17758 | |
8f838781 | 17759 | |
7d9455ce | 17760 | |
17761 | ||
17762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17763 | $as_echo_n "checking for atan2l... " >&6; } | |
f00f02a3 | 17764 | if ${gcc_cv_math_func_atan2l+:} false; then : |
cd9a469c | 17765 | $as_echo_n "(cached) " >&6 |
8f838781 | 17766 | else |
7d9455ce | 17767 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17768 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17769 | fi |
cd9a469c | 17770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17771 | /* end confdefs.h. */ |
17772 | ||
7d9455ce | 17773 | #ifdef HAVE_COMPLEX_H |
17774 | #include <complex.h> | |
17775 | #endif | |
17776 | #ifdef HAVE_MATH_H | |
17777 | #include <math.h> | |
8f838781 | 17778 | #endif |
7d9455ce | 17779 | |
17780 | int (*ptr)() = (int (*)())atan2l; | |
17781 | ||
8f838781 | 17782 | int |
17783 | main () | |
17784 | { | |
8f838781 | 17785 | return 0; |
17786 | } | |
7d9455ce | 17787 | |
8f838781 | 17788 | _ACEOF |
cd9a469c | 17789 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17790 | gcc_cv_math_func_atan2l=yes |
8f838781 | 17791 | else |
7d9455ce | 17792 | gcc_cv_math_func_atan2l=no |
8f838781 | 17793 | fi |
cd9a469c | 17794 | rm -f core conftest.err conftest.$ac_objext \ |
17795 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17796 | fi |
7d9455ce | 17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17798 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17799 | if test $gcc_cv_math_func_atan2l = yes; then | |
bd647a17 | 17800 | |
6affa8e1 | 17801 | cat >>confdefs.h <<_ACEOF |
17802 | #define HAVE_ATAN2L 1 | |
17803 | _ACEOF | |
7d9455ce | 17804 | |
17805 | fi | |
8f838781 | 17806 | |
8f838781 | 17807 | |
8f838781 | 17808 | |
7d9455ce | 17809 | |
17810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17811 | $as_echo_n "checking for atanf... " >&6; } | |
f00f02a3 | 17812 | if ${gcc_cv_math_func_atanf+:} false; then : |
cd9a469c | 17813 | $as_echo_n "(cached) " >&6 |
8f838781 | 17814 | else |
7d9455ce | 17815 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17816 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17817 | fi |
cd9a469c | 17818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17819 | /* end confdefs.h. */ |
17820 | ||
7d9455ce | 17821 | #ifdef HAVE_COMPLEX_H |
17822 | #include <complex.h> | |
8f838781 | 17823 | #endif |
7d9455ce | 17824 | #ifdef HAVE_MATH_H |
17825 | #include <math.h> | |
17826 | #endif | |
17827 | ||
17828 | int (*ptr)() = (int (*)())atanf; | |
17829 | ||
8f838781 | 17830 | int |
17831 | main () | |
17832 | { | |
8f838781 | 17833 | return 0; |
17834 | } | |
7d9455ce | 17835 | |
8f838781 | 17836 | _ACEOF |
cd9a469c | 17837 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17838 | gcc_cv_math_func_atanf=yes |
8f838781 | 17839 | else |
7d9455ce | 17840 | gcc_cv_math_func_atanf=no |
8f838781 | 17841 | fi |
cd9a469c | 17842 | rm -f core conftest.err conftest.$ac_objext \ |
17843 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17844 | fi |
7d9455ce | 17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
17846 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
17847 | if test $gcc_cv_math_func_atanf = yes; then | |
bd647a17 | 17848 | |
6affa8e1 | 17849 | cat >>confdefs.h <<_ACEOF |
17850 | #define HAVE_ATANF 1 | |
17851 | _ACEOF | |
7d9455ce | 17852 | |
17853 | fi | |
17854 | ||
8f838781 | 17855 | |
8f838781 | 17856 | |
8f838781 | 17857 | |
7d9455ce | 17858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
17859 | $as_echo_n "checking for atan... " >&6; } | |
f00f02a3 | 17860 | if ${gcc_cv_math_func_atan+:} false; then : |
cd9a469c | 17861 | $as_echo_n "(cached) " >&6 |
8f838781 | 17862 | else |
7d9455ce | 17863 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17864 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17865 | fi |
cd9a469c | 17866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17867 | /* end confdefs.h. */ |
17868 | ||
7d9455ce | 17869 | #ifdef HAVE_COMPLEX_H |
17870 | #include <complex.h> | |
17871 | #endif | |
17872 | #ifdef HAVE_MATH_H | |
17873 | #include <math.h> | |
8f838781 | 17874 | #endif |
7d9455ce | 17875 | |
17876 | int (*ptr)() = (int (*)())atan; | |
17877 | ||
8f838781 | 17878 | int |
17879 | main () | |
17880 | { | |
8f838781 | 17881 | return 0; |
17882 | } | |
7d9455ce | 17883 | |
8f838781 | 17884 | _ACEOF |
cd9a469c | 17885 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17886 | gcc_cv_math_func_atan=yes |
8f838781 | 17887 | else |
7d9455ce | 17888 | gcc_cv_math_func_atan=no |
8f838781 | 17889 | fi |
cd9a469c | 17890 | rm -f core conftest.err conftest.$ac_objext \ |
17891 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17892 | fi |
7d9455ce | 17893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
17894 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
17895 | if test $gcc_cv_math_func_atan = yes; then | |
bd647a17 | 17896 | |
6affa8e1 | 17897 | cat >>confdefs.h <<_ACEOF |
17898 | #define HAVE_ATAN 1 | |
17899 | _ACEOF | |
7d9455ce | 17900 | |
17901 | fi | |
8f838781 | 17902 | |
8f838781 | 17903 | |
8f838781 | 17904 | |
7d9455ce | 17905 | |
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
17907 | $as_echo_n "checking for atanl... " >&6; } | |
f00f02a3 | 17908 | if ${gcc_cv_math_func_atanl+:} false; then : |
cd9a469c | 17909 | $as_echo_n "(cached) " >&6 |
14c3c235 | 17910 | else |
7d9455ce | 17911 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17912 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17913 | fi |
cd9a469c | 17914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14c3c235 | 17915 | /* end confdefs.h. */ |
17916 | ||
7d9455ce | 17917 | #ifdef HAVE_COMPLEX_H |
17918 | #include <complex.h> | |
14c3c235 | 17919 | #endif |
7d9455ce | 17920 | #ifdef HAVE_MATH_H |
17921 | #include <math.h> | |
17922 | #endif | |
17923 | ||
17924 | int (*ptr)() = (int (*)())atanl; | |
17925 | ||
14c3c235 | 17926 | int |
17927 | main () | |
17928 | { | |
14c3c235 | 17929 | return 0; |
17930 | } | |
7d9455ce | 17931 | |
14c3c235 | 17932 | _ACEOF |
cd9a469c | 17933 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17934 | gcc_cv_math_func_atanl=yes |
14c3c235 | 17935 | else |
7d9455ce | 17936 | gcc_cv_math_func_atanl=no |
14c3c235 | 17937 | fi |
cd9a469c | 17938 | rm -f core conftest.err conftest.$ac_objext \ |
17939 | conftest$ac_exeext conftest.$ac_ext | |
14c3c235 | 17940 | fi |
7d9455ce | 17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
17942 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
17943 | if test $gcc_cv_math_func_atanl = yes; then | |
bd647a17 | 17944 | |
6affa8e1 | 17945 | cat >>confdefs.h <<_ACEOF |
17946 | #define HAVE_ATANL 1 | |
17947 | _ACEOF | |
14c3c235 | 17948 | |
7d9455ce | 17949 | fi |
14c3c235 | 17950 | |
14c3c235 | 17951 | |
7d9455ce | 17952 | |
17953 | ||
17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
17955 | $as_echo_n "checking for atanhf... " >&6; } | |
f00f02a3 | 17956 | if ${gcc_cv_math_func_atanhf+:} false; then : |
cd9a469c | 17957 | $as_echo_n "(cached) " >&6 |
8f838781 | 17958 | else |
7d9455ce | 17959 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17960 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17961 | fi |
cd9a469c | 17962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17963 | /* end confdefs.h. */ |
17964 | ||
7d9455ce | 17965 | #ifdef HAVE_COMPLEX_H |
17966 | #include <complex.h> | |
17967 | #endif | |
17968 | #ifdef HAVE_MATH_H | |
17969 | #include <math.h> | |
8f838781 | 17970 | #endif |
7d9455ce | 17971 | |
17972 | int (*ptr)() = (int (*)())atanhf; | |
17973 | ||
8f838781 | 17974 | int |
17975 | main () | |
17976 | { | |
8f838781 | 17977 | return 0; |
17978 | } | |
7d9455ce | 17979 | |
8f838781 | 17980 | _ACEOF |
cd9a469c | 17981 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17982 | gcc_cv_math_func_atanhf=yes |
8f838781 | 17983 | else |
7d9455ce | 17984 | gcc_cv_math_func_atanhf=no |
8f838781 | 17985 | fi |
cd9a469c | 17986 | rm -f core conftest.err conftest.$ac_objext \ |
17987 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17988 | fi |
7d9455ce | 17989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
17990 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
17991 | if test $gcc_cv_math_func_atanhf = yes; then | |
bd647a17 | 17992 | |
6affa8e1 | 17993 | cat >>confdefs.h <<_ACEOF |
17994 | #define HAVE_ATANHF 1 | |
17995 | _ACEOF | |
7d9455ce | 17996 | |
17997 | fi | |
8f838781 | 17998 | |
8f838781 | 17999 | |
8f838781 | 18000 | |
7d9455ce | 18001 | |
18002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18003 | $as_echo_n "checking for atanh... " >&6; } | |
f00f02a3 | 18004 | if ${gcc_cv_math_func_atanh+:} false; then : |
cd9a469c | 18005 | $as_echo_n "(cached) " >&6 |
8f838781 | 18006 | else |
7d9455ce | 18007 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18008 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18009 | fi |
cd9a469c | 18010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18011 | /* end confdefs.h. */ |
18012 | ||
7d9455ce | 18013 | #ifdef HAVE_COMPLEX_H |
18014 | #include <complex.h> | |
8f838781 | 18015 | #endif |
7d9455ce | 18016 | #ifdef HAVE_MATH_H |
18017 | #include <math.h> | |
18018 | #endif | |
18019 | ||
18020 | int (*ptr)() = (int (*)())atanh; | |
18021 | ||
8f838781 | 18022 | int |
18023 | main () | |
18024 | { | |
8f838781 | 18025 | return 0; |
18026 | } | |
7d9455ce | 18027 | |
8f838781 | 18028 | _ACEOF |
cd9a469c | 18029 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18030 | gcc_cv_math_func_atanh=yes |
8f838781 | 18031 | else |
7d9455ce | 18032 | gcc_cv_math_func_atanh=no |
8f838781 | 18033 | fi |
cd9a469c | 18034 | rm -f core conftest.err conftest.$ac_objext \ |
18035 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18036 | fi |
7d9455ce | 18037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18038 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18039 | if test $gcc_cv_math_func_atanh = yes; then | |
bd647a17 | 18040 | |
6affa8e1 | 18041 | cat >>confdefs.h <<_ACEOF |
18042 | #define HAVE_ATANH 1 | |
18043 | _ACEOF | |
7d9455ce | 18044 | |
18045 | fi | |
18046 | ||
8f838781 | 18047 | |
8f838781 | 18048 | |
8f838781 | 18049 | |
7d9455ce | 18050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18051 | $as_echo_n "checking for atanhl... " >&6; } | |
f00f02a3 | 18052 | if ${gcc_cv_math_func_atanhl+:} false; then : |
cd9a469c | 18053 | $as_echo_n "(cached) " >&6 |
a2d7a3ff | 18054 | else |
7d9455ce | 18055 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18056 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18057 | fi |
cd9a469c | 18058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2d7a3ff | 18059 | /* end confdefs.h. */ |
18060 | ||
7d9455ce | 18061 | #ifdef HAVE_COMPLEX_H |
18062 | #include <complex.h> | |
18063 | #endif | |
18064 | #ifdef HAVE_MATH_H | |
18065 | #include <math.h> | |
a2d7a3ff | 18066 | #endif |
7d9455ce | 18067 | |
18068 | int (*ptr)() = (int (*)())atanhl; | |
18069 | ||
a2d7a3ff | 18070 | int |
18071 | main () | |
18072 | { | |
a2d7a3ff | 18073 | return 0; |
18074 | } | |
7d9455ce | 18075 | |
a2d7a3ff | 18076 | _ACEOF |
cd9a469c | 18077 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18078 | gcc_cv_math_func_atanhl=yes |
a2d7a3ff | 18079 | else |
7d9455ce | 18080 | gcc_cv_math_func_atanhl=no |
a2d7a3ff | 18081 | fi |
cd9a469c | 18082 | rm -f core conftest.err conftest.$ac_objext \ |
18083 | conftest$ac_exeext conftest.$ac_ext | |
a2d7a3ff | 18084 | fi |
7d9455ce | 18085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18086 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18087 | if test $gcc_cv_math_func_atanhl = yes; then | |
bd647a17 | 18088 | |
6affa8e1 | 18089 | cat >>confdefs.h <<_ACEOF |
18090 | #define HAVE_ATANHL 1 | |
18091 | _ACEOF | |
7d9455ce | 18092 | |
18093 | fi | |
a2d7a3ff | 18094 | |
a2d7a3ff | 18095 | |
a2d7a3ff | 18096 | |
7d9455ce | 18097 | |
18098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18099 | $as_echo_n "checking for cargf... " >&6; } | |
f00f02a3 | 18100 | if ${gcc_cv_math_func_cargf+:} false; then : |
cd9a469c | 18101 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 18102 | else |
7d9455ce | 18103 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18104 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18105 | fi |
cd9a469c | 18106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 18107 | /* end confdefs.h. */ |
18108 | ||
7d9455ce | 18109 | #ifdef HAVE_COMPLEX_H |
18110 | #include <complex.h> | |
a31bd8a4 | 18111 | #endif |
7d9455ce | 18112 | #ifdef HAVE_MATH_H |
18113 | #include <math.h> | |
18114 | #endif | |
18115 | ||
18116 | int (*ptr)() = (int (*)())cargf; | |
18117 | ||
8f838781 | 18118 | int |
18119 | main () | |
18120 | { | |
8f838781 | 18121 | return 0; |
18122 | } | |
7d9455ce | 18123 | |
8f838781 | 18124 | _ACEOF |
cd9a469c | 18125 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18126 | gcc_cv_math_func_cargf=yes |
8f838781 | 18127 | else |
7d9455ce | 18128 | gcc_cv_math_func_cargf=no |
8f838781 | 18129 | fi |
cd9a469c | 18130 | rm -f core conftest.err conftest.$ac_objext \ |
18131 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18132 | fi |
7d9455ce | 18133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18134 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18135 | if test $gcc_cv_math_func_cargf = yes; then | |
bd647a17 | 18136 | |
6affa8e1 | 18137 | cat >>confdefs.h <<_ACEOF |
18138 | #define HAVE_CARGF 1 | |
18139 | _ACEOF | |
8f838781 | 18140 | |
7d9455ce | 18141 | fi |
8f838781 | 18142 | |
8f838781 | 18143 | |
7d9455ce | 18144 | |
18145 | ||
18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18147 | $as_echo_n "checking for carg... " >&6; } | |
f00f02a3 | 18148 | if ${gcc_cv_math_func_carg+:} false; then : |
cd9a469c | 18149 | $as_echo_n "(cached) " >&6 |
8f838781 | 18150 | else |
7d9455ce | 18151 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18152 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18153 | fi |
cd9a469c | 18154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18155 | /* end confdefs.h. */ |
18156 | ||
7d9455ce | 18157 | #ifdef HAVE_COMPLEX_H |
18158 | #include <complex.h> | |
18159 | #endif | |
18160 | #ifdef HAVE_MATH_H | |
18161 | #include <math.h> | |
8f838781 | 18162 | #endif |
7d9455ce | 18163 | |
18164 | int (*ptr)() = (int (*)())carg; | |
18165 | ||
a31bd8a4 | 18166 | int |
18167 | main () | |
18168 | { | |
a31bd8a4 | 18169 | return 0; |
18170 | } | |
7d9455ce | 18171 | |
a31bd8a4 | 18172 | _ACEOF |
cd9a469c | 18173 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18174 | gcc_cv_math_func_carg=yes |
a31bd8a4 | 18175 | else |
7d9455ce | 18176 | gcc_cv_math_func_carg=no |
a31bd8a4 | 18177 | fi |
cd9a469c | 18178 | rm -f core conftest.err conftest.$ac_objext \ |
18179 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 18180 | fi |
7d9455ce | 18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18182 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18183 | if test $gcc_cv_math_func_carg = yes; then | |
bd647a17 | 18184 | |
6affa8e1 | 18185 | cat >>confdefs.h <<_ACEOF |
18186 | #define HAVE_CARG 1 | |
18187 | _ACEOF | |
7d9455ce | 18188 | |
18189 | fi | |
a31bd8a4 | 18190 | |
a31bd8a4 | 18191 | |
a31bd8a4 | 18192 | |
7d9455ce | 18193 | |
18194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18195 | $as_echo_n "checking for cargl... " >&6; } | |
f00f02a3 | 18196 | if ${gcc_cv_math_func_cargl+:} false; then : |
cd9a469c | 18197 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 18198 | else |
7d9455ce | 18199 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18200 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18201 | fi |
cd9a469c | 18202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 18203 | /* end confdefs.h. */ |
18204 | ||
7d9455ce | 18205 | #ifdef HAVE_COMPLEX_H |
18206 | #include <complex.h> | |
a31bd8a4 | 18207 | #endif |
7d9455ce | 18208 | #ifdef HAVE_MATH_H |
18209 | #include <math.h> | |
18210 | #endif | |
18211 | ||
18212 | int (*ptr)() = (int (*)())cargl; | |
18213 | ||
a31bd8a4 | 18214 | int |
18215 | main () | |
18216 | { | |
a31bd8a4 | 18217 | return 0; |
18218 | } | |
7d9455ce | 18219 | |
a31bd8a4 | 18220 | _ACEOF |
cd9a469c | 18221 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18222 | gcc_cv_math_func_cargl=yes |
a31bd8a4 | 18223 | else |
7d9455ce | 18224 | gcc_cv_math_func_cargl=no |
a31bd8a4 | 18225 | fi |
cd9a469c | 18226 | rm -f core conftest.err conftest.$ac_objext \ |
18227 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 18228 | fi |
7d9455ce | 18229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18230 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18231 | if test $gcc_cv_math_func_cargl = yes; then | |
bd647a17 | 18232 | |
6affa8e1 | 18233 | cat >>confdefs.h <<_ACEOF |
18234 | #define HAVE_CARGL 1 | |
18235 | _ACEOF | |
7d9455ce | 18236 | |
18237 | fi | |
18238 | ||
a31bd8a4 | 18239 | |
a31bd8a4 | 18240 | |
a31bd8a4 | 18241 | |
7d9455ce | 18242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18243 | $as_echo_n "checking for ceilf... " >&6; } | |
f00f02a3 | 18244 | if ${gcc_cv_math_func_ceilf+:} false; then : |
cd9a469c | 18245 | $as_echo_n "(cached) " >&6 |
97844b15 | 18246 | else |
7d9455ce | 18247 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18248 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18249 | fi |
cd9a469c | 18250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
97844b15 | 18251 | /* end confdefs.h. */ |
18252 | ||
7d9455ce | 18253 | #ifdef HAVE_COMPLEX_H |
18254 | #include <complex.h> | |
18255 | #endif | |
18256 | #ifdef HAVE_MATH_H | |
18257 | #include <math.h> | |
97844b15 | 18258 | #endif |
7d9455ce | 18259 | |
18260 | int (*ptr)() = (int (*)())ceilf; | |
18261 | ||
97844b15 | 18262 | int |
18263 | main () | |
18264 | { | |
97844b15 | 18265 | return 0; |
18266 | } | |
7d9455ce | 18267 | |
97844b15 | 18268 | _ACEOF |
cd9a469c | 18269 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18270 | gcc_cv_math_func_ceilf=yes |
97844b15 | 18271 | else |
7d9455ce | 18272 | gcc_cv_math_func_ceilf=no |
97844b15 | 18273 | fi |
cd9a469c | 18274 | rm -f core conftest.err conftest.$ac_objext \ |
18275 | conftest$ac_exeext conftest.$ac_ext | |
97844b15 | 18276 | fi |
7d9455ce | 18277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18278 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18279 | if test $gcc_cv_math_func_ceilf = yes; then | |
bd647a17 | 18280 | |
6affa8e1 | 18281 | cat >>confdefs.h <<_ACEOF |
18282 | #define HAVE_CEILF 1 | |
18283 | _ACEOF | |
7d9455ce | 18284 | |
18285 | fi | |
97844b15 | 18286 | |
97844b15 | 18287 | |
97844b15 | 18288 | |
7d9455ce | 18289 | |
18290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18291 | $as_echo_n "checking for ceil... " >&6; } | |
f00f02a3 | 18292 | if ${gcc_cv_math_func_ceil+:} false; then : |
cd9a469c | 18293 | $as_echo_n "(cached) " >&6 |
4db2deda | 18294 | else |
7d9455ce | 18295 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18296 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18297 | fi |
cd9a469c | 18298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18299 | /* end confdefs.h. */ |
18300 | ||
7d9455ce | 18301 | #ifdef HAVE_COMPLEX_H |
18302 | #include <complex.h> | |
4db2deda | 18303 | #endif |
7d9455ce | 18304 | #ifdef HAVE_MATH_H |
18305 | #include <math.h> | |
18306 | #endif | |
18307 | ||
18308 | int (*ptr)() = (int (*)())ceil; | |
18309 | ||
4db2deda | 18310 | int |
18311 | main () | |
18312 | { | |
4db2deda | 18313 | return 0; |
18314 | } | |
7d9455ce | 18315 | |
4db2deda | 18316 | _ACEOF |
cd9a469c | 18317 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18318 | gcc_cv_math_func_ceil=yes |
4db2deda | 18319 | else |
7d9455ce | 18320 | gcc_cv_math_func_ceil=no |
4db2deda | 18321 | fi |
cd9a469c | 18322 | rm -f core conftest.err conftest.$ac_objext \ |
18323 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18324 | fi |
7d9455ce | 18325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18326 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18327 | if test $gcc_cv_math_func_ceil = yes; then | |
bd647a17 | 18328 | |
6affa8e1 | 18329 | cat >>confdefs.h <<_ACEOF |
18330 | #define HAVE_CEIL 1 | |
18331 | _ACEOF | |
4db2deda | 18332 | |
7d9455ce | 18333 | fi |
4db2deda | 18334 | |
4db2deda | 18335 | |
7d9455ce | 18336 | |
18337 | ||
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18339 | $as_echo_n "checking for ceill... " >&6; } | |
f00f02a3 | 18340 | if ${gcc_cv_math_func_ceill+:} false; then : |
cd9a469c | 18341 | $as_echo_n "(cached) " >&6 |
4db2deda | 18342 | else |
7d9455ce | 18343 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18344 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18345 | fi |
cd9a469c | 18346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18347 | /* end confdefs.h. */ |
18348 | ||
7d9455ce | 18349 | #ifdef HAVE_COMPLEX_H |
18350 | #include <complex.h> | |
18351 | #endif | |
18352 | #ifdef HAVE_MATH_H | |
18353 | #include <math.h> | |
4db2deda | 18354 | #endif |
7d9455ce | 18355 | |
18356 | int (*ptr)() = (int (*)())ceill; | |
18357 | ||
4db2deda | 18358 | int |
18359 | main () | |
18360 | { | |
4db2deda | 18361 | return 0; |
18362 | } | |
7d9455ce | 18363 | |
4db2deda | 18364 | _ACEOF |
cd9a469c | 18365 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18366 | gcc_cv_math_func_ceill=yes |
4db2deda | 18367 | else |
7d9455ce | 18368 | gcc_cv_math_func_ceill=no |
4db2deda | 18369 | fi |
cd9a469c | 18370 | rm -f core conftest.err conftest.$ac_objext \ |
18371 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18372 | fi |
7d9455ce | 18373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18374 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18375 | if test $gcc_cv_math_func_ceill = yes; then | |
bd647a17 | 18376 | |
6affa8e1 | 18377 | cat >>confdefs.h <<_ACEOF |
18378 | #define HAVE_CEILL 1 | |
18379 | _ACEOF | |
7d9455ce | 18380 | |
18381 | fi | |
4db2deda | 18382 | |
8f838781 | 18383 | |
8f838781 | 18384 | |
7d9455ce | 18385 | |
18386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18387 | $as_echo_n "checking for copysignf... " >&6; } | |
f00f02a3 | 18388 | if ${gcc_cv_math_func_copysignf+:} false; then : |
cd9a469c | 18389 | $as_echo_n "(cached) " >&6 |
8f838781 | 18390 | else |
7d9455ce | 18391 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18392 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18393 | fi |
cd9a469c | 18394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18395 | /* end confdefs.h. */ |
18396 | ||
7d9455ce | 18397 | #ifdef HAVE_COMPLEX_H |
18398 | #include <complex.h> | |
8f838781 | 18399 | #endif |
7d9455ce | 18400 | #ifdef HAVE_MATH_H |
18401 | #include <math.h> | |
18402 | #endif | |
18403 | ||
18404 | int (*ptr)() = (int (*)())copysignf; | |
18405 | ||
8f838781 | 18406 | int |
18407 | main () | |
18408 | { | |
8f838781 | 18409 | return 0; |
18410 | } | |
7d9455ce | 18411 | |
8f838781 | 18412 | _ACEOF |
cd9a469c | 18413 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18414 | gcc_cv_math_func_copysignf=yes |
8f838781 | 18415 | else |
7d9455ce | 18416 | gcc_cv_math_func_copysignf=no |
8f838781 | 18417 | fi |
cd9a469c | 18418 | rm -f core conftest.err conftest.$ac_objext \ |
18419 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18420 | fi |
7d9455ce | 18421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18422 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18423 | if test $gcc_cv_math_func_copysignf = yes; then | |
bd647a17 | 18424 | |
6affa8e1 | 18425 | cat >>confdefs.h <<_ACEOF |
18426 | #define HAVE_COPYSIGNF 1 | |
18427 | _ACEOF | |
7d9455ce | 18428 | |
18429 | fi | |
18430 | ||
8f838781 | 18431 | |
8f838781 | 18432 | |
8f838781 | 18433 | |
7d9455ce | 18434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18435 | $as_echo_n "checking for copysign... " >&6; } | |
f00f02a3 | 18436 | if ${gcc_cv_math_func_copysign+:} false; then : |
cd9a469c | 18437 | $as_echo_n "(cached) " >&6 |
8f838781 | 18438 | else |
7d9455ce | 18439 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18440 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18441 | fi |
cd9a469c | 18442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18443 | /* end confdefs.h. */ |
18444 | ||
7d9455ce | 18445 | #ifdef HAVE_COMPLEX_H |
18446 | #include <complex.h> | |
18447 | #endif | |
18448 | #ifdef HAVE_MATH_H | |
18449 | #include <math.h> | |
8f838781 | 18450 | #endif |
7d9455ce | 18451 | |
18452 | int (*ptr)() = (int (*)())copysign; | |
18453 | ||
8f838781 | 18454 | int |
18455 | main () | |
18456 | { | |
8f838781 | 18457 | return 0; |
18458 | } | |
7d9455ce | 18459 | |
8f838781 | 18460 | _ACEOF |
cd9a469c | 18461 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18462 | gcc_cv_math_func_copysign=yes |
8f838781 | 18463 | else |
7d9455ce | 18464 | gcc_cv_math_func_copysign=no |
8f838781 | 18465 | fi |
cd9a469c | 18466 | rm -f core conftest.err conftest.$ac_objext \ |
18467 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18468 | fi |
7d9455ce | 18469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18470 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18471 | if test $gcc_cv_math_func_copysign = yes; then | |
bd647a17 | 18472 | |
6affa8e1 | 18473 | cat >>confdefs.h <<_ACEOF |
18474 | #define HAVE_COPYSIGN 1 | |
18475 | _ACEOF | |
7d9455ce | 18476 | |
18477 | fi | |
8f838781 | 18478 | |
8f838781 | 18479 | |
8f838781 | 18480 | |
7d9455ce | 18481 | |
18482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18483 | $as_echo_n "checking for copysignl... " >&6; } | |
f00f02a3 | 18484 | if ${gcc_cv_math_func_copysignl+:} false; then : |
cd9a469c | 18485 | $as_echo_n "(cached) " >&6 |
8f838781 | 18486 | else |
7d9455ce | 18487 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18488 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18489 | fi |
cd9a469c | 18490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18491 | /* end confdefs.h. */ |
18492 | ||
7d9455ce | 18493 | #ifdef HAVE_COMPLEX_H |
18494 | #include <complex.h> | |
8f838781 | 18495 | #endif |
7d9455ce | 18496 | #ifdef HAVE_MATH_H |
18497 | #include <math.h> | |
18498 | #endif | |
18499 | ||
18500 | int (*ptr)() = (int (*)())copysignl; | |
18501 | ||
8f838781 | 18502 | int |
18503 | main () | |
18504 | { | |
cd9a469c | 18505 | return 0; |
18506 | } | |
7d9455ce | 18507 | |
cd9a469c | 18508 | _ACEOF |
18509 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 18510 | gcc_cv_math_func_copysignl=yes |
8f838781 | 18511 | else |
7d9455ce | 18512 | gcc_cv_math_func_copysignl=no |
8f838781 | 18513 | fi |
cd9a469c | 18514 | rm -f core conftest.err conftest.$ac_objext \ |
18515 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18516 | fi |
7d9455ce | 18517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18518 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18519 | if test $gcc_cv_math_func_copysignl = yes; then | |
bd647a17 | 18520 | |
6affa8e1 | 18521 | cat >>confdefs.h <<_ACEOF |
18522 | #define HAVE_COPYSIGNL 1 | |
18523 | _ACEOF | |
8f838781 | 18524 | |
7d9455ce | 18525 | fi |
4db2deda | 18526 | |
4db2deda | 18527 | |
7d9455ce | 18528 | |
18529 | ||
18530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18531 | $as_echo_n "checking for cosf... " >&6; } | |
f00f02a3 | 18532 | if ${gcc_cv_math_func_cosf+:} false; then : |
cd9a469c | 18533 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 18534 | else |
7d9455ce | 18535 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18536 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18537 | fi |
cd9a469c | 18538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 18539 | /* end confdefs.h. */ |
18540 | ||
7d9455ce | 18541 | #ifdef HAVE_COMPLEX_H |
18542 | #include <complex.h> | |
18543 | #endif | |
18544 | #ifdef HAVE_MATH_H | |
18545 | #include <math.h> | |
50f0ca0a | 18546 | #endif |
7d9455ce | 18547 | |
18548 | int (*ptr)() = (int (*)())cosf; | |
18549 | ||
50f0ca0a | 18550 | int |
18551 | main () | |
18552 | { | |
50f0ca0a | 18553 | return 0; |
18554 | } | |
7d9455ce | 18555 | |
50f0ca0a | 18556 | _ACEOF |
cd9a469c | 18557 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18558 | gcc_cv_math_func_cosf=yes |
50f0ca0a | 18559 | else |
7d9455ce | 18560 | gcc_cv_math_func_cosf=no |
50f0ca0a | 18561 | fi |
cd9a469c | 18562 | rm -f core conftest.err conftest.$ac_objext \ |
18563 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 18564 | fi |
7d9455ce | 18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18566 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18567 | if test $gcc_cv_math_func_cosf = yes; then | |
bd647a17 | 18568 | |
6affa8e1 | 18569 | cat >>confdefs.h <<_ACEOF |
18570 | #define HAVE_COSF 1 | |
18571 | _ACEOF | |
7d9455ce | 18572 | |
18573 | fi | |
50f0ca0a | 18574 | |
d213114b | 18575 | |
d213114b | 18576 | |
7d9455ce | 18577 | |
18578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18579 | $as_echo_n "checking for cos... " >&6; } | |
f00f02a3 | 18580 | if ${gcc_cv_math_func_cos+:} false; then : |
cd9a469c | 18581 | $as_echo_n "(cached) " >&6 |
d213114b | 18582 | else |
7d9455ce | 18583 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18584 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18585 | fi |
cd9a469c | 18586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18587 | /* end confdefs.h. */ |
18588 | ||
7d9455ce | 18589 | #ifdef HAVE_COMPLEX_H |
18590 | #include <complex.h> | |
d213114b | 18591 | #endif |
7d9455ce | 18592 | #ifdef HAVE_MATH_H |
18593 | #include <math.h> | |
18594 | #endif | |
18595 | ||
18596 | int (*ptr)() = (int (*)())cos; | |
18597 | ||
d213114b | 18598 | int |
18599 | main () | |
18600 | { | |
d213114b | 18601 | return 0; |
18602 | } | |
7d9455ce | 18603 | |
d213114b | 18604 | _ACEOF |
cd9a469c | 18605 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18606 | gcc_cv_math_func_cos=yes |
d213114b | 18607 | else |
7d9455ce | 18608 | gcc_cv_math_func_cos=no |
d213114b | 18609 | fi |
cd9a469c | 18610 | rm -f core conftest.err conftest.$ac_objext \ |
18611 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18612 | fi |
7d9455ce | 18613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18614 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18615 | if test $gcc_cv_math_func_cos = yes; then | |
bd647a17 | 18616 | |
6affa8e1 | 18617 | cat >>confdefs.h <<_ACEOF |
18618 | #define HAVE_COS 1 | |
18619 | _ACEOF | |
7d9455ce | 18620 | |
18621 | fi | |
18622 | ||
d213114b | 18623 | |
d213114b | 18624 | |
d213114b | 18625 | |
7d9455ce | 18626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18627 | $as_echo_n "checking for cosl... " >&6; } | |
f00f02a3 | 18628 | if ${gcc_cv_math_func_cosl+:} false; then : |
cd9a469c | 18629 | $as_echo_n "(cached) " >&6 |
d213114b | 18630 | else |
7d9455ce | 18631 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18632 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18633 | fi |
cd9a469c | 18634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18635 | /* end confdefs.h. */ |
18636 | ||
7d9455ce | 18637 | #ifdef HAVE_COMPLEX_H |
18638 | #include <complex.h> | |
18639 | #endif | |
18640 | #ifdef HAVE_MATH_H | |
18641 | #include <math.h> | |
d213114b | 18642 | #endif |
7d9455ce | 18643 | |
18644 | int (*ptr)() = (int (*)())cosl; | |
18645 | ||
d213114b | 18646 | int |
18647 | main () | |
18648 | { | |
d213114b | 18649 | return 0; |
18650 | } | |
7d9455ce | 18651 | |
d213114b | 18652 | _ACEOF |
cd9a469c | 18653 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18654 | gcc_cv_math_func_cosl=yes |
d213114b | 18655 | else |
7d9455ce | 18656 | gcc_cv_math_func_cosl=no |
d213114b | 18657 | fi |
cd9a469c | 18658 | rm -f core conftest.err conftest.$ac_objext \ |
18659 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18660 | fi |
7d9455ce | 18661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18662 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18663 | if test $gcc_cv_math_func_cosl = yes; then | |
bd647a17 | 18664 | |
6affa8e1 | 18665 | cat >>confdefs.h <<_ACEOF |
18666 | #define HAVE_COSL 1 | |
18667 | _ACEOF | |
7d9455ce | 18668 | |
18669 | fi | |
d213114b | 18670 | |
d213114b | 18671 | |
d213114b | 18672 | |
7d9455ce | 18673 | |
18674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18675 | $as_echo_n "checking for ccosf... " >&6; } | |
f00f02a3 | 18676 | if ${gcc_cv_math_func_ccosf+:} false; then : |
cd9a469c | 18677 | $as_echo_n "(cached) " >&6 |
d213114b | 18678 | else |
7d9455ce | 18679 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18680 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18681 | fi |
cd9a469c | 18682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18683 | /* end confdefs.h. */ |
18684 | ||
7d9455ce | 18685 | #ifdef HAVE_COMPLEX_H |
18686 | #include <complex.h> | |
d213114b | 18687 | #endif |
7d9455ce | 18688 | #ifdef HAVE_MATH_H |
18689 | #include <math.h> | |
18690 | #endif | |
18691 | ||
18692 | int (*ptr)() = (int (*)())ccosf; | |
18693 | ||
d213114b | 18694 | int |
18695 | main () | |
18696 | { | |
d213114b | 18697 | return 0; |
18698 | } | |
7d9455ce | 18699 | |
d213114b | 18700 | _ACEOF |
cd9a469c | 18701 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18702 | gcc_cv_math_func_ccosf=yes |
d213114b | 18703 | else |
7d9455ce | 18704 | gcc_cv_math_func_ccosf=no |
d213114b | 18705 | fi |
cd9a469c | 18706 | rm -f core conftest.err conftest.$ac_objext \ |
18707 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18708 | fi |
7d9455ce | 18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18710 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18711 | if test $gcc_cv_math_func_ccosf = yes; then | |
bd647a17 | 18712 | |
6affa8e1 | 18713 | cat >>confdefs.h <<_ACEOF |
18714 | #define HAVE_CCOSF 1 | |
18715 | _ACEOF | |
d213114b | 18716 | |
7d9455ce | 18717 | fi |
d213114b | 18718 | |
d213114b | 18719 | |
7d9455ce | 18720 | |
18721 | ||
18722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18723 | $as_echo_n "checking for ccos... " >&6; } | |
f00f02a3 | 18724 | if ${gcc_cv_math_func_ccos+:} false; then : |
cd9a469c | 18725 | $as_echo_n "(cached) " >&6 |
d213114b | 18726 | else |
7d9455ce | 18727 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18728 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18729 | fi |
cd9a469c | 18730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18731 | /* end confdefs.h. */ |
18732 | ||
7d9455ce | 18733 | #ifdef HAVE_COMPLEX_H |
18734 | #include <complex.h> | |
18735 | #endif | |
18736 | #ifdef HAVE_MATH_H | |
18737 | #include <math.h> | |
d213114b | 18738 | #endif |
7d9455ce | 18739 | |
18740 | int (*ptr)() = (int (*)())ccos; | |
18741 | ||
d213114b | 18742 | int |
18743 | main () | |
18744 | { | |
d213114b | 18745 | return 0; |
18746 | } | |
7d9455ce | 18747 | |
d213114b | 18748 | _ACEOF |
cd9a469c | 18749 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18750 | gcc_cv_math_func_ccos=yes |
d213114b | 18751 | else |
7d9455ce | 18752 | gcc_cv_math_func_ccos=no |
d213114b | 18753 | fi |
cd9a469c | 18754 | rm -f core conftest.err conftest.$ac_objext \ |
18755 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18756 | fi |
7d9455ce | 18757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18758 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18759 | if test $gcc_cv_math_func_ccos = yes; then | |
bd647a17 | 18760 | |
6affa8e1 | 18761 | cat >>confdefs.h <<_ACEOF |
18762 | #define HAVE_CCOS 1 | |
18763 | _ACEOF | |
7d9455ce | 18764 | |
18765 | fi | |
d213114b | 18766 | |
d213114b | 18767 | |
d213114b | 18768 | |
7d9455ce | 18769 | |
18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18771 | $as_echo_n "checking for ccosl... " >&6; } | |
f00f02a3 | 18772 | if ${gcc_cv_math_func_ccosl+:} false; then : |
cd9a469c | 18773 | $as_echo_n "(cached) " >&6 |
d213114b | 18774 | else |
7d9455ce | 18775 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18776 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18777 | fi |
cd9a469c | 18778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18779 | /* end confdefs.h. */ |
18780 | ||
7d9455ce | 18781 | #ifdef HAVE_COMPLEX_H |
18782 | #include <complex.h> | |
d213114b | 18783 | #endif |
7d9455ce | 18784 | #ifdef HAVE_MATH_H |
18785 | #include <math.h> | |
18786 | #endif | |
18787 | ||
18788 | int (*ptr)() = (int (*)())ccosl; | |
18789 | ||
d213114b | 18790 | int |
18791 | main () | |
18792 | { | |
d213114b | 18793 | return 0; |
18794 | } | |
7d9455ce | 18795 | |
d213114b | 18796 | _ACEOF |
cd9a469c | 18797 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18798 | gcc_cv_math_func_ccosl=yes |
d213114b | 18799 | else |
7d9455ce | 18800 | gcc_cv_math_func_ccosl=no |
d213114b | 18801 | fi |
cd9a469c | 18802 | rm -f core conftest.err conftest.$ac_objext \ |
18803 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18804 | fi |
7d9455ce | 18805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18806 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18807 | if test $gcc_cv_math_func_ccosl = yes; then | |
bd647a17 | 18808 | |
6affa8e1 | 18809 | cat >>confdefs.h <<_ACEOF |
18810 | #define HAVE_CCOSL 1 | |
18811 | _ACEOF | |
7d9455ce | 18812 | |
18813 | fi | |
18814 | ||
d213114b | 18815 | |
d213114b | 18816 | |
d213114b | 18817 | |
7d9455ce | 18818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18819 | $as_echo_n "checking for coshf... " >&6; } | |
f00f02a3 | 18820 | if ${gcc_cv_math_func_coshf+:} false; then : |
cd9a469c | 18821 | $as_echo_n "(cached) " >&6 |
d213114b | 18822 | else |
7d9455ce | 18823 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18824 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18825 | fi |
cd9a469c | 18826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18827 | /* end confdefs.h. */ |
18828 | ||
7d9455ce | 18829 | #ifdef HAVE_COMPLEX_H |
18830 | #include <complex.h> | |
18831 | #endif | |
18832 | #ifdef HAVE_MATH_H | |
18833 | #include <math.h> | |
d213114b | 18834 | #endif |
7d9455ce | 18835 | |
18836 | int (*ptr)() = (int (*)())coshf; | |
18837 | ||
d213114b | 18838 | int |
18839 | main () | |
18840 | { | |
d213114b | 18841 | return 0; |
18842 | } | |
7d9455ce | 18843 | |
d213114b | 18844 | _ACEOF |
cd9a469c | 18845 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18846 | gcc_cv_math_func_coshf=yes |
d213114b | 18847 | else |
7d9455ce | 18848 | gcc_cv_math_func_coshf=no |
d213114b | 18849 | fi |
cd9a469c | 18850 | rm -f core conftest.err conftest.$ac_objext \ |
18851 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18852 | fi |
7d9455ce | 18853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
18854 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
18855 | if test $gcc_cv_math_func_coshf = yes; then | |
bd647a17 | 18856 | |
6affa8e1 | 18857 | cat >>confdefs.h <<_ACEOF |
18858 | #define HAVE_COSHF 1 | |
18859 | _ACEOF | |
7d9455ce | 18860 | |
18861 | fi | |
d213114b | 18862 | |
d213114b | 18863 | |
d213114b | 18864 | |
7d9455ce | 18865 | |
18866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
18867 | $as_echo_n "checking for cosh... " >&6; } | |
f00f02a3 | 18868 | if ${gcc_cv_math_func_cosh+:} false; then : |
cd9a469c | 18869 | $as_echo_n "(cached) " >&6 |
d213114b | 18870 | else |
7d9455ce | 18871 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18872 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18873 | fi |
cd9a469c | 18874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18875 | /* end confdefs.h. */ |
18876 | ||
7d9455ce | 18877 | #ifdef HAVE_COMPLEX_H |
18878 | #include <complex.h> | |
d213114b | 18879 | #endif |
7d9455ce | 18880 | #ifdef HAVE_MATH_H |
18881 | #include <math.h> | |
18882 | #endif | |
18883 | ||
18884 | int (*ptr)() = (int (*)())cosh; | |
18885 | ||
d213114b | 18886 | int |
18887 | main () | |
18888 | { | |
d213114b | 18889 | return 0; |
18890 | } | |
7d9455ce | 18891 | |
d213114b | 18892 | _ACEOF |
cd9a469c | 18893 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18894 | gcc_cv_math_func_cosh=yes |
d213114b | 18895 | else |
7d9455ce | 18896 | gcc_cv_math_func_cosh=no |
d213114b | 18897 | fi |
cd9a469c | 18898 | rm -f core conftest.err conftest.$ac_objext \ |
18899 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18900 | fi |
7d9455ce | 18901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
18902 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
18903 | if test $gcc_cv_math_func_cosh = yes; then | |
bd647a17 | 18904 | |
6affa8e1 | 18905 | cat >>confdefs.h <<_ACEOF |
18906 | #define HAVE_COSH 1 | |
18907 | _ACEOF | |
d213114b | 18908 | |
7d9455ce | 18909 | fi |
d213114b | 18910 | |
d213114b | 18911 | |
7d9455ce | 18912 | |
18913 | ||
18914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
18915 | $as_echo_n "checking for coshl... " >&6; } | |
f00f02a3 | 18916 | if ${gcc_cv_math_func_coshl+:} false; then : |
cd9a469c | 18917 | $as_echo_n "(cached) " >&6 |
d213114b | 18918 | else |
7d9455ce | 18919 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18920 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18921 | fi |
cd9a469c | 18922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18923 | /* end confdefs.h. */ |
18924 | ||
7d9455ce | 18925 | #ifdef HAVE_COMPLEX_H |
18926 | #include <complex.h> | |
18927 | #endif | |
18928 | #ifdef HAVE_MATH_H | |
18929 | #include <math.h> | |
d213114b | 18930 | #endif |
7d9455ce | 18931 | |
18932 | int (*ptr)() = (int (*)())coshl; | |
18933 | ||
d213114b | 18934 | int |
18935 | main () | |
18936 | { | |
d213114b | 18937 | return 0; |
18938 | } | |
7d9455ce | 18939 | |
d213114b | 18940 | _ACEOF |
cd9a469c | 18941 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18942 | gcc_cv_math_func_coshl=yes |
d213114b | 18943 | else |
7d9455ce | 18944 | gcc_cv_math_func_coshl=no |
d213114b | 18945 | fi |
cd9a469c | 18946 | rm -f core conftest.err conftest.$ac_objext \ |
18947 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18948 | fi |
7d9455ce | 18949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
18950 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
18951 | if test $gcc_cv_math_func_coshl = yes; then | |
bd647a17 | 18952 | |
6affa8e1 | 18953 | cat >>confdefs.h <<_ACEOF |
18954 | #define HAVE_COSHL 1 | |
18955 | _ACEOF | |
7d9455ce | 18956 | |
18957 | fi | |
d213114b | 18958 | |
d213114b | 18959 | |
d213114b | 18960 | |
7d9455ce | 18961 | |
18962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
18963 | $as_echo_n "checking for ccoshf... " >&6; } | |
f00f02a3 | 18964 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
cd9a469c | 18965 | $as_echo_n "(cached) " >&6 |
d213114b | 18966 | else |
7d9455ce | 18967 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18968 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18969 | fi |
cd9a469c | 18970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18971 | /* end confdefs.h. */ |
18972 | ||
7d9455ce | 18973 | #ifdef HAVE_COMPLEX_H |
18974 | #include <complex.h> | |
d213114b | 18975 | #endif |
7d9455ce | 18976 | #ifdef HAVE_MATH_H |
18977 | #include <math.h> | |
18978 | #endif | |
18979 | ||
18980 | int (*ptr)() = (int (*)())ccoshf; | |
18981 | ||
d213114b | 18982 | int |
18983 | main () | |
18984 | { | |
d213114b | 18985 | return 0; |
18986 | } | |
7d9455ce | 18987 | |
d213114b | 18988 | _ACEOF |
cd9a469c | 18989 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18990 | gcc_cv_math_func_ccoshf=yes |
d213114b | 18991 | else |
7d9455ce | 18992 | gcc_cv_math_func_ccoshf=no |
d213114b | 18993 | fi |
cd9a469c | 18994 | rm -f core conftest.err conftest.$ac_objext \ |
18995 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18996 | fi |
7d9455ce | 18997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
18998 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
18999 | if test $gcc_cv_math_func_ccoshf = yes; then | |
bd647a17 | 19000 | |
6affa8e1 | 19001 | cat >>confdefs.h <<_ACEOF |
19002 | #define HAVE_CCOSHF 1 | |
19003 | _ACEOF | |
7d9455ce | 19004 | |
19005 | fi | |
19006 | ||
d213114b | 19007 | |
d213114b | 19008 | |
d213114b | 19009 | |
7d9455ce | 19010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19011 | $as_echo_n "checking for ccosh... " >&6; } | |
f00f02a3 | 19012 | if ${gcc_cv_math_func_ccosh+:} false; then : |
cd9a469c | 19013 | $as_echo_n "(cached) " >&6 |
d213114b | 19014 | else |
7d9455ce | 19015 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19016 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19017 | fi |
cd9a469c | 19018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19019 | /* end confdefs.h. */ |
19020 | ||
7d9455ce | 19021 | #ifdef HAVE_COMPLEX_H |
19022 | #include <complex.h> | |
19023 | #endif | |
19024 | #ifdef HAVE_MATH_H | |
19025 | #include <math.h> | |
d213114b | 19026 | #endif |
7d9455ce | 19027 | |
19028 | int (*ptr)() = (int (*)())ccosh; | |
19029 | ||
d213114b | 19030 | int |
19031 | main () | |
19032 | { | |
d213114b | 19033 | return 0; |
19034 | } | |
7d9455ce | 19035 | |
d213114b | 19036 | _ACEOF |
cd9a469c | 19037 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19038 | gcc_cv_math_func_ccosh=yes |
d213114b | 19039 | else |
7d9455ce | 19040 | gcc_cv_math_func_ccosh=no |
d213114b | 19041 | fi |
cd9a469c | 19042 | rm -f core conftest.err conftest.$ac_objext \ |
19043 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19044 | fi |
7d9455ce | 19045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19046 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19047 | if test $gcc_cv_math_func_ccosh = yes; then | |
bd647a17 | 19048 | |
6affa8e1 | 19049 | cat >>confdefs.h <<_ACEOF |
19050 | #define HAVE_CCOSH 1 | |
19051 | _ACEOF | |
7d9455ce | 19052 | |
19053 | fi | |
d213114b | 19054 | |
d213114b | 19055 | |
d213114b | 19056 | |
7d9455ce | 19057 | |
19058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19059 | $as_echo_n "checking for ccoshl... " >&6; } | |
f00f02a3 | 19060 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
cd9a469c | 19061 | $as_echo_n "(cached) " >&6 |
d213114b | 19062 | else |
7d9455ce | 19063 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19064 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19065 | fi |
cd9a469c | 19066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19067 | /* end confdefs.h. */ |
19068 | ||
7d9455ce | 19069 | #ifdef HAVE_COMPLEX_H |
19070 | #include <complex.h> | |
d213114b | 19071 | #endif |
7d9455ce | 19072 | #ifdef HAVE_MATH_H |
19073 | #include <math.h> | |
19074 | #endif | |
19075 | ||
19076 | int (*ptr)() = (int (*)())ccoshl; | |
19077 | ||
d213114b | 19078 | int |
19079 | main () | |
19080 | { | |
d213114b | 19081 | return 0; |
19082 | } | |
7d9455ce | 19083 | |
d213114b | 19084 | _ACEOF |
cd9a469c | 19085 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19086 | gcc_cv_math_func_ccoshl=yes |
d213114b | 19087 | else |
7d9455ce | 19088 | gcc_cv_math_func_ccoshl=no |
d213114b | 19089 | fi |
cd9a469c | 19090 | rm -f core conftest.err conftest.$ac_objext \ |
19091 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19092 | fi |
7d9455ce | 19093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19094 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19095 | if test $gcc_cv_math_func_ccoshl = yes; then | |
bd647a17 | 19096 | |
6affa8e1 | 19097 | cat >>confdefs.h <<_ACEOF |
19098 | #define HAVE_CCOSHL 1 | |
19099 | _ACEOF | |
d213114b | 19100 | |
7d9455ce | 19101 | fi |
d213114b | 19102 | |
d213114b | 19103 | |
7d9455ce | 19104 | |
19105 | ||
19106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19107 | $as_echo_n "checking for expf... " >&6; } | |
f00f02a3 | 19108 | if ${gcc_cv_math_func_expf+:} false; then : |
cd9a469c | 19109 | $as_echo_n "(cached) " >&6 |
d213114b | 19110 | else |
7d9455ce | 19111 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19112 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19113 | fi |
cd9a469c | 19114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19115 | /* end confdefs.h. */ |
19116 | ||
7d9455ce | 19117 | #ifdef HAVE_COMPLEX_H |
19118 | #include <complex.h> | |
19119 | #endif | |
19120 | #ifdef HAVE_MATH_H | |
19121 | #include <math.h> | |
d213114b | 19122 | #endif |
7d9455ce | 19123 | |
19124 | int (*ptr)() = (int (*)())expf; | |
19125 | ||
d213114b | 19126 | int |
19127 | main () | |
19128 | { | |
d213114b | 19129 | return 0; |
19130 | } | |
7d9455ce | 19131 | |
d213114b | 19132 | _ACEOF |
cd9a469c | 19133 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19134 | gcc_cv_math_func_expf=yes |
d213114b | 19135 | else |
7d9455ce | 19136 | gcc_cv_math_func_expf=no |
d213114b | 19137 | fi |
cd9a469c | 19138 | rm -f core conftest.err conftest.$ac_objext \ |
19139 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19140 | fi |
7d9455ce | 19141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19142 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19143 | if test $gcc_cv_math_func_expf = yes; then | |
bd647a17 | 19144 | |
6affa8e1 | 19145 | cat >>confdefs.h <<_ACEOF |
19146 | #define HAVE_EXPF 1 | |
19147 | _ACEOF | |
7d9455ce | 19148 | |
19149 | fi | |
d213114b | 19150 | |
d213114b | 19151 | |
d213114b | 19152 | |
7d9455ce | 19153 | |
19154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19155 | $as_echo_n "checking for exp... " >&6; } | |
f00f02a3 | 19156 | if ${gcc_cv_math_func_exp+:} false; then : |
cd9a469c | 19157 | $as_echo_n "(cached) " >&6 |
d213114b | 19158 | else |
7d9455ce | 19159 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19160 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19161 | fi |
cd9a469c | 19162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19163 | /* end confdefs.h. */ |
19164 | ||
7d9455ce | 19165 | #ifdef HAVE_COMPLEX_H |
19166 | #include <complex.h> | |
d213114b | 19167 | #endif |
7d9455ce | 19168 | #ifdef HAVE_MATH_H |
19169 | #include <math.h> | |
19170 | #endif | |
19171 | ||
19172 | int (*ptr)() = (int (*)())exp; | |
19173 | ||
d213114b | 19174 | int |
19175 | main () | |
19176 | { | |
d213114b | 19177 | return 0; |
19178 | } | |
7d9455ce | 19179 | |
d213114b | 19180 | _ACEOF |
cd9a469c | 19181 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19182 | gcc_cv_math_func_exp=yes |
d213114b | 19183 | else |
7d9455ce | 19184 | gcc_cv_math_func_exp=no |
d213114b | 19185 | fi |
cd9a469c | 19186 | rm -f core conftest.err conftest.$ac_objext \ |
19187 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19188 | fi |
7d9455ce | 19189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19190 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19191 | if test $gcc_cv_math_func_exp = yes; then | |
bd647a17 | 19192 | |
6affa8e1 | 19193 | cat >>confdefs.h <<_ACEOF |
19194 | #define HAVE_EXP 1 | |
19195 | _ACEOF | |
7d9455ce | 19196 | |
19197 | fi | |
19198 | ||
d213114b | 19199 | |
d213114b | 19200 | |
d213114b | 19201 | |
7d9455ce | 19202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19203 | $as_echo_n "checking for expl... " >&6; } | |
f00f02a3 | 19204 | if ${gcc_cv_math_func_expl+:} false; then : |
cd9a469c | 19205 | $as_echo_n "(cached) " >&6 |
d213114b | 19206 | else |
7d9455ce | 19207 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19208 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19209 | fi |
cd9a469c | 19210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19211 | /* end confdefs.h. */ |
19212 | ||
7d9455ce | 19213 | #ifdef HAVE_COMPLEX_H |
19214 | #include <complex.h> | |
19215 | #endif | |
19216 | #ifdef HAVE_MATH_H | |
19217 | #include <math.h> | |
d213114b | 19218 | #endif |
7d9455ce | 19219 | |
19220 | int (*ptr)() = (int (*)())expl; | |
19221 | ||
d213114b | 19222 | int |
19223 | main () | |
19224 | { | |
d213114b | 19225 | return 0; |
19226 | } | |
7d9455ce | 19227 | |
d213114b | 19228 | _ACEOF |
cd9a469c | 19229 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19230 | gcc_cv_math_func_expl=yes |
d213114b | 19231 | else |
7d9455ce | 19232 | gcc_cv_math_func_expl=no |
d213114b | 19233 | fi |
cd9a469c | 19234 | rm -f core conftest.err conftest.$ac_objext \ |
19235 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19236 | fi |
7d9455ce | 19237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19238 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19239 | if test $gcc_cv_math_func_expl = yes; then | |
bd647a17 | 19240 | |
6affa8e1 | 19241 | cat >>confdefs.h <<_ACEOF |
19242 | #define HAVE_EXPL 1 | |
19243 | _ACEOF | |
7d9455ce | 19244 | |
19245 | fi | |
d213114b | 19246 | |
d213114b | 19247 | |
d213114b | 19248 | |
7d9455ce | 19249 | |
19250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19251 | $as_echo_n "checking for cexpf... " >&6; } | |
f00f02a3 | 19252 | if ${gcc_cv_math_func_cexpf+:} false; then : |
cd9a469c | 19253 | $as_echo_n "(cached) " >&6 |
d213114b | 19254 | else |
7d9455ce | 19255 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19256 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19257 | fi |
cd9a469c | 19258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19259 | /* end confdefs.h. */ |
19260 | ||
7d9455ce | 19261 | #ifdef HAVE_COMPLEX_H |
19262 | #include <complex.h> | |
d213114b | 19263 | #endif |
7d9455ce | 19264 | #ifdef HAVE_MATH_H |
19265 | #include <math.h> | |
19266 | #endif | |
19267 | ||
19268 | int (*ptr)() = (int (*)())cexpf; | |
19269 | ||
d213114b | 19270 | int |
19271 | main () | |
19272 | { | |
d213114b | 19273 | return 0; |
19274 | } | |
7d9455ce | 19275 | |
d213114b | 19276 | _ACEOF |
cd9a469c | 19277 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19278 | gcc_cv_math_func_cexpf=yes |
d213114b | 19279 | else |
7d9455ce | 19280 | gcc_cv_math_func_cexpf=no |
d213114b | 19281 | fi |
cd9a469c | 19282 | rm -f core conftest.err conftest.$ac_objext \ |
19283 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19284 | fi |
7d9455ce | 19285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19286 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19287 | if test $gcc_cv_math_func_cexpf = yes; then | |
bd647a17 | 19288 | |
6affa8e1 | 19289 | cat >>confdefs.h <<_ACEOF |
19290 | #define HAVE_CEXPF 1 | |
19291 | _ACEOF | |
d213114b | 19292 | |
7d9455ce | 19293 | fi |
d213114b | 19294 | |
d213114b | 19295 | |
7d9455ce | 19296 | |
19297 | ||
19298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19299 | $as_echo_n "checking for cexp... " >&6; } | |
f00f02a3 | 19300 | if ${gcc_cv_math_func_cexp+:} false; then : |
cd9a469c | 19301 | $as_echo_n "(cached) " >&6 |
d213114b | 19302 | else |
7d9455ce | 19303 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19304 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19305 | fi |
cd9a469c | 19306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19307 | /* end confdefs.h. */ |
19308 | ||
7d9455ce | 19309 | #ifdef HAVE_COMPLEX_H |
19310 | #include <complex.h> | |
19311 | #endif | |
19312 | #ifdef HAVE_MATH_H | |
19313 | #include <math.h> | |
d213114b | 19314 | #endif |
7d9455ce | 19315 | |
19316 | int (*ptr)() = (int (*)())cexp; | |
19317 | ||
d213114b | 19318 | int |
19319 | main () | |
19320 | { | |
d213114b | 19321 | return 0; |
19322 | } | |
7d9455ce | 19323 | |
d213114b | 19324 | _ACEOF |
cd9a469c | 19325 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19326 | gcc_cv_math_func_cexp=yes |
d213114b | 19327 | else |
7d9455ce | 19328 | gcc_cv_math_func_cexp=no |
d213114b | 19329 | fi |
cd9a469c | 19330 | rm -f core conftest.err conftest.$ac_objext \ |
19331 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19332 | fi |
7d9455ce | 19333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19334 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19335 | if test $gcc_cv_math_func_cexp = yes; then | |
bd647a17 | 19336 | |
6affa8e1 | 19337 | cat >>confdefs.h <<_ACEOF |
19338 | #define HAVE_CEXP 1 | |
19339 | _ACEOF | |
7d9455ce | 19340 | |
19341 | fi | |
d213114b | 19342 | |
d213114b | 19343 | |
d213114b | 19344 | |
7d9455ce | 19345 | |
19346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19347 | $as_echo_n "checking for cexpl... " >&6; } | |
f00f02a3 | 19348 | if ${gcc_cv_math_func_cexpl+:} false; then : |
cd9a469c | 19349 | $as_echo_n "(cached) " >&6 |
d213114b | 19350 | else |
7d9455ce | 19351 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19352 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19353 | fi |
cd9a469c | 19354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19355 | /* end confdefs.h. */ |
19356 | ||
7d9455ce | 19357 | #ifdef HAVE_COMPLEX_H |
19358 | #include <complex.h> | |
d213114b | 19359 | #endif |
7d9455ce | 19360 | #ifdef HAVE_MATH_H |
19361 | #include <math.h> | |
19362 | #endif | |
19363 | ||
19364 | int (*ptr)() = (int (*)())cexpl; | |
19365 | ||
d213114b | 19366 | int |
19367 | main () | |
19368 | { | |
d213114b | 19369 | return 0; |
19370 | } | |
7d9455ce | 19371 | |
d213114b | 19372 | _ACEOF |
cd9a469c | 19373 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19374 | gcc_cv_math_func_cexpl=yes |
d213114b | 19375 | else |
7d9455ce | 19376 | gcc_cv_math_func_cexpl=no |
d213114b | 19377 | fi |
cd9a469c | 19378 | rm -f core conftest.err conftest.$ac_objext \ |
19379 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19380 | fi |
7d9455ce | 19381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19382 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19383 | if test $gcc_cv_math_func_cexpl = yes; then | |
bd647a17 | 19384 | |
6affa8e1 | 19385 | cat >>confdefs.h <<_ACEOF |
19386 | #define HAVE_CEXPL 1 | |
19387 | _ACEOF | |
7d9455ce | 19388 | |
19389 | fi | |
19390 | ||
d213114b | 19391 | |
d213114b | 19392 | |
d213114b | 19393 | |
7d9455ce | 19394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19395 | $as_echo_n "checking for fabsf... " >&6; } | |
f00f02a3 | 19396 | if ${gcc_cv_math_func_fabsf+:} false; then : |
cd9a469c | 19397 | $as_echo_n "(cached) " >&6 |
d213114b | 19398 | else |
7d9455ce | 19399 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19400 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19401 | fi |
cd9a469c | 19402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19403 | /* end confdefs.h. */ |
19404 | ||
7d9455ce | 19405 | #ifdef HAVE_COMPLEX_H |
19406 | #include <complex.h> | |
19407 | #endif | |
19408 | #ifdef HAVE_MATH_H | |
19409 | #include <math.h> | |
d213114b | 19410 | #endif |
7d9455ce | 19411 | |
19412 | int (*ptr)() = (int (*)())fabsf; | |
19413 | ||
d213114b | 19414 | int |
19415 | main () | |
19416 | { | |
d213114b | 19417 | return 0; |
19418 | } | |
7d9455ce | 19419 | |
d213114b | 19420 | _ACEOF |
cd9a469c | 19421 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19422 | gcc_cv_math_func_fabsf=yes |
d213114b | 19423 | else |
7d9455ce | 19424 | gcc_cv_math_func_fabsf=no |
d213114b | 19425 | fi |
cd9a469c | 19426 | rm -f core conftest.err conftest.$ac_objext \ |
19427 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19428 | fi |
7d9455ce | 19429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19430 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19431 | if test $gcc_cv_math_func_fabsf = yes; then | |
bd647a17 | 19432 | |
6affa8e1 | 19433 | cat >>confdefs.h <<_ACEOF |
19434 | #define HAVE_FABSF 1 | |
19435 | _ACEOF | |
7d9455ce | 19436 | |
19437 | fi | |
d213114b | 19438 | |
d213114b | 19439 | |
d213114b | 19440 | |
7d9455ce | 19441 | |
19442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19443 | $as_echo_n "checking for fabs... " >&6; } | |
f00f02a3 | 19444 | if ${gcc_cv_math_func_fabs+:} false; then : |
cd9a469c | 19445 | $as_echo_n "(cached) " >&6 |
d213114b | 19446 | else |
7d9455ce | 19447 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19448 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19449 | fi |
cd9a469c | 19450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19451 | /* end confdefs.h. */ |
19452 | ||
7d9455ce | 19453 | #ifdef HAVE_COMPLEX_H |
19454 | #include <complex.h> | |
d213114b | 19455 | #endif |
7d9455ce | 19456 | #ifdef HAVE_MATH_H |
19457 | #include <math.h> | |
19458 | #endif | |
19459 | ||
19460 | int (*ptr)() = (int (*)())fabs; | |
19461 | ||
d213114b | 19462 | int |
19463 | main () | |
19464 | { | |
d213114b | 19465 | return 0; |
19466 | } | |
7d9455ce | 19467 | |
d213114b | 19468 | _ACEOF |
cd9a469c | 19469 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19470 | gcc_cv_math_func_fabs=yes |
d213114b | 19471 | else |
7d9455ce | 19472 | gcc_cv_math_func_fabs=no |
d213114b | 19473 | fi |
cd9a469c | 19474 | rm -f core conftest.err conftest.$ac_objext \ |
19475 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19476 | fi |
7d9455ce | 19477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19478 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19479 | if test $gcc_cv_math_func_fabs = yes; then | |
bd647a17 | 19480 | |
6affa8e1 | 19481 | cat >>confdefs.h <<_ACEOF |
19482 | #define HAVE_FABS 1 | |
19483 | _ACEOF | |
d213114b | 19484 | |
7d9455ce | 19485 | fi |
d213114b | 19486 | |
d213114b | 19487 | |
7d9455ce | 19488 | |
19489 | ||
19490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19491 | $as_echo_n "checking for fabsl... " >&6; } | |
f00f02a3 | 19492 | if ${gcc_cv_math_func_fabsl+:} false; then : |
cd9a469c | 19493 | $as_echo_n "(cached) " >&6 |
d213114b | 19494 | else |
7d9455ce | 19495 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19496 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19497 | fi |
cd9a469c | 19498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19499 | /* end confdefs.h. */ |
19500 | ||
7d9455ce | 19501 | #ifdef HAVE_COMPLEX_H |
19502 | #include <complex.h> | |
19503 | #endif | |
19504 | #ifdef HAVE_MATH_H | |
19505 | #include <math.h> | |
d213114b | 19506 | #endif |
7d9455ce | 19507 | |
19508 | int (*ptr)() = (int (*)())fabsl; | |
19509 | ||
d213114b | 19510 | int |
19511 | main () | |
19512 | { | |
d213114b | 19513 | return 0; |
19514 | } | |
7d9455ce | 19515 | |
d213114b | 19516 | _ACEOF |
cd9a469c | 19517 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19518 | gcc_cv_math_func_fabsl=yes |
d213114b | 19519 | else |
7d9455ce | 19520 | gcc_cv_math_func_fabsl=no |
d213114b | 19521 | fi |
cd9a469c | 19522 | rm -f core conftest.err conftest.$ac_objext \ |
19523 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19524 | fi |
7d9455ce | 19525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19526 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19527 | if test $gcc_cv_math_func_fabsl = yes; then | |
bd647a17 | 19528 | |
6affa8e1 | 19529 | cat >>confdefs.h <<_ACEOF |
19530 | #define HAVE_FABSL 1 | |
19531 | _ACEOF | |
7d9455ce | 19532 | |
19533 | fi | |
d213114b | 19534 | |
d213114b | 19535 | |
d213114b | 19536 | |
7d9455ce | 19537 | |
19538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19539 | $as_echo_n "checking for cabsf... " >&6; } | |
f00f02a3 | 19540 | if ${gcc_cv_math_func_cabsf+:} false; then : |
cd9a469c | 19541 | $as_echo_n "(cached) " >&6 |
d213114b | 19542 | else |
7d9455ce | 19543 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19544 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19545 | fi |
cd9a469c | 19546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19547 | /* end confdefs.h. */ |
19548 | ||
7d9455ce | 19549 | #ifdef HAVE_COMPLEX_H |
19550 | #include <complex.h> | |
d213114b | 19551 | #endif |
7d9455ce | 19552 | #ifdef HAVE_MATH_H |
19553 | #include <math.h> | |
19554 | #endif | |
19555 | ||
19556 | int (*ptr)() = (int (*)())cabsf; | |
19557 | ||
d213114b | 19558 | int |
19559 | main () | |
19560 | { | |
d213114b | 19561 | return 0; |
19562 | } | |
7d9455ce | 19563 | |
d213114b | 19564 | _ACEOF |
cd9a469c | 19565 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19566 | gcc_cv_math_func_cabsf=yes |
d213114b | 19567 | else |
7d9455ce | 19568 | gcc_cv_math_func_cabsf=no |
d213114b | 19569 | fi |
cd9a469c | 19570 | rm -f core conftest.err conftest.$ac_objext \ |
19571 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19572 | fi |
7d9455ce | 19573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19574 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19575 | if test $gcc_cv_math_func_cabsf = yes; then | |
bd647a17 | 19576 | |
6affa8e1 | 19577 | cat >>confdefs.h <<_ACEOF |
19578 | #define HAVE_CABSF 1 | |
19579 | _ACEOF | |
7d9455ce | 19580 | |
19581 | fi | |
19582 | ||
d213114b | 19583 | |
d213114b | 19584 | |
d213114b | 19585 | |
7d9455ce | 19586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19587 | $as_echo_n "checking for cabs... " >&6; } | |
f00f02a3 | 19588 | if ${gcc_cv_math_func_cabs+:} false; then : |
cd9a469c | 19589 | $as_echo_n "(cached) " >&6 |
d213114b | 19590 | else |
7d9455ce | 19591 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19592 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19593 | fi |
cd9a469c | 19594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19595 | /* end confdefs.h. */ |
19596 | ||
7d9455ce | 19597 | #ifdef HAVE_COMPLEX_H |
19598 | #include <complex.h> | |
19599 | #endif | |
19600 | #ifdef HAVE_MATH_H | |
19601 | #include <math.h> | |
d213114b | 19602 | #endif |
7d9455ce | 19603 | |
19604 | int (*ptr)() = (int (*)())cabs; | |
19605 | ||
d213114b | 19606 | int |
19607 | main () | |
19608 | { | |
d213114b | 19609 | return 0; |
19610 | } | |
7d9455ce | 19611 | |
d213114b | 19612 | _ACEOF |
cd9a469c | 19613 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19614 | gcc_cv_math_func_cabs=yes |
d213114b | 19615 | else |
7d9455ce | 19616 | gcc_cv_math_func_cabs=no |
d213114b | 19617 | fi |
cd9a469c | 19618 | rm -f core conftest.err conftest.$ac_objext \ |
19619 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19620 | fi |
7d9455ce | 19621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19622 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19623 | if test $gcc_cv_math_func_cabs = yes; then | |
bd647a17 | 19624 | |
6affa8e1 | 19625 | cat >>confdefs.h <<_ACEOF |
19626 | #define HAVE_CABS 1 | |
19627 | _ACEOF | |
7d9455ce | 19628 | |
19629 | fi | |
d213114b | 19630 | |
d213114b | 19631 | |
d213114b | 19632 | |
7d9455ce | 19633 | |
19634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19635 | $as_echo_n "checking for cabsl... " >&6; } | |
f00f02a3 | 19636 | if ${gcc_cv_math_func_cabsl+:} false; then : |
cd9a469c | 19637 | $as_echo_n "(cached) " >&6 |
d213114b | 19638 | else |
7d9455ce | 19639 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19640 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19641 | fi |
cd9a469c | 19642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19643 | /* end confdefs.h. */ |
19644 | ||
7d9455ce | 19645 | #ifdef HAVE_COMPLEX_H |
19646 | #include <complex.h> | |
d213114b | 19647 | #endif |
7d9455ce | 19648 | #ifdef HAVE_MATH_H |
19649 | #include <math.h> | |
19650 | #endif | |
19651 | ||
19652 | int (*ptr)() = (int (*)())cabsl; | |
19653 | ||
d213114b | 19654 | int |
19655 | main () | |
19656 | { | |
d213114b | 19657 | return 0; |
19658 | } | |
7d9455ce | 19659 | |
d213114b | 19660 | _ACEOF |
cd9a469c | 19661 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19662 | gcc_cv_math_func_cabsl=yes |
d213114b | 19663 | else |
7d9455ce | 19664 | gcc_cv_math_func_cabsl=no |
d213114b | 19665 | fi |
cd9a469c | 19666 | rm -f core conftest.err conftest.$ac_objext \ |
19667 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19668 | fi |
7d9455ce | 19669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19670 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19671 | if test $gcc_cv_math_func_cabsl = yes; then | |
bd647a17 | 19672 | |
6affa8e1 | 19673 | cat >>confdefs.h <<_ACEOF |
19674 | #define HAVE_CABSL 1 | |
19675 | _ACEOF | |
d213114b | 19676 | |
7d9455ce | 19677 | fi |
d213114b | 19678 | |
d213114b | 19679 | |
7d9455ce | 19680 | |
19681 | ||
19682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19683 | $as_echo_n "checking for floorf... " >&6; } | |
f00f02a3 | 19684 | if ${gcc_cv_math_func_floorf+:} false; then : |
cd9a469c | 19685 | $as_echo_n "(cached) " >&6 |
d213114b | 19686 | else |
7d9455ce | 19687 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19688 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19689 | fi |
cd9a469c | 19690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19691 | /* end confdefs.h. */ |
19692 | ||
7d9455ce | 19693 | #ifdef HAVE_COMPLEX_H |
19694 | #include <complex.h> | |
19695 | #endif | |
19696 | #ifdef HAVE_MATH_H | |
19697 | #include <math.h> | |
d213114b | 19698 | #endif |
7d9455ce | 19699 | |
19700 | int (*ptr)() = (int (*)())floorf; | |
19701 | ||
d213114b | 19702 | int |
19703 | main () | |
19704 | { | |
cd9a469c | 19705 | return 0; |
19706 | } | |
7d9455ce | 19707 | |
cd9a469c | 19708 | _ACEOF |
19709 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 19710 | gcc_cv_math_func_floorf=yes |
d213114b | 19711 | else |
7d9455ce | 19712 | gcc_cv_math_func_floorf=no |
d213114b | 19713 | fi |
cd9a469c | 19714 | rm -f core conftest.err conftest.$ac_objext \ |
19715 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19716 | fi |
7d9455ce | 19717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19718 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19719 | if test $gcc_cv_math_func_floorf = yes; then | |
bd647a17 | 19720 | |
6affa8e1 | 19721 | cat >>confdefs.h <<_ACEOF |
19722 | #define HAVE_FLOORF 1 | |
19723 | _ACEOF | |
7d9455ce | 19724 | |
19725 | fi | |
d213114b | 19726 | |
d213114b | 19727 | |
d213114b | 19728 | |
7d9455ce | 19729 | |
19730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19731 | $as_echo_n "checking for floor... " >&6; } | |
f00f02a3 | 19732 | if ${gcc_cv_math_func_floor+:} false; then : |
cd9a469c | 19733 | $as_echo_n "(cached) " >&6 |
d213114b | 19734 | else |
7d9455ce | 19735 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19736 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19737 | fi |
cd9a469c | 19738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19739 | /* end confdefs.h. */ |
19740 | ||
7d9455ce | 19741 | #ifdef HAVE_COMPLEX_H |
19742 | #include <complex.h> | |
d213114b | 19743 | #endif |
7d9455ce | 19744 | #ifdef HAVE_MATH_H |
19745 | #include <math.h> | |
19746 | #endif | |
19747 | ||
19748 | int (*ptr)() = (int (*)())floor; | |
19749 | ||
d213114b | 19750 | int |
19751 | main () | |
19752 | { | |
d213114b | 19753 | return 0; |
19754 | } | |
7d9455ce | 19755 | |
d213114b | 19756 | _ACEOF |
cd9a469c | 19757 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19758 | gcc_cv_math_func_floor=yes |
d213114b | 19759 | else |
7d9455ce | 19760 | gcc_cv_math_func_floor=no |
d213114b | 19761 | fi |
cd9a469c | 19762 | rm -f core conftest.err conftest.$ac_objext \ |
19763 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19764 | fi |
7d9455ce | 19765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19766 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19767 | if test $gcc_cv_math_func_floor = yes; then | |
bd647a17 | 19768 | |
6affa8e1 | 19769 | cat >>confdefs.h <<_ACEOF |
19770 | #define HAVE_FLOOR 1 | |
19771 | _ACEOF | |
7d9455ce | 19772 | |
19773 | fi | |
19774 | ||
d213114b | 19775 | |
d213114b | 19776 | |
d213114b | 19777 | |
7d9455ce | 19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19779 | $as_echo_n "checking for floorl... " >&6; } | |
f00f02a3 | 19780 | if ${gcc_cv_math_func_floorl+:} false; then : |
cd9a469c | 19781 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19782 | else |
7d9455ce | 19783 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19784 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19785 | fi |
cd9a469c | 19786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19787 | /* end confdefs.h. */ |
19788 | ||
7d9455ce | 19789 | #ifdef HAVE_COMPLEX_H |
19790 | #include <complex.h> | |
19791 | #endif | |
19792 | #ifdef HAVE_MATH_H | |
19793 | #include <math.h> | |
71d5b534 | 19794 | #endif |
7d9455ce | 19795 | |
19796 | int (*ptr)() = (int (*)())floorl; | |
19797 | ||
71d5b534 | 19798 | int |
19799 | main () | |
19800 | { | |
71d5b534 | 19801 | return 0; |
19802 | } | |
7d9455ce | 19803 | |
71d5b534 | 19804 | _ACEOF |
cd9a469c | 19805 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19806 | gcc_cv_math_func_floorl=yes |
71d5b534 | 19807 | else |
7d9455ce | 19808 | gcc_cv_math_func_floorl=no |
71d5b534 | 19809 | fi |
cd9a469c | 19810 | rm -f core conftest.err conftest.$ac_objext \ |
19811 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19812 | fi |
7d9455ce | 19813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19814 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19815 | if test $gcc_cv_math_func_floorl = yes; then | |
bd647a17 | 19816 | |
6affa8e1 | 19817 | cat >>confdefs.h <<_ACEOF |
19818 | #define HAVE_FLOORL 1 | |
19819 | _ACEOF | |
7d9455ce | 19820 | |
19821 | fi | |
71d5b534 | 19822 | |
71d5b534 | 19823 | |
71d5b534 | 19824 | |
7d9455ce | 19825 | |
19826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 | |
19827 | $as_echo_n "checking for fmodf... " >&6; } | |
f00f02a3 | 19828 | if ${gcc_cv_math_func_fmodf+:} false; then : |
cd9a469c | 19829 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19830 | else |
7d9455ce | 19831 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19832 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19833 | fi |
cd9a469c | 19834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19835 | /* end confdefs.h. */ |
19836 | ||
7d9455ce | 19837 | #ifdef HAVE_COMPLEX_H |
19838 | #include <complex.h> | |
71d5b534 | 19839 | #endif |
7d9455ce | 19840 | #ifdef HAVE_MATH_H |
19841 | #include <math.h> | |
19842 | #endif | |
19843 | ||
19844 | int (*ptr)() = (int (*)())fmodf; | |
19845 | ||
71d5b534 | 19846 | int |
19847 | main () | |
19848 | { | |
71d5b534 | 19849 | return 0; |
19850 | } | |
7d9455ce | 19851 | |
71d5b534 | 19852 | _ACEOF |
cd9a469c | 19853 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19854 | gcc_cv_math_func_fmodf=yes |
71d5b534 | 19855 | else |
7d9455ce | 19856 | gcc_cv_math_func_fmodf=no |
71d5b534 | 19857 | fi |
cd9a469c | 19858 | rm -f core conftest.err conftest.$ac_objext \ |
19859 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19860 | fi |
7d9455ce | 19861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
19862 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
19863 | if test $gcc_cv_math_func_fmodf = yes; then | |
bd647a17 | 19864 | |
6affa8e1 | 19865 | cat >>confdefs.h <<_ACEOF |
19866 | #define HAVE_FMODF 1 | |
19867 | _ACEOF | |
71d5b534 | 19868 | |
7d9455ce | 19869 | fi |
71d5b534 | 19870 | |
71d5b534 | 19871 | |
7d9455ce | 19872 | |
19873 | ||
19874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
19875 | $as_echo_n "checking for fmod... " >&6; } | |
f00f02a3 | 19876 | if ${gcc_cv_math_func_fmod+:} false; then : |
cd9a469c | 19877 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19878 | else |
7d9455ce | 19879 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19880 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19881 | fi |
cd9a469c | 19882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19883 | /* end confdefs.h. */ |
19884 | ||
7d9455ce | 19885 | #ifdef HAVE_COMPLEX_H |
19886 | #include <complex.h> | |
19887 | #endif | |
19888 | #ifdef HAVE_MATH_H | |
19889 | #include <math.h> | |
71d5b534 | 19890 | #endif |
7d9455ce | 19891 | |
19892 | int (*ptr)() = (int (*)())fmod; | |
19893 | ||
71d5b534 | 19894 | int |
19895 | main () | |
19896 | { | |
71d5b534 | 19897 | return 0; |
19898 | } | |
7d9455ce | 19899 | |
71d5b534 | 19900 | _ACEOF |
cd9a469c | 19901 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19902 | gcc_cv_math_func_fmod=yes |
71d5b534 | 19903 | else |
7d9455ce | 19904 | gcc_cv_math_func_fmod=no |
71d5b534 | 19905 | fi |
cd9a469c | 19906 | rm -f core conftest.err conftest.$ac_objext \ |
19907 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19908 | fi |
7d9455ce | 19909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
19910 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
19911 | if test $gcc_cv_math_func_fmod = yes; then | |
bd647a17 | 19912 | |
6affa8e1 | 19913 | cat >>confdefs.h <<_ACEOF |
19914 | #define HAVE_FMOD 1 | |
19915 | _ACEOF | |
7d9455ce | 19916 | |
19917 | fi | |
71d5b534 | 19918 | |
71d5b534 | 19919 | |
71d5b534 | 19920 | |
7d9455ce | 19921 | |
19922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
19923 | $as_echo_n "checking for fmodl... " >&6; } | |
f00f02a3 | 19924 | if ${gcc_cv_math_func_fmodl+:} false; then : |
cd9a469c | 19925 | $as_echo_n "(cached) " >&6 |
d213114b | 19926 | else |
7d9455ce | 19927 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19928 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19929 | fi |
cd9a469c | 19930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19931 | /* end confdefs.h. */ |
19932 | ||
7d9455ce | 19933 | #ifdef HAVE_COMPLEX_H |
19934 | #include <complex.h> | |
d213114b | 19935 | #endif |
7d9455ce | 19936 | #ifdef HAVE_MATH_H |
19937 | #include <math.h> | |
19938 | #endif | |
19939 | ||
19940 | int (*ptr)() = (int (*)())fmodl; | |
19941 | ||
d213114b | 19942 | int |
19943 | main () | |
19944 | { | |
d213114b | 19945 | return 0; |
19946 | } | |
7d9455ce | 19947 | |
d213114b | 19948 | _ACEOF |
cd9a469c | 19949 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19950 | gcc_cv_math_func_fmodl=yes |
d213114b | 19951 | else |
7d9455ce | 19952 | gcc_cv_math_func_fmodl=no |
d213114b | 19953 | fi |
cd9a469c | 19954 | rm -f core conftest.err conftest.$ac_objext \ |
19955 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19956 | fi |
7d9455ce | 19957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
19958 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
19959 | if test $gcc_cv_math_func_fmodl = yes; then | |
bd647a17 | 19960 | |
6affa8e1 | 19961 | cat >>confdefs.h <<_ACEOF |
19962 | #define HAVE_FMODL 1 | |
19963 | _ACEOF | |
7d9455ce | 19964 | |
19965 | fi | |
19966 | ||
d213114b | 19967 | |
d213114b | 19968 | |
d213114b | 19969 | |
7d9455ce | 19970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
19971 | $as_echo_n "checking for frexpf... " >&6; } | |
f00f02a3 | 19972 | if ${gcc_cv_math_func_frexpf+:} false; then : |
cd9a469c | 19973 | $as_echo_n "(cached) " >&6 |
d213114b | 19974 | else |
7d9455ce | 19975 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19976 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19977 | fi |
cd9a469c | 19978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19979 | /* end confdefs.h. */ |
19980 | ||
7d9455ce | 19981 | #ifdef HAVE_COMPLEX_H |
19982 | #include <complex.h> | |
19983 | #endif | |
19984 | #ifdef HAVE_MATH_H | |
19985 | #include <math.h> | |
d213114b | 19986 | #endif |
7d9455ce | 19987 | |
19988 | int (*ptr)() = (int (*)())frexpf; | |
19989 | ||
d213114b | 19990 | int |
19991 | main () | |
19992 | { | |
d213114b | 19993 | return 0; |
19994 | } | |
7d9455ce | 19995 | |
d213114b | 19996 | _ACEOF |
cd9a469c | 19997 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19998 | gcc_cv_math_func_frexpf=yes |
d213114b | 19999 | else |
7d9455ce | 20000 | gcc_cv_math_func_frexpf=no |
d213114b | 20001 | fi |
cd9a469c | 20002 | rm -f core conftest.err conftest.$ac_objext \ |
20003 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20004 | fi |
7d9455ce | 20005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20006 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20007 | if test $gcc_cv_math_func_frexpf = yes; then | |
bd647a17 | 20008 | |
6affa8e1 | 20009 | cat >>confdefs.h <<_ACEOF |
20010 | #define HAVE_FREXPF 1 | |
20011 | _ACEOF | |
7d9455ce | 20012 | |
20013 | fi | |
d213114b | 20014 | |
d213114b | 20015 | |
d213114b | 20016 | |
7d9455ce | 20017 | |
20018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20019 | $as_echo_n "checking for frexp... " >&6; } | |
f00f02a3 | 20020 | if ${gcc_cv_math_func_frexp+:} false; then : |
cd9a469c | 20021 | $as_echo_n "(cached) " >&6 |
d213114b | 20022 | else |
7d9455ce | 20023 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20024 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20025 | fi |
cd9a469c | 20026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20027 | /* end confdefs.h. */ |
20028 | ||
7d9455ce | 20029 | #ifdef HAVE_COMPLEX_H |
20030 | #include <complex.h> | |
d213114b | 20031 | #endif |
7d9455ce | 20032 | #ifdef HAVE_MATH_H |
20033 | #include <math.h> | |
20034 | #endif | |
20035 | ||
20036 | int (*ptr)() = (int (*)())frexp; | |
20037 | ||
d213114b | 20038 | int |
20039 | main () | |
20040 | { | |
d213114b | 20041 | return 0; |
20042 | } | |
7d9455ce | 20043 | |
d213114b | 20044 | _ACEOF |
cd9a469c | 20045 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20046 | gcc_cv_math_func_frexp=yes |
d213114b | 20047 | else |
7d9455ce | 20048 | gcc_cv_math_func_frexp=no |
d213114b | 20049 | fi |
cd9a469c | 20050 | rm -f core conftest.err conftest.$ac_objext \ |
20051 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20052 | fi |
7d9455ce | 20053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20054 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20055 | if test $gcc_cv_math_func_frexp = yes; then | |
bd647a17 | 20056 | |
6affa8e1 | 20057 | cat >>confdefs.h <<_ACEOF |
20058 | #define HAVE_FREXP 1 | |
20059 | _ACEOF | |
d213114b | 20060 | |
7d9455ce | 20061 | fi |
d213114b | 20062 | |
d213114b | 20063 | |
7d9455ce | 20064 | |
20065 | ||
20066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20067 | $as_echo_n "checking for frexpl... " >&6; } | |
f00f02a3 | 20068 | if ${gcc_cv_math_func_frexpl+:} false; then : |
cd9a469c | 20069 | $as_echo_n "(cached) " >&6 |
d213114b | 20070 | else |
7d9455ce | 20071 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20072 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20073 | fi |
cd9a469c | 20074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20075 | /* end confdefs.h. */ |
20076 | ||
7d9455ce | 20077 | #ifdef HAVE_COMPLEX_H |
20078 | #include <complex.h> | |
20079 | #endif | |
20080 | #ifdef HAVE_MATH_H | |
20081 | #include <math.h> | |
d213114b | 20082 | #endif |
7d9455ce | 20083 | |
20084 | int (*ptr)() = (int (*)())frexpl; | |
20085 | ||
d213114b | 20086 | int |
20087 | main () | |
20088 | { | |
d213114b | 20089 | return 0; |
20090 | } | |
7d9455ce | 20091 | |
d213114b | 20092 | _ACEOF |
cd9a469c | 20093 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20094 | gcc_cv_math_func_frexpl=yes |
d213114b | 20095 | else |
7d9455ce | 20096 | gcc_cv_math_func_frexpl=no |
d213114b | 20097 | fi |
cd9a469c | 20098 | rm -f core conftest.err conftest.$ac_objext \ |
20099 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20100 | fi |
7d9455ce | 20101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20102 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20103 | if test $gcc_cv_math_func_frexpl = yes; then | |
bd647a17 | 20104 | |
6affa8e1 | 20105 | cat >>confdefs.h <<_ACEOF |
20106 | #define HAVE_FREXPL 1 | |
20107 | _ACEOF | |
7d9455ce | 20108 | |
20109 | fi | |
d213114b | 20110 | |
d213114b | 20111 | |
d213114b | 20112 | |
7d9455ce | 20113 | |
20114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20115 | $as_echo_n "checking for hypotf... " >&6; } | |
f00f02a3 | 20116 | if ${gcc_cv_math_func_hypotf+:} false; then : |
cd9a469c | 20117 | $as_echo_n "(cached) " >&6 |
d213114b | 20118 | else |
7d9455ce | 20119 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20120 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20121 | fi |
cd9a469c | 20122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20123 | /* end confdefs.h. */ |
20124 | ||
7d9455ce | 20125 | #ifdef HAVE_COMPLEX_H |
20126 | #include <complex.h> | |
d213114b | 20127 | #endif |
7d9455ce | 20128 | #ifdef HAVE_MATH_H |
20129 | #include <math.h> | |
20130 | #endif | |
20131 | ||
20132 | int (*ptr)() = (int (*)())hypotf; | |
20133 | ||
d213114b | 20134 | int |
20135 | main () | |
20136 | { | |
d213114b | 20137 | return 0; |
20138 | } | |
7d9455ce | 20139 | |
d213114b | 20140 | _ACEOF |
cd9a469c | 20141 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20142 | gcc_cv_math_func_hypotf=yes |
d213114b | 20143 | else |
7d9455ce | 20144 | gcc_cv_math_func_hypotf=no |
d213114b | 20145 | fi |
cd9a469c | 20146 | rm -f core conftest.err conftest.$ac_objext \ |
20147 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20148 | fi |
7d9455ce | 20149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20150 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20151 | if test $gcc_cv_math_func_hypotf = yes; then | |
bd647a17 | 20152 | |
6affa8e1 | 20153 | cat >>confdefs.h <<_ACEOF |
20154 | #define HAVE_HYPOTF 1 | |
20155 | _ACEOF | |
7d9455ce | 20156 | |
20157 | fi | |
20158 | ||
d213114b | 20159 | |
d213114b | 20160 | |
d213114b | 20161 | |
7d9455ce | 20162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20163 | $as_echo_n "checking for hypot... " >&6; } | |
f00f02a3 | 20164 | if ${gcc_cv_math_func_hypot+:} false; then : |
cd9a469c | 20165 | $as_echo_n "(cached) " >&6 |
d213114b | 20166 | else |
7d9455ce | 20167 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20168 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20169 | fi |
cd9a469c | 20170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20171 | /* end confdefs.h. */ |
20172 | ||
7d9455ce | 20173 | #ifdef HAVE_COMPLEX_H |
20174 | #include <complex.h> | |
20175 | #endif | |
20176 | #ifdef HAVE_MATH_H | |
20177 | #include <math.h> | |
d213114b | 20178 | #endif |
7d9455ce | 20179 | |
20180 | int (*ptr)() = (int (*)())hypot; | |
20181 | ||
d213114b | 20182 | int |
20183 | main () | |
20184 | { | |
d213114b | 20185 | return 0; |
20186 | } | |
7d9455ce | 20187 | |
d213114b | 20188 | _ACEOF |
cd9a469c | 20189 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20190 | gcc_cv_math_func_hypot=yes |
d213114b | 20191 | else |
7d9455ce | 20192 | gcc_cv_math_func_hypot=no |
d213114b | 20193 | fi |
cd9a469c | 20194 | rm -f core conftest.err conftest.$ac_objext \ |
20195 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20196 | fi |
7d9455ce | 20197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20198 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20199 | if test $gcc_cv_math_func_hypot = yes; then | |
bd647a17 | 20200 | |
6affa8e1 | 20201 | cat >>confdefs.h <<_ACEOF |
20202 | #define HAVE_HYPOT 1 | |
20203 | _ACEOF | |
7d9455ce | 20204 | |
20205 | fi | |
d213114b | 20206 | |
d213114b | 20207 | |
d213114b | 20208 | |
7d9455ce | 20209 | |
20210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20211 | $as_echo_n "checking for hypotl... " >&6; } | |
f00f02a3 | 20212 | if ${gcc_cv_math_func_hypotl+:} false; then : |
cd9a469c | 20213 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20214 | else |
7d9455ce | 20215 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20216 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20217 | fi |
cd9a469c | 20218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20219 | /* end confdefs.h. */ |
20220 | ||
7d9455ce | 20221 | #ifdef HAVE_COMPLEX_H |
20222 | #include <complex.h> | |
71d90ac4 | 20223 | #endif |
7d9455ce | 20224 | #ifdef HAVE_MATH_H |
20225 | #include <math.h> | |
20226 | #endif | |
20227 | ||
20228 | int (*ptr)() = (int (*)())hypotl; | |
20229 | ||
71d90ac4 | 20230 | int |
20231 | main () | |
20232 | { | |
71d90ac4 | 20233 | return 0; |
20234 | } | |
7d9455ce | 20235 | |
71d90ac4 | 20236 | _ACEOF |
cd9a469c | 20237 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20238 | gcc_cv_math_func_hypotl=yes |
71d90ac4 | 20239 | else |
7d9455ce | 20240 | gcc_cv_math_func_hypotl=no |
71d90ac4 | 20241 | fi |
cd9a469c | 20242 | rm -f core conftest.err conftest.$ac_objext \ |
20243 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20244 | fi |
7d9455ce | 20245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20246 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20247 | if test $gcc_cv_math_func_hypotl = yes; then | |
bd647a17 | 20248 | |
6affa8e1 | 20249 | cat >>confdefs.h <<_ACEOF |
20250 | #define HAVE_HYPOTL 1 | |
20251 | _ACEOF | |
71d90ac4 | 20252 | |
7d9455ce | 20253 | fi |
71d90ac4 | 20254 | |
71d90ac4 | 20255 | |
7d9455ce | 20256 | |
20257 | ||
20258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20259 | $as_echo_n "checking for ldexpf... " >&6; } | |
f00f02a3 | 20260 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
cd9a469c | 20261 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20262 | else |
7d9455ce | 20263 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20264 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20265 | fi |
cd9a469c | 20266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20267 | /* end confdefs.h. */ |
20268 | ||
7d9455ce | 20269 | #ifdef HAVE_COMPLEX_H |
20270 | #include <complex.h> | |
20271 | #endif | |
20272 | #ifdef HAVE_MATH_H | |
20273 | #include <math.h> | |
71d90ac4 | 20274 | #endif |
7d9455ce | 20275 | |
20276 | int (*ptr)() = (int (*)())ldexpf; | |
20277 | ||
71d90ac4 | 20278 | int |
20279 | main () | |
20280 | { | |
71d90ac4 | 20281 | return 0; |
20282 | } | |
7d9455ce | 20283 | |
71d90ac4 | 20284 | _ACEOF |
cd9a469c | 20285 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20286 | gcc_cv_math_func_ldexpf=yes |
71d90ac4 | 20287 | else |
7d9455ce | 20288 | gcc_cv_math_func_ldexpf=no |
71d90ac4 | 20289 | fi |
cd9a469c | 20290 | rm -f core conftest.err conftest.$ac_objext \ |
20291 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20292 | fi |
7d9455ce | 20293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20294 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20295 | if test $gcc_cv_math_func_ldexpf = yes; then | |
bd647a17 | 20296 | |
6affa8e1 | 20297 | cat >>confdefs.h <<_ACEOF |
20298 | #define HAVE_LDEXPF 1 | |
20299 | _ACEOF | |
7d9455ce | 20300 | |
20301 | fi | |
71d90ac4 | 20302 | |
71d90ac4 | 20303 | |
71d90ac4 | 20304 | |
7d9455ce | 20305 | |
20306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20307 | $as_echo_n "checking for ldexp... " >&6; } | |
f00f02a3 | 20308 | if ${gcc_cv_math_func_ldexp+:} false; then : |
cd9a469c | 20309 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20310 | else |
7d9455ce | 20311 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20312 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20313 | fi |
cd9a469c | 20314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20315 | /* end confdefs.h. */ |
20316 | ||
7d9455ce | 20317 | #ifdef HAVE_COMPLEX_H |
20318 | #include <complex.h> | |
71d90ac4 | 20319 | #endif |
7d9455ce | 20320 | #ifdef HAVE_MATH_H |
20321 | #include <math.h> | |
20322 | #endif | |
20323 | ||
20324 | int (*ptr)() = (int (*)())ldexp; | |
20325 | ||
71d90ac4 | 20326 | int |
20327 | main () | |
20328 | { | |
71d90ac4 | 20329 | return 0; |
20330 | } | |
7d9455ce | 20331 | |
71d90ac4 | 20332 | _ACEOF |
cd9a469c | 20333 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20334 | gcc_cv_math_func_ldexp=yes |
71d90ac4 | 20335 | else |
7d9455ce | 20336 | gcc_cv_math_func_ldexp=no |
71d90ac4 | 20337 | fi |
cd9a469c | 20338 | rm -f core conftest.err conftest.$ac_objext \ |
20339 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20340 | fi |
7d9455ce | 20341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20342 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20343 | if test $gcc_cv_math_func_ldexp = yes; then | |
bd647a17 | 20344 | |
6affa8e1 | 20345 | cat >>confdefs.h <<_ACEOF |
20346 | #define HAVE_LDEXP 1 | |
20347 | _ACEOF | |
7d9455ce | 20348 | |
20349 | fi | |
20350 | ||
71d90ac4 | 20351 | |
71d90ac4 | 20352 | |
71d90ac4 | 20353 | |
7d9455ce | 20354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20355 | $as_echo_n "checking for ldexpl... " >&6; } | |
f00f02a3 | 20356 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
cd9a469c | 20357 | $as_echo_n "(cached) " >&6 |
d213114b | 20358 | else |
7d9455ce | 20359 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20360 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20361 | fi |
cd9a469c | 20362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20363 | /* end confdefs.h. */ |
20364 | ||
7d9455ce | 20365 | #ifdef HAVE_COMPLEX_H |
20366 | #include <complex.h> | |
20367 | #endif | |
20368 | #ifdef HAVE_MATH_H | |
20369 | #include <math.h> | |
d213114b | 20370 | #endif |
7d9455ce | 20371 | |
20372 | int (*ptr)() = (int (*)())ldexpl; | |
20373 | ||
d213114b | 20374 | int |
20375 | main () | |
20376 | { | |
d213114b | 20377 | return 0; |
20378 | } | |
7d9455ce | 20379 | |
d213114b | 20380 | _ACEOF |
cd9a469c | 20381 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20382 | gcc_cv_math_func_ldexpl=yes |
d213114b | 20383 | else |
7d9455ce | 20384 | gcc_cv_math_func_ldexpl=no |
d213114b | 20385 | fi |
cd9a469c | 20386 | rm -f core conftest.err conftest.$ac_objext \ |
20387 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20388 | fi |
7d9455ce | 20389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20390 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20391 | if test $gcc_cv_math_func_ldexpl = yes; then | |
bd647a17 | 20392 | |
6affa8e1 | 20393 | cat >>confdefs.h <<_ACEOF |
20394 | #define HAVE_LDEXPL 1 | |
20395 | _ACEOF | |
7d9455ce | 20396 | |
20397 | fi | |
d213114b | 20398 | |
d213114b | 20399 | |
d213114b | 20400 | |
7d9455ce | 20401 | |
20402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20403 | $as_echo_n "checking for logf... " >&6; } | |
f00f02a3 | 20404 | if ${gcc_cv_math_func_logf+:} false; then : |
cd9a469c | 20405 | $as_echo_n "(cached) " >&6 |
d213114b | 20406 | else |
7d9455ce | 20407 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20408 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20409 | fi |
cd9a469c | 20410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20411 | /* end confdefs.h. */ |
20412 | ||
7d9455ce | 20413 | #ifdef HAVE_COMPLEX_H |
20414 | #include <complex.h> | |
d213114b | 20415 | #endif |
7d9455ce | 20416 | #ifdef HAVE_MATH_H |
20417 | #include <math.h> | |
20418 | #endif | |
20419 | ||
20420 | int (*ptr)() = (int (*)())logf; | |
20421 | ||
d213114b | 20422 | int |
20423 | main () | |
20424 | { | |
d213114b | 20425 | return 0; |
20426 | } | |
7d9455ce | 20427 | |
d213114b | 20428 | _ACEOF |
cd9a469c | 20429 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20430 | gcc_cv_math_func_logf=yes |
d213114b | 20431 | else |
7d9455ce | 20432 | gcc_cv_math_func_logf=no |
d213114b | 20433 | fi |
cd9a469c | 20434 | rm -f core conftest.err conftest.$ac_objext \ |
20435 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20436 | fi |
7d9455ce | 20437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20438 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20439 | if test $gcc_cv_math_func_logf = yes; then | |
bd647a17 | 20440 | |
6affa8e1 | 20441 | cat >>confdefs.h <<_ACEOF |
20442 | #define HAVE_LOGF 1 | |
20443 | _ACEOF | |
d213114b | 20444 | |
7d9455ce | 20445 | fi |
d213114b | 20446 | |
d213114b | 20447 | |
7d9455ce | 20448 | |
20449 | ||
20450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20451 | $as_echo_n "checking for log... " >&6; } | |
f00f02a3 | 20452 | if ${gcc_cv_math_func_log+:} false; then : |
cd9a469c | 20453 | $as_echo_n "(cached) " >&6 |
d213114b | 20454 | else |
7d9455ce | 20455 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20456 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20457 | fi |
cd9a469c | 20458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20459 | /* end confdefs.h. */ |
20460 | ||
7d9455ce | 20461 | #ifdef HAVE_COMPLEX_H |
20462 | #include <complex.h> | |
20463 | #endif | |
20464 | #ifdef HAVE_MATH_H | |
20465 | #include <math.h> | |
d213114b | 20466 | #endif |
7d9455ce | 20467 | |
20468 | int (*ptr)() = (int (*)())log; | |
20469 | ||
d213114b | 20470 | int |
20471 | main () | |
20472 | { | |
d213114b | 20473 | return 0; |
20474 | } | |
7d9455ce | 20475 | |
d213114b | 20476 | _ACEOF |
cd9a469c | 20477 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20478 | gcc_cv_math_func_log=yes |
d213114b | 20479 | else |
7d9455ce | 20480 | gcc_cv_math_func_log=no |
d213114b | 20481 | fi |
cd9a469c | 20482 | rm -f core conftest.err conftest.$ac_objext \ |
20483 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20484 | fi |
7d9455ce | 20485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20486 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20487 | if test $gcc_cv_math_func_log = yes; then | |
bd647a17 | 20488 | |
6affa8e1 | 20489 | cat >>confdefs.h <<_ACEOF |
20490 | #define HAVE_LOG 1 | |
20491 | _ACEOF | |
7d9455ce | 20492 | |
20493 | fi | |
d213114b | 20494 | |
d213114b | 20495 | |
d213114b | 20496 | |
7d9455ce | 20497 | |
20498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20499 | $as_echo_n "checking for logl... " >&6; } | |
f00f02a3 | 20500 | if ${gcc_cv_math_func_logl+:} false; then : |
cd9a469c | 20501 | $as_echo_n "(cached) " >&6 |
d213114b | 20502 | else |
7d9455ce | 20503 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20504 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20505 | fi |
cd9a469c | 20506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20507 | /* end confdefs.h. */ |
20508 | ||
7d9455ce | 20509 | #ifdef HAVE_COMPLEX_H |
20510 | #include <complex.h> | |
d213114b | 20511 | #endif |
7d9455ce | 20512 | #ifdef HAVE_MATH_H |
20513 | #include <math.h> | |
20514 | #endif | |
20515 | ||
20516 | int (*ptr)() = (int (*)())logl; | |
20517 | ||
d213114b | 20518 | int |
20519 | main () | |
20520 | { | |
d213114b | 20521 | return 0; |
20522 | } | |
7d9455ce | 20523 | |
d213114b | 20524 | _ACEOF |
cd9a469c | 20525 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20526 | gcc_cv_math_func_logl=yes |
d213114b | 20527 | else |
7d9455ce | 20528 | gcc_cv_math_func_logl=no |
d213114b | 20529 | fi |
cd9a469c | 20530 | rm -f core conftest.err conftest.$ac_objext \ |
20531 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20532 | fi |
7d9455ce | 20533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20534 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20535 | if test $gcc_cv_math_func_logl = yes; then | |
bd647a17 | 20536 | |
6affa8e1 | 20537 | cat >>confdefs.h <<_ACEOF |
20538 | #define HAVE_LOGL 1 | |
20539 | _ACEOF | |
7d9455ce | 20540 | |
20541 | fi | |
20542 | ||
d213114b | 20543 | |
d213114b | 20544 | |
d213114b | 20545 | |
7d9455ce | 20546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20547 | $as_echo_n "checking for clogf... " >&6; } | |
f00f02a3 | 20548 | if ${gcc_cv_math_func_clogf+:} false; then : |
cd9a469c | 20549 | $as_echo_n "(cached) " >&6 |
d213114b | 20550 | else |
7d9455ce | 20551 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20552 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20553 | fi |
cd9a469c | 20554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20555 | /* end confdefs.h. */ |
20556 | ||
7d9455ce | 20557 | #ifdef HAVE_COMPLEX_H |
20558 | #include <complex.h> | |
20559 | #endif | |
20560 | #ifdef HAVE_MATH_H | |
20561 | #include <math.h> | |
d213114b | 20562 | #endif |
7d9455ce | 20563 | |
20564 | int (*ptr)() = (int (*)())clogf; | |
20565 | ||
d213114b | 20566 | int |
20567 | main () | |
20568 | { | |
d213114b | 20569 | return 0; |
20570 | } | |
7d9455ce | 20571 | |
d213114b | 20572 | _ACEOF |
cd9a469c | 20573 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20574 | gcc_cv_math_func_clogf=yes |
d213114b | 20575 | else |
7d9455ce | 20576 | gcc_cv_math_func_clogf=no |
d213114b | 20577 | fi |
cd9a469c | 20578 | rm -f core conftest.err conftest.$ac_objext \ |
20579 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20580 | fi |
7d9455ce | 20581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20582 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20583 | if test $gcc_cv_math_func_clogf = yes; then | |
bd647a17 | 20584 | |
6affa8e1 | 20585 | cat >>confdefs.h <<_ACEOF |
20586 | #define HAVE_CLOGF 1 | |
20587 | _ACEOF | |
7d9455ce | 20588 | |
20589 | fi | |
d213114b | 20590 | |
d213114b | 20591 | |
d213114b | 20592 | |
7d9455ce | 20593 | |
20594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20595 | $as_echo_n "checking for clog... " >&6; } | |
f00f02a3 | 20596 | if ${gcc_cv_math_func_clog+:} false; then : |
cd9a469c | 20597 | $as_echo_n "(cached) " >&6 |
d213114b | 20598 | else |
7d9455ce | 20599 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20600 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20601 | fi |
cd9a469c | 20602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20603 | /* end confdefs.h. */ |
20604 | ||
7d9455ce | 20605 | #ifdef HAVE_COMPLEX_H |
20606 | #include <complex.h> | |
d213114b | 20607 | #endif |
7d9455ce | 20608 | #ifdef HAVE_MATH_H |
20609 | #include <math.h> | |
20610 | #endif | |
20611 | ||
20612 | int (*ptr)() = (int (*)())clog; | |
20613 | ||
d213114b | 20614 | int |
20615 | main () | |
20616 | { | |
d213114b | 20617 | return 0; |
20618 | } | |
7d9455ce | 20619 | |
d213114b | 20620 | _ACEOF |
cd9a469c | 20621 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20622 | gcc_cv_math_func_clog=yes |
d213114b | 20623 | else |
7d9455ce | 20624 | gcc_cv_math_func_clog=no |
d213114b | 20625 | fi |
cd9a469c | 20626 | rm -f core conftest.err conftest.$ac_objext \ |
20627 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20628 | fi |
7d9455ce | 20629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20630 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20631 | if test $gcc_cv_math_func_clog = yes; then | |
bd647a17 | 20632 | |
6affa8e1 | 20633 | cat >>confdefs.h <<_ACEOF |
20634 | #define HAVE_CLOG 1 | |
20635 | _ACEOF | |
d213114b | 20636 | |
7d9455ce | 20637 | fi |
d213114b | 20638 | |
d213114b | 20639 | |
7d9455ce | 20640 | |
20641 | ||
20642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20643 | $as_echo_n "checking for clogl... " >&6; } | |
f00f02a3 | 20644 | if ${gcc_cv_math_func_clogl+:} false; then : |
cd9a469c | 20645 | $as_echo_n "(cached) " >&6 |
d213114b | 20646 | else |
7d9455ce | 20647 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20648 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20649 | fi |
cd9a469c | 20650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20651 | /* end confdefs.h. */ |
20652 | ||
7d9455ce | 20653 | #ifdef HAVE_COMPLEX_H |
20654 | #include <complex.h> | |
20655 | #endif | |
20656 | #ifdef HAVE_MATH_H | |
20657 | #include <math.h> | |
d213114b | 20658 | #endif |
7d9455ce | 20659 | |
20660 | int (*ptr)() = (int (*)())clogl; | |
20661 | ||
d213114b | 20662 | int |
20663 | main () | |
20664 | { | |
d213114b | 20665 | return 0; |
20666 | } | |
7d9455ce | 20667 | |
d213114b | 20668 | _ACEOF |
cd9a469c | 20669 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20670 | gcc_cv_math_func_clogl=yes |
d213114b | 20671 | else |
7d9455ce | 20672 | gcc_cv_math_func_clogl=no |
d213114b | 20673 | fi |
cd9a469c | 20674 | rm -f core conftest.err conftest.$ac_objext \ |
20675 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20676 | fi |
7d9455ce | 20677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20678 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20679 | if test $gcc_cv_math_func_clogl = yes; then | |
bd647a17 | 20680 | |
6affa8e1 | 20681 | cat >>confdefs.h <<_ACEOF |
20682 | #define HAVE_CLOGL 1 | |
20683 | _ACEOF | |
7d9455ce | 20684 | |
20685 | fi | |
d213114b | 20686 | |
d213114b | 20687 | |
d213114b | 20688 | |
7d9455ce | 20689 | |
20690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
20691 | $as_echo_n "checking for log10f... " >&6; } | |
f00f02a3 | 20692 | if ${gcc_cv_math_func_log10f+:} false; then : |
cd9a469c | 20693 | $as_echo_n "(cached) " >&6 |
d213114b | 20694 | else |
7d9455ce | 20695 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20696 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20697 | fi |
cd9a469c | 20698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20699 | /* end confdefs.h. */ |
20700 | ||
7d9455ce | 20701 | #ifdef HAVE_COMPLEX_H |
20702 | #include <complex.h> | |
d213114b | 20703 | #endif |
7d9455ce | 20704 | #ifdef HAVE_MATH_H |
20705 | #include <math.h> | |
20706 | #endif | |
20707 | ||
20708 | int (*ptr)() = (int (*)())log10f; | |
20709 | ||
d213114b | 20710 | int |
20711 | main () | |
20712 | { | |
d213114b | 20713 | return 0; |
20714 | } | |
7d9455ce | 20715 | |
d213114b | 20716 | _ACEOF |
cd9a469c | 20717 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20718 | gcc_cv_math_func_log10f=yes |
d213114b | 20719 | else |
7d9455ce | 20720 | gcc_cv_math_func_log10f=no |
d213114b | 20721 | fi |
cd9a469c | 20722 | rm -f core conftest.err conftest.$ac_objext \ |
20723 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20724 | fi |
7d9455ce | 20725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
20726 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
20727 | if test $gcc_cv_math_func_log10f = yes; then | |
bd647a17 | 20728 | |
6affa8e1 | 20729 | cat >>confdefs.h <<_ACEOF |
20730 | #define HAVE_LOG10F 1 | |
20731 | _ACEOF | |
7d9455ce | 20732 | |
20733 | fi | |
20734 | ||
d213114b | 20735 | |
d213114b | 20736 | |
d213114b | 20737 | |
7d9455ce | 20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
20739 | $as_echo_n "checking for log10... " >&6; } | |
f00f02a3 | 20740 | if ${gcc_cv_math_func_log10+:} false; then : |
cd9a469c | 20741 | $as_echo_n "(cached) " >&6 |
d213114b | 20742 | else |
7d9455ce | 20743 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20744 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20745 | fi |
cd9a469c | 20746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20747 | /* end confdefs.h. */ |
20748 | ||
7d9455ce | 20749 | #ifdef HAVE_COMPLEX_H |
20750 | #include <complex.h> | |
20751 | #endif | |
20752 | #ifdef HAVE_MATH_H | |
20753 | #include <math.h> | |
d213114b | 20754 | #endif |
7d9455ce | 20755 | |
20756 | int (*ptr)() = (int (*)())log10; | |
20757 | ||
d213114b | 20758 | int |
20759 | main () | |
20760 | { | |
d213114b | 20761 | return 0; |
20762 | } | |
7d9455ce | 20763 | |
d213114b | 20764 | _ACEOF |
cd9a469c | 20765 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20766 | gcc_cv_math_func_log10=yes |
d213114b | 20767 | else |
7d9455ce | 20768 | gcc_cv_math_func_log10=no |
d213114b | 20769 | fi |
cd9a469c | 20770 | rm -f core conftest.err conftest.$ac_objext \ |
20771 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20772 | fi |
7d9455ce | 20773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
20774 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
20775 | if test $gcc_cv_math_func_log10 = yes; then | |
bd647a17 | 20776 | |
6affa8e1 | 20777 | cat >>confdefs.h <<_ACEOF |
20778 | #define HAVE_LOG10 1 | |
20779 | _ACEOF | |
7d9455ce | 20780 | |
20781 | fi | |
d213114b | 20782 | |
d213114b | 20783 | |
d213114b | 20784 | |
7d9455ce | 20785 | |
20786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
20787 | $as_echo_n "checking for log10l... " >&6; } | |
f00f02a3 | 20788 | if ${gcc_cv_math_func_log10l+:} false; then : |
cd9a469c | 20789 | $as_echo_n "(cached) " >&6 |
d213114b | 20790 | else |
7d9455ce | 20791 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20792 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20793 | fi |
cd9a469c | 20794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20795 | /* end confdefs.h. */ |
20796 | ||
7d9455ce | 20797 | #ifdef HAVE_COMPLEX_H |
20798 | #include <complex.h> | |
d213114b | 20799 | #endif |
7d9455ce | 20800 | #ifdef HAVE_MATH_H |
20801 | #include <math.h> | |
20802 | #endif | |
20803 | ||
20804 | int (*ptr)() = (int (*)())log10l; | |
20805 | ||
d213114b | 20806 | int |
20807 | main () | |
20808 | { | |
d213114b | 20809 | return 0; |
20810 | } | |
7d9455ce | 20811 | |
d213114b | 20812 | _ACEOF |
cd9a469c | 20813 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20814 | gcc_cv_math_func_log10l=yes |
d213114b | 20815 | else |
7d9455ce | 20816 | gcc_cv_math_func_log10l=no |
d213114b | 20817 | fi |
cd9a469c | 20818 | rm -f core conftest.err conftest.$ac_objext \ |
20819 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20820 | fi |
7d9455ce | 20821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
20822 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
20823 | if test $gcc_cv_math_func_log10l = yes; then | |
bd647a17 | 20824 | |
6affa8e1 | 20825 | cat >>confdefs.h <<_ACEOF |
20826 | #define HAVE_LOG10L 1 | |
20827 | _ACEOF | |
d213114b | 20828 | |
7d9455ce | 20829 | fi |
d213114b | 20830 | |
d213114b | 20831 | |
7d9455ce | 20832 | |
20833 | ||
20834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
20835 | $as_echo_n "checking for clog10f... " >&6; } | |
f00f02a3 | 20836 | if ${gcc_cv_math_func_clog10f+:} false; then : |
cd9a469c | 20837 | $as_echo_n "(cached) " >&6 |
d213114b | 20838 | else |
7d9455ce | 20839 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20840 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20841 | fi |
cd9a469c | 20842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20843 | /* end confdefs.h. */ |
20844 | ||
7d9455ce | 20845 | #ifdef HAVE_COMPLEX_H |
20846 | #include <complex.h> | |
20847 | #endif | |
20848 | #ifdef HAVE_MATH_H | |
20849 | #include <math.h> | |
d213114b | 20850 | #endif |
7d9455ce | 20851 | |
20852 | int (*ptr)() = (int (*)())clog10f; | |
20853 | ||
d213114b | 20854 | int |
20855 | main () | |
20856 | { | |
d213114b | 20857 | return 0; |
20858 | } | |
7d9455ce | 20859 | |
d213114b | 20860 | _ACEOF |
cd9a469c | 20861 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20862 | gcc_cv_math_func_clog10f=yes |
d213114b | 20863 | else |
7d9455ce | 20864 | gcc_cv_math_func_clog10f=no |
d213114b | 20865 | fi |
cd9a469c | 20866 | rm -f core conftest.err conftest.$ac_objext \ |
20867 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20868 | fi |
7d9455ce | 20869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
20870 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
20871 | if test $gcc_cv_math_func_clog10f = yes; then | |
bd647a17 | 20872 | |
6affa8e1 | 20873 | cat >>confdefs.h <<_ACEOF |
20874 | #define HAVE_CLOG10F 1 | |
20875 | _ACEOF | |
7d9455ce | 20876 | |
20877 | fi | |
d213114b | 20878 | |
d213114b | 20879 | |
d213114b | 20880 | |
7d9455ce | 20881 | |
20882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
20883 | $as_echo_n "checking for clog10... " >&6; } | |
f00f02a3 | 20884 | if ${gcc_cv_math_func_clog10+:} false; then : |
cd9a469c | 20885 | $as_echo_n "(cached) " >&6 |
d213114b | 20886 | else |
7d9455ce | 20887 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20888 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20889 | fi |
cd9a469c | 20890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20891 | /* end confdefs.h. */ |
20892 | ||
7d9455ce | 20893 | #ifdef HAVE_COMPLEX_H |
20894 | #include <complex.h> | |
d213114b | 20895 | #endif |
7d9455ce | 20896 | #ifdef HAVE_MATH_H |
20897 | #include <math.h> | |
20898 | #endif | |
20899 | ||
20900 | int (*ptr)() = (int (*)())clog10; | |
20901 | ||
d213114b | 20902 | int |
20903 | main () | |
20904 | { | |
cd9a469c | 20905 | return 0; |
20906 | } | |
7d9455ce | 20907 | |
cd9a469c | 20908 | _ACEOF |
20909 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 20910 | gcc_cv_math_func_clog10=yes |
d213114b | 20911 | else |
7d9455ce | 20912 | gcc_cv_math_func_clog10=no |
d213114b | 20913 | fi |
cd9a469c | 20914 | rm -f core conftest.err conftest.$ac_objext \ |
20915 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20916 | fi |
7d9455ce | 20917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
20918 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
20919 | if test $gcc_cv_math_func_clog10 = yes; then | |
bd647a17 | 20920 | |
6affa8e1 | 20921 | cat >>confdefs.h <<_ACEOF |
20922 | #define HAVE_CLOG10 1 | |
20923 | _ACEOF | |
7d9455ce | 20924 | |
20925 | fi | |
20926 | ||
d213114b | 20927 | |
d213114b | 20928 | |
d213114b | 20929 | |
7d9455ce | 20930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
20931 | $as_echo_n "checking for clog10l... " >&6; } | |
f00f02a3 | 20932 | if ${gcc_cv_math_func_clog10l+:} false; then : |
cd9a469c | 20933 | $as_echo_n "(cached) " >&6 |
d213114b | 20934 | else |
7d9455ce | 20935 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20936 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20937 | fi |
cd9a469c | 20938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20939 | /* end confdefs.h. */ |
20940 | ||
7d9455ce | 20941 | #ifdef HAVE_COMPLEX_H |
20942 | #include <complex.h> | |
20943 | #endif | |
20944 | #ifdef HAVE_MATH_H | |
20945 | #include <math.h> | |
d213114b | 20946 | #endif |
7d9455ce | 20947 | |
20948 | int (*ptr)() = (int (*)())clog10l; | |
20949 | ||
d213114b | 20950 | int |
20951 | main () | |
20952 | { | |
d213114b | 20953 | return 0; |
20954 | } | |
7d9455ce | 20955 | |
d213114b | 20956 | _ACEOF |
cd9a469c | 20957 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20958 | gcc_cv_math_func_clog10l=yes |
d213114b | 20959 | else |
7d9455ce | 20960 | gcc_cv_math_func_clog10l=no |
d213114b | 20961 | fi |
cd9a469c | 20962 | rm -f core conftest.err conftest.$ac_objext \ |
20963 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20964 | fi |
7d9455ce | 20965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
20966 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
20967 | if test $gcc_cv_math_func_clog10l = yes; then | |
bd647a17 | 20968 | |
6affa8e1 | 20969 | cat >>confdefs.h <<_ACEOF |
20970 | #define HAVE_CLOG10L 1 | |
20971 | _ACEOF | |
7d9455ce | 20972 | |
20973 | fi | |
d213114b | 20974 | |
d213114b | 20975 | |
d213114b | 20976 | |
7d9455ce | 20977 | |
20978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
20979 | $as_echo_n "checking for nextafterf... " >&6; } | |
f00f02a3 | 20980 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
cd9a469c | 20981 | $as_echo_n "(cached) " >&6 |
d213114b | 20982 | else |
7d9455ce | 20983 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20984 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20985 | fi |
cd9a469c | 20986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20987 | /* end confdefs.h. */ |
20988 | ||
7d9455ce | 20989 | #ifdef HAVE_COMPLEX_H |
20990 | #include <complex.h> | |
d213114b | 20991 | #endif |
7d9455ce | 20992 | #ifdef HAVE_MATH_H |
20993 | #include <math.h> | |
20994 | #endif | |
20995 | ||
20996 | int (*ptr)() = (int (*)())nextafterf; | |
20997 | ||
d213114b | 20998 | int |
20999 | main () | |
21000 | { | |
d213114b | 21001 | return 0; |
21002 | } | |
7d9455ce | 21003 | |
d213114b | 21004 | _ACEOF |
cd9a469c | 21005 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21006 | gcc_cv_math_func_nextafterf=yes |
d213114b | 21007 | else |
7d9455ce | 21008 | gcc_cv_math_func_nextafterf=no |
d213114b | 21009 | fi |
cd9a469c | 21010 | rm -f core conftest.err conftest.$ac_objext \ |
21011 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21012 | fi |
7d9455ce | 21013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21014 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21015 | if test $gcc_cv_math_func_nextafterf = yes; then | |
bd647a17 | 21016 | |
6affa8e1 | 21017 | cat >>confdefs.h <<_ACEOF |
21018 | #define HAVE_NEXTAFTERF 1 | |
21019 | _ACEOF | |
d213114b | 21020 | |
7d9455ce | 21021 | fi |
d213114b | 21022 | |
d213114b | 21023 | |
7d9455ce | 21024 | |
21025 | ||
21026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21027 | $as_echo_n "checking for nextafter... " >&6; } | |
f00f02a3 | 21028 | if ${gcc_cv_math_func_nextafter+:} false; then : |
cd9a469c | 21029 | $as_echo_n "(cached) " >&6 |
d213114b | 21030 | else |
7d9455ce | 21031 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21032 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21033 | fi |
cd9a469c | 21034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21035 | /* end confdefs.h. */ |
21036 | ||
7d9455ce | 21037 | #ifdef HAVE_COMPLEX_H |
21038 | #include <complex.h> | |
21039 | #endif | |
21040 | #ifdef HAVE_MATH_H | |
21041 | #include <math.h> | |
d213114b | 21042 | #endif |
7d9455ce | 21043 | |
21044 | int (*ptr)() = (int (*)())nextafter; | |
21045 | ||
d213114b | 21046 | int |
21047 | main () | |
21048 | { | |
d213114b | 21049 | return 0; |
21050 | } | |
7d9455ce | 21051 | |
d213114b | 21052 | _ACEOF |
cd9a469c | 21053 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21054 | gcc_cv_math_func_nextafter=yes |
d213114b | 21055 | else |
7d9455ce | 21056 | gcc_cv_math_func_nextafter=no |
d213114b | 21057 | fi |
cd9a469c | 21058 | rm -f core conftest.err conftest.$ac_objext \ |
21059 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21060 | fi |
7d9455ce | 21061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21062 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21063 | if test $gcc_cv_math_func_nextafter = yes; then | |
bd647a17 | 21064 | |
6affa8e1 | 21065 | cat >>confdefs.h <<_ACEOF |
21066 | #define HAVE_NEXTAFTER 1 | |
21067 | _ACEOF | |
7d9455ce | 21068 | |
21069 | fi | |
d213114b | 21070 | |
d213114b | 21071 | |
d213114b | 21072 | |
7d9455ce | 21073 | |
21074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21075 | $as_echo_n "checking for nextafterl... " >&6; } | |
f00f02a3 | 21076 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
cd9a469c | 21077 | $as_echo_n "(cached) " >&6 |
d213114b | 21078 | else |
7d9455ce | 21079 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21080 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21081 | fi |
cd9a469c | 21082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21083 | /* end confdefs.h. */ |
21084 | ||
7d9455ce | 21085 | #ifdef HAVE_COMPLEX_H |
21086 | #include <complex.h> | |
d213114b | 21087 | #endif |
7d9455ce | 21088 | #ifdef HAVE_MATH_H |
21089 | #include <math.h> | |
21090 | #endif | |
21091 | ||
21092 | int (*ptr)() = (int (*)())nextafterl; | |
21093 | ||
d213114b | 21094 | int |
21095 | main () | |
21096 | { | |
d213114b | 21097 | return 0; |
21098 | } | |
7d9455ce | 21099 | |
d213114b | 21100 | _ACEOF |
cd9a469c | 21101 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21102 | gcc_cv_math_func_nextafterl=yes |
d213114b | 21103 | else |
7d9455ce | 21104 | gcc_cv_math_func_nextafterl=no |
d213114b | 21105 | fi |
cd9a469c | 21106 | rm -f core conftest.err conftest.$ac_objext \ |
21107 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21108 | fi |
7d9455ce | 21109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21110 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21111 | if test $gcc_cv_math_func_nextafterl = yes; then | |
bd647a17 | 21112 | |
6affa8e1 | 21113 | cat >>confdefs.h <<_ACEOF |
21114 | #define HAVE_NEXTAFTERL 1 | |
21115 | _ACEOF | |
7d9455ce | 21116 | |
21117 | fi | |
21118 | ||
d213114b | 21119 | |
d213114b | 21120 | |
d213114b | 21121 | |
7d9455ce | 21122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21123 | $as_echo_n "checking for powf... " >&6; } | |
f00f02a3 | 21124 | if ${gcc_cv_math_func_powf+:} false; then : |
cd9a469c | 21125 | $as_echo_n "(cached) " >&6 |
d213114b | 21126 | else |
7d9455ce | 21127 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21128 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21129 | fi |
cd9a469c | 21130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21131 | /* end confdefs.h. */ |
21132 | ||
7d9455ce | 21133 | #ifdef HAVE_COMPLEX_H |
21134 | #include <complex.h> | |
21135 | #endif | |
21136 | #ifdef HAVE_MATH_H | |
21137 | #include <math.h> | |
d213114b | 21138 | #endif |
7d9455ce | 21139 | |
21140 | int (*ptr)() = (int (*)())powf; | |
21141 | ||
d213114b | 21142 | int |
21143 | main () | |
21144 | { | |
d213114b | 21145 | return 0; |
21146 | } | |
7d9455ce | 21147 | |
d213114b | 21148 | _ACEOF |
cd9a469c | 21149 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21150 | gcc_cv_math_func_powf=yes |
d213114b | 21151 | else |
7d9455ce | 21152 | gcc_cv_math_func_powf=no |
d213114b | 21153 | fi |
cd9a469c | 21154 | rm -f core conftest.err conftest.$ac_objext \ |
21155 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21156 | fi |
7d9455ce | 21157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21158 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21159 | if test $gcc_cv_math_func_powf = yes; then | |
bd647a17 | 21160 | |
6affa8e1 | 21161 | cat >>confdefs.h <<_ACEOF |
21162 | #define HAVE_POWF 1 | |
21163 | _ACEOF | |
7d9455ce | 21164 | |
21165 | fi | |
d213114b | 21166 | |
d213114b | 21167 | |
d213114b | 21168 | |
7d9455ce | 21169 | |
21170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21171 | $as_echo_n "checking for pow... " >&6; } | |
f00f02a3 | 21172 | if ${gcc_cv_math_func_pow+:} false; then : |
cd9a469c | 21173 | $as_echo_n "(cached) " >&6 |
d213114b | 21174 | else |
7d9455ce | 21175 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21176 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21177 | fi |
cd9a469c | 21178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21179 | /* end confdefs.h. */ |
21180 | ||
7d9455ce | 21181 | #ifdef HAVE_COMPLEX_H |
21182 | #include <complex.h> | |
d213114b | 21183 | #endif |
7d9455ce | 21184 | #ifdef HAVE_MATH_H |
21185 | #include <math.h> | |
21186 | #endif | |
21187 | ||
21188 | int (*ptr)() = (int (*)())pow; | |
21189 | ||
d213114b | 21190 | int |
21191 | main () | |
21192 | { | |
d213114b | 21193 | return 0; |
21194 | } | |
7d9455ce | 21195 | |
d213114b | 21196 | _ACEOF |
cd9a469c | 21197 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21198 | gcc_cv_math_func_pow=yes |
d213114b | 21199 | else |
7d9455ce | 21200 | gcc_cv_math_func_pow=no |
d213114b | 21201 | fi |
cd9a469c | 21202 | rm -f core conftest.err conftest.$ac_objext \ |
21203 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21204 | fi |
7d9455ce | 21205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21206 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21207 | if test $gcc_cv_math_func_pow = yes; then | |
bd647a17 | 21208 | |
6affa8e1 | 21209 | cat >>confdefs.h <<_ACEOF |
21210 | #define HAVE_POW 1 | |
21211 | _ACEOF | |
d213114b | 21212 | |
7d9455ce | 21213 | fi |
d213114b | 21214 | |
d213114b | 21215 | |
7d9455ce | 21216 | |
21217 | ||
7d9455ce | 21218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21219 | $as_echo_n "checking for cpowf... " >&6; } | |
f00f02a3 | 21220 | if ${gcc_cv_math_func_cpowf+:} false; then : |
cd9a469c | 21221 | $as_echo_n "(cached) " >&6 |
d213114b | 21222 | else |
7d9455ce | 21223 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21224 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21225 | fi |
cd9a469c | 21226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21227 | /* end confdefs.h. */ |
21228 | ||
7d9455ce | 21229 | #ifdef HAVE_COMPLEX_H |
21230 | #include <complex.h> | |
d213114b | 21231 | #endif |
7d9455ce | 21232 | #ifdef HAVE_MATH_H |
21233 | #include <math.h> | |
21234 | #endif | |
21235 | ||
21236 | int (*ptr)() = (int (*)())cpowf; | |
21237 | ||
d213114b | 21238 | int |
21239 | main () | |
21240 | { | |
d213114b | 21241 | return 0; |
21242 | } | |
7d9455ce | 21243 | |
d213114b | 21244 | _ACEOF |
cd9a469c | 21245 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21246 | gcc_cv_math_func_cpowf=yes |
d213114b | 21247 | else |
7d9455ce | 21248 | gcc_cv_math_func_cpowf=no |
d213114b | 21249 | fi |
cd9a469c | 21250 | rm -f core conftest.err conftest.$ac_objext \ |
21251 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21252 | fi |
7d9455ce | 21253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21254 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21255 | if test $gcc_cv_math_func_cpowf = yes; then | |
bd647a17 | 21256 | |
6affa8e1 | 21257 | cat >>confdefs.h <<_ACEOF |
21258 | #define HAVE_CPOWF 1 | |
21259 | _ACEOF | |
7d9455ce | 21260 | |
21261 | fi | |
21262 | ||
d213114b | 21263 | |
d213114b | 21264 | |
d213114b | 21265 | |
7d9455ce | 21266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21267 | $as_echo_n "checking for cpow... " >&6; } | |
f00f02a3 | 21268 | if ${gcc_cv_math_func_cpow+:} false; then : |
cd9a469c | 21269 | $as_echo_n "(cached) " >&6 |
d213114b | 21270 | else |
7d9455ce | 21271 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21272 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21273 | fi |
cd9a469c | 21274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21275 | /* end confdefs.h. */ |
21276 | ||
7d9455ce | 21277 | #ifdef HAVE_COMPLEX_H |
21278 | #include <complex.h> | |
21279 | #endif | |
21280 | #ifdef HAVE_MATH_H | |
21281 | #include <math.h> | |
d213114b | 21282 | #endif |
7d9455ce | 21283 | |
21284 | int (*ptr)() = (int (*)())cpow; | |
21285 | ||
d213114b | 21286 | int |
21287 | main () | |
21288 | { | |
d213114b | 21289 | return 0; |
21290 | } | |
7d9455ce | 21291 | |
d213114b | 21292 | _ACEOF |
cd9a469c | 21293 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21294 | gcc_cv_math_func_cpow=yes |
d213114b | 21295 | else |
7d9455ce | 21296 | gcc_cv_math_func_cpow=no |
d213114b | 21297 | fi |
cd9a469c | 21298 | rm -f core conftest.err conftest.$ac_objext \ |
21299 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21300 | fi |
7d9455ce | 21301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21302 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21303 | if test $gcc_cv_math_func_cpow = yes; then | |
bd647a17 | 21304 | |
6affa8e1 | 21305 | cat >>confdefs.h <<_ACEOF |
21306 | #define HAVE_CPOW 1 | |
21307 | _ACEOF | |
7d9455ce | 21308 | |
21309 | fi | |
d213114b | 21310 | |
d213114b | 21311 | |
d213114b | 21312 | |
7d9455ce | 21313 | |
21314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21315 | $as_echo_n "checking for cpowl... " >&6; } | |
f00f02a3 | 21316 | if ${gcc_cv_math_func_cpowl+:} false; then : |
cd9a469c | 21317 | $as_echo_n "(cached) " >&6 |
d213114b | 21318 | else |
7d9455ce | 21319 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21320 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21321 | fi |
cd9a469c | 21322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21323 | /* end confdefs.h. */ |
21324 | ||
7d9455ce | 21325 | #ifdef HAVE_COMPLEX_H |
21326 | #include <complex.h> | |
d213114b | 21327 | #endif |
7d9455ce | 21328 | #ifdef HAVE_MATH_H |
21329 | #include <math.h> | |
21330 | #endif | |
21331 | ||
21332 | int (*ptr)() = (int (*)())cpowl; | |
21333 | ||
d213114b | 21334 | int |
21335 | main () | |
21336 | { | |
d213114b | 21337 | return 0; |
21338 | } | |
7d9455ce | 21339 | |
d213114b | 21340 | _ACEOF |
cd9a469c | 21341 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21342 | gcc_cv_math_func_cpowl=yes |
d213114b | 21343 | else |
7d9455ce | 21344 | gcc_cv_math_func_cpowl=no |
d213114b | 21345 | fi |
cd9a469c | 21346 | rm -f core conftest.err conftest.$ac_objext \ |
21347 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21348 | fi |
7d9455ce | 21349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21350 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21351 | if test $gcc_cv_math_func_cpowl = yes; then | |
bd647a17 | 21352 | |
6affa8e1 | 21353 | cat >>confdefs.h <<_ACEOF |
21354 | #define HAVE_CPOWL 1 | |
21355 | _ACEOF | |
d213114b | 21356 | |
7d9455ce | 21357 | fi |
d213114b | 21358 | |
d213114b | 21359 | |
7d9455ce | 21360 | |
21361 | ||
21362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21363 | $as_echo_n "checking for roundf... " >&6; } | |
f00f02a3 | 21364 | if ${gcc_cv_math_func_roundf+:} false; then : |
cd9a469c | 21365 | $as_echo_n "(cached) " >&6 |
d213114b | 21366 | else |
7d9455ce | 21367 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21368 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21369 | fi |
cd9a469c | 21370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21371 | /* end confdefs.h. */ |
21372 | ||
7d9455ce | 21373 | #ifdef HAVE_COMPLEX_H |
21374 | #include <complex.h> | |
21375 | #endif | |
21376 | #ifdef HAVE_MATH_H | |
21377 | #include <math.h> | |
d213114b | 21378 | #endif |
7d9455ce | 21379 | |
21380 | int (*ptr)() = (int (*)())roundf; | |
21381 | ||
d213114b | 21382 | int |
21383 | main () | |
21384 | { | |
d213114b | 21385 | return 0; |
21386 | } | |
7d9455ce | 21387 | |
d213114b | 21388 | _ACEOF |
cd9a469c | 21389 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21390 | gcc_cv_math_func_roundf=yes |
d213114b | 21391 | else |
7d9455ce | 21392 | gcc_cv_math_func_roundf=no |
d213114b | 21393 | fi |
cd9a469c | 21394 | rm -f core conftest.err conftest.$ac_objext \ |
21395 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21396 | fi |
7d9455ce | 21397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21398 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21399 | if test $gcc_cv_math_func_roundf = yes; then | |
bd647a17 | 21400 | |
6affa8e1 | 21401 | cat >>confdefs.h <<_ACEOF |
21402 | #define HAVE_ROUNDF 1 | |
21403 | _ACEOF | |
7d9455ce | 21404 | |
21405 | fi | |
d213114b | 21406 | |
d213114b | 21407 | |
d213114b | 21408 | |
7d9455ce | 21409 | |
21410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21411 | $as_echo_n "checking for round... " >&6; } | |
f00f02a3 | 21412 | if ${gcc_cv_math_func_round+:} false; then : |
cd9a469c | 21413 | $as_echo_n "(cached) " >&6 |
d213114b | 21414 | else |
7d9455ce | 21415 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21416 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21417 | fi |
cd9a469c | 21418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21419 | /* end confdefs.h. */ |
21420 | ||
7d9455ce | 21421 | #ifdef HAVE_COMPLEX_H |
21422 | #include <complex.h> | |
d213114b | 21423 | #endif |
7d9455ce | 21424 | #ifdef HAVE_MATH_H |
21425 | #include <math.h> | |
21426 | #endif | |
21427 | ||
21428 | int (*ptr)() = (int (*)())round; | |
21429 | ||
d213114b | 21430 | int |
21431 | main () | |
21432 | { | |
d213114b | 21433 | return 0; |
21434 | } | |
7d9455ce | 21435 | |
d213114b | 21436 | _ACEOF |
cd9a469c | 21437 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21438 | gcc_cv_math_func_round=yes |
d213114b | 21439 | else |
7d9455ce | 21440 | gcc_cv_math_func_round=no |
d213114b | 21441 | fi |
cd9a469c | 21442 | rm -f core conftest.err conftest.$ac_objext \ |
21443 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21444 | fi |
7d9455ce | 21445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21446 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21447 | if test $gcc_cv_math_func_round = yes; then | |
bd647a17 | 21448 | |
6affa8e1 | 21449 | cat >>confdefs.h <<_ACEOF |
21450 | #define HAVE_ROUND 1 | |
21451 | _ACEOF | |
7d9455ce | 21452 | |
21453 | fi | |
21454 | ||
d213114b | 21455 | |
d213114b | 21456 | |
d213114b | 21457 | |
7d9455ce | 21458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21459 | $as_echo_n "checking for roundl... " >&6; } | |
f00f02a3 | 21460 | if ${gcc_cv_math_func_roundl+:} false; then : |
cd9a469c | 21461 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21462 | else |
7d9455ce | 21463 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21464 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21465 | fi |
cd9a469c | 21466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21467 | /* end confdefs.h. */ |
21468 | ||
7d9455ce | 21469 | #ifdef HAVE_COMPLEX_H |
21470 | #include <complex.h> | |
21471 | #endif | |
21472 | #ifdef HAVE_MATH_H | |
21473 | #include <math.h> | |
ef080b63 | 21474 | #endif |
7d9455ce | 21475 | |
21476 | int (*ptr)() = (int (*)())roundl; | |
21477 | ||
ef080b63 | 21478 | int |
21479 | main () | |
21480 | { | |
ef080b63 | 21481 | return 0; |
21482 | } | |
7d9455ce | 21483 | |
ef080b63 | 21484 | _ACEOF |
cd9a469c | 21485 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21486 | gcc_cv_math_func_roundl=yes |
ef080b63 | 21487 | else |
7d9455ce | 21488 | gcc_cv_math_func_roundl=no |
ef080b63 | 21489 | fi |
cd9a469c | 21490 | rm -f core conftest.err conftest.$ac_objext \ |
21491 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21492 | fi |
7d9455ce | 21493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21494 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21495 | if test $gcc_cv_math_func_roundl = yes; then | |
bd647a17 | 21496 | |
6affa8e1 | 21497 | cat >>confdefs.h <<_ACEOF |
21498 | #define HAVE_ROUNDL 1 | |
21499 | _ACEOF | |
7d9455ce | 21500 | |
21501 | fi | |
ef080b63 | 21502 | |
ef080b63 | 21503 | |
ef080b63 | 21504 | |
7d9455ce | 21505 | |
21506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21507 | $as_echo_n "checking for lroundf... " >&6; } | |
f00f02a3 | 21508 | if ${gcc_cv_math_func_lroundf+:} false; then : |
cd9a469c | 21509 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21510 | else |
7d9455ce | 21511 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21512 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21513 | fi |
cd9a469c | 21514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21515 | /* end confdefs.h. */ |
21516 | ||
7d9455ce | 21517 | #ifdef HAVE_COMPLEX_H |
21518 | #include <complex.h> | |
ef080b63 | 21519 | #endif |
7d9455ce | 21520 | #ifdef HAVE_MATH_H |
21521 | #include <math.h> | |
21522 | #endif | |
21523 | ||
21524 | int (*ptr)() = (int (*)())lroundf; | |
21525 | ||
ef080b63 | 21526 | int |
21527 | main () | |
21528 | { | |
ef080b63 | 21529 | return 0; |
21530 | } | |
7d9455ce | 21531 | |
ef080b63 | 21532 | _ACEOF |
cd9a469c | 21533 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21534 | gcc_cv_math_func_lroundf=yes |
ef080b63 | 21535 | else |
7d9455ce | 21536 | gcc_cv_math_func_lroundf=no |
ef080b63 | 21537 | fi |
cd9a469c | 21538 | rm -f core conftest.err conftest.$ac_objext \ |
21539 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21540 | fi |
7d9455ce | 21541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21542 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21543 | if test $gcc_cv_math_func_lroundf = yes; then | |
bd647a17 | 21544 | |
6affa8e1 | 21545 | cat >>confdefs.h <<_ACEOF |
21546 | #define HAVE_LROUNDF 1 | |
21547 | _ACEOF | |
ef080b63 | 21548 | |
7d9455ce | 21549 | fi |
ef080b63 | 21550 | |
ef080b63 | 21551 | |
7d9455ce | 21552 | |
21553 | ||
21554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21555 | $as_echo_n "checking for lround... " >&6; } | |
f00f02a3 | 21556 | if ${gcc_cv_math_func_lround+:} false; then : |
cd9a469c | 21557 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21558 | else |
7d9455ce | 21559 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21560 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21561 | fi |
cd9a469c | 21562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21563 | /* end confdefs.h. */ |
21564 | ||
7d9455ce | 21565 | #ifdef HAVE_COMPLEX_H |
21566 | #include <complex.h> | |
21567 | #endif | |
21568 | #ifdef HAVE_MATH_H | |
21569 | #include <math.h> | |
ef080b63 | 21570 | #endif |
7d9455ce | 21571 | |
21572 | int (*ptr)() = (int (*)())lround; | |
21573 | ||
ef080b63 | 21574 | int |
21575 | main () | |
21576 | { | |
ef080b63 | 21577 | return 0; |
21578 | } | |
7d9455ce | 21579 | |
ef080b63 | 21580 | _ACEOF |
cd9a469c | 21581 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21582 | gcc_cv_math_func_lround=yes |
ef080b63 | 21583 | else |
7d9455ce | 21584 | gcc_cv_math_func_lround=no |
ef080b63 | 21585 | fi |
cd9a469c | 21586 | rm -f core conftest.err conftest.$ac_objext \ |
21587 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21588 | fi |
7d9455ce | 21589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21590 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21591 | if test $gcc_cv_math_func_lround = yes; then | |
bd647a17 | 21592 | |
6affa8e1 | 21593 | cat >>confdefs.h <<_ACEOF |
21594 | #define HAVE_LROUND 1 | |
21595 | _ACEOF | |
7d9455ce | 21596 | |
21597 | fi | |
21598 | ||
ef080b63 | 21599 | |
ef080b63 | 21600 | |
ef080b63 | 21601 | |
7d9455ce | 21602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21603 | $as_echo_n "checking for lroundl... " >&6; } | |
f00f02a3 | 21604 | if ${gcc_cv_math_func_lroundl+:} false; then : |
cd9a469c | 21605 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21606 | else |
7d9455ce | 21607 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21608 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21609 | fi |
cd9a469c | 21610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21611 | /* end confdefs.h. */ |
21612 | ||
7d9455ce | 21613 | #ifdef HAVE_COMPLEX_H |
21614 | #include <complex.h> | |
21615 | #endif | |
21616 | #ifdef HAVE_MATH_H | |
21617 | #include <math.h> | |
ef080b63 | 21618 | #endif |
7d9455ce | 21619 | |
21620 | int (*ptr)() = (int (*)())lroundl; | |
21621 | ||
ef080b63 | 21622 | int |
21623 | main () | |
21624 | { | |
ef080b63 | 21625 | return 0; |
21626 | } | |
7d9455ce | 21627 | |
ef080b63 | 21628 | _ACEOF |
cd9a469c | 21629 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21630 | gcc_cv_math_func_lroundl=yes |
ef080b63 | 21631 | else |
7d9455ce | 21632 | gcc_cv_math_func_lroundl=no |
ef080b63 | 21633 | fi |
cd9a469c | 21634 | rm -f core conftest.err conftest.$ac_objext \ |
21635 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21636 | fi |
7d9455ce | 21637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21638 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21639 | if test $gcc_cv_math_func_lroundl = yes; then | |
bd647a17 | 21640 | |
6affa8e1 | 21641 | cat >>confdefs.h <<_ACEOF |
21642 | #define HAVE_LROUNDL 1 | |
21643 | _ACEOF | |
ef080b63 | 21644 | |
7d9455ce | 21645 | fi |
ef080b63 | 21646 | |
ef080b63 | 21647 | |
7d9455ce | 21648 | |
21649 | ||
21650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21651 | $as_echo_n "checking for llroundf... " >&6; } | |
f00f02a3 | 21652 | if ${gcc_cv_math_func_llroundf+:} false; then : |
cd9a469c | 21653 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21654 | else |
7d9455ce | 21655 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21656 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21657 | fi |
cd9a469c | 21658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21659 | /* end confdefs.h. */ |
21660 | ||
7d9455ce | 21661 | #ifdef HAVE_COMPLEX_H |
21662 | #include <complex.h> | |
ef080b63 | 21663 | #endif |
7d9455ce | 21664 | #ifdef HAVE_MATH_H |
21665 | #include <math.h> | |
21666 | #endif | |
21667 | ||
21668 | int (*ptr)() = (int (*)())llroundf; | |
21669 | ||
ef080b63 | 21670 | int |
21671 | main () | |
21672 | { | |
ef080b63 | 21673 | return 0; |
21674 | } | |
7d9455ce | 21675 | |
ef080b63 | 21676 | _ACEOF |
cd9a469c | 21677 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21678 | gcc_cv_math_func_llroundf=yes |
ef080b63 | 21679 | else |
7d9455ce | 21680 | gcc_cv_math_func_llroundf=no |
ef080b63 | 21681 | fi |
cd9a469c | 21682 | rm -f core conftest.err conftest.$ac_objext \ |
21683 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21684 | fi |
7d9455ce | 21685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21686 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21687 | if test $gcc_cv_math_func_llroundf = yes; then | |
bd647a17 | 21688 | |
6affa8e1 | 21689 | cat >>confdefs.h <<_ACEOF |
21690 | #define HAVE_LLROUNDF 1 | |
21691 | _ACEOF | |
ef080b63 | 21692 | |
7d9455ce | 21693 | fi |
ef080b63 | 21694 | |
ef080b63 | 21695 | |
7d9455ce | 21696 | |
21697 | ||
21698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
21699 | $as_echo_n "checking for llround... " >&6; } | |
f00f02a3 | 21700 | if ${gcc_cv_math_func_llround+:} false; then : |
cd9a469c | 21701 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21702 | else |
7d9455ce | 21703 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21704 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21705 | fi |
cd9a469c | 21706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21707 | /* end confdefs.h. */ |
21708 | ||
7d9455ce | 21709 | #ifdef HAVE_COMPLEX_H |
21710 | #include <complex.h> | |
21711 | #endif | |
21712 | #ifdef HAVE_MATH_H | |
21713 | #include <math.h> | |
ef080b63 | 21714 | #endif |
7d9455ce | 21715 | |
21716 | int (*ptr)() = (int (*)())llround; | |
21717 | ||
ef080b63 | 21718 | int |
21719 | main () | |
21720 | { | |
ef080b63 | 21721 | return 0; |
21722 | } | |
7d9455ce | 21723 | |
ef080b63 | 21724 | _ACEOF |
cd9a469c | 21725 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21726 | gcc_cv_math_func_llround=yes |
ef080b63 | 21727 | else |
7d9455ce | 21728 | gcc_cv_math_func_llround=no |
ef080b63 | 21729 | fi |
cd9a469c | 21730 | rm -f core conftest.err conftest.$ac_objext \ |
21731 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21732 | fi |
7d9455ce | 21733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
21734 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
21735 | if test $gcc_cv_math_func_llround = yes; then | |
bd647a17 | 21736 | |
6affa8e1 | 21737 | cat >>confdefs.h <<_ACEOF |
21738 | #define HAVE_LLROUND 1 | |
21739 | _ACEOF | |
7d9455ce | 21740 | |
21741 | fi | |
21742 | ||
ef080b63 | 21743 | |
ef080b63 | 21744 | |
ef080b63 | 21745 | |
7d9455ce | 21746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
21747 | $as_echo_n "checking for llroundl... " >&6; } | |
f00f02a3 | 21748 | if ${gcc_cv_math_func_llroundl+:} false; then : |
cd9a469c | 21749 | $as_echo_n "(cached) " >&6 |
d213114b | 21750 | else |
7d9455ce | 21751 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21752 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21753 | fi |
cd9a469c | 21754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21755 | /* end confdefs.h. */ |
21756 | ||
7d9455ce | 21757 | #ifdef HAVE_COMPLEX_H |
21758 | #include <complex.h> | |
21759 | #endif | |
21760 | #ifdef HAVE_MATH_H | |
21761 | #include <math.h> | |
d213114b | 21762 | #endif |
7d9455ce | 21763 | |
21764 | int (*ptr)() = (int (*)())llroundl; | |
21765 | ||
d213114b | 21766 | int |
21767 | main () | |
21768 | { | |
d213114b | 21769 | return 0; |
21770 | } | |
7d9455ce | 21771 | |
d213114b | 21772 | _ACEOF |
cd9a469c | 21773 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21774 | gcc_cv_math_func_llroundl=yes |
d213114b | 21775 | else |
7d9455ce | 21776 | gcc_cv_math_func_llroundl=no |
d213114b | 21777 | fi |
cd9a469c | 21778 | rm -f core conftest.err conftest.$ac_objext \ |
21779 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21780 | fi |
7d9455ce | 21781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
21782 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
21783 | if test $gcc_cv_math_func_llroundl = yes; then | |
bd647a17 | 21784 | |
6affa8e1 | 21785 | cat >>confdefs.h <<_ACEOF |
21786 | #define HAVE_LLROUNDL 1 | |
21787 | _ACEOF | |
d213114b | 21788 | |
7d9455ce | 21789 | fi |
d213114b | 21790 | |
d213114b | 21791 | |
7d9455ce | 21792 | |
21793 | ||
21794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
21795 | $as_echo_n "checking for scalbnf... " >&6; } | |
f00f02a3 | 21796 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
cd9a469c | 21797 | $as_echo_n "(cached) " >&6 |
d213114b | 21798 | else |
7d9455ce | 21799 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21800 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21801 | fi |
cd9a469c | 21802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21803 | /* end confdefs.h. */ |
21804 | ||
7d9455ce | 21805 | #ifdef HAVE_COMPLEX_H |
21806 | #include <complex.h> | |
d213114b | 21807 | #endif |
7d9455ce | 21808 | #ifdef HAVE_MATH_H |
21809 | #include <math.h> | |
21810 | #endif | |
21811 | ||
21812 | int (*ptr)() = (int (*)())scalbnf; | |
21813 | ||
d213114b | 21814 | int |
21815 | main () | |
21816 | { | |
d213114b | 21817 | return 0; |
21818 | } | |
7d9455ce | 21819 | |
d213114b | 21820 | _ACEOF |
cd9a469c | 21821 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21822 | gcc_cv_math_func_scalbnf=yes |
d213114b | 21823 | else |
7d9455ce | 21824 | gcc_cv_math_func_scalbnf=no |
d213114b | 21825 | fi |
cd9a469c | 21826 | rm -f core conftest.err conftest.$ac_objext \ |
21827 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21828 | fi |
7d9455ce | 21829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
21830 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
21831 | if test $gcc_cv_math_func_scalbnf = yes; then | |
bd647a17 | 21832 | |
6affa8e1 | 21833 | cat >>confdefs.h <<_ACEOF |
21834 | #define HAVE_SCALBNF 1 | |
21835 | _ACEOF | |
d213114b | 21836 | |
7d9455ce | 21837 | fi |
d213114b | 21838 | |
d213114b | 21839 | |
7d9455ce | 21840 | |
21841 | ||
21842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
21843 | $as_echo_n "checking for scalbn... " >&6; } | |
f00f02a3 | 21844 | if ${gcc_cv_math_func_scalbn+:} false; then : |
cd9a469c | 21845 | $as_echo_n "(cached) " >&6 |
d213114b | 21846 | else |
7d9455ce | 21847 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21848 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21849 | fi |
cd9a469c | 21850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21851 | /* end confdefs.h. */ |
21852 | ||
7d9455ce | 21853 | #ifdef HAVE_COMPLEX_H |
21854 | #include <complex.h> | |
21855 | #endif | |
21856 | #ifdef HAVE_MATH_H | |
21857 | #include <math.h> | |
d213114b | 21858 | #endif |
7d9455ce | 21859 | |
21860 | int (*ptr)() = (int (*)())scalbn; | |
21861 | ||
d213114b | 21862 | int |
21863 | main () | |
21864 | { | |
d213114b | 21865 | return 0; |
21866 | } | |
7d9455ce | 21867 | |
d213114b | 21868 | _ACEOF |
cd9a469c | 21869 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21870 | gcc_cv_math_func_scalbn=yes |
d213114b | 21871 | else |
7d9455ce | 21872 | gcc_cv_math_func_scalbn=no |
d213114b | 21873 | fi |
cd9a469c | 21874 | rm -f core conftest.err conftest.$ac_objext \ |
21875 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21876 | fi |
7d9455ce | 21877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
21878 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
21879 | if test $gcc_cv_math_func_scalbn = yes; then | |
bd647a17 | 21880 | |
6affa8e1 | 21881 | cat >>confdefs.h <<_ACEOF |
21882 | #define HAVE_SCALBN 1 | |
21883 | _ACEOF | |
7d9455ce | 21884 | |
21885 | fi | |
21886 | ||
d213114b | 21887 | |
d213114b | 21888 | |
d213114b | 21889 | |
7d9455ce | 21890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
21891 | $as_echo_n "checking for scalbnl... " >&6; } | |
f00f02a3 | 21892 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
cd9a469c | 21893 | $as_echo_n "(cached) " >&6 |
d213114b | 21894 | else |
7d9455ce | 21895 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21896 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21897 | fi |
cd9a469c | 21898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21899 | /* end confdefs.h. */ |
21900 | ||
7d9455ce | 21901 | #ifdef HAVE_COMPLEX_H |
21902 | #include <complex.h> | |
21903 | #endif | |
21904 | #ifdef HAVE_MATH_H | |
21905 | #include <math.h> | |
d213114b | 21906 | #endif |
7d9455ce | 21907 | |
21908 | int (*ptr)() = (int (*)())scalbnl; | |
21909 | ||
d213114b | 21910 | int |
21911 | main () | |
21912 | { | |
d213114b | 21913 | return 0; |
21914 | } | |
7d9455ce | 21915 | |
d213114b | 21916 | _ACEOF |
cd9a469c | 21917 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21918 | gcc_cv_math_func_scalbnl=yes |
d213114b | 21919 | else |
7d9455ce | 21920 | gcc_cv_math_func_scalbnl=no |
d213114b | 21921 | fi |
cd9a469c | 21922 | rm -f core conftest.err conftest.$ac_objext \ |
21923 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21924 | fi |
7d9455ce | 21925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
21926 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
21927 | if test $gcc_cv_math_func_scalbnl = yes; then | |
bd647a17 | 21928 | |
6affa8e1 | 21929 | cat >>confdefs.h <<_ACEOF |
21930 | #define HAVE_SCALBNL 1 | |
21931 | _ACEOF | |
d213114b | 21932 | |
7d9455ce | 21933 | fi |
d213114b | 21934 | |
d213114b | 21935 | |
7d9455ce | 21936 | |
21937 | ||
21938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
21939 | $as_echo_n "checking for sinf... " >&6; } | |
f00f02a3 | 21940 | if ${gcc_cv_math_func_sinf+:} false; then : |
cd9a469c | 21941 | $as_echo_n "(cached) " >&6 |
d213114b | 21942 | else |
7d9455ce | 21943 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21944 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21945 | fi |
cd9a469c | 21946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21947 | /* end confdefs.h. */ |
21948 | ||
7d9455ce | 21949 | #ifdef HAVE_COMPLEX_H |
21950 | #include <complex.h> | |
d213114b | 21951 | #endif |
7d9455ce | 21952 | #ifdef HAVE_MATH_H |
21953 | #include <math.h> | |
21954 | #endif | |
21955 | ||
21956 | int (*ptr)() = (int (*)())sinf; | |
21957 | ||
d213114b | 21958 | int |
21959 | main () | |
21960 | { | |
d213114b | 21961 | return 0; |
21962 | } | |
7d9455ce | 21963 | |
d213114b | 21964 | _ACEOF |
cd9a469c | 21965 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21966 | gcc_cv_math_func_sinf=yes |
d213114b | 21967 | else |
7d9455ce | 21968 | gcc_cv_math_func_sinf=no |
d213114b | 21969 | fi |
cd9a469c | 21970 | rm -f core conftest.err conftest.$ac_objext \ |
21971 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21972 | fi |
7d9455ce | 21973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
21974 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
21975 | if test $gcc_cv_math_func_sinf = yes; then | |
bd647a17 | 21976 | |
6affa8e1 | 21977 | cat >>confdefs.h <<_ACEOF |
21978 | #define HAVE_SINF 1 | |
21979 | _ACEOF | |
d213114b | 21980 | |
7d9455ce | 21981 | fi |
d213114b | 21982 | |
d213114b | 21983 | |
7d9455ce | 21984 | |
21985 | ||
21986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
21987 | $as_echo_n "checking for sin... " >&6; } | |
f00f02a3 | 21988 | if ${gcc_cv_math_func_sin+:} false; then : |
cd9a469c | 21989 | $as_echo_n "(cached) " >&6 |
d213114b | 21990 | else |
7d9455ce | 21991 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21992 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21993 | fi |
cd9a469c | 21994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21995 | /* end confdefs.h. */ |
21996 | ||
7d9455ce | 21997 | #ifdef HAVE_COMPLEX_H |
21998 | #include <complex.h> | |
d213114b | 21999 | #endif |
7d9455ce | 22000 | #ifdef HAVE_MATH_H |
22001 | #include <math.h> | |
22002 | #endif | |
22003 | ||
22004 | int (*ptr)() = (int (*)())sin; | |
22005 | ||
d213114b | 22006 | int |
22007 | main () | |
22008 | { | |
d213114b | 22009 | return 0; |
22010 | } | |
7d9455ce | 22011 | |
d213114b | 22012 | _ACEOF |
cd9a469c | 22013 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22014 | gcc_cv_math_func_sin=yes |
d213114b | 22015 | else |
7d9455ce | 22016 | gcc_cv_math_func_sin=no |
d213114b | 22017 | fi |
cd9a469c | 22018 | rm -f core conftest.err conftest.$ac_objext \ |
22019 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22020 | fi |
7d9455ce | 22021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22022 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22023 | if test $gcc_cv_math_func_sin = yes; then | |
bd647a17 | 22024 | |
6affa8e1 | 22025 | cat >>confdefs.h <<_ACEOF |
22026 | #define HAVE_SIN 1 | |
22027 | _ACEOF | |
7d9455ce | 22028 | |
22029 | fi | |
22030 | ||
d213114b | 22031 | |
d213114b | 22032 | |
d213114b | 22033 | |
7d9455ce | 22034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22035 | $as_echo_n "checking for sinl... " >&6; } | |
f00f02a3 | 22036 | if ${gcc_cv_math_func_sinl+:} false; then : |
cd9a469c | 22037 | $as_echo_n "(cached) " >&6 |
d213114b | 22038 | else |
7d9455ce | 22039 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22040 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22041 | fi |
cd9a469c | 22042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22043 | /* end confdefs.h. */ |
22044 | ||
7d9455ce | 22045 | #ifdef HAVE_COMPLEX_H |
22046 | #include <complex.h> | |
d213114b | 22047 | #endif |
7d9455ce | 22048 | #ifdef HAVE_MATH_H |
22049 | #include <math.h> | |
22050 | #endif | |
22051 | ||
22052 | int (*ptr)() = (int (*)())sinl; | |
22053 | ||
d213114b | 22054 | int |
22055 | main () | |
22056 | { | |
cd9a469c | 22057 | return 0; |
22058 | } | |
7d9455ce | 22059 | |
cd9a469c | 22060 | _ACEOF |
22061 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 22062 | gcc_cv_math_func_sinl=yes |
d213114b | 22063 | else |
7d9455ce | 22064 | gcc_cv_math_func_sinl=no |
d213114b | 22065 | fi |
cd9a469c | 22066 | rm -f core conftest.err conftest.$ac_objext \ |
22067 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22068 | fi |
7d9455ce | 22069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22070 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22071 | if test $gcc_cv_math_func_sinl = yes; then | |
bd647a17 | 22072 | |
6affa8e1 | 22073 | cat >>confdefs.h <<_ACEOF |
22074 | #define HAVE_SINL 1 | |
22075 | _ACEOF | |
7d9455ce | 22076 | |
22077 | fi | |
d213114b | 22078 | |
d213114b | 22079 | |
d213114b | 22080 | |
7d9455ce | 22081 | |
22082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22083 | $as_echo_n "checking for csinf... " >&6; } | |
f00f02a3 | 22084 | if ${gcc_cv_math_func_csinf+:} false; then : |
cd9a469c | 22085 | $as_echo_n "(cached) " >&6 |
d213114b | 22086 | else |
7d9455ce | 22087 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22088 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22089 | fi |
cd9a469c | 22090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22091 | /* end confdefs.h. */ |
22092 | ||
7d9455ce | 22093 | #ifdef HAVE_COMPLEX_H |
22094 | #include <complex.h> | |
22095 | #endif | |
22096 | #ifdef HAVE_MATH_H | |
22097 | #include <math.h> | |
d213114b | 22098 | #endif |
7d9455ce | 22099 | |
22100 | int (*ptr)() = (int (*)())csinf; | |
22101 | ||
d213114b | 22102 | int |
22103 | main () | |
22104 | { | |
d213114b | 22105 | return 0; |
22106 | } | |
7d9455ce | 22107 | |
d213114b | 22108 | _ACEOF |
cd9a469c | 22109 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22110 | gcc_cv_math_func_csinf=yes |
d213114b | 22111 | else |
7d9455ce | 22112 | gcc_cv_math_func_csinf=no |
d213114b | 22113 | fi |
cd9a469c | 22114 | rm -f core conftest.err conftest.$ac_objext \ |
22115 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22116 | fi |
7d9455ce | 22117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22118 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22119 | if test $gcc_cv_math_func_csinf = yes; then | |
bd647a17 | 22120 | |
6affa8e1 | 22121 | cat >>confdefs.h <<_ACEOF |
22122 | #define HAVE_CSINF 1 | |
22123 | _ACEOF | |
d213114b | 22124 | |
7d9455ce | 22125 | fi |
d213114b | 22126 | |
d213114b | 22127 | |
7d9455ce | 22128 | |
22129 | ||
22130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22131 | $as_echo_n "checking for csin... " >&6; } | |
f00f02a3 | 22132 | if ${gcc_cv_math_func_csin+:} false; then : |
cd9a469c | 22133 | $as_echo_n "(cached) " >&6 |
d213114b | 22134 | else |
7d9455ce | 22135 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22136 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22137 | fi |
cd9a469c | 22138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22139 | /* end confdefs.h. */ |
22140 | ||
7d9455ce | 22141 | #ifdef HAVE_COMPLEX_H |
22142 | #include <complex.h> | |
d213114b | 22143 | #endif |
7d9455ce | 22144 | #ifdef HAVE_MATH_H |
22145 | #include <math.h> | |
22146 | #endif | |
22147 | ||
22148 | int (*ptr)() = (int (*)())csin; | |
22149 | ||
d213114b | 22150 | int |
22151 | main () | |
22152 | { | |
d213114b | 22153 | return 0; |
22154 | } | |
7d9455ce | 22155 | |
d213114b | 22156 | _ACEOF |
cd9a469c | 22157 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22158 | gcc_cv_math_func_csin=yes |
d213114b | 22159 | else |
7d9455ce | 22160 | gcc_cv_math_func_csin=no |
d213114b | 22161 | fi |
cd9a469c | 22162 | rm -f core conftest.err conftest.$ac_objext \ |
22163 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22164 | fi |
7d9455ce | 22165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22166 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22167 | if test $gcc_cv_math_func_csin = yes; then | |
bd647a17 | 22168 | |
6affa8e1 | 22169 | cat >>confdefs.h <<_ACEOF |
22170 | #define HAVE_CSIN 1 | |
22171 | _ACEOF | |
7d9455ce | 22172 | |
22173 | fi | |
22174 | ||
d213114b | 22175 | |
d213114b | 22176 | |
d213114b | 22177 | |
7d9455ce | 22178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22179 | $as_echo_n "checking for csinl... " >&6; } | |
f00f02a3 | 22180 | if ${gcc_cv_math_func_csinl+:} false; then : |
cd9a469c | 22181 | $as_echo_n "(cached) " >&6 |
d213114b | 22182 | else |
7d9455ce | 22183 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22184 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22185 | fi |
cd9a469c | 22186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22187 | /* end confdefs.h. */ |
22188 | ||
7d9455ce | 22189 | #ifdef HAVE_COMPLEX_H |
22190 | #include <complex.h> | |
d213114b | 22191 | #endif |
7d9455ce | 22192 | #ifdef HAVE_MATH_H |
22193 | #include <math.h> | |
22194 | #endif | |
22195 | ||
22196 | int (*ptr)() = (int (*)())csinl; | |
22197 | ||
d213114b | 22198 | int |
22199 | main () | |
22200 | { | |
d213114b | 22201 | return 0; |
22202 | } | |
7d9455ce | 22203 | |
d213114b | 22204 | _ACEOF |
cd9a469c | 22205 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22206 | gcc_cv_math_func_csinl=yes |
d213114b | 22207 | else |
7d9455ce | 22208 | gcc_cv_math_func_csinl=no |
d213114b | 22209 | fi |
cd9a469c | 22210 | rm -f core conftest.err conftest.$ac_objext \ |
22211 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22212 | fi |
7d9455ce | 22213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22214 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22215 | if test $gcc_cv_math_func_csinl = yes; then | |
bd647a17 | 22216 | |
6affa8e1 | 22217 | cat >>confdefs.h <<_ACEOF |
22218 | #define HAVE_CSINL 1 | |
22219 | _ACEOF | |
7d9455ce | 22220 | |
22221 | fi | |
d213114b | 22222 | |
d213114b | 22223 | |
d213114b | 22224 | |
7d9455ce | 22225 | |
22226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22227 | $as_echo_n "checking for sinhf... " >&6; } | |
f00f02a3 | 22228 | if ${gcc_cv_math_func_sinhf+:} false; then : |
cd9a469c | 22229 | $as_echo_n "(cached) " >&6 |
d213114b | 22230 | else |
7d9455ce | 22231 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22232 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22233 | fi |
cd9a469c | 22234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22235 | /* end confdefs.h. */ |
22236 | ||
7d9455ce | 22237 | #ifdef HAVE_COMPLEX_H |
22238 | #include <complex.h> | |
22239 | #endif | |
22240 | #ifdef HAVE_MATH_H | |
22241 | #include <math.h> | |
d213114b | 22242 | #endif |
7d9455ce | 22243 | |
22244 | int (*ptr)() = (int (*)())sinhf; | |
22245 | ||
d213114b | 22246 | int |
22247 | main () | |
22248 | { | |
d213114b | 22249 | return 0; |
22250 | } | |
7d9455ce | 22251 | |
d213114b | 22252 | _ACEOF |
cd9a469c | 22253 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22254 | gcc_cv_math_func_sinhf=yes |
d213114b | 22255 | else |
7d9455ce | 22256 | gcc_cv_math_func_sinhf=no |
d213114b | 22257 | fi |
cd9a469c | 22258 | rm -f core conftest.err conftest.$ac_objext \ |
22259 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22260 | fi |
7d9455ce | 22261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22262 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22263 | if test $gcc_cv_math_func_sinhf = yes; then | |
bd647a17 | 22264 | |
6affa8e1 | 22265 | cat >>confdefs.h <<_ACEOF |
22266 | #define HAVE_SINHF 1 | |
22267 | _ACEOF | |
d213114b | 22268 | |
7d9455ce | 22269 | fi |
d213114b | 22270 | |
d213114b | 22271 | |
7d9455ce | 22272 | |
22273 | ||
22274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22275 | $as_echo_n "checking for sinh... " >&6; } | |
f00f02a3 | 22276 | if ${gcc_cv_math_func_sinh+:} false; then : |
cd9a469c | 22277 | $as_echo_n "(cached) " >&6 |
d213114b | 22278 | else |
7d9455ce | 22279 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22280 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22281 | fi |
cd9a469c | 22282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22283 | /* end confdefs.h. */ |
22284 | ||
7d9455ce | 22285 | #ifdef HAVE_COMPLEX_H |
22286 | #include <complex.h> | |
d213114b | 22287 | #endif |
7d9455ce | 22288 | #ifdef HAVE_MATH_H |
22289 | #include <math.h> | |
22290 | #endif | |
22291 | ||
22292 | int (*ptr)() = (int (*)())sinh; | |
22293 | ||
d213114b | 22294 | int |
22295 | main () | |
22296 | { | |
d213114b | 22297 | return 0; |
22298 | } | |
7d9455ce | 22299 | |
d213114b | 22300 | _ACEOF |
cd9a469c | 22301 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22302 | gcc_cv_math_func_sinh=yes |
d213114b | 22303 | else |
7d9455ce | 22304 | gcc_cv_math_func_sinh=no |
d213114b | 22305 | fi |
cd9a469c | 22306 | rm -f core conftest.err conftest.$ac_objext \ |
22307 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22308 | fi |
7d9455ce | 22309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22310 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22311 | if test $gcc_cv_math_func_sinh = yes; then | |
bd647a17 | 22312 | |
6affa8e1 | 22313 | cat >>confdefs.h <<_ACEOF |
22314 | #define HAVE_SINH 1 | |
22315 | _ACEOF | |
7d9455ce | 22316 | |
22317 | fi | |
22318 | ||
d213114b | 22319 | |
d213114b | 22320 | |
d213114b | 22321 | |
7d9455ce | 22322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22323 | $as_echo_n "checking for sinhl... " >&6; } | |
f00f02a3 | 22324 | if ${gcc_cv_math_func_sinhl+:} false; then : |
cd9a469c | 22325 | $as_echo_n "(cached) " >&6 |
d213114b | 22326 | else |
7d9455ce | 22327 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22328 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22329 | fi |
cd9a469c | 22330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22331 | /* end confdefs.h. */ |
22332 | ||
7d9455ce | 22333 | #ifdef HAVE_COMPLEX_H |
22334 | #include <complex.h> | |
d213114b | 22335 | #endif |
7d9455ce | 22336 | #ifdef HAVE_MATH_H |
22337 | #include <math.h> | |
22338 | #endif | |
22339 | ||
22340 | int (*ptr)() = (int (*)())sinhl; | |
22341 | ||
d213114b | 22342 | int |
22343 | main () | |
22344 | { | |
d213114b | 22345 | return 0; |
22346 | } | |
7d9455ce | 22347 | |
d213114b | 22348 | _ACEOF |
cd9a469c | 22349 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22350 | gcc_cv_math_func_sinhl=yes |
d213114b | 22351 | else |
7d9455ce | 22352 | gcc_cv_math_func_sinhl=no |
d213114b | 22353 | fi |
cd9a469c | 22354 | rm -f core conftest.err conftest.$ac_objext \ |
22355 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22356 | fi |
7d9455ce | 22357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22358 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22359 | if test $gcc_cv_math_func_sinhl = yes; then | |
bd647a17 | 22360 | |
6affa8e1 | 22361 | cat >>confdefs.h <<_ACEOF |
22362 | #define HAVE_SINHL 1 | |
22363 | _ACEOF | |
7d9455ce | 22364 | |
22365 | fi | |
d213114b | 22366 | |
d213114b | 22367 | |
d213114b | 22368 | |
7d9455ce | 22369 | |
22370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22371 | $as_echo_n "checking for csinhf... " >&6; } | |
f00f02a3 | 22372 | if ${gcc_cv_math_func_csinhf+:} false; then : |
cd9a469c | 22373 | $as_echo_n "(cached) " >&6 |
d213114b | 22374 | else |
7d9455ce | 22375 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22376 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22377 | fi |
cd9a469c | 22378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22379 | /* end confdefs.h. */ |
22380 | ||
7d9455ce | 22381 | #ifdef HAVE_COMPLEX_H |
22382 | #include <complex.h> | |
22383 | #endif | |
22384 | #ifdef HAVE_MATH_H | |
22385 | #include <math.h> | |
d213114b | 22386 | #endif |
7d9455ce | 22387 | |
22388 | int (*ptr)() = (int (*)())csinhf; | |
22389 | ||
d213114b | 22390 | int |
22391 | main () | |
22392 | { | |
d213114b | 22393 | return 0; |
22394 | } | |
7d9455ce | 22395 | |
d213114b | 22396 | _ACEOF |
cd9a469c | 22397 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22398 | gcc_cv_math_func_csinhf=yes |
d213114b | 22399 | else |
7d9455ce | 22400 | gcc_cv_math_func_csinhf=no |
d213114b | 22401 | fi |
cd9a469c | 22402 | rm -f core conftest.err conftest.$ac_objext \ |
22403 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22404 | fi |
7d9455ce | 22405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22406 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22407 | if test $gcc_cv_math_func_csinhf = yes; then | |
bd647a17 | 22408 | |
6affa8e1 | 22409 | cat >>confdefs.h <<_ACEOF |
22410 | #define HAVE_CSINHF 1 | |
22411 | _ACEOF | |
d213114b | 22412 | |
7d9455ce | 22413 | fi |
d213114b | 22414 | |
d213114b | 22415 | |
7d9455ce | 22416 | |
22417 | ||
22418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22419 | $as_echo_n "checking for csinh... " >&6; } | |
f00f02a3 | 22420 | if ${gcc_cv_math_func_csinh+:} false; then : |
cd9a469c | 22421 | $as_echo_n "(cached) " >&6 |
d213114b | 22422 | else |
7d9455ce | 22423 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22424 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22425 | fi |
cd9a469c | 22426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22427 | /* end confdefs.h. */ |
22428 | ||
7d9455ce | 22429 | #ifdef HAVE_COMPLEX_H |
22430 | #include <complex.h> | |
d213114b | 22431 | #endif |
7d9455ce | 22432 | #ifdef HAVE_MATH_H |
22433 | #include <math.h> | |
22434 | #endif | |
22435 | ||
22436 | int (*ptr)() = (int (*)())csinh; | |
22437 | ||
d213114b | 22438 | int |
22439 | main () | |
22440 | { | |
d213114b | 22441 | return 0; |
22442 | } | |
7d9455ce | 22443 | |
d213114b | 22444 | _ACEOF |
cd9a469c | 22445 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22446 | gcc_cv_math_func_csinh=yes |
d213114b | 22447 | else |
7d9455ce | 22448 | gcc_cv_math_func_csinh=no |
d213114b | 22449 | fi |
cd9a469c | 22450 | rm -f core conftest.err conftest.$ac_objext \ |
22451 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22452 | fi |
7d9455ce | 22453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22454 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22455 | if test $gcc_cv_math_func_csinh = yes; then | |
bd647a17 | 22456 | |
6affa8e1 | 22457 | cat >>confdefs.h <<_ACEOF |
22458 | #define HAVE_CSINH 1 | |
22459 | _ACEOF | |
7d9455ce | 22460 | |
22461 | fi | |
22462 | ||
d213114b | 22463 | |
d213114b | 22464 | |
d213114b | 22465 | |
7d9455ce | 22466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22467 | $as_echo_n "checking for csinhl... " >&6; } | |
f00f02a3 | 22468 | if ${gcc_cv_math_func_csinhl+:} false; then : |
cd9a469c | 22469 | $as_echo_n "(cached) " >&6 |
d213114b | 22470 | else |
7d9455ce | 22471 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22472 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22473 | fi |
cd9a469c | 22474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22475 | /* end confdefs.h. */ |
22476 | ||
7d9455ce | 22477 | #ifdef HAVE_COMPLEX_H |
22478 | #include <complex.h> | |
d213114b | 22479 | #endif |
7d9455ce | 22480 | #ifdef HAVE_MATH_H |
22481 | #include <math.h> | |
22482 | #endif | |
22483 | ||
22484 | int (*ptr)() = (int (*)())csinhl; | |
22485 | ||
d213114b | 22486 | int |
22487 | main () | |
22488 | { | |
d213114b | 22489 | return 0; |
22490 | } | |
7d9455ce | 22491 | |
d213114b | 22492 | _ACEOF |
cd9a469c | 22493 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22494 | gcc_cv_math_func_csinhl=yes |
d213114b | 22495 | else |
7d9455ce | 22496 | gcc_cv_math_func_csinhl=no |
d213114b | 22497 | fi |
cd9a469c | 22498 | rm -f core conftest.err conftest.$ac_objext \ |
22499 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22500 | fi |
7d9455ce | 22501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22502 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22503 | if test $gcc_cv_math_func_csinhl = yes; then | |
bd647a17 | 22504 | |
6affa8e1 | 22505 | cat >>confdefs.h <<_ACEOF |
22506 | #define HAVE_CSINHL 1 | |
22507 | _ACEOF | |
7d9455ce | 22508 | |
22509 | fi | |
d213114b | 22510 | |
d213114b | 22511 | |
d213114b | 22512 | |
7d9455ce | 22513 | |
22514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22515 | $as_echo_n "checking for sqrtf... " >&6; } | |
f00f02a3 | 22516 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
cd9a469c | 22517 | $as_echo_n "(cached) " >&6 |
d213114b | 22518 | else |
7d9455ce | 22519 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22520 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22521 | fi |
cd9a469c | 22522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22523 | /* end confdefs.h. */ |
22524 | ||
7d9455ce | 22525 | #ifdef HAVE_COMPLEX_H |
22526 | #include <complex.h> | |
22527 | #endif | |
22528 | #ifdef HAVE_MATH_H | |
22529 | #include <math.h> | |
d213114b | 22530 | #endif |
7d9455ce | 22531 | |
22532 | int (*ptr)() = (int (*)())sqrtf; | |
22533 | ||
d213114b | 22534 | int |
22535 | main () | |
22536 | { | |
d213114b | 22537 | return 0; |
22538 | } | |
7d9455ce | 22539 | |
d213114b | 22540 | _ACEOF |
cd9a469c | 22541 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22542 | gcc_cv_math_func_sqrtf=yes |
d213114b | 22543 | else |
7d9455ce | 22544 | gcc_cv_math_func_sqrtf=no |
d213114b | 22545 | fi |
cd9a469c | 22546 | rm -f core conftest.err conftest.$ac_objext \ |
22547 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22548 | fi |
7d9455ce | 22549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22550 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22551 | if test $gcc_cv_math_func_sqrtf = yes; then | |
bd647a17 | 22552 | |
6affa8e1 | 22553 | cat >>confdefs.h <<_ACEOF |
22554 | #define HAVE_SQRTF 1 | |
22555 | _ACEOF | |
7d9455ce | 22556 | |
22557 | fi | |
d213114b | 22558 | |
d213114b | 22559 | |
7d9455ce | 22560 | |
22561 | ||
22562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22563 | $as_echo_n "checking for sqrt... " >&6; } | |
f00f02a3 | 22564 | if ${gcc_cv_math_func_sqrt+:} false; then : |
7d9455ce | 22565 | $as_echo_n "(cached) " >&6 |
22566 | else | |
22567 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 22568 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22569 | fi |
7d9455ce | 22570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22571 | /* end confdefs.h. */ | |
22572 | ||
22573 | #ifdef HAVE_COMPLEX_H | |
22574 | #include <complex.h> | |
22575 | #endif | |
22576 | #ifdef HAVE_MATH_H | |
22577 | #include <math.h> | |
22578 | #endif | |
22579 | ||
22580 | int (*ptr)() = (int (*)())sqrt; | |
22581 | ||
22582 | int | |
22583 | main () | |
22584 | { | |
22585 | return 0; | |
22586 | } | |
22587 | ||
22588 | _ACEOF | |
22589 | if ac_fn_c_try_link "$LINENO"; then : | |
22590 | gcc_cv_math_func_sqrt=yes | |
22591 | else | |
22592 | gcc_cv_math_func_sqrt=no | |
22593 | fi | |
22594 | rm -f core conftest.err conftest.$ac_objext \ | |
22595 | conftest$ac_exeext conftest.$ac_ext | |
22596 | fi | |
22597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22598 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22599 | if test $gcc_cv_math_func_sqrt = yes; then | |
bd647a17 | 22600 | |
6affa8e1 | 22601 | cat >>confdefs.h <<_ACEOF |
22602 | #define HAVE_SQRT 1 | |
22603 | _ACEOF | |
7d9455ce | 22604 | |
22605 | fi | |
d213114b | 22606 | |
7d9455ce | 22607 | |
22608 | ||
22609 | ||
22610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22611 | $as_echo_n "checking for sqrtl... " >&6; } | |
f00f02a3 | 22612 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
cd9a469c | 22613 | $as_echo_n "(cached) " >&6 |
d213114b | 22614 | else |
7d9455ce | 22615 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22616 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22617 | fi |
cd9a469c | 22618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22619 | /* end confdefs.h. */ |
22620 | ||
7d9455ce | 22621 | #ifdef HAVE_COMPLEX_H |
22622 | #include <complex.h> | |
22623 | #endif | |
22624 | #ifdef HAVE_MATH_H | |
22625 | #include <math.h> | |
d213114b | 22626 | #endif |
7d9455ce | 22627 | |
22628 | int (*ptr)() = (int (*)())sqrtl; | |
22629 | ||
d213114b | 22630 | int |
22631 | main () | |
22632 | { | |
d213114b | 22633 | return 0; |
22634 | } | |
7d9455ce | 22635 | |
d213114b | 22636 | _ACEOF |
cd9a469c | 22637 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22638 | gcc_cv_math_func_sqrtl=yes |
d213114b | 22639 | else |
7d9455ce | 22640 | gcc_cv_math_func_sqrtl=no |
d213114b | 22641 | fi |
cd9a469c | 22642 | rm -f core conftest.err conftest.$ac_objext \ |
22643 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22644 | fi |
7d9455ce | 22645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22646 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22647 | if test $gcc_cv_math_func_sqrtl = yes; then | |
bd647a17 | 22648 | |
6affa8e1 | 22649 | cat >>confdefs.h <<_ACEOF |
22650 | #define HAVE_SQRTL 1 | |
22651 | _ACEOF | |
7d9455ce | 22652 | |
22653 | fi | |
d213114b | 22654 | |
d213114b | 22655 | |
d213114b | 22656 | |
7d9455ce | 22657 | |
22658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22659 | $as_echo_n "checking for csqrtf... " >&6; } | |
f00f02a3 | 22660 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
cd9a469c | 22661 | $as_echo_n "(cached) " >&6 |
d213114b | 22662 | else |
7d9455ce | 22663 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22664 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22665 | fi |
cd9a469c | 22666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22667 | /* end confdefs.h. */ |
22668 | ||
7d9455ce | 22669 | #ifdef HAVE_COMPLEX_H |
22670 | #include <complex.h> | |
d213114b | 22671 | #endif |
7d9455ce | 22672 | #ifdef HAVE_MATH_H |
22673 | #include <math.h> | |
22674 | #endif | |
22675 | ||
22676 | int (*ptr)() = (int (*)())csqrtf; | |
22677 | ||
d213114b | 22678 | int |
22679 | main () | |
22680 | { | |
d213114b | 22681 | return 0; |
22682 | } | |
7d9455ce | 22683 | |
d213114b | 22684 | _ACEOF |
cd9a469c | 22685 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22686 | gcc_cv_math_func_csqrtf=yes |
d213114b | 22687 | else |
7d9455ce | 22688 | gcc_cv_math_func_csqrtf=no |
d213114b | 22689 | fi |
cd9a469c | 22690 | rm -f core conftest.err conftest.$ac_objext \ |
22691 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22692 | fi |
7d9455ce | 22693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
22694 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
22695 | if test $gcc_cv_math_func_csqrtf = yes; then | |
bd647a17 | 22696 | |
6affa8e1 | 22697 | cat >>confdefs.h <<_ACEOF |
22698 | #define HAVE_CSQRTF 1 | |
22699 | _ACEOF | |
d213114b | 22700 | |
7d9455ce | 22701 | fi |
d213114b | 22702 | |
d213114b | 22703 | |
7d9455ce | 22704 | |
22705 | ||
22706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
22707 | $as_echo_n "checking for csqrt... " >&6; } | |
f00f02a3 | 22708 | if ${gcc_cv_math_func_csqrt+:} false; then : |
cd9a469c | 22709 | $as_echo_n "(cached) " >&6 |
d213114b | 22710 | else |
7d9455ce | 22711 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22712 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22713 | fi |
cd9a469c | 22714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22715 | /* end confdefs.h. */ |
22716 | ||
7d9455ce | 22717 | #ifdef HAVE_COMPLEX_H |
22718 | #include <complex.h> | |
22719 | #endif | |
22720 | #ifdef HAVE_MATH_H | |
22721 | #include <math.h> | |
d213114b | 22722 | #endif |
7d9455ce | 22723 | |
22724 | int (*ptr)() = (int (*)())csqrt; | |
22725 | ||
d213114b | 22726 | int |
22727 | main () | |
22728 | { | |
d213114b | 22729 | return 0; |
22730 | } | |
7d9455ce | 22731 | |
d213114b | 22732 | _ACEOF |
cd9a469c | 22733 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22734 | gcc_cv_math_func_csqrt=yes |
d213114b | 22735 | else |
7d9455ce | 22736 | gcc_cv_math_func_csqrt=no |
d213114b | 22737 | fi |
cd9a469c | 22738 | rm -f core conftest.err conftest.$ac_objext \ |
22739 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22740 | fi |
7d9455ce | 22741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
22742 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
22743 | if test $gcc_cv_math_func_csqrt = yes; then | |
bd647a17 | 22744 | |
6affa8e1 | 22745 | cat >>confdefs.h <<_ACEOF |
22746 | #define HAVE_CSQRT 1 | |
22747 | _ACEOF | |
7d9455ce | 22748 | |
22749 | fi | |
d213114b | 22750 | |
d213114b | 22751 | |
d213114b | 22752 | |
7d9455ce | 22753 | |
22754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
22755 | $as_echo_n "checking for csqrtl... " >&6; } | |
f00f02a3 | 22756 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
cd9a469c | 22757 | $as_echo_n "(cached) " >&6 |
d213114b | 22758 | else |
7d9455ce | 22759 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22760 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22761 | fi |
cd9a469c | 22762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22763 | /* end confdefs.h. */ |
22764 | ||
7d9455ce | 22765 | #ifdef HAVE_COMPLEX_H |
22766 | #include <complex.h> | |
d213114b | 22767 | #endif |
7d9455ce | 22768 | #ifdef HAVE_MATH_H |
22769 | #include <math.h> | |
22770 | #endif | |
22771 | ||
22772 | int (*ptr)() = (int (*)())csqrtl; | |
22773 | ||
d213114b | 22774 | int |
22775 | main () | |
22776 | { | |
d213114b | 22777 | return 0; |
22778 | } | |
7d9455ce | 22779 | |
d213114b | 22780 | _ACEOF |
cd9a469c | 22781 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22782 | gcc_cv_math_func_csqrtl=yes |
d213114b | 22783 | else |
7d9455ce | 22784 | gcc_cv_math_func_csqrtl=no |
d213114b | 22785 | fi |
cd9a469c | 22786 | rm -f core conftest.err conftest.$ac_objext \ |
22787 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22788 | fi |
7d9455ce | 22789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
22790 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
22791 | if test $gcc_cv_math_func_csqrtl = yes; then | |
bd647a17 | 22792 | |
6affa8e1 | 22793 | cat >>confdefs.h <<_ACEOF |
22794 | #define HAVE_CSQRTL 1 | |
22795 | _ACEOF | |
7d9455ce | 22796 | |
22797 | fi | |
22798 | ||
d213114b | 22799 | |
d213114b | 22800 | |
d213114b | 22801 | |
7d9455ce | 22802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
22803 | $as_echo_n "checking for tanf... " >&6; } | |
f00f02a3 | 22804 | if ${gcc_cv_math_func_tanf+:} false; then : |
cd9a469c | 22805 | $as_echo_n "(cached) " >&6 |
d213114b | 22806 | else |
7d9455ce | 22807 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22808 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22809 | fi |
cd9a469c | 22810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22811 | /* end confdefs.h. */ |
22812 | ||
7d9455ce | 22813 | #ifdef HAVE_COMPLEX_H |
22814 | #include <complex.h> | |
22815 | #endif | |
22816 | #ifdef HAVE_MATH_H | |
22817 | #include <math.h> | |
d213114b | 22818 | #endif |
7d9455ce | 22819 | |
22820 | int (*ptr)() = (int (*)())tanf; | |
22821 | ||
d213114b | 22822 | int |
22823 | main () | |
22824 | { | |
d213114b | 22825 | return 0; |
22826 | } | |
7d9455ce | 22827 | |
d213114b | 22828 | _ACEOF |
cd9a469c | 22829 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22830 | gcc_cv_math_func_tanf=yes |
d213114b | 22831 | else |
7d9455ce | 22832 | gcc_cv_math_func_tanf=no |
d213114b | 22833 | fi |
cd9a469c | 22834 | rm -f core conftest.err conftest.$ac_objext \ |
22835 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22836 | fi |
7d9455ce | 22837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
22838 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
22839 | if test $gcc_cv_math_func_tanf = yes; then | |
bd647a17 | 22840 | |
6affa8e1 | 22841 | cat >>confdefs.h <<_ACEOF |
22842 | #define HAVE_TANF 1 | |
22843 | _ACEOF | |
7d9455ce | 22844 | |
22845 | fi | |
d213114b | 22846 | |
d213114b | 22847 | |
d213114b | 22848 | |
7d9455ce | 22849 | |
22850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
22851 | $as_echo_n "checking for tan... " >&6; } | |
f00f02a3 | 22852 | if ${gcc_cv_math_func_tan+:} false; then : |
cd9a469c | 22853 | $as_echo_n "(cached) " >&6 |
d213114b | 22854 | else |
7d9455ce | 22855 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22856 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22857 | fi |
cd9a469c | 22858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22859 | /* end confdefs.h. */ |
22860 | ||
7d9455ce | 22861 | #ifdef HAVE_COMPLEX_H |
22862 | #include <complex.h> | |
d213114b | 22863 | #endif |
7d9455ce | 22864 | #ifdef HAVE_MATH_H |
22865 | #include <math.h> | |
22866 | #endif | |
22867 | ||
22868 | int (*ptr)() = (int (*)())tan; | |
22869 | ||
d213114b | 22870 | int |
22871 | main () | |
22872 | { | |
d213114b | 22873 | return 0; |
22874 | } | |
7d9455ce | 22875 | |
d213114b | 22876 | _ACEOF |
cd9a469c | 22877 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22878 | gcc_cv_math_func_tan=yes |
d213114b | 22879 | else |
7d9455ce | 22880 | gcc_cv_math_func_tan=no |
d213114b | 22881 | fi |
cd9a469c | 22882 | rm -f core conftest.err conftest.$ac_objext \ |
22883 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22884 | fi |
7d9455ce | 22885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
22886 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
22887 | if test $gcc_cv_math_func_tan = yes; then | |
bd647a17 | 22888 | |
6affa8e1 | 22889 | cat >>confdefs.h <<_ACEOF |
22890 | #define HAVE_TAN 1 | |
22891 | _ACEOF | |
d213114b | 22892 | |
7d9455ce | 22893 | fi |
d213114b | 22894 | |
d213114b | 22895 | |
7d9455ce | 22896 | |
22897 | ||
22898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
22899 | $as_echo_n "checking for tanl... " >&6; } | |
f00f02a3 | 22900 | if ${gcc_cv_math_func_tanl+:} false; then : |
cd9a469c | 22901 | $as_echo_n "(cached) " >&6 |
d213114b | 22902 | else |
7d9455ce | 22903 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22904 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22905 | fi |
cd9a469c | 22906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22907 | /* end confdefs.h. */ |
22908 | ||
7d9455ce | 22909 | #ifdef HAVE_COMPLEX_H |
22910 | #include <complex.h> | |
22911 | #endif | |
22912 | #ifdef HAVE_MATH_H | |
22913 | #include <math.h> | |
d213114b | 22914 | #endif |
7d9455ce | 22915 | |
22916 | int (*ptr)() = (int (*)())tanl; | |
22917 | ||
d213114b | 22918 | int |
22919 | main () | |
22920 | { | |
d213114b | 22921 | return 0; |
22922 | } | |
7d9455ce | 22923 | |
d213114b | 22924 | _ACEOF |
cd9a469c | 22925 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22926 | gcc_cv_math_func_tanl=yes |
d213114b | 22927 | else |
7d9455ce | 22928 | gcc_cv_math_func_tanl=no |
d213114b | 22929 | fi |
cd9a469c | 22930 | rm -f core conftest.err conftest.$ac_objext \ |
22931 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22932 | fi |
7d9455ce | 22933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
22934 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
22935 | if test $gcc_cv_math_func_tanl = yes; then | |
bd647a17 | 22936 | |
6affa8e1 | 22937 | cat >>confdefs.h <<_ACEOF |
22938 | #define HAVE_TANL 1 | |
22939 | _ACEOF | |
7d9455ce | 22940 | |
22941 | fi | |
d213114b | 22942 | |
d213114b | 22943 | |
d213114b | 22944 | |
7d9455ce | 22945 | |
22946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
22947 | $as_echo_n "checking for ctanf... " >&6; } | |
f00f02a3 | 22948 | if ${gcc_cv_math_func_ctanf+:} false; then : |
cd9a469c | 22949 | $as_echo_n "(cached) " >&6 |
d213114b | 22950 | else |
7d9455ce | 22951 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22952 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22953 | fi |
cd9a469c | 22954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22955 | /* end confdefs.h. */ |
22956 | ||
7d9455ce | 22957 | #ifdef HAVE_COMPLEX_H |
22958 | #include <complex.h> | |
d213114b | 22959 | #endif |
7d9455ce | 22960 | #ifdef HAVE_MATH_H |
22961 | #include <math.h> | |
22962 | #endif | |
22963 | ||
22964 | int (*ptr)() = (int (*)())ctanf; | |
22965 | ||
d213114b | 22966 | int |
22967 | main () | |
22968 | { | |
d213114b | 22969 | return 0; |
22970 | } | |
7d9455ce | 22971 | |
d213114b | 22972 | _ACEOF |
cd9a469c | 22973 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22974 | gcc_cv_math_func_ctanf=yes |
d213114b | 22975 | else |
7d9455ce | 22976 | gcc_cv_math_func_ctanf=no |
d213114b | 22977 | fi |
cd9a469c | 22978 | rm -f core conftest.err conftest.$ac_objext \ |
22979 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22980 | fi |
7d9455ce | 22981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
22982 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
22983 | if test $gcc_cv_math_func_ctanf = yes; then | |
bd647a17 | 22984 | |
6affa8e1 | 22985 | cat >>confdefs.h <<_ACEOF |
22986 | #define HAVE_CTANF 1 | |
22987 | _ACEOF | |
7d9455ce | 22988 | |
22989 | fi | |
22990 | ||
d213114b | 22991 | |
d213114b | 22992 | |
d213114b | 22993 | |
7d9455ce | 22994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
22995 | $as_echo_n "checking for ctan... " >&6; } | |
f00f02a3 | 22996 | if ${gcc_cv_math_func_ctan+:} false; then : |
cd9a469c | 22997 | $as_echo_n "(cached) " >&6 |
d213114b | 22998 | else |
7d9455ce | 22999 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23000 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23001 | fi |
cd9a469c | 23002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23003 | /* end confdefs.h. */ |
23004 | ||
7d9455ce | 23005 | #ifdef HAVE_COMPLEX_H |
23006 | #include <complex.h> | |
23007 | #endif | |
23008 | #ifdef HAVE_MATH_H | |
23009 | #include <math.h> | |
d213114b | 23010 | #endif |
7d9455ce | 23011 | |
23012 | int (*ptr)() = (int (*)())ctan; | |
23013 | ||
d213114b | 23014 | int |
23015 | main () | |
23016 | { | |
d213114b | 23017 | return 0; |
23018 | } | |
7d9455ce | 23019 | |
d213114b | 23020 | _ACEOF |
cd9a469c | 23021 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23022 | gcc_cv_math_func_ctan=yes |
d213114b | 23023 | else |
7d9455ce | 23024 | gcc_cv_math_func_ctan=no |
d213114b | 23025 | fi |
cd9a469c | 23026 | rm -f core conftest.err conftest.$ac_objext \ |
23027 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23028 | fi |
7d9455ce | 23029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23030 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23031 | if test $gcc_cv_math_func_ctan = yes; then | |
bd647a17 | 23032 | |
6affa8e1 | 23033 | cat >>confdefs.h <<_ACEOF |
23034 | #define HAVE_CTAN 1 | |
23035 | _ACEOF | |
7d9455ce | 23036 | |
23037 | fi | |
d213114b | 23038 | |
d213114b | 23039 | |
d213114b | 23040 | |
7d9455ce | 23041 | |
23042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23043 | $as_echo_n "checking for ctanl... " >&6; } | |
f00f02a3 | 23044 | if ${gcc_cv_math_func_ctanl+:} false; then : |
cd9a469c | 23045 | $as_echo_n "(cached) " >&6 |
d213114b | 23046 | else |
7d9455ce | 23047 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23048 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23049 | fi |
cd9a469c | 23050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23051 | /* end confdefs.h. */ |
23052 | ||
7d9455ce | 23053 | #ifdef HAVE_COMPLEX_H |
23054 | #include <complex.h> | |
d213114b | 23055 | #endif |
7d9455ce | 23056 | #ifdef HAVE_MATH_H |
23057 | #include <math.h> | |
23058 | #endif | |
23059 | ||
23060 | int (*ptr)() = (int (*)())ctanl; | |
23061 | ||
d213114b | 23062 | int |
23063 | main () | |
23064 | { | |
d213114b | 23065 | return 0; |
23066 | } | |
7d9455ce | 23067 | |
d213114b | 23068 | _ACEOF |
cd9a469c | 23069 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23070 | gcc_cv_math_func_ctanl=yes |
d213114b | 23071 | else |
7d9455ce | 23072 | gcc_cv_math_func_ctanl=no |
d213114b | 23073 | fi |
cd9a469c | 23074 | rm -f core conftest.err conftest.$ac_objext \ |
23075 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23076 | fi |
7d9455ce | 23077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23078 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23079 | if test $gcc_cv_math_func_ctanl = yes; then | |
bd647a17 | 23080 | |
6affa8e1 | 23081 | cat >>confdefs.h <<_ACEOF |
23082 | #define HAVE_CTANL 1 | |
23083 | _ACEOF | |
d213114b | 23084 | |
7d9455ce | 23085 | fi |
d213114b | 23086 | |
d213114b | 23087 | |
7d9455ce | 23088 | |
23089 | ||
23090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23091 | $as_echo_n "checking for tanhf... " >&6; } | |
f00f02a3 | 23092 | if ${gcc_cv_math_func_tanhf+:} false; then : |
cd9a469c | 23093 | $as_echo_n "(cached) " >&6 |
d213114b | 23094 | else |
7d9455ce | 23095 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23097 | fi |
cd9a469c | 23098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23099 | /* end confdefs.h. */ |
23100 | ||
7d9455ce | 23101 | #ifdef HAVE_COMPLEX_H |
23102 | #include <complex.h> | |
23103 | #endif | |
23104 | #ifdef HAVE_MATH_H | |
23105 | #include <math.h> | |
d213114b | 23106 | #endif |
7d9455ce | 23107 | |
23108 | int (*ptr)() = (int (*)())tanhf; | |
23109 | ||
d213114b | 23110 | int |
23111 | main () | |
23112 | { | |
d213114b | 23113 | return 0; |
23114 | } | |
7d9455ce | 23115 | |
d213114b | 23116 | _ACEOF |
cd9a469c | 23117 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23118 | gcc_cv_math_func_tanhf=yes |
d213114b | 23119 | else |
7d9455ce | 23120 | gcc_cv_math_func_tanhf=no |
d213114b | 23121 | fi |
cd9a469c | 23122 | rm -f core conftest.err conftest.$ac_objext \ |
23123 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23124 | fi |
7d9455ce | 23125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23126 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23127 | if test $gcc_cv_math_func_tanhf = yes; then | |
bd647a17 | 23128 | |
6affa8e1 | 23129 | cat >>confdefs.h <<_ACEOF |
23130 | #define HAVE_TANHF 1 | |
23131 | _ACEOF | |
7d9455ce | 23132 | |
23133 | fi | |
d213114b | 23134 | |
d213114b | 23135 | |
d213114b | 23136 | |
7d9455ce | 23137 | |
23138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23139 | $as_echo_n "checking for tanh... " >&6; } | |
f00f02a3 | 23140 | if ${gcc_cv_math_func_tanh+:} false; then : |
cd9a469c | 23141 | $as_echo_n "(cached) " >&6 |
d213114b | 23142 | else |
7d9455ce | 23143 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23144 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23145 | fi |
cd9a469c | 23146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23147 | /* end confdefs.h. */ |
23148 | ||
7d9455ce | 23149 | #ifdef HAVE_COMPLEX_H |
23150 | #include <complex.h> | |
d213114b | 23151 | #endif |
7d9455ce | 23152 | #ifdef HAVE_MATH_H |
23153 | #include <math.h> | |
23154 | #endif | |
23155 | ||
23156 | int (*ptr)() = (int (*)())tanh; | |
23157 | ||
d213114b | 23158 | int |
23159 | main () | |
23160 | { | |
d213114b | 23161 | return 0; |
23162 | } | |
7d9455ce | 23163 | |
d213114b | 23164 | _ACEOF |
cd9a469c | 23165 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23166 | gcc_cv_math_func_tanh=yes |
d213114b | 23167 | else |
7d9455ce | 23168 | gcc_cv_math_func_tanh=no |
d213114b | 23169 | fi |
cd9a469c | 23170 | rm -f core conftest.err conftest.$ac_objext \ |
23171 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23172 | fi |
7d9455ce | 23173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23174 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23175 | if test $gcc_cv_math_func_tanh = yes; then | |
bd647a17 | 23176 | |
6affa8e1 | 23177 | cat >>confdefs.h <<_ACEOF |
23178 | #define HAVE_TANH 1 | |
23179 | _ACEOF | |
7d9455ce | 23180 | |
23181 | fi | |
23182 | ||
d213114b | 23183 | |
d213114b | 23184 | |
d213114b | 23185 | |
7d9455ce | 23186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23187 | $as_echo_n "checking for tanhl... " >&6; } | |
f00f02a3 | 23188 | if ${gcc_cv_math_func_tanhl+:} false; then : |
cd9a469c | 23189 | $as_echo_n "(cached) " >&6 |
d213114b | 23190 | else |
7d9455ce | 23191 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23192 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23193 | fi |
cd9a469c | 23194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23195 | /* end confdefs.h. */ |
23196 | ||
7d9455ce | 23197 | #ifdef HAVE_COMPLEX_H |
23198 | #include <complex.h> | |
23199 | #endif | |
23200 | #ifdef HAVE_MATH_H | |
23201 | #include <math.h> | |
d213114b | 23202 | #endif |
7d9455ce | 23203 | |
23204 | int (*ptr)() = (int (*)())tanhl; | |
23205 | ||
d213114b | 23206 | int |
23207 | main () | |
23208 | { | |
d213114b | 23209 | return 0; |
23210 | } | |
7d9455ce | 23211 | |
d213114b | 23212 | _ACEOF |
cd9a469c | 23213 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23214 | gcc_cv_math_func_tanhl=yes |
d213114b | 23215 | else |
7d9455ce | 23216 | gcc_cv_math_func_tanhl=no |
d213114b | 23217 | fi |
cd9a469c | 23218 | rm -f core conftest.err conftest.$ac_objext \ |
23219 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23220 | fi |
7d9455ce | 23221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23222 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23223 | if test $gcc_cv_math_func_tanhl = yes; then | |
bd647a17 | 23224 | |
6affa8e1 | 23225 | cat >>confdefs.h <<_ACEOF |
23226 | #define HAVE_TANHL 1 | |
23227 | _ACEOF | |
7d9455ce | 23228 | |
23229 | fi | |
d213114b | 23230 | |
d213114b | 23231 | |
d213114b | 23232 | |
7d9455ce | 23233 | |
23234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23235 | $as_echo_n "checking for ctanhf... " >&6; } | |
f00f02a3 | 23236 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
cd9a469c | 23237 | $as_echo_n "(cached) " >&6 |
d213114b | 23238 | else |
7d9455ce | 23239 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23240 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
7d9455ce | 23241 | fi |
23242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23243 | /* end confdefs.h. */ | |
23244 | ||
23245 | #ifdef HAVE_COMPLEX_H | |
23246 | #include <complex.h> | |
d213114b | 23247 | #endif |
7d9455ce | 23248 | #ifdef HAVE_MATH_H |
23249 | #include <math.h> | |
23250 | #endif | |
23251 | ||
23252 | int (*ptr)() = (int (*)())ctanhf; | |
23253 | ||
d213114b | 23254 | int |
23255 | main () | |
23256 | { | |
d213114b | 23257 | return 0; |
23258 | } | |
7d9455ce | 23259 | |
d213114b | 23260 | _ACEOF |
cd9a469c | 23261 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23262 | gcc_cv_math_func_ctanhf=yes |
d213114b | 23263 | else |
7d9455ce | 23264 | gcc_cv_math_func_ctanhf=no |
d213114b | 23265 | fi |
cd9a469c | 23266 | rm -f core conftest.err conftest.$ac_objext \ |
23267 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23268 | fi |
7d9455ce | 23269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23270 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23271 | if test $gcc_cv_math_func_ctanhf = yes; then | |
bd647a17 | 23272 | |
6affa8e1 | 23273 | cat >>confdefs.h <<_ACEOF |
23274 | #define HAVE_CTANHF 1 | |
23275 | _ACEOF | |
d213114b | 23276 | |
7d9455ce | 23277 | fi |
d213114b | 23278 | |
d213114b | 23279 | |
7d9455ce | 23280 | |
23281 | ||
23282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23283 | $as_echo_n "checking for ctanh... " >&6; } | |
f00f02a3 | 23284 | if ${gcc_cv_math_func_ctanh+:} false; then : |
cd9a469c | 23285 | $as_echo_n "(cached) " >&6 |
d213114b | 23286 | else |
7d9455ce | 23287 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23288 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23289 | fi |
cd9a469c | 23290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23291 | /* end confdefs.h. */ |
23292 | ||
7d9455ce | 23293 | #ifdef HAVE_COMPLEX_H |
23294 | #include <complex.h> | |
23295 | #endif | |
23296 | #ifdef HAVE_MATH_H | |
23297 | #include <math.h> | |
d213114b | 23298 | #endif |
7d9455ce | 23299 | |
23300 | int (*ptr)() = (int (*)())ctanh; | |
23301 | ||
d213114b | 23302 | int |
23303 | main () | |
23304 | { | |
cd9a469c | 23305 | return 0; |
23306 | } | |
7d9455ce | 23307 | |
cd9a469c | 23308 | _ACEOF |
23309 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 23310 | gcc_cv_math_func_ctanh=yes |
d213114b | 23311 | else |
7d9455ce | 23312 | gcc_cv_math_func_ctanh=no |
d213114b | 23313 | fi |
cd9a469c | 23314 | rm -f core conftest.err conftest.$ac_objext \ |
23315 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23316 | fi |
7d9455ce | 23317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23318 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23319 | if test $gcc_cv_math_func_ctanh = yes; then | |
bd647a17 | 23320 | |
6affa8e1 | 23321 | cat >>confdefs.h <<_ACEOF |
23322 | #define HAVE_CTANH 1 | |
23323 | _ACEOF | |
7d9455ce | 23324 | |
23325 | fi | |
d213114b | 23326 | |
d213114b | 23327 | |
d213114b | 23328 | |
7d9455ce | 23329 | |
23330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23331 | $as_echo_n "checking for ctanhl... " >&6; } | |
f00f02a3 | 23332 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
cd9a469c | 23333 | $as_echo_n "(cached) " >&6 |
d213114b | 23334 | else |
7d9455ce | 23335 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23336 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23337 | fi |
cd9a469c | 23338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23339 | /* end confdefs.h. */ |
23340 | ||
7d9455ce | 23341 | #ifdef HAVE_COMPLEX_H |
23342 | #include <complex.h> | |
d213114b | 23343 | #endif |
7d9455ce | 23344 | #ifdef HAVE_MATH_H |
23345 | #include <math.h> | |
23346 | #endif | |
23347 | ||
23348 | int (*ptr)() = (int (*)())ctanhl; | |
23349 | ||
d213114b | 23350 | int |
23351 | main () | |
23352 | { | |
d213114b | 23353 | return 0; |
23354 | } | |
7d9455ce | 23355 | |
d213114b | 23356 | _ACEOF |
cd9a469c | 23357 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23358 | gcc_cv_math_func_ctanhl=yes |
d213114b | 23359 | else |
7d9455ce | 23360 | gcc_cv_math_func_ctanhl=no |
d213114b | 23361 | fi |
cd9a469c | 23362 | rm -f core conftest.err conftest.$ac_objext \ |
23363 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23364 | fi |
7d9455ce | 23365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23366 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23367 | if test $gcc_cv_math_func_ctanhl = yes; then | |
bd647a17 | 23368 | |
6affa8e1 | 23369 | cat >>confdefs.h <<_ACEOF |
23370 | #define HAVE_CTANHL 1 | |
23371 | _ACEOF | |
7d9455ce | 23372 | |
23373 | fi | |
23374 | ||
d213114b | 23375 | |
50f0ca0a | 23376 | |
50f0ca0a | 23377 | |
7d9455ce | 23378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23379 | $as_echo_n "checking for truncf... " >&6; } | |
f00f02a3 | 23380 | if ${gcc_cv_math_func_truncf+:} false; then : |
cd9a469c | 23381 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 23382 | else |
7d9455ce | 23383 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23384 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23385 | fi |
cd9a469c | 23386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 23387 | /* end confdefs.h. */ |
23388 | ||
7d9455ce | 23389 | #ifdef HAVE_COMPLEX_H |
23390 | #include <complex.h> | |
23391 | #endif | |
23392 | #ifdef HAVE_MATH_H | |
23393 | #include <math.h> | |
50f0ca0a | 23394 | #endif |
7d9455ce | 23395 | |
23396 | int (*ptr)() = (int (*)())truncf; | |
23397 | ||
d213114b | 23398 | int |
23399 | main () | |
23400 | { | |
d213114b | 23401 | return 0; |
23402 | } | |
7d9455ce | 23403 | |
d213114b | 23404 | _ACEOF |
cd9a469c | 23405 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23406 | gcc_cv_math_func_truncf=yes |
d213114b | 23407 | else |
7d9455ce | 23408 | gcc_cv_math_func_truncf=no |
d213114b | 23409 | fi |
cd9a469c | 23410 | rm -f core conftest.err conftest.$ac_objext \ |
23411 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23412 | fi |
7d9455ce | 23413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23414 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23415 | if test $gcc_cv_math_func_truncf = yes; then | |
bd647a17 | 23416 | |
6affa8e1 | 23417 | cat >>confdefs.h <<_ACEOF |
23418 | #define HAVE_TRUNCF 1 | |
23419 | _ACEOF | |
7d9455ce | 23420 | |
23421 | fi | |
d213114b | 23422 | |
d213114b | 23423 | |
d213114b | 23424 | |
7d9455ce | 23425 | |
23426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23427 | $as_echo_n "checking for trunc... " >&6; } | |
f00f02a3 | 23428 | if ${gcc_cv_math_func_trunc+:} false; then : |
cd9a469c | 23429 | $as_echo_n "(cached) " >&6 |
d213114b | 23430 | else |
7d9455ce | 23431 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23432 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23433 | fi |
cd9a469c | 23434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23435 | /* end confdefs.h. */ |
23436 | ||
7d9455ce | 23437 | #ifdef HAVE_COMPLEX_H |
23438 | #include <complex.h> | |
d213114b | 23439 | #endif |
7d9455ce | 23440 | #ifdef HAVE_MATH_H |
23441 | #include <math.h> | |
23442 | #endif | |
23443 | ||
23444 | int (*ptr)() = (int (*)())trunc; | |
23445 | ||
d213114b | 23446 | int |
23447 | main () | |
23448 | { | |
d213114b | 23449 | return 0; |
23450 | } | |
7d9455ce | 23451 | |
d213114b | 23452 | _ACEOF |
cd9a469c | 23453 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23454 | gcc_cv_math_func_trunc=yes |
d213114b | 23455 | else |
7d9455ce | 23456 | gcc_cv_math_func_trunc=no |
d213114b | 23457 | fi |
cd9a469c | 23458 | rm -f core conftest.err conftest.$ac_objext \ |
23459 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23460 | fi |
7d9455ce | 23461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23462 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23463 | if test $gcc_cv_math_func_trunc = yes; then | |
bd647a17 | 23464 | |
6affa8e1 | 23465 | cat >>confdefs.h <<_ACEOF |
23466 | #define HAVE_TRUNC 1 | |
23467 | _ACEOF | |
d213114b | 23468 | |
7d9455ce | 23469 | fi |
d213114b | 23470 | |
d213114b | 23471 | |
7d9455ce | 23472 | |
23473 | ||
23474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23475 | $as_echo_n "checking for truncl... " >&6; } | |
f00f02a3 | 23476 | if ${gcc_cv_math_func_truncl+:} false; then : |
cd9a469c | 23477 | $as_echo_n "(cached) " >&6 |
d213114b | 23478 | else |
7d9455ce | 23479 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23480 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23481 | fi |
cd9a469c | 23482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23483 | /* end confdefs.h. */ |
23484 | ||
7d9455ce | 23485 | #ifdef HAVE_COMPLEX_H |
23486 | #include <complex.h> | |
23487 | #endif | |
23488 | #ifdef HAVE_MATH_H | |
23489 | #include <math.h> | |
d213114b | 23490 | #endif |
7d9455ce | 23491 | |
23492 | int (*ptr)() = (int (*)())truncl; | |
23493 | ||
d213114b | 23494 | int |
23495 | main () | |
23496 | { | |
d213114b | 23497 | return 0; |
23498 | } | |
7d9455ce | 23499 | |
d213114b | 23500 | _ACEOF |
cd9a469c | 23501 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23502 | gcc_cv_math_func_truncl=yes |
d213114b | 23503 | else |
7d9455ce | 23504 | gcc_cv_math_func_truncl=no |
d213114b | 23505 | fi |
cd9a469c | 23506 | rm -f core conftest.err conftest.$ac_objext \ |
23507 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23508 | fi |
7d9455ce | 23509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23510 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23511 | if test $gcc_cv_math_func_truncl = yes; then | |
bd647a17 | 23512 | |
6affa8e1 | 23513 | cat >>confdefs.h <<_ACEOF |
23514 | #define HAVE_TRUNCL 1 | |
23515 | _ACEOF | |
7d9455ce | 23516 | |
23517 | fi | |
d213114b | 23518 | |
d213114b | 23519 | |
d213114b | 23520 | |
7d9455ce | 23521 | |
23522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23523 | $as_echo_n "checking for erff... " >&6; } | |
f00f02a3 | 23524 | if ${gcc_cv_math_func_erff+:} false; then : |
cd9a469c | 23525 | $as_echo_n "(cached) " >&6 |
d213114b | 23526 | else |
7d9455ce | 23527 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23528 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23529 | fi |
cd9a469c | 23530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23531 | /* end confdefs.h. */ |
23532 | ||
7d9455ce | 23533 | #ifdef HAVE_COMPLEX_H |
23534 | #include <complex.h> | |
d213114b | 23535 | #endif |
7d9455ce | 23536 | #ifdef HAVE_MATH_H |
23537 | #include <math.h> | |
23538 | #endif | |
23539 | ||
23540 | int (*ptr)() = (int (*)())erff; | |
23541 | ||
d213114b | 23542 | int |
23543 | main () | |
23544 | { | |
d213114b | 23545 | return 0; |
23546 | } | |
7d9455ce | 23547 | |
d213114b | 23548 | _ACEOF |
cd9a469c | 23549 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23550 | gcc_cv_math_func_erff=yes |
d213114b | 23551 | else |
7d9455ce | 23552 | gcc_cv_math_func_erff=no |
d213114b | 23553 | fi |
cd9a469c | 23554 | rm -f core conftest.err conftest.$ac_objext \ |
23555 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23556 | fi |
7d9455ce | 23557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23558 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23559 | if test $gcc_cv_math_func_erff = yes; then | |
bd647a17 | 23560 | |
6affa8e1 | 23561 | cat >>confdefs.h <<_ACEOF |
23562 | #define HAVE_ERFF 1 | |
23563 | _ACEOF | |
7d9455ce | 23564 | |
23565 | fi | |
23566 | ||
d213114b | 23567 | |
d213114b | 23568 | |
d213114b | 23569 | |
7d9455ce | 23570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23571 | $as_echo_n "checking for erf... " >&6; } | |
f00f02a3 | 23572 | if ${gcc_cv_math_func_erf+:} false; then : |
cd9a469c | 23573 | $as_echo_n "(cached) " >&6 |
d213114b | 23574 | else |
7d9455ce | 23575 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23576 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23577 | fi |
cd9a469c | 23578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23579 | /* end confdefs.h. */ |
23580 | ||
7d9455ce | 23581 | #ifdef HAVE_COMPLEX_H |
23582 | #include <complex.h> | |
23583 | #endif | |
23584 | #ifdef HAVE_MATH_H | |
23585 | #include <math.h> | |
d213114b | 23586 | #endif |
7d9455ce | 23587 | |
23588 | int (*ptr)() = (int (*)())erf; | |
23589 | ||
d213114b | 23590 | int |
23591 | main () | |
23592 | { | |
d213114b | 23593 | return 0; |
23594 | } | |
7d9455ce | 23595 | |
d213114b | 23596 | _ACEOF |
cd9a469c | 23597 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23598 | gcc_cv_math_func_erf=yes |
d213114b | 23599 | else |
7d9455ce | 23600 | gcc_cv_math_func_erf=no |
d213114b | 23601 | fi |
cd9a469c | 23602 | rm -f core conftest.err conftest.$ac_objext \ |
23603 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23604 | fi |
7d9455ce | 23605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23606 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23607 | if test $gcc_cv_math_func_erf = yes; then | |
bd647a17 | 23608 | |
6affa8e1 | 23609 | cat >>confdefs.h <<_ACEOF |
23610 | #define HAVE_ERF 1 | |
23611 | _ACEOF | |
7d9455ce | 23612 | |
23613 | fi | |
d213114b | 23614 | |
d213114b | 23615 | |
d213114b | 23616 | |
7d9455ce | 23617 | |
7d9455ce | 23618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23619 | $as_echo_n "checking for erfcf... " >&6; } | |
f00f02a3 | 23620 | if ${gcc_cv_math_func_erfcf+:} false; then : |
cd9a469c | 23621 | $as_echo_n "(cached) " >&6 |
d213114b | 23622 | else |
7d9455ce | 23623 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23624 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23625 | fi |
cd9a469c | 23626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23627 | /* end confdefs.h. */ |
23628 | ||
7d9455ce | 23629 | #ifdef HAVE_COMPLEX_H |
23630 | #include <complex.h> | |
23631 | #endif | |
23632 | #ifdef HAVE_MATH_H | |
23633 | #include <math.h> | |
d213114b | 23634 | #endif |
7d9455ce | 23635 | |
23636 | int (*ptr)() = (int (*)())erfcf; | |
23637 | ||
d213114b | 23638 | int |
23639 | main () | |
23640 | { | |
d213114b | 23641 | return 0; |
23642 | } | |
7d9455ce | 23643 | |
d213114b | 23644 | _ACEOF |
cd9a469c | 23645 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23646 | gcc_cv_math_func_erfcf=yes |
d213114b | 23647 | else |
7d9455ce | 23648 | gcc_cv_math_func_erfcf=no |
d213114b | 23649 | fi |
cd9a469c | 23650 | rm -f core conftest.err conftest.$ac_objext \ |
23651 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23652 | fi |
7d9455ce | 23653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23654 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23655 | if test $gcc_cv_math_func_erfcf = yes; then | |
bd647a17 | 23656 | |
6affa8e1 | 23657 | cat >>confdefs.h <<_ACEOF |
23658 | #define HAVE_ERFCF 1 | |
23659 | _ACEOF | |
7d9455ce | 23660 | |
23661 | fi | |
d213114b | 23662 | |
d213114b | 23663 | |
d213114b | 23664 | |
7d9455ce | 23665 | |
23666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23667 | $as_echo_n "checking for erfc... " >&6; } | |
f00f02a3 | 23668 | if ${gcc_cv_math_func_erfc+:} false; then : |
cd9a469c | 23669 | $as_echo_n "(cached) " >&6 |
d213114b | 23670 | else |
7d9455ce | 23671 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23672 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23673 | fi |
cd9a469c | 23674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23675 | /* end confdefs.h. */ |
23676 | ||
7d9455ce | 23677 | #ifdef HAVE_COMPLEX_H |
23678 | #include <complex.h> | |
d213114b | 23679 | #endif |
7d9455ce | 23680 | #ifdef HAVE_MATH_H |
23681 | #include <math.h> | |
23682 | #endif | |
23683 | ||
23684 | int (*ptr)() = (int (*)())erfc; | |
23685 | ||
50f0ca0a | 23686 | int |
23687 | main () | |
23688 | { | |
50f0ca0a | 23689 | return 0; |
23690 | } | |
7d9455ce | 23691 | |
50f0ca0a | 23692 | _ACEOF |
cd9a469c | 23693 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23694 | gcc_cv_math_func_erfc=yes |
50f0ca0a | 23695 | else |
7d9455ce | 23696 | gcc_cv_math_func_erfc=no |
50f0ca0a | 23697 | fi |
cd9a469c | 23698 | rm -f core conftest.err conftest.$ac_objext \ |
23699 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 23700 | fi |
7d9455ce | 23701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
23702 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
23703 | if test $gcc_cv_math_func_erfc = yes; then | |
bd647a17 | 23704 | |
6affa8e1 | 23705 | cat >>confdefs.h <<_ACEOF |
23706 | #define HAVE_ERFC 1 | |
23707 | _ACEOF | |
7d9455ce | 23708 | |
23709 | fi | |
23710 | ||
50f0ca0a | 23711 | |
50f0ca0a | 23712 | |
50f0ca0a | 23713 | |
7d9455ce | 23714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
23715 | $as_echo_n "checking for erfcl... " >&6; } | |
f00f02a3 | 23716 | if ${gcc_cv_math_func_erfcl+:} false; then : |
cd9a469c | 23717 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23718 | else |
7d9455ce | 23719 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23720 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23721 | fi |
cd9a469c | 23722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23723 | /* end confdefs.h. */ |
23724 | ||
7d9455ce | 23725 | #ifdef HAVE_COMPLEX_H |
23726 | #include <complex.h> | |
23727 | #endif | |
23728 | #ifdef HAVE_MATH_H | |
23729 | #include <math.h> | |
158e0e64 | 23730 | #endif |
7d9455ce | 23731 | |
23732 | int (*ptr)() = (int (*)())erfcl; | |
23733 | ||
158e0e64 | 23734 | int |
23735 | main () | |
23736 | { | |
158e0e64 | 23737 | return 0; |
23738 | } | |
7d9455ce | 23739 | |
158e0e64 | 23740 | _ACEOF |
cd9a469c | 23741 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23742 | gcc_cv_math_func_erfcl=yes |
158e0e64 | 23743 | else |
7d9455ce | 23744 | gcc_cv_math_func_erfcl=no |
158e0e64 | 23745 | fi |
cd9a469c | 23746 | rm -f core conftest.err conftest.$ac_objext \ |
23747 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23748 | fi |
7d9455ce | 23749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
23750 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
23751 | if test $gcc_cv_math_func_erfcl = yes; then | |
bd647a17 | 23752 | |
6affa8e1 | 23753 | cat >>confdefs.h <<_ACEOF |
23754 | #define HAVE_ERFCL 1 | |
23755 | _ACEOF | |
7d9455ce | 23756 | |
23757 | fi | |
158e0e64 | 23758 | |
158e0e64 | 23759 | |
158e0e64 | 23760 | |
7d9455ce | 23761 | |
23762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
23763 | $as_echo_n "checking for j0f... " >&6; } | |
f00f02a3 | 23764 | if ${gcc_cv_math_func_j0f+:} false; then : |
cd9a469c | 23765 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23766 | else |
7d9455ce | 23767 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23768 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23769 | fi |
cd9a469c | 23770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23771 | /* end confdefs.h. */ |
23772 | ||
7d9455ce | 23773 | #ifdef HAVE_COMPLEX_H |
23774 | #include <complex.h> | |
158e0e64 | 23775 | #endif |
7d9455ce | 23776 | #ifdef HAVE_MATH_H |
23777 | #include <math.h> | |
23778 | #endif | |
23779 | ||
23780 | int (*ptr)() = (int (*)())j0f; | |
23781 | ||
158e0e64 | 23782 | int |
23783 | main () | |
23784 | { | |
158e0e64 | 23785 | return 0; |
23786 | } | |
7d9455ce | 23787 | |
158e0e64 | 23788 | _ACEOF |
cd9a469c | 23789 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23790 | gcc_cv_math_func_j0f=yes |
158e0e64 | 23791 | else |
7d9455ce | 23792 | gcc_cv_math_func_j0f=no |
d213114b | 23793 | fi |
cd9a469c | 23794 | rm -f core conftest.err conftest.$ac_objext \ |
23795 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23796 | fi |
7d9455ce | 23797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
23798 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
23799 | if test $gcc_cv_math_func_j0f = yes; then | |
bd647a17 | 23800 | |
6affa8e1 | 23801 | cat >>confdefs.h <<_ACEOF |
23802 | #define HAVE_J0F 1 | |
23803 | _ACEOF | |
d213114b | 23804 | |
7d9455ce | 23805 | fi |
d213114b | 23806 | |
d213114b | 23807 | |
7d9455ce | 23808 | |
23809 | ||
23810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
23811 | $as_echo_n "checking for j0... " >&6; } | |
f00f02a3 | 23812 | if ${gcc_cv_math_func_j0+:} false; then : |
cd9a469c | 23813 | $as_echo_n "(cached) " >&6 |
d213114b | 23814 | else |
7d9455ce | 23815 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23816 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23817 | fi |
cd9a469c | 23818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23819 | /* end confdefs.h. */ |
23820 | ||
7d9455ce | 23821 | #ifdef HAVE_COMPLEX_H |
23822 | #include <complex.h> | |
23823 | #endif | |
23824 | #ifdef HAVE_MATH_H | |
23825 | #include <math.h> | |
d213114b | 23826 | #endif |
7d9455ce | 23827 | |
23828 | int (*ptr)() = (int (*)())j0; | |
23829 | ||
d213114b | 23830 | int |
23831 | main () | |
23832 | { | |
d213114b | 23833 | return 0; |
23834 | } | |
7d9455ce | 23835 | |
d213114b | 23836 | _ACEOF |
cd9a469c | 23837 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23838 | gcc_cv_math_func_j0=yes |
d213114b | 23839 | else |
7d9455ce | 23840 | gcc_cv_math_func_j0=no |
d213114b | 23841 | fi |
cd9a469c | 23842 | rm -f core conftest.err conftest.$ac_objext \ |
23843 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23844 | fi |
7d9455ce | 23845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
23846 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
23847 | if test $gcc_cv_math_func_j0 = yes; then | |
bd647a17 | 23848 | |
6affa8e1 | 23849 | cat >>confdefs.h <<_ACEOF |
23850 | #define HAVE_J0 1 | |
23851 | _ACEOF | |
7d9455ce | 23852 | |
23853 | fi | |
d213114b | 23854 | |
d213114b | 23855 | |
d213114b | 23856 | |
7d9455ce | 23857 | |
7d9455ce | 23858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
23859 | $as_echo_n "checking for j1f... " >&6; } | |
f00f02a3 | 23860 | if ${gcc_cv_math_func_j1f+:} false; then : |
cd9a469c | 23861 | $as_echo_n "(cached) " >&6 |
d213114b | 23862 | else |
7d9455ce | 23863 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23864 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23865 | fi |
cd9a469c | 23866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23867 | /* end confdefs.h. */ |
23868 | ||
7d9455ce | 23869 | #ifdef HAVE_COMPLEX_H |
23870 | #include <complex.h> | |
23871 | #endif | |
23872 | #ifdef HAVE_MATH_H | |
23873 | #include <math.h> | |
d213114b | 23874 | #endif |
7d9455ce | 23875 | |
23876 | int (*ptr)() = (int (*)())j1f; | |
23877 | ||
d213114b | 23878 | int |
23879 | main () | |
23880 | { | |
d213114b | 23881 | return 0; |
23882 | } | |
7d9455ce | 23883 | |
d213114b | 23884 | _ACEOF |
cd9a469c | 23885 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23886 | gcc_cv_math_func_j1f=yes |
d213114b | 23887 | else |
7d9455ce | 23888 | gcc_cv_math_func_j1f=no |
158e0e64 | 23889 | fi |
cd9a469c | 23890 | rm -f core conftest.err conftest.$ac_objext \ |
23891 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23892 | fi |
7d9455ce | 23893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
23894 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
23895 | if test $gcc_cv_math_func_j1f = yes; then | |
bd647a17 | 23896 | |
6affa8e1 | 23897 | cat >>confdefs.h <<_ACEOF |
23898 | #define HAVE_J1F 1 | |
23899 | _ACEOF | |
7d9455ce | 23900 | |
23901 | fi | |
158e0e64 | 23902 | |
158e0e64 | 23903 | |
158e0e64 | 23904 | |
7d9455ce | 23905 | |
23906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
23907 | $as_echo_n "checking for j1... " >&6; } | |
f00f02a3 | 23908 | if ${gcc_cv_math_func_j1+:} false; then : |
cd9a469c | 23909 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23910 | else |
7d9455ce | 23911 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23912 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23913 | fi |
cd9a469c | 23914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23915 | /* end confdefs.h. */ |
23916 | ||
7d9455ce | 23917 | #ifdef HAVE_COMPLEX_H |
23918 | #include <complex.h> | |
158e0e64 | 23919 | #endif |
7d9455ce | 23920 | #ifdef HAVE_MATH_H |
23921 | #include <math.h> | |
23922 | #endif | |
23923 | ||
23924 | int (*ptr)() = (int (*)())j1; | |
23925 | ||
158e0e64 | 23926 | int |
23927 | main () | |
23928 | { | |
158e0e64 | 23929 | return 0; |
23930 | } | |
7d9455ce | 23931 | |
158e0e64 | 23932 | _ACEOF |
cd9a469c | 23933 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23934 | gcc_cv_math_func_j1=yes |
158e0e64 | 23935 | else |
7d9455ce | 23936 | gcc_cv_math_func_j1=no |
158e0e64 | 23937 | fi |
cd9a469c | 23938 | rm -f core conftest.err conftest.$ac_objext \ |
23939 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23940 | fi |
7d9455ce | 23941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
23942 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
23943 | if test $gcc_cv_math_func_j1 = yes; then | |
bd647a17 | 23944 | |
6affa8e1 | 23945 | cat >>confdefs.h <<_ACEOF |
23946 | #define HAVE_J1 1 | |
23947 | _ACEOF | |
158e0e64 | 23948 | |
7d9455ce | 23949 | fi |
158e0e64 | 23950 | |
158e0e64 | 23951 | |
7d9455ce | 23952 | |
23953 | ||
7d9455ce | 23954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
23955 | $as_echo_n "checking for jnf... " >&6; } | |
f00f02a3 | 23956 | if ${gcc_cv_math_func_jnf+:} false; then : |
cd9a469c | 23957 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23958 | else |
7d9455ce | 23959 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23960 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23961 | fi |
cd9a469c | 23962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23963 | /* end confdefs.h. */ |
23964 | ||
7d9455ce | 23965 | #ifdef HAVE_COMPLEX_H |
23966 | #include <complex.h> | |
158e0e64 | 23967 | #endif |
7d9455ce | 23968 | #ifdef HAVE_MATH_H |
23969 | #include <math.h> | |
23970 | #endif | |
23971 | ||
23972 | int (*ptr)() = (int (*)())jnf; | |
23973 | ||
158e0e64 | 23974 | int |
23975 | main () | |
23976 | { | |
158e0e64 | 23977 | return 0; |
23978 | } | |
7d9455ce | 23979 | |
158e0e64 | 23980 | _ACEOF |
cd9a469c | 23981 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23982 | gcc_cv_math_func_jnf=yes |
158e0e64 | 23983 | else |
7d9455ce | 23984 | gcc_cv_math_func_jnf=no |
158e0e64 | 23985 | fi |
cd9a469c | 23986 | rm -f core conftest.err conftest.$ac_objext \ |
23987 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23988 | fi |
7d9455ce | 23989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
23990 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
23991 | if test $gcc_cv_math_func_jnf = yes; then | |
bd647a17 | 23992 | |
6affa8e1 | 23993 | cat >>confdefs.h <<_ACEOF |
23994 | #define HAVE_JNF 1 | |
23995 | _ACEOF | |
7d9455ce | 23996 | |
23997 | fi | |
23998 | ||
158e0e64 | 23999 | |
158e0e64 | 24000 | |
158e0e64 | 24001 | |
7d9455ce | 24002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24003 | $as_echo_n "checking for jn... " >&6; } | |
f00f02a3 | 24004 | if ${gcc_cv_math_func_jn+:} false; then : |
cd9a469c | 24005 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24006 | else |
7d9455ce | 24007 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24008 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24009 | fi |
cd9a469c | 24010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24011 | /* end confdefs.h. */ |
24012 | ||
7d9455ce | 24013 | #ifdef HAVE_COMPLEX_H |
24014 | #include <complex.h> | |
24015 | #endif | |
24016 | #ifdef HAVE_MATH_H | |
24017 | #include <math.h> | |
158e0e64 | 24018 | #endif |
7d9455ce | 24019 | |
24020 | int (*ptr)() = (int (*)())jn; | |
24021 | ||
158e0e64 | 24022 | int |
24023 | main () | |
24024 | { | |
158e0e64 | 24025 | return 0; |
24026 | } | |
7d9455ce | 24027 | |
158e0e64 | 24028 | _ACEOF |
cd9a469c | 24029 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24030 | gcc_cv_math_func_jn=yes |
158e0e64 | 24031 | else |
7d9455ce | 24032 | gcc_cv_math_func_jn=no |
158e0e64 | 24033 | fi |
cd9a469c | 24034 | rm -f core conftest.err conftest.$ac_objext \ |
24035 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24036 | fi |
7d9455ce | 24037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24038 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24039 | if test $gcc_cv_math_func_jn = yes; then | |
bd647a17 | 24040 | |
6affa8e1 | 24041 | cat >>confdefs.h <<_ACEOF |
24042 | #define HAVE_JN 1 | |
24043 | _ACEOF | |
7d9455ce | 24044 | |
24045 | fi | |
158e0e64 | 24046 | |
158e0e64 | 24047 | |
158e0e64 | 24048 | |
7d9455ce | 24049 | |
24050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24051 | $as_echo_n "checking for jnl... " >&6; } | |
f00f02a3 | 24052 | if ${gcc_cv_math_func_jnl+:} false; then : |
cd9a469c | 24053 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24054 | else |
7d9455ce | 24055 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24056 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24057 | fi |
cd9a469c | 24058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24059 | /* end confdefs.h. */ |
24060 | ||
7d9455ce | 24061 | #ifdef HAVE_COMPLEX_H |
24062 | #include <complex.h> | |
158e0e64 | 24063 | #endif |
7d9455ce | 24064 | #ifdef HAVE_MATH_H |
24065 | #include <math.h> | |
24066 | #endif | |
24067 | ||
24068 | int (*ptr)() = (int (*)())jnl; | |
24069 | ||
158e0e64 | 24070 | int |
24071 | main () | |
24072 | { | |
158e0e64 | 24073 | return 0; |
24074 | } | |
7d9455ce | 24075 | |
158e0e64 | 24076 | _ACEOF |
cd9a469c | 24077 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24078 | gcc_cv_math_func_jnl=yes |
158e0e64 | 24079 | else |
7d9455ce | 24080 | gcc_cv_math_func_jnl=no |
158e0e64 | 24081 | fi |
cd9a469c | 24082 | rm -f core conftest.err conftest.$ac_objext \ |
24083 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24084 | fi |
7d9455ce | 24085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24086 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24087 | if test $gcc_cv_math_func_jnl = yes; then | |
bd647a17 | 24088 | |
6affa8e1 | 24089 | cat >>confdefs.h <<_ACEOF |
24090 | #define HAVE_JNL 1 | |
24091 | _ACEOF | |
158e0e64 | 24092 | |
7d9455ce | 24093 | fi |
158e0e64 | 24094 | |
158e0e64 | 24095 | |
7d9455ce | 24096 | |
24097 | ||
24098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24099 | $as_echo_n "checking for y0f... " >&6; } | |
f00f02a3 | 24100 | if ${gcc_cv_math_func_y0f+:} false; then : |
cd9a469c | 24101 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24102 | else |
7d9455ce | 24103 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24104 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24105 | fi |
cd9a469c | 24106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24107 | /* end confdefs.h. */ |
24108 | ||
7d9455ce | 24109 | #ifdef HAVE_COMPLEX_H |
24110 | #include <complex.h> | |
24111 | #endif | |
24112 | #ifdef HAVE_MATH_H | |
24113 | #include <math.h> | |
158e0e64 | 24114 | #endif |
7d9455ce | 24115 | |
24116 | int (*ptr)() = (int (*)())y0f; | |
24117 | ||
158e0e64 | 24118 | int |
24119 | main () | |
24120 | { | |
158e0e64 | 24121 | return 0; |
24122 | } | |
7d9455ce | 24123 | |
158e0e64 | 24124 | _ACEOF |
cd9a469c | 24125 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24126 | gcc_cv_math_func_y0f=yes |
158e0e64 | 24127 | else |
7d9455ce | 24128 | gcc_cv_math_func_y0f=no |
158e0e64 | 24129 | fi |
cd9a469c | 24130 | rm -f core conftest.err conftest.$ac_objext \ |
24131 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24132 | fi |
7d9455ce | 24133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24134 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24135 | if test $gcc_cv_math_func_y0f = yes; then | |
bd647a17 | 24136 | |
6affa8e1 | 24137 | cat >>confdefs.h <<_ACEOF |
24138 | #define HAVE_Y0F 1 | |
24139 | _ACEOF | |
7d9455ce | 24140 | |
24141 | fi | |
158e0e64 | 24142 | |
158e0e64 | 24143 | |
158e0e64 | 24144 | |
7d9455ce | 24145 | |
24146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24147 | $as_echo_n "checking for y0... " >&6; } | |
f00f02a3 | 24148 | if ${gcc_cv_math_func_y0+:} false; then : |
cd9a469c | 24149 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24150 | else |
7d9455ce | 24151 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24152 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24153 | fi |
cd9a469c | 24154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24155 | /* end confdefs.h. */ |
24156 | ||
7d9455ce | 24157 | #ifdef HAVE_COMPLEX_H |
24158 | #include <complex.h> | |
158e0e64 | 24159 | #endif |
7d9455ce | 24160 | #ifdef HAVE_MATH_H |
24161 | #include <math.h> | |
24162 | #endif | |
24163 | ||
24164 | int (*ptr)() = (int (*)())y0; | |
24165 | ||
158e0e64 | 24166 | int |
24167 | main () | |
24168 | { | |
158e0e64 | 24169 | return 0; |
24170 | } | |
7d9455ce | 24171 | |
158e0e64 | 24172 | _ACEOF |
cd9a469c | 24173 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24174 | gcc_cv_math_func_y0=yes |
158e0e64 | 24175 | else |
7d9455ce | 24176 | gcc_cv_math_func_y0=no |
158e0e64 | 24177 | fi |
cd9a469c | 24178 | rm -f core conftest.err conftest.$ac_objext \ |
24179 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24180 | fi |
7d9455ce | 24181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24182 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24183 | if test $gcc_cv_math_func_y0 = yes; then | |
bd647a17 | 24184 | |
6affa8e1 | 24185 | cat >>confdefs.h <<_ACEOF |
24186 | #define HAVE_Y0 1 | |
24187 | _ACEOF | |
7d9455ce | 24188 | |
24189 | fi | |
24190 | ||
158e0e64 | 24191 | |
158e0e64 | 24192 | |
158e0e64 | 24193 | |
7d9455ce | 24194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24195 | $as_echo_n "checking for y1f... " >&6; } | |
f00f02a3 | 24196 | if ${gcc_cv_math_func_y1f+:} false; then : |
cd9a469c | 24197 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24198 | else |
7d9455ce | 24199 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24200 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24201 | fi |
cd9a469c | 24202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24203 | /* end confdefs.h. */ |
24204 | ||
7d9455ce | 24205 | #ifdef HAVE_COMPLEX_H |
24206 | #include <complex.h> | |
158e0e64 | 24207 | #endif |
7d9455ce | 24208 | #ifdef HAVE_MATH_H |
24209 | #include <math.h> | |
24210 | #endif | |
24211 | ||
24212 | int (*ptr)() = (int (*)())y1f; | |
24213 | ||
158e0e64 | 24214 | int |
24215 | main () | |
24216 | { | |
158e0e64 | 24217 | return 0; |
24218 | } | |
7d9455ce | 24219 | |
158e0e64 | 24220 | _ACEOF |
cd9a469c | 24221 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24222 | gcc_cv_math_func_y1f=yes |
158e0e64 | 24223 | else |
7d9455ce | 24224 | gcc_cv_math_func_y1f=no |
158e0e64 | 24225 | fi |
cd9a469c | 24226 | rm -f core conftest.err conftest.$ac_objext \ |
24227 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24228 | fi |
7d9455ce | 24229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24230 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24231 | if test $gcc_cv_math_func_y1f = yes; then | |
bd647a17 | 24232 | |
6affa8e1 | 24233 | cat >>confdefs.h <<_ACEOF |
24234 | #define HAVE_Y1F 1 | |
24235 | _ACEOF | |
158e0e64 | 24236 | |
7d9455ce | 24237 | fi |
158e0e64 | 24238 | |
158e0e64 | 24239 | |
7d9455ce | 24240 | |
24241 | ||
24242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24243 | $as_echo_n "checking for y1... " >&6; } | |
f00f02a3 | 24244 | if ${gcc_cv_math_func_y1+:} false; then : |
cd9a469c | 24245 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24246 | else |
7d9455ce | 24247 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24248 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24249 | fi |
cd9a469c | 24250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24251 | /* end confdefs.h. */ |
24252 | ||
7d9455ce | 24253 | #ifdef HAVE_COMPLEX_H |
24254 | #include <complex.h> | |
24255 | #endif | |
24256 | #ifdef HAVE_MATH_H | |
24257 | #include <math.h> | |
158e0e64 | 24258 | #endif |
7d9455ce | 24259 | |
24260 | int (*ptr)() = (int (*)())y1; | |
24261 | ||
158e0e64 | 24262 | int |
24263 | main () | |
24264 | { | |
158e0e64 | 24265 | return 0; |
24266 | } | |
7d9455ce | 24267 | |
158e0e64 | 24268 | _ACEOF |
cd9a469c | 24269 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24270 | gcc_cv_math_func_y1=yes |
158e0e64 | 24271 | else |
7d9455ce | 24272 | gcc_cv_math_func_y1=no |
158e0e64 | 24273 | fi |
cd9a469c | 24274 | rm -f core conftest.err conftest.$ac_objext \ |
24275 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24276 | fi |
7d9455ce | 24277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24278 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24279 | if test $gcc_cv_math_func_y1 = yes; then | |
bd647a17 | 24280 | |
6affa8e1 | 24281 | cat >>confdefs.h <<_ACEOF |
24282 | #define HAVE_Y1 1 | |
24283 | _ACEOF | |
7d9455ce | 24284 | |
24285 | fi | |
158e0e64 | 24286 | |
158e0e64 | 24287 | |
158e0e64 | 24288 | |
7d9455ce | 24289 | |
7d9455ce | 24290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24291 | $as_echo_n "checking for ynf... " >&6; } | |
f00f02a3 | 24292 | if ${gcc_cv_math_func_ynf+:} false; then : |
cd9a469c | 24293 | $as_echo_n "(cached) " >&6 |
7d9455ce | 24294 | else |
24295 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 24296 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24297 | fi |
cd9a469c | 24298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24299 | /* end confdefs.h. */ |
24300 | ||
7d9455ce | 24301 | #ifdef HAVE_COMPLEX_H |
24302 | #include <complex.h> | |
24303 | #endif | |
24304 | #ifdef HAVE_MATH_H | |
24305 | #include <math.h> | |
158e0e64 | 24306 | #endif |
7d9455ce | 24307 | |
24308 | int (*ptr)() = (int (*)())ynf; | |
24309 | ||
158e0e64 | 24310 | int |
24311 | main () | |
24312 | { | |
158e0e64 | 24313 | return 0; |
24314 | } | |
7d9455ce | 24315 | |
158e0e64 | 24316 | _ACEOF |
cd9a469c | 24317 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24318 | gcc_cv_math_func_ynf=yes |
158e0e64 | 24319 | else |
7d9455ce | 24320 | gcc_cv_math_func_ynf=no |
158e0e64 | 24321 | fi |
cd9a469c | 24322 | rm -f core conftest.err conftest.$ac_objext \ |
24323 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24324 | fi |
7d9455ce | 24325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24326 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24327 | if test $gcc_cv_math_func_ynf = yes; then | |
bd647a17 | 24328 | |
6affa8e1 | 24329 | cat >>confdefs.h <<_ACEOF |
24330 | #define HAVE_YNF 1 | |
24331 | _ACEOF | |
7d9455ce | 24332 | |
24333 | fi | |
158e0e64 | 24334 | |
158e0e64 | 24335 | |
158e0e64 | 24336 | |
7d9455ce | 24337 | |
24338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24339 | $as_echo_n "checking for yn... " >&6; } | |
f00f02a3 | 24340 | if ${gcc_cv_math_func_yn+:} false; then : |
cd9a469c | 24341 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24342 | else |
7d9455ce | 24343 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24344 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24345 | fi |
cd9a469c | 24346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24347 | /* end confdefs.h. */ |
24348 | ||
7d9455ce | 24349 | #ifdef HAVE_COMPLEX_H |
24350 | #include <complex.h> | |
158e0e64 | 24351 | #endif |
7d9455ce | 24352 | #ifdef HAVE_MATH_H |
24353 | #include <math.h> | |
24354 | #endif | |
24355 | ||
24356 | int (*ptr)() = (int (*)())yn; | |
24357 | ||
158e0e64 | 24358 | int |
24359 | main () | |
24360 | { | |
158e0e64 | 24361 | return 0; |
24362 | } | |
7d9455ce | 24363 | |
158e0e64 | 24364 | _ACEOF |
cd9a469c | 24365 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24366 | gcc_cv_math_func_yn=yes |
158e0e64 | 24367 | else |
7d9455ce | 24368 | gcc_cv_math_func_yn=no |
158e0e64 | 24369 | fi |
cd9a469c | 24370 | rm -f core conftest.err conftest.$ac_objext \ |
24371 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24372 | fi |
7d9455ce | 24373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24374 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24375 | if test $gcc_cv_math_func_yn = yes; then | |
bd647a17 | 24376 | |
6affa8e1 | 24377 | cat >>confdefs.h <<_ACEOF |
24378 | #define HAVE_YN 1 | |
24379 | _ACEOF | |
7d9455ce | 24380 | |
24381 | fi | |
24382 | ||
158e0e64 | 24383 | |
158e0e64 | 24384 | |
158e0e64 | 24385 | |
7d9455ce | 24386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24387 | $as_echo_n "checking for ynl... " >&6; } | |
f00f02a3 | 24388 | if ${gcc_cv_math_func_ynl+:} false; then : |
cd9a469c | 24389 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24390 | else |
7d9455ce | 24391 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24392 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24393 | fi |
cd9a469c | 24394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24395 | /* end confdefs.h. */ |
24396 | ||
7d9455ce | 24397 | #ifdef HAVE_COMPLEX_H |
24398 | #include <complex.h> | |
24399 | #endif | |
24400 | #ifdef HAVE_MATH_H | |
24401 | #include <math.h> | |
158e0e64 | 24402 | #endif |
7d9455ce | 24403 | |
24404 | int (*ptr)() = (int (*)())ynl; | |
24405 | ||
158e0e64 | 24406 | int |
24407 | main () | |
24408 | { | |
158e0e64 | 24409 | return 0; |
24410 | } | |
7d9455ce | 24411 | |
158e0e64 | 24412 | _ACEOF |
cd9a469c | 24413 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24414 | gcc_cv_math_func_ynl=yes |
158e0e64 | 24415 | else |
7d9455ce | 24416 | gcc_cv_math_func_ynl=no |
158e0e64 | 24417 | fi |
cd9a469c | 24418 | rm -f core conftest.err conftest.$ac_objext \ |
24419 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24420 | fi |
7d9455ce | 24421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24422 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24423 | if test $gcc_cv_math_func_ynl = yes; then | |
bd647a17 | 24424 | |
6affa8e1 | 24425 | cat >>confdefs.h <<_ACEOF |
24426 | #define HAVE_YNL 1 | |
24427 | _ACEOF | |
7d9455ce | 24428 | |
24429 | fi | |
158e0e64 | 24430 | |
158e0e64 | 24431 | |
158e0e64 | 24432 | |
7d9455ce | 24433 | |
24434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24435 | $as_echo_n "checking for tgamma... " >&6; } | |
f00f02a3 | 24436 | if ${gcc_cv_math_func_tgamma+:} false; then : |
cd9a469c | 24437 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24438 | else |
7d9455ce | 24439 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24440 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24441 | fi |
cd9a469c | 24442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24443 | /* end confdefs.h. */ |
24444 | ||
7d9455ce | 24445 | #ifdef HAVE_COMPLEX_H |
24446 | #include <complex.h> | |
6d516d29 | 24447 | #endif |
7d9455ce | 24448 | #ifdef HAVE_MATH_H |
24449 | #include <math.h> | |
24450 | #endif | |
24451 | ||
24452 | int (*ptr)() = (int (*)())tgamma; | |
24453 | ||
6d516d29 | 24454 | int |
24455 | main () | |
24456 | { | |
6d516d29 | 24457 | return 0; |
24458 | } | |
7d9455ce | 24459 | |
6d516d29 | 24460 | _ACEOF |
cd9a469c | 24461 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24462 | gcc_cv_math_func_tgamma=yes |
6d516d29 | 24463 | else |
7d9455ce | 24464 | gcc_cv_math_func_tgamma=no |
6d516d29 | 24465 | fi |
cd9a469c | 24466 | rm -f core conftest.err conftest.$ac_objext \ |
24467 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24468 | fi |
7d9455ce | 24469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24470 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24471 | if test $gcc_cv_math_func_tgamma = yes; then | |
bd647a17 | 24472 | |
6affa8e1 | 24473 | cat >>confdefs.h <<_ACEOF |
24474 | #define HAVE_TGAMMA 1 | |
24475 | _ACEOF | |
6d516d29 | 24476 | |
7d9455ce | 24477 | fi |
6d516d29 | 24478 | |
6d516d29 | 24479 | |
7d9455ce | 24480 | |
24481 | ||
24482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24483 | $as_echo_n "checking for tgammaf... " >&6; } | |
f00f02a3 | 24484 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
cd9a469c | 24485 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24486 | else |
7d9455ce | 24487 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24488 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24489 | fi |
cd9a469c | 24490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24491 | /* end confdefs.h. */ |
24492 | ||
7d9455ce | 24493 | #ifdef HAVE_COMPLEX_H |
24494 | #include <complex.h> | |
24495 | #endif | |
24496 | #ifdef HAVE_MATH_H | |
24497 | #include <math.h> | |
6d516d29 | 24498 | #endif |
7d9455ce | 24499 | |
24500 | int (*ptr)() = (int (*)())tgammaf; | |
24501 | ||
6d516d29 | 24502 | int |
24503 | main () | |
24504 | { | |
6d516d29 | 24505 | return 0; |
24506 | } | |
7d9455ce | 24507 | |
6d516d29 | 24508 | _ACEOF |
cd9a469c | 24509 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24510 | gcc_cv_math_func_tgammaf=yes |
6d516d29 | 24511 | else |
7d9455ce | 24512 | gcc_cv_math_func_tgammaf=no |
6d516d29 | 24513 | fi |
cd9a469c | 24514 | rm -f core conftest.err conftest.$ac_objext \ |
24515 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24516 | fi |
7d9455ce | 24517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24518 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24519 | if test $gcc_cv_math_func_tgammaf = yes; then | |
bd647a17 | 24520 | |
6affa8e1 | 24521 | cat >>confdefs.h <<_ACEOF |
24522 | #define HAVE_TGAMMAF 1 | |
24523 | _ACEOF | |
7d9455ce | 24524 | |
24525 | fi | |
6d516d29 | 24526 | |
6d516d29 | 24527 | |
6d516d29 | 24528 | |
7d9455ce | 24529 | |
7d9455ce | 24530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24531 | $as_echo_n "checking for lgamma... " >&6; } | |
f00f02a3 | 24532 | if ${gcc_cv_math_func_lgamma+:} false; then : |
cd9a469c | 24533 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24534 | else |
7d9455ce | 24535 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24536 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24537 | fi |
cd9a469c | 24538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24539 | /* end confdefs.h. */ |
24540 | ||
7d9455ce | 24541 | #ifdef HAVE_COMPLEX_H |
24542 | #include <complex.h> | |
24543 | #endif | |
24544 | #ifdef HAVE_MATH_H | |
24545 | #include <math.h> | |
6d516d29 | 24546 | #endif |
7d9455ce | 24547 | |
24548 | int (*ptr)() = (int (*)())lgamma; | |
24549 | ||
6d516d29 | 24550 | int |
24551 | main () | |
24552 | { | |
6d516d29 | 24553 | return 0; |
24554 | } | |
7d9455ce | 24555 | |
6d516d29 | 24556 | _ACEOF |
cd9a469c | 24557 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24558 | gcc_cv_math_func_lgamma=yes |
6d516d29 | 24559 | else |
7d9455ce | 24560 | gcc_cv_math_func_lgamma=no |
6d516d29 | 24561 | fi |
cd9a469c | 24562 | rm -f core conftest.err conftest.$ac_objext \ |
24563 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24564 | fi |
7d9455ce | 24565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24566 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24567 | if test $gcc_cv_math_func_lgamma = yes; then | |
bd647a17 | 24568 | |
6affa8e1 | 24569 | cat >>confdefs.h <<_ACEOF |
24570 | #define HAVE_LGAMMA 1 | |
24571 | _ACEOF | |
7d9455ce | 24572 | |
24573 | fi | |
6d516d29 | 24574 | |
6d516d29 | 24575 | |
6d516d29 | 24576 | |
7d9455ce | 24577 | |
24578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24579 | $as_echo_n "checking for lgammaf... " >&6; } | |
f00f02a3 | 24580 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
cd9a469c | 24581 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24582 | else |
7d9455ce | 24583 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24584 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24585 | fi |
cd9a469c | 24586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24587 | /* end confdefs.h. */ |
24588 | ||
7d9455ce | 24589 | #ifdef HAVE_COMPLEX_H |
24590 | #include <complex.h> | |
6d516d29 | 24591 | #endif |
7d9455ce | 24592 | #ifdef HAVE_MATH_H |
24593 | #include <math.h> | |
24594 | #endif | |
24595 | ||
24596 | int (*ptr)() = (int (*)())lgammaf; | |
24597 | ||
6d516d29 | 24598 | int |
24599 | main () | |
24600 | { | |
6d516d29 | 24601 | return 0; |
24602 | } | |
7d9455ce | 24603 | |
6d516d29 | 24604 | _ACEOF |
cd9a469c | 24605 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24606 | gcc_cv_math_func_lgammaf=yes |
6d516d29 | 24607 | else |
7d9455ce | 24608 | gcc_cv_math_func_lgammaf=no |
6d516d29 | 24609 | fi |
cd9a469c | 24610 | rm -f core conftest.err conftest.$ac_objext \ |
24611 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24612 | fi |
7d9455ce | 24613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24614 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24615 | if test $gcc_cv_math_func_lgammaf = yes; then | |
bd647a17 | 24616 | |
6affa8e1 | 24617 | cat >>confdefs.h <<_ACEOF |
24618 | #define HAVE_LGAMMAF 1 | |
24619 | _ACEOF | |
6d516d29 | 24620 | |
7d9455ce | 24621 | fi |
6d516d29 | 24622 | |
6d516d29 | 24623 | |
89b803c8 | 24624 | # Check for GFORTRAN_C99_1.1 funcs |
7d9455ce | 24625 | |
24626 | ||
24627 | ||
24628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24629 | $as_echo_n "checking for cacos... " >&6; } | |
f00f02a3 | 24630 | if ${gcc_cv_math_func_cacos+:} false; then : |
89b803c8 | 24631 | $as_echo_n "(cached) " >&6 |
24632 | else | |
7d9455ce | 24633 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24634 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24635 | fi |
24636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24637 | /* end confdefs.h. */ | |
24638 | ||
7d9455ce | 24639 | #ifdef HAVE_COMPLEX_H |
24640 | #include <complex.h> | |
89b803c8 | 24641 | #endif |
7d9455ce | 24642 | #ifdef HAVE_MATH_H |
24643 | #include <math.h> | |
24644 | #endif | |
24645 | ||
24646 | int (*ptr)() = (int (*)())cacos; | |
24647 | ||
89b803c8 | 24648 | int |
24649 | main () | |
24650 | { | |
89b803c8 | 24651 | return 0; |
24652 | } | |
7d9455ce | 24653 | |
89b803c8 | 24654 | _ACEOF |
24655 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24656 | gcc_cv_math_func_cacos=yes |
89b803c8 | 24657 | else |
7d9455ce | 24658 | gcc_cv_math_func_cacos=no |
89b803c8 | 24659 | fi |
24660 | rm -f core conftest.err conftest.$ac_objext \ | |
24661 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24662 | fi |
7d9455ce | 24663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24664 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24665 | if test $gcc_cv_math_func_cacos = yes; then | |
bd647a17 | 24666 | |
6affa8e1 | 24667 | cat >>confdefs.h <<_ACEOF |
24668 | #define HAVE_CACOS 1 | |
24669 | _ACEOF | |
89b803c8 | 24670 | |
7d9455ce | 24671 | fi |
89b803c8 | 24672 | |
89b803c8 | 24673 | |
7d9455ce | 24674 | |
24675 | ||
24676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24677 | $as_echo_n "checking for cacosf... " >&6; } | |
f00f02a3 | 24678 | if ${gcc_cv_math_func_cacosf+:} false; then : |
89b803c8 | 24679 | $as_echo_n "(cached) " >&6 |
24680 | else | |
7d9455ce | 24681 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24682 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24683 | fi |
24684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24685 | /* end confdefs.h. */ | |
24686 | ||
7d9455ce | 24687 | #ifdef HAVE_COMPLEX_H |
24688 | #include <complex.h> | |
24689 | #endif | |
24690 | #ifdef HAVE_MATH_H | |
24691 | #include <math.h> | |
89b803c8 | 24692 | #endif |
7d9455ce | 24693 | |
24694 | int (*ptr)() = (int (*)())cacosf; | |
24695 | ||
89b803c8 | 24696 | int |
24697 | main () | |
24698 | { | |
89b803c8 | 24699 | return 0; |
24700 | } | |
7d9455ce | 24701 | |
89b803c8 | 24702 | _ACEOF |
24703 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24704 | gcc_cv_math_func_cacosf=yes |
89b803c8 | 24705 | else |
7d9455ce | 24706 | gcc_cv_math_func_cacosf=no |
89b803c8 | 24707 | fi |
24708 | rm -f core conftest.err conftest.$ac_objext \ | |
24709 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24710 | fi |
7d9455ce | 24711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
24712 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
24713 | if test $gcc_cv_math_func_cacosf = yes; then | |
bd647a17 | 24714 | |
6affa8e1 | 24715 | cat >>confdefs.h <<_ACEOF |
24716 | #define HAVE_CACOSF 1 | |
24717 | _ACEOF | |
7d9455ce | 24718 | |
24719 | fi | |
89b803c8 | 24720 | |
89b803c8 | 24721 | |
89b803c8 | 24722 | |
7d9455ce | 24723 | |
24724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
24725 | $as_echo_n "checking for cacosh... " >&6; } | |
f00f02a3 | 24726 | if ${gcc_cv_math_func_cacosh+:} false; then : |
89b803c8 | 24727 | $as_echo_n "(cached) " >&6 |
24728 | else | |
7d9455ce | 24729 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24730 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24731 | fi |
24732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24733 | /* end confdefs.h. */ | |
24734 | ||
7d9455ce | 24735 | #ifdef HAVE_COMPLEX_H |
24736 | #include <complex.h> | |
89b803c8 | 24737 | #endif |
7d9455ce | 24738 | #ifdef HAVE_MATH_H |
24739 | #include <math.h> | |
24740 | #endif | |
24741 | ||
24742 | int (*ptr)() = (int (*)())cacosh; | |
24743 | ||
89b803c8 | 24744 | int |
24745 | main () | |
24746 | { | |
89b803c8 | 24747 | return 0; |
24748 | } | |
7d9455ce | 24749 | |
89b803c8 | 24750 | _ACEOF |
24751 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24752 | gcc_cv_math_func_cacosh=yes |
89b803c8 | 24753 | else |
7d9455ce | 24754 | gcc_cv_math_func_cacosh=no |
89b803c8 | 24755 | fi |
24756 | rm -f core conftest.err conftest.$ac_objext \ | |
24757 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24758 | fi |
7d9455ce | 24759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
24760 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
24761 | if test $gcc_cv_math_func_cacosh = yes; then | |
bd647a17 | 24762 | |
6affa8e1 | 24763 | cat >>confdefs.h <<_ACEOF |
24764 | #define HAVE_CACOSH 1 | |
24765 | _ACEOF | |
7d9455ce | 24766 | |
24767 | fi | |
24768 | ||
89b803c8 | 24769 | |
89b803c8 | 24770 | |
89b803c8 | 24771 | |
7d9455ce | 24772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
24773 | $as_echo_n "checking for cacoshf... " >&6; } | |
f00f02a3 | 24774 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
89b803c8 | 24775 | $as_echo_n "(cached) " >&6 |
24776 | else | |
7d9455ce | 24777 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24778 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24779 | fi |
24780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24781 | /* end confdefs.h. */ | |
24782 | ||
7d9455ce | 24783 | #ifdef HAVE_COMPLEX_H |
24784 | #include <complex.h> | |
24785 | #endif | |
24786 | #ifdef HAVE_MATH_H | |
24787 | #include <math.h> | |
89b803c8 | 24788 | #endif |
7d9455ce | 24789 | |
24790 | int (*ptr)() = (int (*)())cacoshf; | |
24791 | ||
89b803c8 | 24792 | int |
24793 | main () | |
24794 | { | |
89b803c8 | 24795 | return 0; |
24796 | } | |
7d9455ce | 24797 | |
89b803c8 | 24798 | _ACEOF |
24799 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24800 | gcc_cv_math_func_cacoshf=yes |
89b803c8 | 24801 | else |
7d9455ce | 24802 | gcc_cv_math_func_cacoshf=no |
89b803c8 | 24803 | fi |
24804 | rm -f core conftest.err conftest.$ac_objext \ | |
24805 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24806 | fi |
7d9455ce | 24807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
24808 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
24809 | if test $gcc_cv_math_func_cacoshf = yes; then | |
bd647a17 | 24810 | |
6affa8e1 | 24811 | cat >>confdefs.h <<_ACEOF |
24812 | #define HAVE_CACOSHF 1 | |
24813 | _ACEOF | |
7d9455ce | 24814 | |
24815 | fi | |
89b803c8 | 24816 | |
89b803c8 | 24817 | |
89b803c8 | 24818 | |
7d9455ce | 24819 | |
24820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
24821 | $as_echo_n "checking for cacoshl... " >&6; } | |
f00f02a3 | 24822 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
89b803c8 | 24823 | $as_echo_n "(cached) " >&6 |
24824 | else | |
7d9455ce | 24825 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24826 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24827 | fi |
24828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24829 | /* end confdefs.h. */ | |
24830 | ||
7d9455ce | 24831 | #ifdef HAVE_COMPLEX_H |
24832 | #include <complex.h> | |
89b803c8 | 24833 | #endif |
7d9455ce | 24834 | #ifdef HAVE_MATH_H |
24835 | #include <math.h> | |
24836 | #endif | |
24837 | ||
24838 | int (*ptr)() = (int (*)())cacoshl; | |
24839 | ||
89b803c8 | 24840 | int |
24841 | main () | |
24842 | { | |
89b803c8 | 24843 | return 0; |
24844 | } | |
7d9455ce | 24845 | |
89b803c8 | 24846 | _ACEOF |
24847 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24848 | gcc_cv_math_func_cacoshl=yes |
89b803c8 | 24849 | else |
7d9455ce | 24850 | gcc_cv_math_func_cacoshl=no |
89b803c8 | 24851 | fi |
24852 | rm -f core conftest.err conftest.$ac_objext \ | |
24853 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24854 | fi |
7d9455ce | 24855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
24856 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
24857 | if test $gcc_cv_math_func_cacoshl = yes; then | |
bd647a17 | 24858 | |
6affa8e1 | 24859 | cat >>confdefs.h <<_ACEOF |
24860 | #define HAVE_CACOSHL 1 | |
24861 | _ACEOF | |
89b803c8 | 24862 | |
7d9455ce | 24863 | fi |
89b803c8 | 24864 | |
89b803c8 | 24865 | |
7d9455ce | 24866 | |
24867 | ||
24868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
24869 | $as_echo_n "checking for cacosl... " >&6; } | |
f00f02a3 | 24870 | if ${gcc_cv_math_func_cacosl+:} false; then : |
89b803c8 | 24871 | $as_echo_n "(cached) " >&6 |
24872 | else | |
7d9455ce | 24873 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24874 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24875 | fi |
24876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24877 | /* end confdefs.h. */ | |
24878 | ||
7d9455ce | 24879 | #ifdef HAVE_COMPLEX_H |
24880 | #include <complex.h> | |
24881 | #endif | |
24882 | #ifdef HAVE_MATH_H | |
24883 | #include <math.h> | |
89b803c8 | 24884 | #endif |
7d9455ce | 24885 | |
24886 | int (*ptr)() = (int (*)())cacosl; | |
24887 | ||
89b803c8 | 24888 | int |
24889 | main () | |
24890 | { | |
89b803c8 | 24891 | return 0; |
24892 | } | |
7d9455ce | 24893 | |
89b803c8 | 24894 | _ACEOF |
24895 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24896 | gcc_cv_math_func_cacosl=yes |
89b803c8 | 24897 | else |
7d9455ce | 24898 | gcc_cv_math_func_cacosl=no |
89b803c8 | 24899 | fi |
24900 | rm -f core conftest.err conftest.$ac_objext \ | |
24901 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24902 | fi |
7d9455ce | 24903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
24904 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
24905 | if test $gcc_cv_math_func_cacosl = yes; then | |
bd647a17 | 24906 | |
6affa8e1 | 24907 | cat >>confdefs.h <<_ACEOF |
24908 | #define HAVE_CACOSL 1 | |
24909 | _ACEOF | |
7d9455ce | 24910 | |
24911 | fi | |
89b803c8 | 24912 | |
89b803c8 | 24913 | |
89b803c8 | 24914 | |
7d9455ce | 24915 | |
24916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
24917 | $as_echo_n "checking for casin... " >&6; } | |
f00f02a3 | 24918 | if ${gcc_cv_math_func_casin+:} false; then : |
89b803c8 | 24919 | $as_echo_n "(cached) " >&6 |
24920 | else | |
7d9455ce | 24921 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24922 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24923 | fi |
24924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24925 | /* end confdefs.h. */ | |
24926 | ||
7d9455ce | 24927 | #ifdef HAVE_COMPLEX_H |
24928 | #include <complex.h> | |
89b803c8 | 24929 | #endif |
7d9455ce | 24930 | #ifdef HAVE_MATH_H |
24931 | #include <math.h> | |
24932 | #endif | |
24933 | ||
24934 | int (*ptr)() = (int (*)())casin; | |
24935 | ||
89b803c8 | 24936 | int |
24937 | main () | |
24938 | { | |
89b803c8 | 24939 | return 0; |
24940 | } | |
7d9455ce | 24941 | |
89b803c8 | 24942 | _ACEOF |
24943 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24944 | gcc_cv_math_func_casin=yes |
89b803c8 | 24945 | else |
7d9455ce | 24946 | gcc_cv_math_func_casin=no |
89b803c8 | 24947 | fi |
24948 | rm -f core conftest.err conftest.$ac_objext \ | |
24949 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24950 | fi |
7d9455ce | 24951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
24952 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
24953 | if test $gcc_cv_math_func_casin = yes; then | |
bd647a17 | 24954 | |
6affa8e1 | 24955 | cat >>confdefs.h <<_ACEOF |
24956 | #define HAVE_CASIN 1 | |
24957 | _ACEOF | |
7d9455ce | 24958 | |
24959 | fi | |
24960 | ||
89b803c8 | 24961 | |
89b803c8 | 24962 | |
89b803c8 | 24963 | |
7d9455ce | 24964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
24965 | $as_echo_n "checking for casinf... " >&6; } | |
f00f02a3 | 24966 | if ${gcc_cv_math_func_casinf+:} false; then : |
89b803c8 | 24967 | $as_echo_n "(cached) " >&6 |
24968 | else | |
7d9455ce | 24969 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24970 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24971 | fi |
24972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24973 | /* end confdefs.h. */ | |
24974 | ||
7d9455ce | 24975 | #ifdef HAVE_COMPLEX_H |
24976 | #include <complex.h> | |
24977 | #endif | |
24978 | #ifdef HAVE_MATH_H | |
24979 | #include <math.h> | |
89b803c8 | 24980 | #endif |
7d9455ce | 24981 | |
24982 | int (*ptr)() = (int (*)())casinf; | |
24983 | ||
89b803c8 | 24984 | int |
24985 | main () | |
24986 | { | |
89b803c8 | 24987 | return 0; |
24988 | } | |
7d9455ce | 24989 | |
89b803c8 | 24990 | _ACEOF |
24991 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24992 | gcc_cv_math_func_casinf=yes |
89b803c8 | 24993 | else |
7d9455ce | 24994 | gcc_cv_math_func_casinf=no |
89b803c8 | 24995 | fi |
24996 | rm -f core conftest.err conftest.$ac_objext \ | |
24997 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24998 | fi |
7d9455ce | 24999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25000 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25001 | if test $gcc_cv_math_func_casinf = yes; then | |
bd647a17 | 25002 | |
6affa8e1 | 25003 | cat >>confdefs.h <<_ACEOF |
25004 | #define HAVE_CASINF 1 | |
25005 | _ACEOF | |
7d9455ce | 25006 | |
25007 | fi | |
89b803c8 | 25008 | |
89b803c8 | 25009 | |
89b803c8 | 25010 | |
7d9455ce | 25011 | |
25012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25013 | $as_echo_n "checking for casinh... " >&6; } | |
f00f02a3 | 25014 | if ${gcc_cv_math_func_casinh+:} false; then : |
89b803c8 | 25015 | $as_echo_n "(cached) " >&6 |
25016 | else | |
7d9455ce | 25017 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25018 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25019 | fi |
25020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25021 | /* end confdefs.h. */ | |
25022 | ||
7d9455ce | 25023 | #ifdef HAVE_COMPLEX_H |
25024 | #include <complex.h> | |
89b803c8 | 25025 | #endif |
7d9455ce | 25026 | #ifdef HAVE_MATH_H |
25027 | #include <math.h> | |
25028 | #endif | |
25029 | ||
25030 | int (*ptr)() = (int (*)())casinh; | |
25031 | ||
89b803c8 | 25032 | int |
25033 | main () | |
25034 | { | |
89b803c8 | 25035 | return 0; |
25036 | } | |
7d9455ce | 25037 | |
89b803c8 | 25038 | _ACEOF |
25039 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25040 | gcc_cv_math_func_casinh=yes |
89b803c8 | 25041 | else |
7d9455ce | 25042 | gcc_cv_math_func_casinh=no |
89b803c8 | 25043 | fi |
25044 | rm -f core conftest.err conftest.$ac_objext \ | |
25045 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25046 | fi |
7d9455ce | 25047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25048 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25049 | if test $gcc_cv_math_func_casinh = yes; then | |
bd647a17 | 25050 | |
6affa8e1 | 25051 | cat >>confdefs.h <<_ACEOF |
25052 | #define HAVE_CASINH 1 | |
25053 | _ACEOF | |
89b803c8 | 25054 | |
7d9455ce | 25055 | fi |
89b803c8 | 25056 | |
89b803c8 | 25057 | |
7d9455ce | 25058 | |
25059 | ||
25060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25061 | $as_echo_n "checking for casinhf... " >&6; } | |
f00f02a3 | 25062 | if ${gcc_cv_math_func_casinhf+:} false; then : |
89b803c8 | 25063 | $as_echo_n "(cached) " >&6 |
25064 | else | |
7d9455ce | 25065 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25066 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25067 | fi |
25068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25069 | /* end confdefs.h. */ | |
25070 | ||
7d9455ce | 25071 | #ifdef HAVE_COMPLEX_H |
25072 | #include <complex.h> | |
25073 | #endif | |
25074 | #ifdef HAVE_MATH_H | |
25075 | #include <math.h> | |
89b803c8 | 25076 | #endif |
7d9455ce | 25077 | |
25078 | int (*ptr)() = (int (*)())casinhf; | |
25079 | ||
89b803c8 | 25080 | int |
25081 | main () | |
25082 | { | |
89b803c8 | 25083 | return 0; |
25084 | } | |
7d9455ce | 25085 | |
89b803c8 | 25086 | _ACEOF |
25087 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25088 | gcc_cv_math_func_casinhf=yes |
89b803c8 | 25089 | else |
7d9455ce | 25090 | gcc_cv_math_func_casinhf=no |
89b803c8 | 25091 | fi |
25092 | rm -f core conftest.err conftest.$ac_objext \ | |
25093 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25094 | fi |
7d9455ce | 25095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25096 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25097 | if test $gcc_cv_math_func_casinhf = yes; then | |
bd647a17 | 25098 | |
6affa8e1 | 25099 | cat >>confdefs.h <<_ACEOF |
25100 | #define HAVE_CASINHF 1 | |
25101 | _ACEOF | |
7d9455ce | 25102 | |
25103 | fi | |
89b803c8 | 25104 | |
89b803c8 | 25105 | |
89b803c8 | 25106 | |
7d9455ce | 25107 | |
25108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25109 | $as_echo_n "checking for casinhl... " >&6; } | |
f00f02a3 | 25110 | if ${gcc_cv_math_func_casinhl+:} false; then : |
89b803c8 | 25111 | $as_echo_n "(cached) " >&6 |
25112 | else | |
7d9455ce | 25113 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25114 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25115 | fi |
25116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25117 | /* end confdefs.h. */ | |
25118 | ||
7d9455ce | 25119 | #ifdef HAVE_COMPLEX_H |
25120 | #include <complex.h> | |
89b803c8 | 25121 | #endif |
7d9455ce | 25122 | #ifdef HAVE_MATH_H |
25123 | #include <math.h> | |
25124 | #endif | |
25125 | ||
25126 | int (*ptr)() = (int (*)())casinhl; | |
25127 | ||
89b803c8 | 25128 | int |
25129 | main () | |
25130 | { | |
89b803c8 | 25131 | return 0; |
25132 | } | |
7d9455ce | 25133 | |
89b803c8 | 25134 | _ACEOF |
25135 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25136 | gcc_cv_math_func_casinhl=yes |
89b803c8 | 25137 | else |
7d9455ce | 25138 | gcc_cv_math_func_casinhl=no |
89b803c8 | 25139 | fi |
25140 | rm -f core conftest.err conftest.$ac_objext \ | |
25141 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25142 | fi |
7d9455ce | 25143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25144 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25145 | if test $gcc_cv_math_func_casinhl = yes; then | |
bd647a17 | 25146 | |
6affa8e1 | 25147 | cat >>confdefs.h <<_ACEOF |
25148 | #define HAVE_CASINHL 1 | |
25149 | _ACEOF | |
7d9455ce | 25150 | |
25151 | fi | |
25152 | ||
89b803c8 | 25153 | |
89b803c8 | 25154 | |
89b803c8 | 25155 | |
7d9455ce | 25156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25157 | $as_echo_n "checking for casinl... " >&6; } | |
f00f02a3 | 25158 | if ${gcc_cv_math_func_casinl+:} false; then : |
89b803c8 | 25159 | $as_echo_n "(cached) " >&6 |
25160 | else | |
7d9455ce | 25161 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25162 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25163 | fi |
25164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25165 | /* end confdefs.h. */ | |
25166 | ||
7d9455ce | 25167 | #ifdef HAVE_COMPLEX_H |
25168 | #include <complex.h> | |
25169 | #endif | |
25170 | #ifdef HAVE_MATH_H | |
25171 | #include <math.h> | |
89b803c8 | 25172 | #endif |
7d9455ce | 25173 | |
25174 | int (*ptr)() = (int (*)())casinl; | |
25175 | ||
89b803c8 | 25176 | int |
25177 | main () | |
25178 | { | |
89b803c8 | 25179 | return 0; |
25180 | } | |
7d9455ce | 25181 | |
89b803c8 | 25182 | _ACEOF |
25183 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25184 | gcc_cv_math_func_casinl=yes |
89b803c8 | 25185 | else |
7d9455ce | 25186 | gcc_cv_math_func_casinl=no |
89b803c8 | 25187 | fi |
25188 | rm -f core conftest.err conftest.$ac_objext \ | |
25189 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25190 | fi |
7d9455ce | 25191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25192 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25193 | if test $gcc_cv_math_func_casinl = yes; then | |
bd647a17 | 25194 | |
6affa8e1 | 25195 | cat >>confdefs.h <<_ACEOF |
25196 | #define HAVE_CASINL 1 | |
25197 | _ACEOF | |
7d9455ce | 25198 | |
25199 | fi | |
89b803c8 | 25200 | |
89b803c8 | 25201 | |
89b803c8 | 25202 | |
7d9455ce | 25203 | |
25204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25205 | $as_echo_n "checking for catan... " >&6; } | |
f00f02a3 | 25206 | if ${gcc_cv_math_func_catan+:} false; then : |
89b803c8 | 25207 | $as_echo_n "(cached) " >&6 |
25208 | else | |
7d9455ce | 25209 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25210 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25211 | fi |
25212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25213 | /* end confdefs.h. */ | |
25214 | ||
7d9455ce | 25215 | #ifdef HAVE_COMPLEX_H |
25216 | #include <complex.h> | |
89b803c8 | 25217 | #endif |
7d9455ce | 25218 | #ifdef HAVE_MATH_H |
25219 | #include <math.h> | |
25220 | #endif | |
25221 | ||
25222 | int (*ptr)() = (int (*)())catan; | |
25223 | ||
89b803c8 | 25224 | int |
25225 | main () | |
25226 | { | |
89b803c8 | 25227 | return 0; |
25228 | } | |
7d9455ce | 25229 | |
89b803c8 | 25230 | _ACEOF |
25231 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25232 | gcc_cv_math_func_catan=yes |
89b803c8 | 25233 | else |
7d9455ce | 25234 | gcc_cv_math_func_catan=no |
89b803c8 | 25235 | fi |
25236 | rm -f core conftest.err conftest.$ac_objext \ | |
25237 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25238 | fi |
7d9455ce | 25239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25240 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25241 | if test $gcc_cv_math_func_catan = yes; then | |
bd647a17 | 25242 | |
6affa8e1 | 25243 | cat >>confdefs.h <<_ACEOF |
25244 | #define HAVE_CATAN 1 | |
25245 | _ACEOF | |
89b803c8 | 25246 | |
7d9455ce | 25247 | fi |
89b803c8 | 25248 | |
89b803c8 | 25249 | |
7d9455ce | 25250 | |
25251 | ||
25252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25253 | $as_echo_n "checking for catanf... " >&6; } | |
f00f02a3 | 25254 | if ${gcc_cv_math_func_catanf+:} false; then : |
89b803c8 | 25255 | $as_echo_n "(cached) " >&6 |
25256 | else | |
7d9455ce | 25257 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25258 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25259 | fi |
25260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25261 | /* end confdefs.h. */ | |
25262 | ||
7d9455ce | 25263 | #ifdef HAVE_COMPLEX_H |
25264 | #include <complex.h> | |
25265 | #endif | |
25266 | #ifdef HAVE_MATH_H | |
25267 | #include <math.h> | |
89b803c8 | 25268 | #endif |
7d9455ce | 25269 | |
25270 | int (*ptr)() = (int (*)())catanf; | |
25271 | ||
89b803c8 | 25272 | int |
25273 | main () | |
25274 | { | |
89b803c8 | 25275 | return 0; |
25276 | } | |
7d9455ce | 25277 | |
89b803c8 | 25278 | _ACEOF |
25279 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25280 | gcc_cv_math_func_catanf=yes |
89b803c8 | 25281 | else |
7d9455ce | 25282 | gcc_cv_math_func_catanf=no |
89b803c8 | 25283 | fi |
25284 | rm -f core conftest.err conftest.$ac_objext \ | |
25285 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25286 | fi |
7d9455ce | 25287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25288 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25289 | if test $gcc_cv_math_func_catanf = yes; then | |
bd647a17 | 25290 | |
6affa8e1 | 25291 | cat >>confdefs.h <<_ACEOF |
25292 | #define HAVE_CATANF 1 | |
25293 | _ACEOF | |
7d9455ce | 25294 | |
25295 | fi | |
89b803c8 | 25296 | |
89b803c8 | 25297 | |
89b803c8 | 25298 | |
7d9455ce | 25299 | |
25300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25301 | $as_echo_n "checking for catanh... " >&6; } | |
f00f02a3 | 25302 | if ${gcc_cv_math_func_catanh+:} false; then : |
89b803c8 | 25303 | $as_echo_n "(cached) " >&6 |
25304 | else | |
7d9455ce | 25305 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25306 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25307 | fi |
25308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25309 | /* end confdefs.h. */ | |
25310 | ||
7d9455ce | 25311 | #ifdef HAVE_COMPLEX_H |
25312 | #include <complex.h> | |
89b803c8 | 25313 | #endif |
7d9455ce | 25314 | #ifdef HAVE_MATH_H |
25315 | #include <math.h> | |
25316 | #endif | |
25317 | ||
25318 | int (*ptr)() = (int (*)())catanh; | |
25319 | ||
89b803c8 | 25320 | int |
25321 | main () | |
25322 | { | |
89b803c8 | 25323 | return 0; |
25324 | } | |
7d9455ce | 25325 | |
89b803c8 | 25326 | _ACEOF |
25327 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25328 | gcc_cv_math_func_catanh=yes |
89b803c8 | 25329 | else |
7d9455ce | 25330 | gcc_cv_math_func_catanh=no |
89b803c8 | 25331 | fi |
25332 | rm -f core conftest.err conftest.$ac_objext \ | |
25333 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25334 | fi |
7d9455ce | 25335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25336 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25337 | if test $gcc_cv_math_func_catanh = yes; then | |
bd647a17 | 25338 | |
6affa8e1 | 25339 | cat >>confdefs.h <<_ACEOF |
25340 | #define HAVE_CATANH 1 | |
25341 | _ACEOF | |
7d9455ce | 25342 | |
25343 | fi | |
25344 | ||
89b803c8 | 25345 | |
89b803c8 | 25346 | |
89b803c8 | 25347 | |
7d9455ce | 25348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25349 | $as_echo_n "checking for catanhf... " >&6; } | |
f00f02a3 | 25350 | if ${gcc_cv_math_func_catanhf+:} false; then : |
89b803c8 | 25351 | $as_echo_n "(cached) " >&6 |
25352 | else | |
7d9455ce | 25353 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25354 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25355 | fi |
25356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25357 | /* end confdefs.h. */ | |
25358 | ||
7d9455ce | 25359 | #ifdef HAVE_COMPLEX_H |
25360 | #include <complex.h> | |
25361 | #endif | |
25362 | #ifdef HAVE_MATH_H | |
25363 | #include <math.h> | |
89b803c8 | 25364 | #endif |
7d9455ce | 25365 | |
25366 | int (*ptr)() = (int (*)())catanhf; | |
25367 | ||
89b803c8 | 25368 | int |
25369 | main () | |
25370 | { | |
89b803c8 | 25371 | return 0; |
25372 | } | |
7d9455ce | 25373 | |
89b803c8 | 25374 | _ACEOF |
25375 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25376 | gcc_cv_math_func_catanhf=yes |
89b803c8 | 25377 | else |
7d9455ce | 25378 | gcc_cv_math_func_catanhf=no |
89b803c8 | 25379 | fi |
25380 | rm -f core conftest.err conftest.$ac_objext \ | |
25381 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25382 | fi |
7d9455ce | 25383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25384 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25385 | if test $gcc_cv_math_func_catanhf = yes; then | |
bd647a17 | 25386 | |
6affa8e1 | 25387 | cat >>confdefs.h <<_ACEOF |
25388 | #define HAVE_CATANHF 1 | |
25389 | _ACEOF | |
7d9455ce | 25390 | |
25391 | fi | |
89b803c8 | 25392 | |
89b803c8 | 25393 | |
89b803c8 | 25394 | |
7d9455ce | 25395 | |
25396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25397 | $as_echo_n "checking for catanhl... " >&6; } | |
f00f02a3 | 25398 | if ${gcc_cv_math_func_catanhl+:} false; then : |
89b803c8 | 25399 | $as_echo_n "(cached) " >&6 |
25400 | else | |
7d9455ce | 25401 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25402 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25403 | fi |
25404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25405 | /* end confdefs.h. */ | |
25406 | ||
7d9455ce | 25407 | #ifdef HAVE_COMPLEX_H |
25408 | #include <complex.h> | |
89b803c8 | 25409 | #endif |
7d9455ce | 25410 | #ifdef HAVE_MATH_H |
25411 | #include <math.h> | |
25412 | #endif | |
25413 | ||
25414 | int (*ptr)() = (int (*)())catanhl; | |
25415 | ||
89b803c8 | 25416 | int |
25417 | main () | |
25418 | { | |
89b803c8 | 25419 | return 0; |
25420 | } | |
7d9455ce | 25421 | |
89b803c8 | 25422 | _ACEOF |
25423 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25424 | gcc_cv_math_func_catanhl=yes |
89b803c8 | 25425 | else |
7d9455ce | 25426 | gcc_cv_math_func_catanhl=no |
89b803c8 | 25427 | fi |
25428 | rm -f core conftest.err conftest.$ac_objext \ | |
25429 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25430 | fi |
7d9455ce | 25431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25432 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25433 | if test $gcc_cv_math_func_catanhl = yes; then | |
bd647a17 | 25434 | |
6affa8e1 | 25435 | cat >>confdefs.h <<_ACEOF |
25436 | #define HAVE_CATANHL 1 | |
25437 | _ACEOF | |
89b803c8 | 25438 | |
7d9455ce | 25439 | fi |
89b803c8 | 25440 | |
89b803c8 | 25441 | |
7d9455ce | 25442 | |
25443 | ||
25444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25445 | $as_echo_n "checking for catanl... " >&6; } | |
f00f02a3 | 25446 | if ${gcc_cv_math_func_catanl+:} false; then : |
89b803c8 | 25447 | $as_echo_n "(cached) " >&6 |
25448 | else | |
7d9455ce | 25449 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25450 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25451 | fi |
25452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25453 | /* end confdefs.h. */ | |
25454 | ||
7d9455ce | 25455 | #ifdef HAVE_COMPLEX_H |
25456 | #include <complex.h> | |
25457 | #endif | |
25458 | #ifdef HAVE_MATH_H | |
25459 | #include <math.h> | |
89b803c8 | 25460 | #endif |
7d9455ce | 25461 | |
25462 | int (*ptr)() = (int (*)())catanl; | |
25463 | ||
89b803c8 | 25464 | int |
25465 | main () | |
25466 | { | |
89b803c8 | 25467 | return 0; |
25468 | } | |
7d9455ce | 25469 | |
89b803c8 | 25470 | _ACEOF |
25471 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25472 | gcc_cv_math_func_catanl=yes |
89b803c8 | 25473 | else |
7d9455ce | 25474 | gcc_cv_math_func_catanl=no |
89b803c8 | 25475 | fi |
25476 | rm -f core conftest.err conftest.$ac_objext \ | |
25477 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25478 | fi |
7d9455ce | 25479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25480 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25481 | if test $gcc_cv_math_func_catanl = yes; then | |
bd647a17 | 25482 | |
6affa8e1 | 25483 | cat >>confdefs.h <<_ACEOF |
25484 | #define HAVE_CATANL 1 | |
25485 | _ACEOF | |
89b803c8 | 25486 | |
7d9455ce | 25487 | fi |
89b803c8 | 25488 | |
25489 | ||
839904a0 | 25490 | # On AIX, clog is present in libm as __clog |
cd9a469c | 25491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25492 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
f00f02a3 | 25493 | if ${ac_cv_lib_m___clog+:} false; then : |
cd9a469c | 25494 | $as_echo_n "(cached) " >&6 |
62a413d5 | 25495 | else |
25496 | ac_check_lib_save_LIBS=$LIBS | |
25497 | LIBS="-lm $LIBS" | |
25498 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
62a413d5 | 25500 | fi |
cd9a469c | 25501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62a413d5 | 25502 | /* end confdefs.h. */ |
25503 | ||
cd9a469c | 25504 | /* Override any GCC internal prototype to avoid an error. |
25505 | Use char because int might match the return type of a GCC | |
25506 | builtin and then its argument prototype would still apply. */ | |
62a413d5 | 25507 | #ifdef __cplusplus |
25508 | extern "C" | |
25509 | #endif | |
62a413d5 | 25510 | char __clog (); |
25511 | int | |
25512 | main () | |
25513 | { | |
cd9a469c | 25514 | return __clog (); |
62a413d5 | 25515 | ; |
25516 | return 0; | |
25517 | } | |
25518 | _ACEOF | |
cd9a469c | 25519 | if ac_fn_c_try_link "$LINENO"; then : |
62a413d5 | 25520 | ac_cv_lib_m___clog=yes |
25521 | else | |
cd9a469c | 25522 | ac_cv_lib_m___clog=no |
62a413d5 | 25523 | fi |
cd9a469c | 25524 | rm -f core conftest.err conftest.$ac_objext \ |
25525 | conftest$ac_exeext conftest.$ac_ext | |
62a413d5 | 25526 | LIBS=$ac_check_lib_save_LIBS |
25527 | fi | |
cd9a469c | 25528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25529 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
f00f02a3 | 25530 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
62a413d5 | 25531 | |
cd9a469c | 25532 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
62a413d5 | 25533 | |
25534 | fi | |
25535 | ||
25536 | ||
daad4fd5 | 25537 | # Check whether the system has a working stat() |
25538 | ||
cd9a469c | 25539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25540 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
f00f02a3 | 25541 | if ${libgfor_cv_have_working_stat+:} false; then : |
cd9a469c | 25542 | $as_echo_n "(cached) " >&6 |
daad4fd5 | 25543 | else |
25544 | ||
cd9a469c | 25545 | if test "$cross_compiling" = yes; then : |
daad4fd5 | 25546 | |
25547 | case "${target}" in | |
6992582a | 25548 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25549 | *) libgfor_cv_have_working_stat=yes;; | |
daad4fd5 | 25550 | esac |
25551 | else | |
cd9a469c | 25552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
daad4fd5 | 25553 | /* end confdefs.h. */ |
25554 | ||
25555 | #include <stdio.h> | |
25556 | #include <sys/types.h> | |
25557 | #include <sys/stat.h> | |
25558 | #include <unistd.h> | |
25559 | ||
25560 | int main () | |
25561 | { | |
25562 | FILE *f, *g; | |
25563 | struct stat st1, st2; | |
25564 | ||
25565 | f = fopen ("foo", "w"); | |
25566 | g = fopen ("bar", "w"); | |
25567 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25568 | return 1; | |
25569 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25570 | return 1; | |
25571 | fclose(f); | |
25572 | fclose(g); | |
25573 | return 0; | |
25574 | } | |
25575 | _ACEOF | |
cd9a469c | 25576 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25577 | libgfor_cv_have_working_stat=yes |
daad4fd5 | 25578 | else |
cd9a469c | 25579 | libgfor_cv_have_working_stat=no |
daad4fd5 | 25580 | fi |
cd9a469c | 25581 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25582 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
daad4fd5 | 25583 | fi |
cd9a469c | 25584 | |
daad4fd5 | 25585 | fi |
cd9a469c | 25586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25587 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6992582a | 25588 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
daad4fd5 | 25589 | |
cd9a469c | 25590 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
daad4fd5 | 25591 | |
25592 | fi | |
25593 | ||
3b99ec70 | 25594 | # Check whether __mingw_snprintf() is present |
25595 | ||
cd9a469c | 25596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25597 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
f00f02a3 | 25598 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : |
cd9a469c | 25599 | $as_echo_n "(cached) " >&6 |
3b99ec70 | 25600 | else |
25601 | ||
25602 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25603 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
3b99ec70 | 25604 | fi |
cd9a469c | 25605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3b99ec70 | 25606 | /* end confdefs.h. */ |
25607 | ||
25608 | #include <stdio.h> | |
25609 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25610 | ||
25611 | int | |
25612 | main () | |
25613 | { | |
25614 | ||
25615 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25616 | ||
25617 | ; | |
25618 | return 0; | |
25619 | } | |
25620 | _ACEOF | |
cd9a469c | 25621 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25622 | eval "libgfor_cv_have_mingw_snprintf=yes" |
3b99ec70 | 25623 | else |
cd9a469c | 25624 | eval "libgfor_cv_have_mingw_snprintf=no" |
3b99ec70 | 25625 | fi |
cd9a469c | 25626 | rm -f core conftest.err conftest.$ac_objext \ |
25627 | conftest$ac_exeext conftest.$ac_ext | |
3b99ec70 | 25628 | |
25629 | fi | |
cd9a469c | 25630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25631 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6992582a | 25632 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
3b99ec70 | 25633 | |
cd9a469c | 25634 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
3b99ec70 | 25635 | |
25636 | fi | |
25637 | ||
25638 | ||
d9d975ae | 25639 | # Check whether libquadmath should be used |
25640 | # Check whether --enable-libquadmath-support was given. | |
25641 | if test "${enable_libquadmath_support+set}" = set; then : | |
25642 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25643 | else | |
25644 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25645 | fi | |
25646 | ||
25647 | enable_libquadmath_support= | |
25648 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25649 | enable_libquadmath_support=no | |
25650 | fi | |
25651 | ||
25652 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
87969c8c | 25653 | |
25654 | LIBQUADSPEC= | |
d9d975ae | 25655 | |
25656 | if test "x$enable_libquadmath_support" != xno; then | |
25657 | ||
87969c8c | 25658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
25659 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
f00f02a3 | 25660 | if ${libgfor_cv_have_float128+:} false; then : |
87969c8c | 25661 | $as_echo_n "(cached) " >&6 |
25662 | else | |
25663 | ||
9af9660c | 25664 | if test x$gcc_no_link = xyes; then |
25665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
87969c8c | 25666 | /* end confdefs.h. */ |
25667 | ||
9af9660c | 25668 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
25669 | ||
25670 | __float128 foo (__float128 x) | |
25671 | { | |
25672 | ||
25673 | __complex128 z1, z2; | |
25674 | ||
25675 | z1 = x; | |
25676 | z2 = x / 7.Q; | |
25677 | z2 /= z1; | |
25678 | ||
25679 | return (__float128) z2; | |
25680 | } | |
25681 | ||
25682 | __float128 bar (__float128 x) | |
25683 | { | |
25684 | return x * __builtin_huge_valq (); | |
25685 | } | |
87969c8c | 25686 | |
25687 | int | |
25688 | main () | |
25689 | { | |
25690 | ||
9af9660c | 25691 | foo (1.2Q); |
25692 | bar (1.2Q); | |
87969c8c | 25693 | |
9af9660c | 25694 | ; |
25695 | return 0; | |
25696 | } | |
25697 | _ACEOF | |
25698 | if ac_fn_c_try_compile "$LINENO"; then : | |
87969c8c | 25699 | |
9af9660c | 25700 | libgfor_cv_have_float128=yes |
87969c8c | 25701 | |
9af9660c | 25702 | else |
25703 | ||
25704 | libgfor_cv_have_float128=no | |
25705 | ||
25706 | fi | |
25707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25708 | else | |
25709 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25710 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
9af9660c | 25711 | fi |
25712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25713 | /* end confdefs.h. */ | |
25714 | ||
25715 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
25716 | ||
25717 | __float128 foo (__float128 x) | |
25718 | { | |
25719 | ||
25720 | __complex128 z1, z2; | |
25721 | ||
25722 | z1 = x; | |
25723 | z2 = x / 7.Q; | |
25724 | z2 /= z1; | |
25725 | ||
25726 | return (__float128) z2; | |
25727 | } | |
25728 | ||
25729 | __float128 bar (__float128 x) | |
25730 | { | |
25731 | return x * __builtin_huge_valq (); | |
25732 | } | |
25733 | ||
25734 | int | |
25735 | main () | |
25736 | { | |
25737 | ||
25738 | foo (1.2Q); | |
25739 | bar (1.2Q); | |
87969c8c | 25740 | |
25741 | ; | |
25742 | return 0; | |
25743 | } | |
25744 | _ACEOF | |
25745 | if ac_fn_c_try_link "$LINENO"; then : | |
9af9660c | 25746 | |
25747 | libgfor_cv_have_float128=yes | |
25748 | ||
87969c8c | 25749 | else |
9af9660c | 25750 | |
25751 | libgfor_cv_have_float128=no | |
25752 | ||
87969c8c | 25753 | fi |
25754 | rm -f core conftest.err conftest.$ac_objext \ | |
25755 | conftest$ac_exeext conftest.$ac_ext | |
9af9660c | 25756 | fi |
87969c8c | 25757 | fi |
25758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
25759 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
25760 | ||
25761 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25762 | ||
25763 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
25764 | ||
25765 | ||
25766 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
b14cf757 | 25767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
25768 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
f00f02a3 | 25769 | if ${libgfor_cv_have_as_needed+:} false; then : |
87969c8c | 25770 | $as_echo_n "(cached) " >&6 |
25771 | else | |
25772 | ||
b14cf757 | 25773 | # Test for native Solaris options first. |
25774 | # No whitespace after -z to pass it through -Wl. | |
25775 | libgfor_cv_as_needed_option="-zignore" | |
25776 | libgfor_cv_no_as_needed_option="-zrecord" | |
87969c8c | 25777 | save_LDFLAGS="$LDFLAGS" |
b14cf757 | 25778 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
87969c8c | 25779 | libgfor_cv_have_as_needed=no |
25780 | ||
25781 | ac_c_werror_flag=yes | |
25782 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25783 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
87969c8c | 25784 | fi |
25785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25786 | /* end confdefs.h. */ | |
25787 | ||
25788 | int | |
25789 | main () | |
25790 | { | |
25791 | ||
25792 | ; | |
25793 | return 0; | |
25794 | } | |
25795 | _ACEOF | |
25796 | if ac_fn_c_try_link "$LINENO"; then : | |
25797 | libgfor_cv_have_as_needed=yes | |
25798 | else | |
25799 | libgfor_cv_have_as_needed=no | |
25800 | fi | |
25801 | rm -f core conftest.err conftest.$ac_objext \ | |
25802 | conftest$ac_exeext conftest.$ac_ext | |
25803 | LDFLAGS="$save_LDFLAGS" | |
b14cf757 | 25804 | if test "x$libgfor_cv_have_as_needed" = xno; then |
25805 | libgfor_cv_as_needed_option="--as-needed" | |
25806 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
25807 | save_LDFLAGS="$LDFLAGS" | |
25808 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
25809 | libgfor_cv_have_as_needed=no | |
25810 | ||
25811 | ac_c_werror_flag=yes | |
25812 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25813 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b14cf757 | 25814 | fi |
25815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25816 | /* end confdefs.h. */ | |
25817 | ||
25818 | int | |
25819 | main () | |
25820 | { | |
25821 | ||
25822 | ; | |
25823 | return 0; | |
25824 | } | |
25825 | _ACEOF | |
25826 | if ac_fn_c_try_link "$LINENO"; then : | |
25827 | libgfor_cv_have_as_needed=yes | |
25828 | else | |
25829 | libgfor_cv_have_as_needed=no | |
25830 | fi | |
25831 | rm -f core conftest.err conftest.$ac_objext \ | |
25832 | conftest$ac_exeext conftest.$ac_ext | |
25833 | LDFLAGS="$save_LDFLAGS" | |
25834 | fi | |
87969c8c | 25835 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
25836 | ||
25837 | fi | |
25838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
25839 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
25840 | ||
25841 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
b14cf757 | 25842 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
87969c8c | 25843 | else |
25844 | LIBQUADSPEC="-lquadmath" | |
25845 | fi | |
25846 | if test -f ../libquadmath/libquadmath.la; then | |
25847 | LIBQUADLIB=../libquadmath/libquadmath.la | |
25848 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
25849 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
25850 | else | |
25851 | LIBQUADLIB="-lquadmath" | |
25852 | LIBQUADLIB_DEP= | |
25853 | LIBQUADINCLUDE= | |
25854 | fi | |
25855 | fi | |
d9d975ae | 25856 | else |
25857 | # for --disable-quadmath | |
25858 | LIBQUADLIB= | |
25859 | LIBQUADLIB_DEP= | |
25860 | LIBQUADINCLUDE= | |
25861 | fi | |
87969c8c | 25862 | |
25863 | ||
25864 | ||
25865 | ||
25866 | ||
25867 | ||
25868 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25869 | LIBGFOR_BUILD_QUAD_TRUE= | |
25870 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
25871 | else | |
25872 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
25873 | LIBGFOR_BUILD_QUAD_FALSE= | |
25874 | fi | |
25875 | ||
25876 | ||
25877 | ||
8c84a5de | 25878 | # Check for GNU libc feenableexcept |
cd9a469c | 25879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
25880 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
f00f02a3 | 25881 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
cd9a469c | 25882 | $as_echo_n "(cached) " >&6 |
8c84a5de | 25883 | else |
25884 | ac_check_lib_save_LIBS=$LIBS | |
25885 | LIBS="-lm $LIBS" | |
25886 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25887 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
8c84a5de | 25888 | fi |
cd9a469c | 25889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8c84a5de | 25890 | /* end confdefs.h. */ |
25891 | ||
cd9a469c | 25892 | /* Override any GCC internal prototype to avoid an error. |
25893 | Use char because int might match the return type of a GCC | |
25894 | builtin and then its argument prototype would still apply. */ | |
8c84a5de | 25895 | #ifdef __cplusplus |
25896 | extern "C" | |
25897 | #endif | |
8c84a5de | 25898 | char feenableexcept (); |
25899 | int | |
25900 | main () | |
25901 | { | |
cd9a469c | 25902 | return feenableexcept (); |
8c84a5de | 25903 | ; |
25904 | return 0; | |
25905 | } | |
25906 | _ACEOF | |
cd9a469c | 25907 | if ac_fn_c_try_link "$LINENO"; then : |
8c84a5de | 25908 | ac_cv_lib_m_feenableexcept=yes |
25909 | else | |
cd9a469c | 25910 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 25911 | fi |
cd9a469c | 25912 | rm -f core conftest.err conftest.$ac_objext \ |
25913 | conftest$ac_exeext conftest.$ac_ext | |
8c84a5de | 25914 | LIBS=$ac_check_lib_save_LIBS |
25915 | fi | |
cd9a469c | 25916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
25917 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
f00f02a3 | 25918 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
8c84a5de | 25919 | have_feenableexcept=yes |
cd9a469c | 25920 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
aaa798ba | 25921 | |
25922 | fi | |
25923 | ||
aaa798ba | 25924 | |
126b6848 | 25925 | # At least for glibc, clock_gettime is in librt. But don't |
d90d0997 | 25926 | # pull that in if it still doesn't give us the function we want. This |
25927 | # test is copied from libgomp, and modified to not link in -lrt as | |
25928 | # libgfortran calls clock_gettime via a weak reference if it's found | |
25929 | # in librt. | |
20dc315f | 25930 | if test "$ac_cv_func_clock_gettime" = no; then |
a2c0dc0f | 25931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
25932 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
f00f02a3 | 25933 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
a2c0dc0f | 25934 | $as_echo_n "(cached) " >&6 |
25935 | else | |
25936 | ac_check_lib_save_LIBS=$LIBS | |
25937 | LIBS="-lrt $LIBS" | |
25938 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25939 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
a2c0dc0f | 25940 | fi |
25941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25942 | /* end confdefs.h. */ | |
25943 | ||
25944 | /* Override any GCC internal prototype to avoid an error. | |
25945 | Use char because int might match the return type of a GCC | |
25946 | builtin and then its argument prototype would still apply. */ | |
25947 | #ifdef __cplusplus | |
25948 | extern "C" | |
25949 | #endif | |
25950 | char clock_gettime (); | |
25951 | int | |
25952 | main () | |
25953 | { | |
25954 | return clock_gettime (); | |
25955 | ; | |
25956 | return 0; | |
25957 | } | |
25958 | _ACEOF | |
25959 | if ac_fn_c_try_link "$LINENO"; then : | |
25960 | ac_cv_lib_rt_clock_gettime=yes | |
25961 | else | |
25962 | ac_cv_lib_rt_clock_gettime=no | |
25963 | fi | |
25964 | rm -f core conftest.err conftest.$ac_objext \ | |
25965 | conftest$ac_exeext conftest.$ac_ext | |
25966 | LIBS=$ac_check_lib_save_LIBS | |
25967 | fi | |
25968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
25969 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
f00f02a3 | 25970 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
a2c0dc0f | 25971 | |
d90d0997 | 25972 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
a2c0dc0f | 25973 | |
25974 | fi | |
25975 | ||
25976 | fi | |
25977 | ||
cd9a469c | 25978 | # Check for SysV fpsetmask |
aaa798ba | 25979 | |
cd9a469c | 25980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
25981 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
f00f02a3 | 25982 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
cd9a469c | 25983 | $as_echo_n "(cached) " >&6 |
25984 | else | |
aaa798ba | 25985 | |
cd9a469c | 25986 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cd9a469c | 25988 | fi |
25989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25990 | /* end confdefs.h. */ | |
aaa798ba | 25991 | |
cd9a469c | 25992 | #if HAVE_FLOATINGPOINT_H |
25993 | # include <floatingpoint.h> | |
25994 | #endif /* HAVE_FLOATINGPOINT_H */ | |
25995 | #if HAVE_IEEEFP_H | |
25996 | # include <ieeefp.h> | |
25997 | #endif /* HAVE_IEEEFP_H */ | |
aaa798ba | 25998 | int |
25999 | main () | |
26000 | { | |
cd9a469c | 26001 | fpsetmask(0); |
aaa798ba | 26002 | ; |
26003 | return 0; | |
26004 | } | |
26005 | _ACEOF | |
cd9a469c | 26006 | if ac_fn_c_try_link "$LINENO"; then : |
26007 | eval "libgfor_cv_have_fpsetmask=yes" | |
aaa798ba | 26008 | else |
cd9a469c | 26009 | eval "libgfor_cv_have_fpsetmask=no" |
26010 | fi | |
26011 | rm -f core conftest.err conftest.$ac_objext \ | |
26012 | conftest$ac_exeext conftest.$ac_ext | |
aaa798ba | 26013 | |
aaa798ba | 26014 | fi |
cd9a469c | 26015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
26016 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
26017 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
b00fa2cf | 26018 | have_fpsetmask=yes |
cd9a469c | 26019 | |
26020 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
26021 | ||
26022 | fi | |
26023 | ||
dd81f5d9 | 26024 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
c4d9d1ea | 26025 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26026 | #include <ieeefp.h> |
c4d9d1ea | 26027 | #endif |
dd81f5d9 | 26028 | #include <math.h> |
26029 | ||
f1fd8f6e | 26030 | " |
f00f02a3 | 26031 | if test "x$ac_cv_type_fp_except" = xyes; then : |
f1fd8f6e | 26032 | |
26033 | cat >>confdefs.h <<_ACEOF | |
26034 | #define HAVE_FP_EXCEPT 1 | |
26035 | _ACEOF | |
26036 | ||
26037 | ||
26038 | fi | |
dd81f5d9 | 26039 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
c4d9d1ea | 26040 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26041 | #include <ieeefp.h> |
c4d9d1ea | 26042 | #endif |
dd81f5d9 | 26043 | #include <math.h> |
26044 | ||
f1fd8f6e | 26045 | " |
f00f02a3 | 26046 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
f1fd8f6e | 26047 | |
26048 | cat >>confdefs.h <<_ACEOF | |
26049 | #define HAVE_FP_EXCEPT_T 1 | |
26050 | _ACEOF | |
26051 | ||
26052 | ||
eb429e06 | 26053 | fi |
26054 | ||
dd81f5d9 | 26055 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
c4d9d1ea | 26056 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26057 | #include <ieeefp.h> |
c4d9d1ea | 26058 | #endif |
dd81f5d9 | 26059 | #include <math.h> |
26060 | ||
eb429e06 | 26061 | " |
f00f02a3 | 26062 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
eb429e06 | 26063 | |
26064 | cat >>confdefs.h <<_ACEOF | |
26065 | #define HAVE_FP_RND 1 | |
26066 | _ACEOF | |
26067 | ||
26068 | ||
26069 | fi | |
dd81f5d9 | 26070 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
c4d9d1ea | 26071 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26072 | #include <ieeefp.h> |
c4d9d1ea | 26073 | #endif |
dd81f5d9 | 26074 | #include <math.h> |
26075 | ||
eb429e06 | 26076 | " |
f00f02a3 | 26077 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
eb429e06 | 26078 | |
26079 | cat >>confdefs.h <<_ACEOF | |
26080 | #define HAVE_FP_RND_T 1 | |
26081 | _ACEOF | |
26082 | ||
26083 | ||
f1fd8f6e | 26084 | fi |
26085 | ||
cd9a469c | 26086 | |
53b9b372 | 26087 | # Check whether we have fpsetsticky or fpresetsticky |
26088 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
f00f02a3 | 26089 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
53b9b372 | 26090 | have_fpsetsticky=yes |
26091 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
26092 | ||
26093 | fi | |
26094 | ||
26095 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
f00f02a3 | 26096 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
53b9b372 | 26097 | have_fpresetsticky=yes |
26098 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
26099 | ||
26100 | fi | |
26101 | ||
26102 | ||
cd9a469c | 26103 | # Check for AIX fp_trap and fp_enable |
26104 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
f00f02a3 | 26105 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
cd9a469c | 26106 | have_fp_trap=yes |
26107 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
26108 | ||
aaa798ba | 26109 | fi |
cd9a469c | 26110 | |
26111 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
f00f02a3 | 26112 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
aaa798ba | 26113 | have_fp_enable=yes |
cd9a469c | 26114 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
aaa798ba | 26115 | |
26116 | fi | |
26117 | ||
26118 | ||
a3180a39 | 26119 | # Check if _SOFT_FLOAT is defined |
26120 | ||
26121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
26122 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
f00f02a3 | 26123 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
a3180a39 | 26124 | $as_echo_n "(cached) " >&6 |
26125 | else | |
26126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26127 | /* end confdefs.h. */ | |
26128 | ||
26129 | int | |
26130 | main () | |
26131 | { | |
26132 | ||
26133 | #ifdef _SOFT_FLOAT | |
26134 | int ok; | |
26135 | #else | |
26136 | choke me | |
26137 | #endif | |
26138 | ||
26139 | ; | |
26140 | return 0; | |
26141 | } | |
26142 | _ACEOF | |
26143 | if ac_fn_c_try_compile "$LINENO"; then : | |
26144 | ac_cv_defined__SOFT_FLOAT=yes | |
26145 | else | |
26146 | ac_cv_defined__SOFT_FLOAT=no | |
26147 | fi | |
26148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26149 | fi | |
26150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
26151 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
26152 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
26153 | have_soft_float=yes | |
26154 | fi | |
26155 | ||
8c84a5de | 26156 | # Runs configure.host to set up necessary host-dependent shell variables. |
26157 | # We then display a message about it, and propagate them through the | |
26158 | # build chain. | |
26159 | . ${srcdir}/configure.host | |
cd9a469c | 26160 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
26161 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
d566c3e0 | 26162 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
26163 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
8c84a5de | 26164 | FPU_HOST_HEADER=config/${fpu_host}.h |
26165 | ||
26166 | ||
d566c3e0 | 26167 | # Whether we will build the IEEE modules |
26168 | if test x${ieee_support} = xyes; then | |
26169 | IEEE_SUPPORT_TRUE= | |
26170 | IEEE_SUPPORT_FALSE='#' | |
26171 | else | |
26172 | IEEE_SUPPORT_TRUE='#' | |
26173 | IEEE_SUPPORT_FALSE= | |
26174 | fi | |
26175 | ||
26176 | ||
26177 | ||
72934c53 | 26178 | # Some targets require additional compiler options for IEEE compatibility. |
26179 | IEEE_FLAGS="${ieee_flags}" | |
26180 | ||
26181 | ||
d78db4a0 | 26182 | |
26183 | # Check for POSIX getpwuid_r | |
26184 | # | |
26185 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
26186 | # arguments, and another one with 4 arguments used by at least HP-UX | |
26187 | # 10.2. | |
26188 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
26189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
26190 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
f00f02a3 | 26191 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
d78db4a0 | 26192 | $as_echo_n "(cached) " >&6 |
26193 | else | |
26194 | ||
26195 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26196 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d78db4a0 | 26197 | fi |
26198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26199 | /* end confdefs.h. */ | |
26200 | ||
26201 | #include <stdio.h> | |
26202 | #include <sys/types.h> | |
26203 | #include <pwd.h> | |
26204 | int | |
26205 | main () | |
26206 | { | |
26207 | ||
26208 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
26209 | ||
26210 | ; | |
26211 | return 0; | |
26212 | } | |
26213 | _ACEOF | |
26214 | if ac_fn_c_try_link "$LINENO"; then : | |
26215 | libgfor_cv_posix_getpwuid_r="yes" | |
26216 | else | |
26217 | libgfor_cv_posix_getpwuid_r="no" | |
26218 | fi | |
26219 | rm -f core conftest.err conftest.$ac_objext \ | |
26220 | conftest$ac_exeext conftest.$ac_ext | |
26221 | fi | |
26222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
26223 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
26224 | fi | |
26225 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
26226 | ||
26227 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
26228 | ||
26229 | fi | |
26230 | ||
26231 | ||
7b6cb5bd | 26232 | # Check out attribute support. |
26233 | ||
cd9a469c | 26234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
26235 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
f00f02a3 | 26236 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
cd9a469c | 26237 | $as_echo_n "(cached) " >&6 |
7b6cb5bd | 26238 | else |
26239 | ||
26240 | save_CFLAGS="$CFLAGS" | |
26241 | CFLAGS="$CFLAGS -Werror" | |
cd9a469c | 26242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 26243 | /* end confdefs.h. */ |
26244 | void __attribute__((visibility("hidden"))) foo(void) { } | |
26245 | int | |
26246 | main () | |
26247 | { | |
26248 | ||
26249 | ; | |
26250 | return 0; | |
26251 | } | |
26252 | _ACEOF | |
cd9a469c | 26253 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 26254 | libgfor_cv_have_attribute_visibility=yes |
7b6cb5bd | 26255 | else |
cd9a469c | 26256 | libgfor_cv_have_attribute_visibility=no |
7b6cb5bd | 26257 | fi |
cd9a469c | 26258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 26259 | CFLAGS="$save_CFLAGS" |
26260 | fi | |
cd9a469c | 26261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
26262 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6992582a | 26263 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7b6cb5bd | 26264 | |
cd9a469c | 26265 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7b6cb5bd | 26266 | |
26267 | fi | |
26268 | ||
cd9a469c | 26269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
26270 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
f00f02a3 | 26271 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
cd9a469c | 26272 | $as_echo_n "(cached) " >&6 |
7b6cb5bd | 26273 | else |
26274 | ||
b52ee437 | 26275 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 26276 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 26277 | fi |
cd9a469c | 26278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 26279 | /* end confdefs.h. */ |
26280 | ||
7b6cb5bd | 26281 | void foo(void) { } |
5a2b0c34 | 26282 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 26283 | int |
26284 | main () | |
26285 | { | |
26286 | bar(); | |
26287 | ; | |
26288 | return 0; | |
26289 | } | |
26290 | _ACEOF | |
cd9a469c | 26291 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 26292 | libgfor_cv_have_attribute_alias=yes |
7b6cb5bd | 26293 | else |
cd9a469c | 26294 | libgfor_cv_have_attribute_alias=no |
7b6cb5bd | 26295 | fi |
cd9a469c | 26296 | rm -f core conftest.err conftest.$ac_objext \ |
26297 | conftest$ac_exeext conftest.$ac_ext | |
7b6cb5bd | 26298 | fi |
cd9a469c | 26299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
26300 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6992582a | 26301 | if test $libgfor_cv_have_attribute_alias = yes; then |
7b6cb5bd | 26302 | |
cd9a469c | 26303 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7b6cb5bd | 26304 | |
26305 | fi | |
26306 | ||
75c0d535 | 26307 | # Check out atomic builtins support. |
60c514ba | 26308 | |
75c0d535 | 26309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
26310 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
26311 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
cd9a469c | 26312 | $as_echo_n "(cached) " >&6 |
60c514ba | 26313 | else |
26314 | ||
26315 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26316 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
60c514ba | 26317 | fi |
cd9a469c | 26318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
60c514ba | 26319 | /* end confdefs.h. */ |
26320 | int foovar = 0; | |
26321 | int | |
26322 | main () | |
26323 | { | |
26324 | ||
75c0d535 | 26325 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
26326 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
60c514ba | 26327 | ; |
26328 | return 0; | |
26329 | } | |
26330 | _ACEOF | |
cd9a469c | 26331 | if ac_fn_c_try_link "$LINENO"; then : |
75c0d535 | 26332 | libgfor_cv_have_atomic_fetch_add=yes |
60c514ba | 26333 | else |
75c0d535 | 26334 | libgfor_cv_have_atomic_fetch_add=no |
60c514ba | 26335 | fi |
cd9a469c | 26336 | rm -f core conftest.err conftest.$ac_objext \ |
26337 | conftest$ac_exeext conftest.$ac_ext | |
60c514ba | 26338 | fi |
75c0d535 | 26339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
26340 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
26341 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
60c514ba | 26342 | |
75c0d535 | 26343 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
60c514ba | 26344 | |
26345 | fi | |
26346 | ||
04c14146 | 26347 | # Check out #pragma weak. |
26348 | ||
26349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26350 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
f00f02a3 | 26351 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
04c14146 | 26352 | $as_echo_n "(cached) " >&6 |
26353 | else | |
26354 | ||
26355 | gfor_save_CFLAGS="$CFLAGS" | |
26356 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26358 | /* end confdefs.h. */ | |
26359 | ||
26360 | void foo (void); | |
26361 | #pragma weak foo | |
26362 | ||
26363 | int | |
26364 | main () | |
26365 | { | |
26366 | if (foo) foo (); | |
26367 | ; | |
26368 | return 0; | |
26369 | } | |
26370 | _ACEOF | |
26371 | if ac_fn_c_try_compile "$LINENO"; then : | |
26372 | libgfor_cv_have_pragma_weak=yes | |
26373 | else | |
26374 | libgfor_cv_have_pragma_weak=no | |
26375 | fi | |
26376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26377 | fi | |
26378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26379 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26380 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26381 | ||
26382 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26383 | ||
26384 | fi | |
26385 | case "$host" in | |
26386 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26387 | ||
26388 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26389 | ||
26390 | ;; | |
26391 | esac | |
26392 | ||
1d9726df | 26393 | # Check out weakref support. |
60c514ba | 26394 | |
1d9726df | 26395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26396 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
f00f02a3 | 26397 | if ${libgfor_cv_have_weakref+:} false; then : |
cd9a469c | 26398 | $as_echo_n "(cached) " >&6 |
60c514ba | 26399 | else |
26400 | ||
1d9726df | 26401 | save_CFLAGS="$CFLAGS" |
26402 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26403 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26404 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1d9726df | 26405 | fi |
26406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
60c514ba | 26407 | /* end confdefs.h. */ |
b9a8e1d9 | 26408 | |
1d9726df | 26409 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
b9a8e1d9 | 26410 | |
60c514ba | 26411 | int |
26412 | main () | |
26413 | { | |
1d9726df | 26414 | return (mytoto != 0); |
60c514ba | 26415 | ; |
26416 | return 0; | |
26417 | } | |
26418 | _ACEOF | |
1d9726df | 26419 | if ac_fn_c_try_link "$LINENO"; then : |
26420 | libgfor_cv_have_weakref=yes | |
60c514ba | 26421 | else |
1d9726df | 26422 | libgfor_cv_have_weakref=no |
60c514ba | 26423 | fi |
1d9726df | 26424 | rm -f core conftest.err conftest.$ac_objext \ |
26425 | conftest$ac_exeext conftest.$ac_ext | |
26426 | CFLAGS="$save_CFLAGS" | |
60c514ba | 26427 | fi |
1d9726df | 26428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26429 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26430 | if test $libgfor_cv_have_weakref = yes; then | |
60c514ba | 26431 | |
1d9726df | 26432 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
60c514ba | 26433 | |
26434 | fi | |
26435 | ||
1dc95e51 | 26436 | # Various other checks on target |
26437 | ||
cd9a469c | 26438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26439 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
f00f02a3 | 26440 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
cd9a469c | 26441 | $as_echo_n "(cached) " >&6 |
1dc95e51 | 26442 | else |
26443 | ||
cd9a469c | 26444 | if test "$cross_compiling" = yes; then : |
1dc95e51 | 26445 | |
26446 | case "${target}" in | |
6992582a | 26447 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26448 | *) libgfor_cv_have_unlink_open_file=yes;; | |
1dc95e51 | 26449 | esac |
26450 | else | |
cd9a469c | 26451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1dc95e51 | 26452 | /* end confdefs.h. */ |
26453 | ||
26454 | #include <errno.h> | |
26455 | #include <fcntl.h> | |
26456 | #include <unistd.h> | |
26457 | #include <sys/stat.h> | |
26458 | ||
26459 | int main () | |
26460 | { | |
26461 | int fd; | |
26462 | ||
ec55604a | 26463 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
1dc95e51 | 26464 | if (fd <= 0) |
26465 | return 0; | |
26466 | if (unlink ("testfile") == -1) | |
26467 | return 1; | |
26468 | write (fd, "This is a test\n", 15); | |
26469 | close (fd); | |
26470 | ||
ec55604a | 26471 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
1dc95e51 | 26472 | return 0; |
26473 | else | |
26474 | return 1; | |
26475 | } | |
26476 | _ACEOF | |
cd9a469c | 26477 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26478 | libgfor_cv_have_unlink_open_file=yes |
1dc95e51 | 26479 | else |
cd9a469c | 26480 | libgfor_cv_have_unlink_open_file=no |
1dc95e51 | 26481 | fi |
cd9a469c | 26482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26483 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1dc95e51 | 26484 | fi |
cd9a469c | 26485 | |
1dc95e51 | 26486 | fi |
cd9a469c | 26487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26488 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6992582a | 26489 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
1dc95e51 | 26490 | |
cd9a469c | 26491 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
1dc95e51 | 26492 | |
26493 | fi | |
26494 | ||
cf55c3cf | 26495 | # Check whether line terminator is LF or CRLF |
26496 | ||
cd9a469c | 26497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
26498 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
f00f02a3 | 26499 | if ${libgfor_cv_have_crlf+:} false; then : |
cd9a469c | 26500 | $as_echo_n "(cached) " >&6 |
cf55c3cf | 26501 | else |
26502 | ||
cd9a469c | 26503 | if test "$cross_compiling" = yes; then : |
cf55c3cf | 26504 | |
26505 | case "${target}" in | |
6992582a | 26506 | *mingw*) libgfor_cv_have_crlf=yes ;; |
26507 | *) libgfor_cv_have_crlf=no;; | |
cf55c3cf | 26508 | esac |
26509 | else | |
cd9a469c | 26510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cf55c3cf | 26511 | /* end confdefs.h. */ |
26512 | ||
26513 | /* This test program should exit with status 0 if system uses a CRLF as | |
26514 | line terminator, and status 1 otherwise. | |
26515 | Since it is used to check for mingw systems, and should return 0 in any | |
26516 | other case, in case of a failure we will not use CRLF. */ | |
26517 | #include <sys/stat.h> | |
26518 | #include <stdlib.h> | |
26519 | #include <fcntl.h> | |
26520 | #include <stdio.h> | |
26521 | ||
26522 | int main () | |
26523 | { | |
26524 | #ifndef O_BINARY | |
26525 | exit(1); | |
26526 | #else | |
26527 | int fd, bytes; | |
26528 | char buff[5]; | |
26529 | ||
26530 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
26531 | if (fd < 0) | |
26532 | exit(1); | |
26533 | if (write (fd, "\n", 1) < 0) | |
26534 | perror ("write"); | |
26535 | ||
26536 | close (fd); | |
26537 | ||
26538 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
26539 | exit(1); | |
26540 | bytes = read (fd, buff, 5); | |
26541 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
26542 | exit(0); | |
26543 | else | |
26544 | exit(1); | |
26545 | #endif | |
26546 | } | |
26547 | _ACEOF | |
cd9a469c | 26548 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26549 | libgfor_cv_have_crlf=yes |
cf55c3cf | 26550 | else |
cd9a469c | 26551 | libgfor_cv_have_crlf=no |
cf55c3cf | 26552 | fi |
cd9a469c | 26553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26554 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
cf55c3cf | 26555 | fi |
cd9a469c | 26556 | |
cf55c3cf | 26557 | fi |
cd9a469c | 26558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
26559 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6992582a | 26560 | if test x"$libgfor_cv_have_crlf" = xyes; then |
cf55c3cf | 26561 | |
cd9a469c | 26562 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
cf55c3cf | 26563 | |
26564 | fi | |
26565 | ||
25df644f | 26566 | # Check whether we support AVX extensions |
26567 | ||
26568 | ac_save_CFLAGS="$CFLAGS" | |
26569 | CFLAGS="-O2 -mavx" | |
26570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26571 | /* end confdefs.h. */ | |
26572 | ||
26573 | void _mm256_zeroall (void) | |
26574 | { | |
26575 | __builtin_ia32_vzeroall (); | |
26576 | } | |
26577 | int | |
26578 | main () | |
26579 | { | |
26580 | ||
26581 | ; | |
26582 | return 0; | |
26583 | } | |
26584 | _ACEOF | |
26585 | if ac_fn_c_try_compile "$LINENO"; then : | |
26586 | ||
26587 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
26588 | ||
26589 | fi | |
26590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26591 | CFLAGS="$ac_save_CFLAGS" | |
26592 | ||
26593 | ||
26594 | # Check wether we support AVX2 extensions | |
26595 | ||
26596 | ac_save_CFLAGS="$CFLAGS" | |
26597 | CFLAGS="-O2 -mavx2" | |
26598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26599 | /* end confdefs.h. */ | |
26600 | ||
26601 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
26602 | __v4di | |
26603 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
26604 | { | |
26605 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
26606 | } | |
26607 | int | |
26608 | main () | |
26609 | { | |
26610 | ||
26611 | ; | |
26612 | return 0; | |
26613 | } | |
26614 | _ACEOF | |
26615 | if ac_fn_c_try_compile "$LINENO"; then : | |
26616 | ||
26617 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
26618 | ||
26619 | fi | |
26620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26621 | CFLAGS="$ac_save_CFLAGS" | |
26622 | ||
26623 | ||
26624 | # Check wether we support AVX512f extensions | |
26625 | ||
26626 | ac_save_CFLAGS="$CFLAGS" | |
26627 | CFLAGS="-O2 -mavx512f" | |
26628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26629 | /* end confdefs.h. */ | |
26630 | ||
26631 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
26632 | __m512d _mm512_add (__m512d a) | |
26633 | { | |
d6c831fb | 26634 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
26635 | /* For -m64/-mx32 also verify that code will work even if | |
26636 | the target uses call saved zmm16+ and needs to emit | |
26637 | unwind info for them (e.g. on mingw). See PR79127. */ | |
26638 | #ifdef __x86_64__ | |
26639 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
26640 | #endif | |
26641 | return b; | |
25df644f | 26642 | } |
26643 | int | |
26644 | main () | |
26645 | { | |
26646 | ||
26647 | ; | |
26648 | return 0; | |
26649 | } | |
26650 | _ACEOF | |
26651 | if ac_fn_c_try_compile "$LINENO"; then : | |
26652 | ||
26653 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
26654 | ||
26655 | fi | |
26656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26657 | CFLAGS="$ac_save_CFLAGS" | |
26658 | ||
26659 | ||
b4e409cb | 26660 | # Check for FMA3 extensions |
26661 | ||
26662 | ac_save_CFLAGS="$CFLAGS" | |
26663 | CFLAGS="-O2 -mfma -mno-fma4" | |
26664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26665 | /* end confdefs.h. */ | |
26666 | ||
3803be45 | 26667 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26668 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26669 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
b4e409cb | 26670 | { |
3803be45 | 26671 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26672 | (__v4sf)__B, | |
26673 | (__v4sf)__C); | |
b4e409cb | 26674 | } |
26675 | int | |
26676 | main () | |
26677 | { | |
26678 | ||
26679 | ; | |
26680 | return 0; | |
26681 | } | |
26682 | _ACEOF | |
26683 | if ac_fn_c_try_compile "$LINENO"; then : | |
26684 | ||
26685 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
26686 | ||
26687 | fi | |
26688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26689 | CFLAGS="$ac_save_CFLAGS" | |
26690 | ||
26691 | ||
26692 | # Check for FMA4 extensions | |
26693 | ||
26694 | ac_save_CFLAGS="$CFLAGS" | |
26695 | CFLAGS="-O2 -mfma4 -mno-fma" | |
26696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26697 | /* end confdefs.h. */ | |
26698 | ||
3803be45 | 26699 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26700 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26701 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
b4e409cb | 26702 | { |
3803be45 | 26703 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26704 | (__v4sf)__B, | |
26705 | (__v4sf)__C); | |
b4e409cb | 26706 | } |
26707 | int | |
26708 | main () | |
26709 | { | |
26710 | ||
26711 | ; | |
26712 | return 0; | |
26713 | } | |
26714 | _ACEOF | |
26715 | if ac_fn_c_try_compile "$LINENO"; then : | |
26716 | ||
26717 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
26718 | ||
26719 | fi | |
26720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26721 | CFLAGS="$ac_save_CFLAGS" | |
26722 | ||
26723 | ||
26724 | # Check if AVX128 works | |
26725 | ||
26726 | ac_save_CFLAGS="$CFLAGS" | |
26727 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
26728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26729 | /* end confdefs.h. */ | |
26730 | ||
26731 | void foo() | |
26732 | { | |
26733 | } | |
26734 | int | |
26735 | main () | |
26736 | { | |
26737 | ||
26738 | ; | |
26739 | return 0; | |
26740 | } | |
26741 | _ACEOF | |
26742 | if ac_fn_c_try_compile "$LINENO"; then : | |
26743 | ||
26744 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
26745 | ||
26746 | if true; then | |
26747 | HAVE_AVX128_TRUE= | |
26748 | HAVE_AVX128_FALSE='#' | |
26749 | else | |
26750 | HAVE_AVX128_TRUE='#' | |
26751 | HAVE_AVX128_FALSE= | |
26752 | fi | |
26753 | ||
a1a7ecea | 26754 | else |
26755 | if false; then | |
26756 | HAVE_AVX128_TRUE= | |
26757 | HAVE_AVX128_FALSE='#' | |
26758 | else | |
26759 | HAVE_AVX128_TRUE='#' | |
26760 | HAVE_AVX128_FALSE= | |
26761 | fi | |
26762 | ||
b4e409cb | 26763 | fi |
26764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26765 | CFLAGS="$ac_save_CFLAGS" | |
26766 | ||
26767 | ||
0812bb06 | 26768 | # Determine what GCC version number to use in filesystem paths. |
26769 | ||
26770 | get_gcc_base_ver="cat" | |
26771 | ||
26772 | # Check whether --with-gcc-major-version-only was given. | |
26773 | if test "${with_gcc_major_version_only+set}" = set; then : | |
26774 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
124c259e | 26775 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
0812bb06 | 26776 | fi |
26777 | ||
26778 | fi | |
26779 | ||
26780 | ||
26781 | ||
26782 | ||
4ee9c684 | 26783 | cat >confcache <<\_ACEOF |
26784 | # This file is a shell script that caches the results of configure | |
26785 | # tests run on this system so they can be shared between configure | |
26786 | # scripts and configure runs, see configure's option --config-cache. | |
26787 | # It is not useful on other systems. If it contains results you don't | |
26788 | # want to keep, you may remove or edit it. | |
26789 | # | |
26790 | # config.status only pays attention to the cache file if you give it | |
26791 | # the --recheck option to rerun configure. | |
26792 | # | |
26793 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26794 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26795 | # following values. | |
26796 | ||
26797 | _ACEOF | |
26798 | ||
26799 | # The following way of writing the cache mishandles newlines in values, | |
26800 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26801 | # So, we kill variables containing newlines. |
4ee9c684 | 26802 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26803 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26804 | ( |
26805 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26806 | eval ac_val=\$$ac_var | |
26807 | case $ac_val in #( | |
26808 | *${as_nl}*) | |
26809 | case $ac_var in #( | |
26810 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26811 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26812 | esac | |
26813 | case $ac_var in #( | |
26814 | _ | IFS | as_nl) ;; #( | |
26815 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26816 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26817 | esac ;; | |
26818 | esac | |
26819 | done | |
26820 | ||
4ee9c684 | 26821 | (set) 2>&1 | |
cd9a469c | 26822 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26823 | *${as_nl}ac_space=\ *) | |
26824 | # `set' does not quote correctly, so add quotes: double-quote | |
26825 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26826 | sed -n \ |
26827 | "s/'/'\\\\''/g; | |
26828 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26829 | ;; #( |
4ee9c684 | 26830 | *) |
26831 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26832 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26833 | ;; |
cd9a469c | 26834 | esac | |
26835 | sort | |
26836 | ) | | |
4ee9c684 | 26837 | sed ' |
cd9a469c | 26838 | /^ac_cv_env_/b end |
4ee9c684 | 26839 | t clear |
cd9a469c | 26840 | :clear |
4ee9c684 | 26841 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26842 | t end | |
cd9a469c | 26843 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26844 | :end' >>confcache | |
26845 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26846 | if test -w "$cache_file"; then | |
f00f02a3 | 26847 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 26848 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26849 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 26850 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26851 | cat confcache >"$cache_file" | |
26852 | else | |
26853 | case $cache_file in #( | |
26854 | */* | ?:*) | |
26855 | mv -f confcache "$cache_file"$$ && | |
26856 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26857 | *) | |
26858 | mv -f confcache "$cache_file" ;; | |
26859 | esac | |
26860 | fi | |
26861 | fi | |
4ee9c684 | 26862 | else |
cd9a469c | 26863 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26864 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26865 | fi |
26866 | fi | |
26867 | rm -f confcache | |
26868 | ||
90973b19 | 26869 | if test ${multilib} = yes; then |
26870 | multilib_arg="--enable-multilib" | |
4ee9c684 | 26871 | else |
90973b19 | 26872 | multilib_arg= |
4ee9c684 | 26873 | fi |
4ee9c684 | 26874 | |
87969c8c | 26875 | # Write our Makefile and spec file. |
26876 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
90973b19 | 26877 | |
4ee9c684 | 26878 | cat >confcache <<\_ACEOF |
26879 | # This file is a shell script that caches the results of configure | |
26880 | # tests run on this system so they can be shared between configure | |
26881 | # scripts and configure runs, see configure's option --config-cache. | |
26882 | # It is not useful on other systems. If it contains results you don't | |
26883 | # want to keep, you may remove or edit it. | |
26884 | # | |
26885 | # config.status only pays attention to the cache file if you give it | |
26886 | # the --recheck option to rerun configure. | |
26887 | # | |
26888 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26889 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26890 | # following values. | |
26891 | ||
26892 | _ACEOF | |
26893 | ||
26894 | # The following way of writing the cache mishandles newlines in values, | |
26895 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26896 | # So, we kill variables containing newlines. |
4ee9c684 | 26897 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26898 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26899 | ( |
26900 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26901 | eval ac_val=\$$ac_var | |
26902 | case $ac_val in #( | |
26903 | *${as_nl}*) | |
26904 | case $ac_var in #( | |
26905 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26906 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26907 | esac | |
26908 | case $ac_var in #( | |
26909 | _ | IFS | as_nl) ;; #( | |
26910 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26911 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26912 | esac ;; | |
26913 | esac | |
26914 | done | |
26915 | ||
4ee9c684 | 26916 | (set) 2>&1 | |
cd9a469c | 26917 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26918 | *${as_nl}ac_space=\ *) | |
26919 | # `set' does not quote correctly, so add quotes: double-quote | |
26920 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26921 | sed -n \ |
26922 | "s/'/'\\\\''/g; | |
26923 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26924 | ;; #( |
4ee9c684 | 26925 | *) |
26926 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26927 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26928 | ;; |
cd9a469c | 26929 | esac | |
26930 | sort | |
26931 | ) | | |
4ee9c684 | 26932 | sed ' |
cd9a469c | 26933 | /^ac_cv_env_/b end |
4ee9c684 | 26934 | t clear |
cd9a469c | 26935 | :clear |
4ee9c684 | 26936 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26937 | t end | |
cd9a469c | 26938 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26939 | :end' >>confcache | |
26940 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26941 | if test -w "$cache_file"; then | |
f00f02a3 | 26942 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 26943 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26944 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 26945 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26946 | cat confcache >"$cache_file" | |
26947 | else | |
26948 | case $cache_file in #( | |
26949 | */* | ?:*) | |
26950 | mv -f confcache "$cache_file"$$ && | |
26951 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26952 | *) | |
26953 | mv -f confcache "$cache_file" ;; | |
26954 | esac | |
26955 | fi | |
26956 | fi | |
4ee9c684 | 26957 | else |
cd9a469c | 26958 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26959 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26960 | fi |
26961 | fi | |
26962 | rm -f confcache | |
26963 | ||
26964 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26965 | # Let make expand exec_prefix. | |
26966 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26967 | ||
4ee9c684 | 26968 | DEFS=-DHAVE_CONFIG_H |
26969 | ||
26970 | ac_libobjs= | |
26971 | ac_ltlibobjs= | |
f00f02a3 | 26972 | U= |
4ee9c684 | 26973 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
26974 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 26975 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26976 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26977 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26978 | # will be set to the directory where LIBOBJS objects are built. | |
26979 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26980 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4ee9c684 | 26981 | done |
26982 | LIBOBJS=$ac_libobjs | |
26983 | ||
26984 | LTLIBOBJS=$ac_ltlibobjs | |
26985 | ||
26986 | ||
93773f82 | 26987 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
f00f02a3 | 26988 | as_fn_error $? "conditional \"onestep\" was never defined. |
cd9a469c | 26989 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
26990 | fi | |
f00f02a3 | 26991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
26992 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
26993 | if test -n "$am_sleep_pid"; then | |
26994 | # Hide warnings about reused PIDs. | |
26995 | wait $am_sleep_pid 2>/dev/null | |
26996 | fi | |
26997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
26998 | $as_echo "done" >&6; } | |
cd9a469c | 26999 | if test -n "$EXEEXT"; then |
27000 | am__EXEEXT_TRUE= | |
27001 | am__EXEEXT_FALSE='#' | |
27002 | else | |
27003 | am__EXEEXT_TRUE='#' | |
27004 | am__EXEEXT_FALSE= | |
93773f82 | 27005 | fi |
cd9a469c | 27006 | |
4ee9c684 | 27007 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
f00f02a3 | 27008 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
cd9a469c | 27009 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4ee9c684 | 27010 | fi |
2fd61f51 | 27011 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
f00f02a3 | 27012 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
cd9a469c | 27013 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2fd61f51 | 27014 | fi |
27015 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
f00f02a3 | 27016 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
cd9a469c | 27017 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2fd61f51 | 27018 | fi |
d5d92632 | 27019 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
f00f02a3 | 27020 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
d5d92632 | 27021 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27022 | fi | |
ce1a737c | 27023 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
f00f02a3 | 27024 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
cd9a469c | 27025 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ce1a737c | 27026 | fi |
019fb48a | 27027 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
f00f02a3 | 27028 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
019fb48a | 27029 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27030 | fi | |
27031 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
f00f02a3 | 27032 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
019fb48a | 27033 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27034 | fi | |
eb00e55c | 27035 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
f00f02a3 | 27036 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
eb00e55c | 27037 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27038 | fi | |
18ce903b | 27039 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
f00f02a3 | 27040 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
18ce903b | 27041 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27042 | fi | |
87969c8c | 27043 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
f00f02a3 | 27044 | as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. |
87969c8c | 27045 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27046 | fi | |
d566c3e0 | 27047 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
f00f02a3 | 27048 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
d566c3e0 | 27049 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27050 | fi | |
b4e409cb | 27051 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
f00f02a3 | 27052 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
b4e409cb | 27053 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27054 | fi | |
a1a7ecea | 27055 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
f00f02a3 | 27056 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
a1a7ecea | 27057 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27058 | fi | |
4ee9c684 | 27059 | |
f00f02a3 | 27060 | : "${CONFIG_STATUS=./config.status}" |
cd9a469c | 27061 | ac_write_fail=0 |
4ee9c684 | 27062 | ac_clean_files_save=$ac_clean_files |
27063 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 27064 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
27065 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
27066 | as_write_fail=0 | |
27067 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4ee9c684 | 27068 | #! $SHELL |
27069 | # Generated by $as_me. | |
27070 | # Run this file to recreate the current configuration. | |
27071 | # Compiler output produced by configure, useful for debugging | |
27072 | # configure, is in config.log if it exists. | |
27073 | ||
27074 | debug=false | |
27075 | ac_cs_recheck=false | |
27076 | ac_cs_silent=false | |
4ee9c684 | 27077 | |
cd9a469c | 27078 | SHELL=\${CONFIG_SHELL-$SHELL} |
27079 | export SHELL | |
27080 | _ASEOF | |
27081 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
27082 | ## -------------------- ## | |
27083 | ## M4sh Initialization. ## | |
27084 | ## -------------------- ## | |
27085 | ||
27086 | # Be more Bourne compatible | |
27087 | DUALCASE=1; export DUALCASE # for MKS sh | |
27088 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4ee9c684 | 27089 | emulate sh |
27090 | NULLCMD=: | |
cd9a469c | 27091 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 27092 | # is contrary to our usage. Disable this feature. |
27093 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 27094 | setopt NO_GLOB_SUBST |
27095 | else | |
27096 | case `(set -o) 2>/dev/null` in #( | |
27097 | *posix*) : | |
27098 | set -o posix ;; #( | |
27099 | *) : | |
27100 | ;; | |
27101 | esac | |
4ee9c684 | 27102 | fi |
4ee9c684 | 27103 | |
cd9a469c | 27104 | |
27105 | as_nl=' | |
27106 | ' | |
27107 | export as_nl | |
27108 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
27109 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
27110 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
27111 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
27112 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
27113 | # but without wasting forks for bash or zsh. | |
27114 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
27115 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27116 | as_echo='print -r --' | |
27117 | as_echo_n='print -rn --' | |
27118 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27119 | as_echo='printf %s\n' | |
27120 | as_echo_n='printf %s' | |
27121 | else | |
27122 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
27123 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
27124 | as_echo_n='/usr/ucb/echo -n' | |
27125 | else | |
27126 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
27127 | as_echo_n_body='eval | |
27128 | arg=$1; | |
27129 | case $arg in #( | |
27130 | *"$as_nl"*) | |
27131 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
27132 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
27133 | esac; | |
27134 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
27135 | ' | |
27136 | export as_echo_n_body | |
27137 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
27138 | fi | |
27139 | export as_echo_body | |
27140 | as_echo='sh -c $as_echo_body as_echo' | |
27141 | fi | |
27142 | ||
27143 | # The user is always right. | |
27144 | if test "${PATH_SEPARATOR+set}" != set; then | |
27145 | PATH_SEPARATOR=: | |
27146 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
27147 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
27148 | PATH_SEPARATOR=';' | |
27149 | } | |
4ee9c684 | 27150 | fi |
27151 | ||
27152 | ||
cd9a469c | 27153 | # IFS |
27154 | # We need space, tab and new line, in precisely that order. Quoting is | |
27155 | # there to prevent editors from complaining about space-tab. | |
27156 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
27157 | # splitting by setting IFS to empty value.) | |
27158 | IFS=" "" $as_nl" | |
27159 | ||
27160 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 27161 | as_myself= |
cd9a469c | 27162 | case $0 in #(( |
27163 | *[\\/]* ) as_myself=$0 ;; | |
27164 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27165 | for as_dir in $PATH | |
27166 | do | |
27167 | IFS=$as_save_IFS | |
27168 | test -z "$as_dir" && as_dir=. | |
27169 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27170 | done | |
27171 | IFS=$as_save_IFS | |
27172 | ||
27173 | ;; | |
27174 | esac | |
27175 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27176 | # in which case we are not to be found in the path. | |
27177 | if test "x$as_myself" = x; then | |
27178 | as_myself=$0 | |
27179 | fi | |
27180 | if test ! -f "$as_myself"; then | |
27181 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
27182 | exit 1 | |
27183 | fi | |
27184 | ||
27185 | # Unset variables that we do not need and which cause bugs (e.g. in | |
27186 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
27187 | # suppresses any "Segmentation fault" message there. '((' could | |
27188 | # trigger a bug in pdksh 5.2.14. | |
27189 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
27190 | do eval test x\${$as_var+set} = xset \ | |
27191 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27192 | done | |
4ee9c684 | 27193 | PS1='$ ' |
27194 | PS2='> ' | |
27195 | PS4='+ ' | |
27196 | ||
27197 | # NLS nuisances. | |
cd9a469c | 27198 | LC_ALL=C |
27199 | export LC_ALL | |
27200 | LANGUAGE=C | |
27201 | export LANGUAGE | |
27202 | ||
27203 | # CDPATH. | |
27204 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27205 | ||
27206 | ||
f00f02a3 | 27207 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
27208 | # ---------------------------------------- | |
cd9a469c | 27209 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
27210 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 27211 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 27212 | as_fn_error () |
27213 | { | |
f00f02a3 | 27214 | as_status=$1; test $as_status -eq 0 && as_status=1 |
27215 | if test "$4"; then | |
27216 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
27217 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4ee9c684 | 27218 | fi |
f00f02a3 | 27219 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 27220 | as_fn_exit $as_status |
27221 | } # as_fn_error | |
27222 | ||
27223 | ||
27224 | # as_fn_set_status STATUS | |
27225 | # ----------------------- | |
27226 | # Set $? to STATUS, without forking. | |
27227 | as_fn_set_status () | |
27228 | { | |
27229 | return $1 | |
27230 | } # as_fn_set_status | |
27231 | ||
27232 | # as_fn_exit STATUS | |
27233 | # ----------------- | |
27234 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
27235 | as_fn_exit () | |
27236 | { | |
27237 | set +e | |
27238 | as_fn_set_status $1 | |
27239 | exit $1 | |
27240 | } # as_fn_exit | |
27241 | ||
27242 | # as_fn_unset VAR | |
27243 | # --------------- | |
27244 | # Portably unset VAR. | |
27245 | as_fn_unset () | |
27246 | { | |
27247 | { eval $1=; unset $1;} | |
27248 | } | |
27249 | as_unset=as_fn_unset | |
27250 | # as_fn_append VAR VALUE | |
27251 | # ---------------------- | |
27252 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
27253 | # advantage of any shell optimizations that allow amortized linear growth over | |
27254 | # repeated appends, instead of the typical quadratic growth present in naive | |
27255 | # implementations. | |
27256 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
27257 | eval 'as_fn_append () | |
27258 | { | |
27259 | eval $1+=\$2 | |
27260 | }' | |
27261 | else | |
27262 | as_fn_append () | |
27263 | { | |
27264 | eval $1=\$$1\$2 | |
27265 | } | |
27266 | fi # as_fn_append | |
27267 | ||
27268 | # as_fn_arith ARG... | |
27269 | # ------------------ | |
27270 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
27271 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
27272 | # must be portable across $(()) and expr. | |
27273 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
27274 | eval 'as_fn_arith () | |
27275 | { | |
27276 | as_val=$(( $* )) | |
27277 | }' | |
27278 | else | |
27279 | as_fn_arith () | |
27280 | { | |
27281 | as_val=`expr "$@" || test $? -eq 1` | |
27282 | } | |
27283 | fi # as_fn_arith | |
4ee9c684 | 27284 | |
cd9a469c | 27285 | |
27286 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
27287 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 27288 | as_expr=expr |
27289 | else | |
27290 | as_expr=false | |
27291 | fi | |
27292 | ||
cd9a469c | 27293 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 27294 | as_basename=basename |
27295 | else | |
27296 | as_basename=false | |
27297 | fi | |
27298 | ||
cd9a469c | 27299 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27300 | as_dirname=dirname | |
27301 | else | |
27302 | as_dirname=false | |
27303 | fi | |
4ee9c684 | 27304 | |
cd9a469c | 27305 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 27306 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27307 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 27308 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27309 | $as_echo X/"$0" | | |
27310 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
27311 | s//\1/ | |
27312 | q | |
27313 | } | |
27314 | /^X\/\(\/\/\)$/{ | |
27315 | s//\1/ | |
27316 | q | |
27317 | } | |
27318 | /^X\/\(\/\).*/{ | |
27319 | s//\1/ | |
27320 | q | |
27321 | } | |
27322 | s/.*/./; q'` | |
82eaf560 | 27323 | |
82eaf560 | 27324 | # Avoid depending upon Character Ranges. |
27325 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27326 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27327 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27328 | as_cr_digits='0123456789' | |
27329 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27330 | ||
cd9a469c | 27331 | ECHO_C= ECHO_N= ECHO_T= |
27332 | case `echo -n x` in #((((( | |
27333 | -n*) | |
27334 | case `echo 'xy\c'` in | |
27335 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
27336 | xy) ECHO_C='\c';; | |
27337 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
27338 | ECHO_T=' ';; | |
27339 | esac;; | |
27340 | *) | |
27341 | ECHO_N='-n';; | |
4ee9c684 | 27342 | esac |
27343 | ||
cd9a469c | 27344 | rm -f conf$$ conf$$.exe conf$$.file |
27345 | if test -d conf$$.dir; then | |
27346 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 27347 | else |
cd9a469c | 27348 | rm -f conf$$.dir |
27349 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 27350 | fi |
cd9a469c | 27351 | if (echo >conf$$.file) 2>/dev/null; then |
27352 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 27353 | as_ln_s='ln -s' |
cd9a469c | 27354 | # ... but there are two gotchas: |
27355 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
27356 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 27357 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 27358 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 27359 | as_ln_s='cp -pR' |
cd9a469c | 27360 | elif ln conf$$.file conf$$ 2>/dev/null; then |
27361 | as_ln_s=ln | |
27362 | else | |
f00f02a3 | 27363 | as_ln_s='cp -pR' |
82eaf560 | 27364 | fi |
4ee9c684 | 27365 | else |
f00f02a3 | 27366 | as_ln_s='cp -pR' |
4ee9c684 | 27367 | fi |
cd9a469c | 27368 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27369 | rmdir conf$$.dir 2>/dev/null | |
27370 | ||
27371 | ||
27372 | # as_fn_mkdir_p | |
27373 | # ------------- | |
27374 | # Create "$as_dir" as a directory, including parents if necessary. | |
27375 | as_fn_mkdir_p () | |
27376 | { | |
27377 | ||
27378 | case $as_dir in #( | |
27379 | -*) as_dir=./$as_dir;; | |
27380 | esac | |
27381 | test -d "$as_dir" || eval $as_mkdir_p || { | |
27382 | as_dirs= | |
27383 | while :; do | |
27384 | case $as_dir in #( | |
27385 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27386 | *) as_qdir=$as_dir;; | |
27387 | esac | |
27388 | as_dirs="'$as_qdir' $as_dirs" | |
27389 | as_dir=`$as_dirname -- "$as_dir" || | |
27390 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27391 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27392 | X"$as_dir" : 'X\(//\)$' \| \ | |
27393 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27394 | $as_echo X"$as_dir" | | |
27395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27396 | s//\1/ | |
27397 | q | |
27398 | } | |
27399 | /^X\(\/\/\)[^/].*/{ | |
27400 | s//\1/ | |
27401 | q | |
27402 | } | |
27403 | /^X\(\/\/\)$/{ | |
27404 | s//\1/ | |
27405 | q | |
27406 | } | |
27407 | /^X\(\/\).*/{ | |
27408 | s//\1/ | |
27409 | q | |
27410 | } | |
27411 | s/.*/./; q'` | |
27412 | test -d "$as_dir" && break | |
27413 | done | |
27414 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 27415 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 27416 | |
4ee9c684 | 27417 | |
cd9a469c | 27418 | } # as_fn_mkdir_p |
4ee9c684 | 27419 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 27420 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 27421 | else |
27422 | test -d ./-p && rmdir ./-p | |
27423 | as_mkdir_p=false | |
27424 | fi | |
27425 | ||
f00f02a3 | 27426 | |
27427 | # as_fn_executable_p FILE | |
27428 | # ----------------------- | |
27429 | # Test if FILE is an executable regular file. | |
27430 | as_fn_executable_p () | |
27431 | { | |
27432 | test -f "$1" && test -x "$1" | |
27433 | } # as_fn_executable_p | |
27434 | as_test_x='test -x' | |
27435 | as_executable_p=as_fn_executable_p | |
4ee9c684 | 27436 | |
27437 | # Sed expression to map a string onto a valid CPP name. | |
27438 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27439 | ||
27440 | # Sed expression to map a string onto a valid variable name. | |
27441 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27442 | ||
27443 | ||
4ee9c684 | 27444 | exec 6>&1 |
cd9a469c | 27445 | ## ----------------------------------- ## |
27446 | ## Main body of $CONFIG_STATUS script. ## | |
27447 | ## ----------------------------------- ## | |
27448 | _ASEOF | |
27449 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
27450 | ||
27451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27452 | # Save the log message, to keep $0 and so on meaningful, and to | |
4ee9c684 | 27453 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 27454 | # values after options handling. |
27455 | ac_log=" | |
76c0a846 | 27456 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
f00f02a3 | 27457 | generated by GNU Autoconf 2.69. Invocation command line was |
4ee9c684 | 27458 | |
27459 | CONFIG_FILES = $CONFIG_FILES | |
27460 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27461 | CONFIG_LINKS = $CONFIG_LINKS | |
27462 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27463 | $ $0 $@ | |
27464 | ||
cd9a469c | 27465 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27466 | " | |
27467 | ||
4ee9c684 | 27468 | _ACEOF |
27469 | ||
cd9a469c | 27470 | case $ac_config_files in *" |
27471 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
27472 | esac | |
a106dabe | 27473 | |
cd9a469c | 27474 | case $ac_config_headers in *" |
27475 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27476 | esac | |
82eaf560 | 27477 | |
82eaf560 | 27478 | |
cd9a469c | 27479 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27480 | # Files that config.status was made for. | |
27481 | config_files="$ac_config_files" | |
27482 | config_headers="$ac_config_headers" | |
27483 | config_commands="$ac_config_commands" | |
4ee9c684 | 27484 | |
cd9a469c | 27485 | _ACEOF |
82eaf560 | 27486 | |
cd9a469c | 27487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 27488 | ac_cs_usage="\ |
cd9a469c | 27489 | \`$as_me' instantiates files and other configuration actions |
27490 | from templates according to the current configuration. Unless the files | |
27491 | and actions are specified as TAGs, all are instantiated by default. | |
4ee9c684 | 27492 | |
cd9a469c | 27493 | Usage: $0 [OPTION]... [TAG]... |
4ee9c684 | 27494 | |
27495 | -h, --help print this help, then exit | |
cd9a469c | 27496 | -V, --version print version number and configuration settings, then exit |
f00f02a3 | 27497 | --config print configuration, then exit |
cd9a469c | 27498 | -q, --quiet, --silent |
27499 | do not print progress messages | |
4ee9c684 | 27500 | -d, --debug don't remove temporary files |
27501 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 27502 | --file=FILE[:TEMPLATE] |
27503 | instantiate the configuration file FILE | |
27504 | --header=FILE[:TEMPLATE] | |
27505 | instantiate the configuration header FILE | |
4ee9c684 | 27506 | |
27507 | Configuration files: | |
27508 | $config_files | |
27509 | ||
27510 | Configuration headers: | |
27511 | $config_headers | |
27512 | ||
27513 | Configuration commands: | |
27514 | $config_commands | |
27515 | ||
cd9a469c | 27516 | Report bugs to the package provider. |
27517 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
27518 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
82eaf560 | 27519 | |
cd9a469c | 27520 | _ACEOF |
27521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 27522 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4ee9c684 | 27523 | ac_cs_version="\\ |
76c0a846 | 27524 | GNU Fortran Runtime Library config.status 0.3 |
f00f02a3 | 27525 | configured by $0, generated by GNU Autoconf 2.69, |
27526 | with options \\"\$ac_cs_config\\" | |
4ee9c684 | 27527 | |
f00f02a3 | 27528 | Copyright (C) 2012 Free Software Foundation, Inc. |
4ee9c684 | 27529 | This config.status script is free software; the Free Software Foundation |
27530 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 27531 | |
27532 | ac_pwd='$ac_pwd' | |
27533 | srcdir='$srcdir' | |
27534 | INSTALL='$INSTALL' | |
27535 | MKDIR_P='$MKDIR_P' | |
27536 | AWK='$AWK' | |
27537 | test -n "\$AWK" || AWK=awk | |
4ee9c684 | 27538 | _ACEOF |
27539 | ||
cd9a469c | 27540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27541 | # The default lists apply if the user does not specify any file. | |
4ee9c684 | 27542 | ac_need_defaults=: |
27543 | while test $# != 0 | |
27544 | do | |
27545 | case $1 in | |
f00f02a3 | 27546 | --*=?*) |
cd9a469c | 27547 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
27548 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4ee9c684 | 27549 | ac_shift=: |
27550 | ;; | |
f00f02a3 | 27551 | --*=) |
27552 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27553 | ac_optarg= | |
27554 | ac_shift=: | |
27555 | ;; | |
cd9a469c | 27556 | *) |
4ee9c684 | 27557 | ac_option=$1 |
27558 | ac_optarg=$2 | |
27559 | ac_shift=shift | |
27560 | ;; | |
4ee9c684 | 27561 | esac |
27562 | ||
27563 | case $ac_option in | |
27564 | # Handling of the options. | |
4ee9c684 | 27565 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27566 | ac_cs_recheck=: ;; | |
cd9a469c | 27567 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27568 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 27569 | --config | --confi | --conf | --con | --co | --c ) |
27570 | $as_echo "$ac_cs_config"; exit ;; | |
cd9a469c | 27571 | --debug | --debu | --deb | --de | --d | -d ) |
4ee9c684 | 27572 | debug=: ;; |
27573 | --file | --fil | --fi | --f ) | |
27574 | $ac_shift | |
cd9a469c | 27575 | case $ac_optarg in |
27576 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 27577 | '') as_fn_error $? "missing file argument" ;; |
cd9a469c | 27578 | esac |
27579 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4ee9c684 | 27580 | ac_need_defaults=false;; |
27581 | --header | --heade | --head | --hea ) | |
27582 | $ac_shift | |
cd9a469c | 27583 | case $ac_optarg in |
27584 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27585 | esac | |
27586 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4ee9c684 | 27587 | ac_need_defaults=false;; |
cd9a469c | 27588 | --he | --h) |
27589 | # Conflict between --help and --header | |
f00f02a3 | 27590 | as_fn_error $? "ambiguous option: \`$1' |
cd9a469c | 27591 | Try \`$0 --help' for more information.";; |
27592 | --help | --hel | -h ) | |
27593 | $as_echo "$ac_cs_usage"; exit ;; | |
4ee9c684 | 27594 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27595 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27596 | ac_cs_silent=: ;; | |
27597 | ||
27598 | # This is an error. | |
f00f02a3 | 27599 | -*) as_fn_error $? "unrecognized option: \`$1' |
cd9a469c | 27600 | Try \`$0 --help' for more information." ;; |
4ee9c684 | 27601 | |
cd9a469c | 27602 | *) as_fn_append ac_config_targets " $1" |
27603 | ac_need_defaults=false ;; | |
4ee9c684 | 27604 | |
27605 | esac | |
27606 | shift | |
27607 | done | |
27608 | ||
27609 | ac_configure_extra_args= | |
27610 | ||
27611 | if $ac_cs_silent; then | |
27612 | exec 6>/dev/null | |
27613 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27614 | fi | |
27615 | ||
27616 | _ACEOF | |
cd9a469c | 27617 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4ee9c684 | 27618 | if \$ac_cs_recheck; then |
f00f02a3 | 27619 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
cd9a469c | 27620 | shift |
27621 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27622 | CONFIG_SHELL='$SHELL' | |
27623 | export CONFIG_SHELL | |
27624 | exec "\$@" | |
4ee9c684 | 27625 | fi |
27626 | ||
542f9784 | 27627 | _ACEOF |
cd9a469c | 27628 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27629 | exec 5>>config.log | |
27630 | { | |
27631 | echo | |
27632 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27633 | ## Running $as_me. ## | |
27634 | _ASBOX | |
27635 | $as_echo "$ac_log" | |
27636 | } >&5 | |
542f9784 | 27637 | |
cd9a469c | 27638 | _ACEOF |
27639 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
542f9784 | 27640 | # |
cd9a469c | 27641 | # INIT-COMMANDS |
542f9784 | 27642 | # |
27643 | ||
542f9784 | 27644 | srcdir="$srcdir" |
27645 | host="$host" | |
27646 | target="$target" | |
27647 | with_multisubdir="$with_multisubdir" | |
27648 | with_multisrctop="$with_multisrctop" | |
27649 | with_target_subdir="$with_target_subdir" | |
27650 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
27651 | multi_basedir="$multi_basedir" | |
27652 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
27653 | CC="$CC" | |
eaae6999 | 27654 | CXX="$CXX" |
27655 | GFORTRAN="$GFORTRAN" | |
f00f02a3 | 27656 | GDC="$GDC" |
542f9784 | 27657 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
27658 | ||
27659 | ||
27660 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
27661 | # if CDPATH is set. | |
27662 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27663 | ||
27664 | sed_quote_subst='$sed_quote_subst' | |
27665 | double_quote_subst='$double_quote_subst' | |
27666 | delay_variable_subst='$delay_variable_subst' | |
18ce903b | 27667 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
27668 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
27669 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
27670 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
27671 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
27672 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
27673 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
27674 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27675 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
27676 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
27677 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
27678 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
27679 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
27680 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27681 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
27682 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
27683 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
27684 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
27685 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
27686 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27687 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
27688 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
27689 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
27690 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
27691 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
27692 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
27693 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
27694 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
27695 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
27696 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
27697 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
27698 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
27699 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
27700 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
27701 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
27702 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
27703 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
27704 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27705 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27706 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27707 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
27708 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
27709 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
27710 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
27711 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
27712 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
27713 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
27714 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
27715 | 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"`' | |
27716 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
27717 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
27718 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
27719 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
27720 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
27721 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
27722 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
27723 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
27724 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
27725 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
27726 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
27727 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
27728 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
27729 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
27730 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
27731 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27732 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
27733 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
27734 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27735 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27736 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
27737 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
27738 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27739 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27740 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27741 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
27742 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27743 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
27744 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27745 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27746 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27747 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
27748 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
27749 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
27750 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
27751 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
27752 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27753 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
27754 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
27755 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
27756 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
27757 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
27758 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
27759 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
27760 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
27761 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
27762 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
27763 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
27764 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
27765 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
27766 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
27767 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
27768 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27769 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
27770 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
27771 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
27772 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
27773 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
27774 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27775 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27776 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
27777 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
27778 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
27779 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
27780 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
27781 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
27782 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
27783 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
27784 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
27785 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
27786 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
27787 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
27788 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
27789 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
27790 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
27791 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
27792 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
27793 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
27794 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27795 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27796 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27797 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
27798 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
27799 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27800 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
27801 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
27802 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
27803 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
27804 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
27805 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
27806 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27807 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27808 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
27809 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27810 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27811 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27812 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27813 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27814 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27815 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27816 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27817 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27818 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27819 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27820 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
27821 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
27822 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
27823 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
27824 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
27825 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
27826 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
27827 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
27828 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
27829 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
27830 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27831 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27832 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27833 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27834 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27835 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
27836 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
27837 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27838 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27839 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
27840 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
27841 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
542f9784 | 27842 | |
27843 | LTCC='$LTCC' | |
27844 | LTCFLAGS='$LTCFLAGS' | |
27845 | compiler='$compiler_DEFAULT' | |
27846 | ||
e6408286 | 27847 | # A function that is used when there is no print builtin or printf. |
27848 | func_fallback_echo () | |
27849 | { | |
27850 | eval 'cat <<_LTECHO_EOF | |
27851 | \$1 | |
27852 | _LTECHO_EOF' | |
27853 | } | |
27854 | ||
542f9784 | 27855 | # Quote evaled strings. |
18ce903b | 27856 | for var in SED \ |
542f9784 | 27857 | GREP \ |
27858 | EGREP \ | |
27859 | FGREP \ | |
18ce903b | 27860 | SHELL \ |
27861 | ECHO \ | |
542f9784 | 27862 | LD \ |
27863 | NM \ | |
27864 | LN_S \ | |
27865 | lt_SP2NL \ | |
27866 | lt_NL2SP \ | |
27867 | reload_flag \ | |
00aafda4 | 27868 | OBJDUMP \ |
542f9784 | 27869 | deplibs_check_method \ |
27870 | file_magic_cmd \ | |
27871 | AR \ | |
27872 | AR_FLAGS \ | |
27873 | STRIP \ | |
27874 | RANLIB \ | |
27875 | CC \ | |
27876 | CFLAGS \ | |
27877 | compiler \ | |
27878 | lt_cv_sys_global_symbol_pipe \ | |
27879 | lt_cv_sys_global_symbol_to_cdecl \ | |
27880 | lt_cv_sys_global_symbol_to_c_name_address \ | |
00aafda4 | 27881 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 27882 | lt_prog_compiler_no_builtin_flag \ |
27883 | lt_prog_compiler_wl \ | |
27884 | lt_prog_compiler_pic \ | |
27885 | lt_prog_compiler_static \ | |
27886 | lt_cv_prog_compiler_c_o \ | |
27887 | need_locks \ | |
00aafda4 | 27888 | DSYMUTIL \ |
27889 | NMEDIT \ | |
27890 | LIPO \ | |
27891 | OTOOL \ | |
27892 | OTOOL64 \ | |
542f9784 | 27893 | shrext_cmds \ |
27894 | export_dynamic_flag_spec \ | |
27895 | whole_archive_flag_spec \ | |
27896 | compiler_needs_object \ | |
27897 | with_gnu_ld \ | |
27898 | allow_undefined_flag \ | |
27899 | no_undefined_flag \ | |
27900 | hardcode_libdir_flag_spec \ | |
27901 | hardcode_libdir_flag_spec_ld \ | |
27902 | hardcode_libdir_separator \ | |
27903 | fix_srcfile_path \ | |
27904 | exclude_expsyms \ | |
27905 | include_expsyms \ | |
27906 | file_list_spec \ | |
27907 | variables_saved_for_relink \ | |
27908 | libname_spec \ | |
27909 | library_names_spec \ | |
27910 | soname_spec \ | |
e6408286 | 27911 | install_override_mode \ |
542f9784 | 27912 | finish_eval \ |
27913 | old_striplib \ | |
27914 | striplib \ | |
00aafda4 | 27915 | compiler_lib_search_dirs \ |
542f9784 | 27916 | predep_objects \ |
27917 | postdep_objects \ | |
27918 | predeps \ | |
27919 | postdeps \ | |
27920 | compiler_lib_search_path \ | |
27921 | LD_FC \ | |
e6408286 | 27922 | reload_flag_FC \ |
542f9784 | 27923 | compiler_FC \ |
27924 | lt_prog_compiler_no_builtin_flag_FC \ | |
27925 | lt_prog_compiler_wl_FC \ | |
27926 | lt_prog_compiler_pic_FC \ | |
27927 | lt_prog_compiler_static_FC \ | |
27928 | lt_cv_prog_compiler_c_o_FC \ | |
27929 | export_dynamic_flag_spec_FC \ | |
27930 | whole_archive_flag_spec_FC \ | |
27931 | compiler_needs_object_FC \ | |
27932 | with_gnu_ld_FC \ | |
27933 | allow_undefined_flag_FC \ | |
27934 | no_undefined_flag_FC \ | |
27935 | hardcode_libdir_flag_spec_FC \ | |
27936 | hardcode_libdir_flag_spec_ld_FC \ | |
27937 | hardcode_libdir_separator_FC \ | |
27938 | fix_srcfile_path_FC \ | |
27939 | exclude_expsyms_FC \ | |
27940 | include_expsyms_FC \ | |
27941 | file_list_spec_FC \ | |
00aafda4 | 27942 | compiler_lib_search_dirs_FC \ |
542f9784 | 27943 | predep_objects_FC \ |
27944 | postdep_objects_FC \ | |
27945 | predeps_FC \ | |
27946 | postdeps_FC \ | |
27947 | compiler_lib_search_path_FC; do | |
e6408286 | 27948 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27949 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27950 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
542f9784 | 27951 | ;; |
27952 | *) | |
27953 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27954 | ;; | |
27955 | esac | |
27956 | done | |
27957 | ||
27958 | # Double-quote double-evaled strings. | |
27959 | for var in reload_cmds \ | |
27960 | old_postinstall_cmds \ | |
27961 | old_postuninstall_cmds \ | |
27962 | old_archive_cmds \ | |
27963 | extract_expsyms_cmds \ | |
27964 | old_archive_from_new_cmds \ | |
27965 | old_archive_from_expsyms_cmds \ | |
27966 | archive_cmds \ | |
27967 | archive_expsym_cmds \ | |
27968 | module_cmds \ | |
27969 | module_expsym_cmds \ | |
27970 | export_symbols_cmds \ | |
27971 | prelink_cmds \ | |
27972 | postinstall_cmds \ | |
27973 | postuninstall_cmds \ | |
27974 | finish_cmds \ | |
27975 | sys_lib_search_path_spec \ | |
27976 | sys_lib_dlsearch_path_spec \ | |
e6408286 | 27977 | reload_cmds_FC \ |
542f9784 | 27978 | old_archive_cmds_FC \ |
27979 | old_archive_from_new_cmds_FC \ | |
27980 | old_archive_from_expsyms_cmds_FC \ | |
27981 | archive_cmds_FC \ | |
27982 | archive_expsym_cmds_FC \ | |
27983 | module_cmds_FC \ | |
27984 | module_expsym_cmds_FC \ | |
27985 | export_symbols_cmds_FC \ | |
27986 | prelink_cmds_FC; do | |
e6408286 | 27987 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27988 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27989 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
542f9784 | 27990 | ;; |
27991 | *) | |
27992 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27993 | ;; | |
27994 | esac | |
27995 | done | |
27996 | ||
542f9784 | 27997 | ac_aux_dir='$ac_aux_dir' |
27998 | xsi_shell='$xsi_shell' | |
27999 | lt_shell_append='$lt_shell_append' | |
28000 | ||
28001 | # See if we are running on zsh, and set the options which allow our | |
28002 | # commands through without removal of \ escapes INIT. | |
28003 | if test -n "\${ZSH_VERSION+set}" ; then | |
28004 | setopt NO_GLOB_SUBST | |
28005 | fi | |
28006 | ||
28007 | ||
28008 | PACKAGE='$PACKAGE' | |
28009 | VERSION='$VERSION' | |
28010 | TIMESTAMP='$TIMESTAMP' | |
28011 | RM='$RM' | |
28012 | ofile='$ofile' | |
28013 | ||
28014 | ||
4ee9c684 | 28015 | |
4ee9c684 | 28016 | |
a106dabe | 28017 | |
4ee9c684 | 28018 | |
2069752c | 28019 | GCC="$GCC" |
28020 | CC="$CC" | |
28021 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
28022 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
28023 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
28024 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
28025 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
28026 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
28027 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
28028 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
28029 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
28030 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
28031 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
56c15991 | 28032 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
28033 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
2069752c | 28034 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
56c15991 | 28035 | |
28036 | ||
4ee9c684 | 28037 | _ACEOF |
28038 | ||
cd9a469c | 28039 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ff4425cf | 28040 | |
cd9a469c | 28041 | # Handling of arguments. |
4ee9c684 | 28042 | for ac_config_target in $ac_config_targets |
28043 | do | |
cd9a469c | 28044 | case $ac_config_target in |
28045 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
28046 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
28047 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
28048 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
28049 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
28050 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
87969c8c | 28051 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
cd9a469c | 28052 | |
f00f02a3 | 28053 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4ee9c684 | 28054 | esac |
28055 | done | |
28056 | ||
cd9a469c | 28057 | |
4ee9c684 | 28058 | # If the user did not use the arguments to specify the items to instantiate, |
28059 | # then the envvar interface is used. Set only those that are not. | |
28060 | # We use the long form for the default assignment because of an extremely | |
28061 | # bizarre bug on SunOS 4.1.3. | |
28062 | if $ac_need_defaults; then | |
28063 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
28064 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
28065 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
28066 | fi | |
28067 | ||
28068 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 28069 | # simply because there is no reason against having it here, and in addition, |
4ee9c684 | 28070 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 28071 | # Hook for its removal unless debugging. |
28072 | # Note that there is a small window in which the directory will not be cleaned: | |
28073 | # after its creation but before its name has been assigned to `$tmp'. | |
4ee9c684 | 28074 | $debug || |
28075 | { | |
f00f02a3 | 28076 | tmp= ac_tmp= |
cd9a469c | 28077 | trap 'exit_status=$? |
f00f02a3 | 28078 | : "${ac_tmp:=$tmp}" |
28079 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
cd9a469c | 28080 | ' 0 |
28081 | trap 'as_fn_exit 1' 1 2 13 15 | |
4ee9c684 | 28082 | } |
4ee9c684 | 28083 | # Create a (secure) tmp directory for tmp files. |
28084 | ||
28085 | { | |
cd9a469c | 28086 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f00f02a3 | 28087 | test -d "$tmp" |
4ee9c684 | 28088 | } || |
28089 | { | |
cd9a469c | 28090 | tmp=./conf$$-$RANDOM |
28091 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 28092 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
28093 | ac_tmp=$tmp | |
cd9a469c | 28094 | |
28095 | # Set up the scripts for CONFIG_FILES section. | |
28096 | # No need to generate them if there are no CONFIG_FILES. | |
28097 | # This happens for instance with `./config.status config.h'. | |
28098 | if test -n "$CONFIG_FILES"; then | |
28099 | ||
28100 | ||
28101 | ac_cr=`echo X | tr X '\015'` | |
28102 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
28103 | # But we know of no other shell where ac_cr would be empty at this | |
28104 | # point, so we can use a bashism as a fallback. | |
28105 | if test "x$ac_cr" = x; then | |
28106 | eval ac_cr=\$\'\\r\' | |
28107 | fi | |
28108 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
28109 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 28110 | ac_cs_awk_cr='\\r' |
cd9a469c | 28111 | else |
28112 | ac_cs_awk_cr=$ac_cr | |
28113 | fi | |
28114 | ||
f00f02a3 | 28115 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
cd9a469c | 28116 | _ACEOF |
28117 | ||
28118 | ||
4ee9c684 | 28119 | { |
cd9a469c | 28120 | echo "cat >conf$$subs.awk <<_ACEOF" && |
28121 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
28122 | echo "_ACEOF" | |
28123 | } >conf$$subs.sh || | |
f00f02a3 | 28124 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
28125 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
cd9a469c | 28126 | ac_delim='%!_!# ' |
28127 | for ac_last_try in false false false false false :; do | |
28128 | . ./conf$$subs.sh || | |
f00f02a3 | 28129 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 28130 | |
28131 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
28132 | if test $ac_delim_n = $ac_delim_num; then | |
28133 | break | |
28134 | elif $ac_last_try; then | |
f00f02a3 | 28135 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 28136 | else |
28137 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
28138 | fi | |
28139 | done | |
28140 | rm -f conf$$subs.sh | |
28141 | ||
28142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 28143 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
cd9a469c | 28144 | _ACEOF |
28145 | sed -n ' | |
28146 | h | |
28147 | s/^/S["/; s/!.*/"]=/ | |
28148 | p | |
28149 | g | |
28150 | s/^[^!]*!// | |
28151 | :repl | |
28152 | t repl | |
28153 | s/'"$ac_delim"'$// | |
28154 | t delim | |
28155 | :nl | |
28156 | h | |
f00f02a3 | 28157 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 28158 | t more1 |
28159 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
28160 | p | |
28161 | n | |
28162 | b repl | |
28163 | :more1 | |
28164 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28165 | p | |
28166 | g | |
28167 | s/.\{148\}// | |
28168 | t nl | |
28169 | :delim | |
28170 | h | |
f00f02a3 | 28171 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 28172 | t more2 |
28173 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
28174 | p | |
28175 | b | |
28176 | :more2 | |
28177 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28178 | p | |
28179 | g | |
28180 | s/.\{148\}// | |
28181 | t delim | |
28182 | ' <conf$$subs.awk | sed ' | |
28183 | /^[^""]/{ | |
28184 | N | |
28185 | s/\n// | |
28186 | } | |
28187 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
28188 | rm -f conf$$subs.awk | |
28189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28190 | _ACAWK | |
f00f02a3 | 28191 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
cd9a469c | 28192 | for (key in S) S_is_set[key] = 1 |
28193 | FS = "\a" | |
28194 | ||
28195 | } | |
28196 | { | |
28197 | line = $ 0 | |
28198 | nfields = split(line, field, "@") | |
28199 | substed = 0 | |
28200 | len = length(field[1]) | |
28201 | for (i = 2; i < nfields; i++) { | |
28202 | key = field[i] | |
28203 | keylen = length(key) | |
28204 | if (S_is_set[key]) { | |
28205 | value = S[key] | |
28206 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
28207 | len += length(value) + length(field[++i]) | |
28208 | substed = 1 | |
28209 | } else | |
28210 | len += 1 + keylen | |
28211 | } | |
28212 | ||
28213 | print line | |
4ee9c684 | 28214 | } |
28215 | ||
cd9a469c | 28216 | _ACAWK |
28217 | _ACEOF | |
28218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28219 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
28220 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
28221 | else | |
28222 | cat | |
f00f02a3 | 28223 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
28224 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
82eaf560 | 28225 | _ACEOF |
28226 | ||
f00f02a3 | 28227 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
28228 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
cd9a469c | 28229 | # trailing colons and then remove the whole line if VPATH becomes empty |
28230 | # (actually we leave an empty line to preserve line numbers). | |
28231 | if test "x$srcdir" = x.; then | |
f00f02a3 | 28232 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
28233 | h | |
28234 | s/// | |
28235 | s/^/:/ | |
28236 | s/[ ]*$/:/ | |
28237 | s/:\$(srcdir):/:/g | |
28238 | s/:\${srcdir}:/:/g | |
28239 | s/:@srcdir@:/:/g | |
28240 | s/^:*// | |
cd9a469c | 28241 | s/:*$// |
f00f02a3 | 28242 | x |
28243 | s/\(=[ ]*\).*/\1/ | |
28244 | G | |
28245 | s/\n// | |
cd9a469c | 28246 | s/^[^=]*=[ ]*$// |
28247 | }' | |
28248 | fi | |
82eaf560 | 28249 | |
cd9a469c | 28250 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28251 | fi # test -n "$CONFIG_FILES" | |
4ee9c684 | 28252 | |
cd9a469c | 28253 | # Set up the scripts for CONFIG_HEADERS section. |
28254 | # No need to generate them if there are no CONFIG_HEADERS. | |
28255 | # This happens for instance with `./config.status Makefile'. | |
28256 | if test -n "$CONFIG_HEADERS"; then | |
f00f02a3 | 28257 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
cd9a469c | 28258 | BEGIN { |
28259 | _ACEOF | |
28260 | ||
28261 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
28262 | # here-document in config.status, that substitutes the proper values into | |
28263 | # config.h.in to produce config.h. | |
28264 | ||
28265 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
28266 | # handling of long lines. | |
28267 | ac_delim='%!_!# ' | |
28268 | for ac_last_try in false false :; do | |
f00f02a3 | 28269 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
28270 | if test -z "$ac_tt"; then | |
cd9a469c | 28271 | break |
28272 | elif $ac_last_try; then | |
f00f02a3 | 28273 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
cd9a469c | 28274 | else |
28275 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ff4425cf | 28276 | fi |
cd9a469c | 28277 | done |
ce1a737c | 28278 | |
cd9a469c | 28279 | # For the awk script, D is an array of macro values keyed by name, |
28280 | # likewise P contains macro parameters if any. Preserve backslash | |
28281 | # newline sequences. | |
28282 | ||
28283 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
28284 | sed -n ' | |
28285 | s/.\{148\}/&'"$ac_delim"'/g | |
28286 | t rset | |
28287 | :rset | |
28288 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
28289 | t def | |
28290 | d | |
28291 | :def | |
28292 | s/\\$// | |
28293 | t bsnl | |
28294 | s/["\\]/\\&/g | |
28295 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28296 | D["\1"]=" \3"/p | |
28297 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
28298 | d | |
28299 | :bsnl | |
28300 | s/["\\]/\\&/g | |
28301 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28302 | D["\1"]=" \3\\\\\\n"\\/p | |
28303 | t cont | |
28304 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
28305 | t cont | |
28306 | d | |
28307 | :cont | |
28308 | n | |
28309 | s/.\{148\}/&'"$ac_delim"'/g | |
28310 | t clear | |
28311 | :clear | |
28312 | s/\\$// | |
28313 | t bsnlc | |
28314 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
28315 | d | |
28316 | :bsnlc | |
28317 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
28318 | b cont | |
28319 | ' <confdefs.h | sed ' | |
28320 | s/'"$ac_delim"'/"\\\ | |
28321 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
28322 | ||
28323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28324 | for (key in D) D_is_set[key] = 1 | |
28325 | FS = "\a" | |
28326 | } | |
28327 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
28328 | line = \$ 0 | |
28329 | split(line, arg, " ") | |
28330 | if (arg[1] == "#") { | |
28331 | defundef = arg[2] | |
28332 | mac1 = arg[3] | |
28333 | } else { | |
28334 | defundef = substr(arg[1], 2) | |
28335 | mac1 = arg[2] | |
28336 | } | |
28337 | split(mac1, mac2, "(") #) | |
28338 | macro = mac2[1] | |
28339 | prefix = substr(line, 1, index(line, defundef) - 1) | |
28340 | if (D_is_set[macro]) { | |
28341 | # Preserve the white space surrounding the "#". | |
28342 | print prefix "define", macro P[macro] D[macro] | |
28343 | next | |
28344 | } else { | |
28345 | # Replace #undef with comments. This is necessary, for example, | |
28346 | # in the case of _POSIX_SOURCE, which is predefined and required | |
28347 | # on some systems where configure will not decide to define it. | |
28348 | if (defundef == "undef") { | |
28349 | print "/*", prefix defundef, macro, "*/" | |
28350 | next | |
28351 | } | |
28352 | } | |
28353 | } | |
28354 | { print } | |
28355 | _ACAWK | |
4ee9c684 | 28356 | _ACEOF |
cd9a469c | 28357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f00f02a3 | 28358 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
cd9a469c | 28359 | fi # test -n "$CONFIG_HEADERS" |
28360 | ||
28361 | ||
28362 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
28363 | shift | |
28364 | for ac_tag | |
28365 | do | |
28366 | case $ac_tag in | |
28367 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
28368 | esac | |
28369 | case $ac_mode$ac_tag in | |
28370 | :[FHL]*:*);; | |
f00f02a3 | 28371 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cd9a469c | 28372 | :[FH]-) ac_tag=-:-;; |
28373 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
28374 | esac | |
28375 | ac_save_IFS=$IFS | |
28376 | IFS=: | |
28377 | set x $ac_tag | |
28378 | IFS=$ac_save_IFS | |
28379 | shift | |
28380 | ac_file=$1 | |
28381 | shift | |
28382 | ||
28383 | case $ac_mode in | |
28384 | :L) ac_source=$1;; | |
28385 | :[FH]) | |
28386 | ac_file_inputs= | |
28387 | for ac_f | |
28388 | do | |
28389 | case $ac_f in | |
f00f02a3 | 28390 | -) ac_f="$ac_tmp/stdin";; |
cd9a469c | 28391 | *) # Look for the file first in the build tree, then in the source tree |
28392 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
28393 | # because $ac_f cannot contain `:'. | |
28394 | test -f "$ac_f" || | |
28395 | case $ac_f in | |
28396 | [\\/$]*) false;; | |
28397 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
28398 | esac || | |
f00f02a3 | 28399 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cd9a469c | 28400 | esac |
28401 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
28402 | as_fn_append ac_file_inputs " '$ac_f'" | |
28403 | done | |
28404 | ||
28405 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28406 | # use $as_me), people would be surprised to read: | |
28407 | # /* config.h. Generated by config.status. */ | |
28408 | configure_input='Generated from '` | |
28409 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
28410 | `' by configure.' | |
28411 | if test x"$ac_file" != x-; then | |
28412 | configure_input="$ac_file. $configure_input" | |
28413 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
28414 | $as_echo "$as_me: creating $ac_file" >&6;} | |
28415 | fi | |
28416 | # Neutralize special characters interpreted by sed in replacement strings. | |
28417 | case $configure_input in #( | |
28418 | *\&* | *\|* | *\\* ) | |
28419 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
28420 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
28421 | *) ac_sed_conf_input=$configure_input;; | |
28422 | esac | |
28423 | ||
28424 | case $ac_tag in | |
f00f02a3 | 28425 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
28426 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
cd9a469c | 28427 | esac |
28428 | ;; | |
4ee9c684 | 28429 | esac |
28430 | ||
cd9a469c | 28431 | ac_dir=`$as_dirname -- "$ac_file" || |
4ee9c684 | 28432 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28433 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28434 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 28435 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
28436 | $as_echo X"$ac_file" | | |
28437 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28438 | s//\1/ | |
28439 | q | |
28440 | } | |
28441 | /^X\(\/\/\)[^/].*/{ | |
28442 | s//\1/ | |
28443 | q | |
28444 | } | |
28445 | /^X\(\/\/\)$/{ | |
28446 | s//\1/ | |
28447 | q | |
28448 | } | |
28449 | /^X\(\/\).*/{ | |
28450 | s//\1/ | |
28451 | q | |
28452 | } | |
28453 | s/.*/./; q'` | |
28454 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4ee9c684 | 28455 | ac_builddir=. |
28456 | ||
cd9a469c | 28457 | case "$ac_dir" in |
28458 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28459 | *) | |
28460 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28461 | # A ".." for each directory in $ac_dir_suffix. | |
28462 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28463 | case $ac_top_builddir_sub in | |
28464 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28465 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28466 | esac ;; | |
28467 | esac | |
28468 | ac_abs_top_builddir=$ac_pwd | |
28469 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28470 | # for backward compatibility: | |
28471 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 28472 | |
28473 | case $srcdir in | |
cd9a469c | 28474 | .) # We are building in place. |
4ee9c684 | 28475 | ac_srcdir=. |
cd9a469c | 28476 | ac_top_srcdir=$ac_top_builddir_sub |
28477 | ac_abs_top_srcdir=$ac_pwd ;; | |
28478 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 28479 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 28480 | ac_top_srcdir=$srcdir |
28481 | ac_abs_top_srcdir=$srcdir ;; | |
28482 | *) # Relative name. | |
28483 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28484 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28485 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4ee9c684 | 28486 | esac |
cd9a469c | 28487 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4ee9c684 | 28488 | |
4ee9c684 | 28489 | |
cd9a469c | 28490 | case $ac_mode in |
28491 | :F) | |
28492 | # | |
28493 | # CONFIG_FILE | |
28494 | # | |
4ee9c684 | 28495 | |
28496 | case $INSTALL in | |
28497 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 28498 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
28499 | esac | |
28500 | ac_MKDIR_P=$MKDIR_P | |
28501 | case $MKDIR_P in | |
28502 | [\\/$]* | ?:[\\/]* ) ;; | |
28503 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
4ee9c684 | 28504 | esac |
cd9a469c | 28505 | _ACEOF |
4ee9c684 | 28506 | |
cd9a469c | 28507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28508 | # If the template does not know about datarootdir, expand it. | |
28509 | # FIXME: This hack should be removed a few years after 2.60. | |
28510 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
28511 | ac_sed_dataroot=' | |
28512 | /datarootdir/ { | |
28513 | p | |
28514 | q | |
28515 | } | |
28516 | /@datadir@/p | |
28517 | /@docdir@/p | |
28518 | /@infodir@/p | |
28519 | /@localedir@/p | |
28520 | /@mandir@/p' | |
28521 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
28522 | *datarootdir*) ac_datarootdir_seen=yes;; | |
28523 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
28524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
28525 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
28526 | _ACEOF | |
28527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28528 | ac_datarootdir_hack=' | |
28529 | s&@datadir@&$datadir&g | |
28530 | s&@docdir@&$docdir&g | |
28531 | s&@infodir@&$infodir&g | |
28532 | s&@localedir@&$localedir&g | |
28533 | s&@mandir@&$mandir&g | |
28534 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
28535 | esac | |
a106dabe | 28536 | _ACEOF |
cd9a469c | 28537 | |
28538 | # Neutralize VPATH when `$srcdir' = `.'. | |
28539 | # Shell code in configure.ac might set extrasub. | |
28540 | # FIXME: do we really want to maintain this feature? | |
28541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28542 | ac_sed_extra="$ac_vpsub | |
4ee9c684 | 28543 | $extrasub |
28544 | _ACEOF | |
cd9a469c | 28545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 28546 | :t |
28547 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 28548 | s|@configure_input@|$ac_sed_conf_input|;t t |
28549 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28550 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28551 | s&@srcdir@&$ac_srcdir&;t t | |
28552 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28553 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
28554 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28555 | s&@builddir@&$ac_builddir&;t t | |
28556 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
28557 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28558 | s&@INSTALL@&$ac_INSTALL&;t t | |
28559 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28560 | $ac_datarootdir_hack | |
28561 | " | |
f00f02a3 | 28562 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
28563 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
cd9a469c | 28564 | |
28565 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 28566 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
28567 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
28568 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
cd9a469c | 28569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 28570 | which seems to be undefined. Please make sure it is defined" >&5 |
cd9a469c | 28571 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 28572 | which seems to be undefined. Please make sure it is defined" >&2;} |
cd9a469c | 28573 | |
f00f02a3 | 28574 | rm -f "$ac_tmp/stdin" |
4ee9c684 | 28575 | case $ac_file in |
f00f02a3 | 28576 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
28577 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
cd9a469c | 28578 | esac \ |
f00f02a3 | 28579 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
cd9a469c | 28580 | ;; |
28581 | :H) | |
28582 | # | |
28583 | # CONFIG_HEADER | |
28584 | # | |
4ee9c684 | 28585 | if test x"$ac_file" != x-; then |
cd9a469c | 28586 | { |
28587 | $as_echo "/* $configure_input */" \ | |
f00f02a3 | 28588 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
28589 | } >"$ac_tmp/config.h" \ | |
28590 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28591 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
cd9a469c | 28592 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
28593 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4ee9c684 | 28594 | else |
cd9a469c | 28595 | rm -f "$ac_file" |
f00f02a3 | 28596 | mv "$ac_tmp/config.h" "$ac_file" \ |
28597 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4ee9c684 | 28598 | fi |
28599 | else | |
cd9a469c | 28600 | $as_echo "/* $configure_input */" \ |
f00f02a3 | 28601 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
28602 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
4ee9c684 | 28603 | fi |
cd9a469c | 28604 | # Compute "$ac_file"'s index in $config_headers. |
28605 | _am_arg="$ac_file" | |
4ee9c684 | 28606 | _am_stamp_count=1 |
28607 | for _am_header in $config_headers :; do | |
28608 | case $_am_header in | |
cd9a469c | 28609 | $_am_arg | $_am_arg:* ) |
4ee9c684 | 28610 | break ;; |
28611 | * ) | |
28612 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28613 | esac | |
28614 | done | |
cd9a469c | 28615 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
28616 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28617 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28618 | X"$_am_arg" : 'X\(//\)$' \| \ | |
28619 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28620 | $as_echo X"$_am_arg" | | |
28621 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28622 | s//\1/ | |
28623 | q | |
28624 | } | |
28625 | /^X\(\/\/\)[^/].*/{ | |
28626 | s//\1/ | |
28627 | q | |
28628 | } | |
28629 | /^X\(\/\/\)$/{ | |
28630 | s//\1/ | |
28631 | q | |
28632 | } | |
28633 | /^X\(\/\).*/{ | |
28634 | s//\1/ | |
28635 | q | |
28636 | } | |
28637 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
28638 | ;; | |
82eaf560 | 28639 | |
cd9a469c | 28640 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28641 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
28642 | ;; | |
28643 | esac | |
4ee9c684 | 28644 | |
28645 | ||
cd9a469c | 28646 | case $ac_file$ac_mode in |
28647 | "default-1":C) | |
90973b19 | 28648 | # Only add multilib support code if we just rebuilt the top-level |
28649 | # Makefile. | |
28650 | case " $CONFIG_FILES " in | |
28651 | *" Makefile "*) | |
28652 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
28653 | ;; | |
28654 | esac ;; | |
cd9a469c | 28655 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
f00f02a3 | 28656 | # Older Autoconf quotes --file arguments for eval, but not when files |
cd9a469c | 28657 | # are listed without --file. Let's play safe and only enable the eval |
28658 | # if we detect the quoting. | |
28659 | case $CONFIG_FILES in | |
28660 | *\'*) eval set x "$CONFIG_FILES" ;; | |
28661 | *) set x $CONFIG_FILES ;; | |
28662 | esac | |
28663 | shift | |
28664 | for mf | |
28665 | do | |
28666 | # Strip MF so we end up with the name of the file. | |
28667 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28668 | # Check whether this is an Automake generated Makefile or not. | |
f00f02a3 | 28669 | # We used to match only the files named 'Makefile.in', but |
cd9a469c | 28670 | # some people rename them; so instead we look at the file content. |
28671 | # Grep'ing the first line is not enough: some people post-process | |
28672 | # each Makefile.in and add a new line on top of each file to say so. | |
28673 | # Grep'ing the whole file is not good either: AIX grep has a line | |
28674 | # limit of 2048, but all sed's we know have understand at least 4000. | |
28675 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
28676 | dirpart=`$as_dirname -- "$mf" || | |
2fd61f51 | 28677 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28678 | X"$mf" : 'X\(//\)[^/]' \| \ | |
28679 | X"$mf" : 'X\(//\)$' \| \ | |
cd9a469c | 28680 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
28681 | $as_echo X"$mf" | | |
28682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28683 | s//\1/ | |
28684 | q | |
28685 | } | |
28686 | /^X\(\/\/\)[^/].*/{ | |
28687 | s//\1/ | |
28688 | q | |
28689 | } | |
28690 | /^X\(\/\/\)$/{ | |
28691 | s//\1/ | |
28692 | q | |
28693 | } | |
28694 | /^X\(\/\).*/{ | |
28695 | s//\1/ | |
28696 | q | |
28697 | } | |
28698 | s/.*/./; q'` | |
28699 | else | |
28700 | continue | |
28701 | fi | |
28702 | # Extract the definition of DEPDIR, am__include, and am__quote | |
f00f02a3 | 28703 | # from the Makefile without running 'make'. |
cd9a469c | 28704 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
28705 | test -z "$DEPDIR" && continue | |
28706 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
f00f02a3 | 28707 | test -z "$am__include" && continue |
cd9a469c | 28708 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
cd9a469c | 28709 | # Find all dependency output files, they are included files with |
28710 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28711 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
28712 | # expansion. | |
28713 | for file in `sed -n " | |
28714 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
f00f02a3 | 28715 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
cd9a469c | 28716 | # Make sure the directory exists. |
28717 | test -f "$dirpart/$file" && continue | |
28718 | fdir=`$as_dirname -- "$file" || | |
2fd61f51 | 28719 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28720 | X"$file" : 'X\(//\)[^/]' \| \ | |
28721 | X"$file" : 'X\(//\)$' \| \ | |
cd9a469c | 28722 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
28723 | $as_echo X"$file" | | |
28724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28725 | s//\1/ | |
28726 | q | |
28727 | } | |
28728 | /^X\(\/\/\)[^/].*/{ | |
28729 | s//\1/ | |
28730 | q | |
28731 | } | |
28732 | /^X\(\/\/\)$/{ | |
28733 | s//\1/ | |
28734 | q | |
28735 | } | |
28736 | /^X\(\/\).*/{ | |
28737 | s//\1/ | |
28738 | q | |
28739 | } | |
28740 | s/.*/./; q'` | |
28741 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
28742 | # echo "creating $dirpart/$file" | |
28743 | echo '# dummy' > "$dirpart/$file" | |
2fd61f51 | 28744 | done |
2fd61f51 | 28745 | done |
cd9a469c | 28746 | } |
542f9784 | 28747 | ;; |
cd9a469c | 28748 | "libtool":C) |
542f9784 | 28749 | |
28750 | # See if we are running on zsh, and set the options which allow our | |
28751 | # commands through without removal of \ escapes. | |
28752 | if test -n "${ZSH_VERSION+set}" ; then | |
28753 | setopt NO_GLOB_SUBST | |
28754 | fi | |
28755 | ||
28756 | cfgfile="${ofile}T" | |
28757 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
28758 | $RM "$cfgfile" | |
28759 | ||
28760 | cat <<_LT_EOF >> "$cfgfile" | |
28761 | #! $SHELL | |
28762 | ||
28763 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
00aafda4 | 28764 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
542f9784 | 28765 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
28766 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
28767 | # | |
00aafda4 | 28768 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
e6408286 | 28769 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
00aafda4 | 28770 | # Written by Gordon Matzigkeit, 1996 |
542f9784 | 28771 | # |
00aafda4 | 28772 | # This file is part of GNU Libtool. |
542f9784 | 28773 | # |
00aafda4 | 28774 | # GNU Libtool is free software; you can redistribute it and/or |
28775 | # modify it under the terms of the GNU General Public License as | |
28776 | # published by the Free Software Foundation; either version 2 of | |
28777 | # the License, or (at your option) any later version. | |
542f9784 | 28778 | # |
00aafda4 | 28779 | # As a special exception to the GNU General Public License, |
28780 | # if you distribute this file as part of a program or library that | |
28781 | # is built using GNU Libtool, you may include this file under the | |
28782 | # same distribution terms that you use for the rest of that program. | |
542f9784 | 28783 | # |
00aafda4 | 28784 | # GNU Libtool is distributed in the hope that it will be useful, |
28785 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28786 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28787 | # GNU General Public License for more details. | |
542f9784 | 28788 | # |
00aafda4 | 28789 | # You should have received a copy of the GNU General Public License |
28790 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
28791 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
28792 | # obtained by writing to the Free Software Foundation, Inc., | |
28793 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
542f9784 | 28794 | |
28795 | ||
28796 | # The names of the tagged configurations supported by this script. | |
28797 | available_tags="FC " | |
28798 | ||
28799 | # ### BEGIN LIBTOOL CONFIG | |
28800 | ||
18ce903b | 28801 | # A sed program that does not truncate output. |
28802 | SED=$lt_SED | |
28803 | ||
28804 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
28805 | Xsed="\$SED -e 1s/^X//" | |
28806 | ||
28807 | # A grep program that handles long lines. | |
28808 | GREP=$lt_GREP | |
28809 | ||
28810 | # An ERE matcher. | |
28811 | EGREP=$lt_EGREP | |
28812 | ||
28813 | # A literal string matcher. | |
28814 | FGREP=$lt_FGREP | |
28815 | ||
28816 | # Shell to use when invoking shell scripts. | |
28817 | SHELL=$lt_SHELL | |
28818 | ||
28819 | # An echo program that protects backslashes. | |
28820 | ECHO=$lt_ECHO | |
28821 | ||
542f9784 | 28822 | # Which release of libtool.m4 was used? |
28823 | macro_version=$macro_version | |
28824 | macro_revision=$macro_revision | |
28825 | ||
28826 | # Whether or not to build shared libraries. | |
28827 | build_libtool_libs=$enable_shared | |
28828 | ||
28829 | # Whether or not to build static libraries. | |
28830 | build_old_libs=$enable_static | |
28831 | ||
28832 | # What type of objects to build. | |
28833 | pic_mode=$pic_mode | |
28834 | ||
28835 | # Whether or not to optimize for fast installation. | |
28836 | fast_install=$enable_fast_install | |
28837 | ||
28838 | # The host system. | |
28839 | host_alias=$host_alias | |
28840 | host=$host | |
28841 | host_os=$host_os | |
28842 | ||
28843 | # The build system. | |
28844 | build_alias=$build_alias | |
28845 | build=$build | |
28846 | build_os=$build_os | |
28847 | ||
542f9784 | 28848 | # A BSD- or MS-compatible name lister. |
28849 | NM=$lt_NM | |
28850 | ||
28851 | # Whether we need soft or hard links. | |
28852 | LN_S=$lt_LN_S | |
28853 | ||
28854 | # What is the maximum length of a command? | |
28855 | max_cmd_len=$max_cmd_len | |
28856 | ||
28857 | # Object file suffix (normally "o"). | |
28858 | objext=$ac_objext | |
28859 | ||
28860 | # Executable file suffix (normally ""). | |
28861 | exeext=$exeext | |
28862 | ||
28863 | # whether the shell understands "unset". | |
28864 | lt_unset=$lt_unset | |
28865 | ||
28866 | # turn spaces into newlines. | |
28867 | SP2NL=$lt_lt_SP2NL | |
28868 | ||
28869 | # turn newlines into spaces. | |
28870 | NL2SP=$lt_lt_NL2SP | |
28871 | ||
00aafda4 | 28872 | # An object symbol dumper. |
28873 | OBJDUMP=$lt_OBJDUMP | |
28874 | ||
542f9784 | 28875 | # Method to check whether dependent libraries are shared objects. |
28876 | deplibs_check_method=$lt_deplibs_check_method | |
28877 | ||
28878 | # Command to use when deplibs_check_method == "file_magic". | |
28879 | file_magic_cmd=$lt_file_magic_cmd | |
28880 | ||
28881 | # The archiver. | |
28882 | AR=$lt_AR | |
28883 | AR_FLAGS=$lt_AR_FLAGS | |
28884 | ||
28885 | # A symbol stripping program. | |
28886 | STRIP=$lt_STRIP | |
28887 | ||
28888 | # Commands used to install an old-style archive. | |
28889 | RANLIB=$lt_RANLIB | |
28890 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
28891 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
28892 | ||
e6408286 | 28893 | # Whether to use a lock for old archive extraction. |
28894 | lock_old_archive_extraction=$lock_old_archive_extraction | |
28895 | ||
542f9784 | 28896 | # A C compiler. |
28897 | LTCC=$lt_CC | |
28898 | ||
28899 | # LTCC compiler flags. | |
28900 | LTCFLAGS=$lt_CFLAGS | |
28901 | ||
28902 | # Take the output of nm and produce a listing of raw symbols and C names. | |
28903 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
28904 | ||
28905 | # Transform the output of nm in a proper C declaration. | |
28906 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
28907 | ||
28908 | # Transform the output of nm in a C name address pair. | |
28909 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
28910 | ||
00aafda4 | 28911 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
28912 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
28913 | ||
542f9784 | 28914 | # The name of the directory that contains temporary libtool files. |
28915 | objdir=$objdir | |
28916 | ||
542f9784 | 28917 | # Used to examine libraries when file_magic_cmd begins with "file". |
28918 | MAGIC_CMD=$MAGIC_CMD | |
28919 | ||
28920 | # Must we lock files when doing compilation? | |
28921 | need_locks=$lt_need_locks | |
28922 | ||
00aafda4 | 28923 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
28924 | DSYMUTIL=$lt_DSYMUTIL | |
28925 | ||
28926 | # Tool to change global to local symbols on Mac OS X. | |
28927 | NMEDIT=$lt_NMEDIT | |
28928 | ||
28929 | # Tool to manipulate fat objects and archives on Mac OS X. | |
28930 | LIPO=$lt_LIPO | |
28931 | ||
28932 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
28933 | OTOOL=$lt_OTOOL | |
28934 | ||
28935 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
28936 | OTOOL64=$lt_OTOOL64 | |
28937 | ||
542f9784 | 28938 | # Old archive suffix (normally "a"). |
28939 | libext=$libext | |
28940 | ||
28941 | # Shared library suffix (normally ".so"). | |
28942 | shrext_cmds=$lt_shrext_cmds | |
28943 | ||
28944 | # The commands to extract the exported symbol list from a shared archive. | |
28945 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
28946 | ||
28947 | # Variables whose values should be saved in libtool wrapper scripts and | |
28948 | # restored at link time. | |
28949 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
28950 | ||
28951 | # Do we need the "lib" prefix for modules? | |
28952 | need_lib_prefix=$need_lib_prefix | |
28953 | ||
28954 | # Do we need a version for libraries? | |
28955 | need_version=$need_version | |
28956 | ||
28957 | # Library versioning type. | |
28958 | version_type=$version_type | |
28959 | ||
28960 | # Shared library runtime path variable. | |
28961 | runpath_var=$runpath_var | |
28962 | ||
28963 | # Shared library path variable. | |
28964 | shlibpath_var=$shlibpath_var | |
28965 | ||
28966 | # Is shlibpath searched before the hard-coded library search path? | |
28967 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
28968 | ||
28969 | # Format of library name prefix. | |
28970 | libname_spec=$lt_libname_spec | |
28971 | ||
28972 | # List of archive names. First name is the real one, the rest are links. | |
28973 | # The last name is the one that the linker finds with -lNAME | |
28974 | library_names_spec=$lt_library_names_spec | |
28975 | ||
28976 | # The coded name of the library, if different from the real name. | |
28977 | soname_spec=$lt_soname_spec | |
28978 | ||
e6408286 | 28979 | # Permission mode override for installation of shared libraries. |
28980 | install_override_mode=$lt_install_override_mode | |
28981 | ||
542f9784 | 28982 | # Command to use after installation of a shared archive. |
28983 | postinstall_cmds=$lt_postinstall_cmds | |
28984 | ||
28985 | # Command to use after uninstallation of a shared archive. | |
28986 | postuninstall_cmds=$lt_postuninstall_cmds | |
28987 | ||
28988 | # Commands used to finish a libtool library installation in a directory. | |
28989 | finish_cmds=$lt_finish_cmds | |
28990 | ||
28991 | # As "finish_cmds", except a single script fragment to be evaled but | |
28992 | # not shown. | |
28993 | finish_eval=$lt_finish_eval | |
28994 | ||
28995 | # Whether we should hardcode library paths into libraries. | |
28996 | hardcode_into_libs=$hardcode_into_libs | |
28997 | ||
28998 | # Compile-time system search path for libraries. | |
28999 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
29000 | ||
29001 | # Run-time system search path for libraries. | |
29002 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
29003 | ||
29004 | # Whether dlopen is supported. | |
29005 | dlopen_support=$enable_dlopen | |
29006 | ||
29007 | # Whether dlopen of programs is supported. | |
29008 | dlopen_self=$enable_dlopen_self | |
29009 | ||
29010 | # Whether dlopen of statically linked programs is supported. | |
29011 | dlopen_self_static=$enable_dlopen_self_static | |
29012 | ||
29013 | # Commands to strip libraries. | |
29014 | old_striplib=$lt_old_striplib | |
29015 | striplib=$lt_striplib | |
29016 | ||
29017 | ||
29018 | # The linker used to build libraries. | |
29019 | LD=$lt_LD | |
29020 | ||
e6408286 | 29021 | # How to create reloadable object files. |
29022 | reload_flag=$lt_reload_flag | |
29023 | reload_cmds=$lt_reload_cmds | |
29024 | ||
542f9784 | 29025 | # Commands used to build an old-style archive. |
29026 | old_archive_cmds=$lt_old_archive_cmds | |
29027 | ||
29028 | # A language specific compiler. | |
29029 | CC=$lt_compiler | |
29030 | ||
29031 | # Is the compiler the GNU compiler? | |
29032 | with_gcc=$GCC | |
29033 | ||
29034 | # Compiler flag to turn off builtin functions. | |
29035 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
29036 | ||
29037 | # How to pass a linker flag through the compiler. | |
29038 | wl=$lt_lt_prog_compiler_wl | |
29039 | ||
29040 | # Additional compiler flags for building library objects. | |
29041 | pic_flag=$lt_lt_prog_compiler_pic | |
29042 | ||
29043 | # Compiler flag to prevent dynamic linking. | |
29044 | link_static_flag=$lt_lt_prog_compiler_static | |
29045 | ||
29046 | # Does compiler simultaneously support -c and -o options? | |
29047 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
29048 | ||
29049 | # Whether or not to add -lc for building shared libraries. | |
29050 | build_libtool_need_lc=$archive_cmds_need_lc | |
29051 | ||
29052 | # Whether or not to disallow shared libs when runtime libs are static. | |
29053 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
29054 | ||
29055 | # Compiler flag to allow reflexive dlopens. | |
29056 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
29057 | ||
29058 | # Compiler flag to generate shared objects directly from archives. | |
29059 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
29060 | ||
29061 | # Whether the compiler copes with passing no objects directly. | |
29062 | compiler_needs_object=$lt_compiler_needs_object | |
29063 | ||
29064 | # Create an old-style archive from a shared archive. | |
29065 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
29066 | ||
29067 | # Create a temporary old-style archive to link instead of a shared archive. | |
29068 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
29069 | ||
29070 | # Commands used to build a shared archive. | |
29071 | archive_cmds=$lt_archive_cmds | |
29072 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
29073 | ||
29074 | # Commands used to build a loadable module if different from building | |
29075 | # a shared archive. | |
29076 | module_cmds=$lt_module_cmds | |
29077 | module_expsym_cmds=$lt_module_expsym_cmds | |
29078 | ||
29079 | # Whether we are building with GNU ld or not. | |
29080 | with_gnu_ld=$lt_with_gnu_ld | |
29081 | ||
29082 | # Flag that allows shared libraries with undefined symbols to be built. | |
29083 | allow_undefined_flag=$lt_allow_undefined_flag | |
29084 | ||
29085 | # Flag that enforces no undefined symbols. | |
29086 | no_undefined_flag=$lt_no_undefined_flag | |
29087 | ||
29088 | # Flag to hardcode \$libdir into a binary during linking. | |
29089 | # This must work even if \$libdir does not exist | |
29090 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
29091 | ||
29092 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29093 | # during linking. This must work even if \$libdir does not exist. | |
29094 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
29095 | ||
29096 | # Whether we need a single "-rpath" flag with a separated argument. | |
29097 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
29098 | ||
29099 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29100 | # DIR into the resulting binary. | |
29101 | hardcode_direct=$hardcode_direct | |
29102 | ||
29103 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29104 | # DIR into the resulting binary and the resulting library dependency is | |
29105 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29106 | # library is relocated. | |
29107 | hardcode_direct_absolute=$hardcode_direct_absolute | |
29108 | ||
29109 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29110 | # into the resulting binary. | |
29111 | hardcode_minus_L=$hardcode_minus_L | |
29112 | ||
29113 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29114 | # into the resulting binary. | |
29115 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
29116 | ||
29117 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29118 | # into the library and all subsequent libraries and executables linked | |
29119 | # against it. | |
29120 | hardcode_automatic=$hardcode_automatic | |
29121 | ||
29122 | # Set to yes if linker adds runtime paths of dependent libraries | |
29123 | # to runtime path list. | |
29124 | inherit_rpath=$inherit_rpath | |
29125 | ||
29126 | # Whether libtool must link a program against all its dependency libraries. | |
29127 | link_all_deplibs=$link_all_deplibs | |
29128 | ||
29129 | # Fix the shell variable \$srcfile for the compiler. | |
29130 | fix_srcfile_path=$lt_fix_srcfile_path | |
29131 | ||
29132 | # Set to "yes" if exported symbols are required. | |
29133 | always_export_symbols=$always_export_symbols | |
29134 | ||
29135 | # The commands to list exported symbols. | |
29136 | export_symbols_cmds=$lt_export_symbols_cmds | |
29137 | ||
29138 | # Symbols that should not be listed in the preloaded symbols. | |
29139 | exclude_expsyms=$lt_exclude_expsyms | |
29140 | ||
29141 | # Symbols that must always be exported. | |
29142 | include_expsyms=$lt_include_expsyms | |
29143 | ||
29144 | # Commands necessary for linking programs (against libraries) with templates. | |
29145 | prelink_cmds=$lt_prelink_cmds | |
29146 | ||
29147 | # Specify filename containing input files. | |
29148 | file_list_spec=$lt_file_list_spec | |
29149 | ||
29150 | # How to hardcode a shared library path into an executable. | |
29151 | hardcode_action=$hardcode_action | |
29152 | ||
00aafda4 | 29153 | # The directories searched by this compiler when creating a shared library. |
29154 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
29155 | ||
542f9784 | 29156 | # Dependencies to place before and after the objects being linked to |
29157 | # create a shared library. | |
29158 | predep_objects=$lt_predep_objects | |
29159 | postdep_objects=$lt_postdep_objects | |
29160 | predeps=$lt_predeps | |
29161 | postdeps=$lt_postdeps | |
29162 | ||
29163 | # The library search path used internally by the compiler when linking | |
29164 | # a shared library. | |
29165 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
29166 | ||
29167 | # ### END LIBTOOL CONFIG | |
29168 | ||
29169 | _LT_EOF | |
29170 | ||
29171 | case $host_os in | |
29172 | aix3*) | |
29173 | cat <<\_LT_EOF >> "$cfgfile" | |
29174 | # AIX sometimes has problems with the GCC collect2 program. For some | |
29175 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
29176 | # vanish in a puff of smoke. | |
29177 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
29178 | COLLECT_NAMES= | |
29179 | export COLLECT_NAMES | |
29180 | fi | |
29181 | _LT_EOF | |
29182 | ;; | |
29183 | esac | |
29184 | ||
29185 | ||
29186 | ltmain="$ac_aux_dir/ltmain.sh" | |
29187 | ||
29188 | ||
29189 | # We use sed instead of cat because bash on DJGPP gets confused if | |
29190 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
29191 | # text mode, it properly converts lines to CR/LF. This bash problem | |
29192 | # is reportedly fixed, but why not run on old versions too? | |
29193 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
29194 | || (rm -f "$cfgfile"; exit 1) | |
29195 | ||
29196 | case $xsi_shell in | |
29197 | yes) | |
29198 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 29199 | |
542f9784 | 29200 | # func_dirname file append nondir_replacement |
29201 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29202 | # otherwise set result to NONDIR_REPLACEMENT. | |
29203 | func_dirname () | |
29204 | { | |
29205 | case ${1} in | |
29206 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29207 | * ) func_dirname_result="${3}" ;; | |
29208 | esac | |
29209 | } | |
29210 | ||
29211 | # func_basename file | |
29212 | func_basename () | |
29213 | { | |
29214 | func_basename_result="${1##*/}" | |
29215 | } | |
29216 | ||
00aafda4 | 29217 | # func_dirname_and_basename file append nondir_replacement |
29218 | # perform func_basename and func_dirname in a single function | |
29219 | # call: | |
29220 | # dirname: Compute the dirname of FILE. If nonempty, | |
29221 | # add APPEND to the result, otherwise set result | |
29222 | # to NONDIR_REPLACEMENT. | |
29223 | # value returned in "$func_dirname_result" | |
29224 | # basename: Compute filename of FILE. | |
29225 | # value retuned in "$func_basename_result" | |
29226 | # Implementation must be kept synchronized with func_dirname | |
29227 | # and func_basename. For efficiency, we do not delegate to | |
29228 | # those functions but instead duplicate the functionality here. | |
29229 | func_dirname_and_basename () | |
29230 | { | |
29231 | case ${1} in | |
29232 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29233 | * ) func_dirname_result="${3}" ;; | |
29234 | esac | |
29235 | func_basename_result="${1##*/}" | |
29236 | } | |
29237 | ||
542f9784 | 29238 | # func_stripname prefix suffix name |
29239 | # strip PREFIX and SUFFIX off of NAME. | |
29240 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29241 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29242 | # dot (in which case that matches only a dot). | |
29243 | func_stripname () | |
29244 | { | |
29245 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
29246 | # positional parameters, so assign one to ordinary parameter first. | |
29247 | func_stripname_result=${3} | |
29248 | func_stripname_result=${func_stripname_result#"${1}"} | |
29249 | func_stripname_result=${func_stripname_result%"${2}"} | |
29250 | } | |
29251 | ||
29252 | # func_opt_split | |
29253 | func_opt_split () | |
29254 | { | |
29255 | func_opt_split_opt=${1%%=*} | |
29256 | func_opt_split_arg=${1#*=} | |
29257 | } | |
29258 | ||
29259 | # func_lo2o object | |
29260 | func_lo2o () | |
29261 | { | |
29262 | case ${1} in | |
29263 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
29264 | *) func_lo2o_result=${1} ;; | |
29265 | esac | |
29266 | } | |
00aafda4 | 29267 | |
29268 | # func_xform libobj-or-source | |
29269 | func_xform () | |
29270 | { | |
29271 | func_xform_result=${1%.*}.lo | |
29272 | } | |
29273 | ||
29274 | # func_arith arithmetic-term... | |
29275 | func_arith () | |
29276 | { | |
29277 | func_arith_result=$(( $* )) | |
29278 | } | |
29279 | ||
29280 | # func_len string | |
29281 | # STRING may not start with a hyphen. | |
29282 | func_len () | |
29283 | { | |
29284 | func_len_result=${#1} | |
29285 | } | |
29286 | ||
542f9784 | 29287 | _LT_EOF |
29288 | ;; | |
29289 | *) # Bourne compatible functions. | |
29290 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 29291 | |
542f9784 | 29292 | # func_dirname file append nondir_replacement |
29293 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29294 | # otherwise set result to NONDIR_REPLACEMENT. | |
29295 | func_dirname () | |
29296 | { | |
29297 | # Extract subdirectory from the argument. | |
e6408286 | 29298 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
542f9784 | 29299 | if test "X$func_dirname_result" = "X${1}"; then |
29300 | func_dirname_result="${3}" | |
29301 | else | |
29302 | func_dirname_result="$func_dirname_result${2}" | |
29303 | fi | |
29304 | } | |
29305 | ||
29306 | # func_basename file | |
29307 | func_basename () | |
29308 | { | |
e6408286 | 29309 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
542f9784 | 29310 | } |
29311 | ||
00aafda4 | 29312 | |
542f9784 | 29313 | # func_stripname prefix suffix name |
29314 | # strip PREFIX and SUFFIX off of NAME. | |
29315 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29316 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29317 | # dot (in which case that matches only a dot). | |
29318 | # func_strip_suffix prefix name | |
29319 | func_stripname () | |
29320 | { | |
29321 | case ${2} in | |
e6408286 | 29322 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
29323 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
542f9784 | 29324 | esac |
29325 | } | |
29326 | ||
29327 | # sed scripts: | |
29328 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
29329 | my_sed_long_arg='1s/^-[^=]*=//' | |
29330 | ||
29331 | # func_opt_split | |
29332 | func_opt_split () | |
29333 | { | |
e6408286 | 29334 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
29335 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
542f9784 | 29336 | } |
29337 | ||
29338 | # func_lo2o object | |
29339 | func_lo2o () | |
29340 | { | |
e6408286 | 29341 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
542f9784 | 29342 | } |
00aafda4 | 29343 | |
29344 | # func_xform libobj-or-source | |
29345 | func_xform () | |
29346 | { | |
e6408286 | 29347 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
00aafda4 | 29348 | } |
29349 | ||
29350 | # func_arith arithmetic-term... | |
29351 | func_arith () | |
29352 | { | |
29353 | func_arith_result=`expr "$@"` | |
29354 | } | |
29355 | ||
29356 | # func_len string | |
29357 | # STRING may not start with a hyphen. | |
29358 | func_len () | |
29359 | { | |
29360 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
29361 | } | |
29362 | ||
542f9784 | 29363 | _LT_EOF |
29364 | esac | |
29365 | ||
29366 | case $lt_shell_append in | |
29367 | yes) | |
29368 | cat << \_LT_EOF >> "$cfgfile" | |
29369 | ||
29370 | # func_append var value | |
29371 | # Append VALUE to the end of shell variable VAR. | |
29372 | func_append () | |
29373 | { | |
29374 | eval "$1+=\$2" | |
29375 | } | |
29376 | _LT_EOF | |
29377 | ;; | |
29378 | *) | |
29379 | cat << \_LT_EOF >> "$cfgfile" | |
29380 | ||
29381 | # func_append var value | |
29382 | # Append VALUE to the end of shell variable VAR. | |
29383 | func_append () | |
29384 | { | |
29385 | eval "$1=\$$1\$2" | |
29386 | } | |
00aafda4 | 29387 | |
542f9784 | 29388 | _LT_EOF |
29389 | ;; | |
29390 | esac | |
29391 | ||
29392 | ||
29393 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
29394 | || (rm -f "$cfgfile"; exit 1) | |
29395 | ||
29396 | mv -f "$cfgfile" "$ofile" || | |
29397 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
29398 | chmod +x "$ofile" | |
29399 | ||
29400 | ||
29401 | cat <<_LT_EOF >> "$ofile" | |
29402 | ||
29403 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
29404 | ||
29405 | # The linker used to build libraries. | |
29406 | LD=$lt_LD_FC | |
29407 | ||
e6408286 | 29408 | # How to create reloadable object files. |
29409 | reload_flag=$lt_reload_flag_FC | |
29410 | reload_cmds=$lt_reload_cmds_FC | |
29411 | ||
542f9784 | 29412 | # Commands used to build an old-style archive. |
29413 | old_archive_cmds=$lt_old_archive_cmds_FC | |
29414 | ||
29415 | # A language specific compiler. | |
29416 | CC=$lt_compiler_FC | |
29417 | ||
29418 | # Is the compiler the GNU compiler? | |
29419 | with_gcc=$GCC_FC | |
29420 | ||
29421 | # Compiler flag to turn off builtin functions. | |
29422 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
29423 | ||
29424 | # How to pass a linker flag through the compiler. | |
29425 | wl=$lt_lt_prog_compiler_wl_FC | |
29426 | ||
29427 | # Additional compiler flags for building library objects. | |
29428 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
29429 | ||
29430 | # Compiler flag to prevent dynamic linking. | |
29431 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
29432 | ||
29433 | # Does compiler simultaneously support -c and -o options? | |
29434 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
29435 | ||
29436 | # Whether or not to add -lc for building shared libraries. | |
29437 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
29438 | ||
29439 | # Whether or not to disallow shared libs when runtime libs are static. | |
29440 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
29441 | ||
29442 | # Compiler flag to allow reflexive dlopens. | |
29443 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
29444 | ||
29445 | # Compiler flag to generate shared objects directly from archives. | |
29446 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
29447 | ||
29448 | # Whether the compiler copes with passing no objects directly. | |
29449 | compiler_needs_object=$lt_compiler_needs_object_FC | |
29450 | ||
29451 | # Create an old-style archive from a shared archive. | |
29452 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
29453 | ||
29454 | # Create a temporary old-style archive to link instead of a shared archive. | |
29455 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
29456 | ||
29457 | # Commands used to build a shared archive. | |
29458 | archive_cmds=$lt_archive_cmds_FC | |
29459 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
29460 | ||
29461 | # Commands used to build a loadable module if different from building | |
29462 | # a shared archive. | |
29463 | module_cmds=$lt_module_cmds_FC | |
29464 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
29465 | ||
29466 | # Whether we are building with GNU ld or not. | |
29467 | with_gnu_ld=$lt_with_gnu_ld_FC | |
29468 | ||
29469 | # Flag that allows shared libraries with undefined symbols to be built. | |
29470 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
29471 | ||
29472 | # Flag that enforces no undefined symbols. | |
29473 | no_undefined_flag=$lt_no_undefined_flag_FC | |
29474 | ||
29475 | # Flag to hardcode \$libdir into a binary during linking. | |
29476 | # This must work even if \$libdir does not exist | |
29477 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
29478 | ||
29479 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29480 | # during linking. This must work even if \$libdir does not exist. | |
29481 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
29482 | ||
29483 | # Whether we need a single "-rpath" flag with a separated argument. | |
29484 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
29485 | ||
29486 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29487 | # DIR into the resulting binary. | |
29488 | hardcode_direct=$hardcode_direct_FC | |
29489 | ||
29490 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29491 | # DIR into the resulting binary and the resulting library dependency is | |
29492 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29493 | # library is relocated. | |
29494 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29495 | ||
29496 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29497 | # into the resulting binary. | |
29498 | hardcode_minus_L=$hardcode_minus_L_FC | |
29499 | ||
29500 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29501 | # into the resulting binary. | |
29502 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
29503 | ||
29504 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29505 | # into the library and all subsequent libraries and executables linked | |
29506 | # against it. | |
29507 | hardcode_automatic=$hardcode_automatic_FC | |
29508 | ||
29509 | # Set to yes if linker adds runtime paths of dependent libraries | |
29510 | # to runtime path list. | |
29511 | inherit_rpath=$inherit_rpath_FC | |
29512 | ||
29513 | # Whether libtool must link a program against all its dependency libraries. | |
29514 | link_all_deplibs=$link_all_deplibs_FC | |
29515 | ||
29516 | # Fix the shell variable \$srcfile for the compiler. | |
29517 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
29518 | ||
29519 | # Set to "yes" if exported symbols are required. | |
29520 | always_export_symbols=$always_export_symbols_FC | |
29521 | ||
29522 | # The commands to list exported symbols. | |
29523 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
29524 | ||
29525 | # Symbols that should not be listed in the preloaded symbols. | |
29526 | exclude_expsyms=$lt_exclude_expsyms_FC | |
29527 | ||
29528 | # Symbols that must always be exported. | |
29529 | include_expsyms=$lt_include_expsyms_FC | |
29530 | ||
29531 | # Commands necessary for linking programs (against libraries) with templates. | |
29532 | prelink_cmds=$lt_prelink_cmds_FC | |
29533 | ||
29534 | # Specify filename containing input files. | |
29535 | file_list_spec=$lt_file_list_spec_FC | |
29536 | ||
29537 | # How to hardcode a shared library path into an executable. | |
29538 | hardcode_action=$hardcode_action_FC | |
29539 | ||
00aafda4 | 29540 | # The directories searched by this compiler when creating a shared library. |
29541 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
29542 | ||
542f9784 | 29543 | # Dependencies to place before and after the objects being linked to |
29544 | # create a shared library. | |
29545 | predep_objects=$lt_predep_objects_FC | |
29546 | postdep_objects=$lt_postdep_objects_FC | |
29547 | predeps=$lt_predeps_FC | |
29548 | postdeps=$lt_postdeps_FC | |
29549 | ||
29550 | # The library search path used internally by the compiler when linking | |
29551 | # a shared library. | |
29552 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
29553 | ||
29554 | # ### END LIBTOOL TAG CONFIG: FC | |
29555 | _LT_EOF | |
29556 | ||
2fd61f51 | 29557 | ;; |
cd9a469c | 29558 | "gstdint.h":C) |
2069752c | 29559 | if test "$GCC" = yes; then |
29560 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
29561 | else | |
29562 | echo "/* generated for $CC */" > tmp-stdint.h | |
29563 | fi | |
56c15991 | 29564 | |
2069752c | 29565 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29566 | ||
29567 | #ifndef GCC_GENERATED_STDINT_H | |
29568 | #define GCC_GENERATED_STDINT_H 1 | |
29569 | ||
29570 | #include <sys/types.h> | |
56c15991 | 29571 | EOF |
56c15991 | 29572 | |
2069752c | 29573 | if test "$acx_cv_header_stdint" != stdint.h; then |
29574 | echo "#include <stddef.h>" >> tmp-stdint.h | |
29575 | fi | |
29576 | if test "$acx_cv_header_stdint" != stddef.h; then | |
29577 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
29578 | fi | |
29579 | ||
29580 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29581 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
29582 | #ifdef __int8_t_defined | |
29583 | #define _INT8_T | |
29584 | #define _INT16_T | |
29585 | #define _INT32_T | |
29586 | #endif | |
29587 | #ifdef __uint32_t_defined | |
29588 | #define _UINT32_T | |
29589 | #endif | |
29590 | ||
29591 | EOF | |
29592 | ||
29593 | # ----------------- done header, emit basic int types ------------- | |
29594 | if test "$acx_cv_header_stdint" = stddef.h; then | |
29595 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29596 | ||
29597 | #ifndef _UINT8_T | |
29598 | #define _UINT8_T | |
29599 | #ifndef __uint8_t_defined | |
29600 | #define __uint8_t_defined | |
9ad2e3f3 | 29601 | #ifndef uint8_t |
2069752c | 29602 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
29603 | #endif | |
29604 | #endif | |
9ad2e3f3 | 29605 | #endif |
2069752c | 29606 | |
29607 | #ifndef _UINT16_T | |
29608 | #define _UINT16_T | |
29609 | #ifndef __uint16_t_defined | |
29610 | #define __uint16_t_defined | |
9ad2e3f3 | 29611 | #ifndef uint16_t |
2069752c | 29612 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
29613 | #endif | |
29614 | #endif | |
9ad2e3f3 | 29615 | #endif |
2069752c | 29616 | |
29617 | #ifndef _UINT32_T | |
29618 | #define _UINT32_T | |
29619 | #ifndef __uint32_t_defined | |
29620 | #define __uint32_t_defined | |
9ad2e3f3 | 29621 | #ifndef uint32_t |
2069752c | 29622 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
29623 | #endif | |
29624 | #endif | |
9ad2e3f3 | 29625 | #endif |
2069752c | 29626 | |
29627 | #ifndef _INT8_T | |
29628 | #define _INT8_T | |
29629 | #ifndef __int8_t_defined | |
29630 | #define __int8_t_defined | |
9ad2e3f3 | 29631 | #ifndef int8_t |
2069752c | 29632 | typedef $acx_cv_type_int8_t int8_t; |
29633 | #endif | |
29634 | #endif | |
9ad2e3f3 | 29635 | #endif |
2069752c | 29636 | |
29637 | #ifndef _INT16_T | |
29638 | #define _INT16_T | |
29639 | #ifndef __int16_t_defined | |
29640 | #define __int16_t_defined | |
9ad2e3f3 | 29641 | #ifndef int16_t |
2069752c | 29642 | typedef $acx_cv_type_int16_t int16_t; |
29643 | #endif | |
29644 | #endif | |
9ad2e3f3 | 29645 | #endif |
2069752c | 29646 | |
29647 | #ifndef _INT32_T | |
29648 | #define _INT32_T | |
29649 | #ifndef __int32_t_defined | |
29650 | #define __int32_t_defined | |
9ad2e3f3 | 29651 | #ifndef int32_t |
2069752c | 29652 | typedef $acx_cv_type_int32_t int32_t; |
29653 | #endif | |
29654 | #endif | |
9ad2e3f3 | 29655 | #endif |
2069752c | 29656 | EOF |
29657 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
29658 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29659 | ||
29660 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
29661 | #ifndef _INT8_T | |
29662 | #define _INT8_T | |
29663 | #endif | |
29664 | #ifndef _INT16_T | |
29665 | #define _INT16_T | |
29666 | #endif | |
29667 | #ifndef _INT32_T | |
29668 | #define _INT32_T | |
29669 | #endif | |
29670 | ||
29671 | #ifndef _UINT8_T | |
29672 | #define _UINT8_T | |
29673 | #ifndef __uint8_t_defined | |
29674 | #define __uint8_t_defined | |
9ad2e3f3 | 29675 | #ifndef uint8_t |
2069752c | 29676 | typedef u_int8_t uint8_t; |
29677 | #endif | |
29678 | #endif | |
9ad2e3f3 | 29679 | #endif |
2069752c | 29680 | |
29681 | #ifndef _UINT16_T | |
29682 | #define _UINT16_T | |
29683 | #ifndef __uint16_t_defined | |
29684 | #define __uint16_t_defined | |
9ad2e3f3 | 29685 | #ifndef uint16_t |
2069752c | 29686 | typedef u_int16_t uint16_t; |
29687 | #endif | |
29688 | #endif | |
9ad2e3f3 | 29689 | #endif |
2069752c | 29690 | |
29691 | #ifndef _UINT32_T | |
29692 | #define _UINT32_T | |
29693 | #ifndef __uint32_t_defined | |
29694 | #define __uint32_t_defined | |
9ad2e3f3 | 29695 | #ifndef uint32_t |
2069752c | 29696 | typedef u_int32_t uint32_t; |
29697 | #endif | |
29698 | #endif | |
9ad2e3f3 | 29699 | #endif |
2069752c | 29700 | EOF |
29701 | else | |
29702 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29703 | ||
29704 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
29705 | #ifndef _INT8_T | |
29706 | #define _INT8_T | |
29707 | #endif | |
29708 | #ifndef _INT16_T | |
29709 | #define _INT16_T | |
29710 | #endif | |
29711 | #ifndef _INT32_T | |
29712 | #define _INT32_T | |
29713 | #endif | |
29714 | #ifndef _UINT8_T | |
29715 | #define _UINT8_T | |
29716 | #endif | |
29717 | #ifndef _UINT16_T | |
29718 | #define _UINT16_T | |
29719 | #endif | |
29720 | #ifndef _UINT32_T | |
29721 | #define _UINT32_T | |
29722 | #endif | |
29723 | EOF | |
29724 | fi | |
29725 | ||
29726 | # ------------- done basic int types, emit int64_t types ------------ | |
29727 | if test "$ac_cv_type_uint64_t" = yes; then | |
29728 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29729 | ||
29730 | /* system headers have good uint64_t and int64_t */ | |
29731 | #ifndef _INT64_T | |
29732 | #define _INT64_T | |
29733 | #endif | |
29734 | #ifndef _UINT64_T | |
29735 | #define _UINT64_T | |
29736 | #endif | |
29737 | EOF | |
29738 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
29739 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29740 | ||
29741 | /* system headers have an u_int64_t (and int64_t) */ | |
29742 | #ifndef _INT64_T | |
29743 | #define _INT64_T | |
29744 | #endif | |
29745 | #ifndef _UINT64_T | |
29746 | #define _UINT64_T | |
29747 | #ifndef __uint64_t_defined | |
29748 | #define __uint64_t_defined | |
9ad2e3f3 | 29749 | #ifndef uint64_t |
2069752c | 29750 | typedef u_int64_t uint64_t; |
29751 | #endif | |
29752 | #endif | |
9ad2e3f3 | 29753 | #endif |
2069752c | 29754 | EOF |
29755 | elif test -n "$acx_cv_type_int64_t"; then | |
29756 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29757 | ||
29758 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
29759 | #ifndef _INT64_T | |
29760 | #define _INT64_T | |
9ad2e3f3 | 29761 | #ifndef int64_t |
2069752c | 29762 | typedef $acx_cv_type_int64_t int64_t; |
29763 | #endif | |
9ad2e3f3 | 29764 | #endif |
2069752c | 29765 | #ifndef _UINT64_T |
29766 | #define _UINT64_T | |
29767 | #ifndef __uint64_t_defined | |
29768 | #define __uint64_t_defined | |
9ad2e3f3 | 29769 | #ifndef uint64_t |
2069752c | 29770 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
29771 | #endif | |
29772 | #endif | |
9ad2e3f3 | 29773 | #endif |
2069752c | 29774 | EOF |
29775 | else | |
29776 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29777 | ||
29778 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
29779 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
29780 | #ifndef _INT64_T | |
29781 | #define _INT64_T | |
29782 | #ifndef __int64_t_defined | |
9ad2e3f3 | 29783 | #ifndef int64_t |
2069752c | 29784 | typedef long long int64_t; |
29785 | #endif | |
29786 | #endif | |
9ad2e3f3 | 29787 | #endif |
2069752c | 29788 | #ifndef _UINT64_T |
29789 | #define _UINT64_T | |
9ad2e3f3 | 29790 | #ifndef uint64_t |
2069752c | 29791 | typedef unsigned long long uint64_t; |
29792 | #endif | |
9ad2e3f3 | 29793 | #endif |
2069752c | 29794 | |
29795 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
29796 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
29797 | does not implement __extension__. But that compiler doesn't define | |
29798 | __GNUC_MINOR__. */ | |
29799 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
29800 | # define __extension__ | |
29801 | # endif | |
29802 | ||
29803 | # ifndef _INT64_T | |
29804 | # define _INT64_T | |
9ad2e3f3 | 29805 | # ifndef int64_t |
2069752c | 29806 | __extension__ typedef long long int64_t; |
29807 | # endif | |
9ad2e3f3 | 29808 | # endif |
2069752c | 29809 | # ifndef _UINT64_T |
29810 | # define _UINT64_T | |
9ad2e3f3 | 29811 | # ifndef uint64_t |
2069752c | 29812 | __extension__ typedef unsigned long long uint64_t; |
29813 | # endif | |
9ad2e3f3 | 29814 | # endif |
2069752c | 29815 | |
29816 | #elif !defined __STRICT_ANSI__ | |
29817 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
29818 | ||
29819 | # ifndef _INT64_T | |
29820 | # define _INT64_T | |
9ad2e3f3 | 29821 | # ifndef int64_t |
2069752c | 29822 | typedef __int64 int64_t; |
29823 | # endif | |
9ad2e3f3 | 29824 | # endif |
2069752c | 29825 | # ifndef _UINT64_T |
29826 | # define _UINT64_T | |
9ad2e3f3 | 29827 | # ifndef uint64_t |
2069752c | 29828 | typedef unsigned __int64 uint64_t; |
29829 | # endif | |
9ad2e3f3 | 29830 | # endif |
2069752c | 29831 | # endif /* compiler */ |
29832 | ||
29833 | #endif /* ANSI version */ | |
29834 | EOF | |
29835 | fi | |
29836 | ||
29837 | # ------------- done int64_t types, emit intptr types ------------ | |
29838 | if test "$ac_cv_type_uintptr_t" != yes; then | |
29839 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29840 | ||
29841 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
29842 | #ifndef __uintptr_t_defined | |
9ad2e3f3 | 29843 | #ifndef uintptr_t |
2069752c | 29844 | typedef u$acx_cv_type_intptr_t uintptr_t; |
29845 | #endif | |
9ad2e3f3 | 29846 | #endif |
2069752c | 29847 | #ifndef __intptr_t_defined |
9ad2e3f3 | 29848 | #ifndef intptr_t |
2069752c | 29849 | typedef $acx_cv_type_intptr_t intptr_t; |
29850 | #endif | |
9ad2e3f3 | 29851 | #endif |
2069752c | 29852 | EOF |
29853 | fi | |
29854 | ||
29855 | # ------------- done intptr types, emit int_least types ------------ | |
56c15991 | 29856 | if test "$ac_cv_type_int_least32_t" != yes; then |
2069752c | 29857 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29858 | |
29859 | /* Define int_least types */ | |
29860 | typedef int8_t int_least8_t; | |
29861 | typedef int16_t int_least16_t; | |
29862 | typedef int32_t int_least32_t; | |
2069752c | 29863 | #ifdef _INT64_T |
56c15991 | 29864 | typedef int64_t int_least64_t; |
2069752c | 29865 | #endif |
56c15991 | 29866 | |
29867 | typedef uint8_t uint_least8_t; | |
29868 | typedef uint16_t uint_least16_t; | |
29869 | typedef uint32_t uint_least32_t; | |
2069752c | 29870 | #ifdef _UINT64_T |
56c15991 | 29871 | typedef uint64_t uint_least64_t; |
2069752c | 29872 | #endif |
56c15991 | 29873 | EOF |
29874 | fi | |
29875 | ||
2069752c | 29876 | # ------------- done intptr types, emit int_fast types ------------ |
56c15991 | 29877 | if test "$ac_cv_type_int_fast32_t" != yes; then |
2069752c | 29878 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29879 | |
29880 | /* Define int_fast types. short is often slow */ | |
29881 | typedef int8_t int_fast8_t; | |
29882 | typedef int int_fast16_t; | |
29883 | typedef int32_t int_fast32_t; | |
2069752c | 29884 | #ifdef _INT64_T |
56c15991 | 29885 | typedef int64_t int_fast64_t; |
2069752c | 29886 | #endif |
56c15991 | 29887 | |
29888 | typedef uint8_t uint_fast8_t; | |
29889 | typedef unsigned int uint_fast16_t; | |
29890 | typedef uint32_t uint_fast32_t; | |
2069752c | 29891 | #ifdef _UINT64_T |
56c15991 | 29892 | typedef uint64_t uint_fast64_t; |
2069752c | 29893 | #endif |
29894 | EOF | |
29895 | fi | |
29896 | ||
29897 | if test "$ac_cv_type_uintmax_t" != yes; then | |
29898 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29899 | ||
29900 | /* Define intmax based on what we found */ | |
9ad2e3f3 | 29901 | #ifndef intmax_t |
2069752c | 29902 | #ifdef _INT64_T |
29903 | typedef int64_t intmax_t; | |
29904 | #else | |
29905 | typedef long intmax_t; | |
29906 | #endif | |
9ad2e3f3 | 29907 | #endif |
29908 | #ifndef uintmax_t | |
2069752c | 29909 | #ifdef _UINT64_T |
29910 | typedef uint64_t uintmax_t; | |
29911 | #else | |
29912 | typedef unsigned long uintmax_t; | |
29913 | #endif | |
9ad2e3f3 | 29914 | #endif |
56c15991 | 29915 | EOF |
29916 | fi | |
29917 | ||
2069752c | 29918 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29919 | ||
29920 | #endif /* GCC_GENERATED_STDINT_H */ | |
29921 | EOF | |
56c15991 | 29922 | |
2069752c | 29923 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
29924 | rm -f tmp-stdint.h | |
56c15991 | 29925 | else |
2069752c | 29926 | mv -f tmp-stdint.h gstdint.h |
56c15991 | 29927 | fi |
29928 | ||
29929 | ;; | |
cd9a469c | 29930 | |
4ee9c684 | 29931 | esac |
cd9a469c | 29932 | done # for ac_tag |
4ee9c684 | 29933 | |
4ee9c684 | 29934 | |
cd9a469c | 29935 | as_fn_exit 0 |
4ee9c684 | 29936 | _ACEOF |
4ee9c684 | 29937 | ac_clean_files=$ac_clean_files_save |
29938 | ||
cd9a469c | 29939 | test $ac_write_fail = 0 || |
f00f02a3 | 29940 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 29941 | |
4ee9c684 | 29942 | |
29943 | # configure is writing to config.log, and then calls config.status. | |
29944 | # config.status does its own redirection, appending to config.log. | |
29945 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
29946 | # by configure, so config.status won't be able to write to it; its | |
29947 | # output is simply discarded. So we exec the FD to /dev/null, | |
29948 | # effectively closing config.log, so it can be properly (re)opened and | |
29949 | # appended to by config.status. When coming back to configure, we | |
29950 | # need to make the FD available again. | |
29951 | if test "$no_create" != yes; then | |
29952 | ac_cs_success=: | |
29953 | ac_config_status_args= | |
29954 | test "$silent" = yes && | |
29955 | ac_config_status_args="$ac_config_status_args --quiet" | |
29956 | exec 5>/dev/null | |
29957 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
29958 | exec 5>>config.log | |
29959 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
29960 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 29961 | $ac_cs_success || as_fn_exit 1 |
cd9a469c | 29962 | fi |
29963 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
29964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
29965 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4ee9c684 | 29966 | fi |
29967 |