1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
6 | # |
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | # |
---|
11 | # |
---|
12 | # Copyright 2006 International Business Machines and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package Coin which is distributed |
---|
15 | # under the Common Public License. |
---|
16 | ## --------------------- ## |
---|
17 | ## M4sh Initialization. ## |
---|
18 | ## --------------------- ## |
---|
19 | |
---|
20 | # Be Bourne compatible |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
28 | set -o posix |
---|
29 | fi |
---|
30 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
31 | |
---|
32 | # Support unset when possible. |
---|
33 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
34 | as_unset=unset |
---|
35 | else |
---|
36 | as_unset=false |
---|
37 | fi |
---|
38 | |
---|
39 | |
---|
40 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
41 | $as_unset ENV MAIL MAILPATH |
---|
42 | PS1='$ ' |
---|
43 | PS2='> ' |
---|
44 | PS4='+ ' |
---|
45 | |
---|
46 | # NLS nuisances. |
---|
47 | for as_var in \ |
---|
48 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
49 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
50 | LC_TELEPHONE LC_TIME |
---|
51 | do |
---|
52 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
53 | eval $as_var=C; export $as_var |
---|
54 | else |
---|
55 | $as_unset $as_var |
---|
56 | fi |
---|
57 | done |
---|
58 | |
---|
59 | # Required to use basename. |
---|
60 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
61 | as_expr=expr |
---|
62 | else |
---|
63 | as_expr=false |
---|
64 | fi |
---|
65 | |
---|
66 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
67 | as_basename=basename |
---|
68 | else |
---|
69 | as_basename=false |
---|
70 | fi |
---|
71 | |
---|
72 | |
---|
73 | # Name of the executable. |
---|
74 | as_me=`$as_basename "$0" || |
---|
75 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
76 | X"$0" : 'X\(//\)$' \| \ |
---|
77 | X"$0" : 'X\(/\)$' \| \ |
---|
78 | . : '\(.\)' 2>/dev/null || |
---|
79 | echo X/"$0" | |
---|
80 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
81 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
82 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
83 | s/.*/./; q'` |
---|
84 | |
---|
85 | |
---|
86 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
87 | # Avoid depending upon Character Ranges. |
---|
88 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
89 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
90 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
91 | as_cr_digits='0123456789' |
---|
92 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
93 | |
---|
94 | # The user is always right. |
---|
95 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
96 | echo "#! /bin/sh" >conf$$.sh |
---|
97 | echo "exit 0" >>conf$$.sh |
---|
98 | chmod +x conf$$.sh |
---|
99 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
100 | PATH_SEPARATOR=';' |
---|
101 | else |
---|
102 | PATH_SEPARATOR=: |
---|
103 | fi |
---|
104 | rm -f conf$$.sh |
---|
105 | fi |
---|
106 | |
---|
107 | |
---|
108 | as_lineno_1=$LINENO |
---|
109 | as_lineno_2=$LINENO |
---|
110 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
111 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
112 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
113 | # Find who we are. Look in the path if we contain no path at all |
---|
114 | # relative or not. |
---|
115 | case $0 in |
---|
116 | *[\\/]* ) as_myself=$0 ;; |
---|
117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
118 | for as_dir in $PATH |
---|
119 | do |
---|
120 | IFS=$as_save_IFS |
---|
121 | test -z "$as_dir" && as_dir=. |
---|
122 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
123 | done |
---|
124 | |
---|
125 | ;; |
---|
126 | esac |
---|
127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
128 | # in which case we are not to be found in the path. |
---|
129 | if test "x$as_myself" = x; then |
---|
130 | as_myself=$0 |
---|
131 | fi |
---|
132 | if test ! -f "$as_myself"; then |
---|
133 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
134 | { (exit 1); exit 1; }; } |
---|
135 | fi |
---|
136 | case $CONFIG_SHELL in |
---|
137 | '') |
---|
138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
140 | do |
---|
141 | IFS=$as_save_IFS |
---|
142 | test -z "$as_dir" && as_dir=. |
---|
143 | for as_base in sh bash ksh sh5; do |
---|
144 | case $as_dir in |
---|
145 | /*) |
---|
146 | if ("$as_dir/$as_base" -c ' |
---|
147 | as_lineno_1=$LINENO |
---|
148 | as_lineno_2=$LINENO |
---|
149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
152 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
153 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
154 | CONFIG_SHELL=$as_dir/$as_base |
---|
155 | export CONFIG_SHELL |
---|
156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
157 | fi;; |
---|
158 | esac |
---|
159 | done |
---|
160 | done |
---|
161 | ;; |
---|
162 | esac |
---|
163 | |
---|
164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
165 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
166 | # line-number line before each line; the second 'sed' does the real |
---|
167 | # work. The second script uses 'N' to pair each line-number line |
---|
168 | # with the numbered line, and appends trailing '-' during |
---|
169 | # substitution so that $LINENO is not a special case at line end. |
---|
170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
172 | sed '=' <$as_myself | |
---|
173 | sed ' |
---|
174 | N |
---|
175 | s,$,-, |
---|
176 | : loop |
---|
177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
178 | t loop |
---|
179 | s,-$,, |
---|
180 | s,^['$as_cr_digits']*\n,, |
---|
181 | ' >$as_me.lineno && |
---|
182 | chmod +x $as_me.lineno || |
---|
183 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
184 | { (exit 1); exit 1; }; } |
---|
185 | |
---|
186 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
187 | # (the dirname of $[0] is not the place where we might find the |
---|
188 | # original and so on. Autoconf is especially sensible to this). |
---|
189 | . ./$as_me.lineno |
---|
190 | # Exit status is that of the last command. |
---|
191 | exit |
---|
192 | } |
---|
193 | |
---|
194 | |
---|
195 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
196 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
197 | ' ECHO_T=' ' ;; |
---|
198 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
199 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
200 | esac |
---|
201 | |
---|
202 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
203 | as_expr=expr |
---|
204 | else |
---|
205 | as_expr=false |
---|
206 | fi |
---|
207 | |
---|
208 | rm -f conf$$ conf$$.exe conf$$.file |
---|
209 | echo >conf$$.file |
---|
210 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
211 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
212 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
213 | if test -f conf$$.exe; then |
---|
214 | # Don't use ln at all; we don't have any links |
---|
215 | as_ln_s='cp -p' |
---|
216 | else |
---|
217 | as_ln_s='ln -s' |
---|
218 | fi |
---|
219 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
220 | as_ln_s=ln |
---|
221 | else |
---|
222 | as_ln_s='cp -p' |
---|
223 | fi |
---|
224 | rm -f conf$$ conf$$.exe conf$$.file |
---|
225 | |
---|
226 | if mkdir -p . 2>/dev/null; then |
---|
227 | as_mkdir_p=: |
---|
228 | else |
---|
229 | test -d ./-p && rmdir ./-p |
---|
230 | as_mkdir_p=false |
---|
231 | fi |
---|
232 | |
---|
233 | as_executable_p="test -f" |
---|
234 | |
---|
235 | # Sed expression to map a string onto a valid CPP name. |
---|
236 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
237 | |
---|
238 | # Sed expression to map a string onto a valid variable name. |
---|
239 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
240 | |
---|
241 | |
---|
242 | # IFS |
---|
243 | # We need space, tab and new line, in precisely that order. |
---|
244 | as_nl=' |
---|
245 | ' |
---|
246 | IFS=" $as_nl" |
---|
247 | |
---|
248 | # CDPATH. |
---|
249 | $as_unset CDPATH |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | # Check that we are running under the correct shell. |
---|
254 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
255 | |
---|
256 | case X$ECHO in |
---|
257 | X*--fallback-echo) |
---|
258 | # Remove one level of quotation (which was required for Make). |
---|
259 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
260 | ;; |
---|
261 | esac |
---|
262 | |
---|
263 | echo=${ECHO-echo} |
---|
264 | if test "X$1" = X--no-reexec; then |
---|
265 | # Discard the --no-reexec flag, and continue. |
---|
266 | shift |
---|
267 | elif test "X$1" = X--fallback-echo; then |
---|
268 | # Avoid inline document here, it may be left over |
---|
269 | : |
---|
270 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
271 | # Yippee, $echo works! |
---|
272 | : |
---|
273 | else |
---|
274 | # Restart under the correct shell. |
---|
275 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
276 | fi |
---|
277 | |
---|
278 | if test "X$1" = X--fallback-echo; then |
---|
279 | # used as fallback echo |
---|
280 | shift |
---|
281 | cat <<EOF |
---|
282 | $* |
---|
283 | EOF |
---|
284 | exit 0 |
---|
285 | fi |
---|
286 | |
---|
287 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
288 | # if CDPATH is set. |
---|
289 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
290 | |
---|
291 | if test -z "$ECHO"; then |
---|
292 | if test "X${echo_test_string+set}" != Xset; then |
---|
293 | # find a string as large as possible, as long as the shell can cope with it |
---|
294 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
295 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
296 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
297 | echo_test_string=`eval $cmd` && |
---|
298 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
299 | then |
---|
300 | break |
---|
301 | fi |
---|
302 | done |
---|
303 | fi |
---|
304 | |
---|
305 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
306 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
307 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
308 | : |
---|
309 | else |
---|
310 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
311 | # backslashes. This makes it impossible to quote backslashes using |
---|
312 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
313 | # |
---|
314 | # So, first we look for a working echo in the user's PATH. |
---|
315 | |
---|
316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
317 | for dir in $PATH /usr/ucb; do |
---|
318 | IFS="$lt_save_ifs" |
---|
319 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
320 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
321 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
322 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
323 | echo="$dir/echo" |
---|
324 | break |
---|
325 | fi |
---|
326 | done |
---|
327 | IFS="$lt_save_ifs" |
---|
328 | |
---|
329 | if test "X$echo" = Xecho; then |
---|
330 | # We didn't find a better echo, so look for alternatives. |
---|
331 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
332 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
333 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
334 | # This shell has a builtin print -r that does the trick. |
---|
335 | echo='print -r' |
---|
336 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
337 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
338 | # If we have ksh, try running configure again with it. |
---|
339 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
340 | export ORIGINAL_CONFIG_SHELL |
---|
341 | CONFIG_SHELL=/bin/ksh |
---|
342 | export CONFIG_SHELL |
---|
343 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
344 | else |
---|
345 | # Try using printf. |
---|
346 | echo='printf %s\n' |
---|
347 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
348 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
350 | # Cool, printf works |
---|
351 | : |
---|
352 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
353 | test "X$echo_testing_string" = 'X\t' && |
---|
354 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
356 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
357 | export CONFIG_SHELL |
---|
358 | SHELL="$CONFIG_SHELL" |
---|
359 | export SHELL |
---|
360 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
361 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
362 | test "X$echo_testing_string" = 'X\t' && |
---|
363 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
364 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
365 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
366 | else |
---|
367 | # maybe with a smaller string... |
---|
368 | prev=: |
---|
369 | |
---|
370 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
371 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
372 | then |
---|
373 | break |
---|
374 | fi |
---|
375 | prev="$cmd" |
---|
376 | done |
---|
377 | |
---|
378 | if test "$prev" != 'sed 50q "$0"'; then |
---|
379 | echo_test_string=`eval $prev` |
---|
380 | export echo_test_string |
---|
381 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
382 | else |
---|
383 | # Oops. We lost completely, so just stick with echo. |
---|
384 | echo=echo |
---|
385 | fi |
---|
386 | fi |
---|
387 | fi |
---|
388 | fi |
---|
389 | fi |
---|
390 | fi |
---|
391 | |
---|
392 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
393 | # the Makefile, instead of quoting the original, which is used later. |
---|
394 | ECHO=$echo |
---|
395 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
396 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
397 | fi |
---|
398 | |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | tagnames=${tagnames+${tagnames},}CXX |
---|
403 | |
---|
404 | tagnames=${tagnames+${tagnames},}F77 |
---|
405 | |
---|
406 | # Name of the host. |
---|
407 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
408 | # so uname gets run too. |
---|
409 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
410 | |
---|
411 | exec 6>&1 |
---|
412 | |
---|
413 | # |
---|
414 | # Initializations. |
---|
415 | # |
---|
416 | ac_default_prefix=/usr/local |
---|
417 | ac_config_libobj_dir=. |
---|
418 | cross_compiling=no |
---|
419 | subdirs= |
---|
420 | MFLAGS= |
---|
421 | MAKEFLAGS= |
---|
422 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
423 | |
---|
424 | # Maximum number of lines to put in a shell here document. |
---|
425 | # This variable seems obsolete. It should probably be removed, and |
---|
426 | # only ac_max_sed_lines should be used. |
---|
427 | : ${ac_max_here_lines=38} |
---|
428 | |
---|
429 | # Identity of this package. |
---|
430 | PACKAGE_NAME='ThirdPartyBlas' |
---|
431 | PACKAGE_TARNAME='thirdpartyblas' |
---|
432 | PACKAGE_VERSION='0.0' |
---|
433 | PACKAGE_STRING='ThirdPartyBlas 0.0' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="dgemm.f" |
---|
437 | ac_default_prefix=`pwd` |
---|
438 | # Factoring default headers for most tests. |
---|
439 | ac_includes_default="\ |
---|
440 | #include <stdio.h> |
---|
441 | #if HAVE_SYS_TYPES_H |
---|
442 | # include <sys/types.h> |
---|
443 | #endif |
---|
444 | #if HAVE_SYS_STAT_H |
---|
445 | # include <sys/stat.h> |
---|
446 | #endif |
---|
447 | #if STDC_HEADERS |
---|
448 | # include <stdlib.h> |
---|
449 | # include <stddef.h> |
---|
450 | #else |
---|
451 | # if HAVE_STDLIB_H |
---|
452 | # include <stdlib.h> |
---|
453 | # endif |
---|
454 | #endif |
---|
455 | #if HAVE_STRING_H |
---|
456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
457 | # include <memory.h> |
---|
458 | # endif |
---|
459 | # include <string.h> |
---|
460 | #endif |
---|
461 | #if HAVE_STRINGS_H |
---|
462 | # include <strings.h> |
---|
463 | #endif |
---|
464 | #if HAVE_INTTYPES_H |
---|
465 | # include <inttypes.h> |
---|
466 | #else |
---|
467 | # if HAVE_STDINT_H |
---|
468 | # include <stdint.h> |
---|
469 | # endif |
---|
470 | #endif |
---|
471 | #if HAVE_UNISTD_H |
---|
472 | # include <unistd.h> |
---|
473 | #endif" |
---|
474 | |
---|
475 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' |
---|
476 | ac_subst_files='' |
---|
477 | |
---|
478 | # Initialize some variables set by options. |
---|
479 | ac_init_help= |
---|
480 | ac_init_version=false |
---|
481 | # The variables have the same names as the options, with |
---|
482 | # dashes changed to underlines. |
---|
483 | cache_file=/dev/null |
---|
484 | exec_prefix=NONE |
---|
485 | no_create= |
---|
486 | no_recursion= |
---|
487 | prefix=NONE |
---|
488 | program_prefix=NONE |
---|
489 | program_suffix=NONE |
---|
490 | program_transform_name=s,x,x, |
---|
491 | silent= |
---|
492 | site= |
---|
493 | srcdir= |
---|
494 | verbose= |
---|
495 | x_includes=NONE |
---|
496 | x_libraries=NONE |
---|
497 | |
---|
498 | # Installation directory options. |
---|
499 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
500 | # and all the variables that are supposed to be based on exec_prefix |
---|
501 | # by default will actually change. |
---|
502 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
503 | bindir='${exec_prefix}/bin' |
---|
504 | sbindir='${exec_prefix}/sbin' |
---|
505 | libexecdir='${exec_prefix}/libexec' |
---|
506 | datadir='${prefix}/share' |
---|
507 | sysconfdir='${prefix}/etc' |
---|
508 | sharedstatedir='${prefix}/com' |
---|
509 | localstatedir='${prefix}/var' |
---|
510 | libdir='${exec_prefix}/lib' |
---|
511 | includedir='${prefix}/include' |
---|
512 | oldincludedir='/usr/include' |
---|
513 | infodir='${prefix}/info' |
---|
514 | mandir='${prefix}/man' |
---|
515 | |
---|
516 | ac_prev= |
---|
517 | for ac_option |
---|
518 | do |
---|
519 | # If the previous option needs an argument, assign it. |
---|
520 | if test -n "$ac_prev"; then |
---|
521 | eval "$ac_prev=\$ac_option" |
---|
522 | ac_prev= |
---|
523 | continue |
---|
524 | fi |
---|
525 | |
---|
526 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
527 | |
---|
528 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
529 | |
---|
530 | case $ac_option in |
---|
531 | |
---|
532 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
533 | ac_prev=bindir ;; |
---|
534 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
535 | bindir=$ac_optarg ;; |
---|
536 | |
---|
537 | -build | --build | --buil | --bui | --bu) |
---|
538 | ac_prev=build_alias ;; |
---|
539 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
540 | build_alias=$ac_optarg ;; |
---|
541 | |
---|
542 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
543 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
544 | ac_prev=cache_file ;; |
---|
545 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
546 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
547 | cache_file=$ac_optarg ;; |
---|
548 | |
---|
549 | --config-cache | -C) |
---|
550 | cache_file=config.cache ;; |
---|
551 | |
---|
552 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
553 | ac_prev=datadir ;; |
---|
554 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
555 | | --da=*) |
---|
556 | datadir=$ac_optarg ;; |
---|
557 | |
---|
558 | -disable-* | --disable-*) |
---|
559 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
560 | # Reject names that are not valid shell variable names. |
---|
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
563 | { (exit 1); exit 1; }; } |
---|
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
565 | eval "enable_$ac_feature=no" ;; |
---|
566 | |
---|
567 | -enable-* | --enable-*) |
---|
568 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
569 | # Reject names that are not valid shell variable names. |
---|
570 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
571 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
572 | { (exit 1); exit 1; }; } |
---|
573 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
574 | case $ac_option in |
---|
575 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
576 | *) ac_optarg=yes ;; |
---|
577 | esac |
---|
578 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
579 | |
---|
580 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
581 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
582 | | --exec | --exe | --ex) |
---|
583 | ac_prev=exec_prefix ;; |
---|
584 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
585 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
586 | | --exec=* | --exe=* | --ex=*) |
---|
587 | exec_prefix=$ac_optarg ;; |
---|
588 | |
---|
589 | -gas | --gas | --ga | --g) |
---|
590 | # Obsolete; use --with-gas. |
---|
591 | with_gas=yes ;; |
---|
592 | |
---|
593 | -help | --help | --hel | --he | -h) |
---|
594 | ac_init_help=long ;; |
---|
595 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
596 | ac_init_help=recursive ;; |
---|
597 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
598 | ac_init_help=short ;; |
---|
599 | |
---|
600 | -host | --host | --hos | --ho) |
---|
601 | ac_prev=host_alias ;; |
---|
602 | -host=* | --host=* | --hos=* | --ho=*) |
---|
603 | host_alias=$ac_optarg ;; |
---|
604 | |
---|
605 | -includedir | --includedir | --includedi | --included | --include \ |
---|
606 | | --includ | --inclu | --incl | --inc) |
---|
607 | ac_prev=includedir ;; |
---|
608 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
609 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
610 | includedir=$ac_optarg ;; |
---|
611 | |
---|
612 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
613 | ac_prev=infodir ;; |
---|
614 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
615 | infodir=$ac_optarg ;; |
---|
616 | |
---|
617 | -libdir | --libdir | --libdi | --libd) |
---|
618 | ac_prev=libdir ;; |
---|
619 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
620 | libdir=$ac_optarg ;; |
---|
621 | |
---|
622 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
623 | | --libexe | --libex | --libe) |
---|
624 | ac_prev=libexecdir ;; |
---|
625 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
626 | | --libexe=* | --libex=* | --libe=*) |
---|
627 | libexecdir=$ac_optarg ;; |
---|
628 | |
---|
629 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
630 | | --localstate | --localstat | --localsta | --localst \ |
---|
631 | | --locals | --local | --loca | --loc | --lo) |
---|
632 | ac_prev=localstatedir ;; |
---|
633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
635 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
636 | localstatedir=$ac_optarg ;; |
---|
637 | |
---|
638 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
639 | ac_prev=mandir ;; |
---|
640 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
641 | mandir=$ac_optarg ;; |
---|
642 | |
---|
643 | -nfp | --nfp | --nf) |
---|
644 | # Obsolete; use --without-fp. |
---|
645 | with_fp=no ;; |
---|
646 | |
---|
647 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
648 | | --no-cr | --no-c | -n) |
---|
649 | no_create=yes ;; |
---|
650 | |
---|
651 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
652 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
653 | no_recursion=yes ;; |
---|
654 | |
---|
655 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
656 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
657 | | --oldin | --oldi | --old | --ol | --o) |
---|
658 | ac_prev=oldincludedir ;; |
---|
659 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
660 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
661 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
662 | oldincludedir=$ac_optarg ;; |
---|
663 | |
---|
664 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
665 | ac_prev=prefix ;; |
---|
666 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
667 | prefix=$ac_optarg ;; |
---|
668 | |
---|
669 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
670 | | --program-pre | --program-pr | --program-p) |
---|
671 | ac_prev=program_prefix ;; |
---|
672 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
673 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
674 | program_prefix=$ac_optarg ;; |
---|
675 | |
---|
676 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
677 | | --program-suf | --program-su | --program-s) |
---|
678 | ac_prev=program_suffix ;; |
---|
679 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
680 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
681 | program_suffix=$ac_optarg ;; |
---|
682 | |
---|
683 | -program-transform-name | --program-transform-name \ |
---|
684 | | --program-transform-nam | --program-transform-na \ |
---|
685 | | --program-transform-n | --program-transform- \ |
---|
686 | | --program-transform | --program-transfor \ |
---|
687 | | --program-transfo | --program-transf \ |
---|
688 | | --program-trans | --program-tran \ |
---|
689 | | --progr-tra | --program-tr | --program-t) |
---|
690 | ac_prev=program_transform_name ;; |
---|
691 | -program-transform-name=* | --program-transform-name=* \ |
---|
692 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
693 | | --program-transform-n=* | --program-transform-=* \ |
---|
694 | | --program-transform=* | --program-transfor=* \ |
---|
695 | | --program-transfo=* | --program-transf=* \ |
---|
696 | | --program-trans=* | --program-tran=* \ |
---|
697 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
698 | program_transform_name=$ac_optarg ;; |
---|
699 | |
---|
700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
701 | | -silent | --silent | --silen | --sile | --sil) |
---|
702 | silent=yes ;; |
---|
703 | |
---|
704 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
705 | ac_prev=sbindir ;; |
---|
706 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
707 | | --sbi=* | --sb=*) |
---|
708 | sbindir=$ac_optarg ;; |
---|
709 | |
---|
710 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
711 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
712 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
713 | | --sha | --sh) |
---|
714 | ac_prev=sharedstatedir ;; |
---|
715 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
716 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
717 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
718 | | --sha=* | --sh=*) |
---|
719 | sharedstatedir=$ac_optarg ;; |
---|
720 | |
---|
721 | -site | --site | --sit) |
---|
722 | ac_prev=site ;; |
---|
723 | -site=* | --site=* | --sit=*) |
---|
724 | site=$ac_optarg ;; |
---|
725 | |
---|
726 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
727 | ac_prev=srcdir ;; |
---|
728 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
729 | srcdir=$ac_optarg ;; |
---|
730 | |
---|
731 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
732 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
733 | ac_prev=sysconfdir ;; |
---|
734 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
735 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
736 | sysconfdir=$ac_optarg ;; |
---|
737 | |
---|
738 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
739 | ac_prev=target_alias ;; |
---|
740 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
741 | target_alias=$ac_optarg ;; |
---|
742 | |
---|
743 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
744 | verbose=yes ;; |
---|
745 | |
---|
746 | -version | --version | --versio | --versi | --vers | -V) |
---|
747 | ac_init_version=: ;; |
---|
748 | |
---|
749 | -with-* | --with-*) |
---|
750 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
751 | # Reject names that are not valid shell variable names. |
---|
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
754 | { (exit 1); exit 1; }; } |
---|
755 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
756 | case $ac_option in |
---|
757 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
758 | *) ac_optarg=yes ;; |
---|
759 | esac |
---|
760 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
761 | |
---|
762 | -without-* | --without-*) |
---|
763 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
764 | # Reject names that are not valid shell variable names. |
---|
765 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
766 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
767 | { (exit 1); exit 1; }; } |
---|
768 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
769 | eval "with_$ac_package=no" ;; |
---|
770 | |
---|
771 | --x) |
---|
772 | # Obsolete; use --with-x. |
---|
773 | with_x=yes ;; |
---|
774 | |
---|
775 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
776 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
777 | ac_prev=x_includes ;; |
---|
778 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
779 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
780 | x_includes=$ac_optarg ;; |
---|
781 | |
---|
782 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
783 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
784 | ac_prev=x_libraries ;; |
---|
785 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
786 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
787 | x_libraries=$ac_optarg ;; |
---|
788 | |
---|
789 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
790 | Try \`$0 --help' for more information." >&2 |
---|
791 | { (exit 1); exit 1; }; } |
---|
792 | ;; |
---|
793 | |
---|
794 | *=*) |
---|
795 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
796 | # Reject names that are not valid shell variable names. |
---|
797 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
798 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
799 | { (exit 1); exit 1; }; } |
---|
800 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
801 | eval "$ac_envvar='$ac_optarg'" |
---|
802 | export $ac_envvar ;; |
---|
803 | |
---|
804 | *) |
---|
805 | # FIXME: should be removed in autoconf 3.0. |
---|
806 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
807 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
808 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
809 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
810 | ;; |
---|
811 | |
---|
812 | esac |
---|
813 | done |
---|
814 | |
---|
815 | if test -n "$ac_prev"; then |
---|
816 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
817 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
818 | { (exit 1); exit 1; }; } |
---|
819 | fi |
---|
820 | |
---|
821 | # Be sure to have absolute paths. |
---|
822 | for ac_var in exec_prefix prefix |
---|
823 | do |
---|
824 | eval ac_val=$`echo $ac_var` |
---|
825 | case $ac_val in |
---|
826 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
827 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
828 | { (exit 1); exit 1; }; };; |
---|
829 | esac |
---|
830 | done |
---|
831 | |
---|
832 | # Be sure to have absolute paths. |
---|
833 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
834 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
835 | do |
---|
836 | eval ac_val=$`echo $ac_var` |
---|
837 | case $ac_val in |
---|
838 | [\\/$]* | ?:[\\/]* ) ;; |
---|
839 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
840 | { (exit 1); exit 1; }; };; |
---|
841 | esac |
---|
842 | done |
---|
843 | |
---|
844 | # There might be people who depend on the old broken behavior: `$host' |
---|
845 | # used to hold the argument of --host etc. |
---|
846 | # FIXME: To remove some day. |
---|
847 | build=$build_alias |
---|
848 | host=$host_alias |
---|
849 | target=$target_alias |
---|
850 | |
---|
851 | # FIXME: To remove some day. |
---|
852 | if test "x$host_alias" != x; then |
---|
853 | if test "x$build_alias" = x; then |
---|
854 | cross_compiling=maybe |
---|
855 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
856 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
857 | elif test "x$build_alias" != "x$host_alias"; then |
---|
858 | cross_compiling=yes |
---|
859 | fi |
---|
860 | fi |
---|
861 | |
---|
862 | ac_tool_prefix= |
---|
863 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
864 | |
---|
865 | test "$silent" = yes && exec 6>/dev/null |
---|
866 | |
---|
867 | |
---|
868 | # Find the source files, if location was not specified. |
---|
869 | if test -z "$srcdir"; then |
---|
870 | ac_srcdir_defaulted=yes |
---|
871 | # Try the directory containing this script, then its parent. |
---|
872 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
873 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
874 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
875 | X"$0" : 'X\(//\)$' \| \ |
---|
876 | X"$0" : 'X\(/\)' \| \ |
---|
877 | . : '\(.\)' 2>/dev/null || |
---|
878 | echo X"$0" | |
---|
879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
881 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
882 | /^X\(\/\).*/{ s//\1/; q; } |
---|
883 | s/.*/./; q'` |
---|
884 | srcdir=$ac_confdir |
---|
885 | if test ! -r $srcdir/$ac_unique_file; then |
---|
886 | srcdir=.. |
---|
887 | fi |
---|
888 | else |
---|
889 | ac_srcdir_defaulted=no |
---|
890 | fi |
---|
891 | if test ! -r $srcdir/$ac_unique_file; then |
---|
892 | if test "$ac_srcdir_defaulted" = yes; then |
---|
893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
894 | { (exit 1); exit 1; }; } |
---|
895 | else |
---|
896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
897 | { (exit 1); exit 1; }; } |
---|
898 | fi |
---|
899 | fi |
---|
900 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
901 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
902 | { (exit 1); exit 1; }; } |
---|
903 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
904 | ac_env_build_alias_set=${build_alias+set} |
---|
905 | ac_env_build_alias_value=$build_alias |
---|
906 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
907 | ac_cv_env_build_alias_value=$build_alias |
---|
908 | ac_env_host_alias_set=${host_alias+set} |
---|
909 | ac_env_host_alias_value=$host_alias |
---|
910 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
911 | ac_cv_env_host_alias_value=$host_alias |
---|
912 | ac_env_target_alias_set=${target_alias+set} |
---|
913 | ac_env_target_alias_value=$target_alias |
---|
914 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
915 | ac_cv_env_target_alias_value=$target_alias |
---|
916 | ac_env_CDEFS_set=${CDEFS+set} |
---|
917 | ac_env_CDEFS_value=$CDEFS |
---|
918 | ac_cv_env_CDEFS_set=${CDEFS+set} |
---|
919 | ac_cv_env_CDEFS_value=$CDEFS |
---|
920 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
921 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
922 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
923 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
924 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
925 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
926 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
927 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
928 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
929 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
930 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
931 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
932 | ac_env_CC_set=${CC+set} |
---|
933 | ac_env_CC_value=$CC |
---|
934 | ac_cv_env_CC_set=${CC+set} |
---|
935 | ac_cv_env_CC_value=$CC |
---|
936 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
937 | ac_env_CFLAGS_value=$CFLAGS |
---|
938 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
939 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
940 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
941 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
942 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
943 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
944 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
945 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
946 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
947 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
948 | ac_env_MPICC_set=${MPICC+set} |
---|
949 | ac_env_MPICC_value=$MPICC |
---|
950 | ac_cv_env_MPICC_set=${MPICC+set} |
---|
951 | ac_cv_env_MPICC_value=$MPICC |
---|
952 | ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
953 | ac_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
954 | ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
955 | ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
956 | ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
957 | ac_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
958 | ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
959 | ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
960 | ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
961 | ac_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
962 | ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
963 | ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
964 | ac_env_F77_set=${F77+set} |
---|
965 | ac_env_F77_value=$F77 |
---|
966 | ac_cv_env_F77_set=${F77+set} |
---|
967 | ac_cv_env_F77_value=$F77 |
---|
968 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
969 | ac_env_FFLAGS_value=$FFLAGS |
---|
970 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
971 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
972 | ac_env_MPIF77_set=${MPIF77+set} |
---|
973 | ac_env_MPIF77_value=$MPIF77 |
---|
974 | ac_cv_env_MPIF77_set=${MPIF77+set} |
---|
975 | ac_cv_env_MPIF77_value=$MPIF77 |
---|
976 | ac_env_CPP_set=${CPP+set} |
---|
977 | ac_env_CPP_value=$CPP |
---|
978 | ac_cv_env_CPP_set=${CPP+set} |
---|
979 | ac_cv_env_CPP_value=$CPP |
---|
980 | ac_env_CXX_set=${CXX+set} |
---|
981 | ac_env_CXX_value=$CXX |
---|
982 | ac_cv_env_CXX_set=${CXX+set} |
---|
983 | ac_cv_env_CXX_value=$CXX |
---|
984 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
985 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
986 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
987 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
988 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
989 | ac_env_CXXCPP_value=$CXXCPP |
---|
990 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
991 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
992 | |
---|
993 | # |
---|
994 | # Report the --help message. |
---|
995 | # |
---|
996 | if test "$ac_init_help" = "long"; then |
---|
997 | # Omit some internal or obsolete options to make the list less imposing. |
---|
998 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
999 | cat <<_ACEOF |
---|
1000 | \`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems. |
---|
1001 | |
---|
1002 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1003 | |
---|
1004 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1005 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1006 | |
---|
1007 | Defaults for the options are specified in brackets. |
---|
1008 | |
---|
1009 | Configuration: |
---|
1010 | -h, --help display this help and exit |
---|
1011 | --help=short display options specific to this package |
---|
1012 | --help=recursive display the short help of all the included packages |
---|
1013 | -V, --version display version information and exit |
---|
1014 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1015 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1016 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1017 | -n, --no-create do not create output files |
---|
1018 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1019 | |
---|
1020 | _ACEOF |
---|
1021 | |
---|
1022 | cat <<_ACEOF |
---|
1023 | Installation directories: |
---|
1024 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1025 | [$ac_default_prefix] |
---|
1026 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1027 | [PREFIX] |
---|
1028 | |
---|
1029 | By default, \`make install' will install all the files in |
---|
1030 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1031 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1032 | for instance \`--prefix=\$HOME'. |
---|
1033 | |
---|
1034 | For better control, use the options below. |
---|
1035 | |
---|
1036 | Fine tuning of the installation directories: |
---|
1037 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1038 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1039 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1040 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1041 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1042 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1043 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1044 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1045 | --includedir=DIR C header files [PREFIX/include] |
---|
1046 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1047 | --infodir=DIR info documentation [PREFIX/info] |
---|
1048 | --mandir=DIR man documentation [PREFIX/man] |
---|
1049 | _ACEOF |
---|
1050 | |
---|
1051 | cat <<\_ACEOF |
---|
1052 | |
---|
1053 | Program names: |
---|
1054 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1055 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1056 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1057 | |
---|
1058 | System types: |
---|
1059 | --build=BUILD configure for building on BUILD [guessed] |
---|
1060 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1061 | _ACEOF |
---|
1062 | fi |
---|
1063 | |
---|
1064 | if test -n "$ac_init_help"; then |
---|
1065 | case $ac_init_help in |
---|
1066 | short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";; |
---|
1067 | esac |
---|
1068 | cat <<\_ACEOF |
---|
1069 | |
---|
1070 | Optional Features: |
---|
1071 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1072 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1073 | --enable-debug compile all projects with debug options tests |
---|
1074 | --enable-debug-blas compile this project (Blas) with debug options |
---|
1075 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1076 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1077 | -mno-cygwin. Set to msvc to use cl/link. Default |
---|
1078 | when mentioned: mingw. Default when not mentioned: |
---|
1079 | disabled. |
---|
1080 | --enable-static[=PKGS] |
---|
1081 | build static libraries [default=no] |
---|
1082 | --disable-dependency-tracking speeds up one-time build |
---|
1083 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1084 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1085 | (and sometimes confusing) to the casual installer |
---|
1086 | --enable-shared[=PKGS] |
---|
1087 | build shared libraries [default=yes] |
---|
1088 | --enable-fast-install[=PKGS] |
---|
1089 | optimize for fast installation [default=yes] |
---|
1090 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1091 | |
---|
1092 | Optional Packages: |
---|
1093 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1094 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1095 | --with-blas-verbosity specify the debug verbosity level for project Blas |
---|
1096 | --with-blas-checklevel specify the sanity check level for project Blas |
---|
1097 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1098 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1099 | both] |
---|
1100 | --with-tags[=TAGS] |
---|
1101 | include additional configurations [automatic] |
---|
1102 | |
---|
1103 | Some influential environment variables: |
---|
1104 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1105 | ADD_CFLAGS Additional C compiler options |
---|
1106 | DBG_CFLAGS Debug C compiler options |
---|
1107 | OPT_CFLAGS Optimize C compiler options |
---|
1108 | CC C compiler command |
---|
1109 | CFLAGS C compiler flags |
---|
1110 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1111 | nonstandard directory <lib dir> |
---|
1112 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1113 | headers in a nonstandard directory <include dir> |
---|
1114 | MPICC C MPI Compiler |
---|
1115 | ADD_FFLAGS Additional Fortran compiler options |
---|
1116 | DBG_FFLAGS Debug Fortran compiler options |
---|
1117 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1118 | F77 Fortran 77 compiler command |
---|
1119 | FFLAGS Fortran 77 compiler flags |
---|
1120 | MPIF77 Fortran MPI Compiler |
---|
1121 | CPP C preprocessor |
---|
1122 | CXX C++ compiler command |
---|
1123 | CXXFLAGS C++ compiler flags |
---|
1124 | CXXCPP C++ preprocessor |
---|
1125 | |
---|
1126 | Use these variables to override the choices made by `configure' or to help |
---|
1127 | it to find libraries and programs with nonstandard names/locations. |
---|
1128 | |
---|
1129 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1130 | _ACEOF |
---|
1131 | fi |
---|
1132 | |
---|
1133 | if test "$ac_init_help" = "recursive"; then |
---|
1134 | # If there are subdirs, report their specific --help. |
---|
1135 | ac_popdir=`pwd` |
---|
1136 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1137 | test -d $ac_dir || continue |
---|
1138 | ac_builddir=. |
---|
1139 | |
---|
1140 | if test "$ac_dir" != .; then |
---|
1141 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1142 | # A "../" for each directory in $ac_dir_suffix. |
---|
1143 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1144 | else |
---|
1145 | ac_dir_suffix= ac_top_builddir= |
---|
1146 | fi |
---|
1147 | |
---|
1148 | case $srcdir in |
---|
1149 | .) # No --srcdir option. We are building in place. |
---|
1150 | ac_srcdir=. |
---|
1151 | if test -z "$ac_top_builddir"; then |
---|
1152 | ac_top_srcdir=. |
---|
1153 | else |
---|
1154 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1155 | fi ;; |
---|
1156 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1157 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1158 | ac_top_srcdir=$srcdir ;; |
---|
1159 | *) # Relative path. |
---|
1160 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1161 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1162 | esac |
---|
1163 | |
---|
1164 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1165 | # the directories may not exist. |
---|
1166 | case `pwd` in |
---|
1167 | .) ac_abs_builddir="$ac_dir";; |
---|
1168 | *) |
---|
1169 | case "$ac_dir" in |
---|
1170 | .) ac_abs_builddir=`pwd`;; |
---|
1171 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1172 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1173 | esac;; |
---|
1174 | esac |
---|
1175 | case $ac_abs_builddir in |
---|
1176 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1177 | *) |
---|
1178 | case ${ac_top_builddir}. in |
---|
1179 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1180 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1181 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1182 | esac;; |
---|
1183 | esac |
---|
1184 | case $ac_abs_builddir in |
---|
1185 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1186 | *) |
---|
1187 | case $ac_srcdir in |
---|
1188 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1189 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1190 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1191 | esac;; |
---|
1192 | esac |
---|
1193 | case $ac_abs_builddir in |
---|
1194 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1195 | *) |
---|
1196 | case $ac_top_srcdir in |
---|
1197 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1198 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1199 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1200 | esac;; |
---|
1201 | esac |
---|
1202 | |
---|
1203 | cd $ac_dir |
---|
1204 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1205 | if test -f $ac_srcdir/configure.gnu; then |
---|
1206 | echo |
---|
1207 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1208 | elif test -f $ac_srcdir/configure; then |
---|
1209 | echo |
---|
1210 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1211 | elif test -f $ac_srcdir/configure.ac || |
---|
1212 | test -f $ac_srcdir/configure.in; then |
---|
1213 | echo |
---|
1214 | $ac_configure --help |
---|
1215 | else |
---|
1216 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1217 | fi |
---|
1218 | cd $ac_popdir |
---|
1219 | done |
---|
1220 | fi |
---|
1221 | |
---|
1222 | test -n "$ac_init_help" && exit 0 |
---|
1223 | if $ac_init_version; then |
---|
1224 | cat <<\_ACEOF |
---|
1225 | ThirdPartyBlas configure 0.0 |
---|
1226 | generated by GNU Autoconf 2.59 |
---|
1227 | |
---|
1228 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1229 | This configure script is free software; the Free Software Foundation |
---|
1230 | gives unlimited permission to copy, distribute and modify it. |
---|
1231 | |
---|
1232 | |
---|
1233 | Copyright 2006 International Business Machines and others. |
---|
1234 | All Rights Reserved. |
---|
1235 | This file is part of the open source package Coin which is distributed |
---|
1236 | under the Common Public License. |
---|
1237 | _ACEOF |
---|
1238 | exit 0 |
---|
1239 | fi |
---|
1240 | exec 5>config.log |
---|
1241 | cat >&5 <<_ACEOF |
---|
1242 | This file contains any messages produced by compilers while |
---|
1243 | running configure, to aid debugging if configure makes a mistake. |
---|
1244 | |
---|
1245 | It was created by ThirdPartyBlas $as_me 0.0, which was |
---|
1246 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1247 | |
---|
1248 | $ $0 $@ |
---|
1249 | |
---|
1250 | _ACEOF |
---|
1251 | { |
---|
1252 | cat <<_ASUNAME |
---|
1253 | ## --------- ## |
---|
1254 | ## Platform. ## |
---|
1255 | ## --------- ## |
---|
1256 | |
---|
1257 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1258 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1259 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1260 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1261 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1262 | |
---|
1263 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1264 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1265 | |
---|
1266 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1267 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1268 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1269 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1270 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1271 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1272 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1273 | |
---|
1274 | _ASUNAME |
---|
1275 | |
---|
1276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1277 | for as_dir in $PATH |
---|
1278 | do |
---|
1279 | IFS=$as_save_IFS |
---|
1280 | test -z "$as_dir" && as_dir=. |
---|
1281 | echo "PATH: $as_dir" |
---|
1282 | done |
---|
1283 | |
---|
1284 | } >&5 |
---|
1285 | |
---|
1286 | cat >&5 <<_ACEOF |
---|
1287 | |
---|
1288 | |
---|
1289 | ## ----------- ## |
---|
1290 | ## Core tests. ## |
---|
1291 | ## ----------- ## |
---|
1292 | |
---|
1293 | _ACEOF |
---|
1294 | |
---|
1295 | |
---|
1296 | # Keep a trace of the command line. |
---|
1297 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1298 | # Strip out --silent because we don't want to record it for future runs. |
---|
1299 | # Also quote any args containing shell meta-characters. |
---|
1300 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1301 | ac_configure_args= |
---|
1302 | ac_configure_args0= |
---|
1303 | ac_configure_args1= |
---|
1304 | ac_sep= |
---|
1305 | ac_must_keep_next=false |
---|
1306 | for ac_pass in 1 2 |
---|
1307 | do |
---|
1308 | for ac_arg |
---|
1309 | do |
---|
1310 | case $ac_arg in |
---|
1311 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1312 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1313 | | -silent | --silent | --silen | --sile | --sil) |
---|
1314 | continue ;; |
---|
1315 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1316 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1317 | esac |
---|
1318 | case $ac_pass in |
---|
1319 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1320 | 2) |
---|
1321 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1322 | if test $ac_must_keep_next = true; then |
---|
1323 | ac_must_keep_next=false # Got value, back to normal. |
---|
1324 | else |
---|
1325 | case $ac_arg in |
---|
1326 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1327 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1328 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1329 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1330 | case "$ac_configure_args0 " in |
---|
1331 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1332 | esac |
---|
1333 | ;; |
---|
1334 | -* ) ac_must_keep_next=true ;; |
---|
1335 | esac |
---|
1336 | fi |
---|
1337 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1338 | # Get rid of the leading space. |
---|
1339 | ac_sep=" " |
---|
1340 | ;; |
---|
1341 | esac |
---|
1342 | done |
---|
1343 | done |
---|
1344 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1345 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1346 | |
---|
1347 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1348 | # config.log. We remove comments because anyway the quotes in there |
---|
1349 | # would cause problems or look ugly. |
---|
1350 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1351 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1352 | trap 'exit_status=$? |
---|
1353 | # Save into config.log some information that might help in debugging. |
---|
1354 | { |
---|
1355 | echo |
---|
1356 | |
---|
1357 | cat <<\_ASBOX |
---|
1358 | ## ---------------- ## |
---|
1359 | ## Cache variables. ## |
---|
1360 | ## ---------------- ## |
---|
1361 | _ASBOX |
---|
1362 | echo |
---|
1363 | # The following way of writing the cache mishandles newlines in values, |
---|
1364 | { |
---|
1365 | (set) 2>&1 | |
---|
1366 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1367 | *ac_space=\ *) |
---|
1368 | sed -n \ |
---|
1369 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1370 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1371 | ;; |
---|
1372 | *) |
---|
1373 | sed -n \ |
---|
1374 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1375 | ;; |
---|
1376 | esac; |
---|
1377 | } |
---|
1378 | echo |
---|
1379 | |
---|
1380 | cat <<\_ASBOX |
---|
1381 | ## ----------------- ## |
---|
1382 | ## Output variables. ## |
---|
1383 | ## ----------------- ## |
---|
1384 | _ASBOX |
---|
1385 | echo |
---|
1386 | for ac_var in $ac_subst_vars |
---|
1387 | do |
---|
1388 | eval ac_val=$`echo $ac_var` |
---|
1389 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1390 | done | sort |
---|
1391 | echo |
---|
1392 | |
---|
1393 | if test -n "$ac_subst_files"; then |
---|
1394 | cat <<\_ASBOX |
---|
1395 | ## ------------- ## |
---|
1396 | ## Output files. ## |
---|
1397 | ## ------------- ## |
---|
1398 | _ASBOX |
---|
1399 | echo |
---|
1400 | for ac_var in $ac_subst_files |
---|
1401 | do |
---|
1402 | eval ac_val=$`echo $ac_var` |
---|
1403 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1404 | done | sort |
---|
1405 | echo |
---|
1406 | fi |
---|
1407 | |
---|
1408 | if test -s confdefs.h; then |
---|
1409 | cat <<\_ASBOX |
---|
1410 | ## ----------- ## |
---|
1411 | ## confdefs.h. ## |
---|
1412 | ## ----------- ## |
---|
1413 | _ASBOX |
---|
1414 | echo |
---|
1415 | sed "/^$/d" confdefs.h | sort |
---|
1416 | echo |
---|
1417 | fi |
---|
1418 | test "$ac_signal" != 0 && |
---|
1419 | echo "$as_me: caught signal $ac_signal" |
---|
1420 | echo "$as_me: exit $exit_status" |
---|
1421 | } >&5 |
---|
1422 | rm -f core *.core && |
---|
1423 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1424 | exit $exit_status |
---|
1425 | ' 0 |
---|
1426 | for ac_signal in 1 2 13 15; do |
---|
1427 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1428 | done |
---|
1429 | ac_signal=0 |
---|
1430 | |
---|
1431 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1432 | rm -rf conftest* confdefs.h |
---|
1433 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1434 | echo >confdefs.h |
---|
1435 | |
---|
1436 | # Predefined preprocessor variables. |
---|
1437 | |
---|
1438 | cat >>confdefs.h <<_ACEOF |
---|
1439 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1440 | _ACEOF |
---|
1441 | |
---|
1442 | |
---|
1443 | cat >>confdefs.h <<_ACEOF |
---|
1444 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1445 | _ACEOF |
---|
1446 | |
---|
1447 | |
---|
1448 | cat >>confdefs.h <<_ACEOF |
---|
1449 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1450 | _ACEOF |
---|
1451 | |
---|
1452 | |
---|
1453 | cat >>confdefs.h <<_ACEOF |
---|
1454 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1455 | _ACEOF |
---|
1456 | |
---|
1457 | |
---|
1458 | cat >>confdefs.h <<_ACEOF |
---|
1459 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1460 | _ACEOF |
---|
1461 | |
---|
1462 | |
---|
1463 | # Let the site file select an alternate cache file if it wants to. |
---|
1464 | # Prefer explicitly selected file to automatically selected ones. |
---|
1465 | if test -z "$CONFIG_SITE"; then |
---|
1466 | if test "x$prefix" != xNONE; then |
---|
1467 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1468 | else |
---|
1469 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1470 | fi |
---|
1471 | fi |
---|
1472 | for ac_site_file in $CONFIG_SITE; do |
---|
1473 | if test -r "$ac_site_file"; then |
---|
1474 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1475 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1476 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1477 | . "$ac_site_file" |
---|
1478 | fi |
---|
1479 | done |
---|
1480 | |
---|
1481 | if test -r "$cache_file"; then |
---|
1482 | # Some versions of bash will fail to source /dev/null (special |
---|
1483 | # files actually), so we avoid doing that. |
---|
1484 | if test -f "$cache_file"; then |
---|
1485 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1486 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1487 | case $cache_file in |
---|
1488 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1489 | *) . ./$cache_file;; |
---|
1490 | esac |
---|
1491 | fi |
---|
1492 | else |
---|
1493 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1494 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1495 | >$cache_file |
---|
1496 | fi |
---|
1497 | |
---|
1498 | # Check that the precious variables saved in the cache have kept the same |
---|
1499 | # value. |
---|
1500 | ac_cache_corrupted=false |
---|
1501 | for ac_var in `(set) 2>&1 | |
---|
1502 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1503 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1504 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1505 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1506 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1507 | case $ac_old_set,$ac_new_set in |
---|
1508 | set,) |
---|
1509 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1510 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1511 | ac_cache_corrupted=: ;; |
---|
1512 | ,set) |
---|
1513 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1514 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1515 | ac_cache_corrupted=: ;; |
---|
1516 | ,);; |
---|
1517 | *) |
---|
1518 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1519 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1520 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1521 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1522 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1523 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1524 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1525 | ac_cache_corrupted=: |
---|
1526 | fi;; |
---|
1527 | esac |
---|
1528 | # Pass precious variables to config.status. |
---|
1529 | if test "$ac_new_set" = set; then |
---|
1530 | case $ac_new_val in |
---|
1531 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1532 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1533 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1534 | esac |
---|
1535 | case " $ac_configure_args " in |
---|
1536 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1537 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1538 | esac |
---|
1539 | fi |
---|
1540 | done |
---|
1541 | if $ac_cache_corrupted; then |
---|
1542 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1543 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1544 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1545 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1546 | { (exit 1); exit 1; }; } |
---|
1547 | fi |
---|
1548 | |
---|
1549 | ac_ext=c |
---|
1550 | ac_cpp='$CPP $CPPFLAGS' |
---|
1551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1554 | |
---|
1555 | |
---|
1556 | |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | |
---|
1561 | |
---|
1562 | |
---|
1563 | |
---|
1564 | |
---|
1565 | |
---|
1566 | |
---|
1567 | |
---|
1568 | |
---|
1569 | |
---|
1570 | |
---|
1571 | |
---|
1572 | |
---|
1573 | |
---|
1574 | |
---|
1575 | |
---|
1576 | |
---|
1577 | |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | # List one file in the package so that the configure script can test |
---|
1585 | # whether the package is actually there |
---|
1586 | |
---|
1587 | |
---|
1588 | # Where should everything be installed by default? Here, we want it |
---|
1589 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1590 | # of the directory where configure is run. The default would be |
---|
1591 | # /usr/local. |
---|
1592 | |
---|
1593 | |
---|
1594 | # Initialize the ADDLIBS variable |
---|
1595 | ADDLIBS="-lm $LIBS" |
---|
1596 | |
---|
1597 | |
---|
1598 | # Initialize the FADDLIBS variable (which is to be used with a fortran |
---|
1599 | # compiler and will not include FLIBS) |
---|
1600 | FADDLIBS="$LIBS" |
---|
1601 | |
---|
1602 | |
---|
1603 | # A useful makefile conditional that is always false |
---|
1604 | |
---|
1605 | |
---|
1606 | if false; then |
---|
1607 | ALWAYS_FALSE_TRUE= |
---|
1608 | ALWAYS_FALSE_FALSE='#' |
---|
1609 | else |
---|
1610 | ALWAYS_FALSE_TRUE='#' |
---|
1611 | ALWAYS_FALSE_FALSE= |
---|
1612 | fi |
---|
1613 | |
---|
1614 | |
---|
1615 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1616 | # that we are in a project main directory |
---|
1617 | coin_projectdir=yes |
---|
1618 | |
---|
1619 | |
---|
1620 | ############################################################################# |
---|
1621 | # Standard build tool stuff # |
---|
1622 | ############################################################################# |
---|
1623 | |
---|
1624 | # Get the system type |
---|
1625 | ac_aux_dir= |
---|
1626 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1627 | if test -f $ac_dir/install-sh; then |
---|
1628 | ac_aux_dir=$ac_dir |
---|
1629 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1630 | break |
---|
1631 | elif test -f $ac_dir/install.sh; then |
---|
1632 | ac_aux_dir=$ac_dir |
---|
1633 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1634 | break |
---|
1635 | elif test -f $ac_dir/shtool; then |
---|
1636 | ac_aux_dir=$ac_dir |
---|
1637 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1638 | break |
---|
1639 | fi |
---|
1640 | done |
---|
1641 | if test -z "$ac_aux_dir"; then |
---|
1642 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1643 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1644 | { (exit 1); exit 1; }; } |
---|
1645 | fi |
---|
1646 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1647 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1648 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1649 | |
---|
1650 | # Make sure we can run config.sub. |
---|
1651 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1652 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1653 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1654 | { (exit 1); exit 1; }; } |
---|
1655 | |
---|
1656 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1657 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1658 | if test "${ac_cv_build+set}" = set; then |
---|
1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1660 | else |
---|
1661 | ac_cv_build_alias=$build_alias |
---|
1662 | test -z "$ac_cv_build_alias" && |
---|
1663 | ac_cv_build_alias=`$ac_config_guess` |
---|
1664 | test -z "$ac_cv_build_alias" && |
---|
1665 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1666 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1667 | { (exit 1); exit 1; }; } |
---|
1668 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1669 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1670 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1671 | { (exit 1); exit 1; }; } |
---|
1672 | |
---|
1673 | fi |
---|
1674 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1675 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1676 | build=$ac_cv_build |
---|
1677 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1678 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1679 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1680 | |
---|
1681 | |
---|
1682 | |
---|
1683 | # Check if user wants to produce debugging code |
---|
1684 | |
---|
1685 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1686 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1687 | |
---|
1688 | # Check whether --enable-debug or --disable-debug was given. |
---|
1689 | if test "${enable_debug+set}" = set; then |
---|
1690 | enableval="$enable_debug" |
---|
1691 | case "${enableval}" in |
---|
1692 | yes) coin_debug_compile=true |
---|
1693 | enable_shared=no |
---|
1694 | ;; |
---|
1695 | no) coin_debug_compile=false |
---|
1696 | ;; |
---|
1697 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1698 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1699 | { (exit 1); exit 1; }; } |
---|
1700 | ;; |
---|
1701 | esac |
---|
1702 | else |
---|
1703 | coin_debug_compile=false |
---|
1704 | fi; |
---|
1705 | |
---|
1706 | # Check whether --enable-debug-blas or --disable-debug-blas was given. |
---|
1707 | if test "${enable_debug_blas+set}" = set; then |
---|
1708 | enableval="$enable_debug_blas" |
---|
1709 | case "${enableval}" in |
---|
1710 | yes) coin_debug_compile=true |
---|
1711 | enable_shared=no |
---|
1712 | ;; |
---|
1713 | no) coin_debug_compile=false |
---|
1714 | ;; |
---|
1715 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5 |
---|
1716 | echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;} |
---|
1717 | { (exit 1); exit 1; }; } |
---|
1718 | ;; |
---|
1719 | esac |
---|
1720 | else |
---|
1721 | : |
---|
1722 | fi; |
---|
1723 | |
---|
1724 | # m4_ifvaln([Blas], |
---|
1725 | |
---|
1726 | if test $coin_debug_compile = true; then |
---|
1727 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1728 | echo "${ECHO_T}yes" >&6 |
---|
1729 | else |
---|
1730 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1731 | echo "${ECHO_T}no" >&6 |
---|
1732 | fi |
---|
1733 | |
---|
1734 | |
---|
1735 | # Check whether --with-blas-verbosity or --without-blas-verbosity was given. |
---|
1736 | if test "${with_blas_verbosity+set}" = set; then |
---|
1737 | withval="$with_blas_verbosity" |
---|
1738 | coin_blas_verbosity=$withval |
---|
1739 | else |
---|
1740 | coin_blas_verbosity=0 |
---|
1741 | fi; |
---|
1742 | |
---|
1743 | cat >>confdefs.h <<_ACEOF |
---|
1744 | #define COIN_BLAS_VERBOSITY $coin_blas_verbosity |
---|
1745 | _ACEOF |
---|
1746 | |
---|
1747 | |
---|
1748 | |
---|
1749 | # Check whether --with-blas-checklevel or --without-blas-checklevel was given. |
---|
1750 | if test "${with_blas_checklevel+set}" = set; then |
---|
1751 | withval="$with_blas_checklevel" |
---|
1752 | coin_blas_checklevel=$withval |
---|
1753 | else |
---|
1754 | coin_blas_checklevel=0 |
---|
1755 | fi; |
---|
1756 | |
---|
1757 | cat >>confdefs.h <<_ACEOF |
---|
1758 | #define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel |
---|
1759 | _ACEOF |
---|
1760 | |
---|
1761 | |
---|
1762 | # We use the following variable to have a string with the upper case |
---|
1763 | # version of the project name |
---|
1764 | COIN_PRJCT=BLAS |
---|
1765 | |
---|
1766 | |
---|
1767 | # m4_ifvaln([Blas], |
---|
1768 | |
---|
1769 | |
---|
1770 | |
---|
1771 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
1772 | case $build in |
---|
1773 | *-mingw*) |
---|
1774 | if test "${LD+set}" = set; then :; else |
---|
1775 | LD=link |
---|
1776 | fi |
---|
1777 | ;; |
---|
1778 | esac |
---|
1779 | case $enable_doscompile in |
---|
1780 | msvc) |
---|
1781 | if test "x${LD+set}" = xset; then :; else |
---|
1782 | LD=link |
---|
1783 | fi |
---|
1784 | ;; |
---|
1785 | esac |
---|
1786 | |
---|
1787 | |
---|
1788 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1789 | if test "${enable_doscompile+set}" = set; then |
---|
1790 | enableval="$enable_doscompile" |
---|
1791 | if test "$enable_doscompile" != no; then |
---|
1792 | case $build in |
---|
1793 | *-cygwin*) ;; |
---|
1794 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5 |
---|
1795 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;} |
---|
1796 | { (exit 1); exit 1; }; } ;; |
---|
1797 | esac |
---|
1798 | fi |
---|
1799 | else |
---|
1800 | enable_doscompile=no |
---|
1801 | fi; |
---|
1802 | case "$enable_doscompile" in |
---|
1803 | msvc|mingw|no) ;; |
---|
1804 | yes) enable_doscompile=mingw ;; |
---|
1805 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1806 | Try configure --help=recursive." >&5 |
---|
1807 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1808 | Try configure --help=recursive." >&2;} |
---|
1809 | { (exit 1); exit 1; }; } |
---|
1810 | ;; |
---|
1811 | esac |
---|
1812 | if test "$enable_doscompile" != no ; then |
---|
1813 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1814 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1815 | fi |
---|
1816 | |
---|
1817 | |
---|
1818 | |
---|
1819 | |
---|
1820 | ac_ext=c |
---|
1821 | ac_cpp='$CPP $CPPFLAGS' |
---|
1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1825 | |
---|
1826 | |
---|
1827 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1828 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1829 | if test x"$CXX" != x; then |
---|
1830 | case "$CXX" in |
---|
1831 | cl* | */cl* | CL* | */CL*) |
---|
1832 | if test x"$CC" = x; then |
---|
1833 | CC="$CXX" |
---|
1834 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1835 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1836 | fi |
---|
1837 | ;; |
---|
1838 | esac |
---|
1839 | fi |
---|
1840 | |
---|
1841 | |
---|
1842 | |
---|
1843 | |
---|
1844 | |
---|
1845 | |
---|
1846 | coin_has_cc=yes |
---|
1847 | |
---|
1848 | save_cflags="$CFLAGS" |
---|
1849 | # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. |
---|
1850 | # ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which |
---|
1851 | # is likely to be a non-functional shell. But many installations will have |
---|
1852 | # both cc and gcc, so promoting gcc isn't good either. How to test reliably? |
---|
1853 | case $build in |
---|
1854 | *-cygwin* | *-mingw*) |
---|
1855 | if test "$enable_doscompile" = msvc ; then |
---|
1856 | comps="cl" |
---|
1857 | else |
---|
1858 | comps="gcc cl" |
---|
1859 | fi ;; |
---|
1860 | sparc-sun-solaris*) |
---|
1861 | comps="cc xlc gcc pgcc icc" ;; |
---|
1862 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
1863 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
1864 | esac |
---|
1865 | |
---|
1866 | # We delete the cached value, since the test might not have been |
---|
1867 | # performed with our choice of compilers earlier |
---|
1868 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
1869 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
1870 | ac_ext=c |
---|
1871 | ac_cpp='$CPP $CPPFLAGS' |
---|
1872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1875 | if test -n "$ac_tool_prefix"; then |
---|
1876 | for ac_prog in $comps |
---|
1877 | do |
---|
1878 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1879 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1882 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1884 | else |
---|
1885 | if test -n "$CC"; then |
---|
1886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1887 | else |
---|
1888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1889 | for as_dir in $PATH |
---|
1890 | do |
---|
1891 | IFS=$as_save_IFS |
---|
1892 | test -z "$as_dir" && as_dir=. |
---|
1893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1895 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1897 | break 2 |
---|
1898 | fi |
---|
1899 | done |
---|
1900 | done |
---|
1901 | |
---|
1902 | fi |
---|
1903 | fi |
---|
1904 | CC=$ac_cv_prog_CC |
---|
1905 | if test -n "$CC"; then |
---|
1906 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1907 | echo "${ECHO_T}$CC" >&6 |
---|
1908 | else |
---|
1909 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1910 | echo "${ECHO_T}no" >&6 |
---|
1911 | fi |
---|
1912 | |
---|
1913 | test -n "$CC" && break |
---|
1914 | done |
---|
1915 | fi |
---|
1916 | if test -z "$CC"; then |
---|
1917 | ac_ct_CC=$CC |
---|
1918 | for ac_prog in $comps |
---|
1919 | do |
---|
1920 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1921 | set dummy $ac_prog; ac_word=$2 |
---|
1922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1924 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1926 | else |
---|
1927 | if test -n "$ac_ct_CC"; then |
---|
1928 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1929 | else |
---|
1930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1931 | for as_dir in $PATH |
---|
1932 | do |
---|
1933 | IFS=$as_save_IFS |
---|
1934 | test -z "$as_dir" && as_dir=. |
---|
1935 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1937 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1939 | break 2 |
---|
1940 | fi |
---|
1941 | done |
---|
1942 | done |
---|
1943 | |
---|
1944 | fi |
---|
1945 | fi |
---|
1946 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1947 | if test -n "$ac_ct_CC"; then |
---|
1948 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1949 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1950 | else |
---|
1951 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1952 | echo "${ECHO_T}no" >&6 |
---|
1953 | fi |
---|
1954 | |
---|
1955 | test -n "$ac_ct_CC" && break |
---|
1956 | done |
---|
1957 | |
---|
1958 | CC=$ac_ct_CC |
---|
1959 | fi |
---|
1960 | |
---|
1961 | |
---|
1962 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1963 | See \`config.log' for more details." >&5 |
---|
1964 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1965 | See \`config.log' for more details." >&2;} |
---|
1966 | { (exit 1); exit 1; }; } |
---|
1967 | |
---|
1968 | # Provide some information about the compiler. |
---|
1969 | echo "$as_me:$LINENO:" \ |
---|
1970 | "checking for C compiler version" >&5 |
---|
1971 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1972 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1973 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1974 | ac_status=$? |
---|
1975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1976 | (exit $ac_status); } |
---|
1977 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1978 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1979 | ac_status=$? |
---|
1980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1981 | (exit $ac_status); } |
---|
1982 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1983 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1984 | ac_status=$? |
---|
1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1986 | (exit $ac_status); } |
---|
1987 | |
---|
1988 | cat >conftest.$ac_ext <<_ACEOF |
---|
1989 | /* confdefs.h. */ |
---|
1990 | _ACEOF |
---|
1991 | cat confdefs.h >>conftest.$ac_ext |
---|
1992 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1993 | /* end confdefs.h. */ |
---|
1994 | |
---|
1995 | int |
---|
1996 | main () |
---|
1997 | { |
---|
1998 | |
---|
1999 | ; |
---|
2000 | return 0; |
---|
2001 | } |
---|
2002 | _ACEOF |
---|
2003 | ac_clean_files_save=$ac_clean_files |
---|
2004 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2005 | # Try to create an executable without -o first, disregard a.out. |
---|
2006 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2007 | # of exeext. |
---|
2008 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2009 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2010 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2011 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2012 | (eval $ac_link_default) 2>&5 |
---|
2013 | ac_status=$? |
---|
2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2015 | (exit $ac_status); }; then |
---|
2016 | # Find the output, starting from the most likely. This scheme is |
---|
2017 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2018 | # resort. |
---|
2019 | |
---|
2020 | # Be careful to initialize this variable, since it used to be cached. |
---|
2021 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2022 | ac_cv_exeext= |
---|
2023 | # b.out is created by i960 compilers. |
---|
2024 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2025 | do |
---|
2026 | test -f "$ac_file" || continue |
---|
2027 | case $ac_file in |
---|
2028 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2029 | ;; |
---|
2030 | conftest.$ac_ext ) |
---|
2031 | # This is the source file. |
---|
2032 | ;; |
---|
2033 | [ab].out ) |
---|
2034 | # We found the default executable, but exeext='' is most |
---|
2035 | # certainly right. |
---|
2036 | break;; |
---|
2037 | *.* ) |
---|
2038 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2039 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2040 | # but it would be cool to find out if it's true. Does anybody |
---|
2041 | # maintain Libtool? --akim. |
---|
2042 | export ac_cv_exeext |
---|
2043 | break;; |
---|
2044 | * ) |
---|
2045 | break;; |
---|
2046 | esac |
---|
2047 | done |
---|
2048 | else |
---|
2049 | echo "$as_me: failed program was:" >&5 |
---|
2050 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2051 | |
---|
2052 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2053 | See \`config.log' for more details." >&5 |
---|
2054 | echo "$as_me: error: C compiler cannot create executables |
---|
2055 | See \`config.log' for more details." >&2;} |
---|
2056 | { (exit 77); exit 77; }; } |
---|
2057 | fi |
---|
2058 | |
---|
2059 | ac_exeext=$ac_cv_exeext |
---|
2060 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2061 | echo "${ECHO_T}$ac_file" >&6 |
---|
2062 | |
---|
2063 | # Check the compiler produces executables we can run. If not, either |
---|
2064 | # the compiler is broken, or we cross compile. |
---|
2065 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2066 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2067 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2068 | # If not cross compiling, check that we can run a simple program. |
---|
2069 | if test "$cross_compiling" != yes; then |
---|
2070 | if { ac_try='./$ac_file' |
---|
2071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2072 | (eval $ac_try) 2>&5 |
---|
2073 | ac_status=$? |
---|
2074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2075 | (exit $ac_status); }; }; then |
---|
2076 | cross_compiling=no |
---|
2077 | else |
---|
2078 | if test "$cross_compiling" = maybe; then |
---|
2079 | cross_compiling=yes |
---|
2080 | else |
---|
2081 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2082 | If you meant to cross compile, use \`--host'. |
---|
2083 | See \`config.log' for more details." >&5 |
---|
2084 | echo "$as_me: error: cannot run C compiled programs. |
---|
2085 | If you meant to cross compile, use \`--host'. |
---|
2086 | See \`config.log' for more details." >&2;} |
---|
2087 | { (exit 1); exit 1; }; } |
---|
2088 | fi |
---|
2089 | fi |
---|
2090 | fi |
---|
2091 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2092 | echo "${ECHO_T}yes" >&6 |
---|
2093 | |
---|
2094 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2095 | ac_clean_files=$ac_clean_files_save |
---|
2096 | # Check the compiler produces executables we can run. If not, either |
---|
2097 | # the compiler is broken, or we cross compile. |
---|
2098 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2099 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2100 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2101 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2102 | |
---|
2103 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2104 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2106 | (eval $ac_link) 2>&5 |
---|
2107 | ac_status=$? |
---|
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2109 | (exit $ac_status); }; then |
---|
2110 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2111 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2112 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2113 | # `rm'. |
---|
2114 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2115 | test -f "$ac_file" || continue |
---|
2116 | case $ac_file in |
---|
2117 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2118 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2119 | export ac_cv_exeext |
---|
2120 | break;; |
---|
2121 | * ) break;; |
---|
2122 | esac |
---|
2123 | done |
---|
2124 | else |
---|
2125 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2126 | See \`config.log' for more details." >&5 |
---|
2127 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2128 | See \`config.log' for more details." >&2;} |
---|
2129 | { (exit 1); exit 1; }; } |
---|
2130 | fi |
---|
2131 | |
---|
2132 | rm -f conftest$ac_cv_exeext |
---|
2133 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2134 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2135 | |
---|
2136 | rm -f conftest.$ac_ext |
---|
2137 | EXEEXT=$ac_cv_exeext |
---|
2138 | ac_exeext=$EXEEXT |
---|
2139 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2140 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2141 | if test "${ac_cv_objext+set}" = set; then |
---|
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2143 | else |
---|
2144 | cat >conftest.$ac_ext <<_ACEOF |
---|
2145 | /* confdefs.h. */ |
---|
2146 | _ACEOF |
---|
2147 | cat confdefs.h >>conftest.$ac_ext |
---|
2148 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2149 | /* end confdefs.h. */ |
---|
2150 | |
---|
2151 | int |
---|
2152 | main () |
---|
2153 | { |
---|
2154 | |
---|
2155 | ; |
---|
2156 | return 0; |
---|
2157 | } |
---|
2158 | _ACEOF |
---|
2159 | rm -f conftest.o conftest.obj |
---|
2160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2161 | (eval $ac_compile) 2>&5 |
---|
2162 | ac_status=$? |
---|
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2164 | (exit $ac_status); }; then |
---|
2165 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2166 | case $ac_file in |
---|
2167 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2168 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2169 | break;; |
---|
2170 | esac |
---|
2171 | done |
---|
2172 | else |
---|
2173 | echo "$as_me: failed program was:" >&5 |
---|
2174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2175 | |
---|
2176 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2177 | See \`config.log' for more details." >&5 |
---|
2178 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2179 | See \`config.log' for more details." >&2;} |
---|
2180 | { (exit 1); exit 1; }; } |
---|
2181 | fi |
---|
2182 | |
---|
2183 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2184 | fi |
---|
2185 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2186 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2187 | OBJEXT=$ac_cv_objext |
---|
2188 | ac_objext=$OBJEXT |
---|
2189 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2190 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2191 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2193 | else |
---|
2194 | cat >conftest.$ac_ext <<_ACEOF |
---|
2195 | /* confdefs.h. */ |
---|
2196 | _ACEOF |
---|
2197 | cat confdefs.h >>conftest.$ac_ext |
---|
2198 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2199 | /* end confdefs.h. */ |
---|
2200 | |
---|
2201 | int |
---|
2202 | main () |
---|
2203 | { |
---|
2204 | #ifndef __GNUC__ |
---|
2205 | choke me |
---|
2206 | #endif |
---|
2207 | |
---|
2208 | ; |
---|
2209 | return 0; |
---|
2210 | } |
---|
2211 | _ACEOF |
---|
2212 | rm -f conftest.$ac_objext |
---|
2213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2214 | (eval $ac_compile) 2>conftest.er1 |
---|
2215 | ac_status=$? |
---|
2216 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2217 | rm -f conftest.er1 |
---|
2218 | cat conftest.err >&5 |
---|
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2220 | (exit $ac_status); } && |
---|
2221 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2222 | || test ! -s conftest.err' |
---|
2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2224 | (eval $ac_try) 2>&5 |
---|
2225 | ac_status=$? |
---|
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2227 | (exit $ac_status); }; } && |
---|
2228 | { ac_try='test -s conftest.$ac_objext' |
---|
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2230 | (eval $ac_try) 2>&5 |
---|
2231 | ac_status=$? |
---|
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2233 | (exit $ac_status); }; }; then |
---|
2234 | ac_compiler_gnu=yes |
---|
2235 | else |
---|
2236 | echo "$as_me: failed program was:" >&5 |
---|
2237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2238 | |
---|
2239 | ac_compiler_gnu=no |
---|
2240 | fi |
---|
2241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2242 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2243 | |
---|
2244 | fi |
---|
2245 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2246 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2247 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2248 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2249 | ac_save_CFLAGS=$CFLAGS |
---|
2250 | CFLAGS="-g" |
---|
2251 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2252 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2253 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2255 | else |
---|
2256 | cat >conftest.$ac_ext <<_ACEOF |
---|
2257 | /* confdefs.h. */ |
---|
2258 | _ACEOF |
---|
2259 | cat confdefs.h >>conftest.$ac_ext |
---|
2260 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2261 | /* end confdefs.h. */ |
---|
2262 | |
---|
2263 | int |
---|
2264 | main () |
---|
2265 | { |
---|
2266 | |
---|
2267 | ; |
---|
2268 | return 0; |
---|
2269 | } |
---|
2270 | _ACEOF |
---|
2271 | rm -f conftest.$ac_objext |
---|
2272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2273 | (eval $ac_compile) 2>conftest.er1 |
---|
2274 | ac_status=$? |
---|
2275 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2276 | rm -f conftest.er1 |
---|
2277 | cat conftest.err >&5 |
---|
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2279 | (exit $ac_status); } && |
---|
2280 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2281 | || test ! -s conftest.err' |
---|
2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2283 | (eval $ac_try) 2>&5 |
---|
2284 | ac_status=$? |
---|
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2286 | (exit $ac_status); }; } && |
---|
2287 | { ac_try='test -s conftest.$ac_objext' |
---|
2288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2289 | (eval $ac_try) 2>&5 |
---|
2290 | ac_status=$? |
---|
2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2292 | (exit $ac_status); }; }; then |
---|
2293 | ac_cv_prog_cc_g=yes |
---|
2294 | else |
---|
2295 | echo "$as_me: failed program was:" >&5 |
---|
2296 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2297 | |
---|
2298 | ac_cv_prog_cc_g=no |
---|
2299 | fi |
---|
2300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2301 | fi |
---|
2302 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2303 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2304 | if test "$ac_test_CFLAGS" = set; then |
---|
2305 | CFLAGS=$ac_save_CFLAGS |
---|
2306 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2307 | if test "$GCC" = yes; then |
---|
2308 | CFLAGS="-g -O2" |
---|
2309 | else |
---|
2310 | CFLAGS="-g" |
---|
2311 | fi |
---|
2312 | else |
---|
2313 | if test "$GCC" = yes; then |
---|
2314 | CFLAGS="-O2" |
---|
2315 | else |
---|
2316 | CFLAGS= |
---|
2317 | fi |
---|
2318 | fi |
---|
2319 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2320 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2321 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2323 | else |
---|
2324 | ac_cv_prog_cc_stdc=no |
---|
2325 | ac_save_CC=$CC |
---|
2326 | cat >conftest.$ac_ext <<_ACEOF |
---|
2327 | /* confdefs.h. */ |
---|
2328 | _ACEOF |
---|
2329 | cat confdefs.h >>conftest.$ac_ext |
---|
2330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2331 | /* end confdefs.h. */ |
---|
2332 | #include <stdarg.h> |
---|
2333 | #include <stdio.h> |
---|
2334 | #include <sys/types.h> |
---|
2335 | #include <sys/stat.h> |
---|
2336 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2337 | struct buf { int x; }; |
---|
2338 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2339 | static char *e (p, i) |
---|
2340 | char **p; |
---|
2341 | int i; |
---|
2342 | { |
---|
2343 | return p[i]; |
---|
2344 | } |
---|
2345 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2346 | { |
---|
2347 | char *s; |
---|
2348 | va_list v; |
---|
2349 | va_start (v,p); |
---|
2350 | s = g (p, va_arg (v,int)); |
---|
2351 | va_end (v); |
---|
2352 | return s; |
---|
2353 | } |
---|
2354 | |
---|
2355 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2356 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2357 | These don't provoke an error unfortunately, instead are silently treated |
---|
2358 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2359 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2360 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2361 | that's true only with -std1. */ |
---|
2362 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2363 | |
---|
2364 | int test (int i, double x); |
---|
2365 | struct s1 {int (*f) (int a);}; |
---|
2366 | struct s2 {int (*f) (double a);}; |
---|
2367 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2368 | int argc; |
---|
2369 | char **argv; |
---|
2370 | int |
---|
2371 | main () |
---|
2372 | { |
---|
2373 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2374 | ; |
---|
2375 | return 0; |
---|
2376 | } |
---|
2377 | _ACEOF |
---|
2378 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2379 | # breaks some systems' header files. |
---|
2380 | # AIX -qlanglvl=ansi |
---|
2381 | # Ultrix and OSF/1 -std1 |
---|
2382 | # HP-UX 10.20 and later -Ae |
---|
2383 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2384 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2385 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2386 | do |
---|
2387 | CC="$ac_save_CC $ac_arg" |
---|
2388 | rm -f conftest.$ac_objext |
---|
2389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2390 | (eval $ac_compile) 2>conftest.er1 |
---|
2391 | ac_status=$? |
---|
2392 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2393 | rm -f conftest.er1 |
---|
2394 | cat conftest.err >&5 |
---|
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2396 | (exit $ac_status); } && |
---|
2397 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2398 | || test ! -s conftest.err' |
---|
2399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2400 | (eval $ac_try) 2>&5 |
---|
2401 | ac_status=$? |
---|
2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2403 | (exit $ac_status); }; } && |
---|
2404 | { ac_try='test -s conftest.$ac_objext' |
---|
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2406 | (eval $ac_try) 2>&5 |
---|
2407 | ac_status=$? |
---|
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2409 | (exit $ac_status); }; }; then |
---|
2410 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2411 | break |
---|
2412 | else |
---|
2413 | echo "$as_me: failed program was:" >&5 |
---|
2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2415 | |
---|
2416 | fi |
---|
2417 | rm -f conftest.err conftest.$ac_objext |
---|
2418 | done |
---|
2419 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2420 | CC=$ac_save_CC |
---|
2421 | |
---|
2422 | fi |
---|
2423 | |
---|
2424 | case "x$ac_cv_prog_cc_stdc" in |
---|
2425 | x|xno) |
---|
2426 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2427 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2428 | *) |
---|
2429 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2430 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2431 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2432 | esac |
---|
2433 | |
---|
2434 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2435 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2436 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2437 | # the declaration of exit, since it's the most demanding environment. |
---|
2438 | cat >conftest.$ac_ext <<_ACEOF |
---|
2439 | #ifndef __cplusplus |
---|
2440 | choke me |
---|
2441 | #endif |
---|
2442 | _ACEOF |
---|
2443 | rm -f conftest.$ac_objext |
---|
2444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2445 | (eval $ac_compile) 2>conftest.er1 |
---|
2446 | ac_status=$? |
---|
2447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2448 | rm -f conftest.er1 |
---|
2449 | cat conftest.err >&5 |
---|
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2451 | (exit $ac_status); } && |
---|
2452 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2453 | || test ! -s conftest.err' |
---|
2454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2455 | (eval $ac_try) 2>&5 |
---|
2456 | ac_status=$? |
---|
2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2458 | (exit $ac_status); }; } && |
---|
2459 | { ac_try='test -s conftest.$ac_objext' |
---|
2460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2461 | (eval $ac_try) 2>&5 |
---|
2462 | ac_status=$? |
---|
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2464 | (exit $ac_status); }; }; then |
---|
2465 | for ac_declaration in \ |
---|
2466 | '' \ |
---|
2467 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2468 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2469 | 'extern "C" void exit (int) throw ();' \ |
---|
2470 | 'extern "C" void exit (int);' \ |
---|
2471 | 'void exit (int);' |
---|
2472 | do |
---|
2473 | cat >conftest.$ac_ext <<_ACEOF |
---|
2474 | /* confdefs.h. */ |
---|
2475 | _ACEOF |
---|
2476 | cat confdefs.h >>conftest.$ac_ext |
---|
2477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2478 | /* end confdefs.h. */ |
---|
2479 | $ac_declaration |
---|
2480 | #include <stdlib.h> |
---|
2481 | int |
---|
2482 | main () |
---|
2483 | { |
---|
2484 | exit (42); |
---|
2485 | ; |
---|
2486 | return 0; |
---|
2487 | } |
---|
2488 | _ACEOF |
---|
2489 | rm -f conftest.$ac_objext |
---|
2490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2491 | (eval $ac_compile) 2>conftest.er1 |
---|
2492 | ac_status=$? |
---|
2493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2494 | rm -f conftest.er1 |
---|
2495 | cat conftest.err >&5 |
---|
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2497 | (exit $ac_status); } && |
---|
2498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2499 | || test ! -s conftest.err' |
---|
2500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2501 | (eval $ac_try) 2>&5 |
---|
2502 | ac_status=$? |
---|
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2504 | (exit $ac_status); }; } && |
---|
2505 | { ac_try='test -s conftest.$ac_objext' |
---|
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2507 | (eval $ac_try) 2>&5 |
---|
2508 | ac_status=$? |
---|
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2510 | (exit $ac_status); }; }; then |
---|
2511 | : |
---|
2512 | else |
---|
2513 | echo "$as_me: failed program was:" >&5 |
---|
2514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2515 | |
---|
2516 | continue |
---|
2517 | fi |
---|
2518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2519 | cat >conftest.$ac_ext <<_ACEOF |
---|
2520 | /* confdefs.h. */ |
---|
2521 | _ACEOF |
---|
2522 | cat confdefs.h >>conftest.$ac_ext |
---|
2523 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2524 | /* end confdefs.h. */ |
---|
2525 | $ac_declaration |
---|
2526 | int |
---|
2527 | main () |
---|
2528 | { |
---|
2529 | exit (42); |
---|
2530 | ; |
---|
2531 | return 0; |
---|
2532 | } |
---|
2533 | _ACEOF |
---|
2534 | rm -f conftest.$ac_objext |
---|
2535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2536 | (eval $ac_compile) 2>conftest.er1 |
---|
2537 | ac_status=$? |
---|
2538 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2539 | rm -f conftest.er1 |
---|
2540 | cat conftest.err >&5 |
---|
2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2542 | (exit $ac_status); } && |
---|
2543 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2544 | || test ! -s conftest.err' |
---|
2545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2546 | (eval $ac_try) 2>&5 |
---|
2547 | ac_status=$? |
---|
2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2549 | (exit $ac_status); }; } && |
---|
2550 | { ac_try='test -s conftest.$ac_objext' |
---|
2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2552 | (eval $ac_try) 2>&5 |
---|
2553 | ac_status=$? |
---|
2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2555 | (exit $ac_status); }; }; then |
---|
2556 | break |
---|
2557 | else |
---|
2558 | echo "$as_me: failed program was:" >&5 |
---|
2559 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2560 | |
---|
2561 | fi |
---|
2562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2563 | done |
---|
2564 | rm -f conftest* |
---|
2565 | if test -n "$ac_declaration"; then |
---|
2566 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2567 | echo $ac_declaration >>confdefs.h |
---|
2568 | echo '#endif' >>confdefs.h |
---|
2569 | fi |
---|
2570 | |
---|
2571 | else |
---|
2572 | echo "$as_me: failed program was:" >&5 |
---|
2573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2574 | |
---|
2575 | fi |
---|
2576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2577 | ac_ext=c |
---|
2578 | ac_cpp='$CPP $CPPFLAGS' |
---|
2579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2582 | |
---|
2583 | if test -z "$CC" ; then |
---|
2584 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2585 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2586 | { (exit 1); exit 1; }; } |
---|
2587 | fi |
---|
2588 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2589 | case "$CC" in |
---|
2590 | cl* | */cl* | CL* | */CL* ) |
---|
2591 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2592 | ac_cv_prog_cc_g=no |
---|
2593 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2594 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2595 | fi ;; |
---|
2596 | esac |
---|
2597 | CFLAGS="$save_cflags" |
---|
2598 | |
---|
2599 | # Check if a project specific CFLAGS variable has been set |
---|
2600 | if test x$COIN_PRJCT != x; then |
---|
2601 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2602 | if test x$coin_tmp = xset; then |
---|
2603 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2604 | fi |
---|
2605 | fi |
---|
2606 | |
---|
2607 | if test x"$CFLAGS" = x; then |
---|
2608 | |
---|
2609 | coin_add_cflags= |
---|
2610 | coin_opt_cflags= |
---|
2611 | coin_dbg_cflags= |
---|
2612 | coin_warn_cflags= |
---|
2613 | |
---|
2614 | if test "$GCC" = "yes"; then |
---|
2615 | case "$CC" in |
---|
2616 | icc* | */icc*) |
---|
2617 | ;; |
---|
2618 | *) |
---|
2619 | coin_opt_cflags="-O3 -fomit-frame-pointer" |
---|
2620 | coin_add_cflags="-pipe" |
---|
2621 | coin_dbg_cflags="-g" |
---|
2622 | coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" |
---|
2623 | case $enable_doscompile in |
---|
2624 | mingw) |
---|
2625 | CFLAGS="-mno-cygwin" |
---|
2626 | cat >conftest.$ac_ext <<_ACEOF |
---|
2627 | /* confdefs.h. */ |
---|
2628 | _ACEOF |
---|
2629 | cat confdefs.h >>conftest.$ac_ext |
---|
2630 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2631 | /* end confdefs.h. */ |
---|
2632 | |
---|
2633 | int |
---|
2634 | main () |
---|
2635 | { |
---|
2636 | int i=0; i++; |
---|
2637 | ; |
---|
2638 | return 0; |
---|
2639 | } |
---|
2640 | _ACEOF |
---|
2641 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2643 | (eval $ac_link) 2>conftest.er1 |
---|
2644 | ac_status=$? |
---|
2645 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2646 | rm -f conftest.er1 |
---|
2647 | cat conftest.err >&5 |
---|
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2649 | (exit $ac_status); } && |
---|
2650 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2651 | || test ! -s conftest.err' |
---|
2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2653 | (eval $ac_try) 2>&5 |
---|
2654 | ac_status=$? |
---|
2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2656 | (exit $ac_status); }; } && |
---|
2657 | { ac_try='test -s conftest$ac_exeext' |
---|
2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2659 | (eval $ac_try) 2>&5 |
---|
2660 | ac_status=$? |
---|
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2662 | (exit $ac_status); }; }; then |
---|
2663 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2664 | else |
---|
2665 | echo "$as_me: failed program was:" >&5 |
---|
2666 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2667 | |
---|
2668 | fi |
---|
2669 | rm -f conftest.err conftest.$ac_objext \ |
---|
2670 | conftest$ac_exeext conftest.$ac_ext |
---|
2671 | CFLAGS= |
---|
2672 | ;; |
---|
2673 | esac |
---|
2674 | esac |
---|
2675 | fi |
---|
2676 | if test -z "$coin_opt_cflags"; then |
---|
2677 | case $build in |
---|
2678 | *-cygwin* | *-mingw*) |
---|
2679 | case "$CC" in |
---|
2680 | cl* | */cl* | CL* | */CL*) |
---|
2681 | coin_opt_cflags='-MT -O2' |
---|
2682 | coin_add_cflags='-nologo -wd4996' |
---|
2683 | coin_dbg_cflags='-MTd' |
---|
2684 | ;; |
---|
2685 | esac |
---|
2686 | ;; |
---|
2687 | *-linux-*) |
---|
2688 | case "$CC" in |
---|
2689 | icc* | */icc*) |
---|
2690 | coin_opt_cflags="-O3 -ip" |
---|
2691 | coin_add_cflags="" |
---|
2692 | coin_dbg_cflags="-g" |
---|
2693 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2694 | CFLAGS= |
---|
2695 | cat >conftest.$ac_ext <<_ACEOF |
---|
2696 | /* confdefs.h. */ |
---|
2697 | _ACEOF |
---|
2698 | cat confdefs.h >>conftest.$ac_ext |
---|
2699 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2700 | /* end confdefs.h. */ |
---|
2701 | |
---|
2702 | int |
---|
2703 | main () |
---|
2704 | { |
---|
2705 | int i=0; i++; |
---|
2706 | ; |
---|
2707 | return 0; |
---|
2708 | } |
---|
2709 | _ACEOF |
---|
2710 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2712 | (eval $ac_link) 2>conftest.er1 |
---|
2713 | ac_status=$? |
---|
2714 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2715 | rm -f conftest.er1 |
---|
2716 | cat conftest.err >&5 |
---|
2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2718 | (exit $ac_status); } && |
---|
2719 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2720 | || test ! -s conftest.err' |
---|
2721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2722 | (eval $ac_try) 2>&5 |
---|
2723 | ac_status=$? |
---|
2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2725 | (exit $ac_status); }; } && |
---|
2726 | { ac_try='test -s conftest$ac_exeext' |
---|
2727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2728 | (eval $ac_try) 2>&5 |
---|
2729 | ac_status=$? |
---|
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2731 | (exit $ac_status); }; }; then |
---|
2732 | : |
---|
2733 | else |
---|
2734 | echo "$as_me: failed program was:" >&5 |
---|
2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2736 | |
---|
2737 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2738 | fi |
---|
2739 | rm -f conftest.err conftest.$ac_objext \ |
---|
2740 | conftest$ac_exeext conftest.$ac_ext |
---|
2741 | ;; |
---|
2742 | pgcc* | */pgcc*) |
---|
2743 | coin_opt_cflags="-fast" |
---|
2744 | coin_add_cflags="-Kieee -pc 64" |
---|
2745 | coin_dbg_cflags="-g" |
---|
2746 | ;; |
---|
2747 | esac |
---|
2748 | ;; |
---|
2749 | *-ibm-*) |
---|
2750 | case "$CC" in |
---|
2751 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2752 | coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2753 | coin_add_cflags="-bmaxdata:0x80000000" |
---|
2754 | coin_dbg_cflags="-g" |
---|
2755 | ;; |
---|
2756 | esac |
---|
2757 | ;; |
---|
2758 | *-hp-*) |
---|
2759 | coin_opt_cflags="-O" |
---|
2760 | coin_add_cflags="-Ae" |
---|
2761 | coin_dbg_cflags="-g" |
---|
2762 | ;; |
---|
2763 | *-sun-*) |
---|
2764 | coin_opt_cflags="-xO4" |
---|
2765 | coin_dbg_cflags="-g" |
---|
2766 | ;; |
---|
2767 | *-sgi-*) |
---|
2768 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2769 | coin_dbg_cflags="-g" |
---|
2770 | ;; |
---|
2771 | esac |
---|
2772 | fi |
---|
2773 | |
---|
2774 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2775 | coin_dbg_cflags="-g" |
---|
2776 | fi |
---|
2777 | |
---|
2778 | if test -z "$coin_opt_cflags"; then |
---|
2779 | # Try if -O option works if nothing else is set |
---|
2780 | CFLAGS="-O" |
---|
2781 | cat >conftest.$ac_ext <<_ACEOF |
---|
2782 | /* confdefs.h. */ |
---|
2783 | _ACEOF |
---|
2784 | cat confdefs.h >>conftest.$ac_ext |
---|
2785 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2786 | /* end confdefs.h. */ |
---|
2787 | |
---|
2788 | int |
---|
2789 | main () |
---|
2790 | { |
---|
2791 | int i=0; i++; |
---|
2792 | ; |
---|
2793 | return 0; |
---|
2794 | } |
---|
2795 | _ACEOF |
---|
2796 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2798 | (eval $ac_link) 2>conftest.er1 |
---|
2799 | ac_status=$? |
---|
2800 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2801 | rm -f conftest.er1 |
---|
2802 | cat conftest.err >&5 |
---|
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2804 | (exit $ac_status); } && |
---|
2805 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2806 | || test ! -s conftest.err' |
---|
2807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2808 | (eval $ac_try) 2>&5 |
---|
2809 | ac_status=$? |
---|
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2811 | (exit $ac_status); }; } && |
---|
2812 | { ac_try='test -s conftest$ac_exeext' |
---|
2813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2814 | (eval $ac_try) 2>&5 |
---|
2815 | ac_status=$? |
---|
2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2817 | (exit $ac_status); }; }; then |
---|
2818 | coin_opt_cflags="-O" |
---|
2819 | else |
---|
2820 | echo "$as_me: failed program was:" >&5 |
---|
2821 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2822 | |
---|
2823 | fi |
---|
2824 | rm -f conftest.err conftest.$ac_objext \ |
---|
2825 | conftest$ac_exeext conftest.$ac_ext |
---|
2826 | fi |
---|
2827 | |
---|
2828 | # if PM doesn't want the warning messages, take them out |
---|
2829 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
2830 | coin_warn_cflags= |
---|
2831 | fi |
---|
2832 | |
---|
2833 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2834 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
2835 | fi |
---|
2836 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2837 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
2838 | fi |
---|
2839 | |
---|
2840 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2841 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2842 | |
---|
2843 | if test "$coin_debug_compile" = "true"; then |
---|
2844 | CFLAGS="$DBG_CFLAGS" |
---|
2845 | else |
---|
2846 | CFLAGS="$OPT_CFLAGS" |
---|
2847 | fi |
---|
2848 | else |
---|
2849 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2850 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2851 | DBG_CFLAGS="$CFLAGS" |
---|
2852 | fi |
---|
2853 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2854 | OPT_CFLAGS="$CFLAGS" |
---|
2855 | fi |
---|
2856 | fi |
---|
2857 | |
---|
2858 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
2859 | |
---|
2860 | case "$CFLAGS" in |
---|
2861 | *-mno-cygwin*) |
---|
2862 | if test x${CPPFLAGS+set} != xset ; then |
---|
2863 | CPPFLAGS="-mno-cygwin" |
---|
2864 | else |
---|
2865 | case "$CPPFLAGS" in |
---|
2866 | *-mno-cygwin*) |
---|
2867 | ;; |
---|
2868 | *) |
---|
2869 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
2870 | ;; |
---|
2871 | esac |
---|
2872 | fi ;; |
---|
2873 | esac |
---|
2874 | |
---|
2875 | # Try if CFLAGS works |
---|
2876 | save_CFLAGS="$CFLAGS" |
---|
2877 | cat >conftest.$ac_ext <<_ACEOF |
---|
2878 | /* confdefs.h. */ |
---|
2879 | _ACEOF |
---|
2880 | cat confdefs.h >>conftest.$ac_ext |
---|
2881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2882 | /* end confdefs.h. */ |
---|
2883 | |
---|
2884 | int |
---|
2885 | main () |
---|
2886 | { |
---|
2887 | int i=0; i++; |
---|
2888 | ; |
---|
2889 | return 0; |
---|
2890 | } |
---|
2891 | _ACEOF |
---|
2892 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2894 | (eval $ac_link) 2>conftest.er1 |
---|
2895 | ac_status=$? |
---|
2896 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2897 | rm -f conftest.er1 |
---|
2898 | cat conftest.err >&5 |
---|
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2900 | (exit $ac_status); } && |
---|
2901 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2902 | || test ! -s conftest.err' |
---|
2903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2904 | (eval $ac_try) 2>&5 |
---|
2905 | ac_status=$? |
---|
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2907 | (exit $ac_status); }; } && |
---|
2908 | { ac_try='test -s conftest$ac_exeext' |
---|
2909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2910 | (eval $ac_try) 2>&5 |
---|
2911 | ac_status=$? |
---|
2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2913 | (exit $ac_status); }; }; then |
---|
2914 | : |
---|
2915 | else |
---|
2916 | echo "$as_me: failed program was:" >&5 |
---|
2917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2918 | |
---|
2919 | CFLAGS= |
---|
2920 | fi |
---|
2921 | rm -f conftest.err conftest.$ac_objext \ |
---|
2922 | conftest$ac_exeext conftest.$ac_ext |
---|
2923 | if test -z "$CFLAGS"; then |
---|
2924 | { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 |
---|
2925 | echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} |
---|
2926 | CFLAGS='-O' |
---|
2927 | cat >conftest.$ac_ext <<_ACEOF |
---|
2928 | /* confdefs.h. */ |
---|
2929 | _ACEOF |
---|
2930 | cat confdefs.h >>conftest.$ac_ext |
---|
2931 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2932 | /* end confdefs.h. */ |
---|
2933 | |
---|
2934 | int |
---|
2935 | main () |
---|
2936 | { |
---|
2937 | int i=0; i++; |
---|
2938 | ; |
---|
2939 | return 0; |
---|
2940 | } |
---|
2941 | _ACEOF |
---|
2942 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2944 | (eval $ac_link) 2>conftest.er1 |
---|
2945 | ac_status=$? |
---|
2946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2947 | rm -f conftest.er1 |
---|
2948 | cat conftest.err >&5 |
---|
2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2950 | (exit $ac_status); } && |
---|
2951 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2952 | || test ! -s conftest.err' |
---|
2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2954 | (eval $ac_try) 2>&5 |
---|
2955 | ac_status=$? |
---|
2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2957 | (exit $ac_status); }; } && |
---|
2958 | { ac_try='test -s conftest$ac_exeext' |
---|
2959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2960 | (eval $ac_try) 2>&5 |
---|
2961 | ac_status=$? |
---|
2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2963 | (exit $ac_status); }; }; then |
---|
2964 | : |
---|
2965 | else |
---|
2966 | echo "$as_me: failed program was:" >&5 |
---|
2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2968 | |
---|
2969 | CFLAGS= |
---|
2970 | fi |
---|
2971 | rm -f conftest.err conftest.$ac_objext \ |
---|
2972 | conftest$ac_exeext conftest.$ac_ext |
---|
2973 | if test -z "$CFLAGS"; then |
---|
2974 | { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 |
---|
2975 | echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} |
---|
2976 | fi |
---|
2977 | fi |
---|
2978 | |
---|
2979 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
2980 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
2981 | |
---|
2982 | |
---|
2983 | if test x"$MPICC" = x; then :; else |
---|
2984 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
2985 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
2986 | CC="$MPICC" |
---|
2987 | fi |
---|
2988 | |
---|
2989 | # Correct ADDLIBS initialization if we are using the MS compiler |
---|
2990 | case "$CC" in |
---|
2991 | cl* | */cl* | CL* | */CL*) |
---|
2992 | ADDLIBS= |
---|
2993 | case $build in |
---|
2994 | *-mingw*) |
---|
2995 | if test "${LD+set}" = set; then :; else |
---|
2996 | LD=link |
---|
2997 | fi |
---|
2998 | ;; |
---|
2999 | esac |
---|
3000 | case $enable_doscompile in |
---|
3001 | msvc) |
---|
3002 | if test "x${LD+set}" = xset; then :; else |
---|
3003 | LD=link |
---|
3004 | fi |
---|
3005 | ;; |
---|
3006 | esac |
---|
3007 | |
---|
3008 | ;; |
---|
3009 | esac |
---|
3010 | |
---|
3011 | ac_ext=c |
---|
3012 | ac_cpp='$CPP $CPPFLAGS' |
---|
3013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3016 | |
---|
3017 | |
---|
3018 | case $build in |
---|
3019 | *-cygwin* | *-mingw*) |
---|
3020 | if test "$enable_doscompile" = msvc ; then |
---|
3021 | coin_f77_comps="ifort fl32" |
---|
3022 | else |
---|
3023 | coin_f77_comps="gfortran g77 ifort fl32" |
---|
3024 | fi ;; |
---|
3025 | sparc-sun-solaris*) |
---|
3026 | coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3027 | *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3028 | esac |
---|
3029 | |
---|
3030 | |
---|
3031 | |
---|
3032 | |
---|
3033 | |
---|
3034 | |
---|
3035 | ac_ext=f |
---|
3036 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3037 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3038 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3039 | |
---|
3040 | |
---|
3041 | |
---|
3042 | |
---|
3043 | |
---|
3044 | |
---|
3045 | coin_has_f77=yes |
---|
3046 | |
---|
3047 | save_fflags="$FFLAGS" |
---|
3048 | |
---|
3049 | # We delete the cached value, since the test might not have been |
---|
3050 | # performed with our choice of compilers earlier |
---|
3051 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3052 | |
---|
3053 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3054 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3055 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3056 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3057 | # compiler. |
---|
3058 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3059 | |
---|
3060 | |
---|
3061 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3062 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3063 | for ac_prog in $coin_f77_comps |
---|
3064 | do |
---|
3065 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3066 | set dummy $ac_prog; ac_word=$2 |
---|
3067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3069 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3071 | else |
---|
3072 | if test -n "$F77"; then |
---|
3073 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3074 | else |
---|
3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3076 | for as_dir in $PATH |
---|
3077 | do |
---|
3078 | IFS=$as_save_IFS |
---|
3079 | test -z "$as_dir" && as_dir=. |
---|
3080 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3082 | ac_cv_prog_F77="$ac_prog" |
---|
3083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3084 | break 2 |
---|
3085 | fi |
---|
3086 | done |
---|
3087 | done |
---|
3088 | |
---|
3089 | fi |
---|
3090 | fi |
---|
3091 | F77=$ac_cv_prog_F77 |
---|
3092 | if test -n "$F77"; then |
---|
3093 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3094 | echo "${ECHO_T}$F77" >&6 |
---|
3095 | else |
---|
3096 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3097 | echo "${ECHO_T}no" >&6 |
---|
3098 | fi |
---|
3099 | |
---|
3100 | test -n "$F77" && break |
---|
3101 | done |
---|
3102 | test -n "$F77" || F77="unavailable" |
---|
3103 | |
---|
3104 | |
---|
3105 | if test "$F77" != "unavailable" ; then |
---|
3106 | ac_ext=f |
---|
3107 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3108 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3109 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3110 | if test -n "$ac_tool_prefix"; then |
---|
3111 | for ac_prog in $coin_f77_comps |
---|
3112 | do |
---|
3113 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3114 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3117 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3119 | else |
---|
3120 | if test -n "$F77"; then |
---|
3121 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3122 | else |
---|
3123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3124 | for as_dir in $PATH |
---|
3125 | do |
---|
3126 | IFS=$as_save_IFS |
---|
3127 | test -z "$as_dir" && as_dir=. |
---|
3128 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3130 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
3131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3132 | break 2 |
---|
3133 | fi |
---|
3134 | done |
---|
3135 | done |
---|
3136 | |
---|
3137 | fi |
---|
3138 | fi |
---|
3139 | F77=$ac_cv_prog_F77 |
---|
3140 | if test -n "$F77"; then |
---|
3141 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3142 | echo "${ECHO_T}$F77" >&6 |
---|
3143 | else |
---|
3144 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3145 | echo "${ECHO_T}no" >&6 |
---|
3146 | fi |
---|
3147 | |
---|
3148 | test -n "$F77" && break |
---|
3149 | done |
---|
3150 | fi |
---|
3151 | if test -z "$F77"; then |
---|
3152 | ac_ct_F77=$F77 |
---|
3153 | for ac_prog in $coin_f77_comps |
---|
3154 | do |
---|
3155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3156 | set dummy $ac_prog; ac_word=$2 |
---|
3157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3159 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3161 | else |
---|
3162 | if test -n "$ac_ct_F77"; then |
---|
3163 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
3164 | else |
---|
3165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3166 | for as_dir in $PATH |
---|
3167 | do |
---|
3168 | IFS=$as_save_IFS |
---|
3169 | test -z "$as_dir" && as_dir=. |
---|
3170 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3172 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
3173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3174 | break 2 |
---|
3175 | fi |
---|
3176 | done |
---|
3177 | done |
---|
3178 | |
---|
3179 | fi |
---|
3180 | fi |
---|
3181 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
3182 | if test -n "$ac_ct_F77"; then |
---|
3183 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
3184 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
3185 | else |
---|
3186 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3187 | echo "${ECHO_T}no" >&6 |
---|
3188 | fi |
---|
3189 | |
---|
3190 | test -n "$ac_ct_F77" && break |
---|
3191 | done |
---|
3192 | |
---|
3193 | F77=$ac_ct_F77 |
---|
3194 | fi |
---|
3195 | |
---|
3196 | |
---|
3197 | # Provide some information about the compiler. |
---|
3198 | echo "$as_me:3198:" \ |
---|
3199 | "checking for Fortran 77 compiler version" >&5 |
---|
3200 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3201 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3202 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3203 | ac_status=$? |
---|
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3205 | (exit $ac_status); } |
---|
3206 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3207 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3208 | ac_status=$? |
---|
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3210 | (exit $ac_status); } |
---|
3211 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3212 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3213 | ac_status=$? |
---|
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3215 | (exit $ac_status); } |
---|
3216 | rm -f a.out |
---|
3217 | |
---|
3218 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3219 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3220 | ac_save_ext=$ac_ext |
---|
3221 | ac_ext=F |
---|
3222 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
3223 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
3224 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
3225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3226 | else |
---|
3227 | cat >conftest.$ac_ext <<_ACEOF |
---|
3228 | program main |
---|
3229 | #ifndef __GNUC__ |
---|
3230 | choke me |
---|
3231 | #endif |
---|
3232 | |
---|
3233 | end |
---|
3234 | _ACEOF |
---|
3235 | rm -f conftest.$ac_objext |
---|
3236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3237 | (eval $ac_compile) 2>conftest.er1 |
---|
3238 | ac_status=$? |
---|
3239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3240 | rm -f conftest.er1 |
---|
3241 | cat conftest.err >&5 |
---|
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3243 | (exit $ac_status); } && |
---|
3244 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3245 | || test ! -s conftest.err' |
---|
3246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3247 | (eval $ac_try) 2>&5 |
---|
3248 | ac_status=$? |
---|
3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3250 | (exit $ac_status); }; } && |
---|
3251 | { ac_try='test -s conftest.$ac_objext' |
---|
3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3253 | (eval $ac_try) 2>&5 |
---|
3254 | ac_status=$? |
---|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3256 | (exit $ac_status); }; }; then |
---|
3257 | ac_compiler_gnu=yes |
---|
3258 | else |
---|
3259 | echo "$as_me: failed program was:" >&5 |
---|
3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3261 | |
---|
3262 | ac_compiler_gnu=no |
---|
3263 | fi |
---|
3264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3265 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
3266 | |
---|
3267 | fi |
---|
3268 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
3269 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
3270 | ac_ext=$ac_save_ext |
---|
3271 | ac_test_FFLAGS=${FFLAGS+set} |
---|
3272 | ac_save_FFLAGS=$FFLAGS |
---|
3273 | FFLAGS= |
---|
3274 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
3275 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
3276 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3278 | else |
---|
3279 | FFLAGS=-g |
---|
3280 | cat >conftest.$ac_ext <<_ACEOF |
---|
3281 | program main |
---|
3282 | |
---|
3283 | end |
---|
3284 | _ACEOF |
---|
3285 | rm -f conftest.$ac_objext |
---|
3286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3287 | (eval $ac_compile) 2>conftest.er1 |
---|
3288 | ac_status=$? |
---|
3289 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3290 | rm -f conftest.er1 |
---|
3291 | cat conftest.err >&5 |
---|
3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3293 | (exit $ac_status); } && |
---|
3294 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3295 | || test ! -s conftest.err' |
---|
3296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3297 | (eval $ac_try) 2>&5 |
---|
3298 | ac_status=$? |
---|
3299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3300 | (exit $ac_status); }; } && |
---|
3301 | { ac_try='test -s conftest.$ac_objext' |
---|
3302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3303 | (eval $ac_try) 2>&5 |
---|
3304 | ac_status=$? |
---|
3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3306 | (exit $ac_status); }; }; then |
---|
3307 | ac_cv_prog_f77_g=yes |
---|
3308 | else |
---|
3309 | echo "$as_me: failed program was:" >&5 |
---|
3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3311 | |
---|
3312 | ac_cv_prog_f77_g=no |
---|
3313 | fi |
---|
3314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3315 | |
---|
3316 | fi |
---|
3317 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
3318 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
3319 | if test "$ac_test_FFLAGS" = set; then |
---|
3320 | FFLAGS=$ac_save_FFLAGS |
---|
3321 | elif test $ac_cv_prog_f77_g = yes; then |
---|
3322 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3323 | FFLAGS="-g -O2" |
---|
3324 | else |
---|
3325 | FFLAGS="-g" |
---|
3326 | fi |
---|
3327 | else |
---|
3328 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
3329 | FFLAGS="-O2" |
---|
3330 | else |
---|
3331 | FFLAGS= |
---|
3332 | fi |
---|
3333 | fi |
---|
3334 | |
---|
3335 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
3336 | ac_ext=f |
---|
3337 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3338 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3339 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3340 | |
---|
3341 | else |
---|
3342 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
3343 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
3344 | fi |
---|
3345 | |
---|
3346 | FFLAGS="$save_fflags" |
---|
3347 | |
---|
3348 | # Check if a project specific FFLAGS variable has been set |
---|
3349 | if test x$COIN_PRJCT != x; then |
---|
3350 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
3351 | if test x$coin_tmp = xset; then |
---|
3352 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
3353 | fi |
---|
3354 | fi |
---|
3355 | |
---|
3356 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
3357 | |
---|
3358 | coin_add_fflags= |
---|
3359 | coin_opt_fflags= |
---|
3360 | coin_dbg_fflags= |
---|
3361 | coin_warn_fflags= |
---|
3362 | |
---|
3363 | if test "$G77" = "yes"; then |
---|
3364 | coin_opt_fflags="-O3 -fomit-frame-pointer" |
---|
3365 | coin_add_fflags="-pipe" |
---|
3366 | coin_dbg_fflags="-g" |
---|
3367 | case $enable_doscompile in |
---|
3368 | mingw) |
---|
3369 | FFLAGS="-mno-cygwin" |
---|
3370 | cat >conftest.$ac_ext <<_ACEOF |
---|
3371 | program main |
---|
3372 | write(*,*) 'Hello world' |
---|
3373 | end |
---|
3374 | _ACEOF |
---|
3375 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3377 | (eval $ac_link) 2>conftest.er1 |
---|
3378 | ac_status=$? |
---|
3379 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3380 | rm -f conftest.er1 |
---|
3381 | cat conftest.err >&5 |
---|
3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3383 | (exit $ac_status); } && |
---|
3384 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3385 | || test ! -s conftest.err' |
---|
3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3387 | (eval $ac_try) 2>&5 |
---|
3388 | ac_status=$? |
---|
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3390 | (exit $ac_status); }; } && |
---|
3391 | { ac_try='test -s conftest$ac_exeext' |
---|
3392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3393 | (eval $ac_try) 2>&5 |
---|
3394 | ac_status=$? |
---|
3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3396 | (exit $ac_status); }; }; then |
---|
3397 | coin_add_fflags="-mno-cygwin $coin_add_fflags" |
---|
3398 | else |
---|
3399 | echo "$as_me: failed program was:" >&5 |
---|
3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3401 | |
---|
3402 | fi |
---|
3403 | rm -f conftest.err conftest.$ac_objext \ |
---|
3404 | conftest$ac_exeext conftest.$ac_ext |
---|
3405 | FFLAGS= |
---|
3406 | ;; |
---|
3407 | esac |
---|
3408 | else |
---|
3409 | case $build in |
---|
3410 | *-cygwin* | *-mingw*) |
---|
3411 | case $F77 in |
---|
3412 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
3413 | coin_opt_fflags='-O3' |
---|
3414 | coin_add_fflags='-nologo -MT' |
---|
3415 | coin_dbg_fflags='-debug' |
---|
3416 | ;; |
---|
3417 | esac |
---|
3418 | ;; |
---|
3419 | *-linux-*) |
---|
3420 | case $F77 in |
---|
3421 | ifc* | */ifc* | ifort* | */ifort*) |
---|
3422 | coin_opt_fflags="-O3 -ip" |
---|
3423 | coin_add_fflags="-cm -w90 -w95" |
---|
3424 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
3425 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3426 | FFLAGS= |
---|
3427 | cat >conftest.$ac_ext <<_ACEOF |
---|
3428 | program main |
---|
3429 | write(*,*) 'Hello world' |
---|
3430 | end |
---|
3431 | _ACEOF |
---|
3432 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3434 | (eval $ac_link) 2>conftest.er1 |
---|
3435 | ac_status=$? |
---|
3436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3437 | rm -f conftest.er1 |
---|
3438 | cat conftest.err >&5 |
---|
3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3440 | (exit $ac_status); } && |
---|
3441 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3442 | || test ! -s conftest.err' |
---|
3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3444 | (eval $ac_try) 2>&5 |
---|
3445 | ac_status=$? |
---|
3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3447 | (exit $ac_status); }; } && |
---|
3448 | { ac_try='test -s conftest$ac_exeext' |
---|
3449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3450 | (eval $ac_try) 2>&5 |
---|
3451 | ac_status=$? |
---|
3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3453 | (exit $ac_status); }; }; then |
---|
3454 | : |
---|
3455 | else |
---|
3456 | echo "$as_me: failed program was:" >&5 |
---|
3457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3458 | |
---|
3459 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
3460 | fi |
---|
3461 | rm -f conftest.err conftest.$ac_objext \ |
---|
3462 | conftest$ac_exeext conftest.$ac_ext |
---|
3463 | ;; |
---|
3464 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
3465 | coin_opt_fflags="-fast" |
---|
3466 | coin_add_fflags="-Kieee -pc 64" |
---|
3467 | coin_dbg_fflags="-g" |
---|
3468 | ;; |
---|
3469 | esac |
---|
3470 | ;; |
---|
3471 | *-ibm-*) |
---|
3472 | case "$F77" in |
---|
3473 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
3474 | coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3475 | coin_add_fflags="-bmaxdata:0x80000000" |
---|
3476 | coin_dbg_fflags="-g -C" |
---|
3477 | ;; |
---|
3478 | esac |
---|
3479 | ;; |
---|
3480 | *-hp-*) |
---|
3481 | coin_opt_fflags="+O3" |
---|
3482 | coin_add_fflags="+U77" |
---|
3483 | coin_dbg_fflags="-C -g" |
---|
3484 | ;; |
---|
3485 | *-sun-*) |
---|
3486 | coin_opt_fflags="-O4" |
---|
3487 | coin_dbg_fflags="-g" |
---|
3488 | ;; |
---|
3489 | *-sgi-*) |
---|
3490 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
3491 | coin_dbg_fflags="-g" |
---|
3492 | ;; |
---|
3493 | esac |
---|
3494 | fi |
---|
3495 | |
---|
3496 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
3497 | coin_dbg_fflags="-g" |
---|
3498 | fi |
---|
3499 | |
---|
3500 | if test -z "$coin_opt_fflags"; then |
---|
3501 | # Try if -O option works if nothing else is set |
---|
3502 | FFLAGS=-O |
---|
3503 | cat >conftest.$ac_ext <<_ACEOF |
---|
3504 | program main |
---|
3505 | integer i |
---|
3506 | end |
---|
3507 | _ACEOF |
---|
3508 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3510 | (eval $ac_link) 2>conftest.er1 |
---|
3511 | ac_status=$? |
---|
3512 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3513 | rm -f conftest.er1 |
---|
3514 | cat conftest.err >&5 |
---|
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3516 | (exit $ac_status); } && |
---|
3517 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3518 | || test ! -s conftest.err' |
---|
3519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3520 | (eval $ac_try) 2>&5 |
---|
3521 | ac_status=$? |
---|
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3523 | (exit $ac_status); }; } && |
---|
3524 | { ac_try='test -s conftest$ac_exeext' |
---|
3525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3526 | (eval $ac_try) 2>&5 |
---|
3527 | ac_status=$? |
---|
3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3529 | (exit $ac_status); }; }; then |
---|
3530 | coin_opt_fflags="-O" |
---|
3531 | else |
---|
3532 | echo "$as_me: failed program was:" >&5 |
---|
3533 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3534 | |
---|
3535 | fi |
---|
3536 | rm -f conftest.err conftest.$ac_objext \ |
---|
3537 | conftest$ac_exeext conftest.$ac_ext |
---|
3538 | fi |
---|
3539 | |
---|
3540 | # if PM doesn't want the warning messages, take them out |
---|
3541 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
3542 | coin_warn_fflags= |
---|
3543 | fi |
---|
3544 | |
---|
3545 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3546 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3547 | fi |
---|
3548 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3549 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
3550 | fi |
---|
3551 | |
---|
3552 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
3553 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
3554 | |
---|
3555 | if test "$coin_debug_compile" = "true"; then |
---|
3556 | FFLAGS="$DBG_FFLAGS" |
---|
3557 | else |
---|
3558 | FFLAGS="$OPT_FFLAGS" |
---|
3559 | fi |
---|
3560 | else |
---|
3561 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
3562 | if test x${DBG_FFLAGS+set} != xset; then |
---|
3563 | DBG_FFLAGS="$FFLAGS" |
---|
3564 | fi |
---|
3565 | if test x${OPT_FFLAGS+set} != xset; then |
---|
3566 | OPT_FFLAGS="$FFLAGS" |
---|
3567 | fi |
---|
3568 | fi |
---|
3569 | |
---|
3570 | # If FFLAGS contains -mno-cygwin, CPPFLAGS must have it. |
---|
3571 | case "$FFLAGS" in |
---|
3572 | *-mno-cygwin*) |
---|
3573 | if test x${CPPFLAGS+set} != xset ; then |
---|
3574 | CPPFLAGS="-mno-cygwin" |
---|
3575 | else |
---|
3576 | case "$CPPFLAGS" in |
---|
3577 | *-mno-cygwin*) |
---|
3578 | ;; |
---|
3579 | *) |
---|
3580 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
3581 | ;; |
---|
3582 | esac |
---|
3583 | fi ;; |
---|
3584 | esac |
---|
3585 | |
---|
3586 | # Try if FFLAGS works |
---|
3587 | if test "$F77" != "unavailable" ; then |
---|
3588 | cat >conftest.$ac_ext <<_ACEOF |
---|
3589 | program main |
---|
3590 | integer i |
---|
3591 | end |
---|
3592 | _ACEOF |
---|
3593 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3595 | (eval $ac_link) 2>conftest.er1 |
---|
3596 | ac_status=$? |
---|
3597 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3598 | rm -f conftest.er1 |
---|
3599 | cat conftest.err >&5 |
---|
3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3601 | (exit $ac_status); } && |
---|
3602 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3603 | || test ! -s conftest.err' |
---|
3604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3605 | (eval $ac_try) 2>&5 |
---|
3606 | ac_status=$? |
---|
3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3608 | (exit $ac_status); }; } && |
---|
3609 | { ac_try='test -s conftest$ac_exeext' |
---|
3610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3611 | (eval $ac_try) 2>&5 |
---|
3612 | ac_status=$? |
---|
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3614 | (exit $ac_status); }; }; then |
---|
3615 | : |
---|
3616 | else |
---|
3617 | echo "$as_me: failed program was:" >&5 |
---|
3618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3619 | |
---|
3620 | FFLAGS= |
---|
3621 | fi |
---|
3622 | rm -f conftest.err conftest.$ac_objext \ |
---|
3623 | conftest$ac_exeext conftest.$ac_ext |
---|
3624 | if test -z "$FFLAGS"; then |
---|
3625 | { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 |
---|
3626 | echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} |
---|
3627 | FFLAGS='-O' |
---|
3628 | cat >conftest.$ac_ext <<_ACEOF |
---|
3629 | program main |
---|
3630 | integer i |
---|
3631 | end |
---|
3632 | _ACEOF |
---|
3633 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3635 | (eval $ac_link) 2>conftest.er1 |
---|
3636 | ac_status=$? |
---|
3637 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3638 | rm -f conftest.er1 |
---|
3639 | cat conftest.err >&5 |
---|
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3641 | (exit $ac_status); } && |
---|
3642 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
3643 | || test ! -s conftest.err' |
---|
3644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3645 | (eval $ac_try) 2>&5 |
---|
3646 | ac_status=$? |
---|
3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3648 | (exit $ac_status); }; } && |
---|
3649 | { ac_try='test -s conftest$ac_exeext' |
---|
3650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3651 | (eval $ac_try) 2>&5 |
---|
3652 | ac_status=$? |
---|
3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3654 | (exit $ac_status); }; }; then |
---|
3655 | : |
---|
3656 | else |
---|
3657 | echo "$as_me: failed program was:" >&5 |
---|
3658 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3659 | |
---|
3660 | FFLAGS= |
---|
3661 | fi |
---|
3662 | rm -f conftest.err conftest.$ac_objext \ |
---|
3663 | conftest$ac_exeext conftest.$ac_ext |
---|
3664 | if test -z "$FFLAGS"; then |
---|
3665 | { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 |
---|
3666 | echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} |
---|
3667 | fi |
---|
3668 | fi |
---|
3669 | fi |
---|
3670 | |
---|
3671 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
3672 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
3673 | |
---|
3674 | |
---|
3675 | if test x"$MPIF77" = x; then :; else |
---|
3676 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
3677 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
3678 | F77="$MPIF77" |
---|
3679 | fi |
---|
3680 | |
---|
3681 | case "$F77" in |
---|
3682 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
3683 | case $build in |
---|
3684 | *-mingw*) |
---|
3685 | if test "${LD+set}" = set; then :; else |
---|
3686 | LD=link |
---|
3687 | fi |
---|
3688 | ;; |
---|
3689 | esac |
---|
3690 | case $enable_doscompile in |
---|
3691 | msvc) |
---|
3692 | if test "x${LD+set}" = xset; then :; else |
---|
3693 | LD=link |
---|
3694 | fi |
---|
3695 | ;; |
---|
3696 | esac |
---|
3697 | |
---|
3698 | ;; |
---|
3699 | esac |
---|
3700 | |
---|
3701 | ac_ext=c |
---|
3702 | ac_cpp='$CPP $CPPFLAGS' |
---|
3703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3706 | |
---|
3707 | |
---|
3708 | |
---|
3709 | # Initialize automake |
---|
3710 | { |
---|
3711 | |
---|
3712 | |
---|
3713 | |
---|
3714 | # START |
---|
3715 | |
---|
3716 | # On Cygwin, building DLLs doesn't work |
---|
3717 | case $build in |
---|
3718 | *-cygwin*) |
---|
3719 | coin_disable_shared=yes |
---|
3720 | platform=Cygwin |
---|
3721 | ;; |
---|
3722 | *-mingw*) |
---|
3723 | coin_disable_shared=yes |
---|
3724 | platform="Msys" |
---|
3725 | # case "$CXX" in |
---|
3726 | # cl*) |
---|
3727 | # coin_disable_shared=yes |
---|
3728 | # platform="Msys with cl" |
---|
3729 | # ;; |
---|
3730 | # esac |
---|
3731 | ;; |
---|
3732 | esac |
---|
3733 | if test x"$coin_disable_shared" = xyes; then |
---|
3734 | if test x"$enable_shared" = xyes; then |
---|
3735 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
3736 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
3737 | fi |
---|
3738 | enable_shared=no |
---|
3739 | fi |
---|
3740 | # By default, we only want the shared objects to be compiled |
---|
3741 | # Check whether --enable-static or --disable-static was given. |
---|
3742 | if test "${enable_static+set}" = set; then |
---|
3743 | enableval="$enable_static" |
---|
3744 | p=${PACKAGE-default} |
---|
3745 | case $enableval in |
---|
3746 | yes) enable_static=yes ;; |
---|
3747 | no) enable_static=no ;; |
---|
3748 | *) |
---|
3749 | enable_static=no |
---|
3750 | # Look at the argument we got. We use all the common list separators. |
---|
3751 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3752 | for pkg in $enableval; do |
---|
3753 | IFS="$lt_save_ifs" |
---|
3754 | if test "X$pkg" = "X$p"; then |
---|
3755 | enable_static=yes |
---|
3756 | fi |
---|
3757 | done |
---|
3758 | IFS="$lt_save_ifs" |
---|
3759 | ;; |
---|
3760 | esac |
---|
3761 | else |
---|
3762 | enable_static=no |
---|
3763 | fi; |
---|
3764 | |
---|
3765 | |
---|
3766 | |
---|
3767 | |
---|
3768 | # Initialize automake |
---|
3769 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3770 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3771 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3773 | else |
---|
3774 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3775 | then ac_cv_prog_egrep='grep -E' |
---|
3776 | else ac_cv_prog_egrep='egrep' |
---|
3777 | fi |
---|
3778 | fi |
---|
3779 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3780 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3781 | EGREP=$ac_cv_prog_egrep |
---|
3782 | |
---|
3783 | |
---|
3784 | am__api_version="1.9" |
---|
3785 | # Find a good install program. We prefer a C program (faster), |
---|
3786 | # so one script is as good as another. But avoid the broken or |
---|
3787 | # incompatible versions: |
---|
3788 | # SysV /etc/install, /usr/sbin/install |
---|
3789 | # SunOS /usr/etc/install |
---|
3790 | # IRIX /sbin/install |
---|
3791 | # AIX /bin/install |
---|
3792 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3793 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3794 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3795 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3796 | # OS/2's system install, which has a completely different semantic |
---|
3797 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3798 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3799 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3800 | if test -z "$INSTALL"; then |
---|
3801 | if test "${ac_cv_path_install+set}" = set; then |
---|
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3803 | else |
---|
3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3805 | for as_dir in $PATH |
---|
3806 | do |
---|
3807 | IFS=$as_save_IFS |
---|
3808 | test -z "$as_dir" && as_dir=. |
---|
3809 | # Account for people who put trailing slashes in PATH elements. |
---|
3810 | case $as_dir/ in |
---|
3811 | ./ | .// | /cC/* | \ |
---|
3812 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3813 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3814 | /usr/ucb/* ) ;; |
---|
3815 | *) |
---|
3816 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3817 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3818 | # by default. |
---|
3819 | for ac_prog in ginstall scoinst install; do |
---|
3820 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3821 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3822 | if test $ac_prog = install && |
---|
3823 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3824 | # AIX install. It has an incompatible calling convention. |
---|
3825 | : |
---|
3826 | elif test $ac_prog = install && |
---|
3827 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3828 | # program-specific install script used by HP pwplus--don't use. |
---|
3829 | : |
---|
3830 | else |
---|
3831 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3832 | break 3 |
---|
3833 | fi |
---|
3834 | fi |
---|
3835 | done |
---|
3836 | done |
---|
3837 | ;; |
---|
3838 | esac |
---|
3839 | done |
---|
3840 | |
---|
3841 | |
---|
3842 | fi |
---|
3843 | if test "${ac_cv_path_install+set}" = set; then |
---|
3844 | INSTALL=$ac_cv_path_install |
---|
3845 | else |
---|
3846 | # As a last resort, use the slow shell script. We don't cache a |
---|
3847 | # path for INSTALL within a source directory, because that will |
---|
3848 | # break other packages using the cache if that directory is |
---|
3849 | # removed, or if the path is relative. |
---|
3850 | INSTALL=$ac_install_sh |
---|
3851 | fi |
---|
3852 | fi |
---|
3853 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3854 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3855 | |
---|
3856 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3857 | # It thinks the first close brace ends the variable substitution. |
---|
3858 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3859 | |
---|
3860 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3861 | |
---|
3862 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3863 | |
---|
3864 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
3865 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
3866 | # Just in case |
---|
3867 | sleep 1 |
---|
3868 | echo timestamp > conftest.file |
---|
3869 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
3870 | # arguments. Must try -L first in case configure is actually a |
---|
3871 | # symlink; some systems play weird games with the mod time of symlinks |
---|
3872 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
3873 | # directory). |
---|
3874 | if ( |
---|
3875 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
3876 | if test "$*" = "X"; then |
---|
3877 | # -L didn't work. |
---|
3878 | set X `ls -t $srcdir/configure conftest.file` |
---|
3879 | fi |
---|
3880 | rm -f conftest.file |
---|
3881 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
3882 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
3883 | |
---|
3884 | # If neither matched, then we have a broken ls. This can happen |
---|
3885 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
3886 | # broken ls alias from the environment. This has actually |
---|
3887 | # happened. Such a system could not be considered "sane". |
---|
3888 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
3889 | alias in your environment" >&5 |
---|
3890 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
3891 | alias in your environment" >&2;} |
---|
3892 | { (exit 1); exit 1; }; } |
---|
3893 | fi |
---|
3894 | |
---|
3895 | test "$2" = conftest.file |
---|
3896 | ) |
---|
3897 | then |
---|
3898 | # Ok. |
---|
3899 | : |
---|
3900 | else |
---|
3901 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
3902 | Check your system clock" >&5 |
---|
3903 | echo "$as_me: error: newly created file is older than distributed files! |
---|
3904 | Check your system clock" >&2;} |
---|
3905 | { (exit 1); exit 1; }; } |
---|
3906 | fi |
---|
3907 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3908 | echo "${ECHO_T}yes" >&6 |
---|
3909 | test "$program_prefix" != NONE && |
---|
3910 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
3911 | # Use a double $ so make ignores it. |
---|
3912 | test "$program_suffix" != NONE && |
---|
3913 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
3914 | # Double any \ or $. echo might interpret backslashes. |
---|
3915 | # By default was `s,x,x', remove it if useless. |
---|
3916 | cat <<\_ACEOF >conftest.sed |
---|
3917 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
3918 | _ACEOF |
---|
3919 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
3920 | rm conftest.sed |
---|
3921 | |
---|
3922 | # expand $ac_aux_dir to an absolute path |
---|
3923 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
3924 | |
---|
3925 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
3926 | # Use eval to expand $SHELL |
---|
3927 | if eval "$MISSING --run true"; then |
---|
3928 | am_missing_run="$MISSING --run " |
---|
3929 | else |
---|
3930 | am_missing_run= |
---|
3931 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
3932 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
3933 | fi |
---|
3934 | |
---|
3935 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
3936 | # We used to keeping the `.' as first argument, in order to |
---|
3937 | # allow $(mkdir_p) to be used without argument. As in |
---|
3938 | # $(mkdir_p) $(somedir) |
---|
3939 | # where $(somedir) is conditionally defined. However this is wrong |
---|
3940 | # for two reasons: |
---|
3941 | # 1. if the package is installed by a user who cannot write `.' |
---|
3942 | # make install will fail, |
---|
3943 | # 2. the above comment should most certainly read |
---|
3944 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
3945 | # so it does not work when $(somedir) is undefined and |
---|
3946 | # $(DESTDIR) is not. |
---|
3947 | # To support the latter case, we have to write |
---|
3948 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
3949 | # so the `.' trick is pointless. |
---|
3950 | mkdir_p='mkdir -p --' |
---|
3951 | else |
---|
3952 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
3953 | # recognize any option. It will interpret all options as |
---|
3954 | # directories to create, and then abort because `.' already |
---|
3955 | # exists. |
---|
3956 | for d in ./-p ./--version; |
---|
3957 | do |
---|
3958 | test -d $d && rmdir $d |
---|
3959 | done |
---|
3960 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
3961 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
3962 | mkdir_p='$(mkinstalldirs)' |
---|
3963 | else |
---|
3964 | mkdir_p='$(install_sh) -d' |
---|
3965 | fi |
---|
3966 | fi |
---|
3967 | |
---|
3968 | for ac_prog in gawk mawk nawk awk |
---|
3969 | do |
---|
3970 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3971 | set dummy $ac_prog; ac_word=$2 |
---|
3972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3974 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3976 | else |
---|
3977 | if test -n "$AWK"; then |
---|
3978 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3979 | else |
---|
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3981 | for as_dir in $PATH |
---|
3982 | do |
---|
3983 | IFS=$as_save_IFS |
---|
3984 | test -z "$as_dir" && as_dir=. |
---|
3985 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3987 | ac_cv_prog_AWK="$ac_prog" |
---|
3988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3989 | break 2 |
---|
3990 | fi |
---|
3991 | done |
---|
3992 | done |
---|
3993 | |
---|
3994 | fi |
---|
3995 | fi |
---|
3996 | AWK=$ac_cv_prog_AWK |
---|
3997 | if test -n "$AWK"; then |
---|
3998 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
3999 | echo "${ECHO_T}$AWK" >&6 |
---|
4000 | else |
---|
4001 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4002 | echo "${ECHO_T}no" >&6 |
---|
4003 | fi |
---|
4004 | |
---|
4005 | test -n "$AWK" && break |
---|
4006 | done |
---|
4007 | |
---|
4008 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4009 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
4010 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
4011 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4013 | else |
---|
4014 | cat >conftest.make <<\_ACEOF |
---|
4015 | all: |
---|
4016 | @echo 'ac_maketemp="$(MAKE)"' |
---|
4017 | _ACEOF |
---|
4018 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4019 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
4020 | if test -n "$ac_maketemp"; then |
---|
4021 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
4022 | else |
---|
4023 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
4024 | fi |
---|
4025 | rm -f conftest.make |
---|
4026 | fi |
---|
4027 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
4028 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4029 | echo "${ECHO_T}yes" >&6 |
---|
4030 | SET_MAKE= |
---|
4031 | else |
---|
4032 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4033 | echo "${ECHO_T}no" >&6 |
---|
4034 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4035 | fi |
---|
4036 | |
---|
4037 | rm -rf .tst 2>/dev/null |
---|
4038 | mkdir .tst 2>/dev/null |
---|
4039 | if test -d .tst; then |
---|
4040 | am__leading_dot=. |
---|
4041 | else |
---|
4042 | am__leading_dot=_ |
---|
4043 | fi |
---|
4044 | rmdir .tst 2>/dev/null |
---|
4045 | |
---|
4046 | DEPDIR="${am__leading_dot}deps" |
---|
4047 | |
---|
4048 | ac_config_commands="$ac_config_commands depfiles" |
---|
4049 | |
---|
4050 | |
---|
4051 | am_make=${MAKE-make} |
---|
4052 | cat > confinc << 'END' |
---|
4053 | am__doit: |
---|
4054 | @echo done |
---|
4055 | .PHONY: am__doit |
---|
4056 | END |
---|
4057 | # If we don't find an include directive, just comment out the code. |
---|
4058 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
4059 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
4060 | am__include="#" |
---|
4061 | am__quote= |
---|
4062 | _am_result=none |
---|
4063 | # First try GNU make style include. |
---|
4064 | echo "include confinc" > confmf |
---|
4065 | # We grep out `Entering directory' and `Leaving directory' |
---|
4066 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
4067 | # In particular we don't look at `^make:' because GNU make might |
---|
4068 | # be invoked under some other name (usually "gmake"), in which |
---|
4069 | # case it prints its new name instead of `make'. |
---|
4070 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
4071 | am__include=include |
---|
4072 | am__quote= |
---|
4073 | _am_result=GNU |
---|
4074 | fi |
---|
4075 | # Now try BSD make style include. |
---|
4076 | if test "$am__include" = "#"; then |
---|
4077 | echo '.include "confinc"' > confmf |
---|
4078 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
4079 | am__include=.include |
---|
4080 | am__quote="\"" |
---|
4081 | _am_result=BSD |
---|
4082 | fi |
---|
4083 | fi |
---|
4084 | |
---|
4085 | |
---|
4086 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
4087 | echo "${ECHO_T}$_am_result" >&6 |
---|
4088 | rm -f confinc confmf |
---|
4089 | |
---|
4090 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
4091 | if test "${enable_dependency_tracking+set}" = set; then |
---|
4092 | enableval="$enable_dependency_tracking" |
---|
4093 | |
---|
4094 | fi; |
---|
4095 | if test "x$enable_dependency_tracking" != xno; then |
---|
4096 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4097 | AMDEPBACKSLASH='\' |
---|
4098 | fi |
---|
4099 | |
---|
4100 | |
---|
4101 | if test "x$enable_dependency_tracking" != xno; then |
---|
4102 | AMDEP_TRUE= |
---|
4103 | AMDEP_FALSE='#' |
---|
4104 | else |
---|
4105 | AMDEP_TRUE='#' |
---|
4106 | AMDEP_FALSE= |
---|
4107 | fi |
---|
4108 | |
---|
4109 | |
---|
4110 | |
---|
4111 | |
---|
4112 | |
---|
4113 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
4114 | # Stuff for automake |
---|
4115 | # test to see if srcdir already configured |
---|
4116 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
4117 | test -f $srcdir/config.status; then |
---|
4118 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
4119 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
4120 | { (exit 1); exit 1; }; } |
---|
4121 | fi |
---|
4122 | |
---|
4123 | # test whether we have cygpath |
---|
4124 | if test -z "$CYGPATH_W"; then |
---|
4125 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
4126 | CYGPATH_W='cygpath -w' |
---|
4127 | else |
---|
4128 | CYGPATH_W=echo |
---|
4129 | fi |
---|
4130 | fi |
---|
4131 | |
---|
4132 | |
---|
4133 | # Define the identity of the package. |
---|
4134 | PACKAGE='thirdpartyblas' |
---|
4135 | VERSION='0.0' |
---|
4136 | |
---|
4137 | |
---|
4138 | cat >>confdefs.h <<_ACEOF |
---|
4139 | #define PACKAGE "$PACKAGE" |
---|
4140 | _ACEOF |
---|
4141 | |
---|
4142 | |
---|
4143 | cat >>confdefs.h <<_ACEOF |
---|
4144 | #define VERSION "$VERSION" |
---|
4145 | _ACEOF |
---|
4146 | |
---|
4147 | # Some tools Automake needs. |
---|
4148 | |
---|
4149 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
4150 | |
---|
4151 | |
---|
4152 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
4153 | |
---|
4154 | |
---|
4155 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
4156 | |
---|
4157 | |
---|
4158 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
4159 | |
---|
4160 | |
---|
4161 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
4162 | |
---|
4163 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
4164 | |
---|
4165 | # Installed binaries are usually stripped using `strip' when the user |
---|
4166 | # run `make install-strip'. However `strip' might not be the right |
---|
4167 | # tool to use in cross-compilation environments, therefore Automake |
---|
4168 | # will honor the `STRIP' environment variable to overrule this program. |
---|
4169 | if test "$cross_compiling" != no; then |
---|
4170 | if test -n "$ac_tool_prefix"; then |
---|
4171 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
4172 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
4173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4175 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4177 | else |
---|
4178 | if test -n "$STRIP"; then |
---|
4179 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
4180 | else |
---|
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4182 | for as_dir in $PATH |
---|
4183 | do |
---|
4184 | IFS=$as_save_IFS |
---|
4185 | test -z "$as_dir" && as_dir=. |
---|
4186 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4188 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
4189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4190 | break 2 |
---|
4191 | fi |
---|
4192 | done |
---|
4193 | done |
---|
4194 | |
---|
4195 | fi |
---|
4196 | fi |
---|
4197 | STRIP=$ac_cv_prog_STRIP |
---|
4198 | if test -n "$STRIP"; then |
---|
4199 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
4200 | echo "${ECHO_T}$STRIP" >&6 |
---|
4201 | else |
---|
4202 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4203 | echo "${ECHO_T}no" >&6 |
---|
4204 | fi |
---|
4205 | |
---|
4206 | fi |
---|
4207 | if test -z "$ac_cv_prog_STRIP"; then |
---|
4208 | ac_ct_STRIP=$STRIP |
---|
4209 | # Extract the first word of "strip", so it can be a program name with args. |
---|
4210 | set dummy strip; ac_word=$2 |
---|
4211 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4213 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4215 | else |
---|
4216 | if test -n "$ac_ct_STRIP"; then |
---|
4217 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
4218 | else |
---|
4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4220 | for as_dir in $PATH |
---|
4221 | do |
---|
4222 | IFS=$as_save_IFS |
---|
4223 | test -z "$as_dir" && as_dir=. |
---|
4224 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4226 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
4227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4228 | break 2 |
---|
4229 | fi |
---|
4230 | done |
---|
4231 | done |
---|
4232 | |
---|
4233 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
4234 | fi |
---|
4235 | fi |
---|
4236 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
4237 | if test -n "$ac_ct_STRIP"; then |
---|
4238 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
4239 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
4240 | else |
---|
4241 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4242 | echo "${ECHO_T}no" >&6 |
---|
4243 | fi |
---|
4244 | |
---|
4245 | STRIP=$ac_ct_STRIP |
---|
4246 | else |
---|
4247 | STRIP="$ac_cv_prog_STRIP" |
---|
4248 | fi |
---|
4249 | |
---|
4250 | fi |
---|
4251 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
4252 | |
---|
4253 | # We need awk for the "check" target. The system "awk" is bad on |
---|
4254 | # some platforms. |
---|
4255 | # Always define AMTAR for backward compatibility. |
---|
4256 | |
---|
4257 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
4258 | |
---|
4259 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
4260 | |
---|
4261 | |
---|
4262 | |
---|
4263 | |
---|
4264 | depcc="$CC" am_compiler_list= |
---|
4265 | |
---|
4266 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
4267 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
4268 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4270 | else |
---|
4271 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4272 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4273 | # making bogus files that we don't know about and never remove. For |
---|
4274 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4275 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4276 | # in D'. |
---|
4277 | mkdir conftest.dir |
---|
4278 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4279 | # using a relative directory. |
---|
4280 | cp "$am_depcomp" conftest.dir |
---|
4281 | cd conftest.dir |
---|
4282 | # We will build objects and dependencies in a subdirectory because |
---|
4283 | # it helps to detect inapplicable dependency modes. For instance |
---|
4284 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4285 | # side effect of compilation, but ICC will put the dependencies in |
---|
4286 | # the current directory while Tru64 will put them in the object |
---|
4287 | # directory. |
---|
4288 | mkdir sub |
---|
4289 | |
---|
4290 | am_cv_CC_dependencies_compiler_type=none |
---|
4291 | if test "$am_compiler_list" = ""; then |
---|
4292 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4293 | fi |
---|
4294 | for depmode in $am_compiler_list; do |
---|
4295 | # Setup a source with many dependencies, because some compilers |
---|
4296 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4297 | # we should not choose a depcomp mode which is confused by this. |
---|
4298 | # |
---|
4299 | # We need to recreate these files for each test, as the compiler may |
---|
4300 | # overwrite some of them when testing with obscure command lines. |
---|
4301 | # This happens at least with the AIX C compiler. |
---|
4302 | : > sub/conftest.c |
---|
4303 | for i in 1 2 3 4 5 6; do |
---|
4304 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4305 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4306 | # Solaris 8's {/usr,}/bin/sh. |
---|
4307 | touch sub/conftst$i.h |
---|
4308 | done |
---|
4309 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4310 | |
---|
4311 | case $depmode in |
---|
4312 | nosideeffect) |
---|
4313 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4314 | # only be used when explicitly requested |
---|
4315 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4316 | continue |
---|
4317 | else |
---|
4318 | break |
---|
4319 | fi |
---|
4320 | ;; |
---|
4321 | none) break ;; |
---|
4322 | esac |
---|
4323 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4324 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4325 | # handle `-M -o', and we need to detect this. |
---|
4326 | if depmode=$depmode \ |
---|
4327 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
4328 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4329 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
4330 | >/dev/null 2>conftest.err && |
---|
4331 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4332 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
4333 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4334 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4335 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4336 | # that says an option was ignored or not supported. |
---|
4337 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4338 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4339 | # The diagnosis changed in icc 8.0: |
---|
4340 | # icc: Command line remark: option '-MP' not supported |
---|
4341 | if (grep 'ignoring option' conftest.err || |
---|
4342 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4343 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4344 | break |
---|
4345 | fi |
---|
4346 | fi |
---|
4347 | done |
---|
4348 | |
---|
4349 | cd .. |
---|
4350 | rm -rf conftest.dir |
---|
4351 | else |
---|
4352 | am_cv_CC_dependencies_compiler_type=none |
---|
4353 | fi |
---|
4354 | |
---|
4355 | fi |
---|
4356 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4357 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
4358 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4359 | |
---|
4360 | |
---|
4361 | |
---|
4362 | if |
---|
4363 | test "x$enable_dependency_tracking" != xno \ |
---|
4364 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4365 | am__fastdepCC_TRUE= |
---|
4366 | am__fastdepCC_FALSE='#' |
---|
4367 | else |
---|
4368 | am__fastdepCC_TRUE='#' |
---|
4369 | am__fastdepCC_FALSE= |
---|
4370 | fi |
---|
4371 | |
---|
4372 | |
---|
4373 | |
---|
4374 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
4375 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
4376 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
4377 | if test "${enable_maintainer_mode+set}" = set; then |
---|
4378 | enableval="$enable_maintainer_mode" |
---|
4379 | USE_MAINTAINER_MODE=$enableval |
---|
4380 | else |
---|
4381 | USE_MAINTAINER_MODE=no |
---|
4382 | fi; |
---|
4383 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
4384 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
4385 | |
---|
4386 | |
---|
4387 | if test $USE_MAINTAINER_MODE = yes; then |
---|
4388 | MAINTAINER_MODE_TRUE= |
---|
4389 | MAINTAINER_MODE_FALSE='#' |
---|
4390 | else |
---|
4391 | MAINTAINER_MODE_TRUE='#' |
---|
4392 | MAINTAINER_MODE_FALSE= |
---|
4393 | fi |
---|
4394 | |
---|
4395 | MAINT=$MAINTAINER_MODE_TRUE |
---|
4396 | |
---|
4397 | |
---|
4398 | |
---|
4399 | coin_have_externals=no |
---|
4400 | if test "$enable_maintainer_mode" = yes; then |
---|
4401 | |
---|
4402 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
4403 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
4404 | # recreate acinclude.m4) |
---|
4405 | |
---|
4406 | |
---|
4407 | LIBTOOLM4= |
---|
4408 | # Normally, $HOME |
---|
4409 | AUTOTOOLS_DFLT=$HOME |
---|
4410 | |
---|
4411 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
4412 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
4413 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
4414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4415 | else |
---|
4416 | ac_cv_use_correct_autotools=check |
---|
4417 | fi |
---|
4418 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
4419 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
4420 | |
---|
4421 | if test $ac_cv_use_correct_autotools = check; then |
---|
4422 | ac_cv_use_correct_autotools=yes |
---|
4423 | # Check if we have autoconf |
---|
4424 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
4425 | set dummy autoconf; ac_word=$2 |
---|
4426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4428 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
4429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4430 | else |
---|
4431 | if test -n "$have_autoconf"; then |
---|
4432 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
4433 | else |
---|
4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4435 | for as_dir in $PATH |
---|
4436 | do |
---|
4437 | IFS=$as_save_IFS |
---|
4438 | test -z "$as_dir" && as_dir=. |
---|
4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4441 | ac_cv_prog_have_autoconf="yes" |
---|
4442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4443 | break 2 |
---|
4444 | fi |
---|
4445 | done |
---|
4446 | done |
---|
4447 | |
---|
4448 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
4449 | fi |
---|
4450 | fi |
---|
4451 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
4452 | if test -n "$have_autoconf"; then |
---|
4453 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
4454 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
4455 | else |
---|
4456 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4457 | echo "${ECHO_T}no" >&6 |
---|
4458 | fi |
---|
4459 | |
---|
4460 | if test $have_autoconf = no; then |
---|
4461 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
4462 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
4463 | { (exit 1); exit 1; }; } |
---|
4464 | fi |
---|
4465 | |
---|
4466 | # Check whether autoconf is the correct version |
---|
4467 | correct_version='2.59' |
---|
4468 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4469 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
4470 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
4471 | autoconf --version > confauto.out 2>&1 |
---|
4472 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4473 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4474 | echo "${ECHO_T}yes" >&6 |
---|
4475 | else |
---|
4476 | rm -f confauto.out |
---|
4477 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4478 | echo "${ECHO_T}no" >&6 |
---|
4479 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
4480 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
4481 | { (exit 1); exit 1; }; } |
---|
4482 | fi |
---|
4483 | rm -f confauto.out |
---|
4484 | |
---|
4485 | # Check if the executable autoconf is picked up from the correct location |
---|
4486 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
4487 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
4488 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
4489 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
4490 | if test x$AUTOTOOLS_DIR = x; then |
---|
4491 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4492 | else |
---|
4493 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4494 | fi |
---|
4495 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
4496 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4497 | echo "${ECHO_T}yes" >&6 |
---|
4498 | else |
---|
4499 | rm -f confauto.out |
---|
4500 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4501 | echo "${ECHO_T}no" >&6 |
---|
4502 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4503 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4504 | { (exit 1); exit 1; }; } |
---|
4505 | fi |
---|
4506 | |
---|
4507 | # Check if we have automake |
---|
4508 | # Extract the first word of "automake", so it can be a program name with args. |
---|
4509 | set dummy automake; ac_word=$2 |
---|
4510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4512 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
4513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4514 | else |
---|
4515 | if test -n "$have_automake"; then |
---|
4516 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
4517 | else |
---|
4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4519 | for as_dir in $PATH |
---|
4520 | do |
---|
4521 | IFS=$as_save_IFS |
---|
4522 | test -z "$as_dir" && as_dir=. |
---|
4523 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4525 | ac_cv_prog_have_automake="yes" |
---|
4526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4527 | break 2 |
---|
4528 | fi |
---|
4529 | done |
---|
4530 | done |
---|
4531 | |
---|
4532 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
4533 | fi |
---|
4534 | fi |
---|
4535 | have_automake=$ac_cv_prog_have_automake |
---|
4536 | if test -n "$have_automake"; then |
---|
4537 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
4538 | echo "${ECHO_T}$have_automake" >&6 |
---|
4539 | else |
---|
4540 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4541 | echo "${ECHO_T}no" >&6 |
---|
4542 | fi |
---|
4543 | |
---|
4544 | if test $have_automake = no; then |
---|
4545 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
4546 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
4547 | { (exit 1); exit 1; }; } |
---|
4548 | fi |
---|
4549 | |
---|
4550 | # Check whether automake is the correct version |
---|
4551 | correct_version='1.9.6' |
---|
4552 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4553 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
4554 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
4555 | automake --version > confauto.out 2>&1 |
---|
4556 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
4557 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4558 | echo "${ECHO_T}yes" >&6 |
---|
4559 | else |
---|
4560 | rm -f confauto.out |
---|
4561 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4562 | echo "${ECHO_T}no" >&6 |
---|
4563 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
4564 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
4565 | { (exit 1); exit 1; }; } |
---|
4566 | fi |
---|
4567 | rm -f confauto.out |
---|
4568 | |
---|
4569 | # Check if the executable automake is picked up from the correct location |
---|
4570 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
4571 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
4572 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
4573 | automake_dir=`cd $automake_dir; pwd` |
---|
4574 | if test x$AUTOTOOLS_DIR = x; then |
---|
4575 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
4576 | else |
---|
4577 | want_dir=$AUTOTOOLS_DIR/bin |
---|
4578 | fi |
---|
4579 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
4580 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4581 | echo "${ECHO_T}yes" >&6 |
---|
4582 | else |
---|
4583 | rm -f confauto.out |
---|
4584 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4585 | echo "${ECHO_T}no" >&6 |
---|
4586 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
4587 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
4588 | { (exit 1); exit 1; }; } |
---|
4589 | fi |
---|
4590 | |
---|
4591 | # Check if this is the correct version of libtool (with escaped dots) |
---|
4592 | if test x$AUTOTOOLS_DIR = x; then |
---|
4593 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4594 | else |
---|
4595 | want_dir=$AUTOTOOLS_DIR/share |
---|
4596 | fi |
---|
4597 | correct_version='1.5.22' |
---|
4598 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
4599 | as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh` |
---|
4600 | echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5 |
---|
4601 | echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6 |
---|
4602 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4604 | else |
---|
4605 | test "$cross_compiling" = yes && |
---|
4606 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4607 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4608 | { (exit 1); exit 1; }; } |
---|
4609 | if test -r "$want_dir/libtool/ltmain.sh"; then |
---|
4610 | eval "$as_ac_File=yes" |
---|
4611 | else |
---|
4612 | eval "$as_ac_File=no" |
---|
4613 | fi |
---|
4614 | fi |
---|
4615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
4616 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
4617 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
4618 | have_ltmain=yes |
---|
4619 | else |
---|
4620 | have_ltmain=no |
---|
4621 | fi |
---|
4622 | |
---|
4623 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
4624 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
4625 | if test $have_ltmain = yes; then |
---|
4626 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
4627 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4628 | echo "${ECHO_T}yes" >&6 |
---|
4629 | else |
---|
4630 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4631 | echo "${ECHO_T}no" >&6 |
---|
4632 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
4633 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
4634 | { (exit 1); exit 1; }; } |
---|
4635 | fi |
---|
4636 | else |
---|
4637 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4638 | echo "${ECHO_T}no" >&6 |
---|
4639 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
4640 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
4641 | { (exit 1); exit 1; }; } |
---|
4642 | fi |
---|
4643 | fi |
---|
4644 | |
---|
4645 | # Check if we can find the libtool file |
---|
4646 | if test x$AUTOTOOLS_DIR = x; then |
---|
4647 | want_dir=$AUTOTOOLS_DFLT/share |
---|
4648 | else |
---|
4649 | want_dir=$AUTOTOOLS_DIR/share |
---|
4650 | fi |
---|
4651 | as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh` |
---|
4652 | echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5 |
---|
4653 | echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6 |
---|
4654 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4656 | else |
---|
4657 | test "$cross_compiling" = yes && |
---|
4658 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4659 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4660 | { (exit 1); exit 1; }; } |
---|
4661 | if test -r "$want_dir/aclocal/libtool.m4"; then |
---|
4662 | eval "$as_ac_File=yes" |
---|
4663 | else |
---|
4664 | eval "$as_ac_File=no" |
---|
4665 | fi |
---|
4666 | fi |
---|
4667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
4668 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
4669 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
4670 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
4671 | else |
---|
4672 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
4673 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
4674 | { (exit 1); exit 1; }; } |
---|
4675 | fi |
---|
4676 | |
---|
4677 | |
---|
4678 | # Check if we have an Externals file |
---|
4679 | if test -r $srcdir/Externals; then |
---|
4680 | coin_have_externals=yes |
---|
4681 | fi |
---|
4682 | # Check if subversion is installed and understands https |
---|
4683 | # Extract the first word of "svn", so it can be a program name with args. |
---|
4684 | set dummy svn; ac_word=$2 |
---|
4685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4687 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4689 | else |
---|
4690 | if test -n "$have_svn"; then |
---|
4691 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
4692 | else |
---|
4693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4694 | for as_dir in $PATH |
---|
4695 | do |
---|
4696 | IFS=$as_save_IFS |
---|
4697 | test -z "$as_dir" && as_dir=. |
---|
4698 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4700 | ac_cv_prog_have_svn="yes" |
---|
4701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4702 | break 2 |
---|
4703 | fi |
---|
4704 | done |
---|
4705 | done |
---|
4706 | |
---|
4707 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
4708 | fi |
---|
4709 | fi |
---|
4710 | have_svn=$ac_cv_prog_have_svn |
---|
4711 | if test -n "$have_svn"; then |
---|
4712 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
4713 | echo "${ECHO_T}$have_svn" >&6 |
---|
4714 | else |
---|
4715 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4716 | echo "${ECHO_T}no" >&6 |
---|
4717 | fi |
---|
4718 | |
---|
4719 | if test x$have_svn = xyes; then |
---|
4720 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
4721 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
4722 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4724 | else |
---|
4725 | svn --version > confauto.out 2>&1 |
---|
4726 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
4727 | ac_cv_svn_understands_https=yes |
---|
4728 | else |
---|
4729 | ac_cv_svn_understands_https=no |
---|
4730 | have_svn=no |
---|
4731 | ac_cv_prog_have_svn=no |
---|
4732 | fi |
---|
4733 | rm -f confauto.out |
---|
4734 | fi |
---|
4735 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
4736 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
4737 | fi |
---|
4738 | |
---|
4739 | # Find the location of the BuildTools directory |
---|
4740 | BUILDTOOLSDIR= |
---|
4741 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
4742 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
4743 | else |
---|
4744 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
4745 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
4746 | else |
---|
4747 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
4748 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
4749 | else |
---|
4750 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
4751 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
4752 | { (exit 1); exit 1; }; } |
---|
4753 | fi |
---|
4754 | fi |
---|
4755 | fi |
---|
4756 | |
---|
4757 | |
---|
4758 | # The following variable is set to the name of the directory where |
---|
4759 | # the autotool scripts are located |
---|
4760 | |
---|
4761 | AUX_DIR=$ac_aux_dir |
---|
4762 | fi |
---|
4763 | |
---|
4764 | # helpful variable for the base directory of this package |
---|
4765 | abs_source_dir=`cd $srcdir; pwd` |
---|
4766 | |
---|
4767 | |
---|
4768 | # Stuff for example Makefiles |
---|
4769 | if test x$prefix = xNONE; then |
---|
4770 | full_prefix=$ac_default_prefix |
---|
4771 | else |
---|
4772 | full_prefix=$prefix |
---|
4773 | fi |
---|
4774 | full_prefix=`cd $full_prefix ; pwd` |
---|
4775 | |
---|
4776 | abs_lib_dir=$full_prefix/lib |
---|
4777 | |
---|
4778 | abs_include_dir=$full_prefix/include |
---|
4779 | |
---|
4780 | abs_bin_dir=$full_prefix/bin |
---|
4781 | |
---|
4782 | |
---|
4783 | |
---|
4784 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
4785 | HAVE_EXTERNALS_TRUE= |
---|
4786 | HAVE_EXTERNALS_FALSE='#' |
---|
4787 | else |
---|
4788 | HAVE_EXTERNALS_TRUE='#' |
---|
4789 | HAVE_EXTERNALS_FALSE= |
---|
4790 | fi |
---|
4791 | |
---|
4792 | |
---|
4793 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
4794 | |
---|
4795 | |
---|
4796 | |
---|
4797 | unset ac_cv_file__________libtool |
---|
4798 | unset ac_cv_file_______libtool |
---|
4799 | unset ac_cv_file____libtool |
---|
4800 | |
---|
4801 | LIBTOOL= |
---|
4802 | echo "$as_me:$LINENO: checking for ../libtool" >&5 |
---|
4803 | echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6 |
---|
4804 | if test "${ac_cv_file____libtool+set}" = set; then |
---|
4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4806 | else |
---|
4807 | test "$cross_compiling" = yes && |
---|
4808 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4809 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4810 | { (exit 1); exit 1; }; } |
---|
4811 | if test -r "../libtool"; then |
---|
4812 | ac_cv_file____libtool=yes |
---|
4813 | else |
---|
4814 | ac_cv_file____libtool=no |
---|
4815 | fi |
---|
4816 | fi |
---|
4817 | echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5 |
---|
4818 | echo "${ECHO_T}$ac_cv_file____libtool" >&6 |
---|
4819 | if test $ac_cv_file____libtool = yes; then |
---|
4820 | coin_config_dir=.. |
---|
4821 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
4822 | fi |
---|
4823 | |
---|
4824 | if test "x$LIBTOOL" = x; then |
---|
4825 | echo "$as_me:$LINENO: checking for ../../libtool" >&5 |
---|
4826 | echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6 |
---|
4827 | if test "${ac_cv_file_______libtool+set}" = set; then |
---|
4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4829 | else |
---|
4830 | test "$cross_compiling" = yes && |
---|
4831 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
4832 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
4833 | { (exit 1); exit 1; }; } |
---|
4834 | if test -r "../../libtool"; then |
---|
4835 | ac_cv_file_______libtool=yes |
---|
4836 | else |
---|
4837 | ac_cv_file_______libtool=no |
---|
4838 | fi |
---|
4839 | fi |
---|
4840 | echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5 |
---|
4841 | echo "${ECHO_T}$ac_cv_file_______libtool" >&6 |
---|
4842 | if test $ac_cv_file_______libtool = yes; then |
---|
4843 | coin_config_dir=../.. |
---|
4844 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
4845 | fi |
---|
4846 | |
---|
4847 | fi |
---|
4848 | # if test "x$LIBTOOL" = x; then |
---|
4849 | # AC_CHECK_FILE([../../../libtool], |
---|
4850 | # [coin_config_dir=../../.. |
---|
4851 | # LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool']) |
---|
4852 | # fi |
---|
4853 | |
---|
4854 | if test "x$LIBTOOL" = x; then |
---|
4855 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
4856 | # Stuff for libtool |
---|
4857 | # Check whether --enable-shared or --disable-shared was given. |
---|
4858 | if test "${enable_shared+set}" = set; then |
---|
4859 | enableval="$enable_shared" |
---|
4860 | p=${PACKAGE-default} |
---|
4861 | case $enableval in |
---|
4862 | yes) enable_shared=yes ;; |
---|
4863 | no) enable_shared=no ;; |
---|
4864 | *) |
---|
4865 | enable_shared=no |
---|
4866 | # Look at the argument we got. We use all the common list separators. |
---|
4867 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4868 | for pkg in $enableval; do |
---|
4869 | IFS="$lt_save_ifs" |
---|
4870 | if test "X$pkg" = "X$p"; then |
---|
4871 | enable_shared=yes |
---|
4872 | fi |
---|
4873 | done |
---|
4874 | IFS="$lt_save_ifs" |
---|
4875 | ;; |
---|
4876 | esac |
---|
4877 | else |
---|
4878 | enable_shared=yes |
---|
4879 | fi; |
---|
4880 | |
---|
4881 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
4882 | if test "${enable_fast_install+set}" = set; then |
---|
4883 | enableval="$enable_fast_install" |
---|
4884 | p=${PACKAGE-default} |
---|
4885 | case $enableval in |
---|
4886 | yes) enable_fast_install=yes ;; |
---|
4887 | no) enable_fast_install=no ;; |
---|
4888 | *) |
---|
4889 | enable_fast_install=no |
---|
4890 | # Look at the argument we got. We use all the common list separators. |
---|
4891 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4892 | for pkg in $enableval; do |
---|
4893 | IFS="$lt_save_ifs" |
---|
4894 | if test "X$pkg" = "X$p"; then |
---|
4895 | enable_fast_install=yes |
---|
4896 | fi |
---|
4897 | done |
---|
4898 | IFS="$lt_save_ifs" |
---|
4899 | ;; |
---|
4900 | esac |
---|
4901 | else |
---|
4902 | enable_fast_install=yes |
---|
4903 | fi; |
---|
4904 | |
---|
4905 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
4906 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
4907 | if test "${ac_cv_host+set}" = set; then |
---|
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4909 | else |
---|
4910 | ac_cv_host_alias=$host_alias |
---|
4911 | test -z "$ac_cv_host_alias" && |
---|
4912 | ac_cv_host_alias=$ac_cv_build_alias |
---|
4913 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
4914 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
4915 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
4916 | { (exit 1); exit 1; }; } |
---|
4917 | |
---|
4918 | fi |
---|
4919 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
4920 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
4921 | host=$ac_cv_host |
---|
4922 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
4923 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
4924 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
4925 | |
---|
4926 | |
---|
4927 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4928 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
4929 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4931 | else |
---|
4932 | # Loop through the user's path and test for sed and gsed. |
---|
4933 | # Then use that list of sed's as ones to test for truncation. |
---|
4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4935 | for as_dir in $PATH |
---|
4936 | do |
---|
4937 | IFS=$as_save_IFS |
---|
4938 | test -z "$as_dir" && as_dir=. |
---|
4939 | for lt_ac_prog in sed gsed; do |
---|
4940 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4941 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
4942 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4943 | fi |
---|
4944 | done |
---|
4945 | done |
---|
4946 | done |
---|
4947 | lt_ac_max=0 |
---|
4948 | lt_ac_count=0 |
---|
4949 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4950 | # along with /bin/sed that truncates output. |
---|
4951 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4952 | test ! -f $lt_ac_sed && continue |
---|
4953 | cat /dev/null > conftest.in |
---|
4954 | lt_ac_count=0 |
---|
4955 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4956 | # Check for GNU sed and select it if it is found. |
---|
4957 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4958 | lt_cv_path_SED=$lt_ac_sed |
---|
4959 | break |
---|
4960 | fi |
---|
4961 | while true; do |
---|
4962 | cat conftest.in conftest.in >conftest.tmp |
---|
4963 | mv conftest.tmp conftest.in |
---|
4964 | cp conftest.in conftest.nl |
---|
4965 | echo >>conftest.nl |
---|
4966 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
4967 | cmp -s conftest.out conftest.nl || break |
---|
4968 | # 10000 chars as input seems more than enough |
---|
4969 | test $lt_ac_count -gt 10 && break |
---|
4970 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
4971 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
4972 | lt_ac_max=$lt_ac_count |
---|
4973 | lt_cv_path_SED=$lt_ac_sed |
---|
4974 | fi |
---|
4975 | done |
---|
4976 | done |
---|
4977 | |
---|
4978 | fi |
---|
4979 | |
---|
4980 | SED=$lt_cv_path_SED |
---|
4981 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
4982 | echo "${ECHO_T}$SED" >&6 |
---|
4983 | |
---|
4984 | |
---|
4985 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
4986 | if test "${with_gnu_ld+set}" = set; then |
---|
4987 | withval="$with_gnu_ld" |
---|
4988 | test "$withval" = no || with_gnu_ld=yes |
---|
4989 | else |
---|
4990 | with_gnu_ld=no |
---|
4991 | fi; |
---|
4992 | ac_prog=ld |
---|
4993 | if test "$GCC" = yes; then |
---|
4994 | # Check if gcc -print-prog-name=ld gives a path. |
---|
4995 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
4996 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
4997 | case $host in |
---|
4998 | *-*-mingw*) |
---|
4999 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5000 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5001 | *) |
---|
5002 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5003 | esac |
---|
5004 | case $ac_prog in |
---|
5005 | # Accept absolute paths. |
---|
5006 | [\\/]* | ?:[\\/]*) |
---|
5007 | re_direlt='/[^/][^/]*/\.\./' |
---|
5008 | # Canonicalize the pathname of ld |
---|
5009 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5010 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5011 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5012 | done |
---|
5013 | test -z "$LD" && LD="$ac_prog" |
---|
5014 | ;; |
---|
5015 | "") |
---|
5016 | # If it fails, then pretend we aren't using GCC. |
---|
5017 | ac_prog=ld |
---|
5018 | ;; |
---|
5019 | *) |
---|
5020 | # If it is relative, then search for the first ld in PATH. |
---|
5021 | with_gnu_ld=unknown |
---|
5022 | ;; |
---|
5023 | esac |
---|
5024 | elif test "$with_gnu_ld" = yes; then |
---|
5025 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5026 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
5027 | else |
---|
5028 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5029 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
5030 | fi |
---|
5031 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5033 | else |
---|
5034 | if test -z "$LD"; then |
---|
5035 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5036 | for ac_dir in $PATH; do |
---|
5037 | IFS="$lt_save_ifs" |
---|
5038 | test -z "$ac_dir" && ac_dir=. |
---|
5039 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5040 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5041 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5042 | # but apparently some variants of GNU ld only accept -v. |
---|
5043 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5044 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5045 | *GNU* | *'with BFD'*) |
---|
5046 | test "$with_gnu_ld" != no && break |
---|
5047 | ;; |
---|
5048 | *) |
---|
5049 | test "$with_gnu_ld" != yes && break |
---|
5050 | ;; |
---|
5051 | esac |
---|
5052 | fi |
---|
5053 | done |
---|
5054 | IFS="$lt_save_ifs" |
---|
5055 | else |
---|
5056 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5057 | fi |
---|
5058 | fi |
---|
5059 | |
---|
5060 | LD="$lt_cv_path_LD" |
---|
5061 | if test -n "$LD"; then |
---|
5062 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
5063 | echo "${ECHO_T}$LD" >&6 |
---|
5064 | else |
---|
5065 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5066 | echo "${ECHO_T}no" >&6 |
---|
5067 | fi |
---|
5068 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
5069 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
5070 | { (exit 1); exit 1; }; } |
---|
5071 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
5072 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
5073 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5075 | else |
---|
5076 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5077 | case `$LD -v 2>&1 </dev/null` in |
---|
5078 | *GNU* | *'with BFD'*) |
---|
5079 | lt_cv_prog_gnu_ld=yes |
---|
5080 | ;; |
---|
5081 | *) |
---|
5082 | lt_cv_prog_gnu_ld=no |
---|
5083 | ;; |
---|
5084 | esac |
---|
5085 | fi |
---|
5086 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5087 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
5088 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5089 | |
---|
5090 | |
---|
5091 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
5092 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
5093 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
5094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5095 | else |
---|
5096 | lt_cv_ld_reload_flag='-r' |
---|
5097 | fi |
---|
5098 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
5099 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
5100 | reload_flag=$lt_cv_ld_reload_flag |
---|
5101 | case $reload_flag in |
---|
5102 | "" | " "*) ;; |
---|
5103 | *) reload_flag=" $reload_flag" ;; |
---|
5104 | esac |
---|
5105 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5106 | case $host_os in |
---|
5107 | darwin*) |
---|
5108 | if test "$GCC" = yes; then |
---|
5109 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
5110 | else |
---|
5111 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5112 | fi |
---|
5113 | ;; |
---|
5114 | esac |
---|
5115 | |
---|
5116 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
5117 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
5118 | if test "${lt_cv_path_NM+set}" = set; then |
---|
5119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5120 | else |
---|
5121 | if test -n "$NM"; then |
---|
5122 | # Let the user override the test. |
---|
5123 | lt_cv_path_NM="$NM" |
---|
5124 | else |
---|
5125 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
5126 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5127 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5128 | fi |
---|
5129 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5130 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5131 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5132 | IFS="$lt_save_ifs" |
---|
5133 | test -z "$ac_dir" && ac_dir=. |
---|
5134 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
5135 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5136 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5137 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5138 | # nm: unknown option "B" ignored |
---|
5139 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5140 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5141 | */dev/null* | *'Invalid file or object type'*) |
---|
5142 | lt_cv_path_NM="$tmp_nm -B" |
---|
5143 | break |
---|
5144 | ;; |
---|
5145 | *) |
---|
5146 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5147 | */dev/null*) |
---|
5148 | lt_cv_path_NM="$tmp_nm -p" |
---|
5149 | break |
---|
5150 | ;; |
---|
5151 | *) |
---|
5152 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5153 | continue # so that we can try to find one that supports BSD flags |
---|
5154 | ;; |
---|
5155 | esac |
---|
5156 | ;; |
---|
5157 | esac |
---|
5158 | fi |
---|
5159 | done |
---|
5160 | IFS="$lt_save_ifs" |
---|
5161 | done |
---|
5162 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
5163 | fi |
---|
5164 | fi |
---|
5165 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
5166 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
5167 | NM="$lt_cv_path_NM" |
---|
5168 | |
---|
5169 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
5170 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
5171 | LN_S=$as_ln_s |
---|
5172 | if test "$LN_S" = "ln -s"; then |
---|
5173 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5174 | echo "${ECHO_T}yes" >&6 |
---|
5175 | else |
---|
5176 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
5177 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
5178 | fi |
---|
5179 | |
---|
5180 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
5181 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
5182 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5184 | else |
---|
5185 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5186 | lt_cv_file_magic_test_file= |
---|
5187 | lt_cv_deplibs_check_method='unknown' |
---|
5188 | # Need to set the preceding variable on all platforms that support |
---|
5189 | # interlibrary dependencies. |
---|
5190 | # 'none' -- dependencies not supported. |
---|
5191 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5192 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5193 | # 'test_compile' -- check by making test program. |
---|
5194 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5195 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5196 | # If you have `file' or equivalent on your system and you're not sure |
---|
5197 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5198 | |
---|
5199 | case $host_os in |
---|
5200 | aix4* | aix5*) |
---|
5201 | lt_cv_deplibs_check_method=pass_all |
---|
5202 | ;; |
---|
5203 | |
---|
5204 | beos*) |
---|
5205 | lt_cv_deplibs_check_method=pass_all |
---|
5206 | ;; |
---|
5207 | |
---|
5208 | bsdi[45]*) |
---|
5209 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5210 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5211 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5212 | ;; |
---|
5213 | |
---|
5214 | cygwin*) |
---|
5215 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5216 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5217 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5218 | ;; |
---|
5219 | |
---|
5220 | mingw* | pw32*) |
---|
5221 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5222 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
5223 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
5224 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5225 | ;; |
---|
5226 | |
---|
5227 | darwin* | rhapsody*) |
---|
5228 | lt_cv_deplibs_check_method=pass_all |
---|
5229 | ;; |
---|
5230 | |
---|
5231 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
5232 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5233 | case $host_cpu in |
---|
5234 | i*86 ) |
---|
5235 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5236 | # Let's accept both of them until this is cleared up. |
---|
5237 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5238 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5239 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5240 | ;; |
---|
5241 | esac |
---|
5242 | else |
---|
5243 | lt_cv_deplibs_check_method=pass_all |
---|
5244 | fi |
---|
5245 | ;; |
---|
5246 | |
---|
5247 | gnu*) |
---|
5248 | lt_cv_deplibs_check_method=pass_all |
---|
5249 | ;; |
---|
5250 | |
---|
5251 | hpux10.20* | hpux11*) |
---|
5252 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5253 | case $host_cpu in |
---|
5254 | ia64*) |
---|
5255 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5256 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5257 | ;; |
---|
5258 | hppa*64*) |
---|
5259 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
---|
5260 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5261 | ;; |
---|
5262 | *) |
---|
5263 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
5264 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5265 | ;; |
---|
5266 | esac |
---|
5267 | ;; |
---|
5268 | |
---|
5269 | interix3*) |
---|
5270 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
5271 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
5272 | ;; |
---|
5273 | |
---|
5274 | irix5* | irix6* | nonstopux*) |
---|
5275 | case $LD in |
---|
5276 | *-32|*"-32 ") libmagic=32-bit;; |
---|
5277 | *-n32|*"-n32 ") libmagic=N32;; |
---|
5278 | *-64|*"-64 ") libmagic=64-bit;; |
---|
5279 | *) libmagic=never-match;; |
---|
5280 | esac |
---|
5281 | lt_cv_deplibs_check_method=pass_all |
---|
5282 | ;; |
---|
5283 | |
---|
5284 | # This must be Linux ELF. |
---|
5285 | linux*) |
---|
5286 | lt_cv_deplibs_check_method=pass_all |
---|
5287 | ;; |
---|
5288 | |
---|
5289 | netbsd*) |
---|
5290 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5291 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5292 | else |
---|
5293 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
5294 | fi |
---|
5295 | ;; |
---|
5296 | |
---|
5297 | newos6*) |
---|
5298 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
5299 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5300 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
5301 | ;; |
---|
5302 | |
---|
5303 | nto-qnx*) |
---|
5304 | lt_cv_deplibs_check_method=unknown |
---|
5305 | ;; |
---|
5306 | |
---|
5307 | openbsd*) |
---|
5308 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5309 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
5310 | else |
---|
5311 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5312 | fi |
---|
5313 | ;; |
---|
5314 | |
---|
5315 | osf3* | osf4* | osf5*) |
---|
5316 | lt_cv_deplibs_check_method=pass_all |
---|
5317 | ;; |
---|
5318 | |
---|
5319 | solaris*) |
---|
5320 | lt_cv_deplibs_check_method=pass_all |
---|
5321 | ;; |
---|
5322 | |
---|
5323 | sysv4 | sysv4.3*) |
---|
5324 | case $host_vendor in |
---|
5325 | motorola) |
---|
5326 | 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]' |
---|
5327 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
5328 | ;; |
---|
5329 | ncr) |
---|
5330 | lt_cv_deplibs_check_method=pass_all |
---|
5331 | ;; |
---|
5332 | sequent) |
---|
5333 | lt_cv_file_magic_cmd='/bin/file' |
---|
5334 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
5335 | ;; |
---|
5336 | sni) |
---|
5337 | lt_cv_file_magic_cmd='/bin/file' |
---|
5338 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
5339 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
5340 | ;; |
---|
5341 | siemens) |
---|
5342 | lt_cv_deplibs_check_method=pass_all |
---|
5343 | ;; |
---|
5344 | pc) |
---|
5345 | lt_cv_deplibs_check_method=pass_all |
---|
5346 | ;; |
---|
5347 | esac |
---|
5348 | ;; |
---|
5349 | |
---|
5350 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
5351 | lt_cv_deplibs_check_method=pass_all |
---|
5352 | ;; |
---|
5353 | esac |
---|
5354 | |
---|
5355 | fi |
---|
5356 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
5357 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
5358 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
5359 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
5360 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5361 | |
---|
5362 | |
---|
5363 | |
---|
5364 | |
---|
5365 | # If no C compiler was specified, use CC. |
---|
5366 | LTCC=${LTCC-"$CC"} |
---|
5367 | |
---|
5368 | # If no C compiler flags were specified, use CFLAGS. |
---|
5369 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
5370 | |
---|
5371 | # Allow CC to be a program name with arguments. |
---|
5372 | compiler=$CC |
---|
5373 | |
---|
5374 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
5375 | if test "${enable_libtool_lock+set}" = set; then |
---|
5376 | enableval="$enable_libtool_lock" |
---|
5377 | |
---|
5378 | fi; |
---|
5379 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
5380 | |
---|
5381 | # Some flags need to be propagated to the compiler or linker for good |
---|
5382 | # libtool support. |
---|
5383 | case $host in |
---|
5384 | ia64-*-hpux*) |
---|
5385 | # Find out which ABI we are using. |
---|
5386 | echo 'int i;' > conftest.$ac_ext |
---|
5387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5388 | (eval $ac_compile) 2>&5 |
---|
5389 | ac_status=$? |
---|
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5391 | (exit $ac_status); }; then |
---|
5392 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5393 | *ELF-32*) |
---|
5394 | HPUX_IA64_MODE="32" |
---|
5395 | ;; |
---|
5396 | *ELF-64*) |
---|
5397 | HPUX_IA64_MODE="64" |
---|
5398 | ;; |
---|
5399 | esac |
---|
5400 | fi |
---|
5401 | rm -rf conftest* |
---|
5402 | ;; |
---|
5403 | *-*-irix6*) |
---|
5404 | # Find out which ABI we are using. |
---|
5405 | echo '#line 5405 "configure"' > conftest.$ac_ext |
---|
5406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5407 | (eval $ac_compile) 2>&5 |
---|
5408 | ac_status=$? |
---|
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5410 | (exit $ac_status); }; then |
---|
5411 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
5412 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5413 | *32-bit*) |
---|
5414 | LD="${LD-ld} -melf32bsmip" |
---|
5415 | ;; |
---|
5416 | *N32*) |
---|
5417 | LD="${LD-ld} -melf32bmipn32" |
---|
5418 | ;; |
---|
5419 | *64-bit*) |
---|
5420 | LD="${LD-ld} -melf64bmip" |
---|
5421 | ;; |
---|
5422 | esac |
---|
5423 | else |
---|
5424 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5425 | *32-bit*) |
---|
5426 | LD="${LD-ld} -32" |
---|
5427 | ;; |
---|
5428 | *N32*) |
---|
5429 | LD="${LD-ld} -n32" |
---|
5430 | ;; |
---|
5431 | *64-bit*) |
---|
5432 | LD="${LD-ld} -64" |
---|
5433 | ;; |
---|
5434 | esac |
---|
5435 | fi |
---|
5436 | fi |
---|
5437 | rm -rf conftest* |
---|
5438 | ;; |
---|
5439 | |
---|
5440 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
5441 | # Find out which ABI we are using. |
---|
5442 | echo 'int i;' > conftest.$ac_ext |
---|
5443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5444 | (eval $ac_compile) 2>&5 |
---|
5445 | ac_status=$? |
---|
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5447 | (exit $ac_status); }; then |
---|
5448 | case `/usr/bin/file conftest.o` in |
---|
5449 | *32-bit*) |
---|
5450 | case $host in |
---|
5451 | x86_64-*linux*) |
---|
5452 | LD="${LD-ld} -m elf_i386" |
---|
5453 | ;; |
---|
5454 | ppc64-*linux*|powerpc64-*linux*) |
---|
5455 | LD="${LD-ld} -m elf32ppclinux" |
---|
5456 | ;; |
---|
5457 | s390x-*linux*) |
---|
5458 | LD="${LD-ld} -m elf_s390" |
---|
5459 | ;; |
---|
5460 | sparc64-*linux*) |
---|
5461 | LD="${LD-ld} -m elf32_sparc" |
---|
5462 | ;; |
---|
5463 | esac |
---|
5464 | ;; |
---|
5465 | *64-bit*) |
---|
5466 | case $host in |
---|
5467 | x86_64-*linux*) |
---|
5468 | LD="${LD-ld} -m elf_x86_64" |
---|
5469 | ;; |
---|
5470 | ppc*-*linux*|powerpc*-*linux*) |
---|
5471 | LD="${LD-ld} -m elf64ppc" |
---|
5472 | ;; |
---|
5473 | s390*-*linux*) |
---|
5474 | LD="${LD-ld} -m elf64_s390" |
---|
5475 | ;; |
---|
5476 | sparc*-*linux*) |
---|
5477 | LD="${LD-ld} -m elf64_sparc" |
---|
5478 | ;; |
---|
5479 | esac |
---|
5480 | ;; |
---|
5481 | esac |
---|
5482 | fi |
---|
5483 | rm -rf conftest* |
---|
5484 | ;; |
---|
5485 | |
---|
5486 | *-*-sco3.2v5*) |
---|
5487 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
5488 | SAVE_CFLAGS="$CFLAGS" |
---|
5489 | CFLAGS="$CFLAGS -belf" |
---|
5490 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
5491 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
5492 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5494 | else |
---|
5495 | ac_ext=c |
---|
5496 | ac_cpp='$CPP $CPPFLAGS' |
---|
5497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5500 | |
---|
5501 | cat >conftest.$ac_ext <<_ACEOF |
---|
5502 | /* confdefs.h. */ |
---|
5503 | _ACEOF |
---|
5504 | cat confdefs.h >>conftest.$ac_ext |
---|
5505 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5506 | /* end confdefs.h. */ |
---|
5507 | |
---|
5508 | int |
---|
5509 | main () |
---|
5510 | { |
---|
5511 | |
---|
5512 | ; |
---|
5513 | return 0; |
---|
5514 | } |
---|
5515 | _ACEOF |
---|
5516 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5518 | (eval $ac_link) 2>conftest.er1 |
---|
5519 | ac_status=$? |
---|
5520 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5521 | rm -f conftest.er1 |
---|
5522 | cat conftest.err >&5 |
---|
5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5524 | (exit $ac_status); } && |
---|
5525 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5526 | || test ! -s conftest.err' |
---|
5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5528 | (eval $ac_try) 2>&5 |
---|
5529 | ac_status=$? |
---|
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5531 | (exit $ac_status); }; } && |
---|
5532 | { ac_try='test -s conftest$ac_exeext' |
---|
5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5534 | (eval $ac_try) 2>&5 |
---|
5535 | ac_status=$? |
---|
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5537 | (exit $ac_status); }; }; then |
---|
5538 | lt_cv_cc_needs_belf=yes |
---|
5539 | else |
---|
5540 | echo "$as_me: failed program was:" >&5 |
---|
5541 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5542 | |
---|
5543 | lt_cv_cc_needs_belf=no |
---|
5544 | fi |
---|
5545 | rm -f conftest.err conftest.$ac_objext \ |
---|
5546 | conftest$ac_exeext conftest.$ac_ext |
---|
5547 | ac_ext=c |
---|
5548 | ac_cpp='$CPP $CPPFLAGS' |
---|
5549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5552 | |
---|
5553 | fi |
---|
5554 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
5555 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
5556 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
5557 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
5558 | CFLAGS="$SAVE_CFLAGS" |
---|
5559 | fi |
---|
5560 | ;; |
---|
5561 | sparc*-*solaris*) |
---|
5562 | # Find out which ABI we are using. |
---|
5563 | echo 'int i;' > conftest.$ac_ext |
---|
5564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5565 | (eval $ac_compile) 2>&5 |
---|
5566 | ac_status=$? |
---|
5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5568 | (exit $ac_status); }; then |
---|
5569 | case `/usr/bin/file conftest.o` in |
---|
5570 | *64-bit*) |
---|
5571 | case $lt_cv_prog_gnu_ld in |
---|
5572 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
5573 | *) LD="${LD-ld} -64" ;; |
---|
5574 | esac |
---|
5575 | ;; |
---|
5576 | esac |
---|
5577 | fi |
---|
5578 | rm -rf conftest* |
---|
5579 | ;; |
---|
5580 | |
---|
5581 | |
---|
5582 | esac |
---|
5583 | |
---|
5584 | need_locks="$enable_libtool_lock" |
---|
5585 | |
---|
5586 | |
---|
5587 | ac_ext=c |
---|
5588 | ac_cpp='$CPP $CPPFLAGS' |
---|
5589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5592 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
5593 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
5594 | # On Suns, sometimes $CPP names a directory. |
---|
5595 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5596 | CPP= |
---|
5597 | fi |
---|
5598 | if test -z "$CPP"; then |
---|
5599 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
5600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5601 | else |
---|
5602 | # Double quotes because CPP needs to be expanded |
---|
5603 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5604 | do |
---|
5605 | ac_preproc_ok=false |
---|
5606 | for ac_c_preproc_warn_flag in '' yes |
---|
5607 | do |
---|
5608 | # Use a header file that comes with gcc, so configuring glibc |
---|
5609 | # with a fresh cross-compiler works. |
---|
5610 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5611 | # <limits.h> exists even on freestanding compilers. |
---|
5612 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5613 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5614 | cat >conftest.$ac_ext <<_ACEOF |
---|
5615 | /* confdefs.h. */ |
---|
5616 | _ACEOF |
---|
5617 | cat confdefs.h >>conftest.$ac_ext |
---|
5618 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5619 | /* end confdefs.h. */ |
---|
5620 | #ifdef __STDC__ |
---|
5621 | # include <limits.h> |
---|
5622 | #else |
---|
5623 | # include <assert.h> |
---|
5624 | #endif |
---|
5625 | Syntax error |
---|
5626 | _ACEOF |
---|
5627 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5628 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5629 | ac_status=$? |
---|
5630 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5631 | rm -f conftest.er1 |
---|
5632 | cat conftest.err >&5 |
---|
5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5634 | (exit $ac_status); } >/dev/null; then |
---|
5635 | if test -s conftest.err; then |
---|
5636 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5638 | else |
---|
5639 | ac_cpp_err= |
---|
5640 | fi |
---|
5641 | else |
---|
5642 | ac_cpp_err=yes |
---|
5643 | fi |
---|
5644 | if test -z "$ac_cpp_err"; then |
---|
5645 | : |
---|
5646 | else |
---|
5647 | echo "$as_me: failed program was:" >&5 |
---|
5648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5649 | |
---|
5650 | # Broken: fails on valid input. |
---|
5651 | continue |
---|
5652 | fi |
---|
5653 | rm -f conftest.err conftest.$ac_ext |
---|
5654 | |
---|
5655 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5656 | # can be detected and how. |
---|
5657 | cat >conftest.$ac_ext <<_ACEOF |
---|
5658 | /* confdefs.h. */ |
---|
5659 | _ACEOF |
---|
5660 | cat confdefs.h >>conftest.$ac_ext |
---|
5661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5662 | /* end confdefs.h. */ |
---|
5663 | #include <ac_nonexistent.h> |
---|
5664 | _ACEOF |
---|
5665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5667 | ac_status=$? |
---|
5668 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5669 | rm -f conftest.er1 |
---|
5670 | cat conftest.err >&5 |
---|
5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5672 | (exit $ac_status); } >/dev/null; then |
---|
5673 | if test -s conftest.err; then |
---|
5674 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5676 | else |
---|
5677 | ac_cpp_err= |
---|
5678 | fi |
---|
5679 | else |
---|
5680 | ac_cpp_err=yes |
---|
5681 | fi |
---|
5682 | if test -z "$ac_cpp_err"; then |
---|
5683 | # Broken: success on invalid input. |
---|
5684 | continue |
---|
5685 | else |
---|
5686 | echo "$as_me: failed program was:" >&5 |
---|
5687 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5688 | |
---|
5689 | # Passes both tests. |
---|
5690 | ac_preproc_ok=: |
---|
5691 | break |
---|
5692 | fi |
---|
5693 | rm -f conftest.err conftest.$ac_ext |
---|
5694 | |
---|
5695 | done |
---|
5696 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5697 | rm -f conftest.err conftest.$ac_ext |
---|
5698 | if $ac_preproc_ok; then |
---|
5699 | break |
---|
5700 | fi |
---|
5701 | |
---|
5702 | done |
---|
5703 | ac_cv_prog_CPP=$CPP |
---|
5704 | |
---|
5705 | fi |
---|
5706 | CPP=$ac_cv_prog_CPP |
---|
5707 | else |
---|
5708 | ac_cv_prog_CPP=$CPP |
---|
5709 | fi |
---|
5710 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
5711 | echo "${ECHO_T}$CPP" >&6 |
---|
5712 | ac_preproc_ok=false |
---|
5713 | for ac_c_preproc_warn_flag in '' yes |
---|
5714 | do |
---|
5715 | # Use a header file that comes with gcc, so configuring glibc |
---|
5716 | # with a fresh cross-compiler works. |
---|
5717 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5718 | # <limits.h> exists even on freestanding compilers. |
---|
5719 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5720 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5721 | cat >conftest.$ac_ext <<_ACEOF |
---|
5722 | /* confdefs.h. */ |
---|
5723 | _ACEOF |
---|
5724 | cat confdefs.h >>conftest.$ac_ext |
---|
5725 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5726 | /* end confdefs.h. */ |
---|
5727 | #ifdef __STDC__ |
---|
5728 | # include <limits.h> |
---|
5729 | #else |
---|
5730 | # include <assert.h> |
---|
5731 | #endif |
---|
5732 | Syntax error |
---|
5733 | _ACEOF |
---|
5734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5736 | ac_status=$? |
---|
5737 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5738 | rm -f conftest.er1 |
---|
5739 | cat conftest.err >&5 |
---|
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5741 | (exit $ac_status); } >/dev/null; then |
---|
5742 | if test -s conftest.err; then |
---|
5743 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5744 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5745 | else |
---|
5746 | ac_cpp_err= |
---|
5747 | fi |
---|
5748 | else |
---|
5749 | ac_cpp_err=yes |
---|
5750 | fi |
---|
5751 | if test -z "$ac_cpp_err"; then |
---|
5752 | : |
---|
5753 | else |
---|
5754 | echo "$as_me: failed program was:" >&5 |
---|
5755 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5756 | |
---|
5757 | # Broken: fails on valid input. |
---|
5758 | continue |
---|
5759 | fi |
---|
5760 | rm -f conftest.err conftest.$ac_ext |
---|
5761 | |
---|
5762 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5763 | # can be detected and how. |
---|
5764 | cat >conftest.$ac_ext <<_ACEOF |
---|
5765 | /* confdefs.h. */ |
---|
5766 | _ACEOF |
---|
5767 | cat confdefs.h >>conftest.$ac_ext |
---|
5768 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5769 | /* end confdefs.h. */ |
---|
5770 | #include <ac_nonexistent.h> |
---|
5771 | _ACEOF |
---|
5772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5774 | ac_status=$? |
---|
5775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5776 | rm -f conftest.er1 |
---|
5777 | cat conftest.err >&5 |
---|
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5779 | (exit $ac_status); } >/dev/null; then |
---|
5780 | if test -s conftest.err; then |
---|
5781 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5783 | else |
---|
5784 | ac_cpp_err= |
---|
5785 | fi |
---|
5786 | else |
---|
5787 | ac_cpp_err=yes |
---|
5788 | fi |
---|
5789 | if test -z "$ac_cpp_err"; then |
---|
5790 | # Broken: success on invalid input. |
---|
5791 | continue |
---|
5792 | else |
---|
5793 | echo "$as_me: failed program was:" >&5 |
---|
5794 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5795 | |
---|
5796 | # Passes both tests. |
---|
5797 | ac_preproc_ok=: |
---|
5798 | break |
---|
5799 | fi |
---|
5800 | rm -f conftest.err conftest.$ac_ext |
---|
5801 | |
---|
5802 | done |
---|
5803 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5804 | rm -f conftest.err conftest.$ac_ext |
---|
5805 | if $ac_preproc_ok; then |
---|
5806 | : |
---|
5807 | else |
---|
5808 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5809 | See \`config.log' for more details." >&5 |
---|
5810 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5811 | See \`config.log' for more details." >&2;} |
---|
5812 | { (exit 1); exit 1; }; } |
---|
5813 | fi |
---|
5814 | |
---|
5815 | ac_ext=c |
---|
5816 | ac_cpp='$CPP $CPPFLAGS' |
---|
5817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5820 | |
---|
5821 | |
---|
5822 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5823 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5824 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5826 | else |
---|
5827 | cat >conftest.$ac_ext <<_ACEOF |
---|
5828 | /* confdefs.h. */ |
---|
5829 | _ACEOF |
---|
5830 | cat confdefs.h >>conftest.$ac_ext |
---|
5831 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5832 | /* end confdefs.h. */ |
---|
5833 | #include <stdlib.h> |
---|
5834 | #include <stdarg.h> |
---|
5835 | #include <string.h> |
---|
5836 | #include <float.h> |
---|
5837 | |
---|
5838 | int |
---|
5839 | main () |
---|
5840 | { |
---|
5841 | |
---|
5842 | ; |
---|
5843 | return 0; |
---|
5844 | } |
---|
5845 | _ACEOF |
---|
5846 | rm -f conftest.$ac_objext |
---|
5847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5848 | (eval $ac_compile) 2>conftest.er1 |
---|
5849 | ac_status=$? |
---|
5850 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5851 | rm -f conftest.er1 |
---|
5852 | cat conftest.err >&5 |
---|
5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5854 | (exit $ac_status); } && |
---|
5855 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5856 | || test ! -s conftest.err' |
---|
5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5858 | (eval $ac_try) 2>&5 |
---|
5859 | ac_status=$? |
---|
5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5861 | (exit $ac_status); }; } && |
---|
5862 | { ac_try='test -s conftest.$ac_objext' |
---|
5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5864 | (eval $ac_try) 2>&5 |
---|
5865 | ac_status=$? |
---|
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5867 | (exit $ac_status); }; }; then |
---|
5868 | ac_cv_header_stdc=yes |
---|
5869 | else |
---|
5870 | echo "$as_me: failed program was:" >&5 |
---|
5871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5872 | |
---|
5873 | ac_cv_header_stdc=no |
---|
5874 | fi |
---|
5875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5876 | |
---|
5877 | if test $ac_cv_header_stdc = yes; then |
---|
5878 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5879 | cat >conftest.$ac_ext <<_ACEOF |
---|
5880 | /* confdefs.h. */ |
---|
5881 | _ACEOF |
---|
5882 | cat confdefs.h >>conftest.$ac_ext |
---|
5883 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5884 | /* end confdefs.h. */ |
---|
5885 | #include <string.h> |
---|
5886 | |
---|
5887 | _ACEOF |
---|
5888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5889 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5890 | : |
---|
5891 | else |
---|
5892 | ac_cv_header_stdc=no |
---|
5893 | fi |
---|
5894 | rm -f conftest* |
---|
5895 | |
---|
5896 | fi |
---|
5897 | |
---|
5898 | if test $ac_cv_header_stdc = yes; then |
---|
5899 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5900 | cat >conftest.$ac_ext <<_ACEOF |
---|
5901 | /* confdefs.h. */ |
---|
5902 | _ACEOF |
---|
5903 | cat confdefs.h >>conftest.$ac_ext |
---|
5904 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5905 | /* end confdefs.h. */ |
---|
5906 | #include <stdlib.h> |
---|
5907 | |
---|
5908 | _ACEOF |
---|
5909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5910 | $EGREP "free" >/dev/null 2>&1; then |
---|
5911 | : |
---|
5912 | else |
---|
5913 | ac_cv_header_stdc=no |
---|
5914 | fi |
---|
5915 | rm -f conftest* |
---|
5916 | |
---|
5917 | fi |
---|
5918 | |
---|
5919 | if test $ac_cv_header_stdc = yes; then |
---|
5920 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5921 | if test "$cross_compiling" = yes; then |
---|
5922 | : |
---|
5923 | else |
---|
5924 | cat >conftest.$ac_ext <<_ACEOF |
---|
5925 | /* confdefs.h. */ |
---|
5926 | _ACEOF |
---|
5927 | cat confdefs.h >>conftest.$ac_ext |
---|
5928 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5929 | /* end confdefs.h. */ |
---|
5930 | #include <ctype.h> |
---|
5931 | #if ((' ' & 0x0FF) == 0x020) |
---|
5932 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5933 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5934 | #else |
---|
5935 | # define ISLOWER(c) \ |
---|
5936 | (('a' <= (c) && (c) <= 'i') \ |
---|
5937 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5938 | || ('s' <= (c) && (c) <= 'z')) |
---|
5939 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5940 | #endif |
---|
5941 | |
---|
5942 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5943 | int |
---|
5944 | main () |
---|
5945 | { |
---|
5946 | int i; |
---|
5947 | for (i = 0; i < 256; i++) |
---|
5948 | if (XOR (islower (i), ISLOWER (i)) |
---|
5949 | || toupper (i) != TOUPPER (i)) |
---|
5950 | exit(2); |
---|
5951 | exit (0); |
---|
5952 | } |
---|
5953 | _ACEOF |
---|
5954 | rm -f conftest$ac_exeext |
---|
5955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5956 | (eval $ac_link) 2>&5 |
---|
5957 | ac_status=$? |
---|
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5961 | (eval $ac_try) 2>&5 |
---|
5962 | ac_status=$? |
---|
5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5964 | (exit $ac_status); }; }; then |
---|
5965 | : |
---|
5966 | else |
---|
5967 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5968 | echo "$as_me: failed program was:" >&5 |
---|
5969 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5970 | |
---|
5971 | ( exit $ac_status ) |
---|
5972 | ac_cv_header_stdc=no |
---|
5973 | fi |
---|
5974 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5975 | fi |
---|
5976 | fi |
---|
5977 | fi |
---|
5978 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5979 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5980 | if test $ac_cv_header_stdc = yes; then |
---|
5981 | |
---|
5982 | cat >>confdefs.h <<\_ACEOF |
---|
5983 | #define STDC_HEADERS 1 |
---|
5984 | _ACEOF |
---|
5985 | |
---|
5986 | fi |
---|
5987 | |
---|
5988 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5989 | |
---|
5990 | |
---|
5991 | |
---|
5992 | |
---|
5993 | |
---|
5994 | |
---|
5995 | |
---|
5996 | |
---|
5997 | |
---|
5998 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5999 | inttypes.h stdint.h unistd.h |
---|
6000 | do |
---|
6001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6002 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6006 | else |
---|
6007 | cat >conftest.$ac_ext <<_ACEOF |
---|
6008 | /* confdefs.h. */ |
---|
6009 | _ACEOF |
---|
6010 | cat confdefs.h >>conftest.$ac_ext |
---|
6011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6012 | /* end confdefs.h. */ |
---|
6013 | $ac_includes_default |
---|
6014 | |
---|
6015 | #include <$ac_header> |
---|
6016 | _ACEOF |
---|
6017 | rm -f conftest.$ac_objext |
---|
6018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6019 | (eval $ac_compile) 2>conftest.er1 |
---|
6020 | ac_status=$? |
---|
6021 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6022 | rm -f conftest.er1 |
---|
6023 | cat conftest.err >&5 |
---|
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6025 | (exit $ac_status); } && |
---|
6026 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6027 | || test ! -s conftest.err' |
---|
6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6029 | (eval $ac_try) 2>&5 |
---|
6030 | ac_status=$? |
---|
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6032 | (exit $ac_status); }; } && |
---|
6033 | { ac_try='test -s conftest.$ac_objext' |
---|
6034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6035 | (eval $ac_try) 2>&5 |
---|
6036 | ac_status=$? |
---|
6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6038 | (exit $ac_status); }; }; then |
---|
6039 | eval "$as_ac_Header=yes" |
---|
6040 | else |
---|
6041 | echo "$as_me: failed program was:" >&5 |
---|
6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6043 | |
---|
6044 | eval "$as_ac_Header=no" |
---|
6045 | fi |
---|
6046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6047 | fi |
---|
6048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6049 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6051 | cat >>confdefs.h <<_ACEOF |
---|
6052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6053 | _ACEOF |
---|
6054 | |
---|
6055 | fi |
---|
6056 | |
---|
6057 | done |
---|
6058 | |
---|
6059 | |
---|
6060 | |
---|
6061 | for ac_header in dlfcn.h |
---|
6062 | do |
---|
6063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6069 | fi |
---|
6070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6071 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6072 | else |
---|
6073 | # Is the header compilable? |
---|
6074 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6076 | cat >conftest.$ac_ext <<_ACEOF |
---|
6077 | /* confdefs.h. */ |
---|
6078 | _ACEOF |
---|
6079 | cat confdefs.h >>conftest.$ac_ext |
---|
6080 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6081 | /* end confdefs.h. */ |
---|
6082 | $ac_includes_default |
---|
6083 | #include <$ac_header> |
---|
6084 | _ACEOF |
---|
6085 | rm -f conftest.$ac_objext |
---|
6086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6087 | (eval $ac_compile) 2>conftest.er1 |
---|
6088 | ac_status=$? |
---|
6089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6090 | rm -f conftest.er1 |
---|
6091 | cat conftest.err >&5 |
---|
6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6093 | (exit $ac_status); } && |
---|
6094 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6095 | || test ! -s conftest.err' |
---|
6096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6097 | (eval $ac_try) 2>&5 |
---|
6098 | ac_status=$? |
---|
6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6100 | (exit $ac_status); }; } && |
---|
6101 | { ac_try='test -s conftest.$ac_objext' |
---|
6102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6103 | (eval $ac_try) 2>&5 |
---|
6104 | ac_status=$? |
---|
6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6106 | (exit $ac_status); }; }; then |
---|
6107 | ac_header_compiler=yes |
---|
6108 | else |
---|
6109 | echo "$as_me: failed program was:" >&5 |
---|
6110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6111 | |
---|
6112 | ac_header_compiler=no |
---|
6113 | fi |
---|
6114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6116 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6117 | |
---|
6118 | # Is the header present? |
---|
6119 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6121 | cat >conftest.$ac_ext <<_ACEOF |
---|
6122 | /* confdefs.h. */ |
---|
6123 | _ACEOF |
---|
6124 | cat confdefs.h >>conftest.$ac_ext |
---|
6125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6126 | /* end confdefs.h. */ |
---|
6127 | #include <$ac_header> |
---|
6128 | _ACEOF |
---|
6129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6131 | ac_status=$? |
---|
6132 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6133 | rm -f conftest.er1 |
---|
6134 | cat conftest.err >&5 |
---|
6135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6136 | (exit $ac_status); } >/dev/null; then |
---|
6137 | if test -s conftest.err; then |
---|
6138 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6140 | else |
---|
6141 | ac_cpp_err= |
---|
6142 | fi |
---|
6143 | else |
---|
6144 | ac_cpp_err=yes |
---|
6145 | fi |
---|
6146 | if test -z "$ac_cpp_err"; then |
---|
6147 | ac_header_preproc=yes |
---|
6148 | else |
---|
6149 | echo "$as_me: failed program was:" >&5 |
---|
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6151 | |
---|
6152 | ac_header_preproc=no |
---|
6153 | fi |
---|
6154 | rm -f conftest.err conftest.$ac_ext |
---|
6155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6156 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6157 | |
---|
6158 | # So? What about this header? |
---|
6159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6160 | yes:no: ) |
---|
6161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6165 | ac_header_preproc=yes |
---|
6166 | ;; |
---|
6167 | no:yes:* ) |
---|
6168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6180 | ( |
---|
6181 | cat <<\_ASBOX |
---|
6182 | ## --------------------------------------------------------------- ## |
---|
6183 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
6184 | ## --------------------------------------------------------------- ## |
---|
6185 | _ASBOX |
---|
6186 | ) | |
---|
6187 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6188 | ;; |
---|
6189 | esac |
---|
6190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6194 | else |
---|
6195 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6196 | fi |
---|
6197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6199 | |
---|
6200 | fi |
---|
6201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6202 | cat >>confdefs.h <<_ACEOF |
---|
6203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6204 | _ACEOF |
---|
6205 | |
---|
6206 | fi |
---|
6207 | |
---|
6208 | done |
---|
6209 | |
---|
6210 | ac_ext=cc |
---|
6211 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6215 | if test -n "$ac_tool_prefix"; then |
---|
6216 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
6217 | do |
---|
6218 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6219 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6222 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6224 | else |
---|
6225 | if test -n "$CXX"; then |
---|
6226 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
6227 | else |
---|
6228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6229 | for as_dir in $PATH |
---|
6230 | do |
---|
6231 | IFS=$as_save_IFS |
---|
6232 | test -z "$as_dir" && as_dir=. |
---|
6233 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6235 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
6236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6237 | break 2 |
---|
6238 | fi |
---|
6239 | done |
---|
6240 | done |
---|
6241 | |
---|
6242 | fi |
---|
6243 | fi |
---|
6244 | CXX=$ac_cv_prog_CXX |
---|
6245 | if test -n "$CXX"; then |
---|
6246 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
6247 | echo "${ECHO_T}$CXX" >&6 |
---|
6248 | else |
---|
6249 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6250 | echo "${ECHO_T}no" >&6 |
---|
6251 | fi |
---|
6252 | |
---|
6253 | test -n "$CXX" && break |
---|
6254 | done |
---|
6255 | fi |
---|
6256 | if test -z "$CXX"; then |
---|
6257 | ac_ct_CXX=$CXX |
---|
6258 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
6259 | do |
---|
6260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6261 | set dummy $ac_prog; ac_word=$2 |
---|
6262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6264 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6266 | else |
---|
6267 | if test -n "$ac_ct_CXX"; then |
---|
6268 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
6269 | else |
---|
6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6271 | for as_dir in $PATH |
---|
6272 | do |
---|
6273 | IFS=$as_save_IFS |
---|
6274 | test -z "$as_dir" && as_dir=. |
---|
6275 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6277 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
6278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6279 | break 2 |
---|
6280 | fi |
---|
6281 | done |
---|
6282 | done |
---|
6283 | |
---|
6284 | fi |
---|
6285 | fi |
---|
6286 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
6287 | if test -n "$ac_ct_CXX"; then |
---|
6288 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
6289 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
6290 | else |
---|
6291 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6292 | echo "${ECHO_T}no" >&6 |
---|
6293 | fi |
---|
6294 | |
---|
6295 | test -n "$ac_ct_CXX" && break |
---|
6296 | done |
---|
6297 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
6298 | |
---|
6299 | CXX=$ac_ct_CXX |
---|
6300 | fi |
---|
6301 | |
---|
6302 | |
---|
6303 | # Provide some information about the compiler. |
---|
6304 | echo "$as_me:$LINENO:" \ |
---|
6305 | "checking for C++ compiler version" >&5 |
---|
6306 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6307 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
6308 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
6309 | ac_status=$? |
---|
6310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6311 | (exit $ac_status); } |
---|
6312 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
6313 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
6314 | ac_status=$? |
---|
6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6316 | (exit $ac_status); } |
---|
6317 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
6318 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
6319 | ac_status=$? |
---|
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6321 | (exit $ac_status); } |
---|
6322 | |
---|
6323 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
6324 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
6325 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
6326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6327 | else |
---|
6328 | cat >conftest.$ac_ext <<_ACEOF |
---|
6329 | /* confdefs.h. */ |
---|
6330 | _ACEOF |
---|
6331 | cat confdefs.h >>conftest.$ac_ext |
---|
6332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6333 | /* end confdefs.h. */ |
---|
6334 | |
---|
6335 | int |
---|
6336 | main () |
---|
6337 | { |
---|
6338 | #ifndef __GNUC__ |
---|
6339 | choke me |
---|
6340 | #endif |
---|
6341 | |
---|
6342 | ; |
---|
6343 | return 0; |
---|
6344 | } |
---|
6345 | _ACEOF |
---|
6346 | rm -f conftest.$ac_objext |
---|
6347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6348 | (eval $ac_compile) 2>conftest.er1 |
---|
6349 | ac_status=$? |
---|
6350 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6351 | rm -f conftest.er1 |
---|
6352 | cat conftest.err >&5 |
---|
6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6354 | (exit $ac_status); } && |
---|
6355 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6356 | || test ! -s conftest.err' |
---|
6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6358 | (eval $ac_try) 2>&5 |
---|
6359 | ac_status=$? |
---|
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6361 | (exit $ac_status); }; } && |
---|
6362 | { ac_try='test -s conftest.$ac_objext' |
---|
6363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6364 | (eval $ac_try) 2>&5 |
---|
6365 | ac_status=$? |
---|
6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6367 | (exit $ac_status); }; }; then |
---|
6368 | ac_compiler_gnu=yes |
---|
6369 | else |
---|
6370 | echo "$as_me: failed program was:" >&5 |
---|
6371 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6372 | |
---|
6373 | ac_compiler_gnu=no |
---|
6374 | fi |
---|
6375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6376 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
6377 | |
---|
6378 | fi |
---|
6379 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
6380 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
6381 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
6382 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
6383 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
6384 | CXXFLAGS="-g" |
---|
6385 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
6386 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
6387 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
6388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6389 | else |
---|
6390 | cat >conftest.$ac_ext <<_ACEOF |
---|
6391 | /* confdefs.h. */ |
---|
6392 | _ACEOF |
---|
6393 | cat confdefs.h >>conftest.$ac_ext |
---|
6394 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6395 | /* end confdefs.h. */ |
---|
6396 | |
---|
6397 | int |
---|
6398 | main () |
---|
6399 | { |
---|
6400 | |
---|
6401 | ; |
---|
6402 | return 0; |
---|
6403 | } |
---|
6404 | _ACEOF |
---|
6405 | rm -f conftest.$ac_objext |
---|
6406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6407 | (eval $ac_compile) 2>conftest.er1 |
---|
6408 | ac_status=$? |
---|
6409 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6410 | rm -f conftest.er1 |
---|
6411 | cat conftest.err >&5 |
---|
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6413 | (exit $ac_status); } && |
---|
6414 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6415 | || test ! -s conftest.err' |
---|
6416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6417 | (eval $ac_try) 2>&5 |
---|
6418 | ac_status=$? |
---|
6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6420 | (exit $ac_status); }; } && |
---|
6421 | { ac_try='test -s conftest.$ac_objext' |
---|
6422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6423 | (eval $ac_try) 2>&5 |
---|
6424 | ac_status=$? |
---|
6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6426 | (exit $ac_status); }; }; then |
---|
6427 | ac_cv_prog_cxx_g=yes |
---|
6428 | else |
---|
6429 | echo "$as_me: failed program was:" >&5 |
---|
6430 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6431 | |
---|
6432 | ac_cv_prog_cxx_g=no |
---|
6433 | fi |
---|
6434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6435 | fi |
---|
6436 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
6437 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
6438 | if test "$ac_test_CXXFLAGS" = set; then |
---|
6439 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
6440 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
6441 | if test "$GXX" = yes; then |
---|
6442 | CXXFLAGS="-g -O2" |
---|
6443 | else |
---|
6444 | CXXFLAGS="-g" |
---|
6445 | fi |
---|
6446 | else |
---|
6447 | if test "$GXX" = yes; then |
---|
6448 | CXXFLAGS="-O2" |
---|
6449 | else |
---|
6450 | CXXFLAGS= |
---|
6451 | fi |
---|
6452 | fi |
---|
6453 | for ac_declaration in \ |
---|
6454 | '' \ |
---|
6455 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
6456 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
6457 | 'extern "C" void exit (int) throw ();' \ |
---|
6458 | 'extern "C" void exit (int);' \ |
---|
6459 | 'void exit (int);' |
---|
6460 | do |
---|
6461 | cat >conftest.$ac_ext <<_ACEOF |
---|
6462 | /* confdefs.h. */ |
---|
6463 | _ACEOF |
---|
6464 | cat confdefs.h >>conftest.$ac_ext |
---|
6465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6466 | /* end confdefs.h. */ |
---|
6467 | $ac_declaration |
---|
6468 | #include <stdlib.h> |
---|
6469 | int |
---|
6470 | main () |
---|
6471 | { |
---|
6472 | exit (42); |
---|
6473 | ; |
---|
6474 | return 0; |
---|
6475 | } |
---|
6476 | _ACEOF |
---|
6477 | rm -f conftest.$ac_objext |
---|
6478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6479 | (eval $ac_compile) 2>conftest.er1 |
---|
6480 | ac_status=$? |
---|
6481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6482 | rm -f conftest.er1 |
---|
6483 | cat conftest.err >&5 |
---|
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6485 | (exit $ac_status); } && |
---|
6486 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6487 | || test ! -s conftest.err' |
---|
6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6489 | (eval $ac_try) 2>&5 |
---|
6490 | ac_status=$? |
---|
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6492 | (exit $ac_status); }; } && |
---|
6493 | { ac_try='test -s conftest.$ac_objext' |
---|
6494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6495 | (eval $ac_try) 2>&5 |
---|
6496 | ac_status=$? |
---|
6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6498 | (exit $ac_status); }; }; then |
---|
6499 | : |
---|
6500 | else |
---|
6501 | echo "$as_me: failed program was:" >&5 |
---|
6502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6503 | |
---|
6504 | continue |
---|
6505 | fi |
---|
6506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6507 | cat >conftest.$ac_ext <<_ACEOF |
---|
6508 | /* confdefs.h. */ |
---|
6509 | _ACEOF |
---|
6510 | cat confdefs.h >>conftest.$ac_ext |
---|
6511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6512 | /* end confdefs.h. */ |
---|
6513 | $ac_declaration |
---|
6514 | int |
---|
6515 | main () |
---|
6516 | { |
---|
6517 | exit (42); |
---|
6518 | ; |
---|
6519 | return 0; |
---|
6520 | } |
---|
6521 | _ACEOF |
---|
6522 | rm -f conftest.$ac_objext |
---|
6523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6524 | (eval $ac_compile) 2>conftest.er1 |
---|
6525 | ac_status=$? |
---|
6526 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6527 | rm -f conftest.er1 |
---|
6528 | cat conftest.err >&5 |
---|
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6530 | (exit $ac_status); } && |
---|
6531 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
6532 | || test ! -s conftest.err' |
---|
6533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6534 | (eval $ac_try) 2>&5 |
---|
6535 | ac_status=$? |
---|
6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6537 | (exit $ac_status); }; } && |
---|
6538 | { ac_try='test -s conftest.$ac_objext' |
---|
6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6540 | (eval $ac_try) 2>&5 |
---|
6541 | ac_status=$? |
---|
6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6543 | (exit $ac_status); }; }; then |
---|
6544 | break |
---|
6545 | else |
---|
6546 | echo "$as_me: failed program was:" >&5 |
---|
6547 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6548 | |
---|
6549 | fi |
---|
6550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6551 | done |
---|
6552 | rm -f conftest* |
---|
6553 | if test -n "$ac_declaration"; then |
---|
6554 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
6555 | echo $ac_declaration >>confdefs.h |
---|
6556 | echo '#endif' >>confdefs.h |
---|
6557 | fi |
---|
6558 | |
---|
6559 | ac_ext=cc |
---|
6560 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6564 | |
---|
6565 | depcc="$CXX" am_compiler_list= |
---|
6566 | |
---|
6567 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
6568 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
6569 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6571 | else |
---|
6572 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
6573 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
6574 | # making bogus files that we don't know about and never remove. For |
---|
6575 | # instance it was reported that on HP-UX the gcc test will end up |
---|
6576 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
6577 | # in D'. |
---|
6578 | mkdir conftest.dir |
---|
6579 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
6580 | # using a relative directory. |
---|
6581 | cp "$am_depcomp" conftest.dir |
---|
6582 | cd conftest.dir |
---|
6583 | # We will build objects and dependencies in a subdirectory because |
---|
6584 | # it helps to detect inapplicable dependency modes. For instance |
---|
6585 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
6586 | # side effect of compilation, but ICC will put the dependencies in |
---|
6587 | # the current directory while Tru64 will put them in the object |
---|
6588 | # directory. |
---|
6589 | mkdir sub |
---|
6590 | |
---|
6591 | am_cv_CXX_dependencies_compiler_type=none |
---|
6592 | if test "$am_compiler_list" = ""; then |
---|
6593 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
6594 | fi |
---|
6595 | for depmode in $am_compiler_list; do |
---|
6596 | # Setup a source with many dependencies, because some compilers |
---|
6597 | # like to wrap large dependency lists on column 80 (with \), and |
---|
6598 | # we should not choose a depcomp mode which is confused by this. |
---|
6599 | # |
---|
6600 | # We need to recreate these files for each test, as the compiler may |
---|
6601 | # overwrite some of them when testing with obscure command lines. |
---|
6602 | # This happens at least with the AIX C compiler. |
---|
6603 | : > sub/conftest.c |
---|
6604 | for i in 1 2 3 4 5 6; do |
---|
6605 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
6606 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
6607 | # Solaris 8's {/usr,}/bin/sh. |
---|
6608 | touch sub/conftst$i.h |
---|
6609 | done |
---|
6610 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
6611 | |
---|
6612 | case $depmode in |
---|
6613 | nosideeffect) |
---|
6614 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
6615 | # only be used when explicitly requested |
---|
6616 | if test "x$enable_dependency_tracking" = xyes; then |
---|
6617 | continue |
---|
6618 | else |
---|
6619 | break |
---|
6620 | fi |
---|
6621 | ;; |
---|
6622 | none) break ;; |
---|
6623 | esac |
---|
6624 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
6625 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
6626 | # handle `-M -o', and we need to detect this. |
---|
6627 | if depmode=$depmode \ |
---|
6628 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
6629 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
6630 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
6631 | >/dev/null 2>conftest.err && |
---|
6632 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
6633 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
6634 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
6635 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
6636 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
6637 | # that says an option was ignored or not supported. |
---|
6638 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
6639 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
6640 | # The diagnosis changed in icc 8.0: |
---|
6641 | # icc: Command line remark: option '-MP' not supported |
---|
6642 | if (grep 'ignoring option' conftest.err || |
---|
6643 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
6644 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
6645 | break |
---|
6646 | fi |
---|
6647 | fi |
---|
6648 | done |
---|
6649 | |
---|
6650 | cd .. |
---|
6651 | rm -rf conftest.dir |
---|
6652 | else |
---|
6653 | am_cv_CXX_dependencies_compiler_type=none |
---|
6654 | fi |
---|
6655 | |
---|
6656 | fi |
---|
6657 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
6658 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
6659 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
6660 | |
---|
6661 | |
---|
6662 | |
---|
6663 | if |
---|
6664 | test "x$enable_dependency_tracking" != xno \ |
---|
6665 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
6666 | am__fastdepCXX_TRUE= |
---|
6667 | am__fastdepCXX_FALSE='#' |
---|
6668 | else |
---|
6669 | am__fastdepCXX_TRUE='#' |
---|
6670 | am__fastdepCXX_FALSE= |
---|
6671 | fi |
---|
6672 | |
---|
6673 | |
---|
6674 | |
---|
6675 | |
---|
6676 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6677 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6678 | (test "X$CXX" != "Xg++"))) ; then |
---|
6679 | ac_ext=cc |
---|
6680 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6681 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6682 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6683 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6684 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6685 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
6686 | if test -z "$CXXCPP"; then |
---|
6687 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6689 | else |
---|
6690 | # Double quotes because CXXCPP needs to be expanded |
---|
6691 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6692 | do |
---|
6693 | ac_preproc_ok=false |
---|
6694 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6695 | do |
---|
6696 | # Use a header file that comes with gcc, so configuring glibc |
---|
6697 | # with a fresh cross-compiler works. |
---|
6698 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6699 | # <limits.h> exists even on freestanding compilers. |
---|
6700 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6701 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6702 | cat >conftest.$ac_ext <<_ACEOF |
---|
6703 | /* confdefs.h. */ |
---|
6704 | _ACEOF |
---|
6705 | cat confdefs.h >>conftest.$ac_ext |
---|
6706 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6707 | /* end confdefs.h. */ |
---|
6708 | #ifdef __STDC__ |
---|
6709 | # include <limits.h> |
---|
6710 | #else |
---|
6711 | # include <assert.h> |
---|
6712 | #endif |
---|
6713 | Syntax error |
---|
6714 | _ACEOF |
---|
6715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6717 | ac_status=$? |
---|
6718 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6719 | rm -f conftest.er1 |
---|
6720 | cat conftest.err >&5 |
---|
6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6722 | (exit $ac_status); } >/dev/null; then |
---|
6723 | if test -s conftest.err; then |
---|
6724 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6725 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6726 | else |
---|
6727 | ac_cpp_err= |
---|
6728 | fi |
---|
6729 | else |
---|
6730 | ac_cpp_err=yes |
---|
6731 | fi |
---|
6732 | if test -z "$ac_cpp_err"; then |
---|
6733 | : |
---|
6734 | else |
---|
6735 | echo "$as_me: failed program was:" >&5 |
---|
6736 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6737 | |
---|
6738 | # Broken: fails on valid input. |
---|
6739 | continue |
---|
6740 | fi |
---|
6741 | rm -f conftest.err conftest.$ac_ext |
---|
6742 | |
---|
6743 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6744 | # can be detected and how. |
---|
6745 | cat >conftest.$ac_ext <<_ACEOF |
---|
6746 | /* confdefs.h. */ |
---|
6747 | _ACEOF |
---|
6748 | cat confdefs.h >>conftest.$ac_ext |
---|
6749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6750 | /* end confdefs.h. */ |
---|
6751 | #include <ac_nonexistent.h> |
---|
6752 | _ACEOF |
---|
6753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6755 | ac_status=$? |
---|
6756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6757 | rm -f conftest.er1 |
---|
6758 | cat conftest.err >&5 |
---|
6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6760 | (exit $ac_status); } >/dev/null; then |
---|
6761 | if test -s conftest.err; then |
---|
6762 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6763 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6764 | else |
---|
6765 | ac_cpp_err= |
---|
6766 | fi |
---|
6767 | else |
---|
6768 | ac_cpp_err=yes |
---|
6769 | fi |
---|
6770 | if test -z "$ac_cpp_err"; then |
---|
6771 | # Broken: success on invalid input. |
---|
6772 | continue |
---|
6773 | else |
---|
6774 | echo "$as_me: failed program was:" >&5 |
---|
6775 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6776 | |
---|
6777 | # Passes both tests. |
---|
6778 | ac_preproc_ok=: |
---|
6779 | break |
---|
6780 | fi |
---|
6781 | rm -f conftest.err conftest.$ac_ext |
---|
6782 | |
---|
6783 | done |
---|
6784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6785 | rm -f conftest.err conftest.$ac_ext |
---|
6786 | if $ac_preproc_ok; then |
---|
6787 | break |
---|
6788 | fi |
---|
6789 | |
---|
6790 | done |
---|
6791 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6792 | |
---|
6793 | fi |
---|
6794 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6795 | else |
---|
6796 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6797 | fi |
---|
6798 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6799 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
6800 | ac_preproc_ok=false |
---|
6801 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6802 | do |
---|
6803 | # Use a header file that comes with gcc, so configuring glibc |
---|
6804 | # with a fresh cross-compiler works. |
---|
6805 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6806 | # <limits.h> exists even on freestanding compilers. |
---|
6807 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6808 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6809 | cat >conftest.$ac_ext <<_ACEOF |
---|
6810 | /* confdefs.h. */ |
---|
6811 | _ACEOF |
---|
6812 | cat confdefs.h >>conftest.$ac_ext |
---|
6813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6814 | /* end confdefs.h. */ |
---|
6815 | #ifdef __STDC__ |
---|
6816 | # include <limits.h> |
---|
6817 | #else |
---|
6818 | # include <assert.h> |
---|
6819 | #endif |
---|
6820 | Syntax error |
---|
6821 | _ACEOF |
---|
6822 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6823 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6824 | ac_status=$? |
---|
6825 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6826 | rm -f conftest.er1 |
---|
6827 | cat conftest.err >&5 |
---|
6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6829 | (exit $ac_status); } >/dev/null; then |
---|
6830 | if test -s conftest.err; then |
---|
6831 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6832 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6833 | else |
---|
6834 | ac_cpp_err= |
---|
6835 | fi |
---|
6836 | else |
---|
6837 | ac_cpp_err=yes |
---|
6838 | fi |
---|
6839 | if test -z "$ac_cpp_err"; then |
---|
6840 | : |
---|
6841 | else |
---|
6842 | echo "$as_me: failed program was:" >&5 |
---|
6843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6844 | |
---|
6845 | # Broken: fails on valid input. |
---|
6846 | continue |
---|
6847 | fi |
---|
6848 | rm -f conftest.err conftest.$ac_ext |
---|
6849 | |
---|
6850 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6851 | # can be detected and how. |
---|
6852 | cat >conftest.$ac_ext <<_ACEOF |
---|
6853 | /* confdefs.h. */ |
---|
6854 | _ACEOF |
---|
6855 | cat confdefs.h >>conftest.$ac_ext |
---|
6856 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6857 | /* end confdefs.h. */ |
---|
6858 | #include <ac_nonexistent.h> |
---|
6859 | _ACEOF |
---|
6860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6862 | ac_status=$? |
---|
6863 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6864 | rm -f conftest.er1 |
---|
6865 | cat conftest.err >&5 |
---|
6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6867 | (exit $ac_status); } >/dev/null; then |
---|
6868 | if test -s conftest.err; then |
---|
6869 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6870 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6871 | else |
---|
6872 | ac_cpp_err= |
---|
6873 | fi |
---|
6874 | else |
---|
6875 | ac_cpp_err=yes |
---|
6876 | fi |
---|
6877 | if test -z "$ac_cpp_err"; then |
---|
6878 | # Broken: success on invalid input. |
---|
6879 | continue |
---|
6880 | else |
---|
6881 | echo "$as_me: failed program was:" >&5 |
---|
6882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6883 | |
---|
6884 | # Passes both tests. |
---|
6885 | ac_preproc_ok=: |
---|
6886 | break |
---|
6887 | fi |
---|
6888 | rm -f conftest.err conftest.$ac_ext |
---|
6889 | |
---|
6890 | done |
---|
6891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6892 | rm -f conftest.err conftest.$ac_ext |
---|
6893 | if $ac_preproc_ok; then |
---|
6894 | : |
---|
6895 | else |
---|
6896 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6897 | See \`config.log' for more details." >&5 |
---|
6898 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6899 | See \`config.log' for more details." >&2;} |
---|
6900 | { (exit 1); exit 1; }; } |
---|
6901 | fi |
---|
6902 | |
---|
6903 | ac_ext=cc |
---|
6904 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6908 | |
---|
6909 | fi |
---|
6910 | |
---|
6911 | |
---|
6912 | |
---|
6913 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6914 | |
---|
6915 | # find the maximum length of command line arguments |
---|
6916 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6917 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
6918 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6920 | else |
---|
6921 | i=0 |
---|
6922 | teststring="ABCD" |
---|
6923 | |
---|
6924 | case $build_os in |
---|
6925 | msdosdjgpp*) |
---|
6926 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6927 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6928 | # during glob expansion). Even if it were fixed, the result of this |
---|
6929 | # check would be larger than it should be. |
---|
6930 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6931 | ;; |
---|
6932 | |
---|
6933 | gnu*) |
---|
6934 | # Under GNU Hurd, this test is not required because there is |
---|
6935 | # no limit to the length of command line arguments. |
---|
6936 | # Libtool will interpret -1 as no limit whatsoever |
---|
6937 | lt_cv_sys_max_cmd_len=-1; |
---|
6938 | ;; |
---|
6939 | |
---|
6940 | cygwin* | mingw*) |
---|
6941 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6942 | # about 5 minutes as the teststring grows exponentially. |
---|
6943 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6944 | # you end up with a "frozen" computer, even though with patience |
---|
6945 | # the test eventually succeeds (with a max line length of 256k). |
---|
6946 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6947 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6948 | lt_cv_sys_max_cmd_len=8192; |
---|
6949 | ;; |
---|
6950 | |
---|
6951 | amigaos*) |
---|
6952 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6953 | # So we just punt and use a minimum line length of 8192. |
---|
6954 | lt_cv_sys_max_cmd_len=8192; |
---|
6955 | ;; |
---|
6956 | |
---|
6957 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6958 | # This has been around since 386BSD, at least. Likely further. |
---|
6959 | if test -x /sbin/sysctl; then |
---|
6960 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6961 | elif test -x /usr/sbin/sysctl; then |
---|
6962 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6963 | else |
---|
6964 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6965 | fi |
---|
6966 | # And add a safety zone |
---|
6967 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6968 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6969 | ;; |
---|
6970 | |
---|
6971 | interix*) |
---|
6972 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
6973 | lt_cv_sys_max_cmd_len=196608 |
---|
6974 | ;; |
---|
6975 | |
---|
6976 | osf*) |
---|
6977 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6978 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6979 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6980 | # First set a reasonable default. |
---|
6981 | lt_cv_sys_max_cmd_len=16384 |
---|
6982 | # |
---|
6983 | if test -x /sbin/sysconfig; then |
---|
6984 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6985 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6986 | esac |
---|
6987 | fi |
---|
6988 | ;; |
---|
6989 | sco3.2v5*) |
---|
6990 | lt_cv_sys_max_cmd_len=102400 |
---|
6991 | ;; |
---|
6992 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6993 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6994 | if test -n "$kargmax"; then |
---|
6995 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6996 | else |
---|
6997 | lt_cv_sys_max_cmd_len=32768 |
---|
6998 | fi |
---|
6999 | ;; |
---|
7000 | *) |
---|
7001 | # If test is not a shell built-in, we'll probably end up computing a |
---|
7002 | # maximum length that is only half of the actual maximum length, but |
---|
7003 | # we can't tell. |
---|
7004 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
7005 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
7006 | = "XX$teststring") >/dev/null 2>&1 && |
---|
7007 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
7008 | lt_cv_sys_max_cmd_len=$new_result && |
---|
7009 | test $i != 17 # 1/2 MB should be enough |
---|
7010 | do |
---|
7011 | i=`expr $i + 1` |
---|
7012 | teststring=$teststring$teststring |
---|
7013 | done |
---|
7014 | teststring= |
---|
7015 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
7016 | # amounts of additional arguments before passing them to the linker. |
---|
7017 | # It appears as though 1/2 is a usable value. |
---|
7018 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
7019 | ;; |
---|
7020 | esac |
---|
7021 | |
---|
7022 | fi |
---|
7023 | |
---|
7024 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
7025 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
7026 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
7027 | else |
---|
7028 | echo "$as_me:$LINENO: result: none" >&5 |
---|
7029 | echo "${ECHO_T}none" >&6 |
---|
7030 | fi |
---|
7031 | |
---|
7032 | |
---|
7033 | |
---|
7034 | |
---|
7035 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7036 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
7037 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
7038 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
7039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7040 | else |
---|
7041 | |
---|
7042 | # These are sane defaults that work on at least a few old systems. |
---|
7043 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7044 | |
---|
7045 | # Character class describing NM global symbol codes. |
---|
7046 | symcode='[BCDEGRST]' |
---|
7047 | |
---|
7048 | # Regexp to match symbols that can be accessed directly from C. |
---|
7049 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7050 | |
---|
7051 | # Transform an extracted symbol line into a proper C declaration |
---|
7052 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
7053 | |
---|
7054 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7055 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7056 | |
---|
7057 | # Define system-specific variables. |
---|
7058 | case $host_os in |
---|
7059 | aix*) |
---|
7060 | symcode='[BCDT]' |
---|
7061 | ;; |
---|
7062 | cygwin* | mingw* | pw32*) |
---|
7063 | symcode='[ABCDGISTW]' |
---|
7064 | ;; |
---|
7065 | hpux*) # Its linker distinguishes data from code symbols |
---|
7066 | if test "$host_cpu" = ia64; then |
---|
7067 | symcode='[ABCDEGRST]' |
---|
7068 | fi |
---|
7069 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7070 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7071 | ;; |
---|
7072 | linux*) |
---|
7073 | if test "$host_cpu" = ia64; then |
---|
7074 | symcode='[ABCDGIRSTW]' |
---|
7075 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7076 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7077 | fi |
---|
7078 | ;; |
---|
7079 | irix* | nonstopux*) |
---|
7080 | symcode='[BCDEGRST]' |
---|
7081 | ;; |
---|
7082 | osf*) |
---|
7083 | symcode='[BCDEGQRST]' |
---|
7084 | ;; |
---|
7085 | solaris*) |
---|
7086 | symcode='[BDRT]' |
---|
7087 | ;; |
---|
7088 | sco3.2v5*) |
---|
7089 | symcode='[DT]' |
---|
7090 | ;; |
---|
7091 | sysv4.2uw2*) |
---|
7092 | symcode='[DT]' |
---|
7093 | ;; |
---|
7094 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7095 | symcode='[ABDT]' |
---|
7096 | ;; |
---|
7097 | sysv4) |
---|
7098 | symcode='[DFNSTU]' |
---|
7099 | ;; |
---|
7100 | esac |
---|
7101 | |
---|
7102 | # Handle CRLF in mingw tool chain |
---|
7103 | opt_cr= |
---|
7104 | case $build_os in |
---|
7105 | mingw*) |
---|
7106 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7107 | ;; |
---|
7108 | esac |
---|
7109 | |
---|
7110 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7111 | case `$NM -V 2>&1` in |
---|
7112 | *GNU* | *'with BFD'*) |
---|
7113 | symcode='[ABCDGIRSTW]' ;; |
---|
7114 | esac |
---|
7115 | |
---|
7116 | # Try without a prefix undercore, then with it. |
---|
7117 | for ac_symprfx in "" "_"; do |
---|
7118 | |
---|
7119 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7120 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7121 | |
---|
7122 | # Write the raw and C identifiers. |
---|
7123 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7124 | |
---|
7125 | # Check to see that the pipe works correctly. |
---|
7126 | pipe_works=no |
---|
7127 | |
---|
7128 | rm -f conftest* |
---|
7129 | cat > conftest.$ac_ext <<EOF |
---|
7130 | #ifdef __cplusplus |
---|
7131 | extern "C" { |
---|
7132 | #endif |
---|
7133 | char nm_test_var; |
---|
7134 | void nm_test_func(){} |
---|
7135 | #ifdef __cplusplus |
---|
7136 | } |
---|
7137 | #endif |
---|
7138 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7139 | EOF |
---|
7140 | |
---|
7141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7142 | (eval $ac_compile) 2>&5 |
---|
7143 | ac_status=$? |
---|
7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7145 | (exit $ac_status); }; then |
---|
7146 | # Now try to grab the symbols. |
---|
7147 | nlist=conftest.nm |
---|
7148 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7149 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7150 | ac_status=$? |
---|
7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7152 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7153 | # Try sorting and uniquifying the output. |
---|
7154 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7155 | mv -f "$nlist"T "$nlist" |
---|
7156 | else |
---|
7157 | rm -f "$nlist"T |
---|
7158 | fi |
---|
7159 | |
---|
7160 | # Make sure that we snagged all the symbols we need. |
---|
7161 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7162 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7163 | cat <<EOF > conftest.$ac_ext |
---|
7164 | #ifdef __cplusplus |
---|
7165 | extern "C" { |
---|
7166 | #endif |
---|
7167 | |
---|
7168 | EOF |
---|
7169 | # Now generate the symbol file. |
---|
7170 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7171 | |
---|
7172 | cat <<EOF >> conftest.$ac_ext |
---|
7173 | #if defined (__STDC__) && __STDC__ |
---|
7174 | # define lt_ptr_t void * |
---|
7175 | #else |
---|
7176 | # define lt_ptr_t char * |
---|
7177 | # define const |
---|
7178 | #endif |
---|
7179 | |
---|
7180 | /* The mapping between symbol names and symbols. */ |
---|
7181 | const struct { |
---|
7182 | const char *name; |
---|
7183 | lt_ptr_t address; |
---|
7184 | } |
---|
7185 | lt_preloaded_symbols[] = |
---|
7186 | { |
---|
7187 | EOF |
---|
7188 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7189 | cat <<\EOF >> conftest.$ac_ext |
---|
7190 | {0, (lt_ptr_t) 0} |
---|
7191 | }; |
---|
7192 | |
---|
7193 | #ifdef __cplusplus |
---|
7194 | } |
---|
7195 | #endif |
---|
7196 | EOF |
---|
7197 | # Now try linking the two files. |
---|
7198 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7199 | lt_save_LIBS="$LIBS" |
---|
7200 | lt_save_CFLAGS="$CFLAGS" |
---|
7201 | LIBS="conftstm.$ac_objext" |
---|
7202 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7204 | (eval $ac_link) 2>&5 |
---|
7205 | ac_status=$? |
---|
7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7207 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7208 | pipe_works=yes |
---|
7209 | fi |
---|
7210 | LIBS="$lt_save_LIBS" |
---|
7211 | CFLAGS="$lt_save_CFLAGS" |
---|
7212 | else |
---|
7213 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7214 | fi |
---|
7215 | else |
---|
7216 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7217 | fi |
---|
7218 | else |
---|
7219 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7220 | fi |
---|
7221 | else |
---|
7222 | echo "$progname: failed program was:" >&5 |
---|
7223 | cat conftest.$ac_ext >&5 |
---|
7224 | fi |
---|
7225 | rm -f conftest* conftst* |
---|
7226 | |
---|
7227 | # Do not use the global_symbol_pipe unless it works. |
---|
7228 | if test "$pipe_works" = yes; then |
---|
7229 | break |
---|
7230 | else |
---|
7231 | lt_cv_sys_global_symbol_pipe= |
---|
7232 | fi |
---|
7233 | done |
---|
7234 | |
---|
7235 | fi |
---|
7236 | |
---|
7237 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7238 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7239 | fi |
---|
7240 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7241 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
7242 | echo "${ECHO_T}failed" >&6 |
---|
7243 | else |
---|
7244 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
7245 | echo "${ECHO_T}ok" >&6 |
---|
7246 | fi |
---|
7247 | |
---|
7248 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7249 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
7250 | if test "${lt_cv_objdir+set}" = set; then |
---|
7251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7252 | else |
---|
7253 | rm -f .libs 2>/dev/null |
---|
7254 | mkdir .libs 2>/dev/null |
---|
7255 | if test -d .libs; then |
---|
7256 | lt_cv_objdir=.libs |
---|
7257 | else |
---|
7258 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7259 | lt_cv_objdir=_libs |
---|
7260 | fi |
---|
7261 | rmdir .libs 2>/dev/null |
---|
7262 | fi |
---|
7263 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7264 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
7265 | objdir=$lt_cv_objdir |
---|
7266 | |
---|
7267 | |
---|
7268 | |
---|
7269 | |
---|
7270 | |
---|
7271 | case $host_os in |
---|
7272 | aix3*) |
---|
7273 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7274 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7275 | # vanish in a puff of smoke. |
---|
7276 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7277 | COLLECT_NAMES= |
---|
7278 | export COLLECT_NAMES |
---|
7279 | fi |
---|
7280 | ;; |
---|
7281 | esac |
---|
7282 | |
---|
7283 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7284 | # metacharacters that are still active within double-quoted strings. |
---|
7285 | Xsed='sed -e 1s/^X//' |
---|
7286 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7287 | |
---|
7288 | # Same as above, but do not quote variable references. |
---|
7289 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7290 | |
---|
7291 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7292 | # double_quote_subst'ed string. |
---|
7293 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7294 | |
---|
7295 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7296 | no_glob_subst='s/\*/\\\*/g' |
---|
7297 | |
---|
7298 | # Constants: |
---|
7299 | rm="rm -f" |
---|
7300 | |
---|
7301 | # Global variables: |
---|
7302 | default_ofile=libtool |
---|
7303 | can_build_shared=yes |
---|
7304 | |
---|
7305 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7306 | # which needs '.lib'). |
---|
7307 | libext=a |
---|
7308 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7309 | ofile="$default_ofile" |
---|
7310 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7311 | |
---|
7312 | if test -n "$ac_tool_prefix"; then |
---|
7313 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7314 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7317 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7319 | else |
---|
7320 | if test -n "$AR"; then |
---|
7321 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7322 | else |
---|
7323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7324 | for as_dir in $PATH |
---|
7325 | do |
---|
7326 | IFS=$as_save_IFS |
---|
7327 | test -z "$as_dir" && as_dir=. |
---|
7328 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7330 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7332 | break 2 |
---|
7333 | fi |
---|
7334 | done |
---|
7335 | done |
---|
7336 | |
---|
7337 | fi |
---|
7338 | fi |
---|
7339 | AR=$ac_cv_prog_AR |
---|
7340 | if test -n "$AR"; then |
---|
7341 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7342 | echo "${ECHO_T}$AR" >&6 |
---|
7343 | else |
---|
7344 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7345 | echo "${ECHO_T}no" >&6 |
---|
7346 | fi |
---|
7347 | |
---|
7348 | fi |
---|
7349 | if test -z "$ac_cv_prog_AR"; then |
---|
7350 | ac_ct_AR=$AR |
---|
7351 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7352 | set dummy ar; ac_word=$2 |
---|
7353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7355 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7357 | else |
---|
7358 | if test -n "$ac_ct_AR"; then |
---|
7359 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7360 | else |
---|
7361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7362 | for as_dir in $PATH |
---|
7363 | do |
---|
7364 | IFS=$as_save_IFS |
---|
7365 | test -z "$as_dir" && as_dir=. |
---|
7366 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7368 | ac_cv_prog_ac_ct_AR="ar" |
---|
7369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7370 | break 2 |
---|
7371 | fi |
---|
7372 | done |
---|
7373 | done |
---|
7374 | |
---|
7375 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
7376 | fi |
---|
7377 | fi |
---|
7378 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7379 | if test -n "$ac_ct_AR"; then |
---|
7380 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7381 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
7382 | else |
---|
7383 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7384 | echo "${ECHO_T}no" >&6 |
---|
7385 | fi |
---|
7386 | |
---|
7387 | AR=$ac_ct_AR |
---|
7388 | else |
---|
7389 | AR="$ac_cv_prog_AR" |
---|
7390 | fi |
---|
7391 | |
---|
7392 | if test -n "$ac_tool_prefix"; then |
---|
7393 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7394 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7397 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7399 | else |
---|
7400 | if test -n "$RANLIB"; then |
---|
7401 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7402 | else |
---|
7403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7404 | for as_dir in $PATH |
---|
7405 | do |
---|
7406 | IFS=$as_save_IFS |
---|
7407 | test -z "$as_dir" && as_dir=. |
---|
7408 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7410 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7412 | break 2 |
---|
7413 | fi |
---|
7414 | done |
---|
7415 | done |
---|
7416 | |
---|
7417 | fi |
---|
7418 | fi |
---|
7419 | RANLIB=$ac_cv_prog_RANLIB |
---|
7420 | if test -n "$RANLIB"; then |
---|
7421 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7422 | echo "${ECHO_T}$RANLIB" >&6 |
---|
7423 | else |
---|
7424 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7425 | echo "${ECHO_T}no" >&6 |
---|
7426 | fi |
---|
7427 | |
---|
7428 | fi |
---|
7429 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7430 | ac_ct_RANLIB=$RANLIB |
---|
7431 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7432 | set dummy ranlib; ac_word=$2 |
---|
7433 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7435 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7437 | else |
---|
7438 | if test -n "$ac_ct_RANLIB"; then |
---|
7439 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7440 | else |
---|
7441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7442 | for as_dir in $PATH |
---|
7443 | do |
---|
7444 | IFS=$as_save_IFS |
---|
7445 | test -z "$as_dir" && as_dir=. |
---|
7446 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7447 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7448 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7450 | break 2 |
---|
7451 | fi |
---|
7452 | done |
---|
7453 | done |
---|
7454 | |
---|
7455 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
7456 | fi |
---|
7457 | fi |
---|
7458 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7459 | if test -n "$ac_ct_RANLIB"; then |
---|
7460 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7461 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
7462 | else |
---|
7463 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7464 | echo "${ECHO_T}no" >&6 |
---|
7465 | fi |
---|
7466 | |
---|
7467 | RANLIB=$ac_ct_RANLIB |
---|
7468 | else |
---|
7469 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7470 | fi |
---|
7471 | |
---|
7472 | if test -n "$ac_tool_prefix"; then |
---|
7473 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7474 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7477 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7479 | else |
---|
7480 | if test -n "$STRIP"; then |
---|
7481 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7482 | else |
---|
7483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7484 | for as_dir in $PATH |
---|
7485 | do |
---|
7486 | IFS=$as_save_IFS |
---|
7487 | test -z "$as_dir" && as_dir=. |
---|
7488 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7490 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7492 | break 2 |
---|
7493 | fi |
---|
7494 | done |
---|
7495 | done |
---|
7496 | |
---|
7497 | fi |
---|
7498 | fi |
---|
7499 | STRIP=$ac_cv_prog_STRIP |
---|
7500 | if test -n "$STRIP"; then |
---|
7501 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7502 | echo "${ECHO_T}$STRIP" >&6 |
---|
7503 | else |
---|
7504 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7505 | echo "${ECHO_T}no" >&6 |
---|
7506 | fi |
---|
7507 | |
---|
7508 | fi |
---|
7509 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7510 | ac_ct_STRIP=$STRIP |
---|
7511 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7512 | set dummy strip; ac_word=$2 |
---|
7513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7515 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
7516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7517 | else |
---|
7518 | if test -n "$ac_ct_STRIP"; then |
---|
7519 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7520 | else |
---|
7521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7522 | for as_dir in $PATH |
---|
7523 | do |
---|
7524 | IFS=$as_save_IFS |
---|
7525 | test -z "$as_dir" && as_dir=. |
---|
7526 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7528 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7530 | break 2 |
---|
7531 | fi |
---|
7532 | done |
---|
7533 | done |
---|
7534 | |
---|
7535 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
7536 | fi |
---|
7537 | fi |
---|
7538 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7539 | if test -n "$ac_ct_STRIP"; then |
---|
7540 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7541 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
7542 | else |
---|
7543 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7544 | echo "${ECHO_T}no" >&6 |
---|
7545 | fi |
---|
7546 | |
---|
7547 | STRIP=$ac_ct_STRIP |
---|
7548 | else |
---|
7549 | STRIP="$ac_cv_prog_STRIP" |
---|
7550 | fi |
---|
7551 | |
---|
7552 | |
---|
7553 | old_CC="$CC" |
---|
7554 | old_CFLAGS="$CFLAGS" |
---|
7555 | |
---|
7556 | # Set sane defaults for various variables |
---|
7557 | test -z "$AR" && AR=ar |
---|
7558 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7559 | test -z "$AS" && AS=as |
---|
7560 | test -z "$CC" && CC=cc |
---|
7561 | test -z "$LTCC" && LTCC=$CC |
---|
7562 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7563 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7564 | test -z "$LD" && LD=ld |
---|
7565 | test -z "$LN_S" && LN_S="ln -s" |
---|
7566 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7567 | test -z "$NM" && NM=nm |
---|
7568 | test -z "$SED" && SED=sed |
---|
7569 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7570 | test -z "$RANLIB" && RANLIB=: |
---|
7571 | test -z "$STRIP" && STRIP=: |
---|
7572 | test -z "$ac_objext" && ac_objext=o |
---|
7573 | |
---|
7574 | # Determine commands to create old-style static archives. |
---|
7575 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
7576 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7577 | old_postuninstall_cmds= |
---|
7578 | |
---|
7579 | if test -n "$RANLIB"; then |
---|
7580 | case $host_os in |
---|
7581 | openbsd*) |
---|
7582 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
7583 | ;; |
---|
7584 | *) |
---|
7585 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
7586 | ;; |
---|
7587 | esac |
---|
7588 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7589 | fi |
---|
7590 | |
---|
7591 | for cc_temp in $compiler""; do |
---|
7592 | case $cc_temp in |
---|
7593 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7594 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7595 | \-*) ;; |
---|
7596 | *) break;; |
---|
7597 | esac |
---|
7598 | done |
---|
7599 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7600 | |
---|
7601 | |
---|
7602 | # Only perform the check for file, if the check method requires it |
---|
7603 | case $deplibs_check_method in |
---|
7604 | file_magic*) |
---|
7605 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7606 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7607 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
7608 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7610 | else |
---|
7611 | case $MAGIC_CMD in |
---|
7612 | [\\/*] | ?:[\\/]*) |
---|
7613 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7614 | ;; |
---|
7615 | *) |
---|
7616 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7618 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7619 | for ac_dir in $ac_dummy; do |
---|
7620 | IFS="$lt_save_ifs" |
---|
7621 | test -z "$ac_dir" && ac_dir=. |
---|
7622 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7623 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7624 | if test -n "$file_magic_test_file"; then |
---|
7625 | case $deplibs_check_method in |
---|
7626 | "file_magic "*) |
---|
7627 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7628 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7629 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7630 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7631 | : |
---|
7632 | else |
---|
7633 | cat <<EOF 1>&2 |
---|
7634 | |
---|
7635 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7636 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7637 | *** The result is that libtool may fail to recognize shared libraries |
---|
7638 | *** as such. This will affect the creation of libtool libraries that |
---|
7639 | *** depend on shared libraries, but programs linked with such libtool |
---|
7640 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7641 | *** may want to report the problem to your system manager and/or to |
---|
7642 | *** bug-libtool@gnu.org |
---|
7643 | |
---|
7644 | EOF |
---|
7645 | fi ;; |
---|
7646 | esac |
---|
7647 | fi |
---|
7648 | break |
---|
7649 | fi |
---|
7650 | done |
---|
7651 | IFS="$lt_save_ifs" |
---|
7652 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7653 | ;; |
---|
7654 | esac |
---|
7655 | fi |
---|
7656 | |
---|
7657 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7658 | if test -n "$MAGIC_CMD"; then |
---|
7659 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7660 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7661 | else |
---|
7662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7663 | echo "${ECHO_T}no" >&6 |
---|
7664 | fi |
---|
7665 | |
---|
7666 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7667 | if test -n "$ac_tool_prefix"; then |
---|
7668 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
7669 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
7670 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7672 | else |
---|
7673 | case $MAGIC_CMD in |
---|
7674 | [\\/*] | ?:[\\/]*) |
---|
7675 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7676 | ;; |
---|
7677 | *) |
---|
7678 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7679 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7680 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7681 | for ac_dir in $ac_dummy; do |
---|
7682 | IFS="$lt_save_ifs" |
---|
7683 | test -z "$ac_dir" && ac_dir=. |
---|
7684 | if test -f $ac_dir/file; then |
---|
7685 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7686 | if test -n "$file_magic_test_file"; then |
---|
7687 | case $deplibs_check_method in |
---|
7688 | "file_magic "*) |
---|
7689 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7690 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7691 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7692 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7693 | : |
---|
7694 | else |
---|
7695 | cat <<EOF 1>&2 |
---|
7696 | |
---|
7697 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7698 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7699 | *** The result is that libtool may fail to recognize shared libraries |
---|
7700 | *** as such. This will affect the creation of libtool libraries that |
---|
7701 | *** depend on shared libraries, but programs linked with such libtool |
---|
7702 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7703 | *** may want to report the problem to your system manager and/or to |
---|
7704 | *** bug-libtool@gnu.org |
---|
7705 | |
---|
7706 | EOF |
---|
7707 | fi ;; |
---|
7708 | esac |
---|
7709 | fi |
---|
7710 | break |
---|
7711 | fi |
---|
7712 | done |
---|
7713 | IFS="$lt_save_ifs" |
---|
7714 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7715 | ;; |
---|
7716 | esac |
---|
7717 | fi |
---|
7718 | |
---|
7719 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7720 | if test -n "$MAGIC_CMD"; then |
---|
7721 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7722 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7723 | else |
---|
7724 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7725 | echo "${ECHO_T}no" >&6 |
---|
7726 | fi |
---|
7727 | |
---|
7728 | else |
---|
7729 | MAGIC_CMD=: |
---|
7730 | fi |
---|
7731 | fi |
---|
7732 | |
---|
7733 | fi |
---|
7734 | ;; |
---|
7735 | esac |
---|
7736 | |
---|
7737 | enable_dlopen=no |
---|
7738 | enable_win32_dll=no |
---|
7739 | |
---|
7740 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
7741 | if test "${enable_libtool_lock+set}" = set; then |
---|
7742 | enableval="$enable_libtool_lock" |
---|
7743 | |
---|
7744 | fi; |
---|
7745 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7746 | |
---|
7747 | |
---|
7748 | # Check whether --with-pic or --without-pic was given. |
---|
7749 | if test "${with_pic+set}" = set; then |
---|
7750 | withval="$with_pic" |
---|
7751 | pic_mode="$withval" |
---|
7752 | else |
---|
7753 | pic_mode=default |
---|
7754 | fi; |
---|
7755 | test -z "$pic_mode" && pic_mode=default |
---|
7756 | |
---|
7757 | # Use C for the default configuration in the libtool script |
---|
7758 | tagname= |
---|
7759 | lt_save_CC="$CC" |
---|
7760 | ac_ext=c |
---|
7761 | ac_cpp='$CPP $CPPFLAGS' |
---|
7762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7765 | |
---|
7766 | |
---|
7767 | # Source file extension for C test sources. |
---|
7768 | ac_ext=c |
---|
7769 | |
---|
7770 | # Object file extension for compiled C test sources. |
---|
7771 | objext=o |
---|
7772 | objext=$objext |
---|
7773 | |
---|
7774 | # Code to be used in simple compile tests |
---|
7775 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
7776 | |
---|
7777 | # Code to be used in simple link tests |
---|
7778 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
7779 | |
---|
7780 | |
---|
7781 | # If no C compiler was specified, use CC. |
---|
7782 | LTCC=${LTCC-"$CC"} |
---|
7783 | |
---|
7784 | # If no C compiler flags were specified, use CFLAGS. |
---|
7785 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7786 | |
---|
7787 | # Allow CC to be a program name with arguments. |
---|
7788 | compiler=$CC |
---|
7789 | |
---|
7790 | |
---|
7791 | # save warnings/boilerplate of simple test code |
---|
7792 | ac_outfile=conftest.$ac_objext |
---|
7793 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7794 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7795 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7796 | $rm conftest* |
---|
7797 | |
---|
7798 | ac_outfile=conftest.$ac_objext |
---|
7799 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7800 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7801 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7802 | $rm conftest* |
---|
7803 | |
---|
7804 | |
---|
7805 | ## CAVEAT EMPTOR: |
---|
7806 | ## There is no encapsulation within the following macros, do not change |
---|
7807 | ## the running order or otherwise move them around unless you know exactly |
---|
7808 | ## what you are doing... |
---|
7809 | |
---|
7810 | lt_prog_compiler_no_builtin_flag= |
---|
7811 | |
---|
7812 | if test "$GCC" = yes; then |
---|
7813 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7814 | |
---|
7815 | |
---|
7816 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7817 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
7818 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7820 | else |
---|
7821 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7822 | ac_outfile=conftest.$ac_objext |
---|
7823 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7824 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7825 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7826 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7827 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7828 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7829 | # The option is referenced via a variable to avoid confusing sed. |
---|
7830 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7831 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7832 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7833 | -e 's:$: $lt_compiler_flag:'` |
---|
7834 | (eval echo "\"\$as_me:7834: $lt_compile\"" >&5) |
---|
7835 | (eval "$lt_compile" 2>conftest.err) |
---|
7836 | ac_status=$? |
---|
7837 | cat conftest.err >&5 |
---|
7838 | echo "$as_me:7838: \$? = $ac_status" >&5 |
---|
7839 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7840 | # The compiler can only warn and ignore the option if not recognized |
---|
7841 | # So say no if there are warnings other than the usual output. |
---|
7842 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7843 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7844 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7845 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7846 | fi |
---|
7847 | fi |
---|
7848 | $rm conftest* |
---|
7849 | |
---|
7850 | fi |
---|
7851 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7852 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
7853 | |
---|
7854 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7855 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7856 | else |
---|
7857 | : |
---|
7858 | fi |
---|
7859 | |
---|
7860 | fi |
---|
7861 | |
---|
7862 | lt_prog_compiler_wl= |
---|
7863 | lt_prog_compiler_pic= |
---|
7864 | lt_prog_compiler_static= |
---|
7865 | |
---|
7866 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7867 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
7868 | |
---|
7869 | if test "$GCC" = yes; then |
---|
7870 | lt_prog_compiler_wl='-Wl,' |
---|
7871 | lt_prog_compiler_static='-static' |
---|
7872 | |
---|
7873 | case $host_os in |
---|
7874 | aix*) |
---|
7875 | # All AIX code is PIC. |
---|
7876 | if test "$host_cpu" = ia64; then |
---|
7877 | # AIX 5 now supports IA64 processor |
---|
7878 | lt_prog_compiler_static='-Bstatic' |
---|
7879 | fi |
---|
7880 | ;; |
---|
7881 | |
---|
7882 | amigaos*) |
---|
7883 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7884 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7885 | # like `-m68040'. |
---|
7886 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7887 | ;; |
---|
7888 | |
---|
7889 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7890 | # PIC is the default for these OSes. |
---|
7891 | ;; |
---|
7892 | |
---|
7893 | mingw* | pw32* | os2*) |
---|
7894 | # This hack is so that the source file can tell whether it is being |
---|
7895 | # built for inclusion in a dll (and should export symbols for example). |
---|
7896 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7897 | ;; |
---|
7898 | |
---|
7899 | darwin* | rhapsody*) |
---|
7900 | # PIC is the default on this platform |
---|
7901 | # Common symbols not allowed in MH_DYLIB files |
---|
7902 | lt_prog_compiler_pic='-fno-common' |
---|
7903 | ;; |
---|
7904 | |
---|
7905 | interix3*) |
---|
7906 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7907 | # Instead, we relocate shared libraries at runtime. |
---|
7908 | ;; |
---|
7909 | |
---|
7910 | msdosdjgpp*) |
---|
7911 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7912 | # on systems that don't support them. |
---|
7913 | lt_prog_compiler_can_build_shared=no |
---|
7914 | enable_shared=no |
---|
7915 | ;; |
---|
7916 | |
---|
7917 | sysv4*MP*) |
---|
7918 | if test -d /usr/nec; then |
---|
7919 | lt_prog_compiler_pic=-Kconform_pic |
---|
7920 | fi |
---|
7921 | ;; |
---|
7922 | |
---|
7923 | hpux*) |
---|
7924 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7925 | # not for PA HP-UX. |
---|
7926 | case $host_cpu in |
---|
7927 | hppa*64*|ia64*) |
---|
7928 | # +Z the default |
---|
7929 | ;; |
---|
7930 | *) |
---|
7931 | lt_prog_compiler_pic='-fPIC' |
---|
7932 | ;; |
---|
7933 | esac |
---|
7934 | ;; |
---|
7935 | |
---|
7936 | *) |
---|
7937 | lt_prog_compiler_pic='-fPIC' |
---|
7938 | ;; |
---|
7939 | esac |
---|
7940 | else |
---|
7941 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7942 | case $host_os in |
---|
7943 | aix*) |
---|
7944 | lt_prog_compiler_wl='-Wl,' |
---|
7945 | if test "$host_cpu" = ia64; then |
---|
7946 | # AIX 5 now supports IA64 processor |
---|
7947 | lt_prog_compiler_static='-Bstatic' |
---|
7948 | else |
---|
7949 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7950 | fi |
---|
7951 | ;; |
---|
7952 | darwin*) |
---|
7953 | # PIC is the default on this platform |
---|
7954 | # Common symbols not allowed in MH_DYLIB files |
---|
7955 | case $cc_basename in |
---|
7956 | xlc*) |
---|
7957 | lt_prog_compiler_pic='-qnocommon' |
---|
7958 | lt_prog_compiler_wl='-Wl,' |
---|
7959 | ;; |
---|
7960 | esac |
---|
7961 | ;; |
---|
7962 | |
---|
7963 | mingw* | pw32* | os2*) |
---|
7964 | # This hack is so that the source file can tell whether it is being |
---|
7965 | # built for inclusion in a dll (and should export symbols for example). |
---|
7966 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7967 | ;; |
---|
7968 | |
---|
7969 | hpux9* | hpux10* | hpux11*) |
---|
7970 | lt_prog_compiler_wl='-Wl,' |
---|
7971 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7972 | # not for PA HP-UX. |
---|
7973 | case $host_cpu in |
---|
7974 | hppa*64*|ia64*) |
---|
7975 | # +Z the default |
---|
7976 | ;; |
---|
7977 | *) |
---|
7978 | lt_prog_compiler_pic='+Z' |
---|
7979 | ;; |
---|
7980 | esac |
---|
7981 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
7982 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
7983 | ;; |
---|
7984 | |
---|
7985 | irix5* | irix6* | nonstopux*) |
---|
7986 | lt_prog_compiler_wl='-Wl,' |
---|
7987 | # PIC (with -KPIC) is the default. |
---|
7988 | lt_prog_compiler_static='-non_shared' |
---|
7989 | ;; |
---|
7990 | |
---|
7991 | newsos6) |
---|
7992 | lt_prog_compiler_pic='-KPIC' |
---|
7993 | lt_prog_compiler_static='-Bstatic' |
---|
7994 | ;; |
---|
7995 | |
---|
7996 | linux*) |
---|
7997 | case $cc_basename in |
---|
7998 | icc* | ecc*) |
---|
7999 | lt_prog_compiler_wl='-Wl,' |
---|
8000 | lt_prog_compiler_pic='-KPIC' |
---|
8001 | lt_prog_compiler_static='-static' |
---|
8002 | ;; |
---|
8003 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
8004 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8005 | # which looks to be a dead project) |
---|
8006 | lt_prog_compiler_wl='-Wl,' |
---|
8007 | lt_prog_compiler_pic='-fpic' |
---|
8008 | lt_prog_compiler_static='-Bstatic' |
---|
8009 | ;; |
---|
8010 | ccc*) |
---|
8011 | lt_prog_compiler_wl='-Wl,' |
---|
8012 | # All Alpha code is PIC. |
---|
8013 | lt_prog_compiler_static='-non_shared' |
---|
8014 | ;; |
---|
8015 | esac |
---|
8016 | ;; |
---|
8017 | |
---|
8018 | osf3* | osf4* | osf5*) |
---|
8019 | lt_prog_compiler_wl='-Wl,' |
---|
8020 | # All OSF/1 code is PIC. |
---|
8021 | lt_prog_compiler_static='-non_shared' |
---|
8022 | ;; |
---|
8023 | |
---|
8024 | solaris*) |
---|
8025 | lt_prog_compiler_pic='-KPIC' |
---|
8026 | lt_prog_compiler_static='-Bstatic' |
---|
8027 | case $cc_basename in |
---|
8028 | f77* | f90* | f95*) |
---|
8029 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8030 | *) |
---|
8031 | lt_prog_compiler_wl='-Wl,';; |
---|
8032 | esac |
---|
8033 | ;; |
---|
8034 | |
---|
8035 | sunos4*) |
---|
8036 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8037 | lt_prog_compiler_pic='-PIC' |
---|
8038 | lt_prog_compiler_static='-Bstatic' |
---|
8039 | ;; |
---|
8040 | |
---|
8041 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8042 | lt_prog_compiler_wl='-Wl,' |
---|
8043 | lt_prog_compiler_pic='-KPIC' |
---|
8044 | lt_prog_compiler_static='-Bstatic' |
---|
8045 | ;; |
---|
8046 | |
---|
8047 | sysv4*MP*) |
---|
8048 | if test -d /usr/nec ;then |
---|
8049 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8050 | lt_prog_compiler_static='-Bstatic' |
---|
8051 | fi |
---|
8052 | ;; |
---|
8053 | |
---|
8054 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8055 | lt_prog_compiler_wl='-Wl,' |
---|
8056 | lt_prog_compiler_pic='-KPIC' |
---|
8057 | lt_prog_compiler_static='-Bstatic' |
---|
8058 | ;; |
---|
8059 | |
---|
8060 | unicos*) |
---|
8061 | lt_prog_compiler_wl='-Wl,' |
---|
8062 | lt_prog_compiler_can_build_shared=no |
---|
8063 | ;; |
---|
8064 | |
---|
8065 | uts4*) |
---|
8066 | lt_prog_compiler_pic='-pic' |
---|
8067 | lt_prog_compiler_static='-Bstatic' |
---|
8068 | ;; |
---|
8069 | |
---|
8070 | *) |
---|
8071 | lt_prog_compiler_can_build_shared=no |
---|
8072 | ;; |
---|
8073 | esac |
---|
8074 | fi |
---|
8075 | |
---|
8076 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8077 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
8078 | |
---|
8079 | # |
---|
8080 | # Check to make sure the PIC flag actually works. |
---|
8081 | # |
---|
8082 | if test -n "$lt_prog_compiler_pic"; then |
---|
8083 | |
---|
8084 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8085 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
8086 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8088 | else |
---|
8089 | lt_prog_compiler_pic_works=no |
---|
8090 | ac_outfile=conftest.$ac_objext |
---|
8091 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8092 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8093 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8094 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8095 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8096 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8097 | # The option is referenced via a variable to avoid confusing sed. |
---|
8098 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8099 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8100 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8101 | -e 's:$: $lt_compiler_flag:'` |
---|
8102 | (eval echo "\"\$as_me:8102: $lt_compile\"" >&5) |
---|
8103 | (eval "$lt_compile" 2>conftest.err) |
---|
8104 | ac_status=$? |
---|
8105 | cat conftest.err >&5 |
---|
8106 | echo "$as_me:8106: \$? = $ac_status" >&5 |
---|
8107 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8108 | # The compiler can only warn and ignore the option if not recognized |
---|
8109 | # So say no if there are warnings other than the usual output. |
---|
8110 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8111 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8112 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8113 | lt_prog_compiler_pic_works=yes |
---|
8114 | fi |
---|
8115 | fi |
---|
8116 | $rm conftest* |
---|
8117 | |
---|
8118 | fi |
---|
8119 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8120 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
8121 | |
---|
8122 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8123 | case $lt_prog_compiler_pic in |
---|
8124 | "" | " "*) ;; |
---|
8125 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8126 | esac |
---|
8127 | else |
---|
8128 | lt_prog_compiler_pic= |
---|
8129 | lt_prog_compiler_can_build_shared=no |
---|
8130 | fi |
---|
8131 | |
---|
8132 | fi |
---|
8133 | case $host_os in |
---|
8134 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8135 | *djgpp*) |
---|
8136 | lt_prog_compiler_pic= |
---|
8137 | ;; |
---|
8138 | *) |
---|
8139 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8140 | ;; |
---|
8141 | esac |
---|
8142 | |
---|
8143 | # |
---|
8144 | # Check to make sure the static flag actually works. |
---|
8145 | # |
---|
8146 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8147 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8148 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
8149 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
8150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8151 | else |
---|
8152 | lt_prog_compiler_static_works=no |
---|
8153 | save_LDFLAGS="$LDFLAGS" |
---|
8154 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8155 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8156 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8157 | # The linker can only warn and ignore the option if not recognized |
---|
8158 | # So say no if there are warnings |
---|
8159 | if test -s conftest.err; then |
---|
8160 | # Append any errors to the config.log. |
---|
8161 | cat conftest.err 1>&5 |
---|
8162 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8163 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8164 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8165 | lt_prog_compiler_static_works=yes |
---|
8166 | fi |
---|
8167 | else |
---|
8168 | lt_prog_compiler_static_works=yes |
---|
8169 | fi |
---|
8170 | fi |
---|
8171 | $rm conftest* |
---|
8172 | LDFLAGS="$save_LDFLAGS" |
---|
8173 | |
---|
8174 | fi |
---|
8175 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8176 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
8177 | |
---|
8178 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8179 | : |
---|
8180 | else |
---|
8181 | lt_prog_compiler_static= |
---|
8182 | fi |
---|
8183 | |
---|
8184 | |
---|
8185 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8186 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
8187 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8189 | else |
---|
8190 | lt_cv_prog_compiler_c_o=no |
---|
8191 | $rm -r conftest 2>/dev/null |
---|
8192 | mkdir conftest |
---|
8193 | cd conftest |
---|
8194 | mkdir out |
---|
8195 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8196 | |
---|
8197 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8198 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8199 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8200 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8201 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8202 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8203 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8204 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8205 | -e 's:$: $lt_compiler_flag:'` |
---|
8206 | (eval echo "\"\$as_me:8206: $lt_compile\"" >&5) |
---|
8207 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8208 | ac_status=$? |
---|
8209 | cat out/conftest.err >&5 |
---|
8210 | echo "$as_me:8210: \$? = $ac_status" >&5 |
---|
8211 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8212 | then |
---|
8213 | # The compiler can only warn and ignore the option if not recognized |
---|
8214 | # So say no if there are warnings |
---|
8215 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8216 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8217 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8218 | lt_cv_prog_compiler_c_o=yes |
---|
8219 | fi |
---|
8220 | fi |
---|
8221 | chmod u+w . 2>&5 |
---|
8222 | $rm conftest* |
---|
8223 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8224 | # template instantiation |
---|
8225 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8226 | $rm out/* && rmdir out |
---|
8227 | cd .. |
---|
8228 | rmdir conftest |
---|
8229 | $rm conftest* |
---|
8230 | |
---|
8231 | fi |
---|
8232 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8233 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
8234 | |
---|
8235 | |
---|
8236 | hard_links="nottested" |
---|
8237 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8238 | # do not overwrite the value of need_locks provided by the user |
---|
8239 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8240 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
8241 | hard_links=yes |
---|
8242 | $rm conftest* |
---|
8243 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8244 | touch conftest.a |
---|
8245 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8246 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8247 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8248 | echo "${ECHO_T}$hard_links" >&6 |
---|
8249 | if test "$hard_links" = no; then |
---|
8250 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8251 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8252 | need_locks=warn |
---|
8253 | fi |
---|
8254 | else |
---|
8255 | need_locks=no |
---|
8256 | fi |
---|
8257 | |
---|
8258 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8259 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
8260 | |
---|
8261 | runpath_var= |
---|
8262 | allow_undefined_flag= |
---|
8263 | enable_shared_with_static_runtimes=no |
---|
8264 | archive_cmds= |
---|
8265 | archive_expsym_cmds= |
---|
8266 | old_archive_From_new_cmds= |
---|
8267 | old_archive_from_expsyms_cmds= |
---|
8268 | export_dynamic_flag_spec= |
---|
8269 | whole_archive_flag_spec= |
---|
8270 | thread_safe_flag_spec= |
---|
8271 | hardcode_libdir_flag_spec= |
---|
8272 | hardcode_libdir_flag_spec_ld= |
---|
8273 | hardcode_libdir_separator= |
---|
8274 | hardcode_direct=no |
---|
8275 | hardcode_minus_L=no |
---|
8276 | hardcode_shlibpath_var=unsupported |
---|
8277 | link_all_deplibs=unknown |
---|
8278 | hardcode_automatic=no |
---|
8279 | module_cmds= |
---|
8280 | module_expsym_cmds= |
---|
8281 | always_export_symbols=no |
---|
8282 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8283 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8284 | # included in the symbol list |
---|
8285 | include_expsyms= |
---|
8286 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8287 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8288 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8289 | # as well as any symbol that contains `d'. |
---|
8290 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8291 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8292 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8293 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8294 | # rely on this symbol name, it's probably fine to never include it in |
---|
8295 | # preloaded symbol tables. |
---|
8296 | extract_expsyms_cmds= |
---|
8297 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8298 | for cc_temp in $compiler""; do |
---|
8299 | case $cc_temp in |
---|
8300 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8301 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8302 | \-*) ;; |
---|
8303 | *) break;; |
---|
8304 | esac |
---|
8305 | done |
---|
8306 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8307 | |
---|
8308 | case $host_os in |
---|
8309 | cygwin* | mingw* | pw32*) |
---|
8310 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8311 | # When not using gcc, we currently assume that we are using |
---|
8312 | # Microsoft Visual C++. |
---|
8313 | if test "$GCC" != yes; then |
---|
8314 | with_gnu_ld=no |
---|
8315 | fi |
---|
8316 | ;; |
---|
8317 | interix*) |
---|
8318 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8319 | with_gnu_ld=yes |
---|
8320 | ;; |
---|
8321 | openbsd*) |
---|
8322 | with_gnu_ld=no |
---|
8323 | ;; |
---|
8324 | esac |
---|
8325 | |
---|
8326 | ld_shlibs=yes |
---|
8327 | if test "$with_gnu_ld" = yes; then |
---|
8328 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8329 | wlarc='${wl}' |
---|
8330 | |
---|
8331 | # Set some defaults for GNU ld with shared library support. These |
---|
8332 | # are reset later if shared libraries are not supported. Putting them |
---|
8333 | # here allows them to be overridden if necessary. |
---|
8334 | runpath_var=LD_RUN_PATH |
---|
8335 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8336 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8337 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8338 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8339 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8340 | else |
---|
8341 | whole_archive_flag_spec= |
---|
8342 | fi |
---|
8343 | supports_anon_versioning=no |
---|
8344 | case `$LD -v 2>/dev/null` in |
---|
8345 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8346 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8347 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8348 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8349 | *) supports_anon_versioning=yes ;; |
---|
8350 | esac |
---|
8351 | |
---|
8352 | # See if GNU ld supports shared libraries. |
---|
8353 | case $host_os in |
---|
8354 | aix3* | aix4* | aix5*) |
---|
8355 | # On AIX/PPC, the GNU linker is very broken |
---|
8356 | if test "$host_cpu" != ia64; then |
---|
8357 | ld_shlibs=no |
---|
8358 | cat <<EOF 1>&2 |
---|
8359 | |
---|
8360 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8361 | *** to be unable to reliably create shared libraries on AIX. |
---|
8362 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8363 | *** really care for shared libraries, you may want to modify your PATH |
---|
8364 | *** so that a non-GNU linker is found, and then restart. |
---|
8365 | |
---|
8366 | EOF |
---|
8367 | fi |
---|
8368 | ;; |
---|
8369 | |
---|
8370 | amigaos*) |
---|
8371 | 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)' |
---|
8372 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8373 | hardcode_minus_L=yes |
---|
8374 | |
---|
8375 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8376 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8377 | # to version 4, is to share data among multiple programs linked |
---|
8378 | # with the same dynamic library. Since this doesn't match the |
---|
8379 | # behavior of shared libraries on other platforms, we can't use |
---|
8380 | # them. |
---|
8381 | ld_shlibs=no |
---|
8382 | ;; |
---|
8383 | |
---|
8384 | beos*) |
---|
8385 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8386 | allow_undefined_flag=unsupported |
---|
8387 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8388 | # support --undefined. This deserves some investigation. FIXME |
---|
8389 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8390 | else |
---|
8391 | ld_shlibs=no |
---|
8392 | fi |
---|
8393 | ;; |
---|
8394 | |
---|
8395 | cygwin* | mingw* | pw32*) |
---|
8396 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8397 | # as there is no search path for DLLs. |
---|
8398 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8399 | allow_undefined_flag=unsupported |
---|
8400 | always_export_symbols=no |
---|
8401 | enable_shared_with_static_runtimes=yes |
---|
8402 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8403 | |
---|
8404 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8405 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8406 | # If the export-symbols file already is a .def file (1st line |
---|
8407 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8408 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8409 | cp $export_symbols $output_objdir/$soname.def; |
---|
8410 | else |
---|
8411 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8412 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8413 | fi~ |
---|
8414 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8415 | else |
---|
8416 | ld_shlibs=no |
---|
8417 | fi |
---|
8418 | ;; |
---|
8419 | |
---|
8420 | interix3*) |
---|
8421 | hardcode_direct=no |
---|
8422 | hardcode_shlibpath_var=no |
---|
8423 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8424 | export_dynamic_flag_spec='${wl}-E' |
---|
8425 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8426 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8427 | # default) and relocated if they conflict, which is a slow very memory |
---|
8428 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8429 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8430 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8431 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8432 | 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' |
---|
8433 | ;; |
---|
8434 | |
---|
8435 | linux*) |
---|
8436 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8437 | tmp_addflag= |
---|
8438 | case $cc_basename,$host_cpu in |
---|
8439 | pgcc*) # Portland Group C compiler |
---|
8440 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8441 | tmp_addflag=' $pic_flag' |
---|
8442 | ;; |
---|
8443 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8444 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8445 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8446 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8447 | tmp_addflag=' -i_dynamic' ;; |
---|
8448 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8449 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8450 | ifc* | ifort*) # Intel Fortran compiler |
---|
8451 | tmp_addflag=' -nofor_main' ;; |
---|
8452 | esac |
---|
8453 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8454 | |
---|
8455 | if test $supports_anon_versioning = yes; then |
---|
8456 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8457 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8458 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8459 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8460 | fi |
---|
8461 | else |
---|
8462 | ld_shlibs=no |
---|
8463 | fi |
---|
8464 | ;; |
---|
8465 | |
---|
8466 | netbsd*) |
---|
8467 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8468 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8469 | wlarc= |
---|
8470 | else |
---|
8471 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8472 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8473 | fi |
---|
8474 | ;; |
---|
8475 | |
---|
8476 | solaris*) |
---|
8477 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8478 | ld_shlibs=no |
---|
8479 | cat <<EOF 1>&2 |
---|
8480 | |
---|
8481 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8482 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8483 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8484 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8485 | *** your PATH or compiler configuration so that the native linker is |
---|
8486 | *** used, and then restart. |
---|
8487 | |
---|
8488 | EOF |
---|
8489 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8490 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8491 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8492 | else |
---|
8493 | ld_shlibs=no |
---|
8494 | fi |
---|
8495 | ;; |
---|
8496 | |
---|
8497 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8498 | case `$LD -v 2>&1` in |
---|
8499 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8500 | ld_shlibs=no |
---|
8501 | cat <<_LT_EOF 1>&2 |
---|
8502 | |
---|
8503 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8504 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8505 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8506 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8507 | *** your PATH or compiler configuration so that the native linker is |
---|
8508 | *** used, and then restart. |
---|
8509 | |
---|
8510 | _LT_EOF |
---|
8511 | ;; |
---|
8512 | *) |
---|
8513 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8514 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
8515 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
8516 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
8517 | else |
---|
8518 | ld_shlibs=no |
---|
8519 | fi |
---|
8520 | ;; |
---|
8521 | esac |
---|
8522 | ;; |
---|
8523 | |
---|
8524 | sunos4*) |
---|
8525 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8526 | wlarc= |
---|
8527 | hardcode_direct=yes |
---|
8528 | hardcode_shlibpath_var=no |
---|
8529 | ;; |
---|
8530 | |
---|
8531 | *) |
---|
8532 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8533 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8534 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8535 | else |
---|
8536 | ld_shlibs=no |
---|
8537 | fi |
---|
8538 | ;; |
---|
8539 | esac |
---|
8540 | |
---|
8541 | if test "$ld_shlibs" = no; then |
---|
8542 | runpath_var= |
---|
8543 | hardcode_libdir_flag_spec= |
---|
8544 | export_dynamic_flag_spec= |
---|
8545 | whole_archive_flag_spec= |
---|
8546 | fi |
---|
8547 | else |
---|
8548 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8549 | case $host_os in |
---|
8550 | aix3*) |
---|
8551 | allow_undefined_flag=unsupported |
---|
8552 | always_export_symbols=yes |
---|
8553 | 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' |
---|
8554 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8555 | # are no directories specified by -L. |
---|
8556 | hardcode_minus_L=yes |
---|
8557 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8558 | # Neither direct hardcoding nor static linking is supported with a |
---|
8559 | # broken collect2. |
---|
8560 | hardcode_direct=unsupported |
---|
8561 | fi |
---|
8562 | ;; |
---|
8563 | |
---|
8564 | aix4* | aix5*) |
---|
8565 | if test "$host_cpu" = ia64; then |
---|
8566 | # On IA64, the linker does run time linking by default, so we don't |
---|
8567 | # have to do anything special. |
---|
8568 | aix_use_runtimelinking=no |
---|
8569 | exp_sym_flag='-Bexport' |
---|
8570 | no_entry_flag="" |
---|
8571 | else |
---|
8572 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8573 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8574 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8575 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
8576 | else |
---|
8577 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
8578 | fi |
---|
8579 | aix_use_runtimelinking=no |
---|
8580 | |
---|
8581 | # Test if we are trying to use run time linking or normal |
---|
8582 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8583 | # need to do runtime linking. |
---|
8584 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8585 | for ld_flag in $LDFLAGS; do |
---|
8586 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8587 | aix_use_runtimelinking=yes |
---|
8588 | break |
---|
8589 | fi |
---|
8590 | done |
---|
8591 | ;; |
---|
8592 | esac |
---|
8593 | |
---|
8594 | exp_sym_flag='-bexport' |
---|
8595 | no_entry_flag='-bnoentry' |
---|
8596 | fi |
---|
8597 | |
---|
8598 | # When large executables or shared objects are built, AIX ld can |
---|
8599 | # have problems creating the table of contents. If linking a library |
---|
8600 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8601 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8602 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8603 | |
---|
8604 | archive_cmds='' |
---|
8605 | hardcode_direct=yes |
---|
8606 | hardcode_libdir_separator=':' |
---|
8607 | link_all_deplibs=yes |
---|
8608 | |
---|
8609 | if test "$GCC" = yes; then |
---|
8610 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8611 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8612 | # below for broken collect2 doesn't work under 4.3+ |
---|
8613 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8614 | if test -f "$collect2name" && \ |
---|
8615 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8616 | then |
---|
8617 | # We have reworked collect2 |
---|
8618 | hardcode_direct=yes |
---|
8619 | else |
---|
8620 | # We have old collect2 |
---|
8621 | hardcode_direct=unsupported |
---|
8622 | # It fails to find uninstalled libraries when the uninstalled |
---|
8623 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8624 | # to unsupported forces relinking |
---|
8625 | hardcode_minus_L=yes |
---|
8626 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8627 | hardcode_libdir_separator= |
---|
8628 | fi |
---|
8629 | ;; |
---|
8630 | esac |
---|
8631 | shared_flag='-shared' |
---|
8632 | if test "$aix_use_runtimelinking" = yes; then |
---|
8633 | shared_flag="$shared_flag "'${wl}-G' |
---|
8634 | fi |
---|
8635 | else |
---|
8636 | # not using gcc |
---|
8637 | if test "$host_cpu" = ia64; then |
---|
8638 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8639 | # chokes on -Wl,-G. The following line is correct: |
---|
8640 | shared_flag='-G' |
---|
8641 | else |
---|
8642 | if test "$aix_use_runtimelinking" = yes; then |
---|
8643 | shared_flag='${wl}-G' |
---|
8644 | else |
---|
8645 | shared_flag='${wl}-bM:SRE' |
---|
8646 | fi |
---|
8647 | fi |
---|
8648 | fi |
---|
8649 | |
---|
8650 | # It seems that -bexpall does not export symbols beginning with |
---|
8651 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8652 | always_export_symbols=yes |
---|
8653 | if test "$aix_use_runtimelinking" = yes; then |
---|
8654 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8655 | # -berok will link without error, but may produce a broken library. |
---|
8656 | allow_undefined_flag='-berok' |
---|
8657 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8658 | cat >conftest.$ac_ext <<_ACEOF |
---|
8659 | /* confdefs.h. */ |
---|
8660 | _ACEOF |
---|
8661 | cat confdefs.h >>conftest.$ac_ext |
---|
8662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8663 | /* end confdefs.h. */ |
---|
8664 | |
---|
8665 | int |
---|
8666 | main () |
---|
8667 | { |
---|
8668 | |
---|
8669 | ; |
---|
8670 | return 0; |
---|
8671 | } |
---|
8672 | _ACEOF |
---|
8673 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8675 | (eval $ac_link) 2>conftest.er1 |
---|
8676 | ac_status=$? |
---|
8677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8678 | rm -f conftest.er1 |
---|
8679 | cat conftest.err >&5 |
---|
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8681 | (exit $ac_status); } && |
---|
8682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8683 | || test ! -s conftest.err' |
---|
8684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8685 | (eval $ac_try) 2>&5 |
---|
8686 | ac_status=$? |
---|
8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8688 | (exit $ac_status); }; } && |
---|
8689 | { ac_try='test -s conftest$ac_exeext' |
---|
8690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8691 | (eval $ac_try) 2>&5 |
---|
8692 | ac_status=$? |
---|
8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8694 | (exit $ac_status); }; }; then |
---|
8695 | |
---|
8696 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8697 | }'` |
---|
8698 | # Check for a 64-bit object if we didn't find anything. |
---|
8699 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8700 | }'`; fi |
---|
8701 | else |
---|
8702 | echo "$as_me: failed program was:" >&5 |
---|
8703 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8704 | |
---|
8705 | fi |
---|
8706 | rm -f conftest.err conftest.$ac_objext \ |
---|
8707 | conftest$ac_exeext conftest.$ac_ext |
---|
8708 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8709 | |
---|
8710 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8711 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
8712 | else |
---|
8713 | if test "$host_cpu" = ia64; then |
---|
8714 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8715 | allow_undefined_flag="-z nodefs" |
---|
8716 | 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" |
---|
8717 | else |
---|
8718 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8719 | cat >conftest.$ac_ext <<_ACEOF |
---|
8720 | /* confdefs.h. */ |
---|
8721 | _ACEOF |
---|
8722 | cat confdefs.h >>conftest.$ac_ext |
---|
8723 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8724 | /* end confdefs.h. */ |
---|
8725 | |
---|
8726 | int |
---|
8727 | main () |
---|
8728 | { |
---|
8729 | |
---|
8730 | ; |
---|
8731 | return 0; |
---|
8732 | } |
---|
8733 | _ACEOF |
---|
8734 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8736 | (eval $ac_link) 2>conftest.er1 |
---|
8737 | ac_status=$? |
---|
8738 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8739 | rm -f conftest.er1 |
---|
8740 | cat conftest.err >&5 |
---|
8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8742 | (exit $ac_status); } && |
---|
8743 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8744 | || test ! -s conftest.err' |
---|
8745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8746 | (eval $ac_try) 2>&5 |
---|
8747 | ac_status=$? |
---|
8748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8749 | (exit $ac_status); }; } && |
---|
8750 | { ac_try='test -s conftest$ac_exeext' |
---|
8751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8752 | (eval $ac_try) 2>&5 |
---|
8753 | ac_status=$? |
---|
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8755 | (exit $ac_status); }; }; then |
---|
8756 | |
---|
8757 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8758 | }'` |
---|
8759 | # Check for a 64-bit object if we didn't find anything. |
---|
8760 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8761 | }'`; fi |
---|
8762 | else |
---|
8763 | echo "$as_me: failed program was:" >&5 |
---|
8764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8765 | |
---|
8766 | fi |
---|
8767 | rm -f conftest.err conftest.$ac_objext \ |
---|
8768 | conftest$ac_exeext conftest.$ac_ext |
---|
8769 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8770 | |
---|
8771 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8772 | # Warning - without using the other run time loading flags, |
---|
8773 | # -berok will link without error, but may produce a broken library. |
---|
8774 | no_undefined_flag=' ${wl}-bernotok' |
---|
8775 | allow_undefined_flag=' ${wl}-berok' |
---|
8776 | # Exported symbols can be pulled into shared objects from archives |
---|
8777 | whole_archive_flag_spec='$convenience' |
---|
8778 | archive_cmds_need_lc=yes |
---|
8779 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8780 | 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' |
---|
8781 | fi |
---|
8782 | fi |
---|
8783 | ;; |
---|
8784 | |
---|
8785 | amigaos*) |
---|
8786 | 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)' |
---|
8787 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8788 | hardcode_minus_L=yes |
---|
8789 | # see comment about different semantics on the GNU ld section |
---|
8790 | ld_shlibs=no |
---|
8791 | ;; |
---|
8792 | |
---|
8793 | bsdi[45]*) |
---|
8794 | export_dynamic_flag_spec=-rdynamic |
---|
8795 | ;; |
---|
8796 | |
---|
8797 | cygwin* | mingw* | pw32*) |
---|
8798 | # When not using gcc, we currently assume that we are using |
---|
8799 | # Microsoft Visual C++. |
---|
8800 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8801 | # no search path for DLLs. |
---|
8802 | hardcode_libdir_flag_spec=' ' |
---|
8803 | allow_undefined_flag=unsupported |
---|
8804 | # Tell ltmain to make .lib files, not .a files. |
---|
8805 | libext=lib |
---|
8806 | # Tell ltmain to make .dll files, not .so files. |
---|
8807 | shrext_cmds=".dll" |
---|
8808 | # FIXME: Setting linknames here is a bad hack. |
---|
8809 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8810 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8811 | old_archive_From_new_cmds='true' |
---|
8812 | # FIXME: Should let the user specify the lib program. |
---|
8813 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
8814 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8815 | enable_shared_with_static_runtimes=yes |
---|
8816 | ;; |
---|
8817 | |
---|
8818 | darwin* | rhapsody*) |
---|
8819 | case $host_os in |
---|
8820 | rhapsody* | darwin1.[012]) |
---|
8821 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8822 | ;; |
---|
8823 | *) # Darwin 1.3 on |
---|
8824 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8825 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8826 | else |
---|
8827 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8828 | 10.[012]) |
---|
8829 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8830 | ;; |
---|
8831 | 10.*) |
---|
8832 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8833 | ;; |
---|
8834 | esac |
---|
8835 | fi |
---|
8836 | ;; |
---|
8837 | esac |
---|
8838 | archive_cmds_need_lc=no |
---|
8839 | hardcode_direct=no |
---|
8840 | hardcode_automatic=yes |
---|
8841 | hardcode_shlibpath_var=unsupported |
---|
8842 | whole_archive_flag_spec='' |
---|
8843 | link_all_deplibs=yes |
---|
8844 | if test "$GCC" = yes ; then |
---|
8845 | output_verbose_link_cmd='echo' |
---|
8846 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8847 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8848 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8849 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8850 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8851 | else |
---|
8852 | case $cc_basename in |
---|
8853 | xlc*) |
---|
8854 | output_verbose_link_cmd='echo' |
---|
8855 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
8856 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8857 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8858 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8859 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8860 | ;; |
---|
8861 | *) |
---|
8862 | ld_shlibs=no |
---|
8863 | ;; |
---|
8864 | esac |
---|
8865 | fi |
---|
8866 | ;; |
---|
8867 | |
---|
8868 | dgux*) |
---|
8869 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8870 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8871 | hardcode_shlibpath_var=no |
---|
8872 | ;; |
---|
8873 | |
---|
8874 | freebsd1*) |
---|
8875 | ld_shlibs=no |
---|
8876 | ;; |
---|
8877 | |
---|
8878 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8879 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8880 | # does not break anything, and helps significantly (at the cost of a little |
---|
8881 | # extra space). |
---|
8882 | freebsd2.2*) |
---|
8883 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8884 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8885 | hardcode_direct=yes |
---|
8886 | hardcode_shlibpath_var=no |
---|
8887 | ;; |
---|
8888 | |
---|
8889 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8890 | freebsd2*) |
---|
8891 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8892 | hardcode_direct=yes |
---|
8893 | hardcode_minus_L=yes |
---|
8894 | hardcode_shlibpath_var=no |
---|
8895 | ;; |
---|
8896 | |
---|
8897 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8898 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
8899 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8900 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8901 | hardcode_direct=yes |
---|
8902 | hardcode_shlibpath_var=no |
---|
8903 | ;; |
---|
8904 | |
---|
8905 | hpux9*) |
---|
8906 | if test "$GCC" = yes; then |
---|
8907 | 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' |
---|
8908 | else |
---|
8909 | 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' |
---|
8910 | fi |
---|
8911 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8912 | hardcode_libdir_separator=: |
---|
8913 | hardcode_direct=yes |
---|
8914 | |
---|
8915 | # hardcode_minus_L: Not really in the search PATH, |
---|
8916 | # but as the default location of the library. |
---|
8917 | hardcode_minus_L=yes |
---|
8918 | export_dynamic_flag_spec='${wl}-E' |
---|
8919 | ;; |
---|
8920 | |
---|
8921 | hpux10*) |
---|
8922 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8923 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8924 | else |
---|
8925 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8926 | fi |
---|
8927 | if test "$with_gnu_ld" = no; then |
---|
8928 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8929 | hardcode_libdir_separator=: |
---|
8930 | |
---|
8931 | hardcode_direct=yes |
---|
8932 | export_dynamic_flag_spec='${wl}-E' |
---|
8933 | |
---|
8934 | # hardcode_minus_L: Not really in the search PATH, |
---|
8935 | # but as the default location of the library. |
---|
8936 | hardcode_minus_L=yes |
---|
8937 | fi |
---|
8938 | ;; |
---|
8939 | |
---|
8940 | hpux11*) |
---|
8941 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8942 | case $host_cpu in |
---|
8943 | hppa*64*) |
---|
8944 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8945 | ;; |
---|
8946 | ia64*) |
---|
8947 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8948 | ;; |
---|
8949 | *) |
---|
8950 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8951 | ;; |
---|
8952 | esac |
---|
8953 | else |
---|
8954 | case $host_cpu in |
---|
8955 | hppa*64*) |
---|
8956 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8957 | ;; |
---|
8958 | ia64*) |
---|
8959 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8960 | ;; |
---|
8961 | *) |
---|
8962 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8963 | ;; |
---|
8964 | esac |
---|
8965 | fi |
---|
8966 | if test "$with_gnu_ld" = no; then |
---|
8967 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8968 | hardcode_libdir_separator=: |
---|
8969 | |
---|
8970 | case $host_cpu in |
---|
8971 | hppa*64*|ia64*) |
---|
8972 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
8973 | hardcode_direct=no |
---|
8974 | hardcode_shlibpath_var=no |
---|
8975 | ;; |
---|
8976 | *) |
---|
8977 | hardcode_direct=yes |
---|
8978 | export_dynamic_flag_spec='${wl}-E' |
---|
8979 | |
---|
8980 | # hardcode_minus_L: Not really in the search PATH, |
---|
8981 | # but as the default location of the library. |
---|
8982 | hardcode_minus_L=yes |
---|
8983 | ;; |
---|
8984 | esac |
---|
8985 | fi |
---|
8986 | ;; |
---|
8987 | |
---|
8988 | irix5* | irix6* | nonstopux*) |
---|
8989 | if test "$GCC" = yes; then |
---|
8990 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
8991 | else |
---|
8992 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
8993 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
8994 | fi |
---|
8995 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8996 | hardcode_libdir_separator=: |
---|
8997 | link_all_deplibs=yes |
---|
8998 | ;; |
---|
8999 | |
---|
9000 | netbsd*) |
---|
9001 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9002 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9003 | else |
---|
9004 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9005 | fi |
---|
9006 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9007 | hardcode_direct=yes |
---|
9008 | hardcode_shlibpath_var=no |
---|
9009 | ;; |
---|
9010 | |
---|
9011 | newsos6) |
---|
9012 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9013 | hardcode_direct=yes |
---|
9014 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9015 | hardcode_libdir_separator=: |
---|
9016 | hardcode_shlibpath_var=no |
---|
9017 | ;; |
---|
9018 | |
---|
9019 | openbsd*) |
---|
9020 | hardcode_direct=yes |
---|
9021 | hardcode_shlibpath_var=no |
---|
9022 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9023 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9024 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9025 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9026 | export_dynamic_flag_spec='${wl}-E' |
---|
9027 | else |
---|
9028 | case $host_os in |
---|
9029 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9030 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9031 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9032 | ;; |
---|
9033 | *) |
---|
9034 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9035 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9036 | ;; |
---|
9037 | esac |
---|
9038 | fi |
---|
9039 | ;; |
---|
9040 | |
---|
9041 | os2*) |
---|
9042 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9043 | hardcode_minus_L=yes |
---|
9044 | allow_undefined_flag=unsupported |
---|
9045 | 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' |
---|
9046 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9047 | ;; |
---|
9048 | |
---|
9049 | osf3*) |
---|
9050 | if test "$GCC" = yes; then |
---|
9051 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9052 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9053 | else |
---|
9054 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9055 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9056 | fi |
---|
9057 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9058 | hardcode_libdir_separator=: |
---|
9059 | ;; |
---|
9060 | |
---|
9061 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9062 | if test "$GCC" = yes; then |
---|
9063 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9064 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9065 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9066 | else |
---|
9067 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9068 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9069 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
9070 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
9071 | |
---|
9072 | # Both c and cxx compiler support -rpath directly |
---|
9073 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9074 | fi |
---|
9075 | hardcode_libdir_separator=: |
---|
9076 | ;; |
---|
9077 | |
---|
9078 | solaris*) |
---|
9079 | no_undefined_flag=' -z text' |
---|
9080 | if test "$GCC" = yes; then |
---|
9081 | wlarc='${wl}' |
---|
9082 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9083 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9084 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
9085 | else |
---|
9086 | wlarc='' |
---|
9087 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9088 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9089 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9090 | fi |
---|
9091 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9092 | hardcode_shlibpath_var=no |
---|
9093 | case $host_os in |
---|
9094 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9095 | *) |
---|
9096 | # The compiler driver will combine linker options so we |
---|
9097 | # cannot just pass the convience library names through |
---|
9098 | # without $wl, iff we do not link with $LD. |
---|
9099 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
9100 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9101 | case $wlarc in |
---|
9102 | '') |
---|
9103 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
9104 | *) |
---|
9105 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
9106 | esac ;; |
---|
9107 | esac |
---|
9108 | link_all_deplibs=yes |
---|
9109 | ;; |
---|
9110 | |
---|
9111 | sunos4*) |
---|
9112 | if test "x$host_vendor" = xsequent; then |
---|
9113 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9114 | # files that make .init and .fini sections work. |
---|
9115 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9116 | else |
---|
9117 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9118 | fi |
---|
9119 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9120 | hardcode_direct=yes |
---|
9121 | hardcode_minus_L=yes |
---|
9122 | hardcode_shlibpath_var=no |
---|
9123 | ;; |
---|
9124 | |
---|
9125 | sysv4) |
---|
9126 | case $host_vendor in |
---|
9127 | sni) |
---|
9128 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9129 | hardcode_direct=yes # is this really true??? |
---|
9130 | ;; |
---|
9131 | siemens) |
---|
9132 | ## LD is ld it makes a PLAMLIB |
---|
9133 | ## CC just makes a GrossModule. |
---|
9134 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9135 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9136 | hardcode_direct=no |
---|
9137 | ;; |
---|
9138 | motorola) |
---|
9139 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9140 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9141 | ;; |
---|
9142 | esac |
---|
9143 | runpath_var='LD_RUN_PATH' |
---|
9144 | hardcode_shlibpath_var=no |
---|
9145 | ;; |
---|
9146 | |
---|
9147 | sysv4.3*) |
---|
9148 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9149 | hardcode_shlibpath_var=no |
---|
9150 | export_dynamic_flag_spec='-Bexport' |
---|
9151 | ;; |
---|
9152 | |
---|
9153 | sysv4*MP*) |
---|
9154 | if test -d /usr/nec; then |
---|
9155 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9156 | hardcode_shlibpath_var=no |
---|
9157 | runpath_var=LD_RUN_PATH |
---|
9158 | hardcode_runpath_var=yes |
---|
9159 | ld_shlibs=yes |
---|
9160 | fi |
---|
9161 | ;; |
---|
9162 | |
---|
9163 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
9164 | no_undefined_flag='${wl}-z,text' |
---|
9165 | archive_cmds_need_lc=no |
---|
9166 | hardcode_shlibpath_var=no |
---|
9167 | runpath_var='LD_RUN_PATH' |
---|
9168 | |
---|
9169 | if test "$GCC" = yes; then |
---|
9170 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9171 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9172 | else |
---|
9173 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9174 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9175 | fi |
---|
9176 | ;; |
---|
9177 | |
---|
9178 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9179 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9180 | # link with -lc, and that would cause any symbols used from libc to |
---|
9181 | # always be unresolved, which means just about no library would |
---|
9182 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9183 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9184 | # as -z defs. |
---|
9185 | no_undefined_flag='${wl}-z,text' |
---|
9186 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9187 | archive_cmds_need_lc=no |
---|
9188 | hardcode_shlibpath_var=no |
---|
9189 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9190 | hardcode_libdir_separator=':' |
---|
9191 | link_all_deplibs=yes |
---|
9192 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9193 | runpath_var='LD_RUN_PATH' |
---|
9194 | |
---|
9195 | if test "$GCC" = yes; then |
---|
9196 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9197 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9198 | else |
---|
9199 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9200 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9201 | fi |
---|
9202 | ;; |
---|
9203 | |
---|
9204 | uts4*) |
---|
9205 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9206 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9207 | hardcode_shlibpath_var=no |
---|
9208 | ;; |
---|
9209 | |
---|
9210 | *) |
---|
9211 | ld_shlibs=no |
---|
9212 | ;; |
---|
9213 | esac |
---|
9214 | fi |
---|
9215 | |
---|
9216 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9217 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
9218 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9219 | |
---|
9220 | # |
---|
9221 | # Do we need to explicitly link libc? |
---|
9222 | # |
---|
9223 | case "x$archive_cmds_need_lc" in |
---|
9224 | x|xyes) |
---|
9225 | # Assume -lc should be added |
---|
9226 | archive_cmds_need_lc=yes |
---|
9227 | |
---|
9228 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9229 | case $archive_cmds in |
---|
9230 | *'~'*) |
---|
9231 | # FIXME: we may have to deal with multi-command sequences. |
---|
9232 | ;; |
---|
9233 | '$CC '*) |
---|
9234 | # Test whether the compiler implicitly links with -lc since on some |
---|
9235 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9236 | # to ld, don't add -lc before -lgcc. |
---|
9237 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9238 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
9239 | $rm conftest* |
---|
9240 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9241 | |
---|
9242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9243 | (eval $ac_compile) 2>&5 |
---|
9244 | ac_status=$? |
---|
9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9246 | (exit $ac_status); } 2>conftest.err; then |
---|
9247 | soname=conftest |
---|
9248 | lib=conftest |
---|
9249 | libobjs=conftest.$ac_objext |
---|
9250 | deplibs= |
---|
9251 | wl=$lt_prog_compiler_wl |
---|
9252 | pic_flag=$lt_prog_compiler_pic |
---|
9253 | compiler_flags=-v |
---|
9254 | linker_flags=-v |
---|
9255 | verstring= |
---|
9256 | output_objdir=. |
---|
9257 | libname=conftest |
---|
9258 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9259 | allow_undefined_flag= |
---|
9260 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9261 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9262 | ac_status=$? |
---|
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9264 | (exit $ac_status); } |
---|
9265 | then |
---|
9266 | archive_cmds_need_lc=no |
---|
9267 | else |
---|
9268 | archive_cmds_need_lc=yes |
---|
9269 | fi |
---|
9270 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9271 | else |
---|
9272 | cat conftest.err 1>&5 |
---|
9273 | fi |
---|
9274 | $rm conftest* |
---|
9275 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9276 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
9277 | ;; |
---|
9278 | esac |
---|
9279 | fi |
---|
9280 | ;; |
---|
9281 | esac |
---|
9282 | |
---|
9283 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9284 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
9285 | library_names_spec= |
---|
9286 | libname_spec='lib$name' |
---|
9287 | soname_spec= |
---|
9288 | shrext_cmds=".so" |
---|
9289 | postinstall_cmds= |
---|
9290 | postuninstall_cmds= |
---|
9291 | finish_cmds= |
---|
9292 | finish_eval= |
---|
9293 | shlibpath_var= |
---|
9294 | shlibpath_overrides_runpath=unknown |
---|
9295 | version_type=none |
---|
9296 | dynamic_linker="$host_os ld.so" |
---|
9297 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9298 | if test "$GCC" = yes; then |
---|
9299 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9300 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9301 | # if the path contains ";" then we assume it to be the separator |
---|
9302 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9303 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9304 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9305 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9306 | else |
---|
9307 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9308 | fi |
---|
9309 | else |
---|
9310 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9311 | fi |
---|
9312 | need_lib_prefix=unknown |
---|
9313 | hardcode_into_libs=no |
---|
9314 | |
---|
9315 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9316 | # flags to be left without arguments |
---|
9317 | need_version=unknown |
---|
9318 | |
---|
9319 | case $host_os in |
---|
9320 | aix3*) |
---|
9321 | version_type=linux |
---|
9322 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9323 | shlibpath_var=LIBPATH |
---|
9324 | |
---|
9325 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9326 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9327 | ;; |
---|
9328 | |
---|
9329 | aix4* | aix5*) |
---|
9330 | version_type=linux |
---|
9331 | need_lib_prefix=no |
---|
9332 | need_version=no |
---|
9333 | hardcode_into_libs=yes |
---|
9334 | if test "$host_cpu" = ia64; then |
---|
9335 | # AIX 5 supports IA64 |
---|
9336 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9337 | shlibpath_var=LD_LIBRARY_PATH |
---|
9338 | else |
---|
9339 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9340 | # for dependence libraries. The import file would start with |
---|
9341 | # the line `#! .'. This would cause the generated library to |
---|
9342 | # depend on `.', always an invalid library. This was fixed in |
---|
9343 | # development snapshots of GCC prior to 3.0. |
---|
9344 | case $host_os in |
---|
9345 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9346 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9347 | echo ' yes ' |
---|
9348 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9349 | : |
---|
9350 | else |
---|
9351 | can_build_shared=no |
---|
9352 | fi |
---|
9353 | ;; |
---|
9354 | esac |
---|
9355 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9356 | # soname into executable. Probably we can add versioning support to |
---|
9357 | # collect2, so additional links can be useful in future. |
---|
9358 | if test "$aix_use_runtimelinking" = yes; then |
---|
9359 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9360 | # instead of lib<name>.a to let people know that these are not |
---|
9361 | # typical AIX shared libraries. |
---|
9362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9363 | else |
---|
9364 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9365 | # and later when we are not doing run time linking. |
---|
9366 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9367 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9368 | fi |
---|
9369 | shlibpath_var=LIBPATH |
---|
9370 | fi |
---|
9371 | ;; |
---|
9372 | |
---|
9373 | amigaos*) |
---|
9374 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9375 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9376 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
---|
9377 | ;; |
---|
9378 | |
---|
9379 | beos*) |
---|
9380 | library_names_spec='${libname}${shared_ext}' |
---|
9381 | dynamic_linker="$host_os ld.so" |
---|
9382 | shlibpath_var=LIBRARY_PATH |
---|
9383 | ;; |
---|
9384 | |
---|
9385 | bsdi[45]*) |
---|
9386 | version_type=linux |
---|
9387 | need_version=no |
---|
9388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9389 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9391 | shlibpath_var=LD_LIBRARY_PATH |
---|
9392 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9393 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9394 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9395 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9396 | # libtool to hard-code these into programs |
---|
9397 | ;; |
---|
9398 | |
---|
9399 | cygwin* | mingw* | pw32*) |
---|
9400 | version_type=windows |
---|
9401 | shrext_cmds=".dll" |
---|
9402 | need_version=no |
---|
9403 | need_lib_prefix=no |
---|
9404 | |
---|
9405 | case $GCC,$host_os in |
---|
9406 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9407 | library_names_spec='$libname.dll.a' |
---|
9408 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9409 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9410 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9411 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9412 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9413 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9414 | chmod a+x \$dldir/$dlname' |
---|
9415 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9416 | dlpath=$dir/\$dldll~ |
---|
9417 | $rm \$dlpath' |
---|
9418 | shlibpath_overrides_runpath=yes |
---|
9419 | |
---|
9420 | case $host_os in |
---|
9421 | cygwin*) |
---|
9422 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9423 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9424 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9425 | ;; |
---|
9426 | mingw*) |
---|
9427 | # MinGW DLLs use traditional 'lib' prefix |
---|
9428 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9429 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9430 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9431 | # It is most probably a Windows format PATH printed by |
---|
9432 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9433 | # path with ; separators, and with drive letters. We can handle the |
---|
9434 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9435 | # especially as we might pass files found there to a mingw objdump, |
---|
9436 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9437 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9438 | else |
---|
9439 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9440 | fi |
---|
9441 | ;; |
---|
9442 | pw32*) |
---|
9443 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9444 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9445 | ;; |
---|
9446 | esac |
---|
9447 | ;; |
---|
9448 | |
---|
9449 | *) |
---|
9450 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9451 | ;; |
---|
9452 | esac |
---|
9453 | dynamic_linker='Win32 ld.exe' |
---|
9454 | # FIXME: first we should search . and the directory the executable is in |
---|
9455 | shlibpath_var=PATH |
---|
9456 | ;; |
---|
9457 | |
---|
9458 | darwin* | rhapsody*) |
---|
9459 | dynamic_linker="$host_os dyld" |
---|
9460 | version_type=darwin |
---|
9461 | need_lib_prefix=no |
---|
9462 | need_version=no |
---|
9463 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9464 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9465 | shlibpath_overrides_runpath=yes |
---|
9466 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9467 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9468 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9469 | if test "$GCC" = yes; then |
---|
9470 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
9471 | else |
---|
9472 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9473 | fi |
---|
9474 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9475 | ;; |
---|
9476 | |
---|
9477 | dgux*) |
---|
9478 | version_type=linux |
---|
9479 | need_lib_prefix=no |
---|
9480 | need_version=no |
---|
9481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9482 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9483 | shlibpath_var=LD_LIBRARY_PATH |
---|
9484 | ;; |
---|
9485 | |
---|
9486 | freebsd1*) |
---|
9487 | dynamic_linker=no |
---|
9488 | ;; |
---|
9489 | |
---|
9490 | kfreebsd*-gnu) |
---|
9491 | version_type=linux |
---|
9492 | need_lib_prefix=no |
---|
9493 | need_version=no |
---|
9494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9495 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9496 | shlibpath_var=LD_LIBRARY_PATH |
---|
9497 | shlibpath_overrides_runpath=no |
---|
9498 | hardcode_into_libs=yes |
---|
9499 | dynamic_linker='GNU ld.so' |
---|
9500 | ;; |
---|
9501 | |
---|
9502 | freebsd* | dragonfly*) |
---|
9503 | # DragonFly does not have aout. When/if they implement a new |
---|
9504 | # versioning mechanism, adjust this. |
---|
9505 | if test -x /usr/bin/objformat; then |
---|
9506 | objformat=`/usr/bin/objformat` |
---|
9507 | else |
---|
9508 | case $host_os in |
---|
9509 | freebsd[123]*) objformat=aout ;; |
---|
9510 | *) objformat=elf ;; |
---|
9511 | esac |
---|
9512 | fi |
---|
9513 | version_type=freebsd-$objformat |
---|
9514 | case $version_type in |
---|
9515 | freebsd-elf*) |
---|
9516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9517 | need_version=no |
---|
9518 | need_lib_prefix=no |
---|
9519 | ;; |
---|
9520 | freebsd-*) |
---|
9521 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
9522 | need_version=yes |
---|
9523 | ;; |
---|
9524 | esac |
---|
9525 | shlibpath_var=LD_LIBRARY_PATH |
---|
9526 | case $host_os in |
---|
9527 | freebsd2*) |
---|
9528 | shlibpath_overrides_runpath=yes |
---|
9529 | ;; |
---|
9530 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
9531 | shlibpath_overrides_runpath=yes |
---|
9532 | hardcode_into_libs=yes |
---|
9533 | ;; |
---|
9534 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
9535 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
9536 | shlibpath_overrides_runpath=no |
---|
9537 | hardcode_into_libs=yes |
---|
9538 | ;; |
---|
9539 | freebsd*) # from 4.6 on |
---|
9540 | shlibpath_overrides_runpath=yes |
---|
9541 | hardcode_into_libs=yes |
---|
9542 | ;; |
---|
9543 | esac |
---|
9544 | ;; |
---|
9545 | |
---|
9546 | gnu*) |
---|
9547 | version_type=linux |
---|
9548 | need_lib_prefix=no |
---|
9549 | need_version=no |
---|
9550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9551 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9552 | shlibpath_var=LD_LIBRARY_PATH |
---|
9553 | hardcode_into_libs=yes |
---|
9554 | ;; |
---|
9555 | |
---|
9556 | hpux9* | hpux10* | hpux11*) |
---|
9557 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9558 | # link against other versions. |
---|
9559 | version_type=sunos |
---|
9560 | need_lib_prefix=no |
---|
9561 | need_version=no |
---|
9562 | case $host_cpu in |
---|
9563 | ia64*) |
---|
9564 | shrext_cmds='.so' |
---|
9565 | hardcode_into_libs=yes |
---|
9566 | dynamic_linker="$host_os dld.so" |
---|
9567 | shlibpath_var=LD_LIBRARY_PATH |
---|
9568 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9570 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9571 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9572 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9573 | else |
---|
9574 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9575 | fi |
---|
9576 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9577 | ;; |
---|
9578 | hppa*64*) |
---|
9579 | shrext_cmds='.sl' |
---|
9580 | hardcode_into_libs=yes |
---|
9581 | dynamic_linker="$host_os dld.sl" |
---|
9582 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9583 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9585 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9586 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9587 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9588 | ;; |
---|
9589 | *) |
---|
9590 | shrext_cmds='.sl' |
---|
9591 | dynamic_linker="$host_os dld.sl" |
---|
9592 | shlibpath_var=SHLIB_PATH |
---|
9593 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9595 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9596 | ;; |
---|
9597 | esac |
---|
9598 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9599 | postinstall_cmds='chmod 555 $lib' |
---|
9600 | ;; |
---|
9601 | |
---|
9602 | interix3*) |
---|
9603 | version_type=linux |
---|
9604 | need_lib_prefix=no |
---|
9605 | need_version=no |
---|
9606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9607 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9608 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
9609 | shlibpath_var=LD_LIBRARY_PATH |
---|
9610 | shlibpath_overrides_runpath=no |
---|
9611 | hardcode_into_libs=yes |
---|
9612 | ;; |
---|
9613 | |
---|
9614 | irix5* | irix6* | nonstopux*) |
---|
9615 | case $host_os in |
---|
9616 | nonstopux*) version_type=nonstopux ;; |
---|
9617 | *) |
---|
9618 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9619 | version_type=linux |
---|
9620 | else |
---|
9621 | version_type=irix |
---|
9622 | fi ;; |
---|
9623 | esac |
---|
9624 | need_lib_prefix=no |
---|
9625 | need_version=no |
---|
9626 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9628 | case $host_os in |
---|
9629 | irix5* | nonstopux*) |
---|
9630 | libsuff= shlibsuff= |
---|
9631 | ;; |
---|
9632 | *) |
---|
9633 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9634 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9635 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9636 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9637 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9638 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9639 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9640 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9641 | esac |
---|
9642 | ;; |
---|
9643 | esac |
---|
9644 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9645 | shlibpath_overrides_runpath=no |
---|
9646 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9647 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9648 | hardcode_into_libs=yes |
---|
9649 | ;; |
---|
9650 | |
---|
9651 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9652 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9653 | dynamic_linker=no |
---|
9654 | ;; |
---|
9655 | |
---|
9656 | # This must be Linux ELF. |
---|
9657 | linux*) |
---|
9658 | version_type=linux |
---|
9659 | need_lib_prefix=no |
---|
9660 | need_version=no |
---|
9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9662 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9663 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9664 | shlibpath_var=LD_LIBRARY_PATH |
---|
9665 | shlibpath_overrides_runpath=no |
---|
9666 | # This implies no fast_install, which is unacceptable. |
---|
9667 | # Some rework will be needed to allow for fast_install |
---|
9668 | # before this can be enabled. |
---|
9669 | hardcode_into_libs=yes |
---|
9670 | |
---|
9671 | # Append ld.so.conf contents to the search path |
---|
9672 | if test -f /etc/ld.so.conf; then |
---|
9673 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
9674 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9675 | fi |
---|
9676 | |
---|
9677 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9678 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9679 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9680 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9681 | # people can always --disable-shared, the test was removed, and we |
---|
9682 | # assume the GNU/Linux dynamic linker is in use. |
---|
9683 | dynamic_linker='GNU/Linux ld.so' |
---|
9684 | ;; |
---|
9685 | |
---|
9686 | knetbsd*-gnu) |
---|
9687 | version_type=linux |
---|
9688 | need_lib_prefix=no |
---|
9689 | need_version=no |
---|
9690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9691 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9692 | shlibpath_var=LD_LIBRARY_PATH |
---|
9693 | shlibpath_overrides_runpath=no |
---|
9694 | hardcode_into_libs=yes |
---|
9695 | dynamic_linker='GNU ld.so' |
---|
9696 | ;; |
---|
9697 | |
---|
9698 | netbsd*) |
---|
9699 | version_type=sunos |
---|
9700 | need_lib_prefix=no |
---|
9701 | need_version=no |
---|
9702 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9704 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9705 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9706 | else |
---|
9707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9708 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9709 | dynamic_linker='NetBSD ld.elf_so' |
---|
9710 | fi |
---|
9711 | shlibpath_var=LD_LIBRARY_PATH |
---|
9712 | shlibpath_overrides_runpath=yes |
---|
9713 | hardcode_into_libs=yes |
---|
9714 | ;; |
---|
9715 | |
---|
9716 | newsos6) |
---|
9717 | version_type=linux |
---|
9718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9719 | shlibpath_var=LD_LIBRARY_PATH |
---|
9720 | shlibpath_overrides_runpath=yes |
---|
9721 | ;; |
---|
9722 | |
---|
9723 | nto-qnx*) |
---|
9724 | version_type=linux |
---|
9725 | need_lib_prefix=no |
---|
9726 | need_version=no |
---|
9727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9728 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9729 | shlibpath_var=LD_LIBRARY_PATH |
---|
9730 | shlibpath_overrides_runpath=yes |
---|
9731 | ;; |
---|
9732 | |
---|
9733 | openbsd*) |
---|
9734 | version_type=sunos |
---|
9735 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
9736 | need_lib_prefix=no |
---|
9737 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9738 | case $host_os in |
---|
9739 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9740 | *) need_version=no ;; |
---|
9741 | esac |
---|
9742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9743 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9744 | shlibpath_var=LD_LIBRARY_PATH |
---|
9745 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9746 | case $host_os in |
---|
9747 | openbsd2.[89] | openbsd2.[89].*) |
---|
9748 | shlibpath_overrides_runpath=no |
---|
9749 | ;; |
---|
9750 | *) |
---|
9751 | shlibpath_overrides_runpath=yes |
---|
9752 | ;; |
---|
9753 | esac |
---|
9754 | else |
---|
9755 | shlibpath_overrides_runpath=yes |
---|
9756 | fi |
---|
9757 | ;; |
---|
9758 | |
---|
9759 | os2*) |
---|
9760 | libname_spec='$name' |
---|
9761 | shrext_cmds=".dll" |
---|
9762 | need_lib_prefix=no |
---|
9763 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9764 | dynamic_linker='OS/2 ld.exe' |
---|
9765 | shlibpath_var=LIBPATH |
---|
9766 | ;; |
---|
9767 | |
---|
9768 | osf3* | osf4* | osf5*) |
---|
9769 | version_type=osf |
---|
9770 | need_lib_prefix=no |
---|
9771 | need_version=no |
---|
9772 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9774 | shlibpath_var=LD_LIBRARY_PATH |
---|
9775 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9776 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9777 | ;; |
---|
9778 | |
---|
9779 | solaris*) |
---|
9780 | version_type=linux |
---|
9781 | need_lib_prefix=no |
---|
9782 | need_version=no |
---|
9783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9784 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9785 | shlibpath_var=LD_LIBRARY_PATH |
---|
9786 | shlibpath_overrides_runpath=yes |
---|
9787 | hardcode_into_libs=yes |
---|
9788 | # ldd complains unless libraries are executable |
---|
9789 | postinstall_cmds='chmod +x $lib' |
---|
9790 | ;; |
---|
9791 | |
---|
9792 | sunos4*) |
---|
9793 | version_type=sunos |
---|
9794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9795 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9796 | shlibpath_var=LD_LIBRARY_PATH |
---|
9797 | shlibpath_overrides_runpath=yes |
---|
9798 | if test "$with_gnu_ld" = yes; then |
---|
9799 | need_lib_prefix=no |
---|
9800 | fi |
---|
9801 | need_version=yes |
---|
9802 | ;; |
---|
9803 | |
---|
9804 | sysv4 | sysv4.3*) |
---|
9805 | version_type=linux |
---|
9806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9807 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9808 | shlibpath_var=LD_LIBRARY_PATH |
---|
9809 | case $host_vendor in |
---|
9810 | sni) |
---|
9811 | shlibpath_overrides_runpath=no |
---|
9812 | need_lib_prefix=no |
---|
9813 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9814 | runpath_var=LD_RUN_PATH |
---|
9815 | ;; |
---|
9816 | siemens) |
---|
9817 | need_lib_prefix=no |
---|
9818 | ;; |
---|
9819 | motorola) |
---|
9820 | need_lib_prefix=no |
---|
9821 | need_version=no |
---|
9822 | shlibpath_overrides_runpath=no |
---|
9823 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9824 | ;; |
---|
9825 | esac |
---|
9826 | ;; |
---|
9827 | |
---|
9828 | sysv4*MP*) |
---|
9829 | if test -d /usr/nec ;then |
---|
9830 | version_type=linux |
---|
9831 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9832 | soname_spec='$libname${shared_ext}.$major' |
---|
9833 | shlibpath_var=LD_LIBRARY_PATH |
---|
9834 | fi |
---|
9835 | ;; |
---|
9836 | |
---|
9837 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9838 | version_type=freebsd-elf |
---|
9839 | need_lib_prefix=no |
---|
9840 | need_version=no |
---|
9841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9842 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9843 | shlibpath_var=LD_LIBRARY_PATH |
---|
9844 | hardcode_into_libs=yes |
---|
9845 | if test "$with_gnu_ld" = yes; then |
---|
9846 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
9847 | shlibpath_overrides_runpath=no |
---|
9848 | else |
---|
9849 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
9850 | shlibpath_overrides_runpath=yes |
---|
9851 | case $host_os in |
---|
9852 | sco3.2v5*) |
---|
9853 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
9854 | ;; |
---|
9855 | esac |
---|
9856 | fi |
---|
9857 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
9858 | ;; |
---|
9859 | |
---|
9860 | uts4*) |
---|
9861 | version_type=linux |
---|
9862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9863 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9864 | shlibpath_var=LD_LIBRARY_PATH |
---|
9865 | ;; |
---|
9866 | |
---|
9867 | *) |
---|
9868 | dynamic_linker=no |
---|
9869 | ;; |
---|
9870 | esac |
---|
9871 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9872 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
9873 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9874 | |
---|
9875 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9876 | if test "$GCC" = yes; then |
---|
9877 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9878 | fi |
---|
9879 | |
---|
9880 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9881 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
9882 | hardcode_action= |
---|
9883 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9884 | test -n "$runpath_var" || \ |
---|
9885 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9886 | |
---|
9887 | # We can hardcode non-existant directories. |
---|
9888 | if test "$hardcode_direct" != no && |
---|
9889 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9890 | # have to relink, otherwise we might link with an installed library |
---|
9891 | # when we should be linking with a yet-to-be-installed one |
---|
9892 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9893 | test "$hardcode_minus_L" != no; then |
---|
9894 | # Linking always hardcodes the temporary library directory. |
---|
9895 | hardcode_action=relink |
---|
9896 | else |
---|
9897 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9898 | hardcode_action=immediate |
---|
9899 | fi |
---|
9900 | else |
---|
9901 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9902 | # directories. |
---|
9903 | hardcode_action=unsupported |
---|
9904 | fi |
---|
9905 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9906 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
9907 | |
---|
9908 | if test "$hardcode_action" = relink; then |
---|
9909 | # Fast installation is not supported |
---|
9910 | enable_fast_install=no |
---|
9911 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9912 | test "$enable_shared" = no; then |
---|
9913 | # Fast installation is not necessary |
---|
9914 | enable_fast_install=needless |
---|
9915 | fi |
---|
9916 | |
---|
9917 | striplib= |
---|
9918 | old_striplib= |
---|
9919 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9920 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
9921 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9922 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
9923 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
9924 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9925 | echo "${ECHO_T}yes" >&6 |
---|
9926 | else |
---|
9927 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
9928 | case $host_os in |
---|
9929 | darwin*) |
---|
9930 | if test -n "$STRIP" ; then |
---|
9931 | striplib="$STRIP -x" |
---|
9932 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9933 | echo "${ECHO_T}yes" >&6 |
---|
9934 | else |
---|
9935 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9936 | echo "${ECHO_T}no" >&6 |
---|
9937 | fi |
---|
9938 | ;; |
---|
9939 | *) |
---|
9940 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9941 | echo "${ECHO_T}no" >&6 |
---|
9942 | ;; |
---|
9943 | esac |
---|
9944 | fi |
---|
9945 | |
---|
9946 | if test "x$enable_dlopen" != xyes; then |
---|
9947 | enable_dlopen=unknown |
---|
9948 | enable_dlopen_self=unknown |
---|
9949 | enable_dlopen_self_static=unknown |
---|
9950 | else |
---|
9951 | lt_cv_dlopen=no |
---|
9952 | lt_cv_dlopen_libs= |
---|
9953 | |
---|
9954 | case $host_os in |
---|
9955 | beos*) |
---|
9956 | lt_cv_dlopen="load_add_on" |
---|
9957 | lt_cv_dlopen_libs= |
---|
9958 | lt_cv_dlopen_self=yes |
---|
9959 | ;; |
---|
9960 | |
---|
9961 | mingw* | pw32*) |
---|
9962 | lt_cv_dlopen="LoadLibrary" |
---|
9963 | lt_cv_dlopen_libs= |
---|
9964 | ;; |
---|
9965 | |
---|
9966 | cygwin*) |
---|
9967 | lt_cv_dlopen="dlopen" |
---|
9968 | lt_cv_dlopen_libs= |
---|
9969 | ;; |
---|
9970 | |
---|
9971 | darwin*) |
---|
9972 | # if libdl is installed we need to link against it |
---|
9973 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9974 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
9975 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9977 | else |
---|
9978 | ac_check_lib_save_LIBS=$LIBS |
---|
9979 | LIBS="-ldl $LIBS" |
---|
9980 | cat >conftest.$ac_ext <<_ACEOF |
---|
9981 | /* confdefs.h. */ |
---|
9982 | _ACEOF |
---|
9983 | cat confdefs.h >>conftest.$ac_ext |
---|
9984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9985 | /* end confdefs.h. */ |
---|
9986 | |
---|
9987 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9988 | #ifdef __cplusplus |
---|
9989 | extern "C" |
---|
9990 | #endif |
---|
9991 | /* We use char because int might match the return type of a gcc2 |
---|
9992 | builtin and then its argument prototype would still apply. */ |
---|
9993 | char dlopen (); |
---|
9994 | int |
---|
9995 | main () |
---|
9996 | { |
---|
9997 | dlopen (); |
---|
9998 | ; |
---|
9999 | return 0; |
---|
10000 | } |
---|
10001 | _ACEOF |
---|
10002 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10004 | (eval $ac_link) 2>conftest.er1 |
---|
10005 | ac_status=$? |
---|
10006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10007 | rm -f conftest.er1 |
---|
10008 | cat conftest.err >&5 |
---|
10009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10010 | (exit $ac_status); } && |
---|
10011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10012 | || test ! -s conftest.err' |
---|
10013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10014 | (eval $ac_try) 2>&5 |
---|
10015 | ac_status=$? |
---|
10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10017 | (exit $ac_status); }; } && |
---|
10018 | { ac_try='test -s conftest$ac_exeext' |
---|
10019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10020 | (eval $ac_try) 2>&5 |
---|
10021 | ac_status=$? |
---|
10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10023 | (exit $ac_status); }; }; then |
---|
10024 | ac_cv_lib_dl_dlopen=yes |
---|
10025 | else |
---|
10026 | echo "$as_me: failed program was:" >&5 |
---|
10027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10028 | |
---|
10029 | ac_cv_lib_dl_dlopen=no |
---|
10030 | fi |
---|
10031 | rm -f conftest.err conftest.$ac_objext \ |
---|
10032 | conftest$ac_exeext conftest.$ac_ext |
---|
10033 | LIBS=$ac_check_lib_save_LIBS |
---|
10034 | fi |
---|
10035 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10036 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10037 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10038 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10039 | else |
---|
10040 | |
---|
10041 | lt_cv_dlopen="dyld" |
---|
10042 | lt_cv_dlopen_libs= |
---|
10043 | lt_cv_dlopen_self=yes |
---|
10044 | |
---|
10045 | fi |
---|
10046 | |
---|
10047 | ;; |
---|
10048 | |
---|
10049 | *) |
---|
10050 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
10051 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
10052 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10054 | else |
---|
10055 | cat >conftest.$ac_ext <<_ACEOF |
---|
10056 | /* confdefs.h. */ |
---|
10057 | _ACEOF |
---|
10058 | cat confdefs.h >>conftest.$ac_ext |
---|
10059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10060 | /* end confdefs.h. */ |
---|
10061 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
10062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10063 | #define shl_load innocuous_shl_load |
---|
10064 | |
---|
10065 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10066 | which can conflict with char shl_load (); below. |
---|
10067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10068 | <limits.h> exists even on freestanding compilers. */ |
---|
10069 | |
---|
10070 | #ifdef __STDC__ |
---|
10071 | # include <limits.h> |
---|
10072 | #else |
---|
10073 | # include <assert.h> |
---|
10074 | #endif |
---|
10075 | |
---|
10076 | #undef shl_load |
---|
10077 | |
---|
10078 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10079 | #ifdef __cplusplus |
---|
10080 | extern "C" |
---|
10081 | { |
---|
10082 | #endif |
---|
10083 | /* We use char because int might match the return type of a gcc2 |
---|
10084 | builtin and then its argument prototype would still apply. */ |
---|
10085 | char shl_load (); |
---|
10086 | /* The GNU C library defines this for functions which it implements |
---|
10087 | to always fail with ENOSYS. Some functions are actually named |
---|
10088 | something starting with __ and the normal name is an alias. */ |
---|
10089 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
10090 | choke me |
---|
10091 | #else |
---|
10092 | char (*f) () = shl_load; |
---|
10093 | #endif |
---|
10094 | #ifdef __cplusplus |
---|
10095 | } |
---|
10096 | #endif |
---|
10097 | |
---|
10098 | int |
---|
10099 | main () |
---|
10100 | { |
---|
10101 | return f != shl_load; |
---|
10102 | ; |
---|
10103 | return 0; |
---|
10104 | } |
---|
10105 | _ACEOF |
---|
10106 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10108 | (eval $ac_link) 2>conftest.er1 |
---|
10109 | ac_status=$? |
---|
10110 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10111 | rm -f conftest.er1 |
---|
10112 | cat conftest.err >&5 |
---|
10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10114 | (exit $ac_status); } && |
---|
10115 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10116 | || test ! -s conftest.err' |
---|
10117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10118 | (eval $ac_try) 2>&5 |
---|
10119 | ac_status=$? |
---|
10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10121 | (exit $ac_status); }; } && |
---|
10122 | { ac_try='test -s conftest$ac_exeext' |
---|
10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10124 | (eval $ac_try) 2>&5 |
---|
10125 | ac_status=$? |
---|
10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10127 | (exit $ac_status); }; }; then |
---|
10128 | ac_cv_func_shl_load=yes |
---|
10129 | else |
---|
10130 | echo "$as_me: failed program was:" >&5 |
---|
10131 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10132 | |
---|
10133 | ac_cv_func_shl_load=no |
---|
10134 | fi |
---|
10135 | rm -f conftest.err conftest.$ac_objext \ |
---|
10136 | conftest$ac_exeext conftest.$ac_ext |
---|
10137 | fi |
---|
10138 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
10139 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
10140 | if test $ac_cv_func_shl_load = yes; then |
---|
10141 | lt_cv_dlopen="shl_load" |
---|
10142 | else |
---|
10143 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
10144 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
10145 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
10146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10147 | else |
---|
10148 | ac_check_lib_save_LIBS=$LIBS |
---|
10149 | LIBS="-ldld $LIBS" |
---|
10150 | cat >conftest.$ac_ext <<_ACEOF |
---|
10151 | /* confdefs.h. */ |
---|
10152 | _ACEOF |
---|
10153 | cat confdefs.h >>conftest.$ac_ext |
---|
10154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10155 | /* end confdefs.h. */ |
---|
10156 | |
---|
10157 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10158 | #ifdef __cplusplus |
---|
10159 | extern "C" |
---|
10160 | #endif |
---|
10161 | /* We use char because int might match the return type of a gcc2 |
---|
10162 | builtin and then its argument prototype would still apply. */ |
---|
10163 | char shl_load (); |
---|
10164 | int |
---|
10165 | main () |
---|
10166 | { |
---|
10167 | shl_load (); |
---|
10168 | ; |
---|
10169 | return 0; |
---|
10170 | } |
---|
10171 | _ACEOF |
---|
10172 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10174 | (eval $ac_link) 2>conftest.er1 |
---|
10175 | ac_status=$? |
---|
10176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10177 | rm -f conftest.er1 |
---|
10178 | cat conftest.err >&5 |
---|
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10180 | (exit $ac_status); } && |
---|
10181 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10182 | || test ! -s conftest.err' |
---|
10183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10184 | (eval $ac_try) 2>&5 |
---|
10185 | ac_status=$? |
---|
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10187 | (exit $ac_status); }; } && |
---|
10188 | { ac_try='test -s conftest$ac_exeext' |
---|
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10190 | (eval $ac_try) 2>&5 |
---|
10191 | ac_status=$? |
---|
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10193 | (exit $ac_status); }; }; then |
---|
10194 | ac_cv_lib_dld_shl_load=yes |
---|
10195 | else |
---|
10196 | echo "$as_me: failed program was:" >&5 |
---|
10197 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10198 | |
---|
10199 | ac_cv_lib_dld_shl_load=no |
---|
10200 | fi |
---|
10201 | rm -f conftest.err conftest.$ac_objext \ |
---|
10202 | conftest$ac_exeext conftest.$ac_ext |
---|
10203 | LIBS=$ac_check_lib_save_LIBS |
---|
10204 | fi |
---|
10205 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10206 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
10207 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10208 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10209 | else |
---|
10210 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10211 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
10212 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10214 | else |
---|
10215 | cat >conftest.$ac_ext <<_ACEOF |
---|
10216 | /* confdefs.h. */ |
---|
10217 | _ACEOF |
---|
10218 | cat confdefs.h >>conftest.$ac_ext |
---|
10219 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10220 | /* end confdefs.h. */ |
---|
10221 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10223 | #define dlopen innocuous_dlopen |
---|
10224 | |
---|
10225 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10226 | which can conflict with char dlopen (); below. |
---|
10227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10228 | <limits.h> exists even on freestanding compilers. */ |
---|
10229 | |
---|
10230 | #ifdef __STDC__ |
---|
10231 | # include <limits.h> |
---|
10232 | #else |
---|
10233 | # include <assert.h> |
---|
10234 | #endif |
---|
10235 | |
---|
10236 | #undef dlopen |
---|
10237 | |
---|
10238 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10239 | #ifdef __cplusplus |
---|
10240 | extern "C" |
---|
10241 | { |
---|
10242 | #endif |
---|
10243 | /* We use char because int might match the return type of a gcc2 |
---|
10244 | builtin and then its argument prototype would still apply. */ |
---|
10245 | char dlopen (); |
---|
10246 | /* The GNU C library defines this for functions which it implements |
---|
10247 | to always fail with ENOSYS. Some functions are actually named |
---|
10248 | something starting with __ and the normal name is an alias. */ |
---|
10249 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
10250 | choke me |
---|
10251 | #else |
---|
10252 | char (*f) () = dlopen; |
---|
10253 | #endif |
---|
10254 | #ifdef __cplusplus |
---|
10255 | } |
---|
10256 | #endif |
---|
10257 | |
---|
10258 | int |
---|
10259 | main () |
---|
10260 | { |
---|
10261 | return f != dlopen; |
---|
10262 | ; |
---|
10263 | return 0; |
---|
10264 | } |
---|
10265 | _ACEOF |
---|
10266 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10268 | (eval $ac_link) 2>conftest.er1 |
---|
10269 | ac_status=$? |
---|
10270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10271 | rm -f conftest.er1 |
---|
10272 | cat conftest.err >&5 |
---|
10273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10274 | (exit $ac_status); } && |
---|
10275 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10276 | || test ! -s conftest.err' |
---|
10277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10278 | (eval $ac_try) 2>&5 |
---|
10279 | ac_status=$? |
---|
10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10281 | (exit $ac_status); }; } && |
---|
10282 | { ac_try='test -s conftest$ac_exeext' |
---|
10283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10284 | (eval $ac_try) 2>&5 |
---|
10285 | ac_status=$? |
---|
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10287 | (exit $ac_status); }; }; then |
---|
10288 | ac_cv_func_dlopen=yes |
---|
10289 | else |
---|
10290 | echo "$as_me: failed program was:" >&5 |
---|
10291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10292 | |
---|
10293 | ac_cv_func_dlopen=no |
---|
10294 | fi |
---|
10295 | rm -f conftest.err conftest.$ac_objext \ |
---|
10296 | conftest$ac_exeext conftest.$ac_ext |
---|
10297 | fi |
---|
10298 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
10299 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
10300 | if test $ac_cv_func_dlopen = yes; then |
---|
10301 | lt_cv_dlopen="dlopen" |
---|
10302 | else |
---|
10303 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10304 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10305 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10307 | else |
---|
10308 | ac_check_lib_save_LIBS=$LIBS |
---|
10309 | LIBS="-ldl $LIBS" |
---|
10310 | cat >conftest.$ac_ext <<_ACEOF |
---|
10311 | /* confdefs.h. */ |
---|
10312 | _ACEOF |
---|
10313 | cat confdefs.h >>conftest.$ac_ext |
---|
10314 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10315 | /* end confdefs.h. */ |
---|
10316 | |
---|
10317 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10318 | #ifdef __cplusplus |
---|
10319 | extern "C" |
---|
10320 | #endif |
---|
10321 | /* We use char because int might match the return type of a gcc2 |
---|
10322 | builtin and then its argument prototype would still apply. */ |
---|
10323 | char dlopen (); |
---|
10324 | int |
---|
10325 | main () |
---|
10326 | { |
---|
10327 | dlopen (); |
---|
10328 | ; |
---|
10329 | return 0; |
---|
10330 | } |
---|
10331 | _ACEOF |
---|
10332 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10334 | (eval $ac_link) 2>conftest.er1 |
---|
10335 | ac_status=$? |
---|
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10337 | rm -f conftest.er1 |
---|
10338 | cat conftest.err >&5 |
---|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10340 | (exit $ac_status); } && |
---|
10341 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10342 | || test ! -s conftest.err' |
---|
10343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10344 | (eval $ac_try) 2>&5 |
---|
10345 | ac_status=$? |
---|
10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10347 | (exit $ac_status); }; } && |
---|
10348 | { ac_try='test -s conftest$ac_exeext' |
---|
10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10350 | (eval $ac_try) 2>&5 |
---|
10351 | ac_status=$? |
---|
10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10353 | (exit $ac_status); }; }; then |
---|
10354 | ac_cv_lib_dl_dlopen=yes |
---|
10355 | else |
---|
10356 | echo "$as_me: failed program was:" >&5 |
---|
10357 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10358 | |
---|
10359 | ac_cv_lib_dl_dlopen=no |
---|
10360 | fi |
---|
10361 | rm -f conftest.err conftest.$ac_objext \ |
---|
10362 | conftest$ac_exeext conftest.$ac_ext |
---|
10363 | LIBS=$ac_check_lib_save_LIBS |
---|
10364 | fi |
---|
10365 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10366 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10367 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10368 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10369 | else |
---|
10370 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
10371 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
10372 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
10373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10374 | else |
---|
10375 | ac_check_lib_save_LIBS=$LIBS |
---|
10376 | LIBS="-lsvld $LIBS" |
---|
10377 | cat >conftest.$ac_ext <<_ACEOF |
---|
10378 | /* confdefs.h. */ |
---|
10379 | _ACEOF |
---|
10380 | cat confdefs.h >>conftest.$ac_ext |
---|
10381 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10382 | /* end confdefs.h. */ |
---|
10383 | |
---|
10384 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10385 | #ifdef __cplusplus |
---|
10386 | extern "C" |
---|
10387 | #endif |
---|
10388 | /* We use char because int might match the return type of a gcc2 |
---|
10389 | builtin and then its argument prototype would still apply. */ |
---|
10390 | char dlopen (); |
---|
10391 | int |
---|
10392 | main () |
---|
10393 | { |
---|
10394 | dlopen (); |
---|
10395 | ; |
---|
10396 | return 0; |
---|
10397 | } |
---|
10398 | _ACEOF |
---|
10399 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10401 | (eval $ac_link) 2>conftest.er1 |
---|
10402 | ac_status=$? |
---|
10403 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10404 | rm -f conftest.er1 |
---|
10405 | cat conftest.err >&5 |
---|
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10407 | (exit $ac_status); } && |
---|
10408 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10409 | || test ! -s conftest.err' |
---|
10410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10411 | (eval $ac_try) 2>&5 |
---|
10412 | ac_status=$? |
---|
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10414 | (exit $ac_status); }; } && |
---|
10415 | { ac_try='test -s conftest$ac_exeext' |
---|
10416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10417 | (eval $ac_try) 2>&5 |
---|
10418 | ac_status=$? |
---|
10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10420 | (exit $ac_status); }; }; then |
---|
10421 | ac_cv_lib_svld_dlopen=yes |
---|
10422 | else |
---|
10423 | echo "$as_me: failed program was:" >&5 |
---|
10424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10425 | |
---|
10426 | ac_cv_lib_svld_dlopen=no |
---|
10427 | fi |
---|
10428 | rm -f conftest.err conftest.$ac_objext \ |
---|
10429 | conftest$ac_exeext conftest.$ac_ext |
---|
10430 | LIBS=$ac_check_lib_save_LIBS |
---|
10431 | fi |
---|
10432 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10433 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
10434 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
10435 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10436 | else |
---|
10437 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
10438 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
10439 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
10440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10441 | else |
---|
10442 | ac_check_lib_save_LIBS=$LIBS |
---|
10443 | LIBS="-ldld $LIBS" |
---|
10444 | cat >conftest.$ac_ext <<_ACEOF |
---|
10445 | /* confdefs.h. */ |
---|
10446 | _ACEOF |
---|
10447 | cat confdefs.h >>conftest.$ac_ext |
---|
10448 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10449 | /* end confdefs.h. */ |
---|
10450 | |
---|
10451 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10452 | #ifdef __cplusplus |
---|
10453 | extern "C" |
---|
10454 | #endif |
---|
10455 | /* We use char because int might match the return type of a gcc2 |
---|
10456 | builtin and then its argument prototype would still apply. */ |
---|
10457 | char dld_link (); |
---|
10458 | int |
---|
10459 | main () |
---|
10460 | { |
---|
10461 | dld_link (); |
---|
10462 | ; |
---|
10463 | return 0; |
---|
10464 | } |
---|
10465 | _ACEOF |
---|
10466 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10468 | (eval $ac_link) 2>conftest.er1 |
---|
10469 | ac_status=$? |
---|
10470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10471 | rm -f conftest.er1 |
---|
10472 | cat conftest.err >&5 |
---|
10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10474 | (exit $ac_status); } && |
---|
10475 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10476 | || test ! -s conftest.err' |
---|
10477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10478 | (eval $ac_try) 2>&5 |
---|
10479 | ac_status=$? |
---|
10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10481 | (exit $ac_status); }; } && |
---|
10482 | { ac_try='test -s conftest$ac_exeext' |
---|
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10484 | (eval $ac_try) 2>&5 |
---|
10485 | ac_status=$? |
---|
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10487 | (exit $ac_status); }; }; then |
---|
10488 | ac_cv_lib_dld_dld_link=yes |
---|
10489 | else |
---|
10490 | echo "$as_me: failed program was:" >&5 |
---|
10491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10492 | |
---|
10493 | ac_cv_lib_dld_dld_link=no |
---|
10494 | fi |
---|
10495 | rm -f conftest.err conftest.$ac_objext \ |
---|
10496 | conftest$ac_exeext conftest.$ac_ext |
---|
10497 | LIBS=$ac_check_lib_save_LIBS |
---|
10498 | fi |
---|
10499 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10500 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
10501 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
10502 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
10503 | fi |
---|
10504 | |
---|
10505 | |
---|
10506 | fi |
---|
10507 | |
---|
10508 | |
---|
10509 | fi |
---|
10510 | |
---|
10511 | |
---|
10512 | fi |
---|
10513 | |
---|
10514 | |
---|
10515 | fi |
---|
10516 | |
---|
10517 | |
---|
10518 | fi |
---|
10519 | |
---|
10520 | ;; |
---|
10521 | esac |
---|
10522 | |
---|
10523 | if test "x$lt_cv_dlopen" != xno; then |
---|
10524 | enable_dlopen=yes |
---|
10525 | else |
---|
10526 | enable_dlopen=no |
---|
10527 | fi |
---|
10528 | |
---|
10529 | case $lt_cv_dlopen in |
---|
10530 | dlopen) |
---|
10531 | save_CPPFLAGS="$CPPFLAGS" |
---|
10532 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
10533 | |
---|
10534 | save_LDFLAGS="$LDFLAGS" |
---|
10535 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
10536 | |
---|
10537 | save_LIBS="$LIBS" |
---|
10538 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10539 | |
---|
10540 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10541 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
10542 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10544 | else |
---|
10545 | if test "$cross_compiling" = yes; then : |
---|
10546 | lt_cv_dlopen_self=cross |
---|
10547 | else |
---|
10548 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10549 | lt_status=$lt_dlunknown |
---|
10550 | cat > conftest.$ac_ext <<EOF |
---|
10551 | #line 10551 "configure" |
---|
10552 | #include "confdefs.h" |
---|
10553 | |
---|
10554 | #if HAVE_DLFCN_H |
---|
10555 | #include <dlfcn.h> |
---|
10556 | #endif |
---|
10557 | |
---|
10558 | #include <stdio.h> |
---|
10559 | |
---|
10560 | #ifdef RTLD_GLOBAL |
---|
10561 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10562 | #else |
---|
10563 | # ifdef DL_GLOBAL |
---|
10564 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10565 | # else |
---|
10566 | # define LT_DLGLOBAL 0 |
---|
10567 | # endif |
---|
10568 | #endif |
---|
10569 | |
---|
10570 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10571 | find out it does not work in some platform. */ |
---|
10572 | #ifndef LT_DLLAZY_OR_NOW |
---|
10573 | # ifdef RTLD_LAZY |
---|
10574 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10575 | # else |
---|
10576 | # ifdef DL_LAZY |
---|
10577 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10578 | # else |
---|
10579 | # ifdef RTLD_NOW |
---|
10580 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10581 | # else |
---|
10582 | # ifdef DL_NOW |
---|
10583 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10584 | # else |
---|
10585 | # define LT_DLLAZY_OR_NOW 0 |
---|
10586 | # endif |
---|
10587 | # endif |
---|
10588 | # endif |
---|
10589 | # endif |
---|
10590 | #endif |
---|
10591 | |
---|
10592 | #ifdef __cplusplus |
---|
10593 | extern "C" void exit (int); |
---|
10594 | #endif |
---|
10595 | |
---|
10596 | void fnord() { int i=42;} |
---|
10597 | int main () |
---|
10598 | { |
---|
10599 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10600 | int status = $lt_dlunknown; |
---|
10601 | |
---|
10602 | if (self) |
---|
10603 | { |
---|
10604 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10605 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10606 | /* dlclose (self); */ |
---|
10607 | } |
---|
10608 | else |
---|
10609 | puts (dlerror ()); |
---|
10610 | |
---|
10611 | exit (status); |
---|
10612 | } |
---|
10613 | EOF |
---|
10614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10615 | (eval $ac_link) 2>&5 |
---|
10616 | ac_status=$? |
---|
10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10618 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10619 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10620 | lt_status=$? |
---|
10621 | case x$lt_status in |
---|
10622 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10623 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10624 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
10625 | esac |
---|
10626 | else : |
---|
10627 | # compilation failed |
---|
10628 | lt_cv_dlopen_self=no |
---|
10629 | fi |
---|
10630 | fi |
---|
10631 | rm -fr conftest* |
---|
10632 | |
---|
10633 | |
---|
10634 | fi |
---|
10635 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10636 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
10637 | |
---|
10638 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10639 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
10640 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10641 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
10642 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10644 | else |
---|
10645 | if test "$cross_compiling" = yes; then : |
---|
10646 | lt_cv_dlopen_self_static=cross |
---|
10647 | else |
---|
10648 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10649 | lt_status=$lt_dlunknown |
---|
10650 | cat > conftest.$ac_ext <<EOF |
---|
10651 | #line 10651 "configure" |
---|
10652 | #include "confdefs.h" |
---|
10653 | |
---|
10654 | #if HAVE_DLFCN_H |
---|
10655 | #include <dlfcn.h> |
---|
10656 | #endif |
---|
10657 | |
---|
10658 | #include <stdio.h> |
---|
10659 | |
---|
10660 | #ifdef RTLD_GLOBAL |
---|
10661 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10662 | #else |
---|
10663 | # ifdef DL_GLOBAL |
---|
10664 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10665 | # else |
---|
10666 | # define LT_DLGLOBAL 0 |
---|
10667 | # endif |
---|
10668 | #endif |
---|
10669 | |
---|
10670 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10671 | find out it does not work in some platform. */ |
---|
10672 | #ifndef LT_DLLAZY_OR_NOW |
---|
10673 | # ifdef RTLD_LAZY |
---|
10674 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10675 | # else |
---|
10676 | # ifdef DL_LAZY |
---|
10677 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10678 | # else |
---|
10679 | # ifdef RTLD_NOW |
---|
10680 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10681 | # else |
---|
10682 | # ifdef DL_NOW |
---|
10683 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10684 | # else |
---|
10685 | # define LT_DLLAZY_OR_NOW 0 |
---|
10686 | # endif |
---|
10687 | # endif |
---|
10688 | # endif |
---|
10689 | # endif |
---|
10690 | #endif |
---|
10691 | |
---|
10692 | #ifdef __cplusplus |
---|
10693 | extern "C" void exit (int); |
---|
10694 | #endif |
---|
10695 | |
---|
10696 | void fnord() { int i=42;} |
---|
10697 | int main () |
---|
10698 | { |
---|
10699 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10700 | int status = $lt_dlunknown; |
---|
10701 | |
---|
10702 | if (self) |
---|
10703 | { |
---|
10704 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10705 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10706 | /* dlclose (self); */ |
---|
10707 | } |
---|
10708 | else |
---|
10709 | puts (dlerror ()); |
---|
10710 | |
---|
10711 | exit (status); |
---|
10712 | } |
---|
10713 | EOF |
---|
10714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10715 | (eval $ac_link) 2>&5 |
---|
10716 | ac_status=$? |
---|
10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10718 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10719 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10720 | lt_status=$? |
---|
10721 | case x$lt_status in |
---|
10722 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10723 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10724 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10725 | esac |
---|
10726 | else : |
---|
10727 | # compilation failed |
---|
10728 | lt_cv_dlopen_self_static=no |
---|
10729 | fi |
---|
10730 | fi |
---|
10731 | rm -fr conftest* |
---|
10732 | |
---|
10733 | |
---|
10734 | fi |
---|
10735 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10736 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
10737 | fi |
---|
10738 | |
---|
10739 | CPPFLAGS="$save_CPPFLAGS" |
---|
10740 | LDFLAGS="$save_LDFLAGS" |
---|
10741 | LIBS="$save_LIBS" |
---|
10742 | ;; |
---|
10743 | esac |
---|
10744 | |
---|
10745 | case $lt_cv_dlopen_self in |
---|
10746 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10747 | *) enable_dlopen_self=unknown ;; |
---|
10748 | esac |
---|
10749 | |
---|
10750 | case $lt_cv_dlopen_self_static in |
---|
10751 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10752 | *) enable_dlopen_self_static=unknown ;; |
---|
10753 | esac |
---|
10754 | fi |
---|
10755 | |
---|
10756 | |
---|
10757 | # Report which library types will actually be built |
---|
10758 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
10759 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
10760 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
10761 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
10762 | |
---|
10763 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
10764 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
10765 | test "$can_build_shared" = "no" && enable_shared=no |
---|
10766 | |
---|
10767 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
10768 | # are all built from PIC. |
---|
10769 | case $host_os in |
---|
10770 | aix3*) |
---|
10771 | test "$enable_shared" = yes && enable_static=no |
---|
10772 | if test -n "$RANLIB"; then |
---|
10773 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
10774 | postinstall_cmds='$RANLIB $lib' |
---|
10775 | fi |
---|
10776 | ;; |
---|
10777 | |
---|
10778 | aix4* | aix5*) |
---|
10779 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
10780 | test "$enable_shared" = yes && enable_static=no |
---|
10781 | fi |
---|
10782 | ;; |
---|
10783 | esac |
---|
10784 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
10785 | echo "${ECHO_T}$enable_shared" >&6 |
---|
10786 | |
---|
10787 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
10788 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >& |
---|