]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
1cf3d07d SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
953ff289 DN |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
397 | ||
398 | exec 6>&1 | |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
403 | ac_default_prefix=/usr/local | |
404 | ac_config_libobj_dir=. | |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
411 | # Maximum number of lines to put in a shell here document. | |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
416 | # Identity of this package. | |
417 | PACKAGE_NAME='GNU OpenMP Runtime Library' | |
418 | PACKAGE_TARNAME='libgomp' | |
419 | PACKAGE_VERSION='1.0' | |
420 | PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' | |
421 | PACKAGE_BUGREPORT='' | |
422 | ||
423 | # Factoring default headers for most tests. | |
424 | ac_includes_default="\ | |
425 | #include <stdio.h> | |
426 | #if HAVE_SYS_TYPES_H | |
427 | # include <sys/types.h> | |
428 | #endif | |
429 | #if HAVE_SYS_STAT_H | |
430 | # include <sys/stat.h> | |
431 | #endif | |
432 | #if STDC_HEADERS | |
433 | # include <stdlib.h> | |
434 | # include <stddef.h> | |
435 | #else | |
436 | # if HAVE_STDLIB_H | |
437 | # include <stdlib.h> | |
438 | # endif | |
439 | #endif | |
440 | #if HAVE_STRING_H | |
441 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
442 | # include <memory.h> | |
443 | # endif | |
444 | # include <string.h> | |
445 | #endif | |
446 | #if HAVE_STRINGS_H | |
447 | # include <strings.h> | |
448 | #endif | |
449 | #if HAVE_INTTYPES_H | |
450 | # include <inttypes.h> | |
451 | #else | |
452 | # if HAVE_STDINT_H | |
453 | # include <stdint.h> | |
454 | # endif | |
455 | #endif | |
456 | #if HAVE_UNISTD_H | |
457 | # include <unistd.h> | |
458 | #endif" | |
459 | ||
6b4a97ed | 460 | 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 GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS' |
953ff289 | 461 | ac_subst_files='' |
18c04407 | 462 | ac_pwd=`pwd` |
953ff289 DN |
463 | |
464 | # Initialize some variables set by options. | |
465 | ac_init_help= | |
466 | ac_init_version=false | |
467 | # The variables have the same names as the options, with | |
468 | # dashes changed to underlines. | |
469 | cache_file=/dev/null | |
470 | exec_prefix=NONE | |
471 | no_create= | |
472 | no_recursion= | |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
480 | verbose= | |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
483 | ||
484 | # Installation directory options. | |
485 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
486 | # and all the variables that are supposed to be based on exec_prefix | |
487 | # by default will actually change. | |
488 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
489 | bindir='${exec_prefix}/bin' | |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
492 | datadir='${prefix}/share' | |
493 | sysconfdir='${prefix}/etc' | |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
496 | libdir='${exec_prefix}/lib' | |
497 | includedir='${prefix}/include' | |
498 | oldincludedir='/usr/include' | |
499 | infodir='${prefix}/info' | |
500 | mandir='${prefix}/man' | |
501 | ||
502 | ac_prev= | |
503 | for ac_option | |
504 | do | |
505 | # If the previous option needs an argument, assign it. | |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
513 | ||
514 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
515 | ||
516 | case $ac_option in | |
517 | ||
518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
519 | ac_prev=bindir ;; | |
520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
521 | bindir=$ac_optarg ;; | |
522 | ||
523 | -build | --build | --buil | --bui | --bu) | |
524 | ac_prev=build_alias ;; | |
525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
526 | build_alias=$ac_optarg ;; | |
527 | ||
528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
530 | ac_prev=cache_file ;; | |
531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
533 | cache_file=$ac_optarg ;; | |
534 | ||
535 | --config-cache | -C) | |
536 | cache_file=config.cache ;; | |
537 | ||
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
542 | datadir=$ac_optarg ;; | |
543 | ||
544 | -disable-* | --disable-*) | |
545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
546 | # Reject names that are not valid shell variable names. | |
547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
549 | { (exit 1); exit 1; }; } | |
550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
551 | eval "enable_$ac_feature=no" ;; | |
552 | ||
553 | -enable-* | --enable-*) | |
554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
555 | # Reject names that are not valid shell variable names. | |
556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
558 | { (exit 1); exit 1; }; } | |
559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
560 | case $ac_option in | |
561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
562 | *) ac_optarg=yes ;; | |
563 | esac | |
564 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
565 | ||
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
573 | exec_prefix=$ac_optarg ;; | |
574 | ||
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
579 | -help | --help | --hel | --he | -h) | |
580 | ac_init_help=long ;; | |
581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
582 | ac_init_help=recursive ;; | |
583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
584 | ac_init_help=short ;; | |
585 | ||
586 | -host | --host | --hos | --ho) | |
587 | ac_prev=host_alias ;; | |
588 | -host=* | --host=* | --hos=* | --ho=*) | |
589 | host_alias=$ac_optarg ;; | |
590 | ||
591 | -includedir | --includedir | --includedi | --included | --include \ | |
592 | | --includ | --inclu | --incl | --inc) | |
593 | ac_prev=includedir ;; | |
594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
595 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
596 | includedir=$ac_optarg ;; | |
597 | ||
598 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
599 | ac_prev=infodir ;; | |
600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
601 | infodir=$ac_optarg ;; | |
602 | ||
603 | -libdir | --libdir | --libdi | --libd) | |
604 | ac_prev=libdir ;; | |
605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
606 | libdir=$ac_optarg ;; | |
607 | ||
608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
609 | | --libexe | --libex | --libe) | |
610 | ac_prev=libexecdir ;; | |
611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
612 | | --libexe=* | --libex=* | --libe=*) | |
613 | libexecdir=$ac_optarg ;; | |
614 | ||
615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
616 | | --localstate | --localstat | --localsta | --localst \ | |
617 | | --locals | --local | --loca | --loc | --lo) | |
618 | ac_prev=localstatedir ;; | |
619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
622 | localstatedir=$ac_optarg ;; | |
623 | ||
624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
625 | ac_prev=mandir ;; | |
626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
627 | mandir=$ac_optarg ;; | |
628 | ||
629 | -nfp | --nfp | --nf) | |
630 | # Obsolete; use --without-fp. | |
631 | with_fp=no ;; | |
632 | ||
633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
634 | | --no-cr | --no-c | -n) | |
635 | no_create=yes ;; | |
636 | ||
637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
639 | no_recursion=yes ;; | |
640 | ||
641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
643 | | --oldin | --oldi | --old | --ol | --o) | |
644 | ac_prev=oldincludedir ;; | |
645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
648 | oldincludedir=$ac_optarg ;; | |
649 | ||
650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
651 | ac_prev=prefix ;; | |
652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
653 | prefix=$ac_optarg ;; | |
654 | ||
655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
656 | | --program-pre | --program-pr | --program-p) | |
657 | ac_prev=program_prefix ;; | |
658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
660 | program_prefix=$ac_optarg ;; | |
661 | ||
662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
663 | | --program-suf | --program-su | --program-s) | |
664 | ac_prev=program_suffix ;; | |
665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
667 | program_suffix=$ac_optarg ;; | |
668 | ||
669 | -program-transform-name | --program-transform-name \ | |
670 | | --program-transform-nam | --program-transform-na \ | |
671 | | --program-transform-n | --program-transform- \ | |
672 | | --program-transform | --program-transfor \ | |
673 | | --program-transfo | --program-transf \ | |
674 | | --program-trans | --program-tran \ | |
675 | | --progr-tra | --program-tr | --program-t) | |
676 | ac_prev=program_transform_name ;; | |
677 | -program-transform-name=* | --program-transform-name=* \ | |
678 | | --program-transform-nam=* | --program-transform-na=* \ | |
679 | | --program-transform-n=* | --program-transform-=* \ | |
680 | | --program-transform=* | --program-transfor=* \ | |
681 | | --program-transfo=* | --program-transf=* \ | |
682 | | --program-trans=* | --program-tran=* \ | |
683 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
684 | program_transform_name=$ac_optarg ;; | |
685 | ||
686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
687 | | -silent | --silent | --silen | --sile | --sil) | |
688 | silent=yes ;; | |
689 | ||
690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
691 | ac_prev=sbindir ;; | |
692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
693 | | --sbi=* | --sb=*) | |
694 | sbindir=$ac_optarg ;; | |
695 | ||
696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
698 | | --sharedst | --shareds | --shared | --share | --shar \ | |
699 | | --sha | --sh) | |
700 | ac_prev=sharedstatedir ;; | |
701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
704 | | --sha=* | --sh=*) | |
705 | sharedstatedir=$ac_optarg ;; | |
706 | ||
707 | -site | --site | --sit) | |
708 | ac_prev=site ;; | |
709 | -site=* | --site=* | --sit=*) | |
710 | site=$ac_optarg ;; | |
711 | ||
712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
713 | ac_prev=srcdir ;; | |
714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
715 | srcdir=$ac_optarg ;; | |
716 | ||
717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
718 | | --syscon | --sysco | --sysc | --sys | --sy) | |
719 | ac_prev=sysconfdir ;; | |
720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
722 | sysconfdir=$ac_optarg ;; | |
723 | ||
724 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
725 | ac_prev=target_alias ;; | |
726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
727 | target_alias=$ac_optarg ;; | |
728 | ||
729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
730 | verbose=yes ;; | |
731 | ||
732 | -version | --version | --versio | --versi | --vers | -V) | |
733 | ac_init_version=: ;; | |
734 | ||
735 | -with-* | --with-*) | |
736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
737 | # Reject names that are not valid shell variable names. | |
738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
740 | { (exit 1); exit 1; }; } | |
741 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
742 | case $ac_option in | |
743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
744 | *) ac_optarg=yes ;; | |
745 | esac | |
746 | eval "with_$ac_package='$ac_optarg'" ;; | |
747 | ||
748 | -without-* | --without-*) | |
749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
750 | # Reject names that are not valid shell variable names. | |
751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
753 | { (exit 1); exit 1; }; } | |
754 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
755 | eval "with_$ac_package=no" ;; | |
756 | ||
757 | --x) | |
758 | # Obsolete; use --with-x. | |
759 | with_x=yes ;; | |
760 | ||
761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
762 | | --x-incl | --x-inc | --x-in | --x-i) | |
763 | ac_prev=x_includes ;; | |
764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
766 | x_includes=$ac_optarg ;; | |
767 | ||
768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
770 | ac_prev=x_libraries ;; | |
771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
773 | x_libraries=$ac_optarg ;; | |
774 | ||
775 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
776 | Try \`$0 --help' for more information." >&2 | |
777 | { (exit 1); exit 1; }; } | |
778 | ;; | |
779 | ||
780 | *=*) | |
781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
782 | # Reject names that are not valid shell variable names. | |
783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
785 | { (exit 1); exit 1; }; } | |
786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
787 | eval "$ac_envvar='$ac_optarg'" | |
788 | export $ac_envvar ;; | |
789 | ||
790 | *) | |
791 | # FIXME: should be removed in autoconf 3.0. | |
792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
796 | ;; | |
797 | ||
798 | esac | |
799 | done | |
800 | ||
801 | if test -n "$ac_prev"; then | |
802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
803 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
804 | { (exit 1); exit 1; }; } | |
805 | fi | |
806 | ||
807 | # Be sure to have absolute paths. | |
808 | for ac_var in exec_prefix prefix | |
809 | do | |
810 | eval ac_val=$`echo $ac_var` | |
811 | case $ac_val in | |
812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
814 | { (exit 1); exit 1; }; };; | |
815 | esac | |
816 | done | |
817 | ||
818 | # Be sure to have absolute paths. | |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
820 | localstatedir libdir includedir oldincludedir infodir mandir | |
821 | do | |
822 | eval ac_val=$`echo $ac_var` | |
823 | case $ac_val in | |
824 | [\\/$]* | ?:[\\/]* ) ;; | |
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
826 | { (exit 1); exit 1; }; };; | |
827 | esac | |
828 | done | |
829 | ||
830 | # There might be people who depend on the old broken behavior: `$host' | |
831 | # used to hold the argument of --host etc. | |
832 | # FIXME: To remove some day. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
836 | ||
837 | # FIXME: To remove some day. | |
838 | if test "x$host_alias" != x; then | |
839 | if test "x$build_alias" = x; then | |
840 | cross_compiling=maybe | |
841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
842 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
843 | elif test "x$build_alias" != "x$host_alias"; then | |
844 | cross_compiling=yes | |
845 | fi | |
846 | fi | |
847 | ||
848 | ac_tool_prefix= | |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
852 | ||
853 | ||
854 | # Find the source files, if location was not specified. | |
855 | if test -z "$srcdir"; then | |
856 | ac_srcdir_defaulted=yes | |
857 | # Try the directory containing this script, then its parent. | |
858 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
860 | X"$0" : 'X\(//\)[^/]' \| \ | |
861 | X"$0" : 'X\(//\)$' \| \ | |
862 | X"$0" : 'X\(/\)' \| \ | |
863 | . : '\(.\)' 2>/dev/null || | |
864 | echo X"$0" | | |
865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
867 | /^X\(\/\/\)$/{ s//\1/; q; } | |
868 | /^X\(\/\).*/{ s//\1/; q; } | |
869 | s/.*/./; q'` | |
870 | srcdir=$ac_confdir | |
1cf3d07d | 871 | if test ! -r $srcdir/$ac_unique_file; then |
953ff289 DN |
872 | srcdir=.. |
873 | fi | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
1cf3d07d | 877 | if test ! -r $srcdir/$ac_unique_file; then |
953ff289 DN |
878 | if test "$ac_srcdir_defaulted" = yes; then |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
880 | { (exit 1); exit 1; }; } | |
881 | else | |
882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
883 | { (exit 1); exit 1; }; } | |
884 | fi | |
885 | fi | |
1cf3d07d | 886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
953ff289 DN |
887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
888 | { (exit 1); exit 1; }; } | |
889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
1cf3d07d SE |
902 | ac_env_CPP_set=${CPP+set} |
903 | ac_env_CPP_value=$CPP | |
904 | ac_cv_env_CPP_set=${CPP+set} | |
905 | ac_cv_env_CPP_value=$CPP | |
906 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
907 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
908 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
909 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
953ff289 DN |
910 | ac_env_FC_set=${FC+set} |
911 | ac_env_FC_value=$FC | |
912 | ac_cv_env_FC_set=${FC+set} | |
913 | ac_cv_env_FC_value=$FC | |
914 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
915 | ac_env_FCFLAGS_value=$FCFLAGS | |
916 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
917 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
918 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
919 | ac_env_LDFLAGS_value=$LDFLAGS | |
920 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
921 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
953ff289 DN |
922 | |
923 | # | |
924 | # Report the --help message. | |
925 | # | |
926 | if test "$ac_init_help" = "long"; then | |
927 | # Omit some internal or obsolete options to make the list less imposing. | |
928 | # This message is too long to be a string in the A/UX 3.1 sh. | |
929 | cat <<_ACEOF | |
930 | \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems. | |
931 | ||
932 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
933 | ||
934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
935 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
936 | ||
937 | Defaults for the options are specified in brackets. | |
938 | ||
939 | Configuration: | |
940 | -h, --help display this help and exit | |
941 | --help=short display options specific to this package | |
942 | --help=recursive display the short help of all the included packages | |
943 | -V, --version display version information and exit | |
944 | -q, --quiet, --silent do not print \`checking...' messages | |
945 | --cache-file=FILE cache test results in FILE [disabled] | |
946 | -C, --config-cache alias for \`--cache-file=config.cache' | |
947 | -n, --no-create do not create output files | |
948 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
949 | ||
950 | _ACEOF | |
951 | ||
952 | cat <<_ACEOF | |
953 | Installation directories: | |
954 | --prefix=PREFIX install architecture-independent files in PREFIX | |
955 | [$ac_default_prefix] | |
956 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
957 | [PREFIX] | |
958 | ||
959 | By default, \`make install' will install all the files in | |
960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
962 | for instance \`--prefix=\$HOME'. | |
963 | ||
964 | For better control, use the options below. | |
965 | ||
966 | Fine tuning of the installation directories: | |
967 | --bindir=DIR user executables [EPREFIX/bin] | |
968 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
969 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
970 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
971 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
972 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
973 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
974 | --libdir=DIR object code libraries [EPREFIX/lib] | |
975 | --includedir=DIR C header files [PREFIX/include] | |
976 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
977 | --infodir=DIR info documentation [PREFIX/info] | |
978 | --mandir=DIR man documentation [PREFIX/man] | |
979 | _ACEOF | |
980 | ||
981 | cat <<\_ACEOF | |
982 | ||
983 | Program names: | |
984 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
985 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
986 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
987 | ||
988 | System types: | |
989 | --build=BUILD configure for building on BUILD [guessed] | |
990 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
991 | --target=TARGET configure for building compilers for TARGET [HOST] | |
992 | _ACEOF | |
993 | fi | |
994 | ||
995 | if test -n "$ac_init_help"; then | |
996 | case $ac_init_help in | |
997 | short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";; | |
998 | esac | |
999 | cat <<\_ACEOF | |
1000 | ||
1001 | Optional Features: | |
1002 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1003 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1004 | --enable-version-specific-runtime-libs | |
1005 | Specify that runtime libraries should be installed | |
1006 | in a compiler-specific directory [default=no] | |
627ab4b8 TT |
1007 | --enable-generated-files-in-srcdir |
1008 | put copies of generated files in source dir intended | |
1009 | for creating source tarballs for users without | |
1010 | texinfo bison or flex. [default=no] | |
953ff289 DN |
1011 | --enable-multilib build many library versions (default) |
1012 | --disable-dependency-tracking speeds up one-time build | |
1013 | --enable-dependency-tracking do not reject slow dependency extractors | |
1cf3d07d SE |
1014 | --enable-shared[=PKGS] |
1015 | build shared libraries [default=yes] | |
1016 | --enable-static[=PKGS] | |
1017 | build static libraries [default=yes] | |
1018 | --enable-fast-install[=PKGS] | |
1019 | optimize for fast installation [default=yes] | |
953ff289 | 1020 | --disable-libtool-lock avoid locking (might break parallel builds) |
c41303c6 RH |
1021 | --enable-maintainer-mode enable make rules and dependencies not useful |
1022 | (and sometimes confusing) to the casual installer | |
0f3e711e JJ |
1023 | --enable-linux-futex use the Linux futex system call |
1024 | [default=default] | |
2fb31455 | 1025 | --enable-tls Use thread-local storage [default=yes] |
953ff289 DN |
1026 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1027 | [default=yes] | |
1028 | ||
1029 | Optional Packages: | |
1030 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1031 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1cf3d07d SE |
1032 | --with-pic try to use only PIC/non-PIC objects [default=use |
1033 | both] | |
1034 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
953ff289 DN |
1035 | |
1036 | Some influential environment variables: | |
1037 | CC C compiler command | |
1038 | CFLAGS C compiler flags | |
1039 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1040 | nonstandard directory <lib dir> | |
1041 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1042 | headers in a nonstandard directory <include dir> | |
1cf3d07d | 1043 | CPP C preprocessor |
953ff289 DN |
1044 | FC Fortran compiler command |
1045 | FCFLAGS Fortran compiler flags | |
953ff289 DN |
1046 | |
1047 | Use these variables to override the choices made by `configure' or to help | |
1048 | it to find libraries and programs with nonstandard names/locations. | |
1049 | ||
1050 | _ACEOF | |
1051 | fi | |
1052 | ||
1053 | if test "$ac_init_help" = "recursive"; then | |
1054 | # If there are subdirs, report their specific --help. | |
1055 | ac_popdir=`pwd` | |
1056 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1057 | test -d $ac_dir || continue | |
1058 | ac_builddir=. | |
1059 | ||
1060 | if test "$ac_dir" != .; then | |
1061 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1062 | # A "../" for each directory in $ac_dir_suffix. | |
1063 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1064 | else | |
1065 | ac_dir_suffix= ac_top_builddir= | |
1066 | fi | |
1067 | ||
1068 | case $srcdir in | |
1069 | .) # No --srcdir option. We are building in place. | |
1070 | ac_srcdir=. | |
1071 | if test -z "$ac_top_builddir"; then | |
1072 | ac_top_srcdir=. | |
1073 | else | |
1074 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1075 | fi ;; | |
1076 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1077 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1078 | ac_top_srcdir=$srcdir ;; | |
1079 | *) # Relative path. | |
1080 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1081 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1082 | esac | |
1083 | ||
1084 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1085 | # the directories may not exist. | |
1086 | case `pwd` in | |
1087 | .) ac_abs_builddir="$ac_dir";; | |
1088 | *) | |
1089 | case "$ac_dir" in | |
1090 | .) ac_abs_builddir=`pwd`;; | |
1091 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1092 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1093 | esac;; | |
1094 | esac | |
1095 | case $ac_abs_builddir in | |
1096 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1097 | *) | |
1098 | case ${ac_top_builddir}. in | |
1099 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1100 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1101 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1102 | esac;; | |
1103 | esac | |
1104 | case $ac_abs_builddir in | |
1105 | .) ac_abs_srcdir=$ac_srcdir;; | |
1106 | *) | |
1107 | case $ac_srcdir in | |
1108 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1110 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1111 | esac;; | |
1112 | esac | |
1113 | case $ac_abs_builddir in | |
1114 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1115 | *) | |
1116 | case $ac_top_srcdir in | |
1117 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1118 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1119 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1120 | esac;; | |
1121 | esac | |
1122 | ||
1123 | cd $ac_dir | |
1124 | # Check for guested configure; otherwise get Cygnus style configure. | |
1125 | if test -f $ac_srcdir/configure.gnu; then | |
1126 | echo | |
1127 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1128 | elif test -f $ac_srcdir/configure; then | |
1129 | echo | |
1130 | $SHELL $ac_srcdir/configure --help=recursive | |
1131 | elif test -f $ac_srcdir/configure.ac || | |
1132 | test -f $ac_srcdir/configure.in; then | |
1133 | echo | |
1134 | $ac_configure --help | |
1135 | else | |
1136 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1137 | fi | |
d349482e | 1138 | cd $ac_popdir |
953ff289 DN |
1139 | done |
1140 | fi | |
1141 | ||
1142 | test -n "$ac_init_help" && exit 0 | |
1143 | if $ac_init_version; then | |
1144 | cat <<\_ACEOF | |
1145 | GNU OpenMP Runtime Library configure 1.0 | |
1146 | generated by GNU Autoconf 2.59 | |
1147 | ||
1148 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1149 | This configure script is free software; the Free Software Foundation | |
1150 | gives unlimited permission to copy, distribute and modify it. | |
1151 | _ACEOF | |
1152 | exit 0 | |
1153 | fi | |
1154 | exec 5>config.log | |
1155 | cat >&5 <<_ACEOF | |
1156 | This file contains any messages produced by compilers while | |
1157 | running configure, to aid debugging if configure makes a mistake. | |
1158 | ||
1159 | It was created by GNU OpenMP Runtime Library $as_me 1.0, which was | |
1160 | generated by GNU Autoconf 2.59. Invocation command line was | |
1161 | ||
1162 | $ $0 $@ | |
1163 | ||
1164 | _ACEOF | |
1165 | { | |
1166 | cat <<_ASUNAME | |
1167 | ## --------- ## | |
1168 | ## Platform. ## | |
1169 | ## --------- ## | |
1170 | ||
1171 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1172 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1173 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1174 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1175 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1176 | ||
1177 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1178 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1179 | ||
1180 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1181 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1182 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1183 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1184 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1185 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1186 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1187 | ||
1188 | _ASUNAME | |
1189 | ||
1190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1191 | for as_dir in $PATH | |
1192 | do | |
1193 | IFS=$as_save_IFS | |
1194 | test -z "$as_dir" && as_dir=. | |
1195 | echo "PATH: $as_dir" | |
1196 | done | |
1197 | ||
1198 | } >&5 | |
1199 | ||
1200 | cat >&5 <<_ACEOF | |
1201 | ||
1202 | ||
1203 | ## ----------- ## | |
1204 | ## Core tests. ## | |
1205 | ## ----------- ## | |
1206 | ||
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | # Keep a trace of the command line. | |
1211 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1212 | # Strip out --silent because we don't want to record it for future runs. | |
1213 | # Also quote any args containing shell meta-characters. | |
1214 | # Make two passes to allow for proper duplicate-argument suppression. | |
1215 | ac_configure_args= | |
1216 | ac_configure_args0= | |
1217 | ac_configure_args1= | |
1218 | ac_sep= | |
1219 | ac_must_keep_next=false | |
1220 | for ac_pass in 1 2 | |
1221 | do | |
1222 | for ac_arg | |
1223 | do | |
1224 | case $ac_arg in | |
1225 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1226 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1227 | | -silent | --silent | --silen | --sile | --sil) | |
1228 | continue ;; | |
1229 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1230 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1231 | esac | |
1232 | case $ac_pass in | |
1233 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1234 | 2) | |
1235 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1236 | if test $ac_must_keep_next = true; then | |
1237 | ac_must_keep_next=false # Got value, back to normal. | |
1238 | else | |
1239 | case $ac_arg in | |
1240 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1241 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1242 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1243 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1244 | case "$ac_configure_args0 " in | |
1245 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1246 | esac | |
1247 | ;; | |
1248 | -* ) ac_must_keep_next=true ;; | |
1249 | esac | |
1250 | fi | |
1251 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1252 | # Get rid of the leading space. | |
1253 | ac_sep=" " | |
1254 | ;; | |
1255 | esac | |
1256 | done | |
1257 | done | |
1258 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1259 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1260 | ||
1261 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1262 | # config.log. We remove comments because anyway the quotes in there | |
1263 | # would cause problems or look ugly. | |
1264 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1265 | # such as our DU 5.0 friend, will then `close' the trap. | |
1266 | trap 'exit_status=$? | |
1267 | # Save into config.log some information that might help in debugging. | |
1268 | { | |
1269 | echo | |
1270 | ||
1271 | cat <<\_ASBOX | |
1272 | ## ---------------- ## | |
1273 | ## Cache variables. ## | |
1274 | ## ---------------- ## | |
1275 | _ASBOX | |
1276 | echo | |
1277 | # The following way of writing the cache mishandles newlines in values, | |
1278 | { | |
1279 | (set) 2>&1 | | |
1280 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1281 | *ac_space=\ *) | |
1282 | sed -n \ | |
1283 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1284 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1285 | ;; | |
1286 | *) | |
1287 | sed -n \ | |
1288 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1289 | ;; | |
1290 | esac; | |
1291 | } | |
1292 | echo | |
1293 | ||
1294 | cat <<\_ASBOX | |
1295 | ## ----------------- ## | |
1296 | ## Output variables. ## | |
1297 | ## ----------------- ## | |
1298 | _ASBOX | |
1299 | echo | |
1300 | for ac_var in $ac_subst_vars | |
1301 | do | |
1302 | eval ac_val=$`echo $ac_var` | |
1303 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1304 | done | sort | |
1305 | echo | |
1306 | ||
1307 | if test -n "$ac_subst_files"; then | |
1308 | cat <<\_ASBOX | |
1309 | ## ------------- ## | |
1310 | ## Output files. ## | |
1311 | ## ------------- ## | |
1312 | _ASBOX | |
1313 | echo | |
1314 | for ac_var in $ac_subst_files | |
1315 | do | |
1316 | eval ac_val=$`echo $ac_var` | |
1317 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1318 | done | sort | |
1319 | echo | |
1320 | fi | |
1321 | ||
1322 | if test -s confdefs.h; then | |
1323 | cat <<\_ASBOX | |
1324 | ## ----------- ## | |
1325 | ## confdefs.h. ## | |
1326 | ## ----------- ## | |
1327 | _ASBOX | |
1328 | echo | |
1329 | sed "/^$/d" confdefs.h | sort | |
1330 | echo | |
1331 | fi | |
1332 | test "$ac_signal" != 0 && | |
1333 | echo "$as_me: caught signal $ac_signal" | |
1334 | echo "$as_me: exit $exit_status" | |
1335 | } >&5 | |
1336 | rm -f core *.core && | |
1337 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1338 | exit $exit_status | |
1339 | ' 0 | |
1340 | for ac_signal in 1 2 13 15; do | |
1341 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1342 | done | |
1343 | ac_signal=0 | |
1344 | ||
1345 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1346 | rm -rf conftest* confdefs.h | |
1347 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1348 | echo >confdefs.h | |
1349 | ||
1350 | # Predefined preprocessor variables. | |
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | cat >>confdefs.h <<_ACEOF | |
1368 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1369 | _ACEOF | |
1370 | ||
1371 | ||
1372 | cat >>confdefs.h <<_ACEOF | |
1373 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1374 | _ACEOF | |
1375 | ||
1376 | ||
1377 | # Let the site file select an alternate cache file if it wants to. | |
1378 | # Prefer explicitly selected file to automatically selected ones. | |
1379 | if test -z "$CONFIG_SITE"; then | |
1380 | if test "x$prefix" != xNONE; then | |
1381 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1382 | else | |
1383 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1384 | fi | |
1385 | fi | |
1386 | for ac_site_file in $CONFIG_SITE; do | |
1387 | if test -r "$ac_site_file"; then | |
1388 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1389 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1390 | sed 's/^/| /' "$ac_site_file" >&5 | |
1391 | . "$ac_site_file" | |
1392 | fi | |
1393 | done | |
1394 | ||
1395 | if test -r "$cache_file"; then | |
1396 | # Some versions of bash will fail to source /dev/null (special | |
1397 | # files actually), so we avoid doing that. | |
1398 | if test -f "$cache_file"; then | |
1399 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1400 | echo "$as_me: loading cache $cache_file" >&6;} | |
1401 | case $cache_file in | |
1402 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1403 | *) . ./$cache_file;; | |
1404 | esac | |
1405 | fi | |
1406 | else | |
1407 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1408 | echo "$as_me: creating cache $cache_file" >&6;} | |
1409 | >$cache_file | |
1410 | fi | |
1411 | ||
1412 | # Check that the precious variables saved in the cache have kept the same | |
1413 | # value. | |
1414 | ac_cache_corrupted=false | |
1415 | for ac_var in `(set) 2>&1 | | |
1416 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1417 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1418 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1419 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1420 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1421 | case $ac_old_set,$ac_new_set in | |
1422 | set,) | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1425 | ac_cache_corrupted=: ;; | |
1426 | ,set) | |
1427 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1428 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1429 | ac_cache_corrupted=: ;; | |
1430 | ,);; | |
1431 | *) | |
1432 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
deb984e6 PB |
1433 | # differences in whitespace do not lead to failure. |
1434 | ac_old_val_w=`echo x $ac_old_val` | |
1435 | ac_new_val_w=`echo x $ac_new_val` | |
1436 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1437 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
953ff289 | 1438 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
deb984e6 PB |
1439 | ac_cache_corrupted=: |
1440 | else | |
1441 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1442 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1443 | eval $ac_var=\$ac_old_val | |
1444 | fi | |
1445 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1446 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1447 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1448 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
953ff289 DN |
1449 | fi;; |
1450 | esac | |
1451 | # Pass precious variables to config.status. | |
1452 | if test "$ac_new_set" = set; then | |
1453 | case $ac_new_val in | |
1454 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1455 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1456 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1457 | esac | |
1458 | case " $ac_configure_args " in | |
1459 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1460 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1461 | esac | |
1462 | fi | |
1463 | done | |
1464 | if $ac_cache_corrupted; then | |
18c04407 RW |
1465 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1466 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
953ff289 DN |
1467 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1468 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1469 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1470 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1471 | { (exit 1); exit 1; }; } | |
1472 | fi | |
1473 | ||
1474 | ac_ext=c | |
1475 | ac_cpp='$CPP $CPPFLAGS' | |
1476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
18c04407 RW |
1502 | |
1503 | ||
1504 | ||
953ff289 DN |
1505 | |
1506 | ||
1507 | ||
1508 | ||
1509 | ac_config_headers="$ac_config_headers config.h" | |
1510 | ||
1511 | ||
1512 | # ------- | |
1513 | # Options | |
1514 | # ------- | |
1515 | ||
1516 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1517 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1518 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1519 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1520 | enableval="$enable_version_specific_runtime_libs" | |
1521 | ||
1522 | case "$enableval" in | |
1523 | yes|no) ;; | |
1524 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5 | |
1525 | echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;} | |
1526 | { (exit 1); exit 1; }; } ;; | |
1527 | esac | |
1528 | ||
1529 | else | |
1530 | enable_version_specific_runtime_libs=no | |
1531 | fi; | |
1532 | ||
1533 | echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5 | |
1534 | echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6 | |
1535 | ||
627ab4b8 TT |
1536 | # We would like our source tree to be readonly. However when releases or |
1537 | # pre-releases are generated, the flex/bison generated files as well as the | |
1538 | # various formats of manuals need to be included along with the rest of the | |
1539 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
1540 | # just that. | |
1541 | echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5 | |
1542 | echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6 | |
1543 | # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. | |
1544 | if test "${enable_generated_files_in_srcdir+set}" = set; then | |
1545 | enableval="$enable_generated_files_in_srcdir" | |
1546 | ||
1547 | case "$enableval" in | |
1548 | yes|no) ;; | |
1549 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5 | |
1550 | echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;} | |
1551 | { (exit 1); exit 1; }; } ;; | |
1552 | esac | |
1553 | ||
1554 | else | |
1555 | enable_generated_files_in_srcdir=no | |
1556 | fi; | |
1557 | ||
1558 | echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5 | |
1559 | echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6 | |
1560 | ||
1561 | ||
1562 | if test "$enable_generated_files_in_srcdir" = yes; then | |
1563 | GENINSRC_TRUE= | |
1564 | GENINSRC_FALSE='#' | |
1565 | else | |
1566 | GENINSRC_TRUE='#' | |
1567 | GENINSRC_FALSE= | |
1568 | fi | |
1569 | ||
1570 | ||
1571 | ||
953ff289 DN |
1572 | # ------- |
1573 | # ------- | |
1574 | ||
1575 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1576 | # | |
1577 | # You will slowly go insane if you do not grok the following fact: when | |
1578 | # building this library, the top-level /target/ becomes the library's /host/. | |
1579 | # | |
1580 | # configure then causes --target to default to --host, exactly like any | |
1581 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1582 | # always be the same. This makes sense both for native and cross compilers | |
1583 | # just think about it for a little while. :-) | |
1584 | # | |
1585 | # Also, if this library is being configured as part of a cross compiler, the | |
1586 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1587 | # | |
1588 | # Do not delete or change the following two lines. For why, see | |
1589 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1590 | ac_aux_dir= | |
1591 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1592 | if test -f $ac_dir/install-sh; then | |
1593 | ac_aux_dir=$ac_dir | |
1594 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1595 | break | |
1596 | elif test -f $ac_dir/install.sh; then | |
1597 | ac_aux_dir=$ac_dir | |
1598 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1599 | break | |
1600 | elif test -f $ac_dir/shtool; then | |
1601 | ac_aux_dir=$ac_dir | |
1602 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1603 | break | |
1604 | fi | |
1605 | done | |
1606 | if test -z "$ac_aux_dir"; then | |
1607 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1608 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1609 | { (exit 1); exit 1; }; } | |
1610 | fi | |
1611 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1612 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1613 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1614 | ||
1615 | # Make sure we can run config.sub. | |
1616 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1617 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1618 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1619 | { (exit 1); exit 1; }; } | |
1620 | ||
1621 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1622 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1623 | if test "${ac_cv_build+set}" = set; then | |
1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1625 | else | |
1626 | ac_cv_build_alias=$build_alias | |
1627 | test -z "$ac_cv_build_alias" && | |
1628 | ac_cv_build_alias=`$ac_config_guess` | |
1629 | test -z "$ac_cv_build_alias" && | |
1630 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1631 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1632 | { (exit 1); exit 1; }; } | |
1633 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1635 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1636 | { (exit 1); exit 1; }; } | |
1637 | ||
1638 | fi | |
1639 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1640 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1641 | build=$ac_cv_build | |
1642 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1643 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1644 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1645 | ||
1646 | ||
1647 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1648 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1649 | if test "${ac_cv_host+set}" = set; then | |
1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1651 | else | |
1652 | ac_cv_host_alias=$host_alias | |
1653 | test -z "$ac_cv_host_alias" && | |
1654 | ac_cv_host_alias=$ac_cv_build_alias | |
1655 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1656 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1657 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1658 | { (exit 1); exit 1; }; } | |
1659 | ||
1660 | fi | |
1661 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1662 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1663 | host=$ac_cv_host | |
1664 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1665 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1666 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1667 | ||
1668 | ||
1669 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1670 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1671 | if test "${ac_cv_target+set}" = set; then | |
1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1673 | else | |
1674 | ac_cv_target_alias=$target_alias | |
1675 | test "x$ac_cv_target_alias" = "x" && | |
1676 | ac_cv_target_alias=$ac_cv_host_alias | |
1677 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1678 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1679 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1680 | { (exit 1); exit 1; }; } | |
1681 | ||
1682 | fi | |
1683 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1684 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1685 | target=$ac_cv_target | |
1686 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1687 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1688 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1689 | ||
1690 | ||
1691 | # The aliases save the names the user supplied, while $host etc. | |
1692 | # will get canonicalized. | |
1693 | test -n "$target_alias" && | |
1694 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1695 | NONENONEs,x,x, && | |
1696 | program_prefix=${target_alias}- | |
1697 | target_alias=${target_alias-$host_alias} | |
1698 | ||
1699 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1700 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1701 | # 1.9.0: minimum required version | |
1702 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1703 | # of other PACKAGE_* variables will, however, and there's nothing | |
1704 | # we can do about that; they come from AC_INIT). | |
1705 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1706 | # file in the top srcdir, etc, etc), so stop complaining. | |
953ff289 DN |
1707 | # -Wall: turns on all automake warnings... |
1708 | # -Wno-portability: ...except this one, since GNU make is required. | |
1709 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
1710 | am__api_version="1.9" | |
1711 | # Find a good install program. We prefer a C program (faster), | |
1712 | # so one script is as good as another. But avoid the broken or | |
1713 | # incompatible versions: | |
1714 | # SysV /etc/install, /usr/sbin/install | |
1715 | # SunOS /usr/etc/install | |
1716 | # IRIX /sbin/install | |
1717 | # AIX /bin/install | |
1718 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1719 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1720 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1721 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1722 | # OS/2's system install, which has a completely different semantic | |
1723 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 1724 | # Reject install programs that cannot install multiple files. |
953ff289 DN |
1725 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1726 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1727 | if test -z "$INSTALL"; then | |
1728 | if test "${ac_cv_path_install+set}" = set; then | |
1729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1730 | else | |
1731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1732 | for as_dir in $PATH | |
1733 | do | |
1734 | IFS=$as_save_IFS | |
1735 | test -z "$as_dir" && as_dir=. | |
1736 | # Account for people who put trailing slashes in PATH elements. | |
1737 | case $as_dir/ in | |
1738 | ./ | .// | /cC/* | \ | |
1739 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1740 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1741 | /usr/ucb/* ) ;; | |
1742 | *) | |
1743 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1744 | # Don't use installbsd from OSF since it installs stuff as root | |
1745 | # by default. | |
1746 | for ac_prog in ginstall scoinst install; do | |
1747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1748 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1749 | if test $ac_prog = install && | |
1750 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1751 | # AIX install. It has an incompatible calling convention. | |
1752 | : | |
1753 | elif test $ac_prog = install && | |
1754 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1755 | # program-specific install script used by HP pwplus--don't use. | |
1756 | : | |
1757 | else | |
38d24731 RW |
1758 | rm -rf conftest.one conftest.two conftest.dir |
1759 | echo one > conftest.one | |
1760 | echo two > conftest.two | |
1761 | mkdir conftest.dir | |
1762 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1763 | test -s conftest.one && test -s conftest.two && | |
1764 | test -s conftest.dir/conftest.one && | |
1765 | test -s conftest.dir/conftest.two | |
1766 | then | |
1767 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1768 | break 3 | |
1769 | fi | |
953ff289 DN |
1770 | fi |
1771 | fi | |
1772 | done | |
1773 | done | |
1774 | ;; | |
1775 | esac | |
1776 | done | |
1777 | ||
38d24731 | 1778 | rm -rf conftest.one conftest.two conftest.dir |
953ff289 DN |
1779 | |
1780 | fi | |
1781 | if test "${ac_cv_path_install+set}" = set; then | |
1782 | INSTALL=$ac_cv_path_install | |
1783 | else | |
38d24731 RW |
1784 | # As a last resort, use the slow shell script. Don't cache a |
1785 | # value for INSTALL within a source directory, because that will | |
953ff289 | 1786 | # break other packages using the cache if that directory is |
38d24731 | 1787 | # removed, or if the value is a relative name. |
953ff289 DN |
1788 | INSTALL=$ac_install_sh |
1789 | fi | |
1790 | fi | |
1791 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1792 | echo "${ECHO_T}$INSTALL" >&6 | |
1793 | ||
1794 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1795 | # It thinks the first close brace ends the variable substitution. | |
1796 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1797 | ||
1798 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1799 | ||
1800 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1801 | ||
1802 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1803 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1804 | # Just in case | |
1805 | sleep 1 | |
1806 | echo timestamp > conftest.file | |
1807 | # Do `set' in a subshell so we don't clobber the current shell's | |
1808 | # arguments. Must try -L first in case configure is actually a | |
1809 | # symlink; some systems play weird games with the mod time of symlinks | |
1810 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1811 | # directory). | |
1812 | if ( | |
1813 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1814 | if test "$*" = "X"; then | |
1815 | # -L didn't work. | |
1816 | set X `ls -t $srcdir/configure conftest.file` | |
1817 | fi | |
1818 | rm -f conftest.file | |
1819 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1820 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1821 | ||
1822 | # If neither matched, then we have a broken ls. This can happen | |
1823 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1824 | # broken ls alias from the environment. This has actually | |
1825 | # happened. Such a system could not be considered "sane". | |
1826 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1827 | alias in your environment" >&5 | |
1828 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1829 | alias in your environment" >&2;} | |
1830 | { (exit 1); exit 1; }; } | |
1831 | fi | |
1832 | ||
1833 | test "$2" = conftest.file | |
1834 | ) | |
1835 | then | |
1836 | # Ok. | |
1837 | : | |
1838 | else | |
1839 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1840 | Check your system clock" >&5 | |
1841 | echo "$as_me: error: newly created file is older than distributed files! | |
1842 | Check your system clock" >&2;} | |
1843 | { (exit 1); exit 1; }; } | |
1844 | fi | |
1845 | echo "$as_me:$LINENO: result: yes" >&5 | |
1846 | echo "${ECHO_T}yes" >&6 | |
1847 | test "$program_prefix" != NONE && | |
1848 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1849 | # Use a double $ so make ignores it. | |
1850 | test "$program_suffix" != NONE && | |
1851 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1852 | # Double any \ or $. echo might interpret backslashes. | |
1853 | # By default was `s,x,x', remove it if useless. | |
1854 | cat <<\_ACEOF >conftest.sed | |
1855 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1856 | _ACEOF | |
1857 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1858 | rm conftest.sed | |
1859 | ||
1860 | # expand $ac_aux_dir to an absolute path | |
1861 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1862 | ||
1863 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1864 | # Use eval to expand $SHELL | |
1865 | if eval "$MISSING --run true"; then | |
1866 | am_missing_run="$MISSING --run " | |
1867 | else | |
1868 | am_missing_run= | |
1869 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1870 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1871 | fi | |
1872 | ||
1873 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1874 | # We used to keeping the `.' as first argument, in order to | |
1875 | # allow $(mkdir_p) to be used without argument. As in | |
1876 | # $(mkdir_p) $(somedir) | |
1877 | # where $(somedir) is conditionally defined. However this is wrong | |
1878 | # for two reasons: | |
1879 | # 1. if the package is installed by a user who cannot write `.' | |
1880 | # make install will fail, | |
1881 | # 2. the above comment should most certainly read | |
1882 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1883 | # so it does not work when $(somedir) is undefined and | |
1884 | # $(DESTDIR) is not. | |
1885 | # To support the latter case, we have to write | |
1886 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1887 | # so the `.' trick is pointless. | |
1888 | mkdir_p='mkdir -p --' | |
1889 | else | |
1890 | # On NextStep and OpenStep, the `mkdir' command does not | |
1891 | # recognize any option. It will interpret all options as | |
1892 | # directories to create, and then abort because `.' already | |
1893 | # exists. | |
1894 | for d in ./-p ./--version; | |
1895 | do | |
1896 | test -d $d && rmdir $d | |
1897 | done | |
1898 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1899 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1900 | mkdir_p='$(mkinstalldirs)' | |
1901 | else | |
1902 | mkdir_p='$(install_sh) -d' | |
1903 | fi | |
1904 | fi | |
1905 | ||
1906 | for ac_prog in gawk mawk nawk awk | |
1907 | do | |
1908 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1909 | set dummy $ac_prog; ac_word=$2 | |
1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1912 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1914 | else | |
1915 | if test -n "$AWK"; then | |
1916 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1917 | else | |
1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1919 | for as_dir in $PATH | |
1920 | do | |
1921 | IFS=$as_save_IFS | |
1922 | test -z "$as_dir" && as_dir=. | |
1923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1925 | ac_cv_prog_AWK="$ac_prog" | |
1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1927 | break 2 | |
1928 | fi | |
1929 | done | |
1930 | done | |
1931 | ||
1932 | fi | |
1933 | fi | |
1934 | AWK=$ac_cv_prog_AWK | |
1935 | if test -n "$AWK"; then | |
1936 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1937 | echo "${ECHO_T}$AWK" >&6 | |
1938 | else | |
1939 | echo "$as_me:$LINENO: result: no" >&5 | |
1940 | echo "${ECHO_T}no" >&6 | |
1941 | fi | |
1942 | ||
1943 | test -n "$AWK" && break | |
1944 | done | |
1945 | ||
1946 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1947 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1948 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1949 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1951 | else | |
1952 | cat >conftest.make <<\_ACEOF | |
1953 | all: | |
1954 | @echo 'ac_maketemp="$(MAKE)"' | |
1955 | _ACEOF | |
1956 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1957 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1958 | if test -n "$ac_maketemp"; then | |
1959 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1960 | else | |
1961 | eval ac_cv_prog_make_${ac_make}_set=no | |
1962 | fi | |
1963 | rm -f conftest.make | |
1964 | fi | |
1965 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1966 | echo "$as_me:$LINENO: result: yes" >&5 | |
1967 | echo "${ECHO_T}yes" >&6 | |
1968 | SET_MAKE= | |
1969 | else | |
1970 | echo "$as_me:$LINENO: result: no" >&5 | |
1971 | echo "${ECHO_T}no" >&6 | |
1972 | SET_MAKE="MAKE=${MAKE-make}" | |
1973 | fi | |
1974 | ||
1975 | rm -rf .tst 2>/dev/null | |
1976 | mkdir .tst 2>/dev/null | |
1977 | if test -d .tst; then | |
1978 | am__leading_dot=. | |
1979 | else | |
1980 | am__leading_dot=_ | |
1981 | fi | |
1982 | rmdir .tst 2>/dev/null | |
1983 | ||
1984 | # test to see if srcdir already configured | |
1985 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1986 | test -f $srcdir/config.status; then | |
1987 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1988 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1989 | { (exit 1); exit 1; }; } | |
1990 | fi | |
1991 | ||
1992 | # test whether we have cygpath | |
1993 | if test -z "$CYGPATH_W"; then | |
1994 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1995 | CYGPATH_W='cygpath -w' | |
1996 | else | |
1997 | CYGPATH_W=echo | |
1998 | fi | |
1999 | fi | |
2000 | ||
2001 | ||
2002 | # Define the identity of the package. | |
2003 | PACKAGE='libgomp' | |
2004 | VERSION='1.0' | |
2005 | ||
2006 | ||
2007 | cat >>confdefs.h <<_ACEOF | |
2008 | #define PACKAGE "$PACKAGE" | |
2009 | _ACEOF | |
2010 | ||
2011 | ||
2012 | cat >>confdefs.h <<_ACEOF | |
2013 | #define VERSION "$VERSION" | |
2014 | _ACEOF | |
2015 | ||
2016 | # Some tools Automake needs. | |
2017 | ||
2018 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2019 | ||
2020 | ||
2021 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2022 | ||
2023 | ||
2024 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2025 | ||
2026 | ||
2027 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2028 | ||
2029 | ||
2030 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2031 | ||
2032 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2033 | ||
2034 | # Installed binaries are usually stripped using `strip' when the user | |
2035 | # run `make install-strip'. However `strip' might not be the right | |
2036 | # tool to use in cross-compilation environments, therefore Automake | |
2037 | # will honor the `STRIP' environment variable to overrule this program. | |
2038 | if test "$cross_compiling" != no; then | |
2039 | if test -n "$ac_tool_prefix"; then | |
2040 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2041 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2042 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2044 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2046 | else | |
2047 | if test -n "$STRIP"; then | |
2048 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2049 | else | |
2050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2051 | for as_dir in $PATH | |
2052 | do | |
2053 | IFS=$as_save_IFS | |
2054 | test -z "$as_dir" && as_dir=. | |
2055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2056 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2057 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2059 | break 2 | |
2060 | fi | |
2061 | done | |
2062 | done | |
2063 | ||
2064 | fi | |
2065 | fi | |
2066 | STRIP=$ac_cv_prog_STRIP | |
2067 | if test -n "$STRIP"; then | |
2068 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2069 | echo "${ECHO_T}$STRIP" >&6 | |
2070 | else | |
2071 | echo "$as_me:$LINENO: result: no" >&5 | |
2072 | echo "${ECHO_T}no" >&6 | |
2073 | fi | |
2074 | ||
2075 | fi | |
2076 | if test -z "$ac_cv_prog_STRIP"; then | |
2077 | ac_ct_STRIP=$STRIP | |
2078 | # Extract the first word of "strip", so it can be a program name with args. | |
2079 | set dummy strip; ac_word=$2 | |
2080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2082 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2084 | else | |
2085 | if test -n "$ac_ct_STRIP"; then | |
2086 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2087 | else | |
2088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2089 | for as_dir in $PATH | |
2090 | do | |
2091 | IFS=$as_save_IFS | |
2092 | test -z "$as_dir" && as_dir=. | |
2093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2094 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2095 | ac_cv_prog_ac_ct_STRIP="strip" | |
2096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2097 | break 2 | |
2098 | fi | |
2099 | done | |
2100 | done | |
2101 | ||
2102 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2103 | fi | |
2104 | fi | |
2105 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2106 | if test -n "$ac_ct_STRIP"; then | |
2107 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2108 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2109 | else | |
2110 | echo "$as_me:$LINENO: result: no" >&5 | |
2111 | echo "${ECHO_T}no" >&6 | |
2112 | fi | |
2113 | ||
2114 | STRIP=$ac_ct_STRIP | |
2115 | else | |
2116 | STRIP="$ac_cv_prog_STRIP" | |
2117 | fi | |
2118 | ||
2119 | fi | |
2120 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2121 | ||
2122 | # We need awk for the "check" target. The system "awk" is bad on | |
2123 | # some platforms. | |
2124 | # Always define AMTAR for backward compatibility. | |
2125 | ||
2126 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2127 | ||
2128 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | # Default to --enable-multilib | |
2135 | # Check whether --enable-multilib or --disable-multilib was given. | |
2136 | if test "${enable_multilib+set}" = set; then | |
2137 | enableval="$enable_multilib" | |
2138 | case "$enableval" in | |
2139 | yes) multilib=yes ;; | |
2140 | no) multilib=no ;; | |
2141 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
2142 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
2143 | { (exit 1); exit 1; }; } ;; | |
2144 | esac | |
2145 | else | |
2146 | multilib=yes | |
2147 | fi; | |
2148 | ||
2149 | # We may get other options which we leave undocumented: | |
2150 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2151 | # See config-ml.in if you want the gory details. | |
2152 | ||
2153 | if test "$srcdir" = "."; then | |
2154 | if test "$with_target_subdir" != "."; then | |
2155 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2156 | else | |
2157 | multi_basedir="$srcdir/$with_multisrctop.." | |
2158 | fi | |
2159 | else | |
2160 | multi_basedir="$srcdir/.." | |
2161 | fi | |
2162 | ||
2163 | ||
5b043f08 GK |
2164 | # Even if the default multilib is not a cross compilation, |
2165 | # it may be that some of the other multilibs are. | |
2166 | if test $cross_compiling = no && test $multilib = yes \ | |
2167 | && test "x${with_multisubdir}" != x ; then | |
2168 | cross_compiling=maybe | |
2169 | fi | |
2170 | ||
953ff289 DN |
2171 | ac_config_commands="$ac_config_commands default-1" |
2172 | ||
2173 | ||
2174 | # Calculate toolexeclibdir | |
2175 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2176 | case ${enable_version_specific_runtime_libs} in | |
2177 | yes) | |
2178 | # Need the gcc compiler version to know where to install libraries | |
2179 | # and header files if --enable-version-specific-runtime-libs option | |
2180 | # is selected. | |
2181 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
2182 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
2183 | ;; | |
2184 | no) | |
2185 | if test -n "$with_cross_host" && | |
2186 | test x"$with_cross_host" != x"no"; then | |
2187 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2188 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
2189 | toolexeclibdir='$(toolexecdir)/lib' | |
2190 | else | |
2191 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
2192 | toolexeclibdir='$(libdir)' | |
2193 | fi | |
2194 | multi_os_directory=`$CC -print-multi-os-directory` | |
2195 | case $multi_os_directory in | |
2196 | .) ;; # Avoid trailing /. | |
2197 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2198 | esac | |
2199 | ;; | |
2200 | esac | |
2201 | ||
2202 | ||
2203 | ||
2204 | # Check the compiler. | |
2205 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2206 | # We must force CC to /not/ be precious variables; otherwise | |
2207 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2208 | # As a side effect, we have to subst CFLAGS ourselves. | |
2209 | ||
2210 | ||
2211 | ||
2212 | ac_ext=c | |
2213 | ac_cpp='$CPP $CPPFLAGS' | |
2214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2217 | if test -n "$ac_tool_prefix"; then | |
2218 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2219 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2222 | if test "${ac_cv_prog_CC+set}" = set; then | |
2223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2224 | else | |
2225 | if test -n "$CC"; then | |
2226 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2227 | else | |
2228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2229 | for as_dir in $PATH | |
2230 | do | |
2231 | IFS=$as_save_IFS | |
2232 | test -z "$as_dir" && as_dir=. | |
2233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2235 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2237 | break 2 | |
2238 | fi | |
2239 | done | |
2240 | done | |
2241 | ||
2242 | fi | |
2243 | fi | |
2244 | CC=$ac_cv_prog_CC | |
2245 | if test -n "$CC"; then | |
2246 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2247 | echo "${ECHO_T}$CC" >&6 | |
2248 | else | |
2249 | echo "$as_me:$LINENO: result: no" >&5 | |
2250 | echo "${ECHO_T}no" >&6 | |
2251 | fi | |
2252 | ||
2253 | fi | |
2254 | if test -z "$ac_cv_prog_CC"; then | |
2255 | ac_ct_CC=$CC | |
2256 | # Extract the first word of "gcc", so it can be a program name with args. | |
2257 | set dummy gcc; ac_word=$2 | |
2258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2260 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2262 | else | |
2263 | if test -n "$ac_ct_CC"; then | |
2264 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2265 | else | |
2266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2267 | for as_dir in $PATH | |
2268 | do | |
2269 | IFS=$as_save_IFS | |
2270 | test -z "$as_dir" && as_dir=. | |
2271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2273 | ac_cv_prog_ac_ct_CC="gcc" | |
2274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2275 | break 2 | |
2276 | fi | |
2277 | done | |
2278 | done | |
2279 | ||
2280 | fi | |
2281 | fi | |
2282 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2283 | if test -n "$ac_ct_CC"; then | |
2284 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2285 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2286 | else | |
2287 | echo "$as_me:$LINENO: result: no" >&5 | |
2288 | echo "${ECHO_T}no" >&6 | |
2289 | fi | |
2290 | ||
2291 | CC=$ac_ct_CC | |
2292 | else | |
2293 | CC="$ac_cv_prog_CC" | |
2294 | fi | |
2295 | ||
2296 | if test -z "$CC"; then | |
2297 | if test -n "$ac_tool_prefix"; then | |
2298 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2299 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2302 | if test "${ac_cv_prog_CC+set}" = set; then | |
2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2304 | else | |
2305 | if test -n "$CC"; then | |
2306 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2307 | else | |
2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2309 | for as_dir in $PATH | |
2310 | do | |
2311 | IFS=$as_save_IFS | |
2312 | test -z "$as_dir" && as_dir=. | |
2313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2315 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2317 | break 2 | |
2318 | fi | |
2319 | done | |
2320 | done | |
2321 | ||
2322 | fi | |
2323 | fi | |
2324 | CC=$ac_cv_prog_CC | |
2325 | if test -n "$CC"; then | |
2326 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2327 | echo "${ECHO_T}$CC" >&6 | |
2328 | else | |
2329 | echo "$as_me:$LINENO: result: no" >&5 | |
2330 | echo "${ECHO_T}no" >&6 | |
2331 | fi | |
2332 | ||
2333 | fi | |
2334 | if test -z "$ac_cv_prog_CC"; then | |
2335 | ac_ct_CC=$CC | |
2336 | # Extract the first word of "cc", so it can be a program name with args. | |
2337 | set dummy cc; ac_word=$2 | |
2338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2340 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2342 | else | |
2343 | if test -n "$ac_ct_CC"; then | |
2344 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2345 | else | |
2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2347 | for as_dir in $PATH | |
2348 | do | |
2349 | IFS=$as_save_IFS | |
2350 | test -z "$as_dir" && as_dir=. | |
2351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2353 | ac_cv_prog_ac_ct_CC="cc" | |
2354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2355 | break 2 | |
2356 | fi | |
2357 | done | |
2358 | done | |
2359 | ||
2360 | fi | |
2361 | fi | |
2362 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2363 | if test -n "$ac_ct_CC"; then | |
2364 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2365 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2366 | else | |
2367 | echo "$as_me:$LINENO: result: no" >&5 | |
2368 | echo "${ECHO_T}no" >&6 | |
2369 | fi | |
2370 | ||
2371 | CC=$ac_ct_CC | |
2372 | else | |
2373 | CC="$ac_cv_prog_CC" | |
2374 | fi | |
2375 | ||
2376 | fi | |
2377 | if test -z "$CC"; then | |
2378 | # Extract the first word of "cc", so it can be a program name with args. | |
2379 | set dummy cc; ac_word=$2 | |
2380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2382 | if test "${ac_cv_prog_CC+set}" = set; then | |
2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2384 | else | |
2385 | if test -n "$CC"; then | |
2386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2387 | else | |
2388 | ac_prog_rejected=no | |
2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2390 | for as_dir in $PATH | |
2391 | do | |
2392 | IFS=$as_save_IFS | |
2393 | test -z "$as_dir" && as_dir=. | |
2394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2396 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2397 | ac_prog_rejected=yes | |
2398 | continue | |
2399 | fi | |
2400 | ac_cv_prog_CC="cc" | |
2401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2402 | break 2 | |
2403 | fi | |
2404 | done | |
2405 | done | |
2406 | ||
2407 | if test $ac_prog_rejected = yes; then | |
2408 | # We found a bogon in the path, so make sure we never use it. | |
2409 | set dummy $ac_cv_prog_CC | |
2410 | shift | |
2411 | if test $# != 0; then | |
2412 | # We chose a different compiler from the bogus one. | |
2413 | # However, it has the same basename, so the bogon will be chosen | |
2414 | # first if we set CC to just the basename; use the full file name. | |
2415 | shift | |
2416 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2417 | fi | |
2418 | fi | |
2419 | fi | |
2420 | fi | |
2421 | CC=$ac_cv_prog_CC | |
2422 | if test -n "$CC"; then | |
2423 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2424 | echo "${ECHO_T}$CC" >&6 | |
2425 | else | |
2426 | echo "$as_me:$LINENO: result: no" >&5 | |
2427 | echo "${ECHO_T}no" >&6 | |
2428 | fi | |
2429 | ||
2430 | fi | |
2431 | if test -z "$CC"; then | |
2432 | if test -n "$ac_tool_prefix"; then | |
2433 | for ac_prog in cl | |
2434 | do | |
2435 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2436 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2439 | if test "${ac_cv_prog_CC+set}" = set; then | |
2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2441 | else | |
2442 | if test -n "$CC"; then | |
2443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2444 | else | |
2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2446 | for as_dir in $PATH | |
2447 | do | |
2448 | IFS=$as_save_IFS | |
2449 | test -z "$as_dir" && as_dir=. | |
2450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2452 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2454 | break 2 | |
2455 | fi | |
2456 | done | |
2457 | done | |
2458 | ||
2459 | fi | |
2460 | fi | |
2461 | CC=$ac_cv_prog_CC | |
2462 | if test -n "$CC"; then | |
2463 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2464 | echo "${ECHO_T}$CC" >&6 | |
2465 | else | |
2466 | echo "$as_me:$LINENO: result: no" >&5 | |
2467 | echo "${ECHO_T}no" >&6 | |
2468 | fi | |
2469 | ||
2470 | test -n "$CC" && break | |
2471 | done | |
2472 | fi | |
2473 | if test -z "$CC"; then | |
2474 | ac_ct_CC=$CC | |
2475 | for ac_prog in cl | |
2476 | do | |
2477 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2478 | set dummy $ac_prog; ac_word=$2 | |
2479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2481 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2483 | else | |
2484 | if test -n "$ac_ct_CC"; then | |
2485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2486 | else | |
2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2488 | for as_dir in $PATH | |
2489 | do | |
2490 | IFS=$as_save_IFS | |
2491 | test -z "$as_dir" && as_dir=. | |
2492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2494 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2496 | break 2 | |
2497 | fi | |
2498 | done | |
2499 | done | |
2500 | ||
2501 | fi | |
2502 | fi | |
2503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2504 | if test -n "$ac_ct_CC"; then | |
2505 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2506 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2507 | else | |
2508 | echo "$as_me:$LINENO: result: no" >&5 | |
2509 | echo "${ECHO_T}no" >&6 | |
2510 | fi | |
2511 | ||
2512 | test -n "$ac_ct_CC" && break | |
2513 | done | |
2514 | ||
2515 | CC=$ac_ct_CC | |
2516 | fi | |
2517 | ||
2518 | fi | |
2519 | ||
2520 | ||
18c04407 RW |
2521 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2522 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2523 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
953ff289 DN |
2524 | See \`config.log' for more details." >&5 |
2525 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2526 | See \`config.log' for more details." >&2;} | |
18c04407 | 2527 | { (exit 1); exit 1; }; }; } |
953ff289 DN |
2528 | |
2529 | # Provide some information about the compiler. | |
2530 | echo "$as_me:$LINENO:" \ | |
2531 | "checking for C compiler version" >&5 | |
2532 | ac_compiler=`set X $ac_compile; echo $2` | |
2533 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2534 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2535 | ac_status=$? | |
2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2537 | (exit $ac_status); } | |
2538 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2539 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2540 | ac_status=$? | |
2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2542 | (exit $ac_status); } | |
2543 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2544 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2545 | ac_status=$? | |
2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2547 | (exit $ac_status); } | |
2548 | ||
2549 | cat >conftest.$ac_ext <<_ACEOF | |
2550 | /* confdefs.h. */ | |
2551 | _ACEOF | |
2552 | cat confdefs.h >>conftest.$ac_ext | |
2553 | cat >>conftest.$ac_ext <<_ACEOF | |
2554 | /* end confdefs.h. */ | |
2555 | ||
2556 | int | |
2557 | main () | |
2558 | { | |
2559 | ||
2560 | ; | |
2561 | return 0; | |
2562 | } | |
2563 | _ACEOF | |
2564 | ac_clean_files_save=$ac_clean_files | |
2565 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2566 | # Try to create an executable without -o first, disregard a.out. | |
2567 | # It will help us diagnose broken compilers, and finding out an intuition | |
2568 | # of exeext. | |
2569 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2570 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2571 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2572 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2573 | (eval $ac_link_default) 2>&5 | |
2574 | ac_status=$? | |
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2576 | (exit $ac_status); }; then | |
2577 | # Find the output, starting from the most likely. This scheme is | |
2578 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2579 | # resort. | |
2580 | ||
2581 | # Be careful to initialize this variable, since it used to be cached. | |
2582 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2583 | ac_cv_exeext= | |
2584 | # b.out is created by i960 compilers. | |
2585 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2586 | do | |
2587 | test -f "$ac_file" || continue | |
2588 | case $ac_file in | |
2589 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2590 | ;; | |
2591 | conftest.$ac_ext ) | |
2592 | # This is the source file. | |
2593 | ;; | |
2594 | [ab].out ) | |
2595 | # We found the default executable, but exeext='' is most | |
2596 | # certainly right. | |
2597 | break;; | |
2598 | *.* ) | |
2599 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2600 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2601 | # but it would be cool to find out if it's true. Does anybody | |
2602 | # maintain Libtool? --akim. | |
2603 | export ac_cv_exeext | |
2604 | break;; | |
2605 | * ) | |
2606 | break;; | |
2607 | esac | |
2608 | done | |
2609 | else | |
2610 | echo "$as_me: failed program was:" >&5 | |
2611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2612 | ||
18c04407 RW |
2613 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2614 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
953ff289 DN |
2615 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2616 | See \`config.log' for more details." >&5 | |
2617 | echo "$as_me: error: C compiler cannot create executables | |
2618 | See \`config.log' for more details." >&2;} | |
18c04407 | 2619 | { (exit 77); exit 77; }; }; } |
953ff289 DN |
2620 | fi |
2621 | ||
2622 | ac_exeext=$ac_cv_exeext | |
2623 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2624 | echo "${ECHO_T}$ac_file" >&6 | |
2625 | ||
2626 | # Check the compiler produces executables we can run. If not, either | |
2627 | # the compiler is broken, or we cross compile. | |
2628 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2629 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2630 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2631 | # If not cross compiling, check that we can run a simple program. | |
2632 | if test "$cross_compiling" != yes; then | |
2633 | if { ac_try='./$ac_file' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; }; then | |
2639 | cross_compiling=no | |
2640 | else | |
2641 | if test "$cross_compiling" = maybe; then | |
2642 | cross_compiling=yes | |
2643 | else | |
18c04407 RW |
2644 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2645 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2646 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
953ff289 DN |
2647 | If you meant to cross compile, use \`--host'. |
2648 | See \`config.log' for more details." >&5 | |
2649 | echo "$as_me: error: cannot run C compiled programs. | |
2650 | If you meant to cross compile, use \`--host'. | |
2651 | See \`config.log' for more details." >&2;} | |
18c04407 | 2652 | { (exit 1); exit 1; }; }; } |
953ff289 DN |
2653 | fi |
2654 | fi | |
2655 | fi | |
2656 | echo "$as_me:$LINENO: result: yes" >&5 | |
2657 | echo "${ECHO_T}yes" >&6 | |
2658 | ||
2659 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2660 | ac_clean_files=$ac_clean_files_save | |
2661 | # Check the compiler produces executables we can run. If not, either | |
2662 | # the compiler is broken, or we cross compile. | |
2663 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2664 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2665 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2666 | echo "${ECHO_T}$cross_compiling" >&6 | |
2667 | ||
2668 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2669 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2671 | (eval $ac_link) 2>&5 | |
2672 | ac_status=$? | |
2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2674 | (exit $ac_status); }; then | |
2675 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2676 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2677 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2678 | # `rm'. | |
2679 | for ac_file in conftest.exe conftest conftest.*; do | |
2680 | test -f "$ac_file" || continue | |
2681 | case $ac_file in | |
2682 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2683 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2684 | export ac_cv_exeext | |
2685 | break;; | |
2686 | * ) break;; | |
2687 | esac | |
2688 | done | |
2689 | else | |
18c04407 RW |
2690 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2691 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2692 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
953ff289 DN |
2693 | See \`config.log' for more details." >&5 |
2694 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2695 | See \`config.log' for more details." >&2;} | |
18c04407 | 2696 | { (exit 1); exit 1; }; }; } |
953ff289 DN |
2697 | fi |
2698 | ||
2699 | rm -f conftest$ac_cv_exeext | |
2700 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2701 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2702 | ||
2703 | rm -f conftest.$ac_ext | |
2704 | EXEEXT=$ac_cv_exeext | |
2705 | ac_exeext=$EXEEXT | |
2706 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2707 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2708 | if test "${ac_cv_objext+set}" = set; then | |
2709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2710 | else | |
2711 | cat >conftest.$ac_ext <<_ACEOF | |
2712 | /* confdefs.h. */ | |
2713 | _ACEOF | |
2714 | cat confdefs.h >>conftest.$ac_ext | |
2715 | cat >>conftest.$ac_ext <<_ACEOF | |
2716 | /* end confdefs.h. */ | |
2717 | ||
2718 | int | |
2719 | main () | |
2720 | { | |
2721 | ||
2722 | ; | |
2723 | return 0; | |
2724 | } | |
2725 | _ACEOF | |
2726 | rm -f conftest.o conftest.obj | |
2727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2728 | (eval $ac_compile) 2>&5 | |
2729 | ac_status=$? | |
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2731 | (exit $ac_status); }; then | |
2732 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2733 | case $ac_file in | |
2734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2735 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2736 | break;; | |
2737 | esac | |
2738 | done | |
2739 | else | |
2740 | echo "$as_me: failed program was:" >&5 | |
2741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2742 | ||
18c04407 RW |
2743 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2744 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
953ff289 DN |
2745 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2746 | See \`config.log' for more details." >&5 | |
2747 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2748 | See \`config.log' for more details." >&2;} | |
18c04407 | 2749 | { (exit 1); exit 1; }; }; } |
953ff289 DN |
2750 | fi |
2751 | ||
2752 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2753 | fi | |
2754 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2755 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2756 | OBJEXT=$ac_cv_objext | |
2757 | ac_objext=$OBJEXT | |
2758 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2759 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2760 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2762 | else | |
2763 | cat >conftest.$ac_ext <<_ACEOF | |
2764 | /* confdefs.h. */ | |
2765 | _ACEOF | |
2766 | cat confdefs.h >>conftest.$ac_ext | |
2767 | cat >>conftest.$ac_ext <<_ACEOF | |
2768 | /* end confdefs.h. */ | |
2769 | ||
2770 | int | |
2771 | main () | |
2772 | { | |
2773 | #ifndef __GNUC__ | |
2774 | choke me | |
2775 | #endif | |
2776 | ||
2777 | ; | |
2778 | return 0; | |
2779 | } | |
2780 | _ACEOF | |
2781 | rm -f conftest.$ac_objext | |
2782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2783 | (eval $ac_compile) 2>conftest.er1 | |
2784 | ac_status=$? | |
2785 | grep -v '^ *+' conftest.er1 >conftest.err | |
2786 | rm -f conftest.er1 | |
2787 | cat conftest.err >&5 | |
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2789 | (exit $ac_status); } && | |
d349482e AT |
2790 | { ac_try='test -z "$ac_c_werror_flag" |
2791 | || test ! -s conftest.err' | |
953ff289 DN |
2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2793 | (eval $ac_try) 2>&5 | |
2794 | ac_status=$? | |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2796 | (exit $ac_status); }; } && | |
2797 | { ac_try='test -s conftest.$ac_objext' | |
2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2799 | (eval $ac_try) 2>&5 | |
2800 | ac_status=$? | |
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2802 | (exit $ac_status); }; }; then | |
2803 | ac_compiler_gnu=yes | |
2804 | else | |
2805 | echo "$as_me: failed program was:" >&5 | |
2806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2807 | ||
2808 | ac_compiler_gnu=no | |
2809 | fi | |
2810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2811 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2812 | ||
2813 | fi | |
2814 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2815 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2816 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2817 | ac_test_CFLAGS=${CFLAGS+set} | |
2818 | ac_save_CFLAGS=$CFLAGS | |
2819 | CFLAGS="-g" | |
2820 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2821 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2822 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2824 | else | |
2825 | cat >conftest.$ac_ext <<_ACEOF | |
2826 | /* confdefs.h. */ | |
2827 | _ACEOF | |
2828 | cat confdefs.h >>conftest.$ac_ext | |
2829 | cat >>conftest.$ac_ext <<_ACEOF | |
2830 | /* end confdefs.h. */ | |
2831 | ||
2832 | int | |
2833 | main () | |
2834 | { | |
2835 | ||
2836 | ; | |
2837 | return 0; | |
2838 | } | |
2839 | _ACEOF | |
2840 | rm -f conftest.$ac_objext | |
2841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2842 | (eval $ac_compile) 2>conftest.er1 | |
2843 | ac_status=$? | |
2844 | grep -v '^ *+' conftest.er1 >conftest.err | |
2845 | rm -f conftest.er1 | |
2846 | cat conftest.err >&5 | |
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2848 | (exit $ac_status); } && | |
d349482e AT |
2849 | { ac_try='test -z "$ac_c_werror_flag" |
2850 | || test ! -s conftest.err' | |
953ff289 DN |
2851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2852 | (eval $ac_try) 2>&5 | |
2853 | ac_status=$? | |
2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2855 | (exit $ac_status); }; } && | |
2856 | { ac_try='test -s conftest.$ac_objext' | |
2857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2858 | (eval $ac_try) 2>&5 | |
2859 | ac_status=$? | |
2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2861 | (exit $ac_status); }; }; then | |
2862 | ac_cv_prog_cc_g=yes | |
2863 | else | |
2864 | echo "$as_me: failed program was:" >&5 | |
2865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2866 | ||
2867 | ac_cv_prog_cc_g=no | |
2868 | fi | |
2869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2870 | fi | |
2871 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2872 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2873 | if test "$ac_test_CFLAGS" = set; then | |
2874 | CFLAGS=$ac_save_CFLAGS | |
2875 | elif test $ac_cv_prog_cc_g = yes; then | |
2876 | if test "$GCC" = yes; then | |
2877 | CFLAGS="-g -O2" | |
2878 | else | |
2879 | CFLAGS="-g" | |
2880 | fi | |
2881 | else | |
2882 | if test "$GCC" = yes; then | |
2883 | CFLAGS="-O2" | |
2884 | else | |
2885 | CFLAGS= | |
2886 | fi | |
2887 | fi | |
2888 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2889 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2890 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2892 | else | |
2893 | ac_cv_prog_cc_stdc=no | |
2894 | ac_save_CC=$CC | |
2895 | cat >conftest.$ac_ext <<_ACEOF | |
2896 | /* confdefs.h. */ | |
2897 | _ACEOF | |
2898 | cat confdefs.h >>conftest.$ac_ext | |
2899 | cat >>conftest.$ac_ext <<_ACEOF | |
2900 | /* end confdefs.h. */ | |
2901 | #include <stdarg.h> | |
2902 | #include <stdio.h> | |
2903 | #include <sys/types.h> | |
2904 | #include <sys/stat.h> | |
2905 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2906 | struct buf { int x; }; | |
2907 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2908 | static char *e (p, i) | |
2909 | char **p; | |
2910 | int i; | |
2911 | { | |
2912 | return p[i]; | |
2913 | } | |
2914 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2915 | { | |
2916 | char *s; | |
2917 | va_list v; | |
2918 | va_start (v,p); | |
2919 | s = g (p, va_arg (v,int)); | |
2920 | va_end (v); | |
2921 | return s; | |
2922 | } | |
2923 | ||
2924 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2925 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2926 | These don't provoke an error unfortunately, instead are silently treated | |
2927 | as 'x'. The following induces an error, until -std1 is added to get | |
2928 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2929 | array size at least. It's necessary to write '\x00'==0 to get something | |
2930 | that's true only with -std1. */ | |
2931 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2932 | ||
2933 | int test (int i, double x); | |
2934 | struct s1 {int (*f) (int a);}; | |
2935 | struct s2 {int (*f) (double a);}; | |
2936 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2937 | int argc; | |
2938 | char **argv; | |
2939 | int | |
2940 | main () | |
2941 | { | |
2942 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2943 | ; | |
2944 | return 0; | |
2945 | } | |
2946 | _ACEOF | |
2947 | # Don't try gcc -ansi; that turns off useful extensions and | |
2948 | # breaks some systems' header files. | |
2949 | # AIX -qlanglvl=ansi | |
2950 | # Ultrix and OSF/1 -std1 | |
2951 | # HP-UX 10.20 and later -Ae | |
2952 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2953 | # SVR4 -Xc -D__EXTENSIONS__ | |
2954 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2955 | do | |
2956 | CC="$ac_save_CC $ac_arg" | |
2957 | rm -f conftest.$ac_objext | |
2958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2959 | (eval $ac_compile) 2>conftest.er1 | |
2960 | ac_status=$? | |
2961 | grep -v '^ *+' conftest.er1 >conftest.err | |
2962 | rm -f conftest.er1 | |
2963 | cat conftest.err >&5 | |
2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2965 | (exit $ac_status); } && | |
d349482e AT |
2966 | { ac_try='test -z "$ac_c_werror_flag" |
2967 | || test ! -s conftest.err' | |
953ff289 DN |
2968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2969 | (eval $ac_try) 2>&5 | |
2970 | ac_status=$? | |
2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2972 | (exit $ac_status); }; } && | |
2973 | { ac_try='test -s conftest.$ac_objext' | |
2974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2975 | (eval $ac_try) 2>&5 | |
2976 | ac_status=$? | |
2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2978 | (exit $ac_status); }; }; then | |
2979 | ac_cv_prog_cc_stdc=$ac_arg | |
2980 | break | |
2981 | else | |
2982 | echo "$as_me: failed program was:" >&5 | |
2983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2984 | ||
2985 | fi | |
2986 | rm -f conftest.err conftest.$ac_objext | |
2987 | done | |
2988 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2989 | CC=$ac_save_CC | |
2990 | ||
2991 | fi | |
2992 | ||
2993 | case "x$ac_cv_prog_cc_stdc" in | |
2994 | x|xno) | |
2995 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2996 | echo "${ECHO_T}none needed" >&6 ;; | |
2997 | *) | |
2998 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2999 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3000 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3001 | esac | |
3002 | ||
3003 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3004 | # in C++ we need to declare it. In case someone uses the same compiler | |
3005 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3006 | # the declaration of exit, since it's the most demanding environment. | |
3007 | cat >conftest.$ac_ext <<_ACEOF | |
3008 | #ifndef __cplusplus | |
3009 | choke me | |
3010 | #endif | |
3011 | _ACEOF | |
3012 | rm -f conftest.$ac_objext | |
3013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3014 | (eval $ac_compile) 2>conftest.er1 | |
3015 | ac_status=$? | |
3016 | grep -v '^ *+' conftest.er1 >conftest.err | |
3017 | rm -f conftest.er1 | |
3018 | cat conftest.err >&5 | |
3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3020 | (exit $ac_status); } && | |
d349482e AT |
3021 | { ac_try='test -z "$ac_c_werror_flag" |
3022 | || test ! -s conftest.err' | |
953ff289 DN |
3023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3024 | (eval $ac_try) 2>&5 | |
3025 | ac_status=$? | |
3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3027 | (exit $ac_status); }; } && | |
3028 | { ac_try='test -s conftest.$ac_objext' | |
3029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3030 | (eval $ac_try) 2>&5 | |
3031 | ac_status=$? | |
3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3033 | (exit $ac_status); }; }; then | |
3034 | for ac_declaration in \ | |
3035 | '' \ | |
3036 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3037 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3038 | 'extern "C" void exit (int) throw ();' \ | |
3039 | 'extern "C" void exit (int);' \ | |
3040 | 'void exit (int);' | |
3041 | do | |
3042 | cat >conftest.$ac_ext <<_ACEOF | |
3043 | /* confdefs.h. */ | |
3044 | _ACEOF | |
3045 | cat confdefs.h >>conftest.$ac_ext | |
3046 | cat >>conftest.$ac_ext <<_ACEOF | |
3047 | /* end confdefs.h. */ | |
3048 | $ac_declaration | |
3049 | #include <stdlib.h> | |
3050 | int | |
3051 | main () | |
3052 | { | |
3053 | exit (42); | |
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | rm -f conftest.$ac_objext | |
3059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3060 | (eval $ac_compile) 2>conftest.er1 | |
3061 | ac_status=$? | |
3062 | grep -v '^ *+' conftest.er1 >conftest.err | |
3063 | rm -f conftest.er1 | |
3064 | cat conftest.err >&5 | |
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3066 | (exit $ac_status); } && | |
d349482e AT |
3067 | { ac_try='test -z "$ac_c_werror_flag" |
3068 | || test ! -s conftest.err' | |
953ff289 DN |
3069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3070 | (eval $ac_try) 2>&5 | |
3071 | ac_status=$? | |
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3073 | (exit $ac_status); }; } && | |
3074 | { ac_try='test -s conftest.$ac_objext' | |
3075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3076 | (eval $ac_try) 2>&5 | |
3077 | ac_status=$? | |
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3079 | (exit $ac_status); }; }; then | |
3080 | : | |
3081 | else | |
3082 | echo "$as_me: failed program was:" >&5 | |
3083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3084 | ||
3085 | continue | |
3086 | fi | |
3087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3088 | cat >conftest.$ac_ext <<_ACEOF | |
3089 | /* confdefs.h. */ | |
3090 | _ACEOF | |
3091 | cat confdefs.h >>conftest.$ac_ext | |
3092 | cat >>conftest.$ac_ext <<_ACEOF | |
3093 | /* end confdefs.h. */ | |
3094 | $ac_declaration | |
3095 | int | |
3096 | main () | |
3097 | { | |
3098 | exit (42); | |
3099 | ; | |
3100 | return 0; | |
3101 | } | |
3102 | _ACEOF | |
3103 | rm -f conftest.$ac_objext | |
3104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3105 | (eval $ac_compile) 2>conftest.er1 | |
3106 | ac_status=$? | |
3107 | grep -v '^ *+' conftest.er1 >conftest.err | |
3108 | rm -f conftest.er1 | |
3109 | cat conftest.err >&5 | |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3111 | (exit $ac_status); } && | |
d349482e AT |
3112 | { ac_try='test -z "$ac_c_werror_flag" |
3113 | || test ! -s conftest.err' | |
953ff289 DN |
3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3115 | (eval $ac_try) 2>&5 | |
3116 | ac_status=$? | |
3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3118 | (exit $ac_status); }; } && | |
3119 | { ac_try='test -s conftest.$ac_objext' | |
3120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3121 | (eval $ac_try) 2>&5 | |
3122 | ac_status=$? | |
3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3124 | (exit $ac_status); }; }; then | |
3125 | break | |
3126 | else | |
3127 | echo "$as_me: failed program was:" >&5 | |
3128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3129 | ||
3130 | fi | |
3131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3132 | done | |
3133 | rm -f conftest* | |
3134 | if test -n "$ac_declaration"; then | |
3135 | echo '#ifdef __cplusplus' >>confdefs.h | |
3136 | echo $ac_declaration >>confdefs.h | |
3137 | echo '#endif' >>confdefs.h | |
3138 | fi | |
3139 | ||
3140 | else | |
3141 | echo "$as_me: failed program was:" >&5 | |
3142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3143 | ||
3144 | fi | |
3145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3146 | ac_ext=c | |
3147 | ac_cpp='$CPP $CPPFLAGS' | |
3148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3151 | DEPDIR="${am__leading_dot}deps" | |
3152 | ||
3153 | ac_config_commands="$ac_config_commands depfiles" | |
3154 | ||
3155 | ||
3156 | am_make=${MAKE-make} | |
3157 | cat > confinc << 'END' | |
3158 | am__doit: | |
3159 | @echo done | |
3160 | .PHONY: am__doit | |
3161 | END | |
3162 | # If we don't find an include directive, just comment out the code. | |
3163 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3164 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
3165 | am__include="#" | |
3166 | am__quote= | |
3167 | _am_result=none | |
3168 | # First try GNU make style include. | |
3169 | echo "include confinc" > confmf | |
3170 | # We grep out `Entering directory' and `Leaving directory' | |
3171 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3172 | # In particular we don't look at `^make:' because GNU make might | |
3173 | # be invoked under some other name (usually "gmake"), in which | |
3174 | # case it prints its new name instead of `make'. | |
3175 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3176 | am__include=include | |
3177 | am__quote= | |
3178 | _am_result=GNU | |
3179 | fi | |
3180 | # Now try BSD make style include. | |
3181 | if test "$am__include" = "#"; then | |
3182 | echo '.include "confinc"' > confmf | |
3183 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3184 | am__include=.include | |
3185 | am__quote="\"" | |
3186 | _am_result=BSD | |
3187 | fi | |
3188 | fi | |
3189 | ||
3190 | ||
3191 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3192 | echo "${ECHO_T}$_am_result" >&6 | |
3193 | rm -f confinc confmf | |
3194 | ||
3195 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3196 | if test "${enable_dependency_tracking+set}" = set; then | |
3197 | enableval="$enable_dependency_tracking" | |
3198 | ||
3199 | fi; | |
3200 | if test "x$enable_dependency_tracking" != xno; then | |
3201 | am_depcomp="$ac_aux_dir/depcomp" | |
3202 | AMDEPBACKSLASH='\' | |
3203 | fi | |
3204 | ||
3205 | ||
3206 | if test "x$enable_dependency_tracking" != xno; then | |
3207 | AMDEP_TRUE= | |
3208 | AMDEP_FALSE='#' | |
3209 | else | |
3210 | AMDEP_TRUE='#' | |
3211 | AMDEP_FALSE= | |
3212 | fi | |
3213 | ||
3214 | ||
3215 | ||
3216 | ||
3217 | depcc="$CC" am_compiler_list= | |
3218 | ||
3219 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3220 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3221 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3223 | else | |
3224 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3225 | # We make a subdir and do the tests there. Otherwise we can end up | |
3226 | # making bogus files that we don't know about and never remove. For | |
3227 | # instance it was reported that on HP-UX the gcc test will end up | |
3228 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3229 | # in D'. | |
3230 | mkdir conftest.dir | |
3231 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3232 | # using a relative directory. | |
3233 | cp "$am_depcomp" conftest.dir | |
3234 | cd conftest.dir | |
3235 | # We will build objects and dependencies in a subdirectory because | |
3236 | # it helps to detect inapplicable dependency modes. For instance | |
3237 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3238 | # side effect of compilation, but ICC will put the dependencies in | |
3239 | # the current directory while Tru64 will put them in the object | |
3240 | # directory. | |
3241 | mkdir sub | |
3242 | ||
3243 | am_cv_CC_dependencies_compiler_type=none | |
3244 | if test "$am_compiler_list" = ""; then | |
3245 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3246 | fi | |
3247 | for depmode in $am_compiler_list; do | |
3248 | # Setup a source with many dependencies, because some compilers | |
3249 | # like to wrap large dependency lists on column 80 (with \), and | |
3250 | # we should not choose a depcomp mode which is confused by this. | |
3251 | # | |
3252 | # We need to recreate these files for each test, as the compiler may | |
3253 | # overwrite some of them when testing with obscure command lines. | |
3254 | # This happens at least with the AIX C compiler. | |
3255 | : > sub/conftest.c | |
3256 | for i in 1 2 3 4 5 6; do | |
3257 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3258 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3259 | # Solaris 8's {/usr,}/bin/sh. | |
3260 | touch sub/conftst$i.h | |
3261 | done | |
3262 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3263 | ||
3264 | case $depmode in | |
3265 | nosideeffect) | |
3266 | # after this tag, mechanisms are not by side-effect, so they'll | |
3267 | # only be used when explicitly requested | |
3268 | if test "x$enable_dependency_tracking" = xyes; then | |
3269 | continue | |
3270 | else | |
3271 | break | |
3272 | fi | |
3273 | ;; | |
3274 | none) break ;; | |
3275 | esac | |
3276 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3277 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3278 | # handle `-M -o', and we need to detect this. | |
3279 | if depmode=$depmode \ | |
3280 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3281 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3282 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3283 | >/dev/null 2>conftest.err && | |
3284 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3285 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3286 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3287 | # icc doesn't choke on unknown options, it will just issue warnings | |
3288 | # or remarks (even with -Werror). So we grep stderr for any message | |
3289 | # that says an option was ignored or not supported. | |
3290 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3291 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3292 | # The diagnosis changed in icc 8.0: | |
3293 | # icc: Command line remark: option '-MP' not supported | |
3294 | if (grep 'ignoring option' conftest.err || | |
3295 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3296 | am_cv_CC_dependencies_compiler_type=$depmode | |
3297 | break | |
3298 | fi | |
3299 | fi | |
3300 | done | |
3301 | ||
3302 | cd .. | |
3303 | rm -rf conftest.dir | |
3304 | else | |
3305 | am_cv_CC_dependencies_compiler_type=none | |
3306 | fi | |
3307 | ||
3308 | fi | |
3309 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3310 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3311 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3312 | ||
3313 | ||
3314 | ||
3315 | if | |
3316 | test "x$enable_dependency_tracking" != xno \ | |
3317 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3318 | am__fastdepCC_TRUE= | |
3319 | am__fastdepCC_FALSE='#' | |
3320 | else | |
3321 | am__fastdepCC_TRUE='#' | |
3322 | am__fastdepCC_FALSE= | |
3323 | fi | |
3324 | ||
3325 | ||
3326 | ||
3327 | ||
3328 | ||
3329 | ||
3330 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
3331 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
3332 | # in both places for now and restore CFLAGS at the end of config. | |
3333 | save_CFLAGS="$CFLAGS" | |
3334 | ||
3335 | # Add -Wall -Werror if we are using GCC. | |
3336 | if test "x$GCC" = "xyes"; then | |
3337 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
3338 | fi | |
3339 | ||
3340 | # Find other programs we need. | |
3341 | if test -n "$ac_tool_prefix"; then | |
3342 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3343 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3346 | if test "${ac_cv_prog_AR+set}" = set; then | |
3347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3348 | else | |
3349 | if test -n "$AR"; then | |
3350 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3351 | else | |
3352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3353 | for as_dir in $PATH | |
3354 | do | |
3355 | IFS=$as_save_IFS | |
3356 | test -z "$as_dir" && as_dir=. | |
3357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3359 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3361 | break 2 | |
3362 | fi | |
3363 | done | |
3364 | done | |
3365 | ||
3366 | fi | |
3367 | fi | |
3368 | AR=$ac_cv_prog_AR | |
3369 | if test -n "$AR"; then | |
3370 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3371 | echo "${ECHO_T}$AR" >&6 | |
3372 | else | |
3373 | echo "$as_me:$LINENO: result: no" >&5 | |
3374 | echo "${ECHO_T}no" >&6 | |
3375 | fi | |
3376 | ||
3377 | fi | |
3378 | if test -z "$ac_cv_prog_AR"; then | |
3379 | ac_ct_AR=$AR | |
3380 | # Extract the first word of "ar", so it can be a program name with args. | |
3381 | set dummy ar; ac_word=$2 | |
3382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3384 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3386 | else | |
3387 | if test -n "$ac_ct_AR"; then | |
3388 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3389 | else | |
3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3391 | for as_dir in $PATH | |
3392 | do | |
3393 | IFS=$as_save_IFS | |
3394 | test -z "$as_dir" && as_dir=. | |
3395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3397 | ac_cv_prog_ac_ct_AR="ar" | |
3398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3399 | break 2 | |
3400 | fi | |
3401 | done | |
3402 | done | |
3403 | ||
3404 | fi | |
3405 | fi | |
3406 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3407 | if test -n "$ac_ct_AR"; then | |
3408 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3409 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3410 | else | |
3411 | echo "$as_me:$LINENO: result: no" >&5 | |
3412 | echo "${ECHO_T}no" >&6 | |
3413 | fi | |
3414 | ||
3415 | AR=$ac_ct_AR | |
3416 | else | |
3417 | AR="$ac_cv_prog_AR" | |
3418 | fi | |
3419 | ||
3420 | if test -n "$ac_tool_prefix"; then | |
3421 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3422 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3425 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3427 | else | |
3428 | if test -n "$RANLIB"; then | |
3429 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3430 | else | |
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3432 | for as_dir in $PATH | |
3433 | do | |
3434 | IFS=$as_save_IFS | |
3435 | test -z "$as_dir" && as_dir=. | |
3436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3438 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3440 | break 2 | |
3441 | fi | |
3442 | done | |
3443 | done | |
3444 | ||
3445 | fi | |
3446 | fi | |
3447 | RANLIB=$ac_cv_prog_RANLIB | |
3448 | if test -n "$RANLIB"; then | |
3449 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3450 | echo "${ECHO_T}$RANLIB" >&6 | |
3451 | else | |
3452 | echo "$as_me:$LINENO: result: no" >&5 | |
3453 | echo "${ECHO_T}no" >&6 | |
3454 | fi | |
3455 | ||
3456 | fi | |
3457 | if test -z "$ac_cv_prog_RANLIB"; then | |
3458 | ac_ct_RANLIB=$RANLIB | |
3459 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3460 | set dummy ranlib; ac_word=$2 | |
3461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3463 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3465 | else | |
3466 | if test -n "$ac_ct_RANLIB"; then | |
3467 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3468 | else | |
3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3470 | for as_dir in $PATH | |
3471 | do | |
3472 | IFS=$as_save_IFS | |
3473 | test -z "$as_dir" && as_dir=. | |
3474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3476 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3478 | break 2 | |
3479 | fi | |
3480 | done | |
3481 | done | |
3482 | ||
3483 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3484 | fi | |
3485 | fi | |
3486 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3487 | if test -n "$ac_ct_RANLIB"; then | |
3488 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3489 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3490 | else | |
3491 | echo "$as_me:$LINENO: result: no" >&5 | |
3492 | echo "${ECHO_T}no" >&6 | |
3493 | fi | |
3494 | ||
3495 | RANLIB=$ac_ct_RANLIB | |
3496 | else | |
3497 | RANLIB="$ac_cv_prog_RANLIB" | |
3498 | fi | |
3499 | ||
3500 | # Extract the first word of "perl", so it can be a program name with args. | |
3501 | set dummy perl; ac_word=$2 | |
3502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3504 | if test "${ac_cv_path_PERL+set}" = set; then | |
3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3506 | else | |
3507 | case $PERL in | |
3508 | [\\/]* | ?:[\\/]*) | |
3509 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3510 | ;; | |
3511 | *) | |
3512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3513 | for as_dir in $PATH | |
3514 | do | |
3515 | IFS=$as_save_IFS | |
3516 | test -z "$as_dir" && as_dir=. | |
3517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3519 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
3520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3521 | break 2 | |
3522 | fi | |
3523 | done | |
3524 | done | |
3525 | ||
3526 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
3527 | ;; | |
3528 | esac | |
3529 | fi | |
3530 | PERL=$ac_cv_path_PERL | |
3531 | ||
3532 | if test -n "$PERL"; then | |
3533 | echo "$as_me:$LINENO: result: $PERL" >&5 | |
3534 | echo "${ECHO_T}$PERL" >&6 | |
3535 | else | |
3536 | echo "$as_me:$LINENO: result: no" >&5 | |
3537 | echo "${ECHO_T}no" >&6 | |
3538 | fi | |
3539 | ||
3540 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3541 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3542 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3543 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3545 | else | |
3546 | cat >conftest.make <<\_ACEOF | |
3547 | all: | |
3548 | @echo 'ac_maketemp="$(MAKE)"' | |
3549 | _ACEOF | |
3550 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3551 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3552 | if test -n "$ac_maketemp"; then | |
3553 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3554 | else | |
3555 | eval ac_cv_prog_make_${ac_make}_set=no | |
3556 | fi | |
3557 | rm -f conftest.make | |
3558 | fi | |
3559 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3560 | echo "$as_me:$LINENO: result: yes" >&5 | |
3561 | echo "${ECHO_T}yes" >&6 | |
3562 | SET_MAKE= | |
3563 | else | |
3564 | echo "$as_me:$LINENO: result: no" >&5 | |
3565 | echo "${ECHO_T}no" >&6 | |
3566 | SET_MAKE="MAKE=${MAKE-make}" | |
3567 | fi | |
3568 | ||
3569 | # Find a good install program. We prefer a C program (faster), | |
3570 | # so one script is as good as another. But avoid the broken or | |
3571 | # incompatible versions: | |
3572 | # SysV /etc/install, /usr/sbin/install | |
3573 | # SunOS /usr/etc/install | |
3574 | # IRIX /sbin/install | |
3575 | # AIX /bin/install | |
3576 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3577 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3578 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3579 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3580 | # OS/2's system install, which has a completely different semantic | |
3581 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 3582 | # Reject install programs that cannot install multiple files. |
953ff289 DN |
3583 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3584 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3585 | if test -z "$INSTALL"; then | |
3586 | if test "${ac_cv_path_install+set}" = set; then | |
3587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3588 | else | |
3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3590 | for as_dir in $PATH | |
3591 | do | |
3592 | IFS=$as_save_IFS | |
3593 | test -z "$as_dir" && as_dir=. | |
3594 | # Account for people who put trailing slashes in PATH elements. | |
3595 | case $as_dir/ in | |
3596 | ./ | .// | /cC/* | \ | |
3597 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3598 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3599 | /usr/ucb/* ) ;; | |
3600 | *) | |
3601 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3602 | # Don't use installbsd from OSF since it installs stuff as root | |
3603 | # by default. | |
3604 | for ac_prog in ginstall scoinst install; do | |
3605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3606 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3607 | if test $ac_prog = install && | |
3608 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3609 | # AIX install. It has an incompatible calling convention. | |
3610 | : | |
3611 | elif test $ac_prog = install && | |
3612 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3613 | # program-specific install script used by HP pwplus--don't use. | |
3614 | : | |
3615 | else | |
38d24731 RW |
3616 | rm -rf conftest.one conftest.two conftest.dir |
3617 | echo one > conftest.one | |
3618 | echo two > conftest.two | |
3619 | mkdir conftest.dir | |
3620 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3621 | test -s conftest.one && test -s conftest.two && | |
3622 | test -s conftest.dir/conftest.one && | |
3623 | test -s conftest.dir/conftest.two | |
3624 | then | |
3625 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3626 | break 3 | |
3627 | fi | |
953ff289 DN |
3628 | fi |
3629 | fi | |
3630 | done | |
3631 | done | |
3632 | ;; | |
3633 | esac | |
3634 | done | |
3635 | ||
38d24731 | 3636 | rm -rf conftest.one conftest.two conftest.dir |
953ff289 DN |
3637 | |
3638 | fi | |
3639 | if test "${ac_cv_path_install+set}" = set; then | |
3640 | INSTALL=$ac_cv_path_install | |
3641 | else | |
38d24731 RW |
3642 | # As a last resort, use the slow shell script. Don't cache a |
3643 | # value for INSTALL within a source directory, because that will | |
953ff289 | 3644 | # break other packages using the cache if that directory is |
38d24731 | 3645 | # removed, or if the value is a relative name. |
953ff289 DN |
3646 | INSTALL=$ac_install_sh |
3647 | fi | |
3648 | fi | |
3649 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3650 | echo "${ECHO_T}$INSTALL" >&6 | |
3651 | ||
3652 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3653 | # It thinks the first close brace ends the variable substitution. | |
3654 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3655 | ||
3656 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3657 | ||
3658 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3659 | ||
3660 | ||
748b9d7c DF |
3661 | # See if makeinfo has been installed and is modern enough |
3662 | # that we can use it. | |
3663 | ||
3664 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
3665 | set dummy makeinfo; ac_word=$2 | |
3666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3668 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then | |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3670 | else | |
3671 | if test -n "$MAKEINFO"; then | |
3672 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
3673 | else | |
3674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3675 | for as_dir in $PATH | |
3676 | do | |
3677 | IFS=$as_save_IFS | |
3678 | test -z "$as_dir" && as_dir=. | |
3679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3681 | ac_cv_prog_MAKEINFO="makeinfo" | |
3682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3683 | break 2 | |
3684 | fi | |
3685 | done | |
3686 | done | |
3687 | ||
3688 | fi | |
3689 | fi | |
3690 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
3691 | if test -n "$MAKEINFO"; then | |
3692 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
3693 | echo "${ECHO_T}$MAKEINFO" >&6 | |
3694 | else | |
3695 | echo "$as_me:$LINENO: result: no" >&5 | |
3696 | echo "${ECHO_T}no" >&6 | |
3697 | fi | |
3698 | ||
3699 | if test -n "$MAKEINFO"; then | |
3700 | # Found it, now check the version. | |
3701 | echo "$as_me:$LINENO: checking for modern makeinfo" >&5 | |
3702 | echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 | |
3703 | if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then | |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3705 | else | |
3706 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
3707 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
3708 | ||
3709 | case $ac_prog_version in | |
3710 | '') gcc_cv_prog_makeinfo_modern=no;; | |
a7415017 | 3711 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; |
748b9d7c DF |
3712 | *) gcc_cv_prog_makeinfo_modern=no;; |
3713 | esac | |
3714 | ||
3715 | fi | |
3716 | echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 | |
3717 | echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 | |
3718 | else | |
3719 | gcc_cv_prog_makeinfo_modern=no | |
3720 | fi | |
1cf3d07d SE |
3721 | if test $gcc_cv_prog_makeinfo_modern = no; then |
3722 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
3723 | fi | |
748b9d7c DF |
3724 | |
3725 | ||
3726 | ||
3727 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then | |
3728 | BUILD_INFO_TRUE= | |
3729 | BUILD_INFO_FALSE='#' | |
3730 | else | |
3731 | BUILD_INFO_TRUE='#' | |
3732 | BUILD_INFO_FALSE= | |
3733 | fi | |
3734 | ||
3735 | ||
3736 | ||
953ff289 | 3737 | # Configure libtool |
6b4a97ed PG |
3738 | case `pwd` in |
3739 | *\ * | *\ *) | |
3740 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3741 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3742 | esac | |
1cf3d07d SE |
3743 | |
3744 | ||
1cf3d07d | 3745 | |
6b4a97ed PG |
3746 | macro_version='2.2.6' |
3747 | macro_revision='1.3012' | |
1cf3d07d SE |
3748 | |
3749 | ||
3750 | ||
3751 | ||
3752 | ||
3753 | ||
953ff289 | 3754 | |
1cf3d07d SE |
3755 | |
3756 | ||
3757 | ||
3758 | ||
3759 | ||
3760 | ||
6b4a97ed | 3761 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d SE |
3762 | |
3763 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3764 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3765 | if test "${lt_cv_path_SED+set}" = set; then | |
3766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3767 | else | |
3768 | # Loop through the user's path and test for sed and gsed. | |
3769 | # Then use that list of sed's as ones to test for truncation. | |
3770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3771 | for as_dir in $PATH | |
3772 | do | |
3773 | IFS=$as_save_IFS | |
3774 | test -z "$as_dir" && as_dir=. | |
3775 | for lt_ac_prog in sed gsed; do | |
3776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3777 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3778 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3779 | fi | |
3780 | done | |
3781 | done | |
3782 | done | |
3783 | IFS=$as_save_IFS | |
3784 | lt_ac_max=0 | |
3785 | lt_ac_count=0 | |
3786 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3787 | # along with /bin/sed that truncates output. | |
3788 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3789 | test ! -f $lt_ac_sed && continue | |
3790 | cat /dev/null > conftest.in | |
3791 | lt_ac_count=0 | |
3792 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3793 | # Check for GNU sed and select it if it is found. | |
3794 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3795 | lt_cv_path_SED=$lt_ac_sed | |
3796 | break | |
3797 | fi | |
3798 | while true; do | |
3799 | cat conftest.in conftest.in >conftest.tmp | |
3800 | mv conftest.tmp conftest.in | |
3801 | cp conftest.in conftest.nl | |
3802 | echo >>conftest.nl | |
3803 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3804 | cmp -s conftest.out conftest.nl || break | |
3805 | # 10000 chars as input seems more than enough | |
3806 | test $lt_ac_count -gt 10 && break | |
3807 | lt_ac_count=`expr $lt_ac_count + 1` | |
3808 | if test $lt_ac_count -gt $lt_ac_max; then | |
3809 | lt_ac_max=$lt_ac_count | |
3810 | lt_cv_path_SED=$lt_ac_sed | |
3811 | fi | |
3812 | done | |
3813 | done | |
3814 | ||
3815 | fi | |
3816 | ||
3817 | SED=$lt_cv_path_SED | |
3818 | ||
3819 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3820 | echo "${ECHO_T}$SED" >&6 | |
3821 | ||
3822 | test -z "$SED" && SED=sed | |
3823 | Xsed="$SED -e 1s/^X//" | |
3824 | ||
3825 | ||
3826 | ||
3827 | ||
3828 | ||
3829 | ||
3830 | ||
3831 | ||
3832 | ||
3833 | ||
3834 | ||
3835 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3836 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3837 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3839 | else | |
3840 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3841 | then ac_cv_prog_egrep='grep -E' | |
3842 | else ac_cv_prog_egrep='egrep' | |
3843 | fi | |
3844 | fi | |
3845 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3846 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3847 | EGREP=$ac_cv_prog_egrep | |
3848 | ||
3849 | ||
3850 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
3851 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
3852 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3854 | else | |
3855 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
3856 | then ac_cv_prog_fgrep='grep -F' | |
3857 | else ac_cv_prog_fgrep='fgrep' | |
3858 | fi | |
3859 | fi | |
3860 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
3861 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
3862 | FGREP=$ac_cv_prog_fgrep | |
3863 | ||
3864 | ||
3865 | test -z "$GREP" && GREP=grep | |
3866 | ||
3867 | ||
3868 | ||
3869 | ||
3870 | ||
3871 | ||
3872 | ||
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | ||
3878 | ||
3879 | ||
3880 | ||
3881 | ||
3882 | ||
3883 | ||
3884 | ||
953ff289 DN |
3885 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3886 | if test "${with_gnu_ld+set}" = set; then | |
3887 | withval="$with_gnu_ld" | |
3888 | test "$withval" = no || with_gnu_ld=yes | |
3889 | else | |
3890 | with_gnu_ld=no | |
3891 | fi; | |
3892 | ac_prog=ld | |
3893 | if test "$GCC" = yes; then | |
3894 | # Check if gcc -print-prog-name=ld gives a path. | |
1cf3d07d SE |
3895 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3896 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
953ff289 DN |
3897 | case $host in |
3898 | *-*-mingw*) | |
3899 | # gcc leaves a trailing carriage return which upsets mingw | |
3900 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3901 | *) | |
3902 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3903 | esac | |
3904 | case $ac_prog in | |
3905 | # Accept absolute paths. | |
1cf3d07d | 3906 | [\\/]* | ?:[\\/]*) |
953ff289 | 3907 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
3908 | # Canonicalize the pathname of ld |
3909 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3910 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3911 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
953ff289 DN |
3912 | done |
3913 | test -z "$LD" && LD="$ac_prog" | |
3914 | ;; | |
3915 | "") | |
3916 | # If it fails, then pretend we aren't using GCC. | |
3917 | ac_prog=ld | |
3918 | ;; | |
3919 | *) | |
3920 | # If it is relative, then search for the first ld in PATH. | |
3921 | with_gnu_ld=unknown | |
3922 | ;; | |
3923 | esac | |
3924 | elif test "$with_gnu_ld" = yes; then | |
3925 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3926 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3927 | else | |
3928 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3929 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3930 | fi | |
3931 | if test "${lt_cv_path_LD+set}" = set; then | |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3933 | else | |
3934 | if test -z "$LD"; then | |
1cf3d07d | 3935 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
953ff289 | 3936 | for ac_dir in $PATH; do |
1cf3d07d | 3937 | IFS="$lt_save_ifs" |
953ff289 DN |
3938 | test -z "$ac_dir" && ac_dir=. |
3939 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3940 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3941 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1cf3d07d | 3942 | # but apparently some variants of GNU ld only accept -v. |
953ff289 | 3943 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
3944 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3945 | *GNU* | *'with BFD'*) | |
953ff289 | 3946 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
3947 | ;; |
3948 | *) | |
953ff289 | 3949 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
3950 | ;; |
3951 | esac | |
953ff289 DN |
3952 | fi |
3953 | done | |
1cf3d07d | 3954 | IFS="$lt_save_ifs" |
953ff289 DN |
3955 | else |
3956 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3957 | fi | |
3958 | fi | |
3959 | ||
3960 | LD="$lt_cv_path_LD" | |
3961 | if test -n "$LD"; then | |
3962 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3963 | echo "${ECHO_T}$LD" >&6 | |
3964 | else | |
3965 | echo "$as_me:$LINENO: result: no" >&5 | |
3966 | echo "${ECHO_T}no" >&6 | |
3967 | fi | |
3968 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3969 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3970 | { (exit 1); exit 1; }; } | |
3971 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3972 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3973 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3975 | else | |
1cf3d07d SE |
3976 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3977 | case `$LD -v 2>&1 </dev/null` in | |
3978 | *GNU* | *'with BFD'*) | |
953ff289 | 3979 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
3980 | ;; |
3981 | *) | |
953ff289 | 3982 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
3983 | ;; |
3984 | esac | |
953ff289 DN |
3985 | fi |
3986 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3987 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3988 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3989 | ||
3990 | ||
953ff289 | 3991 | |
1cf3d07d SE |
3992 | |
3993 | ||
3994 | ||
3995 | ||
3996 | ||
3997 | ||
1cf3d07d SE |
3998 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
3999 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
953ff289 DN |
4000 | if test "${lt_cv_path_NM+set}" = set; then |
4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4002 | else | |
4003 | if test -n "$NM"; then | |
4004 | # Let the user override the test. | |
4005 | lt_cv_path_NM="$NM" | |
4006 | else | |
1cf3d07d SE |
4007 | lt_nm_to_check="${ac_tool_prefix}nm" |
4008 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4009 | lt_nm_to_check="$lt_nm_to_check nm" | |
4010 | fi | |
4011 | for lt_tmp_nm in $lt_nm_to_check; do | |
4012 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4013 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4014 | IFS="$lt_save_ifs" | |
4015 | test -z "$ac_dir" && ac_dir=. | |
4016 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4017 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4018 | # Check to see if the nm accepts a BSD-compat flag. | |
4019 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4020 | # nm: unknown option "B" ignored | |
4021 | # Tru64's nm complains that /dev/null is an invalid object file | |
4022 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4023 | */dev/null* | *'Invalid file or object type'*) | |
4024 | lt_cv_path_NM="$tmp_nm -B" | |
4025 | break | |
4026 | ;; | |
4027 | *) | |
4028 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4029 | */dev/null*) | |
4030 | lt_cv_path_NM="$tmp_nm -p" | |
4031 | break | |
4032 | ;; | |
4033 | *) | |
4034 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4035 | continue # so that we can try to find one that supports BSD flags | |
4036 | ;; | |
4037 | esac | |
4038 | ;; | |
4039 | esac | |
4040 | fi | |
4041 | done | |
4042 | IFS="$lt_save_ifs" | |
4043 | done | |
4044 | : ${lt_cv_path_NM=no} | |
4045 | fi | |
4046 | fi | |
4047 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4048 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4049 | if test "$lt_cv_path_NM" != "no"; then | |
4050 | NM="$lt_cv_path_NM" | |
4051 | else | |
4052 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4053 | if test -n "$ac_tool_prefix"; then | |
4054 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4055 | do | |
4056 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4057 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4060 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | if test -n "$DUMPBIN"; then | |
4064 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4065 | else | |
4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4067 | for as_dir in $PATH | |
4068 | do | |
4069 | IFS=$as_save_IFS | |
4070 | test -z "$as_dir" && as_dir=. | |
4071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4073 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4075 | break 2 | |
4076 | fi | |
4077 | done | |
4078 | done | |
4079 | ||
4080 | fi | |
4081 | fi | |
4082 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4083 | if test -n "$DUMPBIN"; then | |
4084 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4085 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4086 | else | |
4087 | echo "$as_me:$LINENO: result: no" >&5 | |
4088 | echo "${ECHO_T}no" >&6 | |
4089 | fi | |
4090 | ||
4091 | test -n "$DUMPBIN" && break | |
4092 | done | |
4093 | fi | |
4094 | if test -z "$DUMPBIN"; then | |
4095 | ac_ct_DUMPBIN=$DUMPBIN | |
4096 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4097 | do | |
4098 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4099 | set dummy $ac_prog; ac_word=$2 | |
4100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4102 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4104 | else | |
4105 | if test -n "$ac_ct_DUMPBIN"; then | |
4106 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4107 | else | |
4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4109 | for as_dir in $PATH | |
4110 | do | |
4111 | IFS=$as_save_IFS | |
4112 | test -z "$as_dir" && as_dir=. | |
4113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4115 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4117 | break 2 | |
4118 | fi | |
4119 | done | |
4120 | done | |
4121 | ||
4122 | fi | |
953ff289 | 4123 | fi |
1cf3d07d SE |
4124 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4125 | if test -n "$ac_ct_DUMPBIN"; then | |
4126 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4127 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4128 | else | |
4129 | echo "$as_me:$LINENO: result: no" >&5 | |
4130 | echo "${ECHO_T}no" >&6 | |
4131 | fi | |
4132 | ||
4133 | test -n "$ac_ct_DUMPBIN" && break | |
4134 | done | |
4135 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
4136 | ||
4137 | DUMPBIN=$ac_ct_DUMPBIN | |
4138 | fi | |
4139 | ||
4140 | ||
4141 | if test "$DUMPBIN" != ":"; then | |
4142 | NM="$DUMPBIN" | |
4143 | fi | |
953ff289 | 4144 | fi |
1cf3d07d SE |
4145 | test -z "$NM" && NM=nm |
4146 | ||
4147 | ||
4148 | ||
4149 | ||
4150 | ||
953ff289 | 4151 | |
1cf3d07d SE |
4152 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4153 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4154 | if test "${lt_cv_nm_interface+set}" = set; then | |
4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4156 | else | |
4157 | lt_cv_nm_interface="BSD nm" | |
4158 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6b4a97ed | 4159 | (eval echo "\"\$as_me:4159: $ac_compile\"" >&5) |
1cf3d07d SE |
4160 | (eval "$ac_compile" 2>conftest.err) |
4161 | cat conftest.err >&5 | |
6b4a97ed | 4162 | (eval echo "\"\$as_me:4162: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
4163 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4164 | cat conftest.err >&5 | |
6b4a97ed | 4165 | (eval echo "\"\$as_me:4165: output\"" >&5) |
1cf3d07d SE |
4166 | cat conftest.out >&5 |
4167 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4168 | lt_cv_nm_interface="MS dumpbin" | |
4169 | fi | |
4170 | rm -f conftest* | |
4171 | fi | |
4172 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4173 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
953ff289 DN |
4174 | |
4175 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4176 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4177 | LN_S=$as_ln_s | |
4178 | if test "$LN_S" = "ln -s"; then | |
4179 | echo "$as_me:$LINENO: result: yes" >&5 | |
4180 | echo "${ECHO_T}yes" >&6 | |
4181 | else | |
4182 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4183 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4184 | fi | |
4185 | ||
1cf3d07d SE |
4186 | # find the maximum length of command line arguments |
4187 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4188 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4189 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4191 | else | |
4192 | i=0 | |
4193 | teststring="ABCD" | |
4194 | ||
4195 | case $build_os in | |
4196 | msdosdjgpp*) | |
4197 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4198 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4199 | # during glob expansion). Even if it were fixed, the result of this | |
4200 | # check would be larger than it should be. | |
4201 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4202 | ;; | |
4203 | ||
4204 | gnu*) | |
4205 | # Under GNU Hurd, this test is not required because there is | |
4206 | # no limit to the length of command line arguments. | |
4207 | # Libtool will interpret -1 as no limit whatsoever | |
4208 | lt_cv_sys_max_cmd_len=-1; | |
4209 | ;; | |
4210 | ||
6b4a97ed | 4211 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
4212 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
4213 | # about 5 minutes as the teststring grows exponentially. | |
4214 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4215 | # you end up with a "frozen" computer, even though with patience | |
4216 | # the test eventually succeeds (with a max line length of 256k). | |
4217 | # Instead, let's just punt: use the minimum linelength reported by | |
4218 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4219 | lt_cv_sys_max_cmd_len=8192; | |
4220 | ;; | |
4221 | ||
4222 | amigaos*) | |
4223 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4224 | # So we just punt and use a minimum line length of 8192. | |
4225 | lt_cv_sys_max_cmd_len=8192; | |
4226 | ;; | |
4227 | ||
4228 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4229 | # This has been around since 386BSD, at least. Likely further. | |
4230 | if test -x /sbin/sysctl; then | |
4231 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4232 | elif test -x /usr/sbin/sysctl; then | |
4233 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4234 | else | |
4235 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4236 | fi | |
4237 | # And add a safety zone | |
4238 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4239 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4240 | ;; | |
4241 | ||
4242 | interix*) | |
4243 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4244 | lt_cv_sys_max_cmd_len=196608 | |
4245 | ;; | |
4246 | ||
4247 | osf*) | |
4248 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4249 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4250 | # nice to cause kernel panics so lets avoid the loop below. | |
4251 | # First set a reasonable default. | |
4252 | lt_cv_sys_max_cmd_len=16384 | |
4253 | # | |
4254 | if test -x /sbin/sysconfig; then | |
4255 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4256 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4257 | esac | |
4258 | fi | |
4259 | ;; | |
4260 | sco3.2v5*) | |
4261 | lt_cv_sys_max_cmd_len=102400 | |
4262 | ;; | |
4263 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4264 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4265 | if test -n "$kargmax"; then | |
4266 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4267 | else | |
4268 | lt_cv_sys_max_cmd_len=32768 | |
4269 | fi | |
4270 | ;; | |
4271 | *) | |
6b4a97ed PG |
4272 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
4273 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
4274 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4275 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4276 | else | |
4277 | # Make teststring a little bigger before we do anything with it. | |
4278 | # a 1K string should be a reasonable start. | |
4279 | for i in 1 2 3 4 5 6 7 8 ; do | |
4280 | teststring=$teststring$teststring | |
4281 | done | |
4282 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4283 | # If test is not a shell built-in, we'll probably end up computing a | |
4284 | # maximum length that is only half of the actual maximum length, but | |
4285 | # we can't tell. | |
4286 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4287 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4288 | test $i != 17 # 1/2 MB should be enough | |
4289 | do | |
4290 | i=`expr $i + 1` | |
4291 | teststring=$teststring$teststring | |
4292 | done | |
4293 | # Only check the string length outside the loop. | |
4294 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4295 | teststring= | |
4296 | # Add a significant safety factor because C++ compilers can tack on | |
4297 | # massive amounts of additional arguments before passing them to the | |
4298 | # linker. It appears as though 1/2 is a usable value. | |
4299 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4300 | fi | |
1cf3d07d SE |
4301 | ;; |
4302 | esac | |
4303 | ||
4304 | fi | |
4305 | ||
4306 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4307 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4308 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4309 | else | |
4310 | echo "$as_me:$LINENO: result: none" >&5 | |
4311 | echo "${ECHO_T}none" >&6 | |
4312 | fi | |
4313 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
1cf3d07d SE |
4320 | : ${CP="cp -f"} |
4321 | : ${MV="mv -f"} | |
4322 | : ${RM="rm -f"} | |
4323 | ||
4324 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4325 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4326 | # Try some XSI features | |
4327 | xsi_shell=no | |
4328 | ( _lt_dummy="a/b/c" | |
4329 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6b4a97ed PG |
4330 | = c,a/b,, \ |
4331 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4332 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d SE |
4333 | && xsi_shell=yes |
4334 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4335 | echo "${ECHO_T}$xsi_shell" >&6 | |
4336 | ||
4337 | ||
4338 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4339 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4340 | lt_shell_append=no | |
4341 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4342 | >/dev/null 2>&1 \ | |
4343 | && lt_shell_append=yes | |
4344 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4345 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4346 | ||
4347 | ||
4348 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4349 | lt_unset=unset | |
4350 | else | |
4351 | lt_unset=false | |
4352 | fi | |
4353 | ||
4354 | ||
4355 | ||
4356 | ||
4357 | ||
4358 | # test EBCDIC or ASCII | |
4359 | case `echo X|tr X '\101'` in | |
4360 | A) # ASCII based system | |
4361 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4362 | lt_SP2NL='tr \040 \012' | |
4363 | lt_NL2SP='tr \015\012 \040\040' | |
4364 | ;; | |
4365 | *) # EBCDIC based system | |
4366 | lt_SP2NL='tr \100 \n' | |
4367 | lt_NL2SP='tr \r\n \100\100' | |
4368 | ;; | |
4369 | esac | |
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | ||
4378 | ||
4379 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4380 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4381 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4383 | else | |
4384 | lt_cv_ld_reload_flag='-r' | |
4385 | fi | |
4386 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4387 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4388 | reload_flag=$lt_cv_ld_reload_flag | |
4389 | case $reload_flag in | |
4390 | "" | " "*) ;; | |
4391 | *) reload_flag=" $reload_flag" ;; | |
4392 | esac | |
4393 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4394 | case $host_os in | |
4395 | darwin*) | |
4396 | if test "$GCC" = yes; then | |
4397 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4398 | else | |
4399 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4400 | fi | |
4401 | ;; | |
4402 | esac | |
4403 | ||
4404 | ||
4405 | ||
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | ||
4411 | ||
6b4a97ed PG |
4412 | if test -n "$ac_tool_prefix"; then |
4413 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4414 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4417 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4419 | else | |
4420 | if test -n "$OBJDUMP"; then | |
4421 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4422 | else | |
4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4424 | for as_dir in $PATH | |
4425 | do | |
4426 | IFS=$as_save_IFS | |
4427 | test -z "$as_dir" && as_dir=. | |
4428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4430 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4432 | break 2 | |
4433 | fi | |
4434 | done | |
4435 | done | |
4436 | ||
4437 | fi | |
4438 | fi | |
4439 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4440 | if test -n "$OBJDUMP"; then | |
4441 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4442 | echo "${ECHO_T}$OBJDUMP" >&6 | |
4443 | else | |
4444 | echo "$as_me:$LINENO: result: no" >&5 | |
4445 | echo "${ECHO_T}no" >&6 | |
4446 | fi | |
4447 | ||
4448 | fi | |
4449 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4450 | ac_ct_OBJDUMP=$OBJDUMP | |
4451 | # Extract the first word of "objdump", so it can be a program name with args. | |
4452 | set dummy objdump; ac_word=$2 | |
4453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4455 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4457 | else | |
4458 | if test -n "$ac_ct_OBJDUMP"; then | |
4459 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4460 | else | |
4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 | for as_dir in $PATH | |
4463 | do | |
4464 | IFS=$as_save_IFS | |
4465 | test -z "$as_dir" && as_dir=. | |
4466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4468 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4470 | break 2 | |
4471 | fi | |
4472 | done | |
4473 | done | |
4474 | ||
4475 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
4476 | fi | |
4477 | fi | |
4478 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4479 | if test -n "$ac_ct_OBJDUMP"; then | |
4480 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4481 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | OBJDUMP=$ac_ct_OBJDUMP | |
4488 | else | |
4489 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4490 | fi | |
4491 | ||
4492 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4493 | ||
4494 | ||
4495 | ||
4496 | ||
4497 | ||
4498 | ||
4499 | ||
4500 | ||
1cf3d07d SE |
4501 | |
4502 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4503 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
953ff289 DN |
4504 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4506 | else | |
4507 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4508 | lt_cv_file_magic_test_file= | |
4509 | lt_cv_deplibs_check_method='unknown' | |
4510 | # Need to set the preceding variable on all platforms that support | |
4511 | # interlibrary dependencies. | |
4512 | # 'none' -- dependencies not supported. | |
4513 | # `unknown' -- same as none, but documents that we really don't know. | |
4514 | # 'pass_all' -- all dependencies passed with no checks. | |
4515 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
4516 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4517 | # which responds to the $file_magic_cmd with a given extended regex. | |
953ff289 DN |
4518 | # If you have `file' or equivalent on your system and you're not sure |
4519 | # whether `pass_all' will *always* work, you probably want this one. | |
4520 | ||
4521 | case $host_os in | |
d653fdfb | 4522 | aix[4-9]*) |
953ff289 DN |
4523 | lt_cv_deplibs_check_method=pass_all |
4524 | ;; | |
4525 | ||
4526 | beos*) | |
4527 | lt_cv_deplibs_check_method=pass_all | |
4528 | ;; | |
4529 | ||
1cf3d07d | 4530 | bsdi[45]*) |
953ff289 DN |
4531 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4532 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4533 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4534 | ;; | |
4535 | ||
1cf3d07d SE |
4536 | cygwin*) |
4537 | # func_win32_libid is a shell function defined in ltmain.sh | |
4538 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4539 | lt_cv_file_magic_cmd='func_win32_libid' | |
4540 | ;; | |
4541 | ||
4542 | mingw* | pw32*) | |
4543 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4544 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4545 | # unless we find 'file', for example because we are cross-compiling. | |
4546 | if ( file / ) >/dev/null 2>&1; then | |
4547 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4548 | lt_cv_file_magic_cmd='func_win32_libid' | |
4549 | else | |
4550 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4551 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4552 | fi | |
953ff289 DN |
4553 | ;; |
4554 | ||
6b4a97ed PG |
4555 | cegcc) |
4556 | # use the weaker test based on 'objdump'. See mingw*. | |
4557 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4558 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4559 | ;; | |
4560 | ||
953ff289 | 4561 | darwin* | rhapsody*) |
953ff289 DN |
4562 | lt_cv_deplibs_check_method=pass_all |
4563 | ;; | |
4564 | ||
1cf3d07d SE |
4565 | freebsd* | dragonfly*) |
4566 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
953ff289 DN |
4567 | case $host_cpu in |
4568 | i*86 ) | |
4569 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4570 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 4571 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
953ff289 DN |
4572 | lt_cv_file_magic_cmd=/usr/bin/file |
4573 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4574 | ;; | |
4575 | esac | |
4576 | else | |
4577 | lt_cv_deplibs_check_method=pass_all | |
4578 | fi | |
4579 | ;; | |
4580 | ||
4581 | gnu*) | |
4582 | lt_cv_deplibs_check_method=pass_all | |
4583 | ;; | |
4584 | ||
1cf3d07d SE |
4585 | hpux10.20* | hpux11*) |
4586 | lt_cv_file_magic_cmd=/usr/bin/file | |
953ff289 | 4587 | case $host_cpu in |
953ff289 DN |
4588 | ia64*) |
4589 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
953ff289 DN |
4590 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4591 | ;; | |
1cf3d07d SE |
4592 | hppa*64*) |
4593 | 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]' | |
4594 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
953ff289 DN |
4595 | ;; |
4596 | *) | |
1cf3d07d SE |
4597 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4598 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
953ff289 DN |
4599 | ;; |
4600 | esac | |
1cf3d07d SE |
4601 | ;; |
4602 | ||
4603 | interix[3-9]*) | |
4604 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4605 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4606 | ;; | |
4607 | ||
4608 | irix5* | irix6* | nonstopux*) | |
4609 | case $LD in | |
4610 | *-32|*"-32 ") libmagic=32-bit;; | |
4611 | *-n32|*"-n32 ") libmagic=N32;; | |
4612 | *-64|*"-64 ") libmagic=64-bit;; | |
4613 | *) libmagic=never-match;; | |
4614 | esac | |
953ff289 DN |
4615 | lt_cv_deplibs_check_method=pass_all |
4616 | ;; | |
4617 | ||
4618 | # This must be Linux ELF. | |
1cf3d07d | 4619 | linux* | k*bsd*-gnu) |
953ff289 DN |
4620 | lt_cv_deplibs_check_method=pass_all |
4621 | ;; | |
4622 | ||
1cf3d07d SE |
4623 | netbsd*) |
4624 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4625 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
953ff289 | 4626 | else |
1cf3d07d | 4627 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
953ff289 DN |
4628 | fi |
4629 | ;; | |
4630 | ||
1cf3d07d | 4631 | newos6*) |
953ff289 DN |
4632 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4633 | lt_cv_file_magic_cmd=/usr/bin/file | |
4634 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4635 | ;; | |
4636 | ||
1cf3d07d SE |
4637 | *nto* | *qnx*) |
4638 | lt_cv_deplibs_check_method=pass_all | |
4639 | ;; | |
4640 | ||
4641 | openbsd*) | |
4642 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4643 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4644 | else | |
4645 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4646 | fi | |
4647 | ;; | |
4648 | ||
953ff289 | 4649 | osf3* | osf4* | osf5*) |
953ff289 DN |
4650 | lt_cv_deplibs_check_method=pass_all |
4651 | ;; | |
4652 | ||
1cf3d07d | 4653 | rdos*) |
953ff289 DN |
4654 | lt_cv_deplibs_check_method=pass_all |
4655 | ;; | |
4656 | ||
4657 | solaris*) | |
4658 | lt_cv_deplibs_check_method=pass_all | |
953ff289 DN |
4659 | ;; |
4660 | ||
1cf3d07d | 4661 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
953ff289 DN |
4662 | lt_cv_deplibs_check_method=pass_all |
4663 | ;; | |
4664 | ||
1cf3d07d | 4665 | sysv4 | sysv4.3*) |
953ff289 | 4666 | case $host_vendor in |
953ff289 DN |
4667 | motorola) |
4668 | 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]' | |
4669 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4670 | ;; | |
1cf3d07d SE |
4671 | ncr) |
4672 | lt_cv_deplibs_check_method=pass_all | |
4673 | ;; | |
4674 | sequent) | |
4675 | lt_cv_file_magic_cmd='/bin/file' | |
4676 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4677 | ;; | |
4678 | sni) | |
4679 | lt_cv_file_magic_cmd='/bin/file' | |
4680 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4681 | lt_cv_file_magic_test_file=/lib/libc.so | |
4682 | ;; | |
4683 | siemens) | |
4684 | lt_cv_deplibs_check_method=pass_all | |
4685 | ;; | |
4686 | pc) | |
4687 | lt_cv_deplibs_check_method=pass_all | |
4688 | ;; | |
953ff289 DN |
4689 | esac |
4690 | ;; | |
1cf3d07d SE |
4691 | |
4692 | tpf*) | |
4693 | lt_cv_deplibs_check_method=pass_all | |
4694 | ;; | |
953ff289 DN |
4695 | esac |
4696 | ||
4697 | fi | |
4698 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4699 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4700 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4701 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 4702 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
953ff289 DN |
4703 | |
4704 | ||
4705 | ||
4706 | ||
4707 | ||
953ff289 | 4708 | |
953ff289 | 4709 | |
953ff289 | 4710 | |
953ff289 | 4711 | |
953ff289 | 4712 | |
953ff289 | 4713 | |
953ff289 DN |
4714 | |
4715 | if test -n "$ac_tool_prefix"; then | |
1cf3d07d SE |
4716 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4717 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
953ff289 DN |
4718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 4720 | if test "${ac_cv_prog_AR+set}" = set; then |
953ff289 DN |
4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4722 | else | |
1cf3d07d SE |
4723 | if test -n "$AR"; then |
4724 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
953ff289 DN |
4725 | else |
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4727 | for as_dir in $PATH | |
4728 | do | |
4729 | IFS=$as_save_IFS | |
4730 | test -z "$as_dir" && as_dir=. | |
4731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 4733 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
953ff289 DN |
4734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4735 | break 2 | |
4736 | fi | |
4737 | done | |
4738 | done | |
4739 | ||
4740 | fi | |
4741 | fi | |
1cf3d07d SE |
4742 | AR=$ac_cv_prog_AR |
4743 | if test -n "$AR"; then | |
4744 | echo "$as_me:$LINENO: result: $AR" >&5 | |
4745 | echo "${ECHO_T}$AR" >&6 | |
953ff289 DN |
4746 | else |
4747 | echo "$as_me:$LINENO: result: no" >&5 | |
4748 | echo "${ECHO_T}no" >&6 | |
4749 | fi | |
4750 | ||
4751 | fi | |
1cf3d07d SE |
4752 | if test -z "$ac_cv_prog_AR"; then |
4753 | ac_ct_AR=$AR | |
4754 | # Extract the first word of "ar", so it can be a program name with args. | |
4755 | set dummy ar; ac_word=$2 | |
953ff289 DN |
4756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 4758 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
953ff289 DN |
4759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4760 | else | |
1cf3d07d SE |
4761 | if test -n "$ac_ct_AR"; then |
4762 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
953ff289 DN |
4763 | else |
4764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4765 | for as_dir in $PATH | |
4766 | do | |
4767 | IFS=$as_save_IFS | |
4768 | test -z "$as_dir" && as_dir=. | |
4769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 4771 | ac_cv_prog_ac_ct_AR="ar" |
953ff289 DN |
4772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4773 | break 2 | |
4774 | fi | |
4775 | done | |
4776 | done | |
4777 | ||
1cf3d07d | 4778 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
953ff289 DN |
4779 | fi |
4780 | fi | |
1cf3d07d SE |
4781 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4782 | if test -n "$ac_ct_AR"; then | |
4783 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
4784 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
953ff289 DN |
4785 | else |
4786 | echo "$as_me:$LINENO: result: no" >&5 | |
4787 | echo "${ECHO_T}no" >&6 | |
4788 | fi | |
4789 | ||
1cf3d07d | 4790 | AR=$ac_ct_AR |
953ff289 | 4791 | else |
1cf3d07d | 4792 | AR="$ac_cv_prog_AR" |
953ff289 DN |
4793 | fi |
4794 | ||
1cf3d07d SE |
4795 | test -z "$AR" && AR=ar |
4796 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | ||
4807 | ||
953ff289 DN |
4808 | if test -n "$ac_tool_prefix"; then |
4809 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4810 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4813 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4815 | else | |
4816 | if test -n "$STRIP"; then | |
4817 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4818 | else | |
4819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4820 | for as_dir in $PATH | |
4821 | do | |
4822 | IFS=$as_save_IFS | |
4823 | test -z "$as_dir" && as_dir=. | |
4824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4826 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4828 | break 2 | |
4829 | fi | |
4830 | done | |
4831 | done | |
4832 | ||
4833 | fi | |
4834 | fi | |
4835 | STRIP=$ac_cv_prog_STRIP | |
4836 | if test -n "$STRIP"; then | |
4837 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4838 | echo "${ECHO_T}$STRIP" >&6 | |
4839 | else | |
4840 | echo "$as_me:$LINENO: result: no" >&5 | |
4841 | echo "${ECHO_T}no" >&6 | |
4842 | fi | |
4843 | ||
4844 | fi | |
4845 | if test -z "$ac_cv_prog_STRIP"; then | |
4846 | ac_ct_STRIP=$STRIP | |
4847 | # Extract the first word of "strip", so it can be a program name with args. | |
4848 | set dummy strip; ac_word=$2 | |
4849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4851 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4853 | else | |
4854 | if test -n "$ac_ct_STRIP"; then | |
4855 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4856 | else | |
4857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4858 | for as_dir in $PATH | |
4859 | do | |
4860 | IFS=$as_save_IFS | |
4861 | test -z "$as_dir" && as_dir=. | |
4862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4864 | ac_cv_prog_ac_ct_STRIP="strip" | |
4865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4866 | break 2 | |
4867 | fi | |
4868 | done | |
4869 | done | |
4870 | ||
4871 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4872 | fi | |
4873 | fi | |
4874 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4875 | if test -n "$ac_ct_STRIP"; then | |
4876 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4877 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4878 | else | |
4879 | echo "$as_me:$LINENO: result: no" >&5 | |
4880 | echo "${ECHO_T}no" >&6 | |
4881 | fi | |
4882 | ||
4883 | STRIP=$ac_ct_STRIP | |
4884 | else | |
4885 | STRIP="$ac_cv_prog_STRIP" | |
4886 | fi | |
4887 | ||
1cf3d07d | 4888 | test -z "$STRIP" && STRIP=: |
953ff289 DN |
4889 | |
4890 | ||
953ff289 | 4891 | |
953ff289 DN |
4892 | |
4893 | ||
953ff289 | 4894 | |
1cf3d07d SE |
4895 | if test -n "$ac_tool_prefix"; then |
4896 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4897 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4900 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4902 | else | |
4903 | if test -n "$RANLIB"; then | |
4904 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4905 | else | |
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4907 | for as_dir in $PATH | |
4908 | do | |
4909 | IFS=$as_save_IFS | |
4910 | test -z "$as_dir" && as_dir=. | |
4911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4913 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4915 | break 2 | |
4916 | fi | |
4917 | done | |
4918 | done | |
4919 | ||
4920 | fi | |
4921 | fi | |
4922 | RANLIB=$ac_cv_prog_RANLIB | |
4923 | if test -n "$RANLIB"; then | |
4924 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4925 | echo "${ECHO_T}$RANLIB" >&6 | |
4926 | else | |
4927 | echo "$as_me:$LINENO: result: no" >&5 | |
4928 | echo "${ECHO_T}no" >&6 | |
4929 | fi | |
4930 | ||
4931 | fi | |
4932 | if test -z "$ac_cv_prog_RANLIB"; then | |
4933 | ac_ct_RANLIB=$RANLIB | |
4934 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4935 | set dummy ranlib; ac_word=$2 | |
4936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4938 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4940 | else | |
4941 | if test -n "$ac_ct_RANLIB"; then | |
4942 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4943 | else | |
4944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4945 | for as_dir in $PATH | |
4946 | do | |
4947 | IFS=$as_save_IFS | |
4948 | test -z "$as_dir" && as_dir=. | |
4949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4951 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4953 | break 2 | |
4954 | fi | |
4955 | done | |
4956 | done | |
4957 | ||
4958 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4959 | fi | |
4960 | fi | |
4961 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4962 | if test -n "$ac_ct_RANLIB"; then | |
4963 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4964 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4965 | else | |
4966 | echo "$as_me:$LINENO: result: no" >&5 | |
4967 | echo "${ECHO_T}no" >&6 | |
4968 | fi | |
4969 | ||
4970 | RANLIB=$ac_ct_RANLIB | |
4971 | else | |
4972 | RANLIB="$ac_cv_prog_RANLIB" | |
4973 | fi | |
4974 | ||
4975 | test -z "$RANLIB" && RANLIB=: | |
4976 | ||
4977 | ||
4978 | ||
4979 | ||
4980 | ||
4981 | ||
4982 | # Determine commands to create old-style static archives. | |
6b4a97ed | 4983 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
4984 | old_postinstall_cmds='chmod 644 $oldlib' |
4985 | old_postuninstall_cmds= | |
4986 | ||
4987 | if test -n "$RANLIB"; then | |
4988 | case $host_os in | |
4989 | openbsd*) | |
4990 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4991 | ;; | |
4992 | *) | |
4993 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4994 | ;; | |
4995 | esac | |
4996 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4997 | fi | |
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | ||
5029 | ||
5030 | ||
5031 | ||
5032 | # If no C compiler was specified, use CC. | |
5033 | LTCC=${LTCC-"$CC"} | |
5034 | ||
5035 | # If no C compiler flags were specified, use CFLAGS. | |
5036 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5037 | ||
5038 | # Allow CC to be a program name with arguments. | |
5039 | compiler=$CC | |
5040 | ||
5041 | ||
5042 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5043 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5044 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5045 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5047 | else | |
5048 | ||
5049 | # These are sane defaults that work on at least a few old systems. | |
5050 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5051 | ||
5052 | # Character class describing NM global symbol codes. | |
5053 | symcode='[BCDEGRST]' | |
5054 | ||
5055 | # Regexp to match symbols that can be accessed directly from C. | |
5056 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5057 | ||
5058 | # Define system-specific variables. | |
5059 | case $host_os in | |
5060 | aix*) | |
5061 | symcode='[BCDT]' | |
5062 | ;; | |
6b4a97ed | 5063 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
5064 | symcode='[ABCDGISTW]' |
5065 | ;; | |
5066 | hpux*) | |
5067 | if test "$host_cpu" = ia64; then | |
5068 | symcode='[ABCDEGRST]' | |
5069 | fi | |
5070 | ;; | |
5071 | irix* | nonstopux*) | |
5072 | symcode='[BCDEGRST]' | |
5073 | ;; | |
5074 | osf*) | |
5075 | symcode='[BCDEGQRST]' | |
5076 | ;; | |
5077 | solaris*) | |
5078 | symcode='[BDRT]' | |
5079 | ;; | |
5080 | sco3.2v5*) | |
5081 | symcode='[DT]' | |
5082 | ;; | |
5083 | sysv4.2uw2*) | |
5084 | symcode='[DT]' | |
5085 | ;; | |
5086 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5087 | symcode='[ABDT]' | |
5088 | ;; | |
5089 | sysv4) | |
5090 | symcode='[DFNSTU]' | |
5091 | ;; | |
5092 | esac | |
5093 | ||
5094 | # If we're using GNU nm, then use its standard symbol codes. | |
5095 | case `$NM -V 2>&1` in | |
5096 | *GNU* | *'with BFD'*) | |
5097 | symcode='[ABCDGIRSTW]' ;; | |
5098 | esac | |
5099 | ||
5100 | # Transform an extracted symbol line into a proper C declaration. | |
5101 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5102 | # so use this general approach. | |
5103 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5104 | ||
5105 | # Transform an extracted symbol line into symbol name and symbol address | |
5106 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6b4a97ed | 5107 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
1cf3d07d SE |
5108 | |
5109 | # Handle CRLF in mingw tool chain | |
5110 | opt_cr= | |
5111 | case $build_os in | |
5112 | mingw*) | |
5113 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5114 | ;; | |
5115 | esac | |
5116 | ||
5117 | # Try without a prefix underscore, then with it. | |
5118 | for ac_symprfx in "" "_"; do | |
5119 | ||
5120 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5121 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5122 | ||
5123 | # Write the raw and C identifiers. | |
5124 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5125 | # Fake it for dumpbin and say T for any non-static function | |
5126 | # and D for any global variable. | |
5127 | # Also find C++ and __fastcall symbols from MSVC++, | |
5128 | # which start with @ or ?. | |
5129 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5130 | " {last_section=section; section=\$ 3};"\ | |
5131 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5132 | " \$ 0!~/External *\|/{next};"\ | |
5133 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5134 | " {if(hide[section]) next};"\ | |
5135 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5136 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5137 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5138 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5139 | " ' prfx=^$ac_symprfx" | |
5140 | else | |
5141 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5142 | fi | |
5143 | ||
5144 | # Check to see that the pipe works correctly. | |
5145 | pipe_works=no | |
5146 | ||
5147 | rm -f conftest* | |
5148 | cat > conftest.$ac_ext <<_LT_EOF | |
5149 | #ifdef __cplusplus | |
5150 | extern "C" { | |
5151 | #endif | |
5152 | char nm_test_var; | |
5153 | void nm_test_func(void); | |
5154 | void nm_test_func(void){} | |
5155 | #ifdef __cplusplus | |
5156 | } | |
5157 | #endif | |
5158 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5159 | _LT_EOF | |
5160 | ||
5161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5162 | (eval $ac_compile) 2>&5 | |
5163 | ac_status=$? | |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5165 | (exit $ac_status); }; then | |
5166 | # Now try to grab the symbols. | |
5167 | nlist=conftest.nm | |
5168 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5169 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5170 | ac_status=$? | |
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5172 | (exit $ac_status); } && test -s "$nlist"; then | |
5173 | # Try sorting and uniquifying the output. | |
5174 | if sort "$nlist" | uniq > "$nlist"T; then | |
5175 | mv -f "$nlist"T "$nlist" | |
5176 | else | |
5177 | rm -f "$nlist"T | |
5178 | fi | |
5179 | ||
5180 | # Make sure that we snagged all the symbols we need. | |
5181 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5182 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5183 | cat <<_LT_EOF > conftest.$ac_ext | |
5184 | #ifdef __cplusplus | |
5185 | extern "C" { | |
5186 | #endif | |
5187 | ||
5188 | _LT_EOF | |
5189 | # Now generate the symbol file. | |
5190 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5191 | ||
5192 | cat <<_LT_EOF >> conftest.$ac_ext | |
5193 | ||
5194 | /* The mapping between symbol names and symbols. */ | |
5195 | const struct { | |
5196 | const char *name; | |
5197 | void *address; | |
5198 | } | |
5199 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5200 | { | |
5201 | { "@PROGRAM@", (void *) 0 }, | |
5202 | _LT_EOF | |
5203 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5204 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5205 | {0, (void *) 0} | |
5206 | }; | |
5207 | ||
5208 | /* This works around a problem in FreeBSD linker */ | |
5209 | #ifdef FREEBSD_WORKAROUND | |
5210 | static const void *lt_preloaded_setup() { | |
5211 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5212 | } | |
5213 | #endif | |
5214 | ||
5215 | #ifdef __cplusplus | |
5216 | } | |
5217 | #endif | |
5218 | _LT_EOF | |
5219 | # Now try linking the two files. | |
5220 | mv conftest.$ac_objext conftstm.$ac_objext | |
5221 | lt_save_LIBS="$LIBS" | |
5222 | lt_save_CFLAGS="$CFLAGS" | |
5223 | LIBS="conftstm.$ac_objext" | |
5224 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5226 | (eval $ac_link) 2>&5 | |
5227 | ac_status=$? | |
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5229 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5230 | pipe_works=yes | |
5231 | fi | |
5232 | LIBS="$lt_save_LIBS" | |
5233 | CFLAGS="$lt_save_CFLAGS" | |
5234 | else | |
5235 | echo "cannot find nm_test_func in $nlist" >&5 | |
5236 | fi | |
5237 | else | |
5238 | echo "cannot find nm_test_var in $nlist" >&5 | |
5239 | fi | |
5240 | else | |
5241 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5242 | fi | |
5243 | else | |
5244 | echo "$progname: failed program was:" >&5 | |
5245 | cat conftest.$ac_ext >&5 | |
5246 | fi | |
6b4a97ed | 5247 | rm -rf conftest* conftst* |
1cf3d07d SE |
5248 | |
5249 | # Do not use the global_symbol_pipe unless it works. | |
5250 | if test "$pipe_works" = yes; then | |
5251 | break | |
5252 | else | |
5253 | lt_cv_sys_global_symbol_pipe= | |
5254 | fi | |
5255 | done | |
5256 | ||
5257 | fi | |
5258 | ||
5259 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5260 | lt_cv_sys_global_symbol_to_cdecl= | |
5261 | fi | |
5262 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5263 | echo "$as_me:$LINENO: result: failed" >&5 | |
5264 | echo "${ECHO_T}failed" >&6 | |
5265 | else | |
5266 | echo "$as_me:$LINENO: result: ok" >&5 | |
5267 | echo "${ECHO_T}ok" >&6 | |
5268 | fi | |
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
6b4a97ed PG |
5284 | |
5285 | ||
5286 | ||
5287 | ||
5288 | ||
1cf3d07d SE |
5289 | |
5290 | ||
5291 | ||
5292 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5293 | if test "${enable_libtool_lock+set}" = set; then | |
5294 | enableval="$enable_libtool_lock" | |
5295 | ||
5296 | fi; | |
5297 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5298 | ||
5299 | # Some flags need to be propagated to the compiler or linker for good | |
953ff289 DN |
5300 | # libtool support. |
5301 | case $host in | |
1cf3d07d | 5302 | ia64-*-hpux*) |
953ff289 | 5303 | # Find out which ABI we are using. |
1cf3d07d | 5304 | echo 'int i;' > conftest.$ac_ext |
953ff289 DN |
5305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5306 | (eval $ac_compile) 2>&5 | |
5307 | ac_status=$? | |
5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
5309 | (exit $ac_status); }; then |
5310 | case `/usr/bin/file conftest.$ac_objext` in | |
5311 | *ELF-32*) | |
5312 | HPUX_IA64_MODE="32" | |
5313 | ;; | |
5314 | *ELF-64*) | |
5315 | HPUX_IA64_MODE="64" | |
5316 | ;; | |
5317 | esac | |
5318 | fi | |
5319 | rm -rf conftest* | |
5320 | ;; | |
5321 | *-*-irix6*) | |
5322 | # Find out which ABI we are using. | |
6b4a97ed | 5323 | echo '#line 5323 "configure"' > conftest.$ac_ext |
1cf3d07d SE |
5324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5325 | (eval $ac_compile) 2>&5 | |
5326 | ac_status=$? | |
5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5328 | (exit $ac_status); }; then | |
5329 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5330 | case `/usr/bin/file conftest.$ac_objext` in | |
5331 | *32-bit*) | |
5332 | LD="${LD-ld} -melf32bsmip" | |
5333 | ;; | |
5334 | *N32*) | |
5335 | LD="${LD-ld} -melf32bmipn32" | |
5336 | ;; | |
5337 | *64-bit*) | |
5338 | LD="${LD-ld} -melf64bmip" | |
5339 | ;; | |
5340 | esac | |
5341 | else | |
5342 | case `/usr/bin/file conftest.$ac_objext` in | |
5343 | *32-bit*) | |
5344 | LD="${LD-ld} -32" | |
5345 | ;; | |
5346 | *N32*) | |
5347 | LD="${LD-ld} -n32" | |
5348 | ;; | |
5349 | *64-bit*) | |
5350 | LD="${LD-ld} -64" | |
5351 | ;; | |
5352 | esac | |
5353 | fi | |
5354 | fi | |
5355 | rm -rf conftest* | |
5356 | ;; | |
5357 | ||
5358 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5359 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5360 | # Find out which ABI we are using. | |
5361 | echo 'int i;' > conftest.$ac_ext | |
5362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5363 | (eval $ac_compile) 2>&5 | |
5364 | ac_status=$? | |
5365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5366 | (exit $ac_status); }; then | |
5367 | case `/usr/bin/file conftest.o` in | |
5368 | *32-bit*) | |
5369 | case $host in | |
5370 | x86_64-*kfreebsd*-gnu) | |
5371 | LD="${LD-ld} -m elf_i386_fbsd" | |
5372 | ;; | |
5373 | x86_64-*linux*) | |
5374 | LD="${LD-ld} -m elf_i386" | |
5375 | ;; | |
5376 | ppc64-*linux*|powerpc64-*linux*) | |
5377 | LD="${LD-ld} -m elf32ppclinux" | |
5378 | ;; | |
5379 | s390x-*linux*) | |
5380 | LD="${LD-ld} -m elf_s390" | |
5381 | ;; | |
5382 | sparc64-*linux*) | |
5383 | LD="${LD-ld} -m elf32_sparc" | |
5384 | ;; | |
5385 | esac | |
5386 | ;; | |
5387 | *64-bit*) | |
5388 | case $host in | |
5389 | x86_64-*kfreebsd*-gnu) | |
5390 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5391 | ;; | |
5392 | x86_64-*linux*) | |
5393 | LD="${LD-ld} -m elf_x86_64" | |
5394 | ;; | |
5395 | ppc*-*linux*|powerpc*-*linux*) | |
5396 | LD="${LD-ld} -m elf64ppc" | |
5397 | ;; | |
5398 | s390*-*linux*|s390*-*tpf*) | |
5399 | LD="${LD-ld} -m elf64_s390" | |
5400 | ;; | |
5401 | sparc*-*linux*) | |
5402 | LD="${LD-ld} -m elf64_sparc" | |
5403 | ;; | |
5404 | esac | |
5405 | ;; | |
5406 | esac | |
5407 | fi | |
5408 | rm -rf conftest* | |
5409 | ;; | |
5410 | ||
5411 | *-*-sco3.2v5*) | |
5412 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5413 | SAVE_CFLAGS="$CFLAGS" | |
5414 | CFLAGS="$CFLAGS -belf" | |
5415 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5416 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5417 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5419 | else | |
5420 | ac_ext=c | |
5421 | ac_cpp='$CPP $CPPFLAGS' | |
5422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5425 | ||
5426 | cat >conftest.$ac_ext <<_ACEOF | |
5427 | /* confdefs.h. */ | |
5428 | _ACEOF | |
5429 | cat confdefs.h >>conftest.$ac_ext | |
5430 | cat >>conftest.$ac_ext <<_ACEOF | |
5431 | /* end confdefs.h. */ | |
5432 | ||
5433 | int | |
5434 | main () | |
5435 | { | |
5436 | ||
5437 | ; | |
5438 | return 0; | |
5439 | } | |
5440 | _ACEOF | |
5441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5443 | (eval $ac_link) 2>conftest.er1 | |
5444 | ac_status=$? | |
5445 | grep -v '^ *+' conftest.er1 >conftest.err | |
5446 | rm -f conftest.er1 | |
5447 | cat conftest.err >&5 | |
5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5449 | (exit $ac_status); } && | |
5450 | { ac_try='test -z "$ac_c_werror_flag" | |
5451 | || test ! -s conftest.err' | |
5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5453 | (eval $ac_try) 2>&5 | |
5454 | ac_status=$? | |
5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5456 | (exit $ac_status); }; } && | |
5457 | { ac_try='test -s conftest$ac_exeext' | |
5458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5459 | (eval $ac_try) 2>&5 | |
5460 | ac_status=$? | |
5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5462 | (exit $ac_status); }; }; then | |
5463 | lt_cv_cc_needs_belf=yes | |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5467 | ||
5468 | lt_cv_cc_needs_belf=no | |
5469 | fi | |
5470 | rm -f conftest.err conftest.$ac_objext \ | |
5471 | conftest$ac_exeext conftest.$ac_ext | |
5472 | ac_ext=c | |
5473 | ac_cpp='$CPP $CPPFLAGS' | |
5474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5477 | ||
5478 | fi | |
5479 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5480 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5481 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5482 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5483 | CFLAGS="$SAVE_CFLAGS" | |
5484 | fi | |
5485 | ;; | |
5486 | sparc*-*solaris*) | |
5487 | # Find out which ABI we are using. | |
5488 | echo 'int i;' > conftest.$ac_ext | |
5489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5490 | (eval $ac_compile) 2>&5 | |
5491 | ac_status=$? | |
5492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5493 | (exit $ac_status); }; then | |
5494 | case `/usr/bin/file conftest.o` in | |
5495 | *64-bit*) | |
5496 | case $lt_cv_prog_gnu_ld in | |
5497 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6b4a97ed PG |
5498 | *) |
5499 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5500 | LD="${LD-ld} -64" | |
5501 | fi | |
5502 | ;; | |
1cf3d07d SE |
5503 | esac |
5504 | ;; | |
5505 | esac | |
5506 | fi | |
5507 | rm -rf conftest* | |
5508 | ;; | |
5509 | esac | |
5510 | ||
5511 | need_locks="$enable_libtool_lock" | |
5512 | ||
6b4a97ed PG |
5513 | |
5514 | case $host_os in | |
5515 | rhapsody* | darwin*) | |
5516 | if test -n "$ac_tool_prefix"; then | |
5517 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5518 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5521 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
1cf3d07d SE |
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5523 | else | |
6b4a97ed PG |
5524 | if test -n "$DSYMUTIL"; then |
5525 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5526 | else | |
5527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5528 | for as_dir in $PATH | |
1cf3d07d | 5529 | do |
6b4a97ed PG |
5530 | IFS=$as_save_IFS |
5531 | test -z "$as_dir" && as_dir=. | |
5532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5534 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5536 | break 2 | |
1cf3d07d | 5537 | fi |
6b4a97ed PG |
5538 | done |
5539 | done | |
5540 | ||
5541 | fi | |
5542 | fi | |
5543 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5544 | if test -n "$DSYMUTIL"; then | |
5545 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5546 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
5547 | else | |
5548 | echo "$as_me:$LINENO: result: no" >&5 | |
5549 | echo "${ECHO_T}no" >&6 | |
5550 | fi | |
5551 | ||
5552 | fi | |
5553 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5554 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5555 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5556 | set dummy dsymutil; ac_word=$2 | |
5557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5559 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5561 | else | |
5562 | if test -n "$ac_ct_DSYMUTIL"; then | |
5563 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5564 | else | |
5565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5566 | for as_dir in $PATH | |
5567 | do | |
5568 | IFS=$as_save_IFS | |
5569 | test -z "$as_dir" && as_dir=. | |
5570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5572 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5574 | break 2 | |
5575 | fi | |
5576 | done | |
5577 | done | |
5578 | ||
5579 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
5580 | fi | |
5581 | fi | |
5582 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5583 | if test -n "$ac_ct_DSYMUTIL"; then | |
5584 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5585 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
5586 | else | |
5587 | echo "$as_me:$LINENO: result: no" >&5 | |
5588 | echo "${ECHO_T}no" >&6 | |
5589 | fi | |
5590 | ||
5591 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5592 | else | |
5593 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5594 | fi | |
5595 | ||
5596 | if test -n "$ac_tool_prefix"; then | |
5597 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5598 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5601 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5603 | else | |
5604 | if test -n "$NMEDIT"; then | |
5605 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5606 | else | |
5607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5608 | for as_dir in $PATH | |
5609 | do | |
5610 | IFS=$as_save_IFS | |
5611 | test -z "$as_dir" && as_dir=. | |
5612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5614 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5616 | break 2 | |
5617 | fi | |
5618 | done | |
5619 | done | |
5620 | ||
5621 | fi | |
5622 | fi | |
5623 | NMEDIT=$ac_cv_prog_NMEDIT | |
5624 | if test -n "$NMEDIT"; then | |
5625 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
5626 | echo "${ECHO_T}$NMEDIT" >&6 | |
5627 | else | |
5628 | echo "$as_me:$LINENO: result: no" >&5 | |
5629 | echo "${ECHO_T}no" >&6 | |
5630 | fi | |
5631 | ||
5632 | fi | |
5633 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5634 | ac_ct_NMEDIT=$NMEDIT | |
5635 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5636 | set dummy nmedit; ac_word=$2 | |
5637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5639 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
5640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5641 | else | |
5642 | if test -n "$ac_ct_NMEDIT"; then | |
5643 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5644 | else | |
5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5646 | for as_dir in $PATH | |
5647 | do | |
5648 | IFS=$as_save_IFS | |
5649 | test -z "$as_dir" && as_dir=. | |
5650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5652 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5654 | break 2 | |
5655 | fi | |
5656 | done | |
5657 | done | |
5658 | ||
5659 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
5660 | fi | |
5661 | fi | |
5662 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5663 | if test -n "$ac_ct_NMEDIT"; then | |
5664 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
5665 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
5666 | else | |
5667 | echo "$as_me:$LINENO: result: no" >&5 | |
5668 | echo "${ECHO_T}no" >&6 | |
5669 | fi | |
5670 | ||
5671 | NMEDIT=$ac_ct_NMEDIT | |
5672 | else | |
5673 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5674 | fi | |
5675 | ||
5676 | if test -n "$ac_tool_prefix"; then | |
5677 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5678 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5681 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
5682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5683 | else | |
5684 | if test -n "$LIPO"; then | |
5685 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5686 | else | |
5687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5688 | for as_dir in $PATH | |
5689 | do | |
5690 | IFS=$as_save_IFS | |
5691 | test -z "$as_dir" && as_dir=. | |
5692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5694 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5696 | break 2 | |
5697 | fi | |
5698 | done | |
5699 | done | |
5700 | ||
5701 | fi | |
5702 | fi | |
5703 | LIPO=$ac_cv_prog_LIPO | |
5704 | if test -n "$LIPO"; then | |
5705 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
5706 | echo "${ECHO_T}$LIPO" >&6 | |
5707 | else | |
5708 | echo "$as_me:$LINENO: result: no" >&5 | |
5709 | echo "${ECHO_T}no" >&6 | |
5710 | fi | |
5711 | ||
5712 | fi | |
5713 | if test -z "$ac_cv_prog_LIPO"; then | |
5714 | ac_ct_LIPO=$LIPO | |
5715 | # Extract the first word of "lipo", so it can be a program name with args. | |
5716 | set dummy lipo; ac_word=$2 | |
5717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5719 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5721 | else | |
5722 | if test -n "$ac_ct_LIPO"; then | |
5723 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5724 | else | |
5725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5726 | for as_dir in $PATH | |
5727 | do | |
5728 | IFS=$as_save_IFS | |
5729 | test -z "$as_dir" && as_dir=. | |
5730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5732 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5734 | break 2 | |
5735 | fi | |
5736 | done | |
5737 | done | |
5738 | ||
5739 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
5740 | fi | |
5741 | fi | |
5742 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5743 | if test -n "$ac_ct_LIPO"; then | |
5744 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
5745 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
5746 | else | |
5747 | echo "$as_me:$LINENO: result: no" >&5 | |
5748 | echo "${ECHO_T}no" >&6 | |
5749 | fi | |
5750 | ||
5751 | LIPO=$ac_ct_LIPO | |
5752 | else | |
5753 | LIPO="$ac_cv_prog_LIPO" | |
5754 | fi | |
5755 | ||
5756 | if test -n "$ac_tool_prefix"; then | |
5757 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5758 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5761 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5763 | else | |
5764 | if test -n "$OTOOL"; then | |
5765 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5766 | else | |
5767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5768 | for as_dir in $PATH | |
5769 | do | |
5770 | IFS=$as_save_IFS | |
5771 | test -z "$as_dir" && as_dir=. | |
5772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5774 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5776 | break 2 | |
5777 | fi | |
5778 | done | |
5779 | done | |
5780 | ||
5781 | fi | |
5782 | fi | |
5783 | OTOOL=$ac_cv_prog_OTOOL | |
5784 | if test -n "$OTOOL"; then | |
5785 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
5786 | echo "${ECHO_T}$OTOOL" >&6 | |
5787 | else | |
5788 | echo "$as_me:$LINENO: result: no" >&5 | |
5789 | echo "${ECHO_T}no" >&6 | |
5790 | fi | |
5791 | ||
5792 | fi | |
5793 | if test -z "$ac_cv_prog_OTOOL"; then | |
5794 | ac_ct_OTOOL=$OTOOL | |
5795 | # Extract the first word of "otool", so it can be a program name with args. | |
5796 | set dummy otool; ac_word=$2 | |
5797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5799 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5801 | else | |
5802 | if test -n "$ac_ct_OTOOL"; then | |
5803 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5804 | else | |
5805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5806 | for as_dir in $PATH | |
5807 | do | |
5808 | IFS=$as_save_IFS | |
5809 | test -z "$as_dir" && as_dir=. | |
5810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5812 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5814 | break 2 | |
5815 | fi | |
5816 | done | |
5817 | done | |
5818 | ||
5819 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
5820 | fi | |
5821 | fi | |
5822 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5823 | if test -n "$ac_ct_OTOOL"; then | |
5824 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
5825 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
5826 | else | |
5827 | echo "$as_me:$LINENO: result: no" >&5 | |
5828 | echo "${ECHO_T}no" >&6 | |
5829 | fi | |
5830 | ||
5831 | OTOOL=$ac_ct_OTOOL | |
5832 | else | |
5833 | OTOOL="$ac_cv_prog_OTOOL" | |
5834 | fi | |
5835 | ||
5836 | if test -n "$ac_tool_prefix"; then | |
5837 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5838 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5841 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5843 | else | |
5844 | if test -n "$OTOOL64"; then | |
5845 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5846 | else | |
5847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5848 | for as_dir in $PATH | |
5849 | do | |
5850 | IFS=$as_save_IFS | |
5851 | test -z "$as_dir" && as_dir=. | |
5852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5854 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5856 | break 2 | |
5857 | fi | |
5858 | done | |
5859 | done | |
5860 | ||
5861 | fi | |
5862 | fi | |
5863 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5864 | if test -n "$OTOOL64"; then | |
5865 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
5866 | echo "${ECHO_T}$OTOOL64" >&6 | |
5867 | else | |
5868 | echo "$as_me:$LINENO: result: no" >&5 | |
5869 | echo "${ECHO_T}no" >&6 | |
5870 | fi | |
5871 | ||
5872 | fi | |
5873 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5874 | ac_ct_OTOOL64=$OTOOL64 | |
5875 | # Extract the first word of "otool64", so it can be a program name with args. | |
5876 | set dummy otool64; ac_word=$2 | |
5877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5879 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
5880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5881 | else | |
5882 | if test -n "$ac_ct_OTOOL64"; then | |
5883 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5884 | else | |
5885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5886 | for as_dir in $PATH | |
5887 | do | |
5888 | IFS=$as_save_IFS | |
5889 | test -z "$as_dir" && as_dir=. | |
5890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5892 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5894 | break 2 | |
5895 | fi | |
5896 | done | |
5897 | done | |
5898 | ||
5899 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
5900 | fi | |
5901 | fi | |
5902 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5903 | if test -n "$ac_ct_OTOOL64"; then | |
5904 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
5905 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
5906 | else | |
5907 | echo "$as_me:$LINENO: result: no" >&5 | |
5908 | echo "${ECHO_T}no" >&6 | |
5909 | fi | |
5910 | ||
5911 | OTOOL64=$ac_ct_OTOOL64 | |
5912 | else | |
5913 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5914 | fi | |
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
5943 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
5944 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5946 | else | |
5947 | lt_cv_apple_cc_single_mod=no | |
5948 | if test -z "${LT_MULTI_MODULE}"; then | |
5949 | # By default we will add the -single_module flag. You can override | |
5950 | # by either setting the environment variable LT_MULTI_MODULE | |
5951 | # non-empty at configure time, or by adding -multi_module to the | |
5952 | # link flags. | |
5953 | rm -rf libconftest.dylib* | |
5954 | echo "int foo(void){return 1;}" > conftest.c | |
5955 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5956 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5957 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5958 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5959 | _lt_result=$? | |
5960 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5961 | lt_cv_apple_cc_single_mod=yes | |
5962 | else | |
5963 | cat conftest.err >&5 | |
5964 | fi | |
5965 | rm -rf libconftest.dylib* | |
5966 | rm -f conftest.* | |
5967 | fi | |
5968 | fi | |
5969 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
5970 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
5971 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
5972 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
5973 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
5974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5975 | else | |
5976 | lt_cv_ld_exported_symbols_list=no | |
5977 | save_LDFLAGS=$LDFLAGS | |
5978 | echo "_main" > conftest.sym | |
5979 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5980 | cat >conftest.$ac_ext <<_ACEOF | |
5981 | /* confdefs.h. */ | |
5982 | _ACEOF | |
5983 | cat confdefs.h >>conftest.$ac_ext | |
5984 | cat >>conftest.$ac_ext <<_ACEOF | |
5985 | /* end confdefs.h. */ | |
5986 | ||
5987 | int | |
5988 | main () | |
5989 | { | |
5990 | ||
5991 | ; | |
5992 | return 0; | |
5993 | } | |
5994 | _ACEOF | |
5995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5997 | (eval $ac_link) 2>conftest.er1 | |
5998 | ac_status=$? | |
5999 | grep -v '^ *+' conftest.er1 >conftest.err | |
6000 | rm -f conftest.er1 | |
6001 | cat conftest.err >&5 | |
6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6003 | (exit $ac_status); } && | |
6004 | { ac_try='test -z "$ac_c_werror_flag" | |
6005 | || test ! -s conftest.err' | |
6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6007 | (eval $ac_try) 2>&5 | |
6008 | ac_status=$? | |
6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6010 | (exit $ac_status); }; } && | |
6011 | { ac_try='test -s conftest$ac_exeext' | |
6012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6013 | (eval $ac_try) 2>&5 | |
6014 | ac_status=$? | |
6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6016 | (exit $ac_status); }; }; then | |
6017 | lt_cv_ld_exported_symbols_list=yes | |
6018 | else | |
6019 | echo "$as_me: failed program was:" >&5 | |
6020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6021 | ||
6022 | lt_cv_ld_exported_symbols_list=no | |
6023 | fi | |
6024 | rm -f conftest.err conftest.$ac_objext \ | |
6025 | conftest$ac_exeext conftest.$ac_ext | |
6026 | LDFLAGS="$save_LDFLAGS" | |
6027 | ||
6028 | fi | |
6029 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6030 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 | |
6031 | case $host_os in | |
6032 | rhapsody* | darwin1.[012]) | |
6033 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6034 | darwin1.*) | |
6035 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6036 | darwin*) # darwin 5.x on | |
6037 | # if running on 10.5 or later, the deployment target defaults | |
6038 | # to the OS version, if on x86, and 10.4, the deployment | |
6039 | # target defaults to 10.4. Don't you love it? | |
6040 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6041 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6042 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6043 | 10.[012]*) | |
6044 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6045 | 10.*) | |
6046 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6047 | esac | |
6048 | ;; | |
6049 | esac | |
6050 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6051 | _lt_dar_single_mod='$single_module' | |
6052 | fi | |
6053 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6054 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6055 | else | |
6056 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6057 | fi | |
6058 | if test "$DSYMUTIL" != ":"; then | |
6059 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6060 | else | |
6061 | _lt_dsymutil= | |
6062 | fi | |
6063 | ;; | |
6064 | esac | |
6065 | ||
6066 | ac_ext=c | |
6067 | ac_cpp='$CPP $CPPFLAGS' | |
6068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6071 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6072 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
6073 | # On Suns, sometimes $CPP names a directory. | |
6074 | if test -n "$CPP" && test -d "$CPP"; then | |
6075 | CPP= | |
6076 | fi | |
6077 | if test -z "$CPP"; then | |
6078 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6080 | else | |
6081 | # Double quotes because CPP needs to be expanded | |
6082 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6083 | do | |
6084 | ac_preproc_ok=false | |
6085 | for ac_c_preproc_warn_flag in '' yes | |
6086 | do | |
6087 | # Use a header file that comes with gcc, so configuring glibc | |
6088 | # with a fresh cross-compiler works. | |
6089 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6090 | # <limits.h> exists even on freestanding compilers. | |
6091 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6092 | # not just through cpp. "Syntax error" is here to catch this case. | |
6093 | cat >conftest.$ac_ext <<_ACEOF | |
6094 | /* confdefs.h. */ | |
6095 | _ACEOF | |
6096 | cat confdefs.h >>conftest.$ac_ext | |
6097 | cat >>conftest.$ac_ext <<_ACEOF | |
6098 | /* end confdefs.h. */ | |
6099 | #ifdef __STDC__ | |
6100 | # include <limits.h> | |
6101 | #else | |
6102 | # include <assert.h> | |
6103 | #endif | |
6104 | Syntax error | |
6105 | _ACEOF | |
6106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6108 | ac_status=$? | |
6109 | grep -v '^ *+' conftest.er1 >conftest.err | |
6110 | rm -f conftest.er1 | |
6111 | cat conftest.err >&5 | |
6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6113 | (exit $ac_status); } >/dev/null; then | |
6114 | if test -s conftest.err; then | |
6115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6117 | else | |
6118 | ac_cpp_err= | |
6119 | fi | |
6120 | else | |
6121 | ac_cpp_err=yes | |
1cf3d07d SE |
6122 | fi |
6123 | if test -z "$ac_cpp_err"; then | |
6124 | : | |
6125 | else | |
6126 | echo "$as_me: failed program was:" >&5 | |
6127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6128 | ||
6129 | # Broken: fails on valid input. | |
6130 | continue | |
6131 | fi | |
6132 | rm -f conftest.err conftest.$ac_ext | |
6133 | ||
6134 | # OK, works on sane cases. Now check whether non-existent headers | |
6135 | # can be detected and how. | |
6136 | cat >conftest.$ac_ext <<_ACEOF | |
6137 | /* confdefs.h. */ | |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
6142 | #include <ac_nonexistent.h> | |
6143 | _ACEOF | |
6144 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6145 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6146 | ac_status=$? | |
6147 | grep -v '^ *+' conftest.er1 >conftest.err | |
6148 | rm -f conftest.er1 | |
6149 | cat conftest.err >&5 | |
6150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6151 | (exit $ac_status); } >/dev/null; then | |
6152 | if test -s conftest.err; then | |
6153 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6154 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6155 | else | |
6156 | ac_cpp_err= | |
6157 | fi | |
6158 | else | |
6159 | ac_cpp_err=yes | |
6160 | fi | |
6161 | if test -z "$ac_cpp_err"; then | |
6162 | # Broken: success on invalid input. | |
6163 | continue | |
6164 | else | |
6165 | echo "$as_me: failed program was:" >&5 | |
6166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6167 | ||
6168 | # Passes both tests. | |
6169 | ac_preproc_ok=: | |
6170 | break | |
6171 | fi | |
6172 | rm -f conftest.err conftest.$ac_ext | |
6173 | ||
6174 | done | |
6175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6176 | rm -f conftest.err conftest.$ac_ext | |
6177 | if $ac_preproc_ok; then | |
6178 | break | |
6179 | fi | |
6180 | ||
6181 | done | |
6182 | ac_cv_prog_CPP=$CPP | |
6183 | ||
6184 | fi | |
6185 | CPP=$ac_cv_prog_CPP | |
6186 | else | |
6187 | ac_cv_prog_CPP=$CPP | |
6188 | fi | |
6189 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
6190 | echo "${ECHO_T}$CPP" >&6 | |
6191 | ac_preproc_ok=false | |
6192 | for ac_c_preproc_warn_flag in '' yes | |
6193 | do | |
6194 | # Use a header file that comes with gcc, so configuring glibc | |
6195 | # with a fresh cross-compiler works. | |
6196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6197 | # <limits.h> exists even on freestanding compilers. | |
6198 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6199 | # not just through cpp. "Syntax error" is here to catch this case. | |
6200 | cat >conftest.$ac_ext <<_ACEOF | |
6201 | /* confdefs.h. */ | |
6202 | _ACEOF | |
6203 | cat confdefs.h >>conftest.$ac_ext | |
6204 | cat >>conftest.$ac_ext <<_ACEOF | |
6205 | /* end confdefs.h. */ | |
6206 | #ifdef __STDC__ | |
6207 | # include <limits.h> | |
6208 | #else | |
6209 | # include <assert.h> | |
6210 | #endif | |
6211 | Syntax error | |
6212 | _ACEOF | |
6213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6215 | ac_status=$? | |
6216 | grep -v '^ *+' conftest.er1 >conftest.err | |
6217 | rm -f conftest.er1 | |
6218 | cat conftest.err >&5 | |
6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6220 | (exit $ac_status); } >/dev/null; then | |
6221 | if test -s conftest.err; then | |
6222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6224 | else | |
6225 | ac_cpp_err= | |
6226 | fi | |
6227 | else | |
6228 | ac_cpp_err=yes | |
6229 | fi | |
6230 | if test -z "$ac_cpp_err"; then | |
6231 | : | |
6232 | else | |
6233 | echo "$as_me: failed program was:" >&5 | |
6234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6235 | ||
6236 | # Broken: fails on valid input. | |
6237 | continue | |
6238 | fi | |
6239 | rm -f conftest.err conftest.$ac_ext | |
6240 | ||
6241 | # OK, works on sane cases. Now check whether non-existent headers | |
6242 | # can be detected and how. | |
6243 | cat >conftest.$ac_ext <<_ACEOF | |
6244 | /* confdefs.h. */ | |
6245 | _ACEOF | |
6246 | cat confdefs.h >>conftest.$ac_ext | |
6247 | cat >>conftest.$ac_ext <<_ACEOF | |
6248 | /* end confdefs.h. */ | |
6249 | #include <ac_nonexistent.h> | |
6250 | _ACEOF | |
6251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6253 | ac_status=$? | |
6254 | grep -v '^ *+' conftest.er1 >conftest.err | |
6255 | rm -f conftest.er1 | |
6256 | cat conftest.err >&5 | |
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6258 | (exit $ac_status); } >/dev/null; then | |
6259 | if test -s conftest.err; then | |
6260 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6262 | else | |
6263 | ac_cpp_err= | |
6264 | fi | |
6265 | else | |
6266 | ac_cpp_err=yes | |
6267 | fi | |
6268 | if test -z "$ac_cpp_err"; then | |
6269 | # Broken: success on invalid input. | |
6270 | continue | |
6271 | else | |
6272 | echo "$as_me: failed program was:" >&5 | |
6273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6274 | ||
6275 | # Passes both tests. | |
6276 | ac_preproc_ok=: | |
6277 | break | |
6278 | fi | |
6279 | rm -f conftest.err conftest.$ac_ext | |
6280 | ||
6281 | done | |
6282 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6283 | rm -f conftest.err conftest.$ac_ext | |
6284 | if $ac_preproc_ok; then | |
6285 | : | |
6286 | else | |
18c04407 RW |
6287 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6288 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6289 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1cf3d07d SE |
6290 | See \`config.log' for more details." >&5 |
6291 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6292 | See \`config.log' for more details." >&2;} | |
18c04407 | 6293 | { (exit 1); exit 1; }; }; } |
1cf3d07d SE |
6294 | fi |
6295 | ||
6296 | ac_ext=c | |
6297 | ac_cpp='$CPP $CPPFLAGS' | |
6298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6301 | ||
6302 | ||
6303 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6304 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6305 | if test "${ac_cv_header_stdc+set}" = set; then | |
6306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6307 | else | |
6308 | cat >conftest.$ac_ext <<_ACEOF | |
6309 | /* confdefs.h. */ | |
6310 | _ACEOF | |
6311 | cat confdefs.h >>conftest.$ac_ext | |
6312 | cat >>conftest.$ac_ext <<_ACEOF | |
6313 | /* end confdefs.h. */ | |
6314 | #include <stdlib.h> | |
6315 | #include <stdarg.h> | |
6316 | #include <string.h> | |
6317 | #include <float.h> | |
6318 | ||
6319 | int | |
6320 | main () | |
6321 | { | |
6322 | ||
6323 | ; | |
6324 | return 0; | |
6325 | } | |
6326 | _ACEOF | |
6327 | rm -f conftest.$ac_objext | |
6328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6329 | (eval $ac_compile) 2>conftest.er1 | |
6330 | ac_status=$? | |
6331 | grep -v '^ *+' conftest.er1 >conftest.err | |
6332 | rm -f conftest.er1 | |
6333 | cat conftest.err >&5 | |
6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6335 | (exit $ac_status); } && | |
6336 | { ac_try='test -z "$ac_c_werror_flag" | |
6337 | || test ! -s conftest.err' | |
6338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6339 | (eval $ac_try) 2>&5 | |
6340 | ac_status=$? | |
6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6342 | (exit $ac_status); }; } && | |
6343 | { ac_try='test -s conftest.$ac_objext' | |
6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6345 | (eval $ac_try) 2>&5 | |
6346 | ac_status=$? | |
6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6348 | (exit $ac_status); }; }; then | |
6349 | ac_cv_header_stdc=yes | |
6350 | else | |
6351 | echo "$as_me: failed program was:" >&5 | |
6352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6353 | ||
6354 | ac_cv_header_stdc=no | |
6355 | fi | |
6356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6357 | ||
6358 | if test $ac_cv_header_stdc = yes; then | |
6359 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6360 | cat >conftest.$ac_ext <<_ACEOF | |
6361 | /* confdefs.h. */ | |
6362 | _ACEOF | |
6363 | cat confdefs.h >>conftest.$ac_ext | |
6364 | cat >>conftest.$ac_ext <<_ACEOF | |
6365 | /* end confdefs.h. */ | |
6366 | #include <string.h> | |
6367 | ||
6368 | _ACEOF | |
6369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6370 | $EGREP "memchr" >/dev/null 2>&1; then | |
6371 | : | |
6372 | else | |
6373 | ac_cv_header_stdc=no | |
6374 | fi | |
6375 | rm -f conftest* | |
6376 | ||
6377 | fi | |
6378 | ||
6379 | if test $ac_cv_header_stdc = yes; then | |
6380 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6381 | cat >conftest.$ac_ext <<_ACEOF | |
6382 | /* confdefs.h. */ | |
6383 | _ACEOF | |
6384 | cat confdefs.h >>conftest.$ac_ext | |
6385 | cat >>conftest.$ac_ext <<_ACEOF | |
6386 | /* end confdefs.h. */ | |
6387 | #include <stdlib.h> | |
6388 | ||
6389 | _ACEOF | |
6390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6391 | $EGREP "free" >/dev/null 2>&1; then | |
6392 | : | |
6393 | else | |
6394 | ac_cv_header_stdc=no | |
6395 | fi | |
6396 | rm -f conftest* | |
6397 | ||
6398 | fi | |
6399 | ||
6400 | if test $ac_cv_header_stdc = yes; then | |
6401 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6402 | if test "$cross_compiling" = yes; then | |
6403 | : | |
6404 | else | |
6405 | cat >conftest.$ac_ext <<_ACEOF | |
6406 | /* confdefs.h. */ | |
6407 | _ACEOF | |
6408 | cat confdefs.h >>conftest.$ac_ext | |
6409 | cat >>conftest.$ac_ext <<_ACEOF | |
6410 | /* end confdefs.h. */ | |
6411 | #include <ctype.h> | |
6412 | #if ((' ' & 0x0FF) == 0x020) | |
6413 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6414 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6415 | #else | |
6416 | # define ISLOWER(c) \ | |
6417 | (('a' <= (c) && (c) <= 'i') \ | |
6418 | || ('j' <= (c) && (c) <= 'r') \ | |
6419 | || ('s' <= (c) && (c) <= 'z')) | |
6420 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6421 | #endif | |
6422 | ||
6423 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6424 | int | |
6425 | main () | |
6426 | { | |
6427 | int i; | |
6428 | for (i = 0; i < 256; i++) | |
6429 | if (XOR (islower (i), ISLOWER (i)) | |
6430 | || toupper (i) != TOUPPER (i)) | |
6431 | exit(2); | |
6432 | exit (0); | |
6433 | } | |
6434 | _ACEOF | |
6435 | rm -f conftest$ac_exeext | |
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6437 | (eval $ac_link) 2>&5 | |
6438 | ac_status=$? | |
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6442 | (eval $ac_try) 2>&5 | |
6443 | ac_status=$? | |
6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6445 | (exit $ac_status); }; }; then | |
6446 | : | |
6447 | else | |
6448 | echo "$as_me: program exited with status $ac_status" >&5 | |
6449 | echo "$as_me: failed program was:" >&5 | |
6450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6451 | ||
6452 | ( exit $ac_status ) | |
6453 | ac_cv_header_stdc=no | |
6454 | fi | |
6455 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6456 | fi | |
6457 | fi | |
6458 | fi | |
6459 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6460 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6461 | if test $ac_cv_header_stdc = yes; then | |
6462 | ||
6463 | cat >>confdefs.h <<\_ACEOF | |
6464 | #define STDC_HEADERS 1 | |
6465 | _ACEOF | |
6466 | ||
6467 | fi | |
6468 | ||
6469 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6480 | inttypes.h stdint.h unistd.h | |
6481 | do | |
6482 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6487 | else | |
6488 | cat >conftest.$ac_ext <<_ACEOF | |
6489 | /* confdefs.h. */ | |
6490 | _ACEOF | |
6491 | cat confdefs.h >>conftest.$ac_ext | |
6492 | cat >>conftest.$ac_ext <<_ACEOF | |
6493 | /* end confdefs.h. */ | |
6494 | $ac_includes_default | |
6495 | ||
6496 | #include <$ac_header> | |
6497 | _ACEOF | |
6498 | rm -f conftest.$ac_objext | |
6499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6500 | (eval $ac_compile) 2>conftest.er1 | |
6501 | ac_status=$? | |
6502 | grep -v '^ *+' conftest.er1 >conftest.err | |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6506 | (exit $ac_status); } && | |
6507 | { ac_try='test -z "$ac_c_werror_flag" | |
6508 | || test ! -s conftest.err' | |
6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6510 | (eval $ac_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); }; } && | |
6514 | { ac_try='test -s conftest.$ac_objext' | |
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6516 | (eval $ac_try) 2>&5 | |
6517 | ac_status=$? | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | eval "$as_ac_Header=yes" | |
6521 | else | |
6522 | echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | eval "$as_ac_Header=no" | |
6526 | fi | |
6527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6528 | fi | |
6529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6532 | cat >>confdefs.h <<_ACEOF | |
6533 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6534 | _ACEOF | |
6535 | ||
6536 | fi | |
6537 | ||
6538 | done | |
6539 | ||
6540 | ||
6541 | ||
6542 | for ac_header in dlfcn.h | |
6543 | do | |
6544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6549 | else | |
6550 | cat >conftest.$ac_ext <<_ACEOF | |
6551 | /* confdefs.h. */ | |
6552 | _ACEOF | |
6553 | cat confdefs.h >>conftest.$ac_ext | |
6554 | cat >>conftest.$ac_ext <<_ACEOF | |
6555 | /* end confdefs.h. */ | |
6556 | $ac_includes_default | |
6557 | ||
6558 | #include <$ac_header> | |
6559 | _ACEOF | |
6560 | rm -f conftest.$ac_objext | |
6561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6562 | (eval $ac_compile) 2>conftest.er1 | |
6563 | ac_status=$? | |
6564 | grep -v '^ *+' conftest.er1 >conftest.err | |
6565 | rm -f conftest.er1 | |
6566 | cat conftest.err >&5 | |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 | (exit $ac_status); } && | |
6569 | { ac_try='test -z "$ac_c_werror_flag" | |
6570 | || test ! -s conftest.err' | |
6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6572 | (eval $ac_try) 2>&5 | |
6573 | ac_status=$? | |
6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6575 | (exit $ac_status); }; } && | |
6576 | { ac_try='test -s conftest.$ac_objext' | |
6577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6578 | (eval $ac_try) 2>&5 | |
6579 | ac_status=$? | |
6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6581 | (exit $ac_status); }; }; then | |
6582 | eval "$as_ac_Header=yes" | |
6583 | else | |
6584 | echo "$as_me: failed program was:" >&5 | |
6585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6586 | ||
6587 | eval "$as_ac_Header=no" | |
6588 | fi | |
6589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6590 | fi | |
6591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6594 | cat >>confdefs.h <<_ACEOF | |
6595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6596 | _ACEOF | |
6597 | ||
6598 | fi | |
6599 | ||
6600 | done | |
6601 | ||
6602 | ||
6603 | ||
6b4a97ed PG |
6604 | # Set options |
6605 | ||
6606 | ||
6607 | ||
6608 | enable_dlopen=no | |
6609 | ||
6610 | ||
6611 | enable_win32_dll=no | |
6612 | ||
6613 | ||
6614 | # Check whether --enable-shared or --disable-shared was given. | |
6615 | if test "${enable_shared+set}" = set; then | |
6616 | enableval="$enable_shared" | |
6617 | p=${PACKAGE-default} | |
6618 | case $enableval in | |
6619 | yes) enable_shared=yes ;; | |
6620 | no) enable_shared=no ;; | |
6621 | *) | |
6622 | enable_shared=no | |
6623 | # Look at the argument we got. We use all the common list separators. | |
6624 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6625 | for pkg in $enableval; do | |
6626 | IFS="$lt_save_ifs" | |
6627 | if test "X$pkg" = "X$p"; then | |
6628 | enable_shared=yes | |
6629 | fi | |
6630 | done | |
6631 | IFS="$lt_save_ifs" | |
6632 | ;; | |
6633 | esac | |
6634 | else | |
6635 | enable_shared=yes | |
6636 | fi; | |
6637 | ||
6638 | ||
6639 | ||
6640 | ||
6641 | ||
6642 | ||
6643 | ||
6644 | ||
6645 | # Check whether --enable-static or --disable-static was given. | |
6646 | if test "${enable_static+set}" = set; then | |
6647 | enableval="$enable_static" | |
6648 | p=${PACKAGE-default} | |
6649 | case $enableval in | |
6650 | yes) enable_static=yes ;; | |
6651 | no) enable_static=no ;; | |
6652 | *) | |
6653 | enable_static=no | |
6654 | # Look at the argument we got. We use all the common list separators. | |
6655 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6656 | for pkg in $enableval; do | |
6657 | IFS="$lt_save_ifs" | |
6658 | if test "X$pkg" = "X$p"; then | |
6659 | enable_static=yes | |
6660 | fi | |
6661 | done | |
6662 | IFS="$lt_save_ifs" | |
6663 | ;; | |
6664 | esac | |
6665 | else | |
6666 | enable_static=yes | |
6667 | fi; | |
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | # Check whether --with-pic or --without-pic was given. | |
6678 | if test "${with_pic+set}" = set; then | |
6679 | withval="$with_pic" | |
6680 | pic_mode="$withval" | |
6681 | else | |
6682 | pic_mode=default | |
6683 | fi; | |
6684 | ||
6685 | test -z "$pic_mode" && pic_mode=default | |
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | ||
6692 | ||
6693 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
6694 | if test "${enable_fast_install+set}" = set; then | |
6695 | enableval="$enable_fast_install" | |
6696 | p=${PACKAGE-default} | |
6697 | case $enableval in | |
6698 | yes) enable_fast_install=yes ;; | |
6699 | no) enable_fast_install=no ;; | |
6700 | *) | |
6701 | enable_fast_install=no | |
6702 | # Look at the argument we got. We use all the common list separators. | |
6703 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6704 | for pkg in $enableval; do | |
6705 | IFS="$lt_save_ifs" | |
6706 | if test "X$pkg" = "X$p"; then | |
6707 | enable_fast_install=yes | |
6708 | fi | |
6709 | done | |
6710 | IFS="$lt_save_ifs" | |
6711 | ;; | |
6712 | esac | |
6713 | else | |
6714 | enable_fast_install=yes | |
6715 | fi; | |
6716 | ||
6717 | ||
6718 | ||
6719 | ||
6720 | ||
6721 | ||
6722 | ||
6723 | ||
6724 | ||
6725 | ||
1cf3d07d SE |
6726 | # This can be used to rebuild libtool when needed |
6727 | LIBTOOL_DEPS="$ltmain" | |
6728 | ||
6729 | # Always use our own libtool. | |
6730 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6731 | ||
6732 | ||
6733 | ||
6734 | ||
6735 | ||
6736 | ||
6737 | ||
6738 | ||
6739 | ||
6740 | ||
6741 | ||
6742 | ||
6743 | ||
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
6750 | ||
6751 | ||
6752 | ||
6753 | ||
6754 | ||
6755 | ||
6756 | test -z "$LN_S" && LN_S="ln -s" | |
6757 | ||
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | ||
6769 | ||
6770 | ||
6771 | if test -n "${ZSH_VERSION+set}" ; then | |
6772 | setopt NO_GLOB_SUBST | |
6773 | fi | |
6774 | ||
6775 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6776 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6777 | if test "${lt_cv_objdir+set}" = set; then | |
6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6779 | else | |
6780 | rm -f .libs 2>/dev/null | |
6781 | mkdir .libs 2>/dev/null | |
6782 | if test -d .libs; then | |
6783 | lt_cv_objdir=.libs | |
6784 | else | |
6785 | # MS-DOS does not allow filenames that begin with a dot. | |
6786 | lt_cv_objdir=_libs | |
6787 | fi | |
6788 | rmdir .libs 2>/dev/null | |
6789 | fi | |
6790 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6791 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6792 | objdir=$lt_cv_objdir | |
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | cat >>confdefs.h <<_ACEOF | |
6799 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6800 | _ACEOF | |
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | case $host_os in | |
6819 | aix3*) | |
6820 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6821 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6822 | # vanish in a puff of smoke. | |
6823 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6824 | COLLECT_NAMES= | |
6825 | export COLLECT_NAMES | |
6826 | fi | |
6827 | ;; | |
6828 | esac | |
6829 | ||
6830 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6831 | # metacharacters that are still active within double-quoted strings. | |
6832 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6833 | ||
6834 | # Same as above, but do not quote variable references. | |
6835 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6836 | ||
6837 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6838 | # double_quote_subst'ed string. | |
6839 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6840 | ||
6841 | # Sed substitution to delay expansion of an escaped single quote. | |
6842 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6843 | ||
6844 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6845 | no_glob_subst='s/\*/\\\*/g' | |
6846 | ||
6847 | # Global variables: | |
6848 | ofile=libtool | |
6849 | can_build_shared=yes | |
6850 | ||
6851 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6852 | # which needs '.lib'). | |
6853 | libext=a | |
6854 | ||
6855 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6856 | ||
6857 | old_CC="$CC" | |
6858 | old_CFLAGS="$CFLAGS" | |
6859 | ||
6860 | # Set sane defaults for various variables | |
6861 | test -z "$CC" && CC=cc | |
6862 | test -z "$LTCC" && LTCC=$CC | |
6863 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6864 | test -z "$LD" && LD=ld | |
6865 | test -z "$ac_objext" && ac_objext=o | |
6866 | ||
6867 | for cc_temp in $compiler""; do | |
6868 | case $cc_temp in | |
6869 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6870 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6871 | \-*) ;; | |
6872 | *) break;; | |
6873 | esac | |
6874 | done | |
6875 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6876 | ||
6877 | ||
6878 | # Only perform the check for file, if the check method requires it | |
6879 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6880 | case $deplibs_check_method in | |
6881 | file_magic*) | |
6882 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6883 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6884 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6885 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6887 | else | |
6888 | case $MAGIC_CMD in | |
6889 | [\\/*] | ?:[\\/]*) | |
6890 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6891 | ;; | |
6892 | *) | |
6893 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6894 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6895 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6896 | for ac_dir in $ac_dummy; do | |
6897 | IFS="$lt_save_ifs" | |
6898 | test -z "$ac_dir" && ac_dir=. | |
6899 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6900 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6901 | if test -n "$file_magic_test_file"; then | |
6902 | case $deplibs_check_method in | |
6903 | "file_magic "*) | |
6904 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6905 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6906 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6907 | $EGREP "$file_magic_regex" > /dev/null; then | |
6908 | : | |
6909 | else | |
6910 | cat <<_LT_EOF 1>&2 | |
6911 | ||
6912 | *** Warning: the command libtool uses to detect shared libraries, | |
6913 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6914 | *** The result is that libtool may fail to recognize shared libraries | |
6915 | *** as such. This will affect the creation of libtool libraries that | |
6916 | *** depend on shared libraries, but programs linked with such libtool | |
6917 | *** libraries will work regardless of this problem. Nevertheless, you | |
6918 | *** may want to report the problem to your system manager and/or to | |
6919 | *** bug-libtool@gnu.org | |
6920 | ||
6921 | _LT_EOF | |
6922 | fi ;; | |
6923 | esac | |
6924 | fi | |
6925 | break | |
6926 | fi | |
6927 | done | |
6928 | IFS="$lt_save_ifs" | |
6929 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6930 | ;; | |
6931 | esac | |
6932 | fi | |
6933 | ||
6934 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6935 | if test -n "$MAGIC_CMD"; then | |
6936 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6937 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6938 | else | |
6939 | echo "$as_me:$LINENO: result: no" >&5 | |
6940 | echo "${ECHO_T}no" >&6 | |
6941 | fi | |
6942 | ||
6943 | ||
6944 | ||
6945 | ||
6946 | ||
6947 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6948 | if test -n "$ac_tool_prefix"; then | |
6949 | echo "$as_me:$LINENO: checking for file" >&5 | |
6950 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6951 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6953 | else | |
6954 | case $MAGIC_CMD in | |
6955 | [\\/*] | ?:[\\/]*) | |
6956 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6957 | ;; | |
6958 | *) | |
6959 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6960 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6961 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6962 | for ac_dir in $ac_dummy; do | |
6963 | IFS="$lt_save_ifs" | |
6964 | test -z "$ac_dir" && ac_dir=. | |
6965 | if test -f $ac_dir/file; then | |
6966 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6967 | if test -n "$file_magic_test_file"; then | |
6968 | case $deplibs_check_method in | |
6969 | "file_magic "*) | |
6970 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6971 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6972 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6973 | $EGREP "$file_magic_regex" > /dev/null; then | |
6974 | : | |
6975 | else | |
6976 | cat <<_LT_EOF 1>&2 | |
6977 | ||
6978 | *** Warning: the command libtool uses to detect shared libraries, | |
6979 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6980 | *** The result is that libtool may fail to recognize shared libraries | |
6981 | *** as such. This will affect the creation of libtool libraries that | |
6982 | *** depend on shared libraries, but programs linked with such libtool | |
6983 | *** libraries will work regardless of this problem. Nevertheless, you | |
6984 | *** may want to report the problem to your system manager and/or to | |
6985 | *** bug-libtool@gnu.org | |
6986 | ||
6987 | _LT_EOF | |
6988 | fi ;; | |
6989 | esac | |
6990 | fi | |
6991 | break | |
6992 | fi | |
6993 | done | |
6994 | IFS="$lt_save_ifs" | |
6995 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6996 | ;; | |
6997 | esac | |
6998 | fi | |
6999 | ||
7000 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7001 | if test -n "$MAGIC_CMD"; then | |
7002 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7003 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7004 | else | |
7005 | echo "$as_me:$LINENO: result: no" >&5 | |
7006 | echo "${ECHO_T}no" >&6 | |
7007 | fi | |
7008 | ||
7009 | ||
7010 | else | |
7011 | MAGIC_CMD=: | |
7012 | fi | |
7013 | fi | |
7014 | ||
7015 | fi | |
7016 | ;; | |
7017 | esac | |
7018 | ||
7019 | # Use C for the default configuration in the libtool script | |
7020 | ||
7021 | lt_save_CC="$CC" | |
7022 | ac_ext=c | |
7023 | ac_cpp='$CPP $CPPFLAGS' | |
7024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7027 | ||
7028 | ||
7029 | # Source file extension for C test sources. | |
7030 | ac_ext=c | |
7031 | ||
7032 | # Object file extension for compiled C test sources. | |
7033 | objext=o | |
7034 | objext=$objext | |
7035 | ||
7036 | # Code to be used in simple compile tests | |
7037 | lt_simple_compile_test_code="int some_variable = 0;" | |
7038 | ||
7039 | # Code to be used in simple link tests | |
7040 | lt_simple_link_test_code='int main(){return(0);}' | |
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | # If no C compiler was specified, use CC. | |
7049 | LTCC=${LTCC-"$CC"} | |
7050 | ||
7051 | # If no C compiler flags were specified, use CFLAGS. | |
7052 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7053 | ||
7054 | # Allow CC to be a program name with arguments. | |
7055 | compiler=$CC | |
7056 | ||
7057 | # Save the default compiler, since it gets overwritten when the other | |
7058 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7059 | compiler_DEFAULT=$CC | |
7060 | ||
7061 | # save warnings/boilerplate of simple test code | |
7062 | ac_outfile=conftest.$ac_objext | |
7063 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7064 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7065 | _lt_compiler_boilerplate=`cat conftest.err` | |
7066 | $RM conftest* | |
7067 | ||
7068 | ac_outfile=conftest.$ac_objext | |
7069 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7070 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7071 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 7072 | $RM -r conftest* |
1cf3d07d SE |
7073 | |
7074 | ||
7075 | ## CAVEAT EMPTOR: | |
7076 | ## There is no encapsulation within the following macros, do not change | |
7077 | ## the running order or otherwise move them around unless you know exactly | |
7078 | ## what you are doing... | |
7079 | if test -n "$compiler"; then | |
7080 | ||
7081 | lt_prog_compiler_no_builtin_flag= | |
7082 | ||
7083 | if test "$GCC" = yes; then | |
7084 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7085 | ||
7086 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7087 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7088 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7090 | else | |
7091 | lt_cv_prog_compiler_rtti_exceptions=no | |
7092 | ac_outfile=conftest.$ac_objext | |
7093 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7094 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7095 | # Insert the option either (1) after the last *FLAGS variable, or | |
7096 | # (2) before a word containing "conftest.", or (3) at the end. | |
7097 | # Note that $ac_compile itself does not contain backslashes and begins | |
7098 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7099 | # The option is referenced via a variable to avoid confusing sed. | |
7100 | lt_compile=`echo "$ac_compile" | $SED \ | |
7101 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7102 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7103 | -e 's:$: $lt_compiler_flag:'` | |
6b4a97ed | 7104 | (eval echo "\"\$as_me:7104: $lt_compile\"" >&5) |
1cf3d07d SE |
7105 | (eval "$lt_compile" 2>conftest.err) |
7106 | ac_status=$? | |
7107 | cat conftest.err >&5 | |
6b4a97ed | 7108 | echo "$as_me:7108: \$? = $ac_status" >&5 |
1cf3d07d SE |
7109 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7110 | # The compiler can only warn and ignore the option if not recognized | |
7111 | # So say no if there are warnings other than the usual output. | |
7112 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7113 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7114 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7115 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7116 | fi | |
7117 | fi | |
7118 | $RM conftest* | |
7119 | ||
7120 | fi | |
7121 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7122 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
7123 | ||
7124 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7125 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7126 | else | |
7127 | : | |
7128 | fi | |
7129 | ||
7130 | fi | |
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | lt_prog_compiler_wl= | |
7138 | lt_prog_compiler_pic= | |
7139 | lt_prog_compiler_static= | |
7140 | ||
7141 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7142 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
7143 | ||
7144 | if test "$GCC" = yes; then | |
7145 | lt_prog_compiler_wl='-Wl,' | |
7146 | lt_prog_compiler_static='-static' | |
7147 | ||
7148 | case $host_os in | |
7149 | aix*) | |
7150 | # All AIX code is PIC. | |
7151 | if test "$host_cpu" = ia64; then | |
7152 | # AIX 5 now supports IA64 processor | |
7153 | lt_prog_compiler_static='-Bstatic' | |
7154 | fi | |
7155 | ;; | |
7156 | ||
7157 | amigaos*) | |
6b4a97ed PG |
7158 | case $host_cpu in |
7159 | powerpc) | |
7160 | # see comment about AmigaOS4 .so support | |
7161 | lt_prog_compiler_pic='-fPIC' | |
7162 | ;; | |
7163 | m68k) | |
7164 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7165 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7166 | # like `-m68040'. | |
7167 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7168 | ;; | |
7169 | esac | |
1cf3d07d SE |
7170 | ;; |
7171 | ||
7172 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7173 | # PIC is the default for these OSes. | |
7174 | ;; | |
7175 | ||
6b4a97ed | 7176 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7177 | # This hack is so that the source file can tell whether it is being |
7178 | # built for inclusion in a dll (and should export symbols for example). | |
7179 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7180 | # (--disable-auto-import) libraries | |
7181 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7182 | ;; | |
7183 | ||
7184 | darwin* | rhapsody*) | |
7185 | # PIC is the default on this platform | |
7186 | # Common symbols not allowed in MH_DYLIB files | |
7187 | lt_prog_compiler_pic='-fno-common' | |
7188 | ;; | |
7189 | ||
7190 | hpux*) | |
6b4a97ed PG |
7191 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7192 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7193 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 7194 | case $host_cpu in |
6b4a97ed | 7195 | hppa*64*) |
1cf3d07d SE |
7196 | # +Z the default |
7197 | ;; | |
7198 | *) | |
7199 | lt_prog_compiler_pic='-fPIC' | |
7200 | ;; | |
7201 | esac | |
7202 | ;; | |
7203 | ||
7204 | interix[3-9]*) | |
7205 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7206 | # Instead, we relocate shared libraries at runtime. | |
7207 | ;; | |
7208 | ||
7209 | msdosdjgpp*) | |
7210 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7211 | # on systems that don't support them. | |
7212 | lt_prog_compiler_can_build_shared=no | |
7213 | enable_shared=no | |
7214 | ;; | |
7215 | ||
7216 | *nto* | *qnx*) | |
7217 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7218 | # it will coredump. | |
7219 | lt_prog_compiler_pic='-fPIC -shared' | |
7220 | ;; | |
7221 | ||
7222 | sysv4*MP*) | |
7223 | if test -d /usr/nec; then | |
7224 | lt_prog_compiler_pic=-Kconform_pic | |
7225 | fi | |
7226 | ;; | |
7227 | ||
7228 | *) | |
7229 | lt_prog_compiler_pic='-fPIC' | |
7230 | ;; | |
7231 | esac | |
7232 | else | |
7233 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7234 | case $host_os in | |
7235 | aix*) | |
7236 | lt_prog_compiler_wl='-Wl,' | |
7237 | if test "$host_cpu" = ia64; then | |
7238 | # AIX 5 now supports IA64 processor | |
7239 | lt_prog_compiler_static='-Bstatic' | |
7240 | else | |
7241 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7242 | fi | |
7243 | ;; | |
1cf3d07d | 7244 | |
6b4a97ed | 7245 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7246 | # This hack is so that the source file can tell whether it is being |
7247 | # built for inclusion in a dll (and should export symbols for example). | |
7248 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7249 | ;; | |
7250 | ||
7251 | hpux9* | hpux10* | hpux11*) | |
7252 | lt_prog_compiler_wl='-Wl,' | |
7253 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7254 | # not for PA HP-UX. | |
7255 | case $host_cpu in | |
7256 | hppa*64*|ia64*) | |
7257 | # +Z the default | |
7258 | ;; | |
7259 | *) | |
7260 | lt_prog_compiler_pic='+Z' | |
7261 | ;; | |
7262 | esac | |
7263 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7264 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7265 | ;; | |
7266 | ||
7267 | irix5* | irix6* | nonstopux*) | |
7268 | lt_prog_compiler_wl='-Wl,' | |
7269 | # PIC (with -KPIC) is the default. | |
7270 | lt_prog_compiler_static='-non_shared' | |
7271 | ;; | |
7272 | ||
7273 | linux* | k*bsd*-gnu) | |
7274 | case $cc_basename in | |
6b4a97ed PG |
7275 | # old Intel for x86_64 which still supported -KPIC. |
7276 | ecc*) | |
1cf3d07d SE |
7277 | lt_prog_compiler_wl='-Wl,' |
7278 | lt_prog_compiler_pic='-KPIC' | |
7279 | lt_prog_compiler_static='-static' | |
7280 | ;; | |
6b4a97ed PG |
7281 | # icc used to be incompatible with GCC. |
7282 | # ICC 10 doesn't accept -KPIC any more. | |
7283 | icc* | ifort*) | |
7284 | lt_prog_compiler_wl='-Wl,' | |
7285 | lt_prog_compiler_pic='-fPIC' | |
7286 | lt_prog_compiler_static='-static' | |
7287 | ;; | |
7288 | # Lahey Fortran 8.1. | |
7289 | lf95*) | |
7290 | lt_prog_compiler_wl='-Wl,' | |
7291 | lt_prog_compiler_pic='--shared' | |
7292 | lt_prog_compiler_static='--static' | |
7293 | ;; | |
1cf3d07d SE |
7294 | pgcc* | pgf77* | pgf90* | pgf95*) |
7295 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7296 | # which looks to be a dead project) | |
7297 | lt_prog_compiler_wl='-Wl,' | |
7298 | lt_prog_compiler_pic='-fpic' | |
7299 | lt_prog_compiler_static='-Bstatic' | |
7300 | ;; | |
7301 | ccc*) | |
7302 | lt_prog_compiler_wl='-Wl,' | |
7303 | # All Alpha code is PIC. | |
7304 | lt_prog_compiler_static='-non_shared' | |
7305 | ;; | |
6b4a97ed PG |
7306 | xl*) |
7307 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7308 | lt_prog_compiler_wl='-Wl,' | |
7309 | lt_prog_compiler_pic='-qpic' | |
7310 | lt_prog_compiler_static='-qstaticlink' | |
7311 | ;; | |
1cf3d07d SE |
7312 | *) |
7313 | case `$CC -V 2>&1 | sed 5q` in | |
7314 | *Sun\ C*) | |
7315 | # Sun C 5.9 | |
7316 | lt_prog_compiler_pic='-KPIC' | |
7317 | lt_prog_compiler_static='-Bstatic' | |
7318 | lt_prog_compiler_wl='-Wl,' | |
7319 | ;; | |
7320 | *Sun\ F*) | |
7321 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7322 | lt_prog_compiler_pic='-KPIC' | |
7323 | lt_prog_compiler_static='-Bstatic' | |
7324 | lt_prog_compiler_wl='' | |
7325 | ;; | |
7326 | esac | |
7327 | ;; | |
7328 | esac | |
7329 | ;; | |
7330 | ||
7331 | newsos6) | |
7332 | lt_prog_compiler_pic='-KPIC' | |
7333 | lt_prog_compiler_static='-Bstatic' | |
7334 | ;; | |
7335 | ||
7336 | *nto* | *qnx*) | |
7337 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7338 | # it will coredump. | |
7339 | lt_prog_compiler_pic='-fPIC -shared' | |
7340 | ;; | |
7341 | ||
7342 | osf3* | osf4* | osf5*) | |
7343 | lt_prog_compiler_wl='-Wl,' | |
7344 | # All OSF/1 code is PIC. | |
7345 | lt_prog_compiler_static='-non_shared' | |
7346 | ;; | |
7347 | ||
7348 | rdos*) | |
7349 | lt_prog_compiler_static='-non_shared' | |
7350 | ;; | |
7351 | ||
7352 | solaris*) | |
7353 | lt_prog_compiler_pic='-KPIC' | |
7354 | lt_prog_compiler_static='-Bstatic' | |
7355 | case $cc_basename in | |
7356 | f77* | f90* | f95*) | |
7357 | lt_prog_compiler_wl='-Qoption ld ';; | |
7358 | *) | |
7359 | lt_prog_compiler_wl='-Wl,';; | |
7360 | esac | |
7361 | ;; | |
7362 | ||
7363 | sunos4*) | |
7364 | lt_prog_compiler_wl='-Qoption ld ' | |
7365 | lt_prog_compiler_pic='-PIC' | |
7366 | lt_prog_compiler_static='-Bstatic' | |
7367 | ;; | |
7368 | ||
7369 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7370 | lt_prog_compiler_wl='-Wl,' | |
7371 | lt_prog_compiler_pic='-KPIC' | |
7372 | lt_prog_compiler_static='-Bstatic' | |
7373 | ;; | |
7374 | ||
7375 | sysv4*MP*) | |
7376 | if test -d /usr/nec ;then | |
7377 | lt_prog_compiler_pic='-Kconform_pic' | |
7378 | lt_prog_compiler_static='-Bstatic' | |
7379 | fi | |
7380 | ;; | |
7381 | ||
7382 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7383 | lt_prog_compiler_wl='-Wl,' | |
7384 | lt_prog_compiler_pic='-KPIC' | |
7385 | lt_prog_compiler_static='-Bstatic' | |
7386 | ;; | |
7387 | ||
7388 | unicos*) | |
7389 | lt_prog_compiler_wl='-Wl,' | |
7390 | lt_prog_compiler_can_build_shared=no | |
7391 | ;; | |
7392 | ||
7393 | uts4*) | |
7394 | lt_prog_compiler_pic='-pic' | |
7395 | lt_prog_compiler_static='-Bstatic' | |
7396 | ;; | |
7397 | ||
7398 | *) | |
7399 | lt_prog_compiler_can_build_shared=no | |
7400 | ;; | |
7401 | esac | |
7402 | fi | |
7403 | ||
7404 | case $host_os in | |
7405 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7406 | *djgpp*) | |
7407 | lt_prog_compiler_pic= | |
7408 | ;; | |
7409 | *) | |
7410 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7411 | ;; | |
7412 | esac | |
7413 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7414 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
7415 | ||
7416 | ||
7417 | ||
7418 | ||
7419 | ||
7420 | ||
7421 | # | |
7422 | # Check to make sure the PIC flag actually works. | |
7423 | # | |
7424 | if test -n "$lt_prog_compiler_pic"; then | |
7425 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7426 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6b4a97ed | 7427 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
1cf3d07d SE |
7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7429 | else | |
6b4a97ed | 7430 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
7431 | ac_outfile=conftest.$ac_objext |
7432 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7433 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7434 | # Insert the option either (1) after the last *FLAGS variable, or | |
7435 | # (2) before a word containing "conftest.", or (3) at the end. | |
7436 | # Note that $ac_compile itself does not contain backslashes and begins | |
7437 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7438 | # The option is referenced via a variable to avoid confusing sed. | |
7439 | lt_compile=`echo "$ac_compile" | $SED \ | |
7440 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7441 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7442 | -e 's:$: $lt_compiler_flag:'` | |
6b4a97ed | 7443 | (eval echo "\"\$as_me:7443: $lt_compile\"" >&5) |
1cf3d07d SE |
7444 | (eval "$lt_compile" 2>conftest.err) |
7445 | ac_status=$? | |
7446 | cat conftest.err >&5 | |
6b4a97ed | 7447 | echo "$as_me:7447: \$? = $ac_status" >&5 |
1cf3d07d SE |
7448 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7449 | # The compiler can only warn and ignore the option if not recognized | |
7450 | # So say no if there are warnings other than the usual output. | |
7451 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7452 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7453 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 7454 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
7455 | fi |
7456 | fi | |
7457 | $RM conftest* | |
7458 | ||
7459 | fi | |
6b4a97ed PG |
7460 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
7461 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
1cf3d07d | 7462 | |
6b4a97ed | 7463 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
7464 | case $lt_prog_compiler_pic in |
7465 | "" | " "*) ;; | |
7466 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7467 | esac | |
7468 | else | |
7469 | lt_prog_compiler_pic= | |
7470 | lt_prog_compiler_can_build_shared=no | |
7471 | fi | |
7472 | ||
7473 | fi | |
7474 | ||
7475 | ||
7476 | ||
7477 | ||
7478 | ||
7479 | ||
7480 | # | |
7481 | # Check to make sure the static flag actually works. | |
7482 | # | |
7483 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7484 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7485 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
6b4a97ed | 7486 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
1cf3d07d SE |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7488 | else | |
6b4a97ed | 7489 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
7490 | save_LDFLAGS="$LDFLAGS" |
7491 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7492 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7493 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7494 | # The linker can only warn and ignore the option if not recognized | |
7495 | # So say no if there are warnings | |
7496 | if test -s conftest.err; then | |
7497 | # Append any errors to the config.log. | |
7498 | cat conftest.err 1>&5 | |
7499 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7500 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7501 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 7502 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
7503 | fi |
7504 | else | |
6b4a97ed | 7505 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
7506 | fi |
7507 | fi | |
6b4a97ed | 7508 | $RM -r conftest* |
1cf3d07d SE |
7509 | LDFLAGS="$save_LDFLAGS" |
7510 | ||
7511 | fi | |
6b4a97ed PG |
7512 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
7513 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
1cf3d07d | 7514 | |
6b4a97ed | 7515 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
7516 | : |
7517 | else | |
7518 | lt_prog_compiler_static= | |
7519 | fi | |
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7528 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7529 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7531 | else | |
7532 | lt_cv_prog_compiler_c_o=no | |
7533 | $RM -r conftest 2>/dev/null | |
7534 | mkdir conftest | |
7535 | cd conftest | |
7536 | mkdir out | |
7537 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7538 | ||
7539 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7540 | # Insert the option either (1) after the last *FLAGS variable, or | |
7541 | # (2) before a word containing "conftest.", or (3) at the end. | |
7542 | # Note that $ac_compile itself does not contain backslashes and begins | |
7543 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7544 | lt_compile=`echo "$ac_compile" | $SED \ | |
7545 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7546 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7547 | -e 's:$: $lt_compiler_flag:'` | |
6b4a97ed | 7548 | (eval echo "\"\$as_me:7548: $lt_compile\"" >&5) |
1cf3d07d SE |
7549 | (eval "$lt_compile" 2>out/conftest.err) |
7550 | ac_status=$? | |
7551 | cat out/conftest.err >&5 | |
6b4a97ed | 7552 | echo "$as_me:7552: \$? = $ac_status" >&5 |
1cf3d07d SE |
7553 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7554 | then | |
7555 | # The compiler can only warn and ignore the option if not recognized | |
7556 | # So say no if there are warnings | |
7557 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7558 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7559 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7560 | lt_cv_prog_compiler_c_o=yes | |
7561 | fi | |
7562 | fi | |
7563 | chmod u+w . 2>&5 | |
7564 | $RM conftest* | |
7565 | # SGI C++ compiler will create directory out/ii_files/ for | |
7566 | # template instantiation | |
7567 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7568 | $RM out/* && rmdir out | |
7569 | cd .. | |
7570 | $RM -r conftest | |
7571 | $RM conftest* | |
7572 | ||
7573 | fi | |
7574 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7575 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
7582 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7583 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7584 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7586 | else | |
7587 | lt_cv_prog_compiler_c_o=no | |
7588 | $RM -r conftest 2>/dev/null | |
7589 | mkdir conftest | |
7590 | cd conftest | |
7591 | mkdir out | |
7592 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7593 | ||
7594 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7595 | # Insert the option either (1) after the last *FLAGS variable, or | |
7596 | # (2) before a word containing "conftest.", or (3) at the end. | |
7597 | # Note that $ac_compile itself does not contain backslashes and begins | |
7598 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7599 | lt_compile=`echo "$ac_compile" | $SED \ | |
7600 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7601 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7602 | -e 's:$: $lt_compiler_flag:'` | |
6b4a97ed | 7603 | (eval echo "\"\$as_me:7603: $lt_compile\"" >&5) |
1cf3d07d SE |
7604 | (eval "$lt_compile" 2>out/conftest.err) |
7605 | ac_status=$? | |
7606 | cat out/conftest.err >&5 | |
6b4a97ed | 7607 | echo "$as_me:7607: \$? = $ac_status" >&5 |
1cf3d07d SE |
7608 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7609 | then | |
7610 | # The compiler can only warn and ignore the option if not recognized | |
7611 | # So say no if there are warnings | |
7612 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7613 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7614 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7615 | lt_cv_prog_compiler_c_o=yes | |
7616 | fi | |
7617 | fi | |
7618 | chmod u+w . 2>&5 | |
7619 | $RM conftest* | |
7620 | # SGI C++ compiler will create directory out/ii_files/ for | |
7621 | # template instantiation | |
7622 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7623 | $RM out/* && rmdir out | |
7624 | cd .. | |
7625 | $RM -r conftest | |
7626 | $RM conftest* | |
7627 | ||
7628 | fi | |
7629 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7630 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | hard_links="nottested" | |
7636 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7637 | # do not overwrite the value of need_locks provided by the user | |
7638 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7639 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7640 | hard_links=yes | |
7641 | $RM conftest* | |
7642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7643 | touch conftest.a | |
7644 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7645 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7646 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7647 | echo "${ECHO_T}$hard_links" >&6 | |
7648 | if test "$hard_links" = no; then | |
7649 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7650 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7651 | need_locks=warn | |
7652 | fi | |
7653 | else | |
7654 | need_locks=no | |
7655 | fi | |
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7663 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7664 | ||
7665 | runpath_var= | |
7666 | allow_undefined_flag= | |
7667 | always_export_symbols=no | |
7668 | archive_cmds= | |
7669 | archive_expsym_cmds= | |
7670 | compiler_needs_object=no | |
7671 | enable_shared_with_static_runtimes=no | |
7672 | export_dynamic_flag_spec= | |
7673 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7674 | hardcode_automatic=no | |
7675 | hardcode_direct=no | |
7676 | hardcode_direct_absolute=no | |
7677 | hardcode_libdir_flag_spec= | |
7678 | hardcode_libdir_flag_spec_ld= | |
7679 | hardcode_libdir_separator= | |
7680 | hardcode_minus_L=no | |
7681 | hardcode_shlibpath_var=unsupported | |
7682 | inherit_rpath=no | |
7683 | link_all_deplibs=unknown | |
7684 | module_cmds= | |
7685 | module_expsym_cmds= | |
7686 | old_archive_from_new_cmds= | |
7687 | old_archive_from_expsyms_cmds= | |
7688 | thread_safe_flag_spec= | |
7689 | whole_archive_flag_spec= | |
7690 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7691 | # included in the symbol list | |
7692 | include_expsyms= | |
7693 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7694 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7695 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7696 | # as well as any symbol that contains `d'. | |
6b4a97ed | 7697 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
7698 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7699 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7700 | # the symbol is explicitly referenced. Since portable code cannot | |
7701 | # rely on this symbol name, it's probably fine to never include it in | |
7702 | # preloaded symbol tables. | |
6b4a97ed | 7703 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
7704 | extract_expsyms_cmds= |
7705 | ||
7706 | case $host_os in | |
6b4a97ed | 7707 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
7708 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7709 | # When not using gcc, we currently assume that we are using | |
7710 | # Microsoft Visual C++. | |
7711 | if test "$GCC" != yes; then | |
7712 | with_gnu_ld=no | |
7713 | fi | |
7714 | ;; | |
7715 | interix*) | |
7716 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7717 | with_gnu_ld=yes | |
7718 | ;; | |
7719 | openbsd*) | |
7720 | with_gnu_ld=no | |
7721 | ;; | |
7722 | esac | |
7723 | ||
7724 | ld_shlibs=yes | |
7725 | if test "$with_gnu_ld" = yes; then | |
7726 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7727 | wlarc='${wl}' | |
7728 | ||
7729 | # Set some defaults for GNU ld with shared library support. These | |
7730 | # are reset later if shared libraries are not supported. Putting them | |
7731 | # here allows them to be overridden if necessary. | |
7732 | runpath_var=LD_RUN_PATH | |
7733 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7734 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7735 | # ancient GNU ld didn't support --whole-archive et. al. | |
7736 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7737 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7738 | else | |
7739 | whole_archive_flag_spec= | |
7740 | fi | |
7741 | supports_anon_versioning=no | |
7742 | case `$LD -v 2>&1` in | |
7743 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7744 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7745 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7746 | *\ 2.11.*) ;; # other 2.11 versions | |
7747 | *) supports_anon_versioning=yes ;; | |
7748 | esac | |
7749 | ||
7750 | # See if GNU ld supports shared libraries. | |
7751 | case $host_os in | |
d653fdfb | 7752 | aix[3-9]*) |
1cf3d07d SE |
7753 | # On AIX/PPC, the GNU linker is very broken |
7754 | if test "$host_cpu" != ia64; then | |
7755 | ld_shlibs=no | |
7756 | cat <<_LT_EOF 1>&2 | |
7757 | ||
7758 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7759 | *** to be unable to reliably create shared libraries on AIX. | |
7760 | *** Therefore, libtool is disabling shared libraries support. If you | |
7761 | *** really care for shared libraries, you may want to modify your PATH | |
7762 | *** so that a non-GNU linker is found, and then restart. | |
7763 | ||
7764 | _LT_EOF | |
7765 | fi | |
7766 | ;; | |
7767 | ||
7768 | amigaos*) | |
6b4a97ed PG |
7769 | case $host_cpu in |
7770 | powerpc) | |
7771 | # see comment about AmigaOS4 .so support | |
7772 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7773 | archive_expsym_cmds='' | |
7774 | ;; | |
7775 | m68k) | |
7776 | 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)' | |
7777 | hardcode_libdir_flag_spec='-L$libdir' | |
7778 | hardcode_minus_L=yes | |
7779 | ;; | |
7780 | esac | |
1cf3d07d SE |
7781 | ;; |
7782 | ||
7783 | beos*) | |
7784 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7785 | allow_undefined_flag=unsupported | |
7786 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7787 | # support --undefined. This deserves some investigation. FIXME | |
7788 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7789 | else | |
7790 | ld_shlibs=no | |
7791 | fi | |
7792 | ;; | |
7793 | ||
6b4a97ed | 7794 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
7795 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7796 | # as there is no search path for DLLs. | |
7797 | hardcode_libdir_flag_spec='-L$libdir' | |
7798 | allow_undefined_flag=unsupported | |
7799 | always_export_symbols=no | |
7800 | enable_shared_with_static_runtimes=yes | |
7801 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7802 | ||
7803 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7805 | # If the export-symbols file already is a .def file (1st line | |
7806 | # is EXPORTS), use it as is; otherwise, prepend... | |
7807 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7808 | cp $export_symbols $output_objdir/$soname.def; | |
7809 | else | |
7810 | echo EXPORTS > $output_objdir/$soname.def; | |
7811 | cat $export_symbols >> $output_objdir/$soname.def; | |
7812 | fi~ | |
7813 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7814 | else | |
7815 | ld_shlibs=no | |
7816 | fi | |
7817 | ;; | |
7818 | ||
7819 | interix[3-9]*) | |
7820 | hardcode_direct=no | |
7821 | hardcode_shlibpath_var=no | |
7822 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7823 | export_dynamic_flag_spec='${wl}-E' | |
7824 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7825 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7826 | # default) and relocated if they conflict, which is a slow very memory | |
7827 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7828 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7829 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7830 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7831 | 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' | |
7832 | ;; | |
7833 | ||
7834 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
7835 | tmp_diet=no | |
7836 | if test "$host_os" = linux-dietlibc; then | |
7837 | case $cc_basename in | |
7838 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7839 | esac | |
7840 | fi | |
7841 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7842 | && test "$tmp_diet" = no | |
7843 | then | |
7844 | tmp_addflag= | |
6b4a97ed | 7845 | tmp_sharedflag='-shared' |
1cf3d07d SE |
7846 | case $cc_basename,$host_cpu in |
7847 | pgcc*) # Portland Group C compiler | |
7848 | 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' | |
7849 | tmp_addflag=' $pic_flag' | |
7850 | ;; | |
7851 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7852 | 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' | |
7853 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7854 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7855 | tmp_addflag=' -i_dynamic' ;; | |
7856 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7857 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7858 | ifc* | ifort*) # Intel Fortran compiler | |
7859 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
7860 | lf95*) # Lahey Fortran 8.1 |
7861 | whole_archive_flag_spec= | |
7862 | tmp_sharedflag='--shared' ;; | |
7863 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7864 | tmp_sharedflag='-qmkshrobj' | |
7865 | tmp_addflag= ;; | |
1cf3d07d SE |
7866 | esac |
7867 | case `$CC -V 2>&1 | sed 5q` in | |
7868 | *Sun\ C*) # Sun C 5.9 | |
7869 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7870 | compiler_needs_object=yes | |
7871 | tmp_sharedflag='-G' ;; | |
7872 | *Sun\ F*) # Sun Fortran 8.3 | |
7873 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
7874 | esac |
7875 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7876 | ||
7877 | if test "x$supports_anon_versioning" = xyes; then | |
7878 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7879 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7880 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7881 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7882 | fi | |
6b4a97ed PG |
7883 | |
7884 | case $cc_basename in | |
7885 | xlf*) | |
7886 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7887 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7888 | hardcode_libdir_flag_spec= | |
7889 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7890 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7891 | if test "x$supports_anon_versioning" = xyes; then | |
7892 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7893 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7894 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7895 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7896 | fi | |
7897 | ;; | |
7898 | esac | |
1cf3d07d SE |
7899 | else |
7900 | ld_shlibs=no | |
7901 | fi | |
7902 | ;; | |
7903 | ||
7904 | netbsd*) | |
7905 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7906 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7907 | wlarc= | |
7908 | else | |
7909 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7910 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7911 | fi | |
7912 | ;; | |
7913 | ||
7914 | solaris*) | |
7915 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7916 | ld_shlibs=no | |
7917 | cat <<_LT_EOF 1>&2 | |
7918 | ||
7919 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7920 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7921 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7922 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7923 | *** your PATH or compiler configuration so that the native linker is | |
7924 | *** used, and then restart. | |
7925 | ||
7926 | _LT_EOF | |
7927 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7928 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7929 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7930 | else | |
7931 | ld_shlibs=no | |
7932 | fi | |
7933 | ;; | |
7934 | ||
7935 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7936 | case `$LD -v 2>&1` in | |
7937 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7938 | ld_shlibs=no | |
7939 | cat <<_LT_EOF 1>&2 | |
7940 | ||
7941 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7942 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7943 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7944 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7945 | *** your PATH or compiler configuration so that the native linker is | |
7946 | *** used, and then restart. | |
7947 | ||
7948 | _LT_EOF | |
7949 | ;; | |
7950 | *) | |
7951 | # For security reasons, it is highly recommended that you always | |
7952 | # use absolute paths for naming shared libraries, and exclude the | |
7953 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7954 | # requires that you compile everything twice, which is a pain. | |
7955 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7956 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7957 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7958 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7959 | else | |
7960 | ld_shlibs=no | |
7961 | fi | |
7962 | ;; | |
7963 | esac | |
7964 | ;; | |
7965 | ||
7966 | sunos4*) | |
7967 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7968 | wlarc= | |
7969 | hardcode_direct=yes | |
7970 | hardcode_shlibpath_var=no | |
7971 | ;; | |
7972 | ||
7973 | *) | |
7974 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7975 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7976 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7977 | else | |
7978 | ld_shlibs=no | |
7979 | fi | |
7980 | ;; | |
7981 | esac | |
7982 | ||
7983 | if test "$ld_shlibs" = no; then | |
7984 | runpath_var= | |
7985 | hardcode_libdir_flag_spec= | |
7986 | export_dynamic_flag_spec= | |
7987 | whole_archive_flag_spec= | |
7988 | fi | |
7989 | else | |
7990 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7991 | case $host_os in | |
7992 | aix3*) | |
7993 | allow_undefined_flag=unsupported | |
7994 | always_export_symbols=yes | |
7995 | 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' | |
7996 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7997 | # are no directories specified by -L. | |
7998 | hardcode_minus_L=yes | |
7999 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8000 | # Neither direct hardcoding nor static linking is supported with a | |
8001 | # broken collect2. | |
8002 | hardcode_direct=unsupported | |
8003 | fi | |
8004 | ;; | |
8005 | ||
d653fdfb | 8006 | aix[4-9]*) |
1cf3d07d SE |
8007 | if test "$host_cpu" = ia64; then |
8008 | # On IA64, the linker does run time linking by default, so we don't | |
8009 | # have to do anything special. | |
8010 | aix_use_runtimelinking=no | |
8011 | exp_sym_flag='-Bexport' | |
8012 | no_entry_flag="" | |
8013 | else | |
8014 | # If we're using GNU nm, then we don't want the "-C" option. | |
8015 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8016 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8017 | 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' | |
8018 | else | |
8019 | 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' | |
8020 | fi | |
8021 | aix_use_runtimelinking=no | |
8022 | ||
8023 | # Test if we are trying to use run time linking or normal | |
8024 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8025 | # need to do runtime linking. | |
d653fdfb | 8026 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
8027 | for ld_flag in $LDFLAGS; do |
8028 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8029 | aix_use_runtimelinking=yes | |
8030 | break | |
8031 | fi | |
8032 | done | |
8033 | ;; | |
8034 | esac | |
8035 | ||
8036 | exp_sym_flag='-bexport' | |
8037 | no_entry_flag='-bnoentry' | |
8038 | fi | |
8039 | ||
8040 | # When large executables or shared objects are built, AIX ld can | |
8041 | # have problems creating the table of contents. If linking a library | |
8042 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8043 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8044 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8045 | ||
8046 | archive_cmds='' | |
8047 | hardcode_direct=yes | |
8048 | hardcode_direct_absolute=yes | |
8049 | hardcode_libdir_separator=':' | |
8050 | link_all_deplibs=yes | |
8051 | file_list_spec='${wl}-f,' | |
8052 | ||
8053 | if test "$GCC" = yes; then | |
8054 | case $host_os in aix4.[012]|aix4.[012].*) | |
8055 | # We only want to do this on AIX 4.2 and lower, the check | |
8056 | # below for broken collect2 doesn't work under 4.3+ | |
8057 | collect2name=`${CC} -print-prog-name=collect2` | |
8058 | if test -f "$collect2name" && | |
8059 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8060 | then | |
8061 | # We have reworked collect2 | |
8062 | : | |
8063 | else | |
8064 | # We have old collect2 | |
8065 | hardcode_direct=unsupported | |
8066 | # It fails to find uninstalled libraries when the uninstalled | |
8067 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8068 | # to unsupported forces relinking | |
8069 | hardcode_minus_L=yes | |
8070 | hardcode_libdir_flag_spec='-L$libdir' | |
8071 | hardcode_libdir_separator= | |
8072 | fi | |
8073 | ;; | |
8074 | esac | |
8075 | shared_flag='-shared' | |
8076 | if test "$aix_use_runtimelinking" = yes; then | |
8077 | shared_flag="$shared_flag "'${wl}-G' | |
8078 | fi | |
8079 | else | |
8080 | # not using gcc | |
8081 | if test "$host_cpu" = ia64; then | |
8082 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8083 | # chokes on -Wl,-G. The following line is correct: | |
8084 | shared_flag='-G' | |
8085 | else | |
8086 | if test "$aix_use_runtimelinking" = yes; then | |
8087 | shared_flag='${wl}-G' | |
8088 | else | |
8089 | shared_flag='${wl}-bM:SRE' | |
8090 | fi | |
8091 | fi | |
8092 | fi | |
8093 | ||
6b4a97ed | 8094 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
8095 | # It seems that -bexpall does not export symbols beginning with |
8096 | # underscore (_), so it is better to generate a list of symbols to export. | |
8097 | always_export_symbols=yes | |
8098 | if test "$aix_use_runtimelinking" = yes; then | |
8099 | # Warning - without using the other runtime loading flags (-brtl), | |
8100 | # -berok will link without error, but may produce a broken library. | |
8101 | allow_undefined_flag='-berok' | |
8102 | # Determine the default libpath from the value encoded in an | |
8103 | # empty executable. | |
8104 | cat >conftest.$ac_ext <<_ACEOF | |
8105 | /* confdefs.h. */ | |
8106 | _ACEOF | |
8107 | cat confdefs.h >>conftest.$ac_ext | |
8108 | cat >>conftest.$ac_ext <<_ACEOF | |
8109 | /* end confdefs.h. */ | |
8110 | ||
8111 | int | |
8112 | main () | |
8113 | { | |
8114 | ||
8115 | ; | |
8116 | return 0; | |
8117 | } | |
8118 | _ACEOF | |
8119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8121 | (eval $ac_link) 2>conftest.er1 | |
8122 | ac_status=$? | |
8123 | grep -v '^ *+' conftest.er1 >conftest.err | |
8124 | rm -f conftest.er1 | |
8125 | cat conftest.err >&5 | |
8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8127 | (exit $ac_status); } && | |
8128 | { ac_try='test -z "$ac_c_werror_flag" | |
8129 | || test ! -s conftest.err' | |
8130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8131 | (eval $ac_try) 2>&5 | |
8132 | ac_status=$? | |
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8134 | (exit $ac_status); }; } && | |
8135 | { ac_try='test -s conftest$ac_exeext' | |
8136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8137 | (eval $ac_try) 2>&5 | |
8138 | ac_status=$? | |
8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8140 | (exit $ac_status); }; }; then | |
8141 | ||
8142 | lt_aix_libpath_sed=' | |
8143 | /Import File Strings/,/^$/ { | |
8144 | /^0/ { | |
8145 | s/^0 *\(.*\)$/\1/ | |
8146 | p | |
8147 | } | |
8148 | }' | |
8149 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8150 | # Check for a 64-bit object if we didn't find anything. | |
8151 | if test -z "$aix_libpath"; then | |
8152 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8153 | fi | |
8154 | else | |
8155 | echo "$as_me: failed program was:" >&5 | |
8156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8157 | ||
8158 | fi | |
8159 | rm -f conftest.err conftest.$ac_objext \ | |
8160 | conftest$ac_exeext conftest.$ac_ext | |
8161 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8162 | ||
8163 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8164 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8165 | else | |
8166 | if test "$host_cpu" = ia64; then | |
8167 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8168 | allow_undefined_flag="-z nodefs" | |
8169 | 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" | |
8170 | else | |
8171 | # Determine the default libpath from the value encoded in an | |
8172 | # empty executable. | |
8173 | cat >conftest.$ac_ext <<_ACEOF | |
8174 | /* confdefs.h. */ | |
8175 | _ACEOF | |
8176 | cat confdefs.h >>conftest.$ac_ext | |
8177 | cat >>conftest.$ac_ext <<_ACEOF | |
8178 | /* end confdefs.h. */ | |
8179 | ||
8180 | int | |
8181 | main () | |
8182 | { | |
8183 | ||
8184 | ; | |
8185 | return 0; | |
8186 | } | |
8187 | _ACEOF | |
8188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8190 | (eval $ac_link) 2>conftest.er1 | |
8191 | ac_status=$? | |
8192 | grep -v '^ *+' conftest.er1 >conftest.err | |
8193 | rm -f conftest.er1 | |
8194 | cat conftest.err >&5 | |
8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8196 | (exit $ac_status); } && | |
8197 | { ac_try='test -z "$ac_c_werror_flag" | |
8198 | || test ! -s conftest.err' | |
8199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8200 | (eval $ac_try) 2>&5 | |
8201 | ac_status=$? | |
8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8203 | (exit $ac_status); }; } && | |
8204 | { ac_try='test -s conftest$ac_exeext' | |
8205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8206 | (eval $ac_try) 2>&5 | |
8207 | ac_status=$? | |
8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8209 | (exit $ac_status); }; }; then | |
8210 | ||
8211 | lt_aix_libpath_sed=' | |
8212 | /Import File Strings/,/^$/ { | |
8213 | /^0/ { | |
8214 | s/^0 *\(.*\)$/\1/ | |
8215 | p | |
8216 | } | |
8217 | }' | |
8218 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8219 | # Check for a 64-bit object if we didn't find anything. | |
8220 | if test -z "$aix_libpath"; then | |
8221 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8222 | fi | |
8223 | else | |
8224 | echo "$as_me: failed program was:" >&5 | |
8225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8226 | ||
8227 | fi | |
8228 | rm -f conftest.err conftest.$ac_objext \ | |
8229 | conftest$ac_exeext conftest.$ac_ext | |
8230 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8231 | ||
8232 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8233 | # Warning - without using the other run time loading flags, | |
8234 | # -berok will link without error, but may produce a broken library. | |
8235 | no_undefined_flag=' ${wl}-bernotok' | |
8236 | allow_undefined_flag=' ${wl}-berok' | |
8237 | # Exported symbols can be pulled into shared objects from archives | |
8238 | whole_archive_flag_spec='$convenience' | |
8239 | archive_cmds_need_lc=yes | |
8240 | # This is similar to how AIX traditionally builds its shared libraries. | |
8241 | 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' | |
8242 | fi | |
8243 | fi | |
8244 | ;; | |
8245 | ||
8246 | amigaos*) | |
6b4a97ed PG |
8247 | case $host_cpu in |
8248 | powerpc) | |
8249 | # see comment about AmigaOS4 .so support | |
8250 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8251 | archive_expsym_cmds='' | |
8252 | ;; | |
8253 | m68k) | |
8254 | 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)' | |
8255 | hardcode_libdir_flag_spec='-L$libdir' | |
8256 | hardcode_minus_L=yes | |
8257 | ;; | |
8258 | esac | |
1cf3d07d SE |
8259 | ;; |
8260 | ||
8261 | bsdi[45]*) | |
8262 | export_dynamic_flag_spec=-rdynamic | |
8263 | ;; | |
8264 | ||
6b4a97ed | 8265 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8266 | # When not using gcc, we currently assume that we are using |
8267 | # Microsoft Visual C++. | |
8268 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8269 | # no search path for DLLs. | |
8270 | hardcode_libdir_flag_spec=' ' | |
8271 | allow_undefined_flag=unsupported | |
8272 | # Tell ltmain to make .lib files, not .a files. | |
8273 | libext=lib | |
8274 | # Tell ltmain to make .dll files, not .so files. | |
8275 | shrext_cmds=".dll" | |
8276 | # FIXME: Setting linknames here is a bad hack. | |
8277 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8278 | # The linker will automatically build a .lib file if we build a DLL. | |
8279 | old_archive_from_new_cmds='true' | |
8280 | # FIXME: Should let the user specify the lib program. | |
8281 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8282 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8283 | enable_shared_with_static_runtimes=yes | |
8284 | ;; | |
8285 | ||
8286 | darwin* | rhapsody*) | |
1cf3d07d | 8287 | |
6b4a97ed PG |
8288 | |
8289 | archive_cmds_need_lc=no | |
8290 | hardcode_direct=no | |
8291 | hardcode_automatic=yes | |
8292 | hardcode_shlibpath_var=unsupported | |
8293 | whole_archive_flag_spec='' | |
8294 | link_all_deplibs=yes | |
8295 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8296 | case $cc_basename in | |
8297 | ifort*) _lt_dar_can_shared=yes ;; | |
8298 | *) _lt_dar_can_shared=$GCC ;; | |
8299 | esac | |
8300 | if test "$_lt_dar_can_shared" = "yes"; then | |
8301 | output_verbose_link_cmd=echo | |
8302 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8303 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8304 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
8305 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
8306 | ||
8307 | else | |
8308 | ld_shlibs=no | |
8309 | fi | |
8310 | ||
1cf3d07d SE |
8311 | ;; |
8312 | ||
8313 | dgux*) | |
8314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8315 | hardcode_libdir_flag_spec='-L$libdir' | |
8316 | hardcode_shlibpath_var=no | |
8317 | ;; | |
8318 | ||
8319 | freebsd1*) | |
8320 | ld_shlibs=no | |
8321 | ;; | |
8322 | ||
8323 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8324 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8325 | # does not break anything, and helps significantly (at the cost of a little | |
8326 | # extra space). | |
8327 | freebsd2.2*) | |
8328 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8329 | hardcode_libdir_flag_spec='-R$libdir' | |
8330 | hardcode_direct=yes | |
8331 | hardcode_shlibpath_var=no | |
8332 | ;; | |
8333 | ||
8334 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8335 | freebsd2*) | |
8336 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8337 | hardcode_direct=yes | |
8338 | hardcode_minus_L=yes | |
8339 | hardcode_shlibpath_var=no | |
8340 | ;; | |
8341 | ||
8342 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8343 | freebsd* | dragonfly*) | |
8344 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8345 | hardcode_libdir_flag_spec='-R$libdir' | |
8346 | hardcode_direct=yes | |
8347 | hardcode_shlibpath_var=no | |
8348 | ;; | |
8349 | ||
8350 | hpux9*) | |
8351 | if test "$GCC" = yes; then | |
8352 | 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' | |
8353 | else | |
8354 | 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' | |
8355 | fi | |
8356 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8357 | hardcode_libdir_separator=: | |
8358 | hardcode_direct=yes | |
8359 | ||
8360 | # hardcode_minus_L: Not really in the search PATH, | |
8361 | # but as the default location of the library. | |
8362 | hardcode_minus_L=yes | |
8363 | export_dynamic_flag_spec='${wl}-E' | |
8364 | ;; | |
8365 | ||
8366 | hpux10*) | |
8367 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8368 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8369 | else | |
8370 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8371 | fi | |
8372 | if test "$with_gnu_ld" = no; then | |
8373 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8374 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8375 | hardcode_libdir_separator=: | |
8376 | hardcode_direct=yes | |
8377 | hardcode_direct_absolute=yes | |
8378 | export_dynamic_flag_spec='${wl}-E' | |
8379 | # hardcode_minus_L: Not really in the search PATH, | |
8380 | # but as the default location of the library. | |
8381 | hardcode_minus_L=yes | |
8382 | fi | |
8383 | ;; | |
8384 | ||
8385 | hpux11*) | |
8386 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8387 | case $host_cpu in | |
8388 | hppa*64*) | |
8389 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8390 | ;; | |
8391 | ia64*) | |
6b4a97ed | 8392 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
8393 | ;; |
8394 | *) | |
8395 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8396 | ;; | |
8397 | esac | |
8398 | else | |
8399 | case $host_cpu in | |
8400 | hppa*64*) | |
8401 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8402 | ;; | |
8403 | ia64*) | |
8404 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8405 | ;; | |
8406 | *) | |
8407 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8408 | ;; | |
8409 | esac | |
8410 | fi | |
8411 | if test "$with_gnu_ld" = no; then | |
8412 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8413 | hardcode_libdir_separator=: | |
8414 | ||
8415 | case $host_cpu in | |
8416 | hppa*64*|ia64*) | |
8417 | hardcode_direct=no | |
8418 | hardcode_shlibpath_var=no | |
8419 | ;; | |
8420 | *) | |
8421 | hardcode_direct=yes | |
8422 | hardcode_direct_absolute=yes | |
8423 | export_dynamic_flag_spec='${wl}-E' | |
8424 | ||
8425 | # hardcode_minus_L: Not really in the search PATH, | |
8426 | # but as the default location of the library. | |
8427 | hardcode_minus_L=yes | |
8428 | ;; | |
8429 | esac | |
8430 | fi | |
8431 | ;; | |
8432 | ||
8433 | irix5* | irix6* | nonstopux*) | |
8434 | if test "$GCC" = yes; then | |
8435 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8436 | # Try to use the -exported_symbol ld option, if it does not | |
8437 | # work, assume that -exports_file does not work either and | |
8438 | # implicitly export all symbols. | |
8439 | save_LDFLAGS="$LDFLAGS" | |
8440 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8441 | cat >conftest.$ac_ext <<_ACEOF | |
8442 | int foo(void) {} | |
8443 | _ACEOF | |
8444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8446 | (eval $ac_link) 2>conftest.er1 | |
8447 | ac_status=$? | |
8448 | grep -v '^ *+' conftest.er1 >conftest.err | |
8449 | rm -f conftest.er1 | |
8450 | cat conftest.err >&5 | |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8452 | (exit $ac_status); } && | |
8453 | { ac_try='test -z "$ac_c_werror_flag" | |
8454 | || test ! -s conftest.err' | |
8455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8456 | (eval $ac_try) 2>&5 | |
8457 | ac_status=$? | |
8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8459 | (exit $ac_status); }; } && | |
8460 | { ac_try='test -s conftest$ac_exeext' | |
8461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8462 | (eval $ac_try) 2>&5 | |
8463 | ac_status=$? | |
8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8465 | (exit $ac_status); }; }; then | |
8466 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8467 | ||
8468 | else | |
8469 | echo "$as_me: failed program was:" >&5 | |
8470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8471 | ||
8472 | fi | |
8473 | rm -f conftest.err conftest.$ac_objext \ | |
8474 | conftest$ac_exeext conftest.$ac_ext | |
8475 | LDFLAGS="$save_LDFLAGS" | |
8476 | else | |
8477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8478 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8479 | fi | |
8480 | archive_cmds_need_lc='no' | |
8481 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8482 | hardcode_libdir_separator=: | |
8483 | inherit_rpath=yes | |
8484 | link_all_deplibs=yes | |
8485 | ;; | |
8486 | ||
8487 | netbsd*) | |
8488 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8489 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8490 | else | |
8491 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8492 | fi | |
8493 | hardcode_libdir_flag_spec='-R$libdir' | |
8494 | hardcode_direct=yes | |
8495 | hardcode_shlibpath_var=no | |
8496 | ;; | |
8497 | ||
8498 | newsos6) | |
8499 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8500 | hardcode_direct=yes | |
8501 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8502 | hardcode_libdir_separator=: | |
8503 | hardcode_shlibpath_var=no | |
8504 | ;; | |
8505 | ||
8506 | *nto* | *qnx*) | |
8507 | ;; | |
8508 | ||
8509 | openbsd*) | |
6b4a97ed PG |
8510 | if test -f /usr/libexec/ld.so; then |
8511 | hardcode_direct=yes | |
8512 | hardcode_shlibpath_var=no | |
8513 | hardcode_direct_absolute=yes | |
8514 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 8515 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 8516 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 8517 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6b4a97ed PG |
8518 | export_dynamic_flag_spec='${wl}-E' |
8519 | else | |
8520 | case $host_os in | |
8521 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8522 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8523 | hardcode_libdir_flag_spec='-R$libdir' | |
8524 | ;; | |
8525 | *) | |
8526 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8527 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8528 | ;; | |
8529 | esac | |
8530 | fi | |
8531 | else | |
8532 | ld_shlibs=no | |
1cf3d07d SE |
8533 | fi |
8534 | ;; | |
8535 | ||
8536 | os2*) | |
8537 | hardcode_libdir_flag_spec='-L$libdir' | |
8538 | hardcode_minus_L=yes | |
8539 | allow_undefined_flag=unsupported | |
8540 | 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' | |
8541 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8542 | ;; | |
8543 | ||
8544 | osf3*) | |
8545 | if test "$GCC" = yes; then | |
8546 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8547 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8548 | else | |
8549 | allow_undefined_flag=' -expect_unresolved \*' | |
8550 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8551 | fi | |
8552 | archive_cmds_need_lc='no' | |
8553 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8554 | hardcode_libdir_separator=: | |
8555 | ;; | |
8556 | ||
8557 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8558 | if test "$GCC" = yes; then | |
8559 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8560 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8561 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8562 | else | |
8563 | allow_undefined_flag=' -expect_unresolved \*' | |
8564 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8565 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
8566 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8567 | ||
8568 | # Both c and cxx compiler support -rpath directly | |
8569 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8570 | fi | |
8571 | archive_cmds_need_lc='no' | |
8572 | hardcode_libdir_separator=: | |
8573 | ;; | |
8574 | ||
8575 | solaris*) | |
8576 | no_undefined_flag=' -z defs' | |
8577 | if test "$GCC" = yes; then | |
8578 | wlarc='${wl}' | |
8579 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8580 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8581 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8582 | else | |
8583 | case `$CC -V 2>&1` in | |
8584 | *"Compilers 5.0"*) | |
8585 | wlarc='' | |
8586 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8587 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8588 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8589 | ;; | |
8590 | *) | |
8591 | wlarc='${wl}' | |
8592 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8593 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8594 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8595 | ;; | |
8596 | esac | |
8597 | fi | |
8598 | hardcode_libdir_flag_spec='-R$libdir' | |
8599 | hardcode_shlibpath_var=no | |
8600 | case $host_os in | |
8601 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8602 | *) | |
8603 | # The compiler driver will combine and reorder linker options, | |
8604 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8605 | # but is careful enough not to reorder. | |
8606 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8607 | if test "$GCC" = yes; then | |
8608 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8609 | else | |
8610 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8611 | fi | |
8612 | ;; | |
8613 | esac | |
8614 | link_all_deplibs=yes | |
8615 | ;; | |
8616 | ||
8617 | sunos4*) | |
8618 | if test "x$host_vendor" = xsequent; then | |
8619 | # Use $CC to link under sequent, because it throws in some extra .o | |
8620 | # files that make .init and .fini sections work. | |
8621 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8622 | else | |
8623 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8624 | fi | |
8625 | hardcode_libdir_flag_spec='-L$libdir' | |
8626 | hardcode_direct=yes | |
8627 | hardcode_minus_L=yes | |
8628 | hardcode_shlibpath_var=no | |
8629 | ;; | |
8630 | ||
8631 | sysv4) | |
8632 | case $host_vendor in | |
8633 | sni) | |
8634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8635 | hardcode_direct=yes # is this really true??? | |
8636 | ;; | |
8637 | siemens) | |
8638 | ## LD is ld it makes a PLAMLIB | |
8639 | ## CC just makes a GrossModule. | |
8640 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8641 | reload_cmds='$CC -r -o $output$reload_objs' | |
8642 | hardcode_direct=no | |
8643 | ;; | |
8644 | motorola) | |
8645 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8646 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8647 | ;; | |
8648 | esac | |
8649 | runpath_var='LD_RUN_PATH' | |
8650 | hardcode_shlibpath_var=no | |
8651 | ;; | |
8652 | ||
8653 | sysv4.3*) | |
8654 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8655 | hardcode_shlibpath_var=no | |
8656 | export_dynamic_flag_spec='-Bexport' | |
8657 | ;; | |
8658 | ||
8659 | sysv4*MP*) | |
8660 | if test -d /usr/nec; then | |
8661 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8662 | hardcode_shlibpath_var=no | |
8663 | runpath_var=LD_RUN_PATH | |
8664 | hardcode_runpath_var=yes | |
8665 | ld_shlibs=yes | |
8666 | fi | |
8667 | ;; | |
8668 | ||
8669 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8670 | no_undefined_flag='${wl}-z,text' | |
8671 | archive_cmds_need_lc=no | |
8672 | hardcode_shlibpath_var=no | |
8673 | runpath_var='LD_RUN_PATH' | |
8674 | ||
8675 | if test "$GCC" = yes; then | |
8676 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8677 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8678 | else | |
8679 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8680 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8681 | fi | |
8682 | ;; | |
8683 | ||
8684 | sysv5* | sco3.2v5* | sco5v6*) | |
8685 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8686 | # link with -lc, and that would cause any symbols used from libc to | |
8687 | # always be unresolved, which means just about no library would | |
8688 | # ever link correctly. If we're not using GNU ld we use -z text | |
8689 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8690 | # as -z defs. | |
8691 | no_undefined_flag='${wl}-z,text' | |
8692 | allow_undefined_flag='${wl}-z,nodefs' | |
8693 | archive_cmds_need_lc=no | |
8694 | hardcode_shlibpath_var=no | |
8695 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8696 | hardcode_libdir_separator=':' | |
8697 | link_all_deplibs=yes | |
8698 | export_dynamic_flag_spec='${wl}-Bexport' | |
8699 | runpath_var='LD_RUN_PATH' | |
8700 | ||
8701 | if test "$GCC" = yes; then | |
8702 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8703 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8704 | else | |
8705 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8706 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8707 | fi | |
8708 | ;; | |
8709 | ||
8710 | uts4*) | |
8711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8712 | hardcode_libdir_flag_spec='-L$libdir' | |
8713 | hardcode_shlibpath_var=no | |
8714 | ;; | |
8715 | ||
8716 | *) | |
8717 | ld_shlibs=no | |
8718 | ;; | |
8719 | esac | |
8720 | ||
8721 | if test x$host_vendor = xsni; then | |
8722 | case $host in | |
8723 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8724 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8725 | ;; | |
8726 | esac | |
8727 | fi | |
8728 | fi | |
8729 | ||
8730 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8731 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8732 | test "$ld_shlibs" = no && can_build_shared=no | |
8733 | ||
8734 | with_gnu_ld=$with_gnu_ld | |
8735 | ||
8736 | ||
8737 | ||
8738 | ||
8739 | ||
8740 | ||
8741 | ||
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | # | |
8751 | # Do we need to explicitly link libc? | |
8752 | # | |
8753 | case "x$archive_cmds_need_lc" in | |
8754 | x|xyes) | |
8755 | # Assume -lc should be added | |
8756 | archive_cmds_need_lc=yes | |
8757 | ||
8758 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8759 | case $archive_cmds in | |
8760 | *'~'*) | |
8761 | # FIXME: we may have to deal with multi-command sequences. | |
8762 | ;; | |
8763 | '$CC '*) | |
8764 | # Test whether the compiler implicitly links with -lc since on some | |
8765 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8766 | # to ld, don't add -lc before -lgcc. | |
8767 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8768 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
baafc534 RW |
8769 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
8770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8771 | else | |
8772 | $RM conftest* | |
8773 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 8774 | |
baafc534 | 8775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1cf3d07d SE |
8776 | (eval $ac_compile) 2>&5 |
8777 | ac_status=$? | |
8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8779 | (exit $ac_status); } 2>conftest.err; then | |
baafc534 RW |
8780 | soname=conftest |
8781 | lib=conftest | |
8782 | libobjs=conftest.$ac_objext | |
8783 | deplibs= | |
8784 | wl=$lt_prog_compiler_wl | |
8785 | pic_flag=$lt_prog_compiler_pic | |
8786 | compiler_flags=-v | |
8787 | linker_flags=-v | |
8788 | verstring= | |
8789 | output_objdir=. | |
8790 | libname=conftest | |
8791 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8792 | allow_undefined_flag= | |
8793 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
1cf3d07d SE |
8794 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8795 | ac_status=$? | |
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8797 | (exit $ac_status); } | |
baafc534 RW |
8798 | then |
8799 | lt_cv_archive_cmds_need_lc=no | |
8800 | else | |
8801 | lt_cv_archive_cmds_need_lc=yes | |
8802 | fi | |
8803 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8804 | else | |
8805 | cat conftest.err 1>&5 | |
8806 | fi | |
8807 | $RM conftest* | |
8808 | ||
8809 | fi | |
8810 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
8811 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
8812 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
1cf3d07d SE |
8813 | ;; |
8814 | esac | |
8815 | fi | |
8816 | ;; | |
8817 | esac | |
8818 | ||
8819 | ||
8820 | ||
8821 | ||
8822 | ||
8823 | ||
8824 | ||
8825 | ||
8826 | ||
8827 | ||
8828 | ||
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
8834 | ||
8835 | ||
8836 | ||
8837 | ||
8838 | ||
8839 | ||
8840 | ||
8841 | ||
8842 | ||
8843 | ||
8844 | ||
8845 | ||
8846 | ||
8847 | ||
8848 | ||
8849 | ||
8850 | ||
8851 | ||
8852 | ||
8853 | ||
8854 | ||
8855 | ||
8856 | ||
8857 | ||
8858 | ||
8859 | ||
8860 | ||
8861 | ||
8862 | ||
8863 | ||
8864 | ||
8865 | ||
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
8886 | ||
8887 | ||
8888 | ||
8889 | ||
8890 | ||
8891 | ||
8892 | ||
8893 | ||
8894 | ||
8895 | ||
8896 | ||
8897 | ||
8898 | ||
8899 | ||
8900 | ||
8901 | ||
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | ||
8919 | ||
8920 | ||
8921 | ||
8922 | ||
8923 | ||
8924 | ||
8925 | ||
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
8939 | ||
8940 | ||
8941 | ||
8942 | ||
8943 | ||
8944 | ||
8945 | ||
8946 | ||
8947 | ||
8948 | ||
8949 | ||
8950 | ||
8951 | ||
8952 | ||
8953 | ||
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
8963 | ||
8964 | ||
8965 | ||
8966 | ||
8967 | ||
8968 | ||
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8976 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
6b4a97ed PG |
8977 | |
8978 | if test "$GCC" = yes; then | |
1cf3d07d SE |
8979 | case $host_os in |
8980 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8981 | *) lt_awk_arg="/^libraries:/" ;; | |
8982 | esac | |
8983 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8984 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8985 | # if the path contains ";" then we assume it to be the separator | |
8986 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8987 | # assumed that no part of a normal pathname contains ";" but that should | |
8988 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8989 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8990 | else | |
8991 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8992 | fi | |
8993 | # Ok, now we have the path, separated by spaces, we can step through it | |
8994 | # and add multilib dir if necessary. | |
8995 | lt_tmp_lt_search_path_spec= | |
8996 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8997 | for lt_sys_path in $lt_search_path_spec; do | |
8998 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8999 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9000 | else | |
9001 | test -d "$lt_sys_path" && \ | |
9002 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9003 | fi | |
9004 | done | |
9005 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9006 | BEGIN {RS=" "; FS="/|\n";} { | |
9007 | lt_foo=""; | |
9008 | lt_count=0; | |
9009 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9010 | if ($lt_i != "" && $lt_i != ".") { | |
9011 | if ($lt_i == "..") { | |
9012 | lt_count++; | |
9013 | } else { | |
9014 | if (lt_count == 0) { | |
9015 | lt_foo="/" $lt_i lt_foo; | |
9016 | } else { | |
9017 | lt_count--; | |
9018 | } | |
9019 | } | |
9020 | } | |
9021 | } | |
9022 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9023 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9024 | }'` | |
9025 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9026 | else | |
9027 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9028 | fi | |
9029 | library_names_spec= | |
9030 | libname_spec='lib$name' | |
9031 | soname_spec= | |
9032 | shrext_cmds=".so" | |
9033 | postinstall_cmds= | |
9034 | postuninstall_cmds= | |
9035 | finish_cmds= | |
9036 | finish_eval= | |
9037 | shlibpath_var= | |
9038 | shlibpath_overrides_runpath=unknown | |
9039 | version_type=none | |
9040 | dynamic_linker="$host_os ld.so" | |
9041 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9042 | need_lib_prefix=unknown | |
9043 | hardcode_into_libs=no | |
9044 | ||
9045 | # when you set need_version to no, make sure it does not cause -set_version | |
9046 | # flags to be left without arguments | |
9047 | need_version=unknown | |
9048 | ||
9049 | case $host_os in | |
9050 | aix3*) | |
9051 | version_type=linux | |
9052 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9053 | shlibpath_var=LIBPATH | |
9054 | ||
9055 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9056 | soname_spec='${libname}${release}${shared_ext}$major' | |
9057 | ;; | |
9058 | ||
d653fdfb | 9059 | aix[4-9]*) |
1cf3d07d SE |
9060 | version_type=linux |
9061 | need_lib_prefix=no | |
9062 | need_version=no | |
9063 | hardcode_into_libs=yes | |
9064 | if test "$host_cpu" = ia64; then | |
9065 | # AIX 5 supports IA64 | |
9066 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9067 | shlibpath_var=LD_LIBRARY_PATH | |
9068 | else | |
9069 | # With GCC up to 2.95.x, collect2 would create an import file | |
9070 | # for dependence libraries. The import file would start with | |
9071 | # the line `#! .'. This would cause the generated library to | |
9072 | # depend on `.', always an invalid library. This was fixed in | |
9073 | # development snapshots of GCC prior to 3.0. | |
9074 | case $host_os in | |
9075 | aix4 | aix4.[01] | aix4.[01].*) | |
9076 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9077 | echo ' yes ' | |
9078 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9079 | : | |
9080 | else | |
9081 | can_build_shared=no | |
9082 | fi | |
9083 | ;; | |
9084 | esac | |
9085 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9086 | # soname into executable. Probably we can add versioning support to | |
9087 | # collect2, so additional links can be useful in future. | |
9088 | if test "$aix_use_runtimelinking" = yes; then | |
9089 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9090 | # instead of lib<name>.a to let people know that these are not | |
9091 | # typical AIX shared libraries. | |
9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9093 | else | |
9094 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9095 | # and later when we are not doing run time linking. | |
9096 | library_names_spec='${libname}${release}.a $libname.a' | |
9097 | soname_spec='${libname}${release}${shared_ext}$major' | |
9098 | fi | |
9099 | shlibpath_var=LIBPATH | |
9100 | fi | |
9101 | ;; | |
9102 | ||
9103 | amigaos*) | |
6b4a97ed PG |
9104 | case $host_cpu in |
9105 | powerpc) | |
9106 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9107 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9109 | ;; | |
9110 | m68k) | |
1cf3d07d SE |
9111 | library_names_spec='$libname.ixlibrary $libname.a' |
9112 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9113 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
6b4a97ed PG |
9114 | ;; |
9115 | esac | |
1cf3d07d SE |
9116 | ;; |
9117 | ||
9118 | beos*) | |
9119 | library_names_spec='${libname}${shared_ext}' | |
9120 | dynamic_linker="$host_os ld.so" | |
9121 | shlibpath_var=LIBRARY_PATH | |
9122 | ;; | |
9123 | ||
9124 | bsdi[45]*) | |
9125 | version_type=linux | |
9126 | need_version=no | |
9127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9128 | soname_spec='${libname}${release}${shared_ext}$major' | |
9129 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9130 | shlibpath_var=LD_LIBRARY_PATH | |
9131 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9132 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9133 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9134 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9135 | # libtool to hard-code these into programs | |
9136 | ;; | |
9137 | ||
6b4a97ed | 9138 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9139 | version_type=windows |
9140 | shrext_cmds=".dll" | |
9141 | need_version=no | |
9142 | need_lib_prefix=no | |
9143 | ||
6b4a97ed PG |
9144 | case $GCC,$host_os in |
9145 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
9146 | library_names_spec='$libname.dll.a' |
9147 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9148 | postinstall_cmds='base_file=`basename \${file}`~ | |
9149 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9150 | dldir=$destdir/`dirname \$dlpath`~ | |
9151 | test -d \$dldir || mkdir -p \$dldir~ | |
9152 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9153 | chmod a+x \$dldir/$dlname~ | |
9154 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9155 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9156 | fi' | |
9157 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9158 | dlpath=$dir/\$dldll~ | |
9159 | $RM \$dlpath' | |
9160 | shlibpath_overrides_runpath=yes | |
9161 | ||
9162 | case $host_os in | |
9163 | cygwin*) | |
9164 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9165 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9166 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9167 | ;; | |
6b4a97ed | 9168 | mingw* | cegcc*) |
1cf3d07d SE |
9169 | # MinGW DLLs use traditional 'lib' prefix |
9170 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9171 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9172 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9173 | # It is most probably a Windows format PATH printed by | |
9174 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9175 | # path with ; separators, and with drive letters. We can handle the | |
9176 | # drive letters (cygwin fileutils understands them), so leave them, | |
9177 | # especially as we might pass files found there to a mingw objdump, | |
9178 | # which wouldn't understand a cygwinified path. Ahh. | |
9179 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9180 | else | |
9181 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9182 | fi | |
9183 | ;; | |
9184 | pw32*) | |
9185 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9186 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9187 | ;; | |
9188 | esac | |
9189 | ;; | |
9190 | ||
9191 | *) | |
9192 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9193 | ;; | |
9194 | esac | |
9195 | dynamic_linker='Win32 ld.exe' | |
9196 | # FIXME: first we should search . and the directory the executable is in | |
9197 | shlibpath_var=PATH | |
9198 | ;; | |
9199 | ||
9200 | darwin* | rhapsody*) | |
9201 | dynamic_linker="$host_os dyld" | |
9202 | version_type=darwin | |
9203 | need_lib_prefix=no | |
9204 | need_version=no | |
9205 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9206 | soname_spec='${libname}${release}${major}$shared_ext' | |
9207 | shlibpath_overrides_runpath=yes | |
9208 | shlibpath_var=DYLD_LIBRARY_PATH | |
9209 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9210 | ||
9211 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9212 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9213 | ;; | |
9214 | ||
9215 | dgux*) | |
9216 | version_type=linux | |
9217 | need_lib_prefix=no | |
9218 | need_version=no | |
9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9220 | soname_spec='${libname}${release}${shared_ext}$major' | |
9221 | shlibpath_var=LD_LIBRARY_PATH | |
9222 | ;; | |
9223 | ||
9224 | freebsd1*) | |
9225 | dynamic_linker=no | |
9226 | ;; | |
9227 | ||
9228 | freebsd* | dragonfly*) | |
9229 | # DragonFly does not have aout. When/if they implement a new | |
9230 | # versioning mechanism, adjust this. | |
9231 | if test -x /usr/bin/objformat; then | |
9232 | objformat=`/usr/bin/objformat` | |
9233 | else | |
9234 | case $host_os in | |
9235 | freebsd[123]*) objformat=aout ;; | |
9236 | *) objformat=elf ;; | |
9237 | esac | |
9238 | fi | |
9239 | version_type=freebsd-$objformat | |
9240 | case $version_type in | |
9241 | freebsd-elf*) | |
9242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9243 | need_version=no | |
9244 | need_lib_prefix=no | |
9245 | ;; | |
9246 | freebsd-*) | |
9247 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9248 | need_version=yes | |
9249 | ;; | |
9250 | esac | |
9251 | shlibpath_var=LD_LIBRARY_PATH | |
9252 | case $host_os in | |
9253 | freebsd2*) | |
9254 | shlibpath_overrides_runpath=yes | |
9255 | ;; | |
9256 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9257 | shlibpath_overrides_runpath=yes | |
9258 | hardcode_into_libs=yes | |
9259 | ;; | |
9260 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9261 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9262 | shlibpath_overrides_runpath=no | |
9263 | hardcode_into_libs=yes | |
9264 | ;; | |
9265 | *) # from 4.6 on, and DragonFly | |
9266 | shlibpath_overrides_runpath=yes | |
9267 | hardcode_into_libs=yes | |
9268 | ;; | |
9269 | esac | |
9270 | ;; | |
9271 | ||
9272 | gnu*) | |
9273 | version_type=linux | |
9274 | need_lib_prefix=no | |
9275 | need_version=no | |
9276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9277 | soname_spec='${libname}${release}${shared_ext}$major' | |
9278 | shlibpath_var=LD_LIBRARY_PATH | |
9279 | hardcode_into_libs=yes | |
9280 | ;; | |
9281 | ||
9282 | hpux9* | hpux10* | hpux11*) | |
9283 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9284 | # link against other versions. | |
9285 | version_type=sunos | |
9286 | need_lib_prefix=no | |
9287 | need_version=no | |
9288 | case $host_cpu in | |
9289 | ia64*) | |
9290 | shrext_cmds='.so' | |
9291 | hardcode_into_libs=yes | |
9292 | dynamic_linker="$host_os dld.so" | |
9293 | shlibpath_var=LD_LIBRARY_PATH | |
9294 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9296 | soname_spec='${libname}${release}${shared_ext}$major' | |
9297 | if test "X$HPUX_IA64_MODE" = X32; then | |
9298 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9299 | else | |
9300 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9301 | fi | |
9302 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9303 | ;; | |
9304 | hppa*64*) | |
9305 | shrext_cmds='.sl' | |
9306 | hardcode_into_libs=yes | |
9307 | dynamic_linker="$host_os dld.sl" | |
9308 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9309 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9311 | soname_spec='${libname}${release}${shared_ext}$major' | |
9312 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9313 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9314 | ;; | |
9315 | *) | |
9316 | shrext_cmds='.sl' | |
9317 | dynamic_linker="$host_os dld.sl" | |
9318 | shlibpath_var=SHLIB_PATH | |
9319 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9321 | soname_spec='${libname}${release}${shared_ext}$major' | |
9322 | ;; | |
9323 | esac | |
9324 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9325 | postinstall_cmds='chmod 555 $lib' | |
9326 | ;; | |
9327 | ||
9328 | interix[3-9]*) | |
9329 | version_type=linux | |
9330 | need_lib_prefix=no | |
9331 | need_version=no | |
9332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9333 | soname_spec='${libname}${release}${shared_ext}$major' | |
9334 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9335 | shlibpath_var=LD_LIBRARY_PATH | |
9336 | shlibpath_overrides_runpath=no | |
9337 | hardcode_into_libs=yes | |
9338 | ;; | |
9339 | ||
9340 | irix5* | irix6* | nonstopux*) | |
9341 | case $host_os in | |
9342 | nonstopux*) version_type=nonstopux ;; | |
9343 | *) | |
9344 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9345 | version_type=linux | |
9346 | else | |
9347 | version_type=irix | |
9348 | fi ;; | |
9349 | esac | |
9350 | need_lib_prefix=no | |
9351 | need_version=no | |
9352 | soname_spec='${libname}${release}${shared_ext}$major' | |
9353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9354 | case $host_os in | |
9355 | irix5* | nonstopux*) | |
9356 | libsuff= shlibsuff= | |
9357 | ;; | |
9358 | *) | |
9359 | case $LD in # libtool.m4 will add one of these switches to LD | |
9360 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9361 | libsuff= shlibsuff= libmagic=32-bit;; | |
9362 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9363 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9364 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9365 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9366 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9367 | esac | |
9368 | ;; | |
9369 | esac | |
9370 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9371 | shlibpath_overrides_runpath=no | |
9372 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9373 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9374 | hardcode_into_libs=yes | |
9375 | ;; | |
9376 | ||
9377 | # No shared lib support for Linux oldld, aout, or coff. | |
9378 | linux*oldld* | linux*aout* | linux*coff*) | |
9379 | dynamic_linker=no | |
9380 | ;; | |
9381 | ||
9382 | # This must be Linux ELF. | |
9383 | linux* | k*bsd*-gnu) | |
9384 | version_type=linux | |
9385 | need_lib_prefix=no | |
9386 | need_version=no | |
9387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9388 | soname_spec='${libname}${release}${shared_ext}$major' | |
9389 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9390 | shlibpath_var=LD_LIBRARY_PATH | |
9391 | shlibpath_overrides_runpath=no | |
baafc534 | 9392 | |
1cf3d07d | 9393 | # Some binutils ld are patched to set DT_RUNPATH |
baafc534 RW |
9394 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
9395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9396 | else | |
9397 | lt_cv_shlibpath_overrides_runpath=no | |
9398 | save_LDFLAGS=$LDFLAGS | |
9399 | save_libdir=$libdir | |
9400 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9401 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9402 | cat >conftest.$ac_ext <<_ACEOF | |
1cf3d07d SE |
9403 | /* confdefs.h. */ |
9404 | _ACEOF | |
9405 | cat confdefs.h >>conftest.$ac_ext | |
9406 | cat >>conftest.$ac_ext <<_ACEOF | |
9407 | /* end confdefs.h. */ | |
9408 | ||
9409 | int | |
9410 | main () | |
9411 | { | |
9412 | ||
9413 | ; | |
9414 | return 0; | |
9415 | } | |
9416 | _ACEOF | |
9417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9419 | (eval $ac_link) 2>conftest.er1 | |
9420 | ac_status=$? | |
9421 | grep -v '^ *+' conftest.er1 >conftest.err | |
9422 | rm -f conftest.er1 | |
9423 | cat conftest.err >&5 | |
9424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9425 | (exit $ac_status); } && | |
9426 | { ac_try='test -z "$ac_c_werror_flag" | |
9427 | || test ! -s conftest.err' | |
9428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9429 | (eval $ac_try) 2>&5 | |
9430 | ac_status=$? | |
9431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9432 | (exit $ac_status); }; } && | |
9433 | { ac_try='test -s conftest$ac_exeext' | |
9434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9435 | (eval $ac_try) 2>&5 | |
9436 | ac_status=$? | |
9437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9438 | (exit $ac_status); }; }; then | |
6b4a97ed | 9439 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
baafc534 | 9440 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d SE |
9441 | fi |
9442 | ||
9443 | else | |
9444 | echo "$as_me: failed program was:" >&5 | |
9445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9446 | ||
9447 | fi | |
9448 | rm -f conftest.err conftest.$ac_objext \ | |
9449 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
9450 | LDFLAGS=$save_LDFLAGS |
9451 | libdir=$save_libdir | |
9452 | ||
9453 | fi | |
9454 | ||
9455 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
9456 | |
9457 | # This implies no fast_install, which is unacceptable. | |
9458 | # Some rework will be needed to allow for fast_install | |
9459 | # before this can be enabled. | |
9460 | hardcode_into_libs=yes | |
9461 | ||
9462 | # Append ld.so.conf contents to the search path | |
9463 | if test -f /etc/ld.so.conf; then | |
6b4a97ed | 9464 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
9465 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9466 | fi | |
9467 | ||
9468 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9469 | # powerpc, because MkLinux only supported shared libraries with the | |
9470 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9471 | # most powerpc-linux boxes support dynamic linking these days and | |
9472 | # people can always --disable-shared, the test was removed, and we | |
9473 | # assume the GNU/Linux dynamic linker is in use. | |
9474 | dynamic_linker='GNU/Linux ld.so' | |
9475 | ;; | |
9476 | ||
9477 | netbsd*) | |
9478 | version_type=sunos | |
9479 | need_lib_prefix=no | |
9480 | need_version=no | |
9481 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9483 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9484 | dynamic_linker='NetBSD (a.out) ld.so' | |
9485 | else | |
9486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9487 | soname_spec='${libname}${release}${shared_ext}$major' | |
9488 | dynamic_linker='NetBSD ld.elf_so' | |
9489 | fi | |
9490 | shlibpath_var=LD_LIBRARY_PATH | |
9491 | shlibpath_overrides_runpath=yes | |
9492 | hardcode_into_libs=yes | |
9493 | ;; | |
9494 | ||
9495 | newsos6) | |
9496 | version_type=linux | |
9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9498 | shlibpath_var=LD_LIBRARY_PATH | |
9499 | shlibpath_overrides_runpath=yes | |
9500 | ;; | |
9501 | ||
9502 | *nto* | *qnx*) | |
9503 | version_type=qnx | |
9504 | need_lib_prefix=no | |
9505 | need_version=no | |
9506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9507 | soname_spec='${libname}${release}${shared_ext}$major' | |
9508 | shlibpath_var=LD_LIBRARY_PATH | |
9509 | shlibpath_overrides_runpath=no | |
9510 | hardcode_into_libs=yes | |
9511 | dynamic_linker='ldqnx.so' | |
9512 | ;; | |
9513 | ||
9514 | openbsd*) | |
9515 | version_type=sunos | |
9516 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9517 | need_lib_prefix=no | |
9518 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9519 | case $host_os in | |
9520 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9521 | *) need_version=no ;; | |
9522 | esac | |
9523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9525 | shlibpath_var=LD_LIBRARY_PATH | |
9526 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9527 | case $host_os in | |
9528 | openbsd2.[89] | openbsd2.[89].*) | |
9529 | shlibpath_overrides_runpath=no | |
9530 | ;; | |
9531 | *) | |
9532 | shlibpath_overrides_runpath=yes | |
9533 | ;; | |
9534 | esac | |
9535 | else | |
9536 | shlibpath_overrides_runpath=yes | |
9537 | fi | |
9538 | ;; | |
9539 | ||
9540 | os2*) | |
9541 | libname_spec='$name' | |
9542 | shrext_cmds=".dll" | |
9543 | need_lib_prefix=no | |
9544 | library_names_spec='$libname${shared_ext} $libname.a' | |
9545 | dynamic_linker='OS/2 ld.exe' | |
9546 | shlibpath_var=LIBPATH | |
9547 | ;; | |
9548 | ||
9549 | osf3* | osf4* | osf5*) | |
9550 | version_type=osf | |
9551 | need_lib_prefix=no | |
9552 | need_version=no | |
9553 | soname_spec='${libname}${release}${shared_ext}$major' | |
9554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9555 | shlibpath_var=LD_LIBRARY_PATH | |
9556 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9557 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9558 | ;; | |
9559 | ||
9560 | rdos*) | |
9561 | dynamic_linker=no | |
9562 | ;; | |
9563 | ||
9564 | solaris*) | |
9565 | version_type=linux | |
9566 | need_lib_prefix=no | |
9567 | need_version=no | |
9568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9569 | soname_spec='${libname}${release}${shared_ext}$major' | |
9570 | shlibpath_var=LD_LIBRARY_PATH | |
9571 | shlibpath_overrides_runpath=yes | |
9572 | hardcode_into_libs=yes | |
9573 | # ldd complains unless libraries are executable | |
9574 | postinstall_cmds='chmod +x $lib' | |
9575 | ;; | |
9576 | ||
9577 | sunos4*) | |
9578 | version_type=sunos | |
9579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9580 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9581 | shlibpath_var=LD_LIBRARY_PATH | |
9582 | shlibpath_overrides_runpath=yes | |
9583 | if test "$with_gnu_ld" = yes; then | |
9584 | need_lib_prefix=no | |
9585 | fi | |
9586 | need_version=yes | |
9587 | ;; | |
9588 | ||
9589 | sysv4 | sysv4.3*) | |
9590 | version_type=linux | |
9591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9592 | soname_spec='${libname}${release}${shared_ext}$major' | |
9593 | shlibpath_var=LD_LIBRARY_PATH | |
9594 | case $host_vendor in | |
9595 | sni) | |
9596 | shlibpath_overrides_runpath=no | |
9597 | need_lib_prefix=no | |
9598 | runpath_var=LD_RUN_PATH | |
9599 | ;; | |
9600 | siemens) | |
9601 | need_lib_prefix=no | |
9602 | ;; | |
9603 | motorola) | |
9604 | need_lib_prefix=no | |
9605 | need_version=no | |
9606 | shlibpath_overrides_runpath=no | |
9607 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9608 | ;; | |
9609 | esac | |
9610 | ;; | |
9611 | ||
9612 | sysv4*MP*) | |
9613 | if test -d /usr/nec ;then | |
9614 | version_type=linux | |
9615 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9616 | soname_spec='$libname${shared_ext}.$major' | |
9617 | shlibpath_var=LD_LIBRARY_PATH | |
9618 | fi | |
9619 | ;; | |
9620 | ||
9621 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9622 | version_type=freebsd-elf | |
9623 | need_lib_prefix=no | |
9624 | need_version=no | |
9625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9626 | soname_spec='${libname}${release}${shared_ext}$major' | |
9627 | shlibpath_var=LD_LIBRARY_PATH | |
9628 | shlibpath_overrides_runpath=yes | |
9629 | hardcode_into_libs=yes | |
9630 | if test "$with_gnu_ld" = yes; then | |
9631 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9632 | else | |
9633 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9634 | case $host_os in | |
9635 | sco3.2v5*) | |
9636 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9637 | ;; | |
9638 | esac | |
9639 | fi | |
9640 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9641 | ;; | |
9642 | ||
9643 | tpf*) | |
9644 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9645 | version_type=linux | |
9646 | need_lib_prefix=no | |
9647 | need_version=no | |
6b4a97ed | 9648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
9649 | shlibpath_var=LD_LIBRARY_PATH |
9650 | shlibpath_overrides_runpath=no | |
9651 | hardcode_into_libs=yes | |
9652 | ;; | |
9653 | ||
9654 | uts4*) | |
9655 | version_type=linux | |
9656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9657 | soname_spec='${libname}${release}${shared_ext}$major' | |
9658 | shlibpath_var=LD_LIBRARY_PATH | |
9659 | ;; | |
9660 | ||
9661 | *) | |
9662 | dynamic_linker=no | |
9663 | ;; | |
9664 | esac | |
9665 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9666 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9667 | test "$dynamic_linker" = no && can_build_shared=no | |
9668 | ||
9669 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9670 | if test "$GCC" = yes; then | |
9671 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9672 | fi | |
9673 | ||
6b4a97ed PG |
9674 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
9675 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9676 | fi | |
9677 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9678 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9679 | fi | |
9680 | ||
1cf3d07d SE |
9681 | |
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9768 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9769 | hardcode_action= | |
9770 | if test -n "$hardcode_libdir_flag_spec" || | |
9771 | test -n "$runpath_var" || | |
9772 | test "X$hardcode_automatic" = "Xyes" ; then | |
9773 | ||
9774 | # We can hardcode non-existent directories. | |
9775 | if test "$hardcode_direct" != no && | |
9776 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9777 | # have to relink, otherwise we might link with an installed library | |
9778 | # when we should be linking with a yet-to-be-installed one | |
9779 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9780 | test "$hardcode_minus_L" != no; then | |
9781 | # Linking always hardcodes the temporary library directory. | |
9782 | hardcode_action=relink | |
9783 | else | |
9784 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9785 | hardcode_action=immediate | |
9786 | fi | |
9787 | else | |
9788 | # We cannot hardcode anything, or else we can only hardcode existing | |
9789 | # directories. | |
9790 | hardcode_action=unsupported | |
9791 | fi | |
9792 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9793 | echo "${ECHO_T}$hardcode_action" >&6 | |
9794 | ||
9795 | if test "$hardcode_action" = relink || | |
9796 | test "$inherit_rpath" = yes; then | |
9797 | # Fast installation is not supported | |
9798 | enable_fast_install=no | |
9799 | elif test "$shlibpath_overrides_runpath" = yes || | |
9800 | test "$enable_shared" = no; then | |
9801 | # Fast installation is not necessary | |
9802 | enable_fast_install=needless | |
9803 | fi | |
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | if test "x$enable_dlopen" != xyes; then | |
9811 | enable_dlopen=unknown | |
9812 | enable_dlopen_self=unknown | |
9813 | enable_dlopen_self_static=unknown | |
9814 | else | |
9815 | lt_cv_dlopen=no | |
9816 | lt_cv_dlopen_libs= | |
9817 | ||
9818 | case $host_os in | |
9819 | beos*) | |
9820 | lt_cv_dlopen="load_add_on" | |
9821 | lt_cv_dlopen_libs= | |
9822 | lt_cv_dlopen_self=yes | |
9823 | ;; | |
9824 | ||
6b4a97ed | 9825 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9826 | lt_cv_dlopen="LoadLibrary" |
9827 | lt_cv_dlopen_libs= | |
9828 | ;; | |
9829 | ||
9830 | cygwin*) | |
9831 | lt_cv_dlopen="dlopen" | |
9832 | lt_cv_dlopen_libs= | |
9833 | ;; | |
9834 | ||
9835 | darwin*) | |
9836 | # if libdl is installed we need to link against it | |
9837 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9838 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9839 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9841 | else | |
9842 | ac_check_lib_save_LIBS=$LIBS | |
9843 | LIBS="-ldl $LIBS" | |
9844 | cat >conftest.$ac_ext <<_ACEOF | |
9845 | /* confdefs.h. */ | |
9846 | _ACEOF | |
9847 | cat confdefs.h >>conftest.$ac_ext | |
9848 | cat >>conftest.$ac_ext <<_ACEOF | |
9849 | /* end confdefs.h. */ | |
9850 | ||
9851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9852 | #ifdef __cplusplus | |
9853 | extern "C" | |
9854 | #endif | |
9855 | /* We use char because int might match the return type of a gcc2 | |
9856 | builtin and then its argument prototype would still apply. */ | |
9857 | char dlopen (); | |
9858 | int | |
9859 | main () | |
9860 | { | |
9861 | dlopen (); | |
9862 | ; | |
9863 | return 0; | |
9864 | } | |
9865 | _ACEOF | |
9866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9868 | (eval $ac_link) 2>conftest.er1 | |
9869 | ac_status=$? | |
9870 | grep -v '^ *+' conftest.er1 >conftest.err | |
9871 | rm -f conftest.er1 | |
9872 | cat conftest.err >&5 | |
9873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9874 | (exit $ac_status); } && | |
9875 | { ac_try='test -z "$ac_c_werror_flag" | |
9876 | || test ! -s conftest.err' | |
9877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9878 | (eval $ac_try) 2>&5 | |
9879 | ac_status=$? | |
9880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9881 | (exit $ac_status); }; } && | |
9882 | { ac_try='test -s conftest$ac_exeext' | |
9883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9884 | (eval $ac_try) 2>&5 | |
9885 | ac_status=$? | |
9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9887 | (exit $ac_status); }; }; then | |
9888 | ac_cv_lib_dl_dlopen=yes | |
9889 | else | |
9890 | echo "$as_me: failed program was:" >&5 | |
9891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9892 | ||
9893 | ac_cv_lib_dl_dlopen=no | |
9894 | fi | |
9895 | rm -f conftest.err conftest.$ac_objext \ | |
9896 | conftest$ac_exeext conftest.$ac_ext | |
9897 | LIBS=$ac_check_lib_save_LIBS | |
9898 | fi | |
9899 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9900 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9901 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9902 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9903 | else | |
9904 | ||
9905 | lt_cv_dlopen="dyld" | |
9906 | lt_cv_dlopen_libs= | |
9907 | lt_cv_dlopen_self=yes | |
9908 | ||
9909 | fi | |
9910 | ||
9911 | ;; | |
9912 | ||
9913 | *) | |
9914 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9915 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9916 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9918 | else | |
9919 | cat >conftest.$ac_ext <<_ACEOF | |
9920 | /* confdefs.h. */ | |
9921 | _ACEOF | |
9922 | cat confdefs.h >>conftest.$ac_ext | |
9923 | cat >>conftest.$ac_ext <<_ACEOF | |
9924 | /* end confdefs.h. */ | |
9925 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9927 | #define shl_load innocuous_shl_load | |
9928 | ||
9929 | /* System header to define __stub macros and hopefully few prototypes, | |
9930 | which can conflict with char shl_load (); below. | |
9931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9932 | <limits.h> exists even on freestanding compilers. */ | |
9933 | ||
9934 | #ifdef __STDC__ | |
9935 | # include <limits.h> | |
9936 | #else | |
9937 | # include <assert.h> | |
9938 | #endif | |
9939 | ||
9940 | #undef shl_load | |
9941 | ||
9942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9943 | #ifdef __cplusplus | |
9944 | extern "C" | |
9945 | { | |
9946 | #endif | |
9947 | /* We use char because int might match the return type of a gcc2 | |
9948 | builtin and then its argument prototype would still apply. */ | |
9949 | char shl_load (); | |
9950 | /* The GNU C library defines this for functions which it implements | |
9951 | to always fail with ENOSYS. Some functions are actually named | |
9952 | something starting with __ and the normal name is an alias. */ | |
9953 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9954 | choke me | |
9955 | #else | |
9956 | char (*f) () = shl_load; | |
9957 | #endif | |
9958 | #ifdef __cplusplus | |
9959 | } | |
9960 | #endif | |
9961 | ||
9962 | int | |
9963 | main () | |
9964 | { | |
9965 | return f != shl_load; | |
9966 | ; | |
9967 | return 0; | |
9968 | } | |
9969 | _ACEOF | |
9970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9972 | (eval $ac_link) 2>conftest.er1 | |
9973 | ac_status=$? | |
9974 | grep -v '^ *+' conftest.er1 >conftest.err | |
9975 | rm -f conftest.er1 | |
9976 | cat conftest.err >&5 | |
9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9978 | (exit $ac_status); } && | |
9979 | { ac_try='test -z "$ac_c_werror_flag" | |
9980 | || test ! -s conftest.err' | |
9981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9982 | (eval $ac_try) 2>&5 | |
9983 | ac_status=$? | |
9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9985 | (exit $ac_status); }; } && | |
9986 | { ac_try='test -s conftest$ac_exeext' | |
9987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9988 | (eval $ac_try) 2>&5 | |
9989 | ac_status=$? | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); }; }; then | |
9992 | ac_cv_func_shl_load=yes | |
9993 | else | |
9994 | echo "$as_me: failed program was:" >&5 | |
9995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9996 | ||
9997 | ac_cv_func_shl_load=no | |
9998 | fi | |
9999 | rm -f conftest.err conftest.$ac_objext \ | |
10000 | conftest$ac_exeext conftest.$ac_ext | |
10001 | fi | |
10002 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10003 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10004 | if test $ac_cv_func_shl_load = yes; then | |
10005 | lt_cv_dlopen="shl_load" | |
10006 | else | |
10007 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10008 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10009 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10011 | else | |
10012 | ac_check_lib_save_LIBS=$LIBS | |
10013 | LIBS="-ldld $LIBS" | |
10014 | cat >conftest.$ac_ext <<_ACEOF | |
10015 | /* confdefs.h. */ | |
10016 | _ACEOF | |
10017 | cat confdefs.h >>conftest.$ac_ext | |
10018 | cat >>conftest.$ac_ext <<_ACEOF | |
10019 | /* end confdefs.h. */ | |
10020 | ||
10021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10022 | #ifdef __cplusplus | |
10023 | extern "C" | |
10024 | #endif | |
10025 | /* We use char because int might match the return type of a gcc2 | |
10026 | builtin and then its argument prototype would still apply. */ | |
10027 | char shl_load (); | |
10028 | int | |
10029 | main () | |
10030 | { | |
10031 | shl_load (); | |
10032 | ; | |
10033 | return 0; | |
10034 | } | |
10035 | _ACEOF | |
10036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10038 | (eval $ac_link) 2>conftest.er1 | |
10039 | ac_status=$? | |
10040 | grep -v '^ *+' conftest.er1 >conftest.err | |
10041 | rm -f conftest.er1 | |
10042 | cat conftest.err >&5 | |
10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10044 | (exit $ac_status); } && | |
10045 | { ac_try='test -z "$ac_c_werror_flag" | |
10046 | || test ! -s conftest.err' | |
10047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10048 | (eval $ac_try) 2>&5 | |
10049 | ac_status=$? | |
10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10051 | (exit $ac_status); }; } && | |
10052 | { ac_try='test -s conftest$ac_exeext' | |
10053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10054 | (eval $ac_try) 2>&5 | |
10055 | ac_status=$? | |
10056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10057 | (exit $ac_status); }; }; then | |
10058 | ac_cv_lib_dld_shl_load=yes | |
10059 | else | |
10060 | echo "$as_me: failed program was:" >&5 | |
10061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10062 | ||
10063 | ac_cv_lib_dld_shl_load=no | |
10064 | fi | |
10065 | rm -f conftest.err conftest.$ac_objext \ | |
10066 | conftest$ac_exeext conftest.$ac_ext | |
10067 | LIBS=$ac_check_lib_save_LIBS | |
10068 | fi | |
10069 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10070 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10071 | if test $ac_cv_lib_dld_shl_load = yes; then | |
6b4a97ed | 10072 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
10073 | else |
10074 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10075 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10076 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10078 | else | |
10079 | cat >conftest.$ac_ext <<_ACEOF | |
10080 | /* confdefs.h. */ | |
10081 | _ACEOF | |
10082 | cat confdefs.h >>conftest.$ac_ext | |
10083 | cat >>conftest.$ac_ext <<_ACEOF | |
10084 | /* end confdefs.h. */ | |
10085 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10087 | #define dlopen innocuous_dlopen | |
10088 | ||
10089 | /* System header to define __stub macros and hopefully few prototypes, | |
10090 | which can conflict with char dlopen (); below. | |
10091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10092 | <limits.h> exists even on freestanding compilers. */ | |
10093 | ||
10094 | #ifdef __STDC__ | |
10095 | # include <limits.h> | |
10096 | #else | |
10097 | # include <assert.h> | |
10098 | #endif | |
10099 | ||
10100 | #undef dlopen | |
10101 | ||
10102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10103 | #ifdef __cplusplus | |
10104 | extern "C" | |
10105 | { | |
10106 | #endif | |
10107 | /* We use char because int might match the return type of a gcc2 | |
10108 | builtin and then its argument prototype would still apply. */ | |
10109 | char dlopen (); | |
10110 | /* The GNU C library defines this for functions which it implements | |
10111 | to always fail with ENOSYS. Some functions are actually named | |
10112 | something starting with __ and the normal name is an alias. */ | |
10113 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10114 | choke me | |
10115 | #else | |
10116 | char (*f) () = dlopen; | |
10117 | #endif | |
10118 | #ifdef __cplusplus | |
10119 | } | |
10120 | #endif | |
10121 | ||
10122 | int | |
10123 | main () | |
10124 | { | |
10125 | return f != dlopen; | |
10126 | ; | |
10127 | return 0; | |
10128 | } | |
10129 | _ACEOF | |
10130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10132 | (eval $ac_link) 2>conftest.er1 | |
10133 | ac_status=$? | |
10134 | grep -v '^ *+' conftest.er1 >conftest.err | |
10135 | rm -f conftest.er1 | |
10136 | cat conftest.err >&5 | |
10137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10138 | (exit $ac_status); } && | |
10139 | { ac_try='test -z "$ac_c_werror_flag" | |
10140 | || test ! -s conftest.err' | |
10141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10142 | (eval $ac_try) 2>&5 | |
10143 | ac_status=$? | |
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10145 | (exit $ac_status); }; } && | |
10146 | { ac_try='test -s conftest$ac_exeext' | |
10147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10148 | (eval $ac_try) 2>&5 | |
10149 | ac_status=$? | |
10150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10151 | (exit $ac_status); }; }; then | |
10152 | ac_cv_func_dlopen=yes | |
10153 | else | |
10154 | echo "$as_me: failed program was:" >&5 | |
10155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10156 | ||
10157 | ac_cv_func_dlopen=no | |
10158 | fi | |
10159 | rm -f conftest.err conftest.$ac_objext \ | |
10160 | conftest$ac_exeext conftest.$ac_ext | |
10161 | fi | |
10162 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10163 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10164 | if test $ac_cv_func_dlopen = yes; then | |
10165 | lt_cv_dlopen="dlopen" | |
10166 | else | |
10167 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10168 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10169 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10171 | else | |
10172 | ac_check_lib_save_LIBS=$LIBS | |
10173 | LIBS="-ldl $LIBS" | |
10174 | cat >conftest.$ac_ext <<_ACEOF | |
10175 | /* confdefs.h. */ | |
10176 | _ACEOF | |
10177 | cat confdefs.h >>conftest.$ac_ext | |
10178 | cat >>conftest.$ac_ext <<_ACEOF | |
10179 | /* end confdefs.h. */ | |
10180 | ||
10181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10182 | #ifdef __cplusplus | |
10183 | extern "C" | |
10184 | #endif | |
10185 | /* We use char because int might match the return type of a gcc2 | |
10186 | builtin and then its argument prototype would still apply. */ | |
10187 | char dlopen (); | |
10188 | int | |
10189 | main () | |
10190 | { | |
10191 | dlopen (); | |
10192 | ; | |
10193 | return 0; | |
10194 | } | |
10195 | _ACEOF | |
10196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10198 | (eval $ac_link) 2>conftest.er1 | |
10199 | ac_status=$? | |
10200 | grep -v '^ *+' conftest.er1 >conftest.err | |
10201 | rm -f conftest.er1 | |
10202 | cat conftest.err >&5 | |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10204 | (exit $ac_status); } && | |
10205 | { ac_try='test -z "$ac_c_werror_flag" | |
10206 | || test ! -s conftest.err' | |
10207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10208 | (eval $ac_try) 2>&5 | |
10209 | ac_status=$? | |
10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10211 | (exit $ac_status); }; } && | |
10212 | { ac_try='test -s conftest$ac_exeext' | |
10213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10214 | (eval $ac_try) 2>&5 | |
10215 | ac_status=$? | |
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); }; }; then | |
10218 | ac_cv_lib_dl_dlopen=yes | |
10219 | else | |
10220 | echo "$as_me: failed program was:" >&5 | |
10221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10222 | ||
10223 | ac_cv_lib_dl_dlopen=no | |
10224 | fi | |
10225 | rm -f conftest.err conftest.$ac_objext \ | |
10226 | conftest$ac_exeext conftest.$ac_ext | |
10227 | LIBS=$ac_check_lib_save_LIBS | |
10228 | fi | |
10229 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10230 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10231 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10232 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10233 | else | |
10234 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10235 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10236 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10238 | else | |
10239 | ac_check_lib_save_LIBS=$LIBS | |
10240 | LIBS="-lsvld $LIBS" | |
10241 | cat >conftest.$ac_ext <<_ACEOF | |
10242 | /* confdefs.h. */ | |
10243 | _ACEOF | |
10244 | cat confdefs.h >>conftest.$ac_ext | |
10245 | cat >>conftest.$ac_ext <<_ACEOF | |
10246 | /* end confdefs.h. */ | |
10247 | ||
10248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10249 | #ifdef __cplusplus | |
10250 | extern "C" | |
10251 | #endif | |
10252 | /* We use char because int might match the return type of a gcc2 | |
10253 | builtin and then its argument prototype would still apply. */ | |
10254 | char dlopen (); | |
10255 | int | |
10256 | main () | |
10257 | { | |
10258 | dlopen (); | |
10259 | ; | |
10260 | return 0; | |
10261 | } | |
10262 | _ACEOF | |
10263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10265 | (eval $ac_link) 2>conftest.er1 | |
10266 | ac_status=$? | |
10267 | grep -v '^ *+' conftest.er1 >conftest.err | |
10268 | rm -f conftest.er1 | |
10269 | cat conftest.err >&5 | |
10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); } && | |
10272 | { ac_try='test -z "$ac_c_werror_flag" | |
10273 | || test ! -s conftest.err' | |
10274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10275 | (eval $ac_try) 2>&5 | |
10276 | ac_status=$? | |
10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10278 | (exit $ac_status); }; } && | |
10279 | { ac_try='test -s conftest$ac_exeext' | |
10280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10281 | (eval $ac_try) 2>&5 | |
10282 | ac_status=$? | |
10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10284 | (exit $ac_status); }; }; then | |
10285 | ac_cv_lib_svld_dlopen=yes | |
10286 | else | |
10287 | echo "$as_me: failed program was:" >&5 | |
10288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10289 | ||
10290 | ac_cv_lib_svld_dlopen=no | |
10291 | fi | |
10292 | rm -f conftest.err conftest.$ac_objext \ | |
10293 | conftest$ac_exeext conftest.$ac_ext | |
10294 | LIBS=$ac_check_lib_save_LIBS | |
10295 | fi | |
10296 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10297 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10298 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10299 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10300 | else | |
10301 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10302 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10303 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10305 | else | |
10306 | ac_check_lib_save_LIBS=$LIBS | |
10307 | LIBS="-ldld $LIBS" | |
10308 | cat >conftest.$ac_ext <<_ACEOF | |
10309 | /* confdefs.h. */ | |
10310 | _ACEOF | |
10311 | cat confdefs.h >>conftest.$ac_ext | |
10312 | cat >>conftest.$ac_ext <<_ACEOF | |
10313 | /* end confdefs.h. */ | |
10314 | ||
10315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10316 | #ifdef __cplusplus | |
10317 | extern "C" | |
10318 | #endif | |
10319 | /* We use char because int might match the return type of a gcc2 | |
10320 | builtin and then its argument prototype would still apply. */ | |
10321 | char dld_link (); | |
10322 | int | |
10323 | main () | |
10324 | { | |
10325 | dld_link (); | |
10326 | ; | |
10327 | return 0; | |
10328 | } | |
10329 | _ACEOF | |
10330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10332 | (eval $ac_link) 2>conftest.er1 | |
10333 | ac_status=$? | |
10334 | grep -v '^ *+' conftest.er1 >conftest.err | |
10335 | rm -f conftest.er1 | |
10336 | cat conftest.err >&5 | |
10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10338 | (exit $ac_status); } && | |
10339 | { ac_try='test -z "$ac_c_werror_flag" | |
10340 | || test ! -s conftest.err' | |
10341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10342 | (eval $ac_try) 2>&5 | |
10343 | ac_status=$? | |
10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10345 | (exit $ac_status); }; } && | |
10346 | { ac_try='test -s conftest$ac_exeext' | |
10347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10348 | (eval $ac_try) 2>&5 | |
10349 | ac_status=$? | |
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10351 | (exit $ac_status); }; }; then | |
10352 | ac_cv_lib_dld_dld_link=yes | |
10353 | else | |
10354 | echo "$as_me: failed program was:" >&5 | |
10355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10356 | ||
10357 | ac_cv_lib_dld_dld_link=no | |
10358 | fi | |
10359 | rm -f conftest.err conftest.$ac_objext \ | |
10360 | conftest$ac_exeext conftest.$ac_ext | |
10361 | LIBS=$ac_check_lib_save_LIBS | |
10362 | fi | |
10363 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10364 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10365 | if test $ac_cv_lib_dld_dld_link = yes; then | |
6b4a97ed | 10366 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
10367 | fi |
10368 | ||
10369 | ||
10370 | fi | |
10371 | ||
10372 | ||
10373 | fi | |
10374 | ||
10375 | ||
10376 | fi | |
10377 | ||
10378 | ||
10379 | fi | |
10380 | ||
10381 | ||
10382 | fi | |
10383 | ||
10384 | ;; | |
10385 | esac | |
10386 | ||
10387 | if test "x$lt_cv_dlopen" != xno; then | |
10388 | enable_dlopen=yes | |
10389 | else | |
10390 | enable_dlopen=no | |
10391 | fi | |
10392 | ||
10393 | case $lt_cv_dlopen in | |
10394 | dlopen) | |
10395 | save_CPPFLAGS="$CPPFLAGS" | |
10396 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10397 | ||
10398 | save_LDFLAGS="$LDFLAGS" | |
10399 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10400 | ||
10401 | save_LIBS="$LIBS" | |
10402 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10403 | ||
10404 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10405 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10406 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10408 | else | |
10409 | if test "$cross_compiling" = yes; then : | |
10410 | lt_cv_dlopen_self=cross | |
10411 | else | |
10412 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10413 | lt_status=$lt_dlunknown | |
10414 | cat > conftest.$ac_ext <<_LT_EOF | |
baafc534 | 10415 | #line 10415 "configure" |
1cf3d07d SE |
10416 | #include "confdefs.h" |
10417 | ||
10418 | #if HAVE_DLFCN_H | |
10419 | #include <dlfcn.h> | |
10420 | #endif | |
10421 | ||
10422 | #include <stdio.h> | |
10423 | ||
10424 | #ifdef RTLD_GLOBAL | |
10425 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10426 | #else | |
10427 | # ifdef DL_GLOBAL | |
10428 | # define LT_DLGLOBAL DL_GLOBAL | |
10429 | # else | |
10430 | # define LT_DLGLOBAL 0 | |
10431 | # endif | |
10432 | #endif | |
10433 | ||
10434 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10435 | find out it does not work in some platform. */ | |
10436 | #ifndef LT_DLLAZY_OR_NOW | |
10437 | # ifdef RTLD_LAZY | |
10438 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10439 | # else | |
10440 | # ifdef DL_LAZY | |
10441 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10442 | # else | |
10443 | # ifdef RTLD_NOW | |
10444 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10445 | # else | |
10446 | # ifdef DL_NOW | |
10447 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10448 | # else | |
10449 | # define LT_DLLAZY_OR_NOW 0 | |
10450 | # endif | |
10451 | # endif | |
10452 | # endif | |
10453 | # endif | |
10454 | #endif | |
10455 | ||
1cf3d07d SE |
10456 | void fnord() { int i=42;} |
10457 | int main () | |
10458 | { | |
10459 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10460 | int status = $lt_dlunknown; | |
10461 | ||
10462 | if (self) | |
10463 | { | |
10464 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10465 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10466 | /* dlclose (self); */ | |
10467 | } | |
10468 | else | |
10469 | puts (dlerror ()); | |
10470 | ||
6b4a97ed | 10471 | return status; |
1cf3d07d SE |
10472 | } |
10473 | _LT_EOF | |
10474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10475 | (eval $ac_link) 2>&5 | |
10476 | ac_status=$? | |
10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10478 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10479 | (./conftest; exit; ) >&5 2>/dev/null | |
10480 | lt_status=$? | |
10481 | case x$lt_status in | |
10482 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10483 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10484 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10485 | esac | |
10486 | else : | |
10487 | # compilation failed | |
10488 | lt_cv_dlopen_self=no | |
10489 | fi | |
10490 | fi | |
10491 | rm -fr conftest* | |
10492 | ||
10493 | ||
10494 | fi | |
10495 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10496 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10497 | ||
10498 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10499 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10500 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10501 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10502 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10504 | else | |
10505 | if test "$cross_compiling" = yes; then : | |
10506 | lt_cv_dlopen_self_static=cross | |
10507 | else | |
10508 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10509 | lt_status=$lt_dlunknown | |
10510 | cat > conftest.$ac_ext <<_LT_EOF | |
baafc534 | 10511 | #line 10511 "configure" |
1cf3d07d SE |
10512 | #include "confdefs.h" |
10513 | ||
10514 | #if HAVE_DLFCN_H | |
10515 | #include <dlfcn.h> | |
10516 | #endif | |
10517 | ||
10518 | #include <stdio.h> | |
10519 | ||
10520 | #ifdef RTLD_GLOBAL | |
10521 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10522 | #else | |
10523 | # ifdef DL_GLOBAL | |
10524 | # define LT_DLGLOBAL DL_GLOBAL | |
10525 | # else | |
10526 | # define LT_DLGLOBAL 0 | |
10527 | # endif | |
10528 | #endif | |
10529 | ||
10530 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10531 | find out it does not work in some platform. */ | |
10532 | #ifndef LT_DLLAZY_OR_NOW | |
10533 | # ifdef RTLD_LAZY | |
10534 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10535 | # else | |
10536 | # ifdef DL_LAZY | |
10537 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10538 | # else | |
10539 | # ifdef RTLD_NOW | |
10540 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10541 | # else | |
10542 | # ifdef DL_NOW | |
10543 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10544 | # else | |
10545 | # define LT_DLLAZY_OR_NOW 0 | |
10546 | # endif | |
10547 | # endif | |
10548 | # endif | |
10549 | # endif | |
10550 | #endif | |
10551 | ||
1cf3d07d SE |
10552 | void fnord() { int i=42;} |
10553 | int main () | |
10554 | { | |
10555 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10556 | int status = $lt_dlunknown; | |
10557 | ||
10558 | if (self) | |
10559 | { | |
10560 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10561 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10562 | /* dlclose (self); */ | |
10563 | } | |
10564 | else | |
10565 | puts (dlerror ()); | |
10566 | ||
6b4a97ed | 10567 | return status; |
1cf3d07d SE |
10568 | } |
10569 | _LT_EOF | |
10570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10571 | (eval $ac_link) 2>&5 | |
10572 | ac_status=$? | |
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10574 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10575 | (./conftest; exit; ) >&5 2>/dev/null | |
10576 | lt_status=$? | |
10577 | case x$lt_status in | |
10578 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10579 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10580 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10581 | esac | |
10582 | else : | |
10583 | # compilation failed | |
10584 | lt_cv_dlopen_self_static=no | |
10585 | fi | |
10586 | fi | |
10587 | rm -fr conftest* | |
10588 | ||
10589 | ||
10590 | fi | |
10591 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10592 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10593 | fi | |
10594 | ||
10595 | CPPFLAGS="$save_CPPFLAGS" | |
10596 | LDFLAGS="$save_LDFLAGS" | |
10597 | LIBS="$save_LIBS" | |
10598 | ;; | |
10599 | esac | |
10600 | ||
10601 | case $lt_cv_dlopen_self in | |
10602 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10603 | *) enable_dlopen_self=unknown ;; | |
10604 | esac | |
10605 | ||
10606 | case $lt_cv_dlopen_self_static in | |
10607 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10608 | *) enable_dlopen_self_static=unknown ;; | |
10609 | esac | |
10610 | fi | |
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | striplib= | |
10629 | old_striplib= | |
10630 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10631 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10632 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10633 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10634 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10635 | echo "$as_me:$LINENO: result: yes" >&5 | |
10636 | echo "${ECHO_T}yes" >&6 | |
10637 | else | |
10638 | # FIXME - insert some real tests, host_os isn't really good enough | |
10639 | case $host_os in | |
10640 | darwin*) | |
10641 | if test -n "$STRIP" ; then | |
10642 | striplib="$STRIP -x" | |
10643 | old_striplib="$STRIP -S" | |
10644 | echo "$as_me:$LINENO: result: yes" >&5 | |
10645 | echo "${ECHO_T}yes" >&6 | |
10646 | else | |
10647 | echo "$as_me:$LINENO: result: no" >&5 | |
10648 | echo "${ECHO_T}no" >&6 | |
10649 | fi | |
10650 | ;; | |
10651 | *) | |
10652 | echo "$as_me:$LINENO: result: no" >&5 | |
10653 | echo "${ECHO_T}no" >&6 | |
10654 | ;; | |
10655 | esac | |
10656 | fi | |
10657 | ||
10658 | ||
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | ||
10664 | ||
10665 | ||
10666 | ||
10667 | ||
10668 | ||
10669 | # Report which library types will actually be built | |
10670 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10671 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10672 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10673 | echo "${ECHO_T}$can_build_shared" >&6 | |
10674 | ||
10675 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10676 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10677 | test "$can_build_shared" = "no" && enable_shared=no | |
10678 | ||
10679 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10680 | # are all built from PIC. | |
10681 | case $host_os in | |
10682 | aix3*) | |
10683 | test "$enable_shared" = yes && enable_static=no | |
10684 | if test -n "$RANLIB"; then | |
10685 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10686 | postinstall_cmds='$RANLIB $lib' | |
10687 | fi | |
10688 | ;; | |
10689 | ||
d653fdfb | 10690 | aix[4-9]*) |
1cf3d07d SE |
10691 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10692 | test "$enable_shared" = yes && enable_static=no | |
10693 | fi | |
10694 | ;; | |
10695 | esac | |
10696 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10697 | echo "${ECHO_T}$enable_shared" >&6 | |
10698 | ||
10699 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10700 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10701 | # Make sure either enable_shared or enable_static is yes. | |
10702 | test "$enable_shared" = yes || enable_static=yes | |
10703 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10704 | echo "${ECHO_T}$enable_static" >&6 | |
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | fi | |
10710 | ac_ext=c | |
10711 | ac_cpp='$CPP $CPPFLAGS' | |
10712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10715 | ||
10716 | CC="$lt_save_CC" | |
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ac_config_commands="$ac_config_commands libtool" | |
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | # Only expand once: | |
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
10742 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
10743 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
10744 | if test "${enable_maintainer_mode+set}" = set; then | |
10745 | enableval="$enable_maintainer_mode" | |
10746 | USE_MAINTAINER_MODE=$enableval | |
10747 | else | |
10748 | USE_MAINTAINER_MODE=no | |
10749 | fi; | |
10750 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
10751 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
10752 | ||
10753 | ||
10754 | if test $USE_MAINTAINER_MODE = yes; then | |
10755 | MAINTAINER_MODE_TRUE= | |
10756 | MAINTAINER_MODE_FALSE='#' | |
10757 | else | |
10758 | MAINTAINER_MODE_TRUE='#' | |
10759 | MAINTAINER_MODE_FALSE= | |
10760 | fi | |
10761 | ||
10762 | MAINT=$MAINTAINER_MODE_TRUE | |
10763 | ||
10764 | ||
10765 | ||
10766 | # We need gfortran to compile parts of the library | |
10767 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
10768 | #AC_PROG_FC(gfortran) | |
10769 | FC="$GFORTRAN" | |
10770 | ac_ext=${FC_SRCEXT-f} | |
10771 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
10772 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
10773 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
10774 | if test -n "$ac_tool_prefix"; then | |
10775 | for ac_prog in gfortran | |
10776 | do | |
10777 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10778 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10781 | if test "${ac_cv_prog_FC+set}" = set; then | |
10782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10783 | else | |
10784 | if test -n "$FC"; then | |
10785 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
10786 | else | |
10787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10788 | for as_dir in $PATH | |
10789 | do | |
10790 | IFS=$as_save_IFS | |
10791 | test -z "$as_dir" && as_dir=. | |
10792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10794 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
10795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10796 | break 2 | |
10797 | fi | |
10798 | done | |
10799 | done | |
10800 | ||
10801 | fi | |
10802 | fi | |
10803 | FC=$ac_cv_prog_FC | |
10804 | if test -n "$FC"; then | |
10805 | echo "$as_me:$LINENO: result: $FC" >&5 | |
10806 | echo "${ECHO_T}$FC" >&6 | |
10807 | else | |
10808 | echo "$as_me:$LINENO: result: no" >&5 | |
10809 | echo "${ECHO_T}no" >&6 | |
10810 | fi | |
10811 | ||
10812 | test -n "$FC" && break | |
10813 | done | |
10814 | fi | |
10815 | if test -z "$FC"; then | |
10816 | ac_ct_FC=$FC | |
10817 | for ac_prog in gfortran | |
10818 | do | |
10819 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10820 | set dummy $ac_prog; ac_word=$2 | |
10821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10823 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
10824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10825 | else | |
10826 | if test -n "$ac_ct_FC"; then | |
10827 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
10828 | else | |
10829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10830 | for as_dir in $PATH | |
10831 | do | |
10832 | IFS=$as_save_IFS | |
10833 | test -z "$as_dir" && as_dir=. | |
10834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10836 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
10837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10838 | break 2 | |
10839 | fi | |
10840 | done | |
10841 | done | |
10842 | ||
10843 | fi | |
10844 | fi | |
10845 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
10846 | if test -n "$ac_ct_FC"; then | |
10847 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
10848 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
10849 | else | |
10850 | echo "$as_me:$LINENO: result: no" >&5 | |
10851 | echo "${ECHO_T}no" >&6 | |
10852 | fi | |
10853 | ||
10854 | test -n "$ac_ct_FC" && break | |
10855 | done | |
10856 | ||
10857 | FC=$ac_ct_FC | |
10858 | fi | |
10859 | ||
10860 | ||
10861 | # Provide some information about the compiler. | |
baafc534 | 10862 | echo "$as_me:10862:" \ |
1cf3d07d SE |
10863 | "checking for Fortran compiler version" >&5 |
10864 | ac_compiler=`set X $ac_compile; echo $2` | |
10865 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10866 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10867 | ac_status=$? | |
10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10869 | (exit $ac_status); } | |
10870 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10871 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10872 | ac_status=$? | |
10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10874 | (exit $ac_status); } | |
10875 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10876 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10877 | ac_status=$? | |
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10879 | (exit $ac_status); } | |
10880 | rm -f a.out | |
10881 | ||
10882 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
10883 | # input file. (Note that this only needs to work for GNU compilers.) | |
10884 | ac_save_ext=$ac_ext | |
10885 | ac_ext=F | |
10886 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
10887 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
10888 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
10889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10890 | else | |
10891 | cat >conftest.$ac_ext <<_ACEOF | |
10892 | program main | |
10893 | #ifndef __GNUC__ | |
10894 | choke me | |
10895 | #endif | |
10896 | ||
10897 | end | |
10898 | _ACEOF | |
10899 | rm -f conftest.$ac_objext | |
10900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10901 | (eval $ac_compile) 2>conftest.er1 | |
10902 | ac_status=$? | |
10903 | grep -v '^ *+' conftest.er1 >conftest.err | |
10904 | rm -f conftest.er1 | |
10905 | cat conftest.err >&5 | |
10906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10907 | (exit $ac_status); } && | |
10908 | { ac_try='test -z "$ac_fc_werror_flag" | |
10909 | || test ! -s conftest.err' | |
10910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10911 | (eval $ac_try) 2>&5 | |
10912 | ac_status=$? | |
10913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10914 | (exit $ac_status); }; } && | |
10915 | { ac_try='test -s conftest.$ac_objext' | |
10916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10917 | (eval $ac_try) 2>&5 | |
10918 | ac_status=$? | |
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10920 | (exit $ac_status); }; }; then | |
10921 | ac_compiler_gnu=yes | |
10922 | else | |
10923 | echo "$as_me: failed program was:" >&5 | |
10924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10925 | ||
10926 | ac_compiler_gnu=no | |
10927 | fi | |
10928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10929 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
10930 | ||
10931 | fi | |
10932 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
10933 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
10934 | ac_ext=$ac_save_ext | |
10935 | ac_test_FFLAGS=${FCFLAGS+set} | |
10936 | ac_save_FFLAGS=$FCFLAGS | |
10937 | FCFLAGS= | |
10938 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
10939 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
10940 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10942 | else | |
10943 | FCFLAGS=-g | |
10944 | cat >conftest.$ac_ext <<_ACEOF | |
10945 | program main | |
10946 | ||
10947 | end | |
10948 | _ACEOF | |
10949 | rm -f conftest.$ac_objext | |
10950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10951 | (eval $ac_compile) 2>conftest.er1 | |
10952 | ac_status=$? | |
10953 | grep -v '^ *+' conftest.er1 >conftest.err | |
10954 | rm -f conftest.er1 | |
10955 | cat conftest.err >&5 | |
10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10957 | (exit $ac_status); } && | |
10958 | { ac_try='test -z "$ac_fc_werror_flag" | |
10959 | || test ! -s conftest.err' | |
10960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10961 | (eval $ac_try) 2>&5 | |
10962 | ac_status=$? | |
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10964 | (exit $ac_status); }; } && | |
10965 | { ac_try='test -s conftest.$ac_objext' | |
10966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10967 | (eval $ac_try) 2>&5 | |
10968 | ac_status=$? | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); }; }; then | |
10971 | ac_cv_prog_fc_g=yes | |
10972 | else | |
10973 | echo "$as_me: failed program was:" >&5 | |
10974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10975 | ||
10976 | ac_cv_prog_fc_g=no | |
10977 | fi | |
10978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10979 | ||
10980 | fi | |
10981 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
10982 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
10983 | if test "$ac_test_FFLAGS" = set; then | |
10984 | FCFLAGS=$ac_save_FFLAGS | |
10985 | elif test $ac_cv_prog_fc_g = yes; then | |
10986 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10987 | FCFLAGS="-g -O2" | |
10988 | else | |
10989 | FCFLAGS="-g" | |
10990 | fi | |
10991 | else | |
10992 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10993 | FCFLAGS="-O2" | |
10994 | else | |
10995 | FCFLAGS= | |
10996 | fi | |
10997 | fi | |
10998 | ||
10999 | ac_ext=c | |
11000 | ac_cpp='$CPP $CPPFLAGS' | |
11001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11004 | ||
11005 | ||
11006 | ac_ext=${FC_SRCEXT-f} | |
11007 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
11008 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
11009 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
11010 | if test -n "$ac_tool_prefix"; then | |
11011 | for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 | |
11012 | do | |
11013 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11014 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11017 | if test "${ac_cv_prog_FC+set}" = set; then | |
11018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11019 | else | |
11020 | if test -n "$FC"; then | |
11021 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11022 | else | |
11023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11024 | for as_dir in $PATH | |
11025 | do | |
11026 | IFS=$as_save_IFS | |
11027 | test -z "$as_dir" && as_dir=. | |
11028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11030 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
11031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11032 | break 2 | |
11033 | fi | |
11034 | done | |
11035 | done | |
11036 | ||
11037 | fi | |
11038 | fi | |
11039 | FC=$ac_cv_prog_FC | |
11040 | if test -n "$FC"; then | |
11041 | echo "$as_me:$LINENO: result: $FC" >&5 | |
11042 | echo "${ECHO_T}$FC" >&6 | |
11043 | else | |
11044 | echo "$as_me:$LINENO: result: no" >&5 | |
11045 | echo "${ECHO_T}no" >&6 | |
11046 | fi | |
11047 | ||
11048 | test -n "$FC" && break | |
11049 | done | |
11050 | fi | |
11051 | if test -z "$FC"; then | |
11052 | ac_ct_FC=$FC | |
11053 | for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 | |
11054 | do | |
11055 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11056 | set dummy $ac_prog; ac_word=$2 | |
11057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11059 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
11060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11061 | else | |
11062 | if test -n "$ac_ct_FC"; then | |
11063 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11064 | else | |
11065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11066 | for as_dir in $PATH | |
11067 | do | |
11068 | IFS=$as_save_IFS | |
11069 | test -z "$as_dir" && as_dir=. | |
11070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11072 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
11073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11074 | break 2 | |
11075 | fi | |
11076 | done | |
11077 | done | |
11078 | ||
11079 | fi | |
11080 | fi | |
11081 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11082 | if test -n "$ac_ct_FC"; then | |
11083 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
11084 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
11085 | else | |
11086 | echo "$as_me:$LINENO: result: no" >&5 | |
11087 | echo "${ECHO_T}no" >&6 | |
11088 | fi | |
11089 | ||
11090 | test -n "$ac_ct_FC" && break | |
11091 | done | |
11092 | ||
11093 | FC=$ac_ct_FC | |
11094 | fi | |
11095 | ||
11096 | ||
11097 | # Provide some information about the compiler. | |
baafc534 | 11098 | echo "$as_me:11098:" \ |
1cf3d07d SE |
11099 | "checking for Fortran compiler version" >&5 |
11100 | ac_compiler=`set X $ac_compile; echo $2` | |
11101 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11102 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11103 | ac_status=$? | |
11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11105 | (exit $ac_status); } | |
11106 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11107 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11108 | ac_status=$? | |
11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11110 | (exit $ac_status); } | |
11111 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11112 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11113 | ac_status=$? | |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); } | |
11116 | rm -f a.out | |
11117 | ||
11118 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11119 | # input file. (Note that this only needs to work for GNU compilers.) | |
11120 | ac_save_ext=$ac_ext | |
11121 | ac_ext=F | |
11122 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
11123 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
11124 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11126 | else | |
11127 | cat >conftest.$ac_ext <<_ACEOF | |
11128 | program main | |
11129 | #ifndef __GNUC__ | |
11130 | choke me | |
11131 | #endif | |
11132 | ||
11133 | end | |
11134 | _ACEOF | |
11135 | rm -f conftest.$ac_objext | |
11136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11137 | (eval $ac_compile) 2>conftest.er1 | |
11138 | ac_status=$? | |
11139 | grep -v '^ *+' conftest.er1 >conftest.err | |
11140 | rm -f conftest.er1 | |
11141 | cat conftest.err >&5 | |
11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11143 | (exit $ac_status); } && | |
11144 | { ac_try='test -z "$ac_fc_werror_flag" | |
11145 | || test ! -s conftest.err' | |
11146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11147 | (eval $ac_try) 2>&5 | |
11148 | ac_status=$? | |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11150 | (exit $ac_status); }; } && | |
11151 | { ac_try='test -s conftest.$ac_objext' | |
11152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11153 | (eval $ac_try) 2>&5 | |
11154 | ac_status=$? | |
11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11156 | (exit $ac_status); }; }; then | |
11157 | ac_compiler_gnu=yes | |
11158 | else | |
11159 | echo "$as_me: failed program was:" >&5 | |
11160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11161 | ||
11162 | ac_compiler_gnu=no | |
11163 | fi | |
11164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11165 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
11166 | ||
11167 | fi | |
11168 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
11169 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
11170 | ac_ext=$ac_save_ext | |
11171 | ac_test_FFLAGS=${FCFLAGS+set} | |
11172 | ac_save_FFLAGS=$FCFLAGS | |
11173 | FCFLAGS= | |
11174 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
11175 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
11176 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
11177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11178 | else | |
11179 | FCFLAGS=-g | |
11180 | cat >conftest.$ac_ext <<_ACEOF | |
11181 | program main | |
11182 | ||
11183 | end | |
11184 | _ACEOF | |
11185 | rm -f conftest.$ac_objext | |
11186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11187 | (eval $ac_compile) 2>conftest.er1 | |
11188 | ac_status=$? | |
11189 | grep -v '^ *+' conftest.er1 >conftest.err | |
11190 | rm -f conftest.er1 | |
11191 | cat conftest.err >&5 | |
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11193 | (exit $ac_status); } && | |
11194 | { ac_try='test -z "$ac_fc_werror_flag" | |
11195 | || test ! -s conftest.err' | |
11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11197 | (eval $ac_try) 2>&5 | |
11198 | ac_status=$? | |
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11200 | (exit $ac_status); }; } && | |
11201 | { ac_try='test -s conftest.$ac_objext' | |
11202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11203 | (eval $ac_try) 2>&5 | |
11204 | ac_status=$? | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); }; }; then | |
11207 | ac_cv_prog_fc_g=yes | |
11208 | else | |
11209 | echo "$as_me: failed program was:" >&5 | |
11210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11211 | ||
11212 | ac_cv_prog_fc_g=no | |
11213 | fi | |
11214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11215 | ||
11216 | fi | |
11217 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
11218 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
11219 | if test "$ac_test_FFLAGS" = set; then | |
11220 | FCFLAGS=$ac_save_FFLAGS | |
11221 | elif test $ac_cv_prog_fc_g = yes; then | |
11222 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11223 | FCFLAGS="-g -O2" | |
11224 | else | |
11225 | FCFLAGS="-g" | |
11226 | fi | |
11227 | else | |
11228 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11229 | FCFLAGS="-O2" | |
11230 | else | |
11231 | FCFLAGS= | |
11232 | fi | |
11233 | fi | |
11234 | ||
11235 | ac_ext=c | |
11236 | ac_cpp='$CPP $CPPFLAGS' | |
11237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11240 | ||
11241 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
11242 | _lt_disable_FC=yes | |
11243 | fi | |
11244 | ||
11245 | ||
11246 | ||
11247 | ac_ext=${FC_SRCEXT-f} | |
11248 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
11249 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
11250 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
11251 | ||
11252 | ||
11253 | archive_cmds_need_lc_FC=no | |
11254 | allow_undefined_flag_FC= | |
11255 | always_export_symbols_FC=no | |
11256 | archive_expsym_cmds_FC= | |
11257 | export_dynamic_flag_spec_FC= | |
11258 | hardcode_direct_FC=no | |
11259 | hardcode_direct_absolute_FC=no | |
11260 | hardcode_libdir_flag_spec_FC= | |
11261 | hardcode_libdir_flag_spec_ld_FC= | |
11262 | hardcode_libdir_separator_FC= | |
11263 | hardcode_minus_L_FC=no | |
11264 | hardcode_automatic_FC=no | |
11265 | inherit_rpath_FC=no | |
11266 | module_cmds_FC= | |
11267 | module_expsym_cmds_FC= | |
11268 | link_all_deplibs_FC=unknown | |
11269 | old_archive_cmds_FC=$old_archive_cmds | |
11270 | no_undefined_flag_FC= | |
11271 | whole_archive_flag_spec_FC= | |
11272 | enable_shared_with_static_runtimes_FC=no | |
11273 | ||
11274 | # Source file extension for fc test sources. | |
11275 | ac_ext=${ac_fc_srcext-f} | |
11276 | ||
11277 | # Object file extension for compiled fc test sources. | |
11278 | objext=o | |
11279 | objext_FC=$objext | |
11280 | ||
11281 | # No sense in running all these tests if we already determined that | |
11282 | # the FC compiler isn't working. Some variables (like enable_shared) | |
11283 | # are currently assumed to apply to all compilers on this platform, | |
11284 | # and will be corrupted by setting them based on a non-working compiler. | |
11285 | if test "$_lt_disable_FC" != yes; then | |
11286 | # Code to be used in simple compile tests | |
11287 | lt_simple_compile_test_code="\ | |
11288 | subroutine t | |
11289 | return | |
11290 | end | |
11291 | " | |
11292 | ||
11293 | # Code to be used in simple link tests | |
11294 | lt_simple_link_test_code="\ | |
11295 | program t | |
11296 | end | |
11297 | " | |
11298 | ||
11299 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11300 | ||
11301 | ||
11302 | ||
11303 | ||
11304 | ||
11305 | ||
11306 | # If no C compiler was specified, use CC. | |
11307 | LTCC=${LTCC-"$CC"} | |
11308 | ||
11309 | # If no C compiler flags were specified, use CFLAGS. | |
11310 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11311 | ||
11312 | # Allow CC to be a program name with arguments. | |
11313 | compiler=$CC | |
11314 | ||
11315 | ||
11316 | # save warnings/boilerplate of simple test code | |
11317 | ac_outfile=conftest.$ac_objext | |
11318 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11319 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11320 | _lt_compiler_boilerplate=`cat conftest.err` | |
11321 | $RM conftest* | |
11322 | ||
11323 | ac_outfile=conftest.$ac_objext | |
11324 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11325 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11326 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 11327 | $RM -r conftest* |
1cf3d07d SE |
11328 | |
11329 | ||
11330 | # Allow CC to be a program name with arguments. | |
11331 | lt_save_CC="$CC" | |
6b4a97ed | 11332 | lt_save_GCC=$GCC |
1cf3d07d SE |
11333 | CC=${FC-"f95"} |
11334 | compiler=$CC | |
6b4a97ed PG |
11335 | GCC=$ac_cv_fc_compiler_gnu |
11336 | ||
1cf3d07d SE |
11337 | compiler_FC=$CC |
11338 | for cc_temp in $compiler""; do | |
11339 | case $cc_temp in | |
11340 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11341 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11342 | \-*) ;; | |
11343 | *) break;; | |
11344 | esac | |
11345 | done | |
11346 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
11347 | ||
11348 | ||
11349 | if test -n "$compiler"; then | |
11350 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11351 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11352 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11353 | echo "${ECHO_T}$can_build_shared" >&6 | |
11354 | ||
11355 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11356 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
11357 | test "$can_build_shared" = "no" && enable_shared=no | |
11358 | ||
11359 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11360 | # are all built from PIC. | |
11361 | case $host_os in | |
11362 | aix3*) | |
11363 | test "$enable_shared" = yes && enable_static=no | |
11364 | if test -n "$RANLIB"; then | |
11365 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11366 | postinstall_cmds='$RANLIB $lib' | |
11367 | fi | |
11368 | ;; | |
d653fdfb | 11369 | aix[4-9]*) |
1cf3d07d SE |
11370 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11371 | test "$enable_shared" = yes && enable_static=no | |
11372 | fi | |
11373 | ;; | |
11374 | esac | |
11375 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11376 | echo "${ECHO_T}$enable_shared" >&6 | |
11377 | ||
11378 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11379 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
11380 | # Make sure either enable_shared or enable_static is yes. | |
11381 | test "$enable_shared" = yes || enable_static=yes | |
11382 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11383 | echo "${ECHO_T}$enable_static" >&6 | |
11384 | ||
11385 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
11386 | LD_FC="$LD" | |
11387 | ||
11388 | ## CAVEAT EMPTOR: | |
11389 | ## There is no encapsulation within the following macros, do not change | |
11390 | ## the running order or otherwise move them around unless you know exactly | |
11391 | ## what you are doing... | |
11392 | # Dependencies to place before and after the object being linked: | |
11393 | predep_objects_FC= | |
11394 | postdep_objects_FC= | |
11395 | predeps_FC= | |
11396 | postdeps_FC= | |
11397 | compiler_lib_search_path_FC= | |
11398 | ||
11399 | cat > conftest.$ac_ext <<_LT_EOF | |
11400 | subroutine foo | |
11401 | implicit none | |
11402 | integer a | |
11403 | a=0 | |
11404 | return | |
11405 | end | |
11406 | _LT_EOF | |
11407 | ||
11408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11409 | (eval $ac_compile) 2>&5 | |
11410 | ac_status=$? | |
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11412 | (exit $ac_status); }; then | |
11413 | # Parse the compiler output and extract the necessary | |
11414 | # objects, libraries and library flags. | |
11415 | ||
11416 | # Sentinel used to keep track of whether or not we are before | |
11417 | # the conftest object file. | |
11418 | pre_test_object_deps_done=no | |
11419 | ||
6b4a97ed | 11420 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
11421 | case $p in |
11422 | ||
11423 | -L* | -R* | -l*) | |
11424 | # Some compilers place space between "-{L,R}" and the path. | |
11425 | # Remove the space. | |
11426 | if test $p = "-L" || | |
11427 | test $p = "-R"; then | |
11428 | prev=$p | |
11429 | continue | |
11430 | else | |
11431 | prev= | |
11432 | fi | |
11433 | ||
11434 | if test "$pre_test_object_deps_done" = no; then | |
11435 | case $p in | |
11436 | -L* | -R*) | |
11437 | # Internal compiler library paths should come after those | |
11438 | # provided the user. The postdeps already come after the | |
11439 | # user supplied libs so there is no need to process them. | |
11440 | if test -z "$compiler_lib_search_path_FC"; then | |
11441 | compiler_lib_search_path_FC="${prev}${p}" | |
11442 | else | |
11443 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
11444 | fi | |
11445 | ;; | |
11446 | # The "-l" case would never come before the object being | |
11447 | # linked, so don't bother handling this case. | |
11448 | esac | |
11449 | else | |
11450 | if test -z "$postdeps_FC"; then | |
11451 | postdeps_FC="${prev}${p}" | |
11452 | else | |
11453 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
11454 | fi | |
11455 | fi | |
11456 | ;; | |
11457 | ||
11458 | *.$objext) | |
11459 | # This assumes that the test object file only shows up | |
11460 | # once in the compiler output. | |
11461 | if test "$p" = "conftest.$objext"; then | |
11462 | pre_test_object_deps_done=yes | |
11463 | continue | |
11464 | fi | |
11465 | ||
11466 | if test "$pre_test_object_deps_done" = no; then | |
11467 | if test -z "$predep_objects_FC"; then | |
11468 | predep_objects_FC="$p" | |
11469 | else | |
11470 | predep_objects_FC="$predep_objects_FC $p" | |
11471 | fi | |
11472 | else | |
11473 | if test -z "$postdep_objects_FC"; then | |
11474 | postdep_objects_FC="$p" | |
11475 | else | |
11476 | postdep_objects_FC="$postdep_objects_FC $p" | |
11477 | fi | |
11478 | fi | |
11479 | ;; | |
11480 | ||
11481 | *) ;; # Ignore the rest. | |
11482 | ||
11483 | esac | |
11484 | done | |
11485 | ||
11486 | # Clean up. | |
11487 | rm -f a.out a.exe | |
11488 | else | |
11489 | echo "libtool.m4: error: problem compiling FC test program" | |
11490 | fi | |
11491 | ||
11492 | $RM -f confest.$objext | |
11493 | ||
11494 | # PORTME: override above test on systems where it is broken | |
11495 | ||
11496 | ||
11497 | case " $postdeps_FC " in | |
11498 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
11499 | esac | |
6b4a97ed PG |
11500 | compiler_lib_search_dirs_FC= |
11501 | if test -n "${compiler_lib_search_path_FC}"; then | |
11502 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
11503 | fi | |
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
1cf3d07d SE |
11509 | |
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | lt_prog_compiler_wl_FC= | |
11536 | lt_prog_compiler_pic_FC= | |
11537 | lt_prog_compiler_static_FC= | |
11538 | ||
11539 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11540 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11541 | ||
11542 | if test "$GCC" = yes; then | |
11543 | lt_prog_compiler_wl_FC='-Wl,' | |
11544 | lt_prog_compiler_static_FC='-static' | |
11545 | ||
11546 | case $host_os in | |
11547 | aix*) | |
11548 | # All AIX code is PIC. | |
11549 | if test "$host_cpu" = ia64; then | |
11550 | # AIX 5 now supports IA64 processor | |
11551 | lt_prog_compiler_static_FC='-Bstatic' | |
11552 | fi | |
11553 | ;; | |
11554 | ||
11555 | amigaos*) | |
6b4a97ed PG |
11556 | case $host_cpu in |
11557 | powerpc) | |
11558 | # see comment about AmigaOS4 .so support | |
11559 | lt_prog_compiler_pic_FC='-fPIC' | |
11560 | ;; | |
11561 | m68k) | |
11562 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11563 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11564 | # like `-m68040'. | |
11565 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
11566 | ;; | |
11567 | esac | |
1cf3d07d SE |
11568 | ;; |
11569 | ||
11570 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11571 | # PIC is the default for these OSes. | |
11572 | ;; | |
11573 | ||
6b4a97ed | 11574 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
11575 | # This hack is so that the source file can tell whether it is being |
11576 | # built for inclusion in a dll (and should export symbols for example). | |
11577 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
11578 | # (--disable-auto-import) libraries | |
11579 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
11580 | ;; | |
11581 | ||
11582 | darwin* | rhapsody*) | |
11583 | # PIC is the default on this platform | |
11584 | # Common symbols not allowed in MH_DYLIB files | |
11585 | lt_prog_compiler_pic_FC='-fno-common' | |
11586 | ;; | |
11587 | ||
11588 | hpux*) | |
6b4a97ed PG |
11589 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
11590 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
11591 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 11592 | case $host_cpu in |
6b4a97ed | 11593 | hppa*64*) |
1cf3d07d SE |
11594 | # +Z the default |
11595 | ;; | |
11596 | *) | |
11597 | lt_prog_compiler_pic_FC='-fPIC' | |
11598 | ;; | |
11599 | esac | |
11600 | ;; | |
11601 | ||
11602 | interix[3-9]*) | |
11603 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11604 | # Instead, we relocate shared libraries at runtime. | |
11605 | ;; | |
11606 | ||
11607 | msdosdjgpp*) | |
11608 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11609 | # on systems that don't support them. | |
11610 | lt_prog_compiler_can_build_shared_FC=no | |
11611 | enable_shared=no | |
11612 | ;; | |
11613 | ||
11614 | *nto* | *qnx*) | |
11615 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11616 | # it will coredump. | |
11617 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
11618 | ;; | |
11619 | ||
11620 | sysv4*MP*) | |
11621 | if test -d /usr/nec; then | |
11622 | lt_prog_compiler_pic_FC=-Kconform_pic | |
11623 | fi | |
11624 | ;; | |
11625 | ||
11626 | *) | |
11627 | lt_prog_compiler_pic_FC='-fPIC' | |
11628 | ;; | |
11629 | esac | |
11630 | else | |
11631 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11632 | case $host_os in | |
11633 | aix*) | |
11634 | lt_prog_compiler_wl_FC='-Wl,' | |
11635 | if test "$host_cpu" = ia64; then | |
11636 | # AIX 5 now supports IA64 processor | |
11637 | lt_prog_compiler_static_FC='-Bstatic' | |
11638 | else | |
11639 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
11640 | fi | |
11641 | ;; | |
1cf3d07d | 11642 | |
6b4a97ed | 11643 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
11644 | # This hack is so that the source file can tell whether it is being |
11645 | # built for inclusion in a dll (and should export symbols for example). | |
11646 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
11647 | ;; | |
11648 | ||
11649 | hpux9* | hpux10* | hpux11*) | |
11650 | lt_prog_compiler_wl_FC='-Wl,' | |
11651 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11652 | # not for PA HP-UX. | |
11653 | case $host_cpu in | |
11654 | hppa*64*|ia64*) | |
11655 | # +Z the default | |
11656 | ;; | |
11657 | *) | |
11658 | lt_prog_compiler_pic_FC='+Z' | |
11659 | ;; | |
11660 | esac | |
11661 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11662 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
11663 | ;; | |
11664 | ||
11665 | irix5* | irix6* | nonstopux*) | |
11666 | lt_prog_compiler_wl_FC='-Wl,' | |
11667 | # PIC (with -KPIC) is the default. | |
11668 | lt_prog_compiler_static_FC='-non_shared' | |
11669 | ;; | |
11670 | ||
11671 | linux* | k*bsd*-gnu) | |
11672 | case $cc_basename in | |
6b4a97ed PG |
11673 | # old Intel for x86_64 which still supported -KPIC. |
11674 | ecc*) | |
1cf3d07d SE |
11675 | lt_prog_compiler_wl_FC='-Wl,' |
11676 | lt_prog_compiler_pic_FC='-KPIC' | |
11677 | lt_prog_compiler_static_FC='-static' | |
11678 | ;; | |
6b4a97ed PG |
11679 | # icc used to be incompatible with GCC. |
11680 | # ICC 10 doesn't accept -KPIC any more. | |
11681 | icc* | ifort*) | |
11682 | lt_prog_compiler_wl_FC='-Wl,' | |
11683 | lt_prog_compiler_pic_FC='-fPIC' | |
11684 | lt_prog_compiler_static_FC='-static' | |
11685 | ;; | |
11686 | # Lahey Fortran 8.1. | |
11687 | lf95*) | |
11688 | lt_prog_compiler_wl_FC='-Wl,' | |
11689 | lt_prog_compiler_pic_FC='--shared' | |
11690 | lt_prog_compiler_static_FC='--static' | |
11691 | ;; | |
1cf3d07d SE |
11692 | pgcc* | pgf77* | pgf90* | pgf95*) |
11693 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
11694 | # which looks to be a dead project) | |
11695 | lt_prog_compiler_wl_FC='-Wl,' | |
11696 | lt_prog_compiler_pic_FC='-fpic' | |
11697 | lt_prog_compiler_static_FC='-Bstatic' | |
11698 | ;; | |
11699 | ccc*) | |
11700 | lt_prog_compiler_wl_FC='-Wl,' | |
11701 | # All Alpha code is PIC. | |
11702 | lt_prog_compiler_static_FC='-non_shared' | |
11703 | ;; | |
6b4a97ed PG |
11704 | xl*) |
11705 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
11706 | lt_prog_compiler_wl_FC='-Wl,' | |
11707 | lt_prog_compiler_pic_FC='-qpic' | |
11708 | lt_prog_compiler_static_FC='-qstaticlink' | |
11709 | ;; | |
1cf3d07d SE |
11710 | *) |
11711 | case `$CC -V 2>&1 | sed 5q` in | |
11712 | *Sun\ C*) | |
11713 | # Sun C 5.9 | |
11714 | lt_prog_compiler_pic_FC='-KPIC' | |
11715 | lt_prog_compiler_static_FC='-Bstatic' | |
11716 | lt_prog_compiler_wl_FC='-Wl,' | |
11717 | ;; | |
11718 | *Sun\ F*) | |
11719 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
11720 | lt_prog_compiler_pic_FC='-KPIC' | |
11721 | lt_prog_compiler_static_FC='-Bstatic' | |
11722 | lt_prog_compiler_wl_FC='' | |
11723 | ;; | |
11724 | esac | |
11725 | ;; | |
11726 | esac | |
11727 | ;; | |
11728 | ||
11729 | newsos6) | |
11730 | lt_prog_compiler_pic_FC='-KPIC' | |
11731 | lt_prog_compiler_static_FC='-Bstatic' | |
11732 | ;; | |
11733 | ||
11734 | *nto* | *qnx*) | |
11735 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11736 | # it will coredump. | |
11737 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
11738 | ;; | |
11739 | ||
11740 | osf3* | osf4* | osf5*) | |
11741 | lt_prog_compiler_wl_FC='-Wl,' | |
11742 | # All OSF/1 code is PIC. | |
11743 | lt_prog_compiler_static_FC='-non_shared' | |
11744 | ;; | |
11745 | ||
11746 | rdos*) | |
11747 | lt_prog_compiler_static_FC='-non_shared' | |
11748 | ;; | |
11749 | ||
11750 | solaris*) | |
11751 | lt_prog_compiler_pic_FC='-KPIC' | |
11752 | lt_prog_compiler_static_FC='-Bstatic' | |
11753 | case $cc_basename in | |
11754 | f77* | f90* | f95*) | |
11755 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
11756 | *) | |
11757 | lt_prog_compiler_wl_FC='-Wl,';; | |
11758 | esac | |
11759 | ;; | |
11760 | ||
11761 | sunos4*) | |
11762 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
11763 | lt_prog_compiler_pic_FC='-PIC' | |
11764 | lt_prog_compiler_static_FC='-Bstatic' | |
11765 | ;; | |
11766 | ||
11767 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
11768 | lt_prog_compiler_wl_FC='-Wl,' | |
11769 | lt_prog_compiler_pic_FC='-KPIC' | |
11770 | lt_prog_compiler_static_FC='-Bstatic' | |
11771 | ;; | |
11772 | ||
11773 | sysv4*MP*) | |
11774 | if test -d /usr/nec ;then | |
11775 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
11776 | lt_prog_compiler_static_FC='-Bstatic' | |
11777 | fi | |
11778 | ;; | |
11779 | ||
11780 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11781 | lt_prog_compiler_wl_FC='-Wl,' | |
11782 | lt_prog_compiler_pic_FC='-KPIC' | |
11783 | lt_prog_compiler_static_FC='-Bstatic' | |
11784 | ;; | |
11785 | ||
11786 | unicos*) | |
11787 | lt_prog_compiler_wl_FC='-Wl,' | |
11788 | lt_prog_compiler_can_build_shared_FC=no | |
11789 | ;; | |
11790 | ||
11791 | uts4*) | |
11792 | lt_prog_compiler_pic_FC='-pic' | |
11793 | lt_prog_compiler_static_FC='-Bstatic' | |
11794 | ;; | |
11795 | ||
11796 | *) | |
11797 | lt_prog_compiler_can_build_shared_FC=no | |
11798 | ;; | |
11799 | esac | |
11800 | fi | |
11801 | ||
11802 | case $host_os in | |
11803 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11804 | *djgpp*) | |
11805 | lt_prog_compiler_pic_FC= | |
11806 | ;; | |
11807 | *) | |
11808 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
11809 | ;; | |
11810 | esac | |
11811 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 | |
11812 | echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6 | |
11813 | ||
11814 | ||
11815 | ||
11816 | # | |
11817 | # Check to make sure the PIC flag actually works. | |
11818 | # | |
11819 | if test -n "$lt_prog_compiler_pic_FC"; then | |
11820 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 | |
11821 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6 | |
6b4a97ed | 11822 | if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then |
1cf3d07d SE |
11823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11824 | else | |
6b4a97ed | 11825 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
11826 | ac_outfile=conftest.$ac_objext |
11827 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11828 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
11829 | # Insert the option either (1) after the last *FLAGS variable, or | |
11830 | # (2) before a word containing "conftest.", or (3) at the end. | |
11831 | # Note that $ac_compile itself does not contain backslashes and begins | |
11832 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11833 | # The option is referenced via a variable to avoid confusing sed. | |
11834 | lt_compile=`echo "$ac_compile" | $SED \ | |
11835 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11836 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11837 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 11838 | (eval echo "\"\$as_me:11838: $lt_compile\"" >&5) |
1cf3d07d SE |
11839 | (eval "$lt_compile" 2>conftest.err) |
11840 | ac_status=$? | |
11841 | cat conftest.err >&5 | |
baafc534 | 11842 | echo "$as_me:11842: \$? = $ac_status" >&5 |
1cf3d07d SE |
11843 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11844 | # The compiler can only warn and ignore the option if not recognized | |
11845 | # So say no if there are warnings other than the usual output. | |
11846 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
11847 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11848 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 11849 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
11850 | fi |
11851 | fi | |
11852 | $RM conftest* | |
11853 | ||
11854 | fi | |
6b4a97ed PG |
11855 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
11856 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6 | |
1cf3d07d | 11857 | |
6b4a97ed | 11858 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
11859 | case $lt_prog_compiler_pic_FC in |
11860 | "" | " "*) ;; | |
11861 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
11862 | esac | |
11863 | else | |
11864 | lt_prog_compiler_pic_FC= | |
11865 | lt_prog_compiler_can_build_shared_FC=no | |
11866 | fi | |
11867 | ||
11868 | fi | |
11869 | ||
11870 | ||
11871 | ||
11872 | # | |
11873 | # Check to make sure the static flag actually works. | |
11874 | # | |
11875 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
11876 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11877 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
6b4a97ed | 11878 | if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then |
1cf3d07d SE |
11879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11880 | else | |
6b4a97ed | 11881 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
11882 | save_LDFLAGS="$LDFLAGS" |
11883 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11884 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11885 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11886 | # The linker can only warn and ignore the option if not recognized | |
11887 | # So say no if there are warnings | |
11888 | if test -s conftest.err; then | |
11889 | # Append any errors to the config.log. | |
11890 | cat conftest.err 1>&5 | |
11891 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
11892 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11893 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 11894 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
11895 | fi |
11896 | else | |
6b4a97ed | 11897 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
11898 | fi |
11899 | fi | |
6b4a97ed | 11900 | $RM -r conftest* |
1cf3d07d SE |
11901 | LDFLAGS="$save_LDFLAGS" |
11902 | ||
11903 | fi | |
6b4a97ed PG |
11904 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
11905 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6 | |
1cf3d07d | 11906 | |
6b4a97ed | 11907 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
11908 | : |
11909 | else | |
11910 | lt_prog_compiler_static_FC= | |
11911 | fi | |
11912 | ||
11913 | ||
11914 | ||
11915 | ||
11916 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11917 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11918 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then | |
11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11920 | else | |
11921 | lt_cv_prog_compiler_c_o_FC=no | |
11922 | $RM -r conftest 2>/dev/null | |
11923 | mkdir conftest | |
11924 | cd conftest | |
11925 | mkdir out | |
11926 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11927 | ||
11928 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11929 | # Insert the option either (1) after the last *FLAGS variable, or | |
11930 | # (2) before a word containing "conftest.", or (3) at the end. | |
11931 | # Note that $ac_compile itself does not contain backslashes and begins | |
11932 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11933 | lt_compile=`echo "$ac_compile" | $SED \ | |
11934 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11935 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11936 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 11937 | (eval echo "\"\$as_me:11937: $lt_compile\"" >&5) |
1cf3d07d SE |
11938 | (eval "$lt_compile" 2>out/conftest.err) |
11939 | ac_status=$? | |
11940 | cat out/conftest.err >&5 | |
baafc534 | 11941 | echo "$as_me:11941: \$? = $ac_status" >&5 |
1cf3d07d SE |
11942 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11943 | then | |
11944 | # The compiler can only warn and ignore the option if not recognized | |
11945 | # So say no if there are warnings | |
11946 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11947 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11948 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11949 | lt_cv_prog_compiler_c_o_FC=yes | |
11950 | fi | |
11951 | fi | |
11952 | chmod u+w . 2>&5 | |
11953 | $RM conftest* | |
11954 | # SGI C++ compiler will create directory out/ii_files/ for | |
11955 | # template instantiation | |
11956 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11957 | $RM out/* && rmdir out | |
11958 | cd .. | |
11959 | $RM -r conftest | |
11960 | $RM conftest* | |
11961 | ||
11962 | fi | |
11963 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 | |
11964 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 | |
11965 | ||
11966 | ||
11967 | ||
11968 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11969 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11970 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then | |
11971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11972 | else | |
11973 | lt_cv_prog_compiler_c_o_FC=no | |
11974 | $RM -r conftest 2>/dev/null | |
11975 | mkdir conftest | |
11976 | cd conftest | |
11977 | mkdir out | |
11978 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11979 | ||
11980 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11981 | # Insert the option either (1) after the last *FLAGS variable, or | |
11982 | # (2) before a word containing "conftest.", or (3) at the end. | |
11983 | # Note that $ac_compile itself does not contain backslashes and begins | |
11984 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11985 | lt_compile=`echo "$ac_compile" | $SED \ | |
11986 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11987 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11988 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 11989 | (eval echo "\"\$as_me:11989: $lt_compile\"" >&5) |
1cf3d07d SE |
11990 | (eval "$lt_compile" 2>out/conftest.err) |
11991 | ac_status=$? | |
11992 | cat out/conftest.err >&5 | |
baafc534 | 11993 | echo "$as_me:11993: \$? = $ac_status" >&5 |
1cf3d07d SE |
11994 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11995 | then | |
11996 | # The compiler can only warn and ignore the option if not recognized | |
11997 | # So say no if there are warnings | |
11998 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11999 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12000 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12001 | lt_cv_prog_compiler_c_o_FC=yes | |
12002 | fi | |
12003 | fi | |
12004 | chmod u+w . 2>&5 | |
12005 | $RM conftest* | |
12006 | # SGI C++ compiler will create directory out/ii_files/ for | |
12007 | # template instantiation | |
12008 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12009 | $RM out/* && rmdir out | |
12010 | cd .. | |
12011 | $RM -r conftest | |
12012 | $RM conftest* | |
12013 | ||
12014 | fi | |
12015 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 | |
12016 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 | |
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | hard_links="nottested" | |
12022 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
12023 | # do not overwrite the value of need_locks provided by the user | |
12024 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12025 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
12026 | hard_links=yes | |
12027 | $RM conftest* | |
12028 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12029 | touch conftest.a | |
12030 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12031 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12032 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12033 | echo "${ECHO_T}$hard_links" >&6 | |
12034 | if test "$hard_links" = no; then | |
12035 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12036 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12037 | need_locks=warn | |
12038 | fi | |
12039 | else | |
12040 | need_locks=no | |
12041 | fi | |
12042 | ||
12043 | ||
12044 | ||
12045 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12046 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12047 | ||
12048 | runpath_var= | |
12049 | allow_undefined_flag_FC= | |
12050 | always_export_symbols_FC=no | |
12051 | archive_cmds_FC= | |
12052 | archive_expsym_cmds_FC= | |
12053 | compiler_needs_object_FC=no | |
12054 | enable_shared_with_static_runtimes_FC=no | |
12055 | export_dynamic_flag_spec_FC= | |
12056 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12057 | hardcode_automatic_FC=no | |
12058 | hardcode_direct_FC=no | |
12059 | hardcode_direct_absolute_FC=no | |
12060 | hardcode_libdir_flag_spec_FC= | |
12061 | hardcode_libdir_flag_spec_ld_FC= | |
12062 | hardcode_libdir_separator_FC= | |
12063 | hardcode_minus_L_FC=no | |
12064 | hardcode_shlibpath_var_FC=unsupported | |
12065 | inherit_rpath_FC=no | |
12066 | link_all_deplibs_FC=unknown | |
12067 | module_cmds_FC= | |
12068 | module_expsym_cmds_FC= | |
12069 | old_archive_from_new_cmds_FC= | |
12070 | old_archive_from_expsyms_cmds_FC= | |
12071 | thread_safe_flag_spec_FC= | |
12072 | whole_archive_flag_spec_FC= | |
12073 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12074 | # included in the symbol list | |
12075 | include_expsyms_FC= | |
12076 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12077 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12078 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12079 | # as well as any symbol that contains `d'. | |
6b4a97ed | 12080 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
12081 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
12082 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12083 | # the symbol is explicitly referenced. Since portable code cannot | |
12084 | # rely on this symbol name, it's probably fine to never include it in | |
12085 | # preloaded symbol tables. | |
6b4a97ed | 12086 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
12087 | extract_expsyms_cmds= |
12088 | ||
12089 | case $host_os in | |
6b4a97ed | 12090 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12091 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
12092 | # When not using gcc, we currently assume that we are using | |
12093 | # Microsoft Visual C++. | |
12094 | if test "$GCC" != yes; then | |
12095 | with_gnu_ld=no | |
12096 | fi | |
12097 | ;; | |
12098 | interix*) | |
12099 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12100 | with_gnu_ld=yes | |
12101 | ;; | |
12102 | openbsd*) | |
12103 | with_gnu_ld=no | |
12104 | ;; | |
12105 | esac | |
12106 | ||
12107 | ld_shlibs_FC=yes | |
12108 | if test "$with_gnu_ld" = yes; then | |
12109 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12110 | wlarc='${wl}' | |
12111 | ||
12112 | # Set some defaults for GNU ld with shared library support. These | |
12113 | # are reset later if shared libraries are not supported. Putting them | |
12114 | # here allows them to be overridden if necessary. | |
12115 | runpath_var=LD_RUN_PATH | |
12116 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12117 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
12118 | # ancient GNU ld didn't support --whole-archive et. al. | |
12119 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12120 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12121 | else | |
12122 | whole_archive_flag_spec_FC= | |
12123 | fi | |
12124 | supports_anon_versioning=no | |
12125 | case `$LD -v 2>&1` in | |
12126 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
12127 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12128 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12129 | *\ 2.11.*) ;; # other 2.11 versions | |
12130 | *) supports_anon_versioning=yes ;; | |
12131 | esac | |
12132 | ||
12133 | # See if GNU ld supports shared libraries. | |
12134 | case $host_os in | |
d653fdfb | 12135 | aix[3-9]*) |
1cf3d07d SE |
12136 | # On AIX/PPC, the GNU linker is very broken |
12137 | if test "$host_cpu" != ia64; then | |
12138 | ld_shlibs_FC=no | |
12139 | cat <<_LT_EOF 1>&2 | |
12140 | ||
12141 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
12142 | *** to be unable to reliably create shared libraries on AIX. | |
12143 | *** Therefore, libtool is disabling shared libraries support. If you | |
12144 | *** really care for shared libraries, you may want to modify your PATH | |
12145 | *** so that a non-GNU linker is found, and then restart. | |
12146 | ||
12147 | _LT_EOF | |
12148 | fi | |
12149 | ;; | |
12150 | ||
12151 | amigaos*) | |
6b4a97ed PG |
12152 | case $host_cpu in |
12153 | powerpc) | |
12154 | # see comment about AmigaOS4 .so support | |
12155 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12156 | archive_expsym_cmds_FC='' | |
12157 | ;; | |
12158 | m68k) | |
12159 | archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
12160 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12161 | hardcode_minus_L_FC=yes | |
12162 | ;; | |
12163 | esac | |
1cf3d07d SE |
12164 | ;; |
12165 | ||
12166 | beos*) | |
12167 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12168 | allow_undefined_flag_FC=unsupported | |
12169 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12170 | # support --undefined. This deserves some investigation. FIXME | |
12171 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12172 | else | |
12173 | ld_shlibs_FC=no | |
12174 | fi | |
12175 | ;; | |
12176 | ||
6b4a97ed | 12177 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12178 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
12179 | # as there is no search path for DLLs. | |
12180 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12181 | allow_undefined_flag_FC=unsupported | |
12182 | always_export_symbols_FC=no | |
12183 | enable_shared_with_static_runtimes_FC=yes | |
12184 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12185 | ||
12186 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12187 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12188 | # If the export-symbols file already is a .def file (1st line | |
12189 | # is EXPORTS), use it as is; otherwise, prepend... | |
12190 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12191 | cp $export_symbols $output_objdir/$soname.def; | |
12192 | else | |
12193 | echo EXPORTS > $output_objdir/$soname.def; | |
12194 | cat $export_symbols >> $output_objdir/$soname.def; | |
12195 | fi~ | |
12196 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12197 | else | |
12198 | ld_shlibs_FC=no | |
12199 | fi | |
12200 | ;; | |
12201 | ||
12202 | interix[3-9]*) | |
12203 | hardcode_direct_FC=no | |
12204 | hardcode_shlibpath_var_FC=no | |
12205 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
12206 | export_dynamic_flag_spec_FC='${wl}-E' | |
12207 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12208 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12209 | # default) and relocated if they conflict, which is a slow very memory | |
12210 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12211 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12212 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12213 | archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12214 | archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12215 | ;; | |
12216 | ||
12217 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
12218 | tmp_diet=no | |
12219 | if test "$host_os" = linux-dietlibc; then | |
12220 | case $cc_basename in | |
12221 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
12222 | esac | |
12223 | fi | |
12224 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
12225 | && test "$tmp_diet" = no | |
12226 | then | |
12227 | tmp_addflag= | |
6b4a97ed | 12228 | tmp_sharedflag='-shared' |
1cf3d07d SE |
12229 | case $cc_basename,$host_cpu in |
12230 | pgcc*) # Portland Group C compiler | |
12231 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12232 | tmp_addflag=' $pic_flag' | |
12233 | ;; | |
12234 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
12235 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12236 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
12237 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
12238 | tmp_addflag=' -i_dynamic' ;; | |
12239 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
12240 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
12241 | ifc* | ifort*) # Intel Fortran compiler | |
12242 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
12243 | lf95*) # Lahey Fortran 8.1 |
12244 | whole_archive_flag_spec_FC= | |
12245 | tmp_sharedflag='--shared' ;; | |
12246 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
12247 | tmp_sharedflag='-qmkshrobj' | |
12248 | tmp_addflag= ;; | |
1cf3d07d SE |
12249 | esac |
12250 | case `$CC -V 2>&1 | sed 5q` in | |
12251 | *Sun\ C*) # Sun C 5.9 | |
12252 | whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12253 | compiler_needs_object_FC=yes | |
12254 | tmp_sharedflag='-G' ;; | |
12255 | *Sun\ F*) # Sun Fortran 8.3 | |
12256 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
12257 | esac |
12258 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12259 | ||
12260 | if test "x$supports_anon_versioning" = xyes; then | |
12261 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
12262 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12263 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12264 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12265 | fi | |
6b4a97ed PG |
12266 | |
12267 | case $cc_basename in | |
12268 | xlf*) | |
12269 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
12270 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
12271 | hardcode_libdir_flag_spec_FC= | |
12272 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
12273 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
12274 | if test "x$supports_anon_versioning" = xyes; then | |
12275 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
12276 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12277 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12278 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
12279 | fi | |
12280 | ;; | |
12281 | esac | |
1cf3d07d SE |
12282 | else |
12283 | ld_shlibs_FC=no | |
12284 | fi | |
12285 | ;; | |
12286 | ||
12287 | netbsd*) | |
12288 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12289 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12290 | wlarc= | |
12291 | else | |
12292 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12293 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12294 | fi | |
12295 | ;; | |
12296 | ||
12297 | solaris*) | |
12298 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
12299 | ld_shlibs_FC=no | |
12300 | cat <<_LT_EOF 1>&2 | |
12301 | ||
12302 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12303 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12304 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12305 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12306 | *** your PATH or compiler configuration so that the native linker is | |
12307 | *** used, and then restart. | |
12308 | ||
12309 | _LT_EOF | |
12310 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12311 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12312 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12313 | else | |
12314 | ld_shlibs_FC=no | |
12315 | fi | |
12316 | ;; | |
12317 | ||
12318 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
12319 | case `$LD -v 2>&1` in | |
12320 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12321 | ld_shlibs_FC=no | |
12322 | cat <<_LT_EOF 1>&2 | |
12323 | ||
12324 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
12325 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
12326 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12327 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12328 | *** your PATH or compiler configuration so that the native linker is | |
12329 | *** used, and then restart. | |
12330 | ||
12331 | _LT_EOF | |
12332 | ;; | |
12333 | *) | |
12334 | # For security reasons, it is highly recommended that you always | |
12335 | # use absolute paths for naming shared libraries, and exclude the | |
12336 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12337 | # requires that you compile everything twice, which is a pain. | |
12338 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12339 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12340 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12341 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12342 | else | |
12343 | ld_shlibs_FC=no | |
12344 | fi | |
12345 | ;; | |
12346 | esac | |
12347 | ;; | |
12348 | ||
12349 | sunos4*) | |
12350 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12351 | wlarc= | |
12352 | hardcode_direct_FC=yes | |
12353 | hardcode_shlibpath_var_FC=no | |
12354 | ;; | |
12355 | ||
12356 | *) | |
12357 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12358 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12359 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12360 | else | |
12361 | ld_shlibs_FC=no | |
12362 | fi | |
12363 | ;; | |
12364 | esac | |
12365 | ||
12366 | if test "$ld_shlibs_FC" = no; then | |
12367 | runpath_var= | |
12368 | hardcode_libdir_flag_spec_FC= | |
12369 | export_dynamic_flag_spec_FC= | |
12370 | whole_archive_flag_spec_FC= | |
12371 | fi | |
12372 | else | |
12373 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12374 | case $host_os in | |
12375 | aix3*) | |
12376 | allow_undefined_flag_FC=unsupported | |
12377 | always_export_symbols_FC=yes | |
12378 | archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
12379 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12380 | # are no directories specified by -L. | |
12381 | hardcode_minus_L_FC=yes | |
12382 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
12383 | # Neither direct hardcoding nor static linking is supported with a | |
12384 | # broken collect2. | |
12385 | hardcode_direct_FC=unsupported | |
12386 | fi | |
12387 | ;; | |
12388 | ||
d653fdfb | 12389 | aix[4-9]*) |
1cf3d07d SE |
12390 | if test "$host_cpu" = ia64; then |
12391 | # On IA64, the linker does run time linking by default, so we don't | |
12392 | # have to do anything special. | |
12393 | aix_use_runtimelinking=no | |
12394 | exp_sym_flag='-Bexport' | |
12395 | no_entry_flag="" | |
12396 | else | |
12397 | # If we're using GNU nm, then we don't want the "-C" option. | |
12398 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12399 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12400 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12401 | else | |
12402 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12403 | fi | |
12404 | aix_use_runtimelinking=no | |
12405 | ||
12406 | # Test if we are trying to use run time linking or normal | |
12407 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12408 | # need to do runtime linking. | |
d653fdfb | 12409 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
12410 | for ld_flag in $LDFLAGS; do |
12411 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
12412 | aix_use_runtimelinking=yes | |
12413 | break | |
12414 | fi | |
12415 | done | |
12416 | ;; | |
12417 | esac | |
12418 | ||
12419 | exp_sym_flag='-bexport' | |
12420 | no_entry_flag='-bnoentry' | |
12421 | fi | |
12422 | ||
12423 | # When large executables or shared objects are built, AIX ld can | |
12424 | # have problems creating the table of contents. If linking a library | |
12425 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12426 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12427 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12428 | ||
12429 | archive_cmds_FC='' | |
12430 | hardcode_direct_FC=yes | |
12431 | hardcode_direct_absolute_FC=yes | |
12432 | hardcode_libdir_separator_FC=':' | |
12433 | link_all_deplibs_FC=yes | |
12434 | file_list_spec_FC='${wl}-f,' | |
12435 | ||
12436 | if test "$GCC" = yes; then | |
12437 | case $host_os in aix4.[012]|aix4.[012].*) | |
12438 | # We only want to do this on AIX 4.2 and lower, the check | |
12439 | # below for broken collect2 doesn't work under 4.3+ | |
12440 | collect2name=`${CC} -print-prog-name=collect2` | |
12441 | if test -f "$collect2name" && | |
12442 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12443 | then | |
12444 | # We have reworked collect2 | |
12445 | : | |
12446 | else | |
12447 | # We have old collect2 | |
12448 | hardcode_direct_FC=unsupported | |
12449 | # It fails to find uninstalled libraries when the uninstalled | |
12450 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12451 | # to unsupported forces relinking | |
12452 | hardcode_minus_L_FC=yes | |
12453 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12454 | hardcode_libdir_separator_FC= | |
12455 | fi | |
12456 | ;; | |
12457 | esac | |
12458 | shared_flag='-shared' | |
12459 | if test "$aix_use_runtimelinking" = yes; then | |
12460 | shared_flag="$shared_flag "'${wl}-G' | |
12461 | fi | |
12462 | else | |
12463 | # not using gcc | |
12464 | if test "$host_cpu" = ia64; then | |
12465 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12466 | # chokes on -Wl,-G. The following line is correct: | |
12467 | shared_flag='-G' | |
12468 | else | |
12469 | if test "$aix_use_runtimelinking" = yes; then | |
12470 | shared_flag='${wl}-G' | |
12471 | else | |
12472 | shared_flag='${wl}-bM:SRE' | |
12473 | fi | |
12474 | fi | |
12475 | fi | |
12476 | ||
6b4a97ed | 12477 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
12478 | # It seems that -bexpall does not export symbols beginning with |
12479 | # underscore (_), so it is better to generate a list of symbols to export. | |
12480 | always_export_symbols_FC=yes | |
12481 | if test "$aix_use_runtimelinking" = yes; then | |
12482 | # Warning - without using the other runtime loading flags (-brtl), | |
12483 | # -berok will link without error, but may produce a broken library. | |
12484 | allow_undefined_flag_FC='-berok' | |
12485 | # Determine the default libpath from the value encoded in an | |
12486 | # empty executable. | |
12487 | cat >conftest.$ac_ext <<_ACEOF | |
12488 | program main | |
12489 | ||
12490 | end | |
12491 | _ACEOF | |
12492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12494 | (eval $ac_link) 2>conftest.er1 | |
12495 | ac_status=$? | |
12496 | grep -v '^ *+' conftest.er1 >conftest.err | |
12497 | rm -f conftest.er1 | |
12498 | cat conftest.err >&5 | |
12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12500 | (exit $ac_status); } && | |
12501 | { ac_try='test -z "$ac_fc_werror_flag" | |
12502 | || test ! -s conftest.err' | |
12503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12504 | (eval $ac_try) 2>&5 | |
12505 | ac_status=$? | |
12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12507 | (exit $ac_status); }; } && | |
12508 | { ac_try='test -s conftest$ac_exeext' | |
12509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12510 | (eval $ac_try) 2>&5 | |
12511 | ac_status=$? | |
12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12513 | (exit $ac_status); }; }; then | |
12514 | ||
12515 | lt_aix_libpath_sed=' | |
12516 | /Import File Strings/,/^$/ { | |
12517 | /^0/ { | |
12518 | s/^0 *\(.*\)$/\1/ | |
12519 | p | |
12520 | } | |
12521 | }' | |
12522 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12523 | # Check for a 64-bit object if we didn't find anything. | |
12524 | if test -z "$aix_libpath"; then | |
12525 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12526 | fi | |
12527 | else | |
12528 | echo "$as_me: failed program was:" >&5 | |
12529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12530 | ||
12531 | fi | |
12532 | rm -f conftest.err conftest.$ac_objext \ | |
12533 | conftest$ac_exeext conftest.$ac_ext | |
12534 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12535 | ||
12536 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12537 | archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12538 | else | |
12539 | if test "$host_cpu" = ia64; then | |
12540 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
12541 | allow_undefined_flag_FC="-z nodefs" | |
12542 | archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
12543 | else | |
12544 | # Determine the default libpath from the value encoded in an | |
12545 | # empty executable. | |
12546 | cat >conftest.$ac_ext <<_ACEOF | |
12547 | program main | |
12548 | ||
12549 | end | |
12550 | _ACEOF | |
12551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12553 | (eval $ac_link) 2>conftest.er1 | |
12554 | ac_status=$? | |
12555 | grep -v '^ *+' conftest.er1 >conftest.err | |
12556 | rm -f conftest.er1 | |
12557 | cat conftest.err >&5 | |
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12559 | (exit $ac_status); } && | |
12560 | { ac_try='test -z "$ac_fc_werror_flag" | |
12561 | || test ! -s conftest.err' | |
12562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12563 | (eval $ac_try) 2>&5 | |
12564 | ac_status=$? | |
12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12566 | (exit $ac_status); }; } && | |
12567 | { ac_try='test -s conftest$ac_exeext' | |
12568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12569 | (eval $ac_try) 2>&5 | |
12570 | ac_status=$? | |
12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12572 | (exit $ac_status); }; }; then | |
12573 | ||
12574 | lt_aix_libpath_sed=' | |
12575 | /Import File Strings/,/^$/ { | |
12576 | /^0/ { | |
12577 | s/^0 *\(.*\)$/\1/ | |
12578 | p | |
12579 | } | |
12580 | }' | |
12581 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12582 | # Check for a 64-bit object if we didn't find anything. | |
12583 | if test -z "$aix_libpath"; then | |
12584 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12585 | fi | |
12586 | else | |
12587 | echo "$as_me: failed program was:" >&5 | |
12588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12589 | ||
12590 | fi | |
12591 | rm -f conftest.err conftest.$ac_objext \ | |
12592 | conftest$ac_exeext conftest.$ac_ext | |
12593 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12594 | ||
12595 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12596 | # Warning - without using the other run time loading flags, | |
12597 | # -berok will link without error, but may produce a broken library. | |
12598 | no_undefined_flag_FC=' ${wl}-bernotok' | |
12599 | allow_undefined_flag_FC=' ${wl}-berok' | |
12600 | # Exported symbols can be pulled into shared objects from archives | |
12601 | whole_archive_flag_spec_FC='$convenience' | |
12602 | archive_cmds_need_lc_FC=yes | |
12603 | # This is similar to how AIX traditionally builds its shared libraries. | |
12604 | archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
12605 | fi | |
12606 | fi | |
953ff289 | 12607 | ;; |
1cf3d07d SE |
12608 | |
12609 | amigaos*) | |
6b4a97ed PG |
12610 | case $host_cpu in |
12611 | powerpc) | |
12612 | # see comment about AmigaOS4 .so support | |
12613 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12614 | archive_expsym_cmds_FC='' | |
12615 | ;; | |
12616 | m68k) | |
12617 | archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
12618 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12619 | hardcode_minus_L_FC=yes | |
12620 | ;; | |
12621 | esac | |
953ff289 | 12622 | ;; |
1cf3d07d SE |
12623 | |
12624 | bsdi[45]*) | |
12625 | export_dynamic_flag_spec_FC=-rdynamic | |
953ff289 | 12626 | ;; |
1cf3d07d | 12627 | |
6b4a97ed | 12628 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12629 | # When not using gcc, we currently assume that we are using |
12630 | # Microsoft Visual C++. | |
12631 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12632 | # no search path for DLLs. | |
12633 | hardcode_libdir_flag_spec_FC=' ' | |
12634 | allow_undefined_flag_FC=unsupported | |
12635 | # Tell ltmain to make .lib files, not .a files. | |
12636 | libext=lib | |
12637 | # Tell ltmain to make .dll files, not .so files. | |
12638 | shrext_cmds=".dll" | |
12639 | # FIXME: Setting linknames here is a bad hack. | |
12640 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12641 | # The linker will automatically build a .lib file if we build a DLL. | |
12642 | old_archive_from_new_cmds_FC='true' | |
12643 | # FIXME: Should let the user specify the lib program. | |
12644 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
12645 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
12646 | enable_shared_with_static_runtimes_FC=yes | |
953ff289 | 12647 | ;; |
1cf3d07d SE |
12648 | |
12649 | darwin* | rhapsody*) | |
1cf3d07d | 12650 | |
6b4a97ed PG |
12651 | |
12652 | archive_cmds_need_lc_FC=no | |
12653 | hardcode_direct_FC=no | |
12654 | hardcode_automatic_FC=yes | |
12655 | hardcode_shlibpath_var_FC=unsupported | |
12656 | whole_archive_flag_spec_FC='' | |
12657 | link_all_deplibs_FC=yes | |
12658 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
12659 | case $cc_basename in | |
12660 | ifort*) _lt_dar_can_shared=yes ;; | |
12661 | *) _lt_dar_can_shared=$GCC ;; | |
12662 | esac | |
12663 | if test "$_lt_dar_can_shared" = "yes"; then | |
12664 | output_verbose_link_cmd=echo | |
12665 | archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
12666 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12667 | archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
12668 | module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
12669 | ||
12670 | else | |
12671 | ld_shlibs_FC=no | |
12672 | fi | |
12673 | ||
953ff289 | 12674 | ;; |
1cf3d07d SE |
12675 | |
12676 | dgux*) | |
12677 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12678 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12679 | hardcode_shlibpath_var_FC=no | |
953ff289 | 12680 | ;; |
953ff289 | 12681 | |
1cf3d07d SE |
12682 | freebsd1*) |
12683 | ld_shlibs_FC=no | |
953ff289 | 12684 | ;; |
1cf3d07d SE |
12685 | |
12686 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12687 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12688 | # does not break anything, and helps significantly (at the cost of a little | |
12689 | # extra space). | |
12690 | freebsd2.2*) | |
12691 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12692 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12693 | hardcode_direct_FC=yes | |
12694 | hardcode_shlibpath_var_FC=no | |
953ff289 | 12695 | ;; |
953ff289 | 12696 | |
1cf3d07d SE |
12697 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
12698 | freebsd2*) | |
12699 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12700 | hardcode_direct_FC=yes | |
12701 | hardcode_minus_L_FC=yes | |
12702 | hardcode_shlibpath_var_FC=no | |
12703 | ;; | |
12704 | ||
12705 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12706 | freebsd* | dragonfly*) | |
12707 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12708 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12709 | hardcode_direct_FC=yes | |
12710 | hardcode_shlibpath_var_FC=no | |
12711 | ;; | |
12712 | ||
12713 | hpux9*) | |
12714 | if test "$GCC" = yes; then | |
12715 | archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12716 | else | |
12717 | archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12718 | fi | |
12719 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12720 | hardcode_libdir_separator_FC=: | |
12721 | hardcode_direct_FC=yes | |
12722 | ||
12723 | # hardcode_minus_L: Not really in the search PATH, | |
12724 | # but as the default location of the library. | |
12725 | hardcode_minus_L_FC=yes | |
12726 | export_dynamic_flag_spec_FC='${wl}-E' | |
12727 | ;; | |
12728 | ||
12729 | hpux10*) | |
12730 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
12731 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12732 | else | |
12733 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12734 | fi | |
12735 | if test "$with_gnu_ld" = no; then | |
12736 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12737 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
12738 | hardcode_libdir_separator_FC=: | |
12739 | hardcode_direct_FC=yes | |
12740 | hardcode_direct_absolute_FC=yes | |
12741 | export_dynamic_flag_spec_FC='${wl}-E' | |
12742 | # hardcode_minus_L: Not really in the search PATH, | |
12743 | # but as the default location of the library. | |
12744 | hardcode_minus_L_FC=yes | |
12745 | fi | |
12746 | ;; | |
12747 | ||
12748 | hpux11*) | |
12749 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
12750 | case $host_cpu in | |
12751 | hppa*64*) | |
12752 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12753 | ;; | |
12754 | ia64*) | |
6b4a97ed | 12755 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
12756 | ;; |
12757 | *) | |
12758 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12759 | ;; | |
12760 | esac | |
12761 | else | |
12762 | case $host_cpu in | |
12763 | hppa*64*) | |
12764 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12765 | ;; | |
12766 | ia64*) | |
12767 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
12768 | ;; | |
12769 | *) | |
12770 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12771 | ;; | |
12772 | esac | |
12773 | fi | |
12774 | if test "$with_gnu_ld" = no; then | |
12775 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12776 | hardcode_libdir_separator_FC=: | |
12777 | ||
12778 | case $host_cpu in | |
12779 | hppa*64*|ia64*) | |
12780 | hardcode_direct_FC=no | |
12781 | hardcode_shlibpath_var_FC=no | |
12782 | ;; | |
12783 | *) | |
12784 | hardcode_direct_FC=yes | |
12785 | hardcode_direct_absolute_FC=yes | |
12786 | export_dynamic_flag_spec_FC='${wl}-E' | |
12787 | ||
12788 | # hardcode_minus_L: Not really in the search PATH, | |
12789 | # but as the default location of the library. | |
12790 | hardcode_minus_L_FC=yes | |
12791 | ;; | |
12792 | esac | |
12793 | fi | |
12794 | ;; | |
12795 | ||
12796 | irix5* | irix6* | nonstopux*) | |
12797 | if test "$GCC" = yes; then | |
12798 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12799 | # Try to use the -exported_symbol ld option, if it does not | |
12800 | # work, assume that -exports_file does not work either and | |
12801 | # implicitly export all symbols. | |
12802 | save_LDFLAGS="$LDFLAGS" | |
12803 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
12804 | cat >conftest.$ac_ext <<_ACEOF | |
12805 | int foo(void) {} | |
12806 | _ACEOF | |
12807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12809 | (eval $ac_link) 2>conftest.er1 | |
953ff289 | 12810 | ac_status=$? |
1cf3d07d SE |
12811 | grep -v '^ *+' conftest.er1 >conftest.err |
12812 | rm -f conftest.er1 | |
12813 | cat conftest.err >&5 | |
953ff289 | 12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12815 | (exit $ac_status); } && |
12816 | { ac_try='test -z "$ac_fc_werror_flag" | |
12817 | || test ! -s conftest.err' | |
12818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12819 | (eval $ac_try) 2>&5 | |
12820 | ac_status=$? | |
12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12822 | (exit $ac_status); }; } && | |
12823 | { ac_try='test -s conftest$ac_exeext' | |
12824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12825 | (eval $ac_try) 2>&5 | |
12826 | ac_status=$? | |
12827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12828 | (exit $ac_status); }; }; then | |
12829 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
12830 | ||
12831 | else | |
12832 | echo "$as_me: failed program was:" >&5 | |
12833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12834 | ||
12835 | fi | |
12836 | rm -f conftest.err conftest.$ac_objext \ | |
12837 | conftest$ac_exeext conftest.$ac_ext | |
12838 | LDFLAGS="$save_LDFLAGS" | |
12839 | else | |
12840 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12841 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
12842 | fi | |
12843 | archive_cmds_need_lc_FC='no' | |
12844 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12845 | hardcode_libdir_separator_FC=: | |
12846 | inherit_rpath_FC=yes | |
12847 | link_all_deplibs_FC=yes | |
12848 | ;; | |
12849 | ||
12850 | netbsd*) | |
12851 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12852 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12853 | else | |
12854 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12855 | fi | |
12856 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12857 | hardcode_direct_FC=yes | |
12858 | hardcode_shlibpath_var_FC=no | |
12859 | ;; | |
12860 | ||
12861 | newsos6) | |
12862 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12863 | hardcode_direct_FC=yes | |
12864 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12865 | hardcode_libdir_separator_FC=: | |
12866 | hardcode_shlibpath_var_FC=no | |
12867 | ;; | |
12868 | ||
12869 | *nto* | *qnx*) | |
12870 | ;; | |
12871 | ||
12872 | openbsd*) | |
6b4a97ed PG |
12873 | if test -f /usr/libexec/ld.so; then |
12874 | hardcode_direct_FC=yes | |
12875 | hardcode_shlibpath_var_FC=no | |
12876 | hardcode_direct_absolute_FC=yes | |
12877 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 12878 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 12879 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 12880 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
6b4a97ed PG |
12881 | export_dynamic_flag_spec_FC='${wl}-E' |
12882 | else | |
12883 | case $host_os in | |
12884 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12885 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12886 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12887 | ;; | |
12888 | *) | |
12889 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12890 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
12891 | ;; | |
12892 | esac | |
12893 | fi | |
12894 | else | |
12895 | ld_shlibs_FC=no | |
1cf3d07d SE |
12896 | fi |
12897 | ;; | |
12898 | ||
12899 | os2*) | |
12900 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12901 | hardcode_minus_L_FC=yes | |
12902 | allow_undefined_flag_FC=unsupported | |
12903 | archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
12904 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12905 | ;; | |
12906 | ||
12907 | osf3*) | |
12908 | if test "$GCC" = yes; then | |
12909 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
12910 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12911 | else | |
12912 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
12913 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12914 | fi | |
12915 | archive_cmds_need_lc_FC='no' | |
12916 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12917 | hardcode_libdir_separator_FC=: | |
12918 | ;; | |
12919 | ||
12920 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12921 | if test "$GCC" = yes; then | |
12922 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
12923 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12924 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12925 | else | |
12926 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
12927 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12928 | archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
12929 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
12930 | ||
12931 | # Both c and cxx compiler support -rpath directly | |
12932 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
12933 | fi | |
12934 | archive_cmds_need_lc_FC='no' | |
12935 | hardcode_libdir_separator_FC=: | |
12936 | ;; | |
12937 | ||
12938 | solaris*) | |
12939 | no_undefined_flag_FC=' -z defs' | |
12940 | if test "$GCC" = yes; then | |
12941 | wlarc='${wl}' | |
12942 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12943 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12944 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
12945 | else | |
12946 | case `$CC -V 2>&1` in | |
12947 | *"Compilers 5.0"*) | |
12948 | wlarc='' | |
12949 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12950 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12951 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
12952 | ;; | |
12953 | *) | |
12954 | wlarc='${wl}' | |
12955 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12956 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12957 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
12958 | ;; | |
12959 | esac | |
12960 | fi | |
12961 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12962 | hardcode_shlibpath_var_FC=no | |
12963 | case $host_os in | |
12964 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12965 | *) | |
12966 | # The compiler driver will combine and reorder linker options, | |
12967 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
12968 | # but is careful enough not to reorder. | |
12969 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12970 | if test "$GCC" = yes; then | |
12971 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12972 | else | |
12973 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
12974 | fi | |
12975 | ;; | |
12976 | esac | |
12977 | link_all_deplibs_FC=yes | |
12978 | ;; | |
12979 | ||
12980 | sunos4*) | |
12981 | if test "x$host_vendor" = xsequent; then | |
12982 | # Use $CC to link under sequent, because it throws in some extra .o | |
12983 | # files that make .init and .fini sections work. | |
12984 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12985 | else | |
12986 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12987 | fi | |
12988 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12989 | hardcode_direct_FC=yes | |
12990 | hardcode_minus_L_FC=yes | |
12991 | hardcode_shlibpath_var_FC=no | |
12992 | ;; | |
12993 | ||
12994 | sysv4) | |
12995 | case $host_vendor in | |
12996 | sni) | |
12997 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12998 | hardcode_direct_FC=yes # is this really true??? | |
12999 | ;; | |
13000 | siemens) | |
13001 | ## LD is ld it makes a PLAMLIB | |
13002 | ## CC just makes a GrossModule. | |
13003 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13004 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
13005 | hardcode_direct_FC=no | |
13006 | ;; | |
13007 | motorola) | |
13008 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13009 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
13010 | ;; | |
953ff289 | 13011 | esac |
1cf3d07d SE |
13012 | runpath_var='LD_RUN_PATH' |
13013 | hardcode_shlibpath_var_FC=no | |
13014 | ;; | |
13015 | ||
13016 | sysv4.3*) | |
13017 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13018 | hardcode_shlibpath_var_FC=no | |
13019 | export_dynamic_flag_spec_FC='-Bexport' | |
13020 | ;; | |
13021 | ||
13022 | sysv4*MP*) | |
13023 | if test -d /usr/nec; then | |
13024 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13025 | hardcode_shlibpath_var_FC=no | |
13026 | runpath_var=LD_RUN_PATH | |
13027 | hardcode_runpath_var=yes | |
13028 | ld_shlibs_FC=yes | |
13029 | fi | |
13030 | ;; | |
13031 | ||
13032 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13033 | no_undefined_flag_FC='${wl}-z,text' | |
13034 | archive_cmds_need_lc_FC=no | |
13035 | hardcode_shlibpath_var_FC=no | |
13036 | runpath_var='LD_RUN_PATH' | |
13037 | ||
13038 | if test "$GCC" = yes; then | |
13039 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13040 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13041 | else | |
13042 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13043 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13044 | fi | |
13045 | ;; | |
13046 | ||
13047 | sysv5* | sco3.2v5* | sco5v6*) | |
13048 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13049 | # link with -lc, and that would cause any symbols used from libc to | |
13050 | # always be unresolved, which means just about no library would | |
13051 | # ever link correctly. If we're not using GNU ld we use -z text | |
13052 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13053 | # as -z defs. | |
13054 | no_undefined_flag_FC='${wl}-z,text' | |
13055 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
13056 | archive_cmds_need_lc_FC=no | |
13057 | hardcode_shlibpath_var_FC=no | |
13058 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
13059 | hardcode_libdir_separator_FC=':' | |
13060 | link_all_deplibs_FC=yes | |
13061 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
13062 | runpath_var='LD_RUN_PATH' | |
13063 | ||
13064 | if test "$GCC" = yes; then | |
13065 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13066 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13067 | else | |
13068 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13069 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13070 | fi | |
13071 | ;; | |
13072 | ||
13073 | uts4*) | |
13074 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13075 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13076 | hardcode_shlibpath_var_FC=no | |
13077 | ;; | |
13078 | ||
13079 | *) | |
13080 | ld_shlibs_FC=no | |
953ff289 | 13081 | ;; |
1cf3d07d SE |
13082 | esac |
13083 | ||
13084 | if test x$host_vendor = xsni; then | |
953ff289 | 13085 | case $host in |
1cf3d07d SE |
13086 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13087 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
13088 | ;; | |
953ff289 | 13089 | esac |
1cf3d07d | 13090 | fi |
953ff289 | 13091 | fi |
953ff289 | 13092 | |
1cf3d07d SE |
13093 | echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 |
13094 | echo "${ECHO_T}$ld_shlibs_FC" >&6 | |
13095 | test "$ld_shlibs_FC" = no && can_build_shared=no | |
953ff289 | 13096 | |
1cf3d07d | 13097 | with_gnu_ld_FC=$with_gnu_ld |
953ff289 | 13098 | |
953ff289 | 13099 | |
953ff289 | 13100 | |
953ff289 | 13101 | |
1cf3d07d SE |
13102 | |
13103 | ||
13104 | # | |
13105 | # Do we need to explicitly link libc? | |
13106 | # | |
13107 | case "x$archive_cmds_need_lc_FC" in | |
13108 | x|xyes) | |
13109 | # Assume -lc should be added | |
13110 | archive_cmds_need_lc_FC=yes | |
13111 | ||
13112 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13113 | case $archive_cmds_FC in | |
13114 | *'~'*) | |
13115 | # FIXME: we may have to deal with multi-command sequences. | |
13116 | ;; | |
13117 | '$CC '*) | |
13118 | # Test whether the compiler implicitly links with -lc since on some | |
13119 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13120 | # to ld, don't add -lc before -lgcc. | |
13121 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
13122 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
baafc534 RW |
13123 | if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then |
13124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13125 | else | |
13126 | $RM conftest* | |
13127 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 13128 | |
baafc534 | 13129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1cf3d07d | 13130 | (eval $ac_compile) 2>&5 |
953ff289 DN |
13131 | ac_status=$? |
13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d | 13133 | (exit $ac_status); } 2>conftest.err; then |
baafc534 RW |
13134 | soname=conftest |
13135 | lib=conftest | |
13136 | libobjs=conftest.$ac_objext | |
13137 | deplibs= | |
13138 | wl=$lt_prog_compiler_wl_FC | |
13139 | pic_flag=$lt_prog_compiler_pic_FC | |
13140 | compiler_flags=-v | |
13141 | linker_flags=-v | |
13142 | verstring= | |
13143 | output_objdir=. | |
13144 | libname=conftest | |
13145 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
13146 | allow_undefined_flag_FC= | |
13147 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
1cf3d07d | 13148 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
953ff289 DN |
13149 | ac_status=$? |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d | 13151 | (exit $ac_status); } |
baafc534 RW |
13152 | then |
13153 | lt_cv_archive_cmds_need_lc_FC=no | |
13154 | else | |
13155 | lt_cv_archive_cmds_need_lc_FC=yes | |
13156 | fi | |
13157 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
13158 | else | |
13159 | cat conftest.err 1>&5 | |
13160 | fi | |
13161 | $RM conftest* | |
13162 | ||
13163 | fi | |
13164 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_FC" >&5 | |
13165 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_FC" >&6 | |
13166 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC | |
1cf3d07d SE |
13167 | ;; |
13168 | esac | |
953ff289 DN |
13169 | fi |
13170 | ;; | |
1cf3d07d SE |
13171 | esac |
13172 | ||
953ff289 DN |
13173 | |
13174 | ||
953ff289 DN |
13175 | |
13176 | ||
953ff289 | 13177 | |
953ff289 | 13178 | |
953ff289 | 13179 | |
953ff289 | 13180 | |
953ff289 DN |
13181 | |
13182 | ||
953ff289 | 13183 | |
953ff289 | 13184 | |
953ff289 DN |
13185 | |
13186 | ||
13187 | ||
13188 | ||
13189 | ||
13190 | ||
13191 | ||
13192 | ||
13193 | ||
c41303c6 RH |
13194 | |
13195 | ||
c41303c6 | 13196 | |
c41303c6 RH |
13197 | |
13198 | ||
13199 | ||
953ff289 | 13200 | |
953ff289 | 13201 | |
953ff289 | 13202 | |
953ff289 | 13203 | |
953ff289 | 13204 | |
953ff289 DN |
13205 | |
13206 | ||
953ff289 | 13207 | |
953ff289 | 13208 | |
953ff289 | 13209 | |
953ff289 | 13210 | |
953ff289 | 13211 | |
953ff289 | 13212 | |
953ff289 | 13213 | |
1cf3d07d SE |
13214 | |
13215 | ||
13216 | ||
13217 | ||
13218 | ||
13219 | ||
13220 | ||
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | ||
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | ||
13236 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
13237 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
6b4a97ed | 13238 | |
1cf3d07d SE |
13239 | library_names_spec= |
13240 | libname_spec='lib$name' | |
13241 | soname_spec= | |
13242 | shrext_cmds=".so" | |
13243 | postinstall_cmds= | |
13244 | postuninstall_cmds= | |
13245 | finish_cmds= | |
13246 | finish_eval= | |
13247 | shlibpath_var= | |
13248 | shlibpath_overrides_runpath=unknown | |
13249 | version_type=none | |
13250 | dynamic_linker="$host_os ld.so" | |
13251 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13252 | need_lib_prefix=unknown | |
13253 | hardcode_into_libs=no | |
13254 | ||
13255 | # when you set need_version to no, make sure it does not cause -set_version | |
13256 | # flags to be left without arguments | |
13257 | need_version=unknown | |
13258 | ||
13259 | case $host_os in | |
13260 | aix3*) | |
13261 | version_type=linux | |
13262 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13263 | shlibpath_var=LIBPATH | |
13264 | ||
13265 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13266 | soname_spec='${libname}${release}${shared_ext}$major' | |
13267 | ;; | |
13268 | ||
d653fdfb | 13269 | aix[4-9]*) |
1cf3d07d SE |
13270 | version_type=linux |
13271 | need_lib_prefix=no | |
13272 | need_version=no | |
13273 | hardcode_into_libs=yes | |
13274 | if test "$host_cpu" = ia64; then | |
13275 | # AIX 5 supports IA64 | |
13276 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13277 | shlibpath_var=LD_LIBRARY_PATH | |
953ff289 | 13278 | else |
1cf3d07d SE |
13279 | # With GCC up to 2.95.x, collect2 would create an import file |
13280 | # for dependence libraries. The import file would start with | |
13281 | # the line `#! .'. This would cause the generated library to | |
13282 | # depend on `.', always an invalid library. This was fixed in | |
13283 | # development snapshots of GCC prior to 3.0. | |
13284 | case $host_os in | |
13285 | aix4 | aix4.[01] | aix4.[01].*) | |
13286 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13287 | echo ' yes ' | |
13288 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13289 | : | |
13290 | else | |
13291 | can_build_shared=no | |
13292 | fi | |
13293 | ;; | |
13294 | esac | |
13295 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13296 | # soname into executable. Probably we can add versioning support to | |
13297 | # collect2, so additional links can be useful in future. | |
13298 | if test "$aix_use_runtimelinking" = yes; then | |
13299 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13300 | # instead of lib<name>.a to let people know that these are not | |
13301 | # typical AIX shared libraries. | |
13302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13303 | else | |
13304 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13305 | # and later when we are not doing run time linking. | |
13306 | library_names_spec='${libname}${release}.a $libname.a' | |
13307 | soname_spec='${libname}${release}${shared_ext}$major' | |
13308 | fi | |
13309 | shlibpath_var=LIBPATH | |
953ff289 | 13310 | fi |
1cf3d07d SE |
13311 | ;; |
13312 | ||
13313 | amigaos*) | |
6b4a97ed PG |
13314 | case $host_cpu in |
13315 | powerpc) | |
13316 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13317 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13319 | ;; | |
13320 | m68k) | |
1cf3d07d SE |
13321 | library_names_spec='$libname.ixlibrary $libname.a' |
13322 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13323 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
6b4a97ed PG |
13324 | ;; |
13325 | esac | |
1cf3d07d | 13326 | ;; |
953ff289 | 13327 | |
1cf3d07d SE |
13328 | beos*) |
13329 | library_names_spec='${libname}${shared_ext}' | |
13330 | dynamic_linker="$host_os ld.so" | |
13331 | shlibpath_var=LIBRARY_PATH | |
13332 | ;; | |
953ff289 | 13333 | |
1cf3d07d SE |
13334 | bsdi[45]*) |
13335 | version_type=linux | |
13336 | need_version=no | |
13337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13338 | soname_spec='${libname}${release}${shared_ext}$major' | |
13339 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13340 | shlibpath_var=LD_LIBRARY_PATH | |
13341 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13342 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13343 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13344 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13345 | # libtool to hard-code these into programs | |
13346 | ;; | |
953ff289 | 13347 | |
6b4a97ed | 13348 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13349 | version_type=windows |
13350 | shrext_cmds=".dll" | |
13351 | need_version=no | |
13352 | need_lib_prefix=no | |
13353 | ||
6b4a97ed PG |
13354 | case $GCC,$host_os in |
13355 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
13356 | library_names_spec='$libname.dll.a' |
13357 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13358 | postinstall_cmds='base_file=`basename \${file}`~ | |
13359 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13360 | dldir=$destdir/`dirname \$dlpath`~ | |
13361 | test -d \$dldir || mkdir -p \$dldir~ | |
13362 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13363 | chmod a+x \$dldir/$dlname~ | |
13364 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13365 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13366 | fi' | |
13367 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13368 | dlpath=$dir/\$dldll~ | |
13369 | $RM \$dlpath' | |
13370 | shlibpath_overrides_runpath=yes | |
13371 | ||
13372 | case $host_os in | |
13373 | cygwin*) | |
13374 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13375 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13376 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13377 | ;; | |
6b4a97ed | 13378 | mingw* | cegcc*) |
1cf3d07d SE |
13379 | # MinGW DLLs use traditional 'lib' prefix |
13380 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13381 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13382 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13383 | # It is most probably a Windows format PATH printed by | |
13384 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13385 | # path with ; separators, and with drive letters. We can handle the | |
13386 | # drive letters (cygwin fileutils understands them), so leave them, | |
13387 | # especially as we might pass files found there to a mingw objdump, | |
13388 | # which wouldn't understand a cygwinified path. Ahh. | |
13389 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13390 | else | |
13391 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13392 | fi | |
13393 | ;; | |
13394 | pw32*) | |
13395 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13396 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13397 | ;; | |
13398 | esac | |
13399 | ;; | |
953ff289 | 13400 | |
1cf3d07d SE |
13401 | *) |
13402 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13403 | ;; | |
13404 | esac | |
13405 | dynamic_linker='Win32 ld.exe' | |
13406 | # FIXME: first we should search . and the directory the executable is in | |
13407 | shlibpath_var=PATH | |
13408 | ;; | |
953ff289 | 13409 | |
1cf3d07d SE |
13410 | darwin* | rhapsody*) |
13411 | dynamic_linker="$host_os dyld" | |
13412 | version_type=darwin | |
13413 | need_lib_prefix=no | |
13414 | need_version=no | |
13415 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13416 | soname_spec='${libname}${release}${major}$shared_ext' | |
13417 | shlibpath_overrides_runpath=yes | |
13418 | shlibpath_var=DYLD_LIBRARY_PATH | |
13419 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13420 | ||
13421 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13422 | ;; | |
13423 | ||
13424 | dgux*) | |
13425 | version_type=linux | |
13426 | need_lib_prefix=no | |
13427 | need_version=no | |
13428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13429 | soname_spec='${libname}${release}${shared_ext}$major' | |
13430 | shlibpath_var=LD_LIBRARY_PATH | |
13431 | ;; | |
13432 | ||
13433 | freebsd1*) | |
13434 | dynamic_linker=no | |
13435 | ;; | |
13436 | ||
13437 | freebsd* | dragonfly*) | |
13438 | # DragonFly does not have aout. When/if they implement a new | |
13439 | # versioning mechanism, adjust this. | |
13440 | if test -x /usr/bin/objformat; then | |
13441 | objformat=`/usr/bin/objformat` | |
953ff289 | 13442 | else |
1cf3d07d SE |
13443 | case $host_os in |
13444 | freebsd[123]*) objformat=aout ;; | |
13445 | *) objformat=elf ;; | |
13446 | esac | |
953ff289 | 13447 | fi |
1cf3d07d SE |
13448 | version_type=freebsd-$objformat |
13449 | case $version_type in | |
13450 | freebsd-elf*) | |
13451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13452 | need_version=no | |
13453 | need_lib_prefix=no | |
13454 | ;; | |
13455 | freebsd-*) | |
13456 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13457 | need_version=yes | |
13458 | ;; | |
13459 | esac | |
13460 | shlibpath_var=LD_LIBRARY_PATH | |
13461 | case $host_os in | |
13462 | freebsd2*) | |
13463 | shlibpath_overrides_runpath=yes | |
13464 | ;; | |
13465 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13466 | shlibpath_overrides_runpath=yes | |
13467 | hardcode_into_libs=yes | |
13468 | ;; | |
13469 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13470 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13471 | shlibpath_overrides_runpath=no | |
13472 | hardcode_into_libs=yes | |
13473 | ;; | |
13474 | *) # from 4.6 on, and DragonFly | |
13475 | shlibpath_overrides_runpath=yes | |
13476 | hardcode_into_libs=yes | |
13477 | ;; | |
13478 | esac | |
13479 | ;; | |
953ff289 | 13480 | |
1cf3d07d SE |
13481 | gnu*) |
13482 | version_type=linux | |
13483 | need_lib_prefix=no | |
13484 | need_version=no | |
13485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13486 | soname_spec='${libname}${release}${shared_ext}$major' | |
13487 | shlibpath_var=LD_LIBRARY_PATH | |
13488 | hardcode_into_libs=yes | |
13489 | ;; | |
953ff289 | 13490 | |
1cf3d07d SE |
13491 | hpux9* | hpux10* | hpux11*) |
13492 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13493 | # link against other versions. | |
13494 | version_type=sunos | |
13495 | need_lib_prefix=no | |
13496 | need_version=no | |
13497 | case $host_cpu in | |
13498 | ia64*) | |
13499 | shrext_cmds='.so' | |
13500 | hardcode_into_libs=yes | |
13501 | dynamic_linker="$host_os dld.so" | |
13502 | shlibpath_var=LD_LIBRARY_PATH | |
13503 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13505 | soname_spec='${libname}${release}${shared_ext}$major' | |
13506 | if test "X$HPUX_IA64_MODE" = X32; then | |
13507 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13508 | else | |
13509 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13510 | fi | |
13511 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13512 | ;; | |
13513 | hppa*64*) | |
13514 | shrext_cmds='.sl' | |
13515 | hardcode_into_libs=yes | |
13516 | dynamic_linker="$host_os dld.sl" | |
13517 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13518 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13520 | soname_spec='${libname}${release}${shared_ext}$major' | |
13521 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13522 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13523 | ;; | |
13524 | *) | |
13525 | shrext_cmds='.sl' | |
13526 | dynamic_linker="$host_os dld.sl" | |
13527 | shlibpath_var=SHLIB_PATH | |
13528 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13530 | soname_spec='${libname}${release}${shared_ext}$major' | |
13531 | ;; | |
13532 | esac | |
13533 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13534 | postinstall_cmds='chmod 555 $lib' | |
13535 | ;; | |
13536 | ||
13537 | interix[3-9]*) | |
13538 | version_type=linux | |
13539 | need_lib_prefix=no | |
13540 | need_version=no | |
13541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13542 | soname_spec='${libname}${release}${shared_ext}$major' | |
13543 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13544 | shlibpath_var=LD_LIBRARY_PATH | |
13545 | shlibpath_overrides_runpath=no | |
13546 | hardcode_into_libs=yes | |
13547 | ;; | |
13548 | ||
13549 | irix5* | irix6* | nonstopux*) | |
13550 | case $host_os in | |
13551 | nonstopux*) version_type=nonstopux ;; | |
13552 | *) | |
13553 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13554 | version_type=linux | |
13555 | else | |
13556 | version_type=irix | |
13557 | fi ;; | |
13558 | esac | |
13559 | need_lib_prefix=no | |
13560 | need_version=no | |
13561 | soname_spec='${libname}${release}${shared_ext}$major' | |
13562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13563 | case $host_os in | |
13564 | irix5* | nonstopux*) | |
13565 | libsuff= shlibsuff= | |
13566 | ;; | |
13567 | *) | |
13568 | case $LD in # libtool.m4 will add one of these switches to LD | |
13569 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13570 | libsuff= shlibsuff= libmagic=32-bit;; | |
13571 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13572 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13573 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13574 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13575 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13576 | esac | |
13577 | ;; | |
13578 | esac | |
13579 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13580 | shlibpath_overrides_runpath=no | |
13581 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13582 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13583 | hardcode_into_libs=yes | |
13584 | ;; | |
13585 | ||
13586 | # No shared lib support for Linux oldld, aout, or coff. | |
13587 | linux*oldld* | linux*aout* | linux*coff*) | |
13588 | dynamic_linker=no | |
13589 | ;; | |
13590 | ||
13591 | # This must be Linux ELF. | |
13592 | linux* | k*bsd*-gnu) | |
13593 | version_type=linux | |
13594 | need_lib_prefix=no | |
13595 | need_version=no | |
13596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13597 | soname_spec='${libname}${release}${shared_ext}$major' | |
13598 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13599 | shlibpath_var=LD_LIBRARY_PATH | |
13600 | shlibpath_overrides_runpath=no | |
baafc534 | 13601 | |
1cf3d07d | 13602 | # Some binutils ld are patched to set DT_RUNPATH |
baafc534 RW |
13603 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
13604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13605 | else | |
13606 | lt_cv_shlibpath_overrides_runpath=no | |
13607 | save_LDFLAGS=$LDFLAGS | |
13608 | save_libdir=$libdir | |
13609 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
13610 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
13611 | cat >conftest.$ac_ext <<_ACEOF | |
1cf3d07d SE |
13612 | program main |
13613 | ||
13614 | end | |
953ff289 | 13615 | _ACEOF |
1cf3d07d SE |
13616 | rm -f conftest.$ac_objext conftest$ac_exeext |
13617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13618 | (eval $ac_link) 2>conftest.er1 | |
953ff289 DN |
13619 | ac_status=$? |
13620 | grep -v '^ *+' conftest.er1 >conftest.err | |
13621 | rm -f conftest.er1 | |
13622 | cat conftest.err >&5 | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
13624 | (exit $ac_status); } && |
13625 | { ac_try='test -z "$ac_fc_werror_flag" | |
13626 | || test ! -s conftest.err' | |
13627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13628 | (eval $ac_try) 2>&5 | |
13629 | ac_status=$? | |
13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13631 | (exit $ac_status); }; } && | |
13632 | { ac_try='test -s conftest$ac_exeext' | |
13633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13634 | (eval $ac_try) 2>&5 | |
13635 | ac_status=$? | |
13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13637 | (exit $ac_status); }; }; then | |
6b4a97ed | 13638 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
baafc534 | 13639 | lt_cv_shlibpath_overrides_runpath=yes |
953ff289 | 13640 | fi |
1cf3d07d | 13641 | |
953ff289 DN |
13642 | else |
13643 | echo "$as_me: failed program was:" >&5 | |
13644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13645 | ||
953ff289 | 13646 | fi |
1cf3d07d SE |
13647 | rm -f conftest.err conftest.$ac_objext \ |
13648 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
13649 | LDFLAGS=$save_LDFLAGS |
13650 | libdir=$save_libdir | |
13651 | ||
13652 | fi | |
13653 | ||
13654 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
13655 | |
13656 | # This implies no fast_install, which is unacceptable. | |
13657 | # Some rework will be needed to allow for fast_install | |
13658 | # before this can be enabled. | |
13659 | hardcode_into_libs=yes | |
13660 | ||
13661 | # Append ld.so.conf contents to the search path | |
13662 | if test -f /etc/ld.so.conf; then | |
6b4a97ed | 13663 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
13664 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
13665 | fi | |
953ff289 | 13666 | |
1cf3d07d SE |
13667 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13668 | # powerpc, because MkLinux only supported shared libraries with the | |
13669 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13670 | # most powerpc-linux boxes support dynamic linking these days and | |
13671 | # people can always --disable-shared, the test was removed, and we | |
13672 | # assume the GNU/Linux dynamic linker is in use. | |
13673 | dynamic_linker='GNU/Linux ld.so' | |
13674 | ;; | |
953ff289 | 13675 | |
1cf3d07d SE |
13676 | netbsd*) |
13677 | version_type=sunos | |
13678 | need_lib_prefix=no | |
13679 | need_version=no | |
13680 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13682 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13683 | dynamic_linker='NetBSD (a.out) ld.so' | |
13684 | else | |
13685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13686 | soname_spec='${libname}${release}${shared_ext}$major' | |
13687 | dynamic_linker='NetBSD ld.elf_so' | |
13688 | fi | |
13689 | shlibpath_var=LD_LIBRARY_PATH | |
13690 | shlibpath_overrides_runpath=yes | |
13691 | hardcode_into_libs=yes | |
13692 | ;; | |
953ff289 | 13693 | |
1cf3d07d SE |
13694 | newsos6) |
13695 | version_type=linux | |
13696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13697 | shlibpath_var=LD_LIBRARY_PATH | |
13698 | shlibpath_overrides_runpath=yes | |
13699 | ;; | |
13700 | ||
13701 | *nto* | *qnx*) | |
13702 | version_type=qnx | |
13703 | need_lib_prefix=no | |
13704 | need_version=no | |
13705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13706 | soname_spec='${libname}${release}${shared_ext}$major' | |
13707 | shlibpath_var=LD_LIBRARY_PATH | |
13708 | shlibpath_overrides_runpath=no | |
13709 | hardcode_into_libs=yes | |
13710 | dynamic_linker='ldqnx.so' | |
13711 | ;; | |
13712 | ||
13713 | openbsd*) | |
13714 | version_type=sunos | |
13715 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13716 | need_lib_prefix=no | |
13717 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13718 | case $host_os in | |
13719 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13720 | *) need_version=no ;; | |
13721 | esac | |
13722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13723 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13724 | shlibpath_var=LD_LIBRARY_PATH | |
13725 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13726 | case $host_os in | |
13727 | openbsd2.[89] | openbsd2.[89].*) | |
13728 | shlibpath_overrides_runpath=no | |
13729 | ;; | |
13730 | *) | |
13731 | shlibpath_overrides_runpath=yes | |
13732 | ;; | |
13733 | esac | |
953ff289 | 13734 | else |
1cf3d07d | 13735 | shlibpath_overrides_runpath=yes |
953ff289 | 13736 | fi |
1cf3d07d | 13737 | ;; |
953ff289 | 13738 | |
1cf3d07d SE |
13739 | os2*) |
13740 | libname_spec='$name' | |
13741 | shrext_cmds=".dll" | |
13742 | need_lib_prefix=no | |
13743 | library_names_spec='$libname${shared_ext} $libname.a' | |
13744 | dynamic_linker='OS/2 ld.exe' | |
13745 | shlibpath_var=LIBPATH | |
13746 | ;; | |
13747 | ||
13748 | osf3* | osf4* | osf5*) | |
13749 | version_type=osf | |
13750 | need_lib_prefix=no | |
13751 | need_version=no | |
13752 | soname_spec='${libname}${release}${shared_ext}$major' | |
13753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13754 | shlibpath_var=LD_LIBRARY_PATH | |
13755 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13756 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13757 | ;; | |
13758 | ||
13759 | rdos*) | |
13760 | dynamic_linker=no | |
13761 | ;; | |
13762 | ||
13763 | solaris*) | |
13764 | version_type=linux | |
13765 | need_lib_prefix=no | |
13766 | need_version=no | |
13767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13768 | soname_spec='${libname}${release}${shared_ext}$major' | |
13769 | shlibpath_var=LD_LIBRARY_PATH | |
13770 | shlibpath_overrides_runpath=yes | |
13771 | hardcode_into_libs=yes | |
13772 | # ldd complains unless libraries are executable | |
13773 | postinstall_cmds='chmod +x $lib' | |
13774 | ;; | |
13775 | ||
13776 | sunos4*) | |
13777 | version_type=sunos | |
13778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13779 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13780 | shlibpath_var=LD_LIBRARY_PATH | |
13781 | shlibpath_overrides_runpath=yes | |
13782 | if test "$with_gnu_ld" = yes; then | |
13783 | need_lib_prefix=no | |
13784 | fi | |
13785 | need_version=yes | |
13786 | ;; | |
13787 | ||
13788 | sysv4 | sysv4.3*) | |
13789 | version_type=linux | |
13790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13791 | soname_spec='${libname}${release}${shared_ext}$major' | |
13792 | shlibpath_var=LD_LIBRARY_PATH | |
13793 | case $host_vendor in | |
13794 | sni) | |
13795 | shlibpath_overrides_runpath=no | |
13796 | need_lib_prefix=no | |
13797 | runpath_var=LD_RUN_PATH | |
13798 | ;; | |
13799 | siemens) | |
13800 | need_lib_prefix=no | |
13801 | ;; | |
13802 | motorola) | |
13803 | need_lib_prefix=no | |
13804 | need_version=no | |
13805 | shlibpath_overrides_runpath=no | |
13806 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13807 | ;; | |
13808 | esac | |
13809 | ;; | |
13810 | ||
13811 | sysv4*MP*) | |
13812 | if test -d /usr/nec ;then | |
13813 | version_type=linux | |
13814 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13815 | soname_spec='$libname${shared_ext}.$major' | |
13816 | shlibpath_var=LD_LIBRARY_PATH | |
13817 | fi | |
13818 | ;; | |
13819 | ||
13820 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13821 | version_type=freebsd-elf | |
13822 | need_lib_prefix=no | |
13823 | need_version=no | |
13824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13825 | soname_spec='${libname}${release}${shared_ext}$major' | |
13826 | shlibpath_var=LD_LIBRARY_PATH | |
13827 | shlibpath_overrides_runpath=yes | |
13828 | hardcode_into_libs=yes | |
13829 | if test "$with_gnu_ld" = yes; then | |
13830 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13831 | else | |
13832 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13833 | case $host_os in | |
13834 | sco3.2v5*) | |
13835 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13836 | ;; | |
13837 | esac | |
13838 | fi | |
13839 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13840 | ;; | |
13841 | ||
13842 | tpf*) | |
13843 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13844 | version_type=linux | |
13845 | need_lib_prefix=no | |
13846 | need_version=no | |
6b4a97ed | 13847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
13848 | shlibpath_var=LD_LIBRARY_PATH |
13849 | shlibpath_overrides_runpath=no | |
13850 | hardcode_into_libs=yes | |
13851 | ;; | |
13852 | ||
13853 | uts4*) | |
13854 | version_type=linux | |
13855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13856 | soname_spec='${libname}${release}${shared_ext}$major' | |
13857 | shlibpath_var=LD_LIBRARY_PATH | |
13858 | ;; | |
13859 | ||
13860 | *) | |
13861 | dynamic_linker=no | |
13862 | ;; | |
13863 | esac | |
13864 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13865 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13866 | test "$dynamic_linker" = no && can_build_shared=no | |
13867 | ||
13868 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13869 | if test "$GCC" = yes; then | |
13870 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
953ff289 | 13871 | fi |
953ff289 | 13872 | |
6b4a97ed PG |
13873 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13874 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
13875 | fi | |
13876 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
13877 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
13878 | fi | |
13879 | ||
1cf3d07d SE |
13880 | |
13881 | ||
13882 | ||
13883 | ||
13884 | ||
13885 | ||
13886 | ||
13887 | ||
13888 | ||
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | ||
13914 | ||
13915 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13916 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
13917 | hardcode_action_FC= | |
13918 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
13919 | test -n "$runpath_var_FC" || | |
13920 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
13921 | ||
13922 | # We can hardcode non-existent directories. | |
13923 | if test "$hardcode_direct_FC" != no && | |
13924 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13925 | # have to relink, otherwise we might link with an installed library | |
13926 | # when we should be linking with a yet-to-be-installed one | |
13927 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
13928 | test "$hardcode_minus_L_FC" != no; then | |
13929 | # Linking always hardcodes the temporary library directory. | |
13930 | hardcode_action_FC=relink | |
953ff289 | 13931 | else |
1cf3d07d SE |
13932 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13933 | hardcode_action_FC=immediate | |
953ff289 DN |
13934 | fi |
13935 | else | |
1cf3d07d SE |
13936 | # We cannot hardcode anything, or else we can only hardcode existing |
13937 | # directories. | |
13938 | hardcode_action_FC=unsupported | |
953ff289 | 13939 | fi |
1cf3d07d SE |
13940 | echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 |
13941 | echo "${ECHO_T}$hardcode_action_FC" >&6 | |
953ff289 | 13942 | |
1cf3d07d SE |
13943 | if test "$hardcode_action_FC" = relink || |
13944 | test "$inherit_rpath_FC" = yes; then | |
13945 | # Fast installation is not supported | |
13946 | enable_fast_install=no | |
13947 | elif test "$shlibpath_overrides_runpath" = yes || | |
13948 | test "$enable_shared" = no; then | |
13949 | # Fast installation is not necessary | |
13950 | enable_fast_install=needless | |
953ff289 | 13951 | fi |
953ff289 | 13952 | |
1cf3d07d SE |
13953 | |
13954 | ||
13955 | ||
13956 | ||
13957 | ||
13958 | ||
13959 | fi # test -n "$compiler" | |
13960 | ||
6b4a97ed | 13961 | GCC=$lt_save_GCC |
1cf3d07d SE |
13962 | CC="$lt_save_CC" |
13963 | fi # test "$_lt_disable_FC" != yes | |
953ff289 DN |
13964 | |
13965 | ac_ext=c | |
13966 | ac_cpp='$CPP $CPPFLAGS' | |
13967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13970 | ||
13971 | ||
1cf3d07d | 13972 | FCFLAGS="$FCFLAGS -Wall" |
953ff289 | 13973 | |
1cf3d07d SE |
13974 | # For libtool versioning info, format is CURRENT:REVISION:AGE |
13975 | libtool_VERSION=1:0:0 | |
953ff289 | 13976 | |
1cf3d07d SE |
13977 | |
13978 | # Check header files. | |
953ff289 DN |
13979 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
13980 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13981 | if test "${ac_cv_header_stdc+set}" = set; then | |
13982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13983 | else | |
13984 | cat >conftest.$ac_ext <<_ACEOF | |
13985 | /* confdefs.h. */ | |
13986 | _ACEOF | |
13987 | cat confdefs.h >>conftest.$ac_ext | |
13988 | cat >>conftest.$ac_ext <<_ACEOF | |
13989 | /* end confdefs.h. */ | |
13990 | #include <stdlib.h> | |
13991 | #include <stdarg.h> | |
13992 | #include <string.h> | |
13993 | #include <float.h> | |
13994 | ||
13995 | int | |
13996 | main () | |
13997 | { | |
13998 | ||
13999 | ; | |
14000 | return 0; | |
14001 | } | |
14002 | _ACEOF | |
14003 | rm -f conftest.$ac_objext | |
14004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14005 | (eval $ac_compile) 2>conftest.er1 | |
14006 | ac_status=$? | |
14007 | grep -v '^ *+' conftest.er1 >conftest.err | |
14008 | rm -f conftest.er1 | |
14009 | cat conftest.err >&5 | |
14010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14011 | (exit $ac_status); } && | |
d349482e AT |
14012 | { ac_try='test -z "$ac_c_werror_flag" |
14013 | || test ! -s conftest.err' | |
953ff289 DN |
14014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14015 | (eval $ac_try) 2>&5 | |
14016 | ac_status=$? | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); }; } && | |
14019 | { ac_try='test -s conftest.$ac_objext' | |
14020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14021 | (eval $ac_try) 2>&5 | |
14022 | ac_status=$? | |
14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14024 | (exit $ac_status); }; }; then | |
14025 | ac_cv_header_stdc=yes | |
14026 | else | |
14027 | echo "$as_me: failed program was:" >&5 | |
14028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14029 | ||
14030 | ac_cv_header_stdc=no | |
14031 | fi | |
14032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14033 | ||
14034 | if test $ac_cv_header_stdc = yes; then | |
14035 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
14042 | #include <string.h> | |
14043 | ||
14044 | _ACEOF | |
14045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14046 | $EGREP "memchr" >/dev/null 2>&1; then | |
14047 | : | |
14048 | else | |
14049 | ac_cv_header_stdc=no | |
14050 | fi | |
14051 | rm -f conftest* | |
14052 | ||
14053 | fi | |
14054 | ||
14055 | if test $ac_cv_header_stdc = yes; then | |
14056 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14057 | cat >conftest.$ac_ext <<_ACEOF | |
14058 | /* confdefs.h. */ | |
14059 | _ACEOF | |
14060 | cat confdefs.h >>conftest.$ac_ext | |
14061 | cat >>conftest.$ac_ext <<_ACEOF | |
14062 | /* end confdefs.h. */ | |
14063 | #include <stdlib.h> | |
14064 | ||
14065 | _ACEOF | |
14066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14067 | $EGREP "free" >/dev/null 2>&1; then | |
14068 | : | |
14069 | else | |
14070 | ac_cv_header_stdc=no | |
14071 | fi | |
14072 | rm -f conftest* | |
14073 | ||
14074 | fi | |
14075 | ||
14076 | if test $ac_cv_header_stdc = yes; then | |
14077 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14078 | if test "$cross_compiling" = yes; then | |
14079 | : | |
14080 | else | |
14081 | cat >conftest.$ac_ext <<_ACEOF | |
14082 | /* confdefs.h. */ | |
14083 | _ACEOF | |
14084 | cat confdefs.h >>conftest.$ac_ext | |
14085 | cat >>conftest.$ac_ext <<_ACEOF | |
14086 | /* end confdefs.h. */ | |
14087 | #include <ctype.h> | |
14088 | #if ((' ' & 0x0FF) == 0x020) | |
14089 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14090 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14091 | #else | |
14092 | # define ISLOWER(c) \ | |
14093 | (('a' <= (c) && (c) <= 'i') \ | |
14094 | || ('j' <= (c) && (c) <= 'r') \ | |
14095 | || ('s' <= (c) && (c) <= 'z')) | |
14096 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14097 | #endif | |
14098 | ||
14099 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14100 | int | |
14101 | main () | |
14102 | { | |
14103 | int i; | |
14104 | for (i = 0; i < 256; i++) | |
14105 | if (XOR (islower (i), ISLOWER (i)) | |
14106 | || toupper (i) != TOUPPER (i)) | |
14107 | exit(2); | |
14108 | exit (0); | |
14109 | } | |
14110 | _ACEOF | |
14111 | rm -f conftest$ac_exeext | |
14112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14113 | (eval $ac_link) 2>&5 | |
14114 | ac_status=$? | |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14118 | (eval $ac_try) 2>&5 | |
14119 | ac_status=$? | |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14121 | (exit $ac_status); }; }; then | |
14122 | : | |
14123 | else | |
14124 | echo "$as_me: program exited with status $ac_status" >&5 | |
14125 | echo "$as_me: failed program was:" >&5 | |
14126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14127 | ||
14128 | ( exit $ac_status ) | |
14129 | ac_cv_header_stdc=no | |
14130 | fi | |
14131 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14132 | fi | |
14133 | fi | |
14134 | fi | |
14135 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14136 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14137 | if test $ac_cv_header_stdc = yes; then | |
14138 | ||
14139 | cat >>confdefs.h <<\_ACEOF | |
14140 | #define STDC_HEADERS 1 | |
14141 | _ACEOF | |
14142 | ||
14143 | fi | |
14144 | ||
14145 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
14146 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
14147 | if test "${ac_cv_header_time+set}" = set; then | |
14148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14149 | else | |
14150 | cat >conftest.$ac_ext <<_ACEOF | |
14151 | /* confdefs.h. */ | |
14152 | _ACEOF | |
14153 | cat confdefs.h >>conftest.$ac_ext | |
14154 | cat >>conftest.$ac_ext <<_ACEOF | |
14155 | /* end confdefs.h. */ | |
14156 | #include <sys/types.h> | |
14157 | #include <sys/time.h> | |
14158 | #include <time.h> | |
14159 | ||
14160 | int | |
14161 | main () | |
14162 | { | |
14163 | if ((struct tm *) 0) | |
14164 | return 0; | |
14165 | ; | |
14166 | return 0; | |
14167 | } | |
14168 | _ACEOF | |
14169 | rm -f conftest.$ac_objext | |
14170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14171 | (eval $ac_compile) 2>conftest.er1 | |
14172 | ac_status=$? | |
14173 | grep -v '^ *+' conftest.er1 >conftest.err | |
14174 | rm -f conftest.er1 | |
14175 | cat conftest.err >&5 | |
14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14177 | (exit $ac_status); } && | |
d349482e AT |
14178 | { ac_try='test -z "$ac_c_werror_flag" |
14179 | || test ! -s conftest.err' | |
953ff289 DN |
14180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14181 | (eval $ac_try) 2>&5 | |
14182 | ac_status=$? | |
14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14184 | (exit $ac_status); }; } && | |
14185 | { ac_try='test -s conftest.$ac_objext' | |
14186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14187 | (eval $ac_try) 2>&5 | |
14188 | ac_status=$? | |
14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14190 | (exit $ac_status); }; }; then | |
14191 | ac_cv_header_time=yes | |
14192 | else | |
14193 | echo "$as_me: failed program was:" >&5 | |
14194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14195 | ||
14196 | ac_cv_header_time=no | |
14197 | fi | |
14198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14199 | fi | |
14200 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
14201 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
14202 | if test $ac_cv_header_time = yes; then | |
14203 | ||
14204 | cat >>confdefs.h <<\_ACEOF | |
14205 | #define TIME_WITH_SYS_TIME 1 | |
14206 | _ACEOF | |
14207 | ||
14208 | fi | |
14209 | ||
a1b25e49 PG |
14210 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
14211 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
14212 | if test "${gcc_cv_header_string+set}" = set; then | |
14213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14214 | else | |
14215 | cat >conftest.$ac_ext <<_ACEOF | |
14216 | /* confdefs.h. */ | |
14217 | _ACEOF | |
14218 | cat confdefs.h >>conftest.$ac_ext | |
14219 | cat >>conftest.$ac_ext <<_ACEOF | |
14220 | /* end confdefs.h. */ | |
14221 | #include <string.h> | |
14222 | #include <strings.h> | |
14223 | int | |
14224 | main () | |
14225 | { | |
14226 | ||
14227 | ; | |
14228 | return 0; | |
14229 | } | |
14230 | _ACEOF | |
14231 | rm -f conftest.$ac_objext | |
14232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14233 | (eval $ac_compile) 2>conftest.er1 | |
14234 | ac_status=$? | |
14235 | grep -v '^ *+' conftest.er1 >conftest.err | |
14236 | rm -f conftest.er1 | |
14237 | cat conftest.err >&5 | |
14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14239 | (exit $ac_status); } && | |
14240 | { ac_try='test -z "$ac_c_werror_flag" | |
14241 | || test ! -s conftest.err' | |
14242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14243 | (eval $ac_try) 2>&5 | |
14244 | ac_status=$? | |
14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14246 | (exit $ac_status); }; } && | |
14247 | { ac_try='test -s conftest.$ac_objext' | |
14248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14249 | (eval $ac_try) 2>&5 | |
14250 | ac_status=$? | |
14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14252 | (exit $ac_status); }; }; then | |
14253 | gcc_cv_header_string=yes | |
14254 | else | |
14255 | echo "$as_me: failed program was:" >&5 | |
14256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14257 | ||
14258 | gcc_cv_header_string=no | |
14259 | fi | |
14260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14261 | fi | |
14262 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
14263 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
14264 | if test $gcc_cv_header_string = yes; then | |
14265 | ||
14266 | cat >>confdefs.h <<\_ACEOF | |
14267 | #define STRING_WITH_STRINGS 1 | |
14268 | _ACEOF | |
14269 | ||
14270 | fi | |
14271 | ||
953ff289 DN |
14272 | |
14273 | ||
14274 | ||
192a50ad | 14275 | |
e2b34106 JJ |
14276 | |
14277 | for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h | |
953ff289 DN |
14278 | do |
14279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14280 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14281 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14285 | fi | |
14286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14287 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14288 | else | |
14289 | # Is the header compilable? | |
14290 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14291 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14292 | cat >conftest.$ac_ext <<_ACEOF | |
14293 | /* confdefs.h. */ | |
14294 | _ACEOF | |
14295 | cat confdefs.h >>conftest.$ac_ext | |
14296 | cat >>conftest.$ac_ext <<_ACEOF | |
14297 | /* end confdefs.h. */ | |
14298 | $ac_includes_default | |
14299 | #include <$ac_header> | |
14300 | _ACEOF | |
14301 | rm -f conftest.$ac_objext | |
14302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14303 | (eval $ac_compile) 2>conftest.er1 | |
14304 | ac_status=$? | |
14305 | grep -v '^ *+' conftest.er1 >conftest.err | |
14306 | rm -f conftest.er1 | |
14307 | cat conftest.err >&5 | |
14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14309 | (exit $ac_status); } && | |
d349482e AT |
14310 | { ac_try='test -z "$ac_c_werror_flag" |
14311 | || test ! -s conftest.err' | |
953ff289 DN |
14312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14313 | (eval $ac_try) 2>&5 | |
14314 | ac_status=$? | |
14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14316 | (exit $ac_status); }; } && | |
14317 | { ac_try='test -s conftest.$ac_objext' | |
14318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14319 | (eval $ac_try) 2>&5 | |
14320 | ac_status=$? | |
14321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14322 | (exit $ac_status); }; }; then | |
14323 | ac_header_compiler=yes | |
14324 | else | |
14325 | echo "$as_me: failed program was:" >&5 | |
14326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14327 | ||
14328 | ac_header_compiler=no | |
14329 | fi | |
14330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14331 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14332 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14333 | ||
14334 | # Is the header present? | |
14335 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14336 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14337 | cat >conftest.$ac_ext <<_ACEOF | |
14338 | /* confdefs.h. */ | |
14339 | _ACEOF | |
14340 | cat confdefs.h >>conftest.$ac_ext | |
14341 | cat >>conftest.$ac_ext <<_ACEOF | |
14342 | /* end confdefs.h. */ | |
14343 | #include <$ac_header> | |
14344 | _ACEOF | |
14345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14347 | ac_status=$? | |
14348 | grep -v '^ *+' conftest.er1 >conftest.err | |
14349 | rm -f conftest.er1 | |
14350 | cat conftest.err >&5 | |
14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14352 | (exit $ac_status); } >/dev/null; then | |
14353 | if test -s conftest.err; then | |
14354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14356 | else | |
14357 | ac_cpp_err= | |
14358 | fi | |
14359 | else | |
14360 | ac_cpp_err=yes | |
14361 | fi | |
14362 | if test -z "$ac_cpp_err"; then | |
14363 | ac_header_preproc=yes | |
14364 | else | |
14365 | echo "$as_me: failed program was:" >&5 | |
14366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14367 | ||
14368 | ac_header_preproc=no | |
14369 | fi | |
14370 | rm -f conftest.err conftest.$ac_ext | |
14371 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14372 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14373 | ||
14374 | # So? What about this header? | |
14375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14376 | yes:no: ) | |
14377 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14378 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14380 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14381 | ac_header_preproc=yes | |
14382 | ;; | |
14383 | no:yes:* ) | |
14384 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14385 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14386 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14387 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14388 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14389 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14390 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14391 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14393 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14394 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14395 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14396 | ( | |
14397 | cat <<\_ASBOX | |
14398 | ## ----------------------------------------------------- ## | |
14399 | ## Report this to the GNU OpenMP Runtime Library lists. ## | |
14400 | ## ----------------------------------------------------- ## | |
14401 | _ASBOX | |
14402 | ) | | |
14403 | sed "s/^/$as_me: WARNING: /" >&2 | |
14404 | ;; | |
14405 | esac | |
14406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14410 | else | |
14411 | eval "$as_ac_Header=\$ac_header_preproc" | |
14412 | fi | |
14413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14415 | ||
14416 | fi | |
14417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14418 | cat >>confdefs.h <<_ACEOF | |
14419 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14420 | _ACEOF | |
14421 | ||
14422 | fi | |
14423 | ||
14424 | done | |
14425 | ||
953ff289 | 14426 | |
18cbfd85 PB |
14427 | |
14428 | ||
14429 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14430 | ||
14431 | acx_cv_header_stdint=stddef.h | |
14432 | acx_cv_header_stdint_kind="(already complete)" | |
14433 | for i in stdint.h $inttype_headers; do | |
14434 | unset ac_cv_type_uintptr_t | |
14435 | unset ac_cv_type_uintmax_t | |
14436 | unset ac_cv_type_int_least32_t | |
14437 | unset ac_cv_type_int_fast32_t | |
14438 | unset ac_cv_type_uint64_t | |
14439 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
14440 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
14441 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
14442 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
14443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14444 | else | |
14445 | cat >conftest.$ac_ext <<_ACEOF | |
14446 | /* confdefs.h. */ | |
14447 | _ACEOF | |
14448 | cat confdefs.h >>conftest.$ac_ext | |
14449 | cat >>conftest.$ac_ext <<_ACEOF | |
14450 | /* end confdefs.h. */ | |
14451 | #include <sys/types.h> | |
14452 | #include <$i> | |
14453 | ||
14454 | int | |
14455 | main () | |
14456 | { | |
14457 | if ((uintmax_t *) 0) | |
14458 | return 0; | |
14459 | if (sizeof (uintmax_t)) | |
14460 | return 0; | |
14461 | ; | |
14462 | return 0; | |
14463 | } | |
14464 | _ACEOF | |
14465 | rm -f conftest.$ac_objext | |
14466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14467 | (eval $ac_compile) 2>conftest.er1 | |
14468 | ac_status=$? | |
14469 | grep -v '^ *+' conftest.er1 >conftest.err | |
14470 | rm -f conftest.er1 | |
14471 | cat conftest.err >&5 | |
14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14473 | (exit $ac_status); } && | |
d349482e AT |
14474 | { ac_try='test -z "$ac_c_werror_flag" |
14475 | || test ! -s conftest.err' | |
18cbfd85 PB |
14476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14477 | (eval $ac_try) 2>&5 | |
14478 | ac_status=$? | |
14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14480 | (exit $ac_status); }; } && | |
14481 | { ac_try='test -s conftest.$ac_objext' | |
14482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14483 | (eval $ac_try) 2>&5 | |
14484 | ac_status=$? | |
14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14486 | (exit $ac_status); }; }; then | |
14487 | ac_cv_type_uintmax_t=yes | |
14488 | else | |
14489 | echo "$as_me: failed program was:" >&5 | |
14490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14491 | ||
14492 | ac_cv_type_uintmax_t=no | |
14493 | fi | |
14494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14495 | fi | |
14496 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
14497 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
14498 | if test $ac_cv_type_uintmax_t = yes; then | |
14499 | acx_cv_header_stdint=$i | |
14500 | else | |
14501 | continue | |
14502 | fi | |
14503 | ||
14504 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
14505 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
14506 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
14507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14508 | else | |
14509 | cat >conftest.$ac_ext <<_ACEOF | |
14510 | /* confdefs.h. */ | |
14511 | _ACEOF | |
14512 | cat confdefs.h >>conftest.$ac_ext | |
14513 | cat >>conftest.$ac_ext <<_ACEOF | |
14514 | /* end confdefs.h. */ | |
14515 | #include <sys/types.h> | |
14516 | #include <$i> | |
14517 | ||
14518 | int | |
14519 | main () | |
14520 | { | |
14521 | if ((uintptr_t *) 0) | |
14522 | return 0; | |
14523 | if (sizeof (uintptr_t)) | |
14524 | return 0; | |
14525 | ; | |
14526 | return 0; | |
14527 | } | |
14528 | _ACEOF | |
14529 | rm -f conftest.$ac_objext | |
14530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14531 | (eval $ac_compile) 2>conftest.er1 | |
14532 | ac_status=$? | |
14533 | grep -v '^ *+' conftest.er1 >conftest.err | |
14534 | rm -f conftest.er1 | |
14535 | cat conftest.err >&5 | |
14536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14537 | (exit $ac_status); } && | |
d349482e AT |
14538 | { ac_try='test -z "$ac_c_werror_flag" |
14539 | || test ! -s conftest.err' | |
18cbfd85 PB |
14540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14541 | (eval $ac_try) 2>&5 | |
14542 | ac_status=$? | |
14543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14544 | (exit $ac_status); }; } && | |
14545 | { ac_try='test -s conftest.$ac_objext' | |
14546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14547 | (eval $ac_try) 2>&5 | |
14548 | ac_status=$? | |
14549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14550 | (exit $ac_status); }; }; then | |
14551 | ac_cv_type_uintptr_t=yes | |
14552 | else | |
14553 | echo "$as_me: failed program was:" >&5 | |
14554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14555 | ||
14556 | ac_cv_type_uintptr_t=no | |
14557 | fi | |
14558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14559 | fi | |
14560 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
14561 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
14562 | if test $ac_cv_type_uintptr_t = yes; then | |
14563 | : | |
14564 | else | |
14565 | acx_cv_header_stdint_kind="(mostly complete)" | |
14566 | fi | |
14567 | ||
14568 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
14569 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
14570 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
14571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14572 | else | |
14573 | cat >conftest.$ac_ext <<_ACEOF | |
14574 | /* confdefs.h. */ | |
14575 | _ACEOF | |
14576 | cat confdefs.h >>conftest.$ac_ext | |
14577 | cat >>conftest.$ac_ext <<_ACEOF | |
14578 | /* end confdefs.h. */ | |
14579 | #include <sys/types.h> | |
14580 | #include <$i> | |
14581 | ||
14582 | int | |
14583 | main () | |
14584 | { | |
14585 | if ((int_least32_t *) 0) | |
14586 | return 0; | |
14587 | if (sizeof (int_least32_t)) | |
14588 | return 0; | |
14589 | ; | |
14590 | return 0; | |
14591 | } | |
14592 | _ACEOF | |
14593 | rm -f conftest.$ac_objext | |
14594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14595 | (eval $ac_compile) 2>conftest.er1 | |
14596 | ac_status=$? | |
14597 | grep -v '^ *+' conftest.er1 >conftest.err | |
14598 | rm -f conftest.er1 | |
14599 | cat conftest.err >&5 | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); } && | |
d349482e AT |
14602 | { ac_try='test -z "$ac_c_werror_flag" |
14603 | || test ! -s conftest.err' | |
18cbfd85 PB |
14604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14605 | (eval $ac_try) 2>&5 | |
14606 | ac_status=$? | |
14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14608 | (exit $ac_status); }; } && | |
14609 | { ac_try='test -s conftest.$ac_objext' | |
14610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14611 | (eval $ac_try) 2>&5 | |
14612 | ac_status=$? | |
14613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14614 | (exit $ac_status); }; }; then | |
14615 | ac_cv_type_int_least32_t=yes | |
14616 | else | |
14617 | echo "$as_me: failed program was:" >&5 | |
14618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14619 | ||
14620 | ac_cv_type_int_least32_t=no | |
14621 | fi | |
14622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14623 | fi | |
14624 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
14625 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
14626 | if test $ac_cv_type_int_least32_t = yes; then | |
14627 | : | |
14628 | else | |
14629 | acx_cv_header_stdint_kind="(mostly complete)" | |
14630 | fi | |
14631 | ||
14632 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
14633 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
14634 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
14635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14636 | else | |
14637 | cat >conftest.$ac_ext <<_ACEOF | |
14638 | /* confdefs.h. */ | |
14639 | _ACEOF | |
14640 | cat confdefs.h >>conftest.$ac_ext | |
14641 | cat >>conftest.$ac_ext <<_ACEOF | |
14642 | /* end confdefs.h. */ | |
14643 | #include <sys/types.h> | |
14644 | #include <$i> | |
14645 | ||
14646 | int | |
14647 | main () | |
14648 | { | |
14649 | if ((int_fast32_t *) 0) | |
14650 | return 0; | |
14651 | if (sizeof (int_fast32_t)) | |
14652 | return 0; | |
14653 | ; | |
14654 | return 0; | |
14655 | } | |
14656 | _ACEOF | |
14657 | rm -f conftest.$ac_objext | |
14658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14659 | (eval $ac_compile) 2>conftest.er1 | |
14660 | ac_status=$? | |
14661 | grep -v '^ *+' conftest.er1 >conftest.err | |
14662 | rm -f conftest.er1 | |
14663 | cat conftest.err >&5 | |
14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14665 | (exit $ac_status); } && | |
d349482e AT |
14666 | { ac_try='test -z "$ac_c_werror_flag" |
14667 | || test ! -s conftest.err' | |
18cbfd85 PB |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; } && | |
14673 | { ac_try='test -s conftest.$ac_objext' | |
14674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14675 | (eval $ac_try) 2>&5 | |
14676 | ac_status=$? | |
14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14678 | (exit $ac_status); }; }; then | |
14679 | ac_cv_type_int_fast32_t=yes | |
14680 | else | |
14681 | echo "$as_me: failed program was:" >&5 | |
14682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14683 | ||
14684 | ac_cv_type_int_fast32_t=no | |
14685 | fi | |
14686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14687 | fi | |
14688 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
14689 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
14690 | if test $ac_cv_type_int_fast32_t = yes; then | |
14691 | : | |
14692 | else | |
14693 | acx_cv_header_stdint_kind="(mostly complete)" | |
14694 | fi | |
14695 | ||
14696 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
14697 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
14698 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
14699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14700 | else | |
14701 | cat >conftest.$ac_ext <<_ACEOF | |
14702 | /* confdefs.h. */ | |
14703 | _ACEOF | |
14704 | cat confdefs.h >>conftest.$ac_ext | |
14705 | cat >>conftest.$ac_ext <<_ACEOF | |
14706 | /* end confdefs.h. */ | |
14707 | #include <sys/types.h> | |
14708 | #include <$i> | |
14709 | ||
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | if ((uint64_t *) 0) | |
14714 | return 0; | |
14715 | if (sizeof (uint64_t)) | |
14716 | return 0; | |
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14723 | (eval $ac_compile) 2>conftest.er1 | |
14724 | ac_status=$? | |
14725 | grep -v '^ *+' conftest.er1 >conftest.err | |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); } && | |
d349482e AT |
14730 | { ac_try='test -z "$ac_c_werror_flag" |
14731 | || test ! -s conftest.err' | |
18cbfd85 PB |
14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14733 | (eval $ac_try) 2>&5 | |
14734 | ac_status=$? | |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14736 | (exit $ac_status); }; } && | |
14737 | { ac_try='test -s conftest.$ac_objext' | |
14738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14739 | (eval $ac_try) 2>&5 | |
14740 | ac_status=$? | |
14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14742 | (exit $ac_status); }; }; then | |
14743 | ac_cv_type_uint64_t=yes | |
14744 | else | |
14745 | echo "$as_me: failed program was:" >&5 | |
14746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14747 | ||
14748 | ac_cv_type_uint64_t=no | |
14749 | fi | |
14750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14751 | fi | |
14752 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
14753 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
14754 | if test $ac_cv_type_uint64_t = yes; then | |
14755 | : | |
14756 | else | |
14757 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
14758 | fi | |
14759 | ||
14760 | break | |
14761 | done | |
14762 | if test "$acx_cv_header_stdint" = stddef.h; then | |
c663e301 | 14763 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
18cbfd85 | 14764 | for i in stdint.h $inttype_headers; do |
c663e301 | 14765 | unset ac_cv_type_uintptr_t |
18cbfd85 PB |
14766 | unset ac_cv_type_uint32_t |
14767 | unset ac_cv_type_uint64_t | |
14768 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
14769 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
14770 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
14771 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
14772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14773 | else | |
14774 | cat >conftest.$ac_ext <<_ACEOF | |
14775 | /* confdefs.h. */ | |
14776 | _ACEOF | |
14777 | cat confdefs.h >>conftest.$ac_ext | |
14778 | cat >>conftest.$ac_ext <<_ACEOF | |
14779 | /* end confdefs.h. */ | |
14780 | #include <sys/types.h> | |
14781 | #include <$i> | |
14782 | ||
14783 | int | |
14784 | main () | |
14785 | { | |
14786 | if ((uint32_t *) 0) | |
14787 | return 0; | |
14788 | if (sizeof (uint32_t)) | |
14789 | return 0; | |
14790 | ; | |
14791 | return 0; | |
14792 | } | |
14793 | _ACEOF | |
14794 | rm -f conftest.$ac_objext | |
14795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14796 | (eval $ac_compile) 2>conftest.er1 | |
14797 | ac_status=$? | |
14798 | grep -v '^ *+' conftest.er1 >conftest.err | |
14799 | rm -f conftest.er1 | |
14800 | cat conftest.err >&5 | |
14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14802 | (exit $ac_status); } && | |
d349482e AT |
14803 | { ac_try='test -z "$ac_c_werror_flag" |
14804 | || test ! -s conftest.err' | |
18cbfd85 PB |
14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14806 | (eval $ac_try) 2>&5 | |
14807 | ac_status=$? | |
14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14809 | (exit $ac_status); }; } && | |
14810 | { ac_try='test -s conftest.$ac_objext' | |
14811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14812 | (eval $ac_try) 2>&5 | |
14813 | ac_status=$? | |
14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14815 | (exit $ac_status); }; }; then | |
14816 | ac_cv_type_uint32_t=yes | |
14817 | else | |
14818 | echo "$as_me: failed program was:" >&5 | |
14819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14820 | ||
14821 | ac_cv_type_uint32_t=no | |
14822 | fi | |
14823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14824 | fi | |
14825 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
14826 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
14827 | if test $ac_cv_type_uint32_t = yes; then | |
14828 | acx_cv_header_stdint=$i | |
14829 | else | |
14830 | continue | |
14831 | fi | |
14832 | ||
14833 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
14834 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
14835 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
14836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14837 | else | |
14838 | cat >conftest.$ac_ext <<_ACEOF | |
14839 | /* confdefs.h. */ | |
14840 | _ACEOF | |
14841 | cat confdefs.h >>conftest.$ac_ext | |
14842 | cat >>conftest.$ac_ext <<_ACEOF | |
14843 | /* end confdefs.h. */ | |
14844 | #include <sys/types.h> | |
14845 | #include <$i> | |
14846 | ||
14847 | int | |
14848 | main () | |
14849 | { | |
14850 | if ((uint64_t *) 0) | |
14851 | return 0; | |
14852 | if (sizeof (uint64_t)) | |
14853 | return 0; | |
14854 | ; | |
14855 | return 0; | |
14856 | } | |
14857 | _ACEOF | |
14858 | rm -f conftest.$ac_objext | |
14859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14860 | (eval $ac_compile) 2>conftest.er1 | |
14861 | ac_status=$? | |
14862 | grep -v '^ *+' conftest.er1 >conftest.err | |
14863 | rm -f conftest.er1 | |
14864 | cat conftest.err >&5 | |
14865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14866 | (exit $ac_status); } && | |
d349482e AT |
14867 | { ac_try='test -z "$ac_c_werror_flag" |
14868 | || test ! -s conftest.err' | |
18cbfd85 PB |
14869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14870 | (eval $ac_try) 2>&5 | |
14871 | ac_status=$? | |
14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14873 | (exit $ac_status); }; } && | |
14874 | { ac_try='test -s conftest.$ac_objext' | |
14875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14876 | (eval $ac_try) 2>&5 | |
14877 | ac_status=$? | |
14878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14879 | (exit $ac_status); }; }; then | |
14880 | ac_cv_type_uint64_t=yes | |
14881 | else | |
14882 | echo "$as_me: failed program was:" >&5 | |
14883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14884 | ||
14885 | ac_cv_type_uint64_t=no | |
14886 | fi | |
14887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14888 | fi | |
14889 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
14890 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
c663e301 JM |
14891 | |
14892 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
14893 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
14894 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
14895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18cbfd85 | 14896 | else |
c663e301 JM |
14897 | cat >conftest.$ac_ext <<_ACEOF |
14898 | /* confdefs.h. */ | |
14899 | _ACEOF | |
14900 | cat confdefs.h >>conftest.$ac_ext | |
14901 | cat >>conftest.$ac_ext <<_ACEOF | |
14902 | /* end confdefs.h. */ | |
14903 | #include <sys/types.h> | |
14904 | #include <$i> | |
14905 | ||
14906 | int | |
14907 | main () | |
14908 | { | |
14909 | if ((uintptr_t *) 0) | |
14910 | return 0; | |
14911 | if (sizeof (uintptr_t)) | |
14912 | return 0; | |
14913 | ; | |
14914 | return 0; | |
14915 | } | |
14916 | _ACEOF | |
14917 | rm -f conftest.$ac_objext | |
14918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14919 | (eval $ac_compile) 2>conftest.er1 | |
14920 | ac_status=$? | |
14921 | grep -v '^ *+' conftest.er1 >conftest.err | |
14922 | rm -f conftest.er1 | |
14923 | cat conftest.err >&5 | |
14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14925 | (exit $ac_status); } && | |
14926 | { ac_try='test -z "$ac_c_werror_flag" | |
14927 | || test ! -s conftest.err' | |
14928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14929 | (eval $ac_try) 2>&5 | |
14930 | ac_status=$? | |
14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14932 | (exit $ac_status); }; } && | |
14933 | { ac_try='test -s conftest.$ac_objext' | |
14934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14935 | (eval $ac_try) 2>&5 | |
14936 | ac_status=$? | |
14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14938 | (exit $ac_status); }; }; then | |
14939 | ac_cv_type_uintptr_t=yes | |
14940 | else | |
14941 | echo "$as_me: failed program was:" >&5 | |
14942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14943 | ||
14944 | ac_cv_type_uintptr_t=no | |
14945 | fi | |
14946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18cbfd85 | 14947 | fi |
c663e301 JM |
14948 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
14949 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
18cbfd85 PB |
14950 | |
14951 | break | |
14952 | done | |
14953 | fi | |
14954 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14955 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
14956 | for i in sys/types.h $inttype_headers; do | |
14957 | unset ac_cv_type_u_int32_t | |
14958 | unset ac_cv_type_u_int64_t | |
14959 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
14960 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
14961 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
14962 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
14963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14964 | else | |
14965 | cat >conftest.$ac_ext <<_ACEOF | |
14966 | /* confdefs.h. */ | |
14967 | _ACEOF | |
14968 | cat confdefs.h >>conftest.$ac_ext | |
14969 | cat >>conftest.$ac_ext <<_ACEOF | |
14970 | /* end confdefs.h. */ | |
14971 | #include <sys/types.h> | |
14972 | #include <$i> | |
14973 | ||
14974 | int | |
14975 | main () | |
14976 | { | |
14977 | if ((u_int32_t *) 0) | |
14978 | return 0; | |
14979 | if (sizeof (u_int32_t)) | |
14980 | return 0; | |
14981 | ; | |
14982 | return 0; | |
14983 | } | |
14984 | _ACEOF | |
14985 | rm -f conftest.$ac_objext | |
14986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14987 | (eval $ac_compile) 2>conftest.er1 | |
14988 | ac_status=$? | |
14989 | grep -v '^ *+' conftest.er1 >conftest.err | |
14990 | rm -f conftest.er1 | |
14991 | cat conftest.err >&5 | |
14992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14993 | (exit $ac_status); } && | |
d349482e AT |
14994 | { ac_try='test -z "$ac_c_werror_flag" |
14995 | || test ! -s conftest.err' | |
18cbfd85 PB |
14996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14997 | (eval $ac_try) 2>&5 | |
14998 | ac_status=$? | |
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15000 | (exit $ac_status); }; } && | |
15001 | { ac_try='test -s conftest.$ac_objext' | |
15002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15003 | (eval $ac_try) 2>&5 | |
15004 | ac_status=$? | |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); }; }; then | |
15007 | ac_cv_type_u_int32_t=yes | |
15008 | else | |
15009 | echo "$as_me: failed program was:" >&5 | |
15010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15011 | ||
15012 | ac_cv_type_u_int32_t=no | |
15013 | fi | |
15014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15015 | fi | |
15016 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
15017 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
15018 | if test $ac_cv_type_u_int32_t = yes; then | |
15019 | acx_cv_header_stdint=$i | |
15020 | else | |
15021 | continue | |
15022 | fi | |
15023 | ||
15024 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
15025 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
15026 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15028 | else | |
15029 | cat >conftest.$ac_ext <<_ACEOF | |
15030 | /* confdefs.h. */ | |
15031 | _ACEOF | |
15032 | cat confdefs.h >>conftest.$ac_ext | |
15033 | cat >>conftest.$ac_ext <<_ACEOF | |
15034 | /* end confdefs.h. */ | |
15035 | #include <sys/types.h> | |
15036 | #include <$i> | |
15037 | ||
15038 | int | |
15039 | main () | |
15040 | { | |
15041 | if ((u_int64_t *) 0) | |
15042 | return 0; | |
15043 | if (sizeof (u_int64_t)) | |
15044 | return 0; | |
15045 | ; | |
15046 | return 0; | |
15047 | } | |
15048 | _ACEOF | |
15049 | rm -f conftest.$ac_objext | |
15050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15051 | (eval $ac_compile) 2>conftest.er1 | |
15052 | ac_status=$? | |
15053 | grep -v '^ *+' conftest.er1 >conftest.err | |
15054 | rm -f conftest.er1 | |
15055 | cat conftest.err >&5 | |
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15057 | (exit $ac_status); } && | |
d349482e AT |
15058 | { ac_try='test -z "$ac_c_werror_flag" |
15059 | || test ! -s conftest.err' | |
18cbfd85 PB |
15060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15061 | (eval $ac_try) 2>&5 | |
15062 | ac_status=$? | |
15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15064 | (exit $ac_status); }; } && | |
15065 | { ac_try='test -s conftest.$ac_objext' | |
15066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15067 | (eval $ac_try) 2>&5 | |
15068 | ac_status=$? | |
15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15070 | (exit $ac_status); }; }; then | |
15071 | ac_cv_type_u_int64_t=yes | |
15072 | else | |
15073 | echo "$as_me: failed program was:" >&5 | |
15074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15075 | ||
15076 | ac_cv_type_u_int64_t=no | |
15077 | fi | |
15078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15079 | fi | |
15080 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
15081 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
18cbfd85 PB |
15082 | |
15083 | break | |
15084 | done | |
15085 | fi | |
15086 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15087 | acx_cv_header_stdint_kind="(using manual detection)" | |
15088 | fi | |
15089 | ||
15090 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
15091 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15092 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15093 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15094 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
15095 | ||
15096 | # ----------------- Summarize what we found so far | |
15097 | ||
15098 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 | |
15099 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
15100 | ||
15101 | case `$as_basename gstdint.h || | |
15102 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
15103 | Xgstdint.h : 'X\(//\)$' \| \ | |
15104 | Xgstdint.h : 'X\(/\)$' \| \ | |
15105 | . : '\(.\)' 2>/dev/null || | |
15106 | echo X/gstdint.h | | |
15107 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
15108 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
15109 | /^X\/\(\/\).*/{ s//\1/; q; } | |
15110 | s/.*/./; q'` in | |
15111 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
15112 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15113 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
15114 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15115 | *) ;; | |
15116 | esac | |
15117 | ||
15118 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
15119 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
15120 | ||
15121 | # ----------------- done included file, check C basic types -------- | |
15122 | ||
15123 | # Lacking an uintptr_t? Test size of void * | |
15124 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
15125 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
15126 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15127 | if test "${ac_cv_type_void_p+set}" = set; then | |
15128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15129 | else | |
15130 | cat >conftest.$ac_ext <<_ACEOF | |
15131 | /* confdefs.h. */ | |
15132 | _ACEOF | |
15133 | cat confdefs.h >>conftest.$ac_ext | |
15134 | cat >>conftest.$ac_ext <<_ACEOF | |
15135 | /* end confdefs.h. */ | |
15136 | $ac_includes_default | |
15137 | int | |
15138 | main () | |
15139 | { | |
15140 | if ((void * *) 0) | |
15141 | return 0; | |
15142 | if (sizeof (void *)) | |
15143 | return 0; | |
15144 | ; | |
15145 | return 0; | |
15146 | } | |
15147 | _ACEOF | |
15148 | rm -f conftest.$ac_objext | |
15149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15150 | (eval $ac_compile) 2>conftest.er1 | |
15151 | ac_status=$? | |
15152 | grep -v '^ *+' conftest.er1 >conftest.err | |
15153 | rm -f conftest.er1 | |
15154 | cat conftest.err >&5 | |
15155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15156 | (exit $ac_status); } && | |
d349482e AT |
15157 | { ac_try='test -z "$ac_c_werror_flag" |
15158 | || test ! -s conftest.err' | |
18cbfd85 PB |
15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15160 | (eval $ac_try) 2>&5 | |
15161 | ac_status=$? | |
15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15163 | (exit $ac_status); }; } && | |
15164 | { ac_try='test -s conftest.$ac_objext' | |
15165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15166 | (eval $ac_try) 2>&5 | |
15167 | ac_status=$? | |
15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15169 | (exit $ac_status); }; }; then | |
15170 | ac_cv_type_void_p=yes | |
15171 | else | |
15172 | echo "$as_me: failed program was:" >&5 | |
15173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15174 | ||
15175 | ac_cv_type_void_p=no | |
15176 | fi | |
15177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15178 | fi | |
15179 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15180 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15181 | ||
15182 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15183 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15184 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15186 | else | |
15187 | if test "$ac_cv_type_void_p" = yes; then | |
15188 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15189 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15190 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15191 | # This bug is HP SR number 8606223364. | |
15192 | if test "$cross_compiling" = yes; then | |
15193 | # Depending upon the size, compute the lo and hi bounds. | |
15194 | cat >conftest.$ac_ext <<_ACEOF | |
15195 | /* confdefs.h. */ | |
15196 | _ACEOF | |
15197 | cat confdefs.h >>conftest.$ac_ext | |
15198 | cat >>conftest.$ac_ext <<_ACEOF | |
15199 | /* end confdefs.h. */ | |
15200 | $ac_includes_default | |
15201 | int | |
15202 | main () | |
15203 | { | |
15204 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15205 | test_array [0] = 0 | |
15206 | ||
15207 | ; | |
15208 | return 0; | |
15209 | } | |
15210 | _ACEOF | |
15211 | rm -f conftest.$ac_objext | |
15212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15213 | (eval $ac_compile) 2>conftest.er1 | |
15214 | ac_status=$? | |
15215 | grep -v '^ *+' conftest.er1 >conftest.err | |
15216 | rm -f conftest.er1 | |
15217 | cat conftest.err >&5 | |
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15219 | (exit $ac_status); } && | |
d349482e AT |
15220 | { ac_try='test -z "$ac_c_werror_flag" |
15221 | || test ! -s conftest.err' | |
18cbfd85 PB |
15222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15223 | (eval $ac_try) 2>&5 | |
15224 | ac_status=$? | |
15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15226 | (exit $ac_status); }; } && | |
15227 | { ac_try='test -s conftest.$ac_objext' | |
15228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15229 | (eval $ac_try) 2>&5 | |
15230 | ac_status=$? | |
15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15232 | (exit $ac_status); }; }; then | |
15233 | ac_lo=0 ac_mid=0 | |
15234 | while :; do | |
15235 | cat >conftest.$ac_ext <<_ACEOF | |
15236 | /* confdefs.h. */ | |
15237 | _ACEOF | |
15238 | cat confdefs.h >>conftest.$ac_ext | |
15239 | cat >>conftest.$ac_ext <<_ACEOF | |
15240 | /* end confdefs.h. */ | |
15241 | $ac_includes_default | |
15242 | int | |
15243 | main () | |
15244 | { | |
15245 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15246 | test_array [0] = 0 | |
15247 | ||
15248 | ; | |
15249 | return 0; | |
15250 | } | |
15251 | _ACEOF | |
15252 | rm -f conftest.$ac_objext | |
15253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15254 | (eval $ac_compile) 2>conftest.er1 | |
15255 | ac_status=$? | |
15256 | grep -v '^ *+' conftest.er1 >conftest.err | |
15257 | rm -f conftest.er1 | |
15258 | cat conftest.err >&5 | |
15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15260 | (exit $ac_status); } && | |
d349482e AT |
15261 | { ac_try='test -z "$ac_c_werror_flag" |
15262 | || test ! -s conftest.err' | |
18cbfd85 PB |
15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15264 | (eval $ac_try) 2>&5 | |
15265 | ac_status=$? | |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15267 | (exit $ac_status); }; } && | |
15268 | { ac_try='test -s conftest.$ac_objext' | |
15269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15270 | (eval $ac_try) 2>&5 | |
15271 | ac_status=$? | |
15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15273 | (exit $ac_status); }; }; then | |
15274 | ac_hi=$ac_mid; break | |
15275 | else | |
15276 | echo "$as_me: failed program was:" >&5 | |
15277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15278 | ||
15279 | ac_lo=`expr $ac_mid + 1` | |
15280 | if test $ac_lo -le $ac_mid; then | |
15281 | ac_lo= ac_hi= | |
15282 | break | |
15283 | fi | |
15284 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15285 | fi | |
15286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15287 | done | |
15288 | else | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
15292 | cat >conftest.$ac_ext <<_ACEOF | |
15293 | /* confdefs.h. */ | |
15294 | _ACEOF | |
15295 | cat confdefs.h >>conftest.$ac_ext | |
15296 | cat >>conftest.$ac_ext <<_ACEOF | |
15297 | /* end confdefs.h. */ | |
15298 | $ac_includes_default | |
15299 | int | |
15300 | main () | |
15301 | { | |
15302 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15303 | test_array [0] = 0 | |
15304 | ||
15305 | ; | |
15306 | return 0; | |
15307 | } | |
15308 | _ACEOF | |
15309 | rm -f conftest.$ac_objext | |
15310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15311 | (eval $ac_compile) 2>conftest.er1 | |
15312 | ac_status=$? | |
15313 | grep -v '^ *+' conftest.er1 >conftest.err | |
15314 | rm -f conftest.er1 | |
15315 | cat conftest.err >&5 | |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15317 | (exit $ac_status); } && | |
d349482e AT |
15318 | { ac_try='test -z "$ac_c_werror_flag" |
15319 | || test ! -s conftest.err' | |
18cbfd85 PB |
15320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15321 | (eval $ac_try) 2>&5 | |
15322 | ac_status=$? | |
15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15324 | (exit $ac_status); }; } && | |
15325 | { ac_try='test -s conftest.$ac_objext' | |
15326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15327 | (eval $ac_try) 2>&5 | |
15328 | ac_status=$? | |
15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15330 | (exit $ac_status); }; }; then | |
15331 | ac_hi=-1 ac_mid=-1 | |
15332 | while :; do | |
15333 | cat >conftest.$ac_ext <<_ACEOF | |
15334 | /* confdefs.h. */ | |
15335 | _ACEOF | |
15336 | cat confdefs.h >>conftest.$ac_ext | |
15337 | cat >>conftest.$ac_ext <<_ACEOF | |
15338 | /* end confdefs.h. */ | |
15339 | $ac_includes_default | |
15340 | int | |
15341 | main () | |
15342 | { | |
15343 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15344 | test_array [0] = 0 | |
15345 | ||
15346 | ; | |
15347 | return 0; | |
15348 | } | |
15349 | _ACEOF | |
15350 | rm -f conftest.$ac_objext | |
15351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15352 | (eval $ac_compile) 2>conftest.er1 | |
15353 | ac_status=$? | |
15354 | grep -v '^ *+' conftest.er1 >conftest.err | |
15355 | rm -f conftest.er1 | |
15356 | cat conftest.err >&5 | |
15357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15358 | (exit $ac_status); } && | |
d349482e AT |
15359 | { ac_try='test -z "$ac_c_werror_flag" |
15360 | || test ! -s conftest.err' | |
18cbfd85 PB |
15361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15362 | (eval $ac_try) 2>&5 | |
15363 | ac_status=$? | |
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15365 | (exit $ac_status); }; } && | |
15366 | { ac_try='test -s conftest.$ac_objext' | |
15367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15368 | (eval $ac_try) 2>&5 | |
15369 | ac_status=$? | |
15370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15371 | (exit $ac_status); }; }; then | |
15372 | ac_lo=$ac_mid; break | |
15373 | else | |
15374 | echo "$as_me: failed program was:" >&5 | |
15375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15376 | ||
15377 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15378 | if test $ac_mid -le $ac_hi; then | |
15379 | ac_lo= ac_hi= | |
15380 | break | |
15381 | fi | |
15382 | ac_mid=`expr 2 '*' $ac_mid` | |
15383 | fi | |
15384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15385 | done | |
15386 | else | |
15387 | echo "$as_me: failed program was:" >&5 | |
15388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15389 | ||
15390 | ac_lo= ac_hi= | |
15391 | fi | |
15392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15393 | fi | |
15394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15395 | # Binary search between lo and hi bounds. | |
15396 | while test "x$ac_lo" != "x$ac_hi"; do | |
15397 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15398 | cat >conftest.$ac_ext <<_ACEOF | |
15399 | /* confdefs.h. */ | |
15400 | _ACEOF | |
15401 | cat confdefs.h >>conftest.$ac_ext | |
15402 | cat >>conftest.$ac_ext <<_ACEOF | |
15403 | /* end confdefs.h. */ | |
15404 | $ac_includes_default | |
15405 | int | |
15406 | main () | |
15407 | { | |
15408 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15409 | test_array [0] = 0 | |
15410 | ||
15411 | ; | |
15412 | return 0; | |
15413 | } | |
15414 | _ACEOF | |
15415 | rm -f conftest.$ac_objext | |
15416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15417 | (eval $ac_compile) 2>conftest.er1 | |
15418 | ac_status=$? | |
15419 | grep -v '^ *+' conftest.er1 >conftest.err | |
15420 | rm -f conftest.er1 | |
15421 | cat conftest.err >&5 | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); } && | |
d349482e AT |
15424 | { ac_try='test -z "$ac_c_werror_flag" |
15425 | || test ! -s conftest.err' | |
18cbfd85 PB |
15426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15427 | (eval $ac_try) 2>&5 | |
15428 | ac_status=$? | |
15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15430 | (exit $ac_status); }; } && | |
15431 | { ac_try='test -s conftest.$ac_objext' | |
15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15433 | (eval $ac_try) 2>&5 | |
15434 | ac_status=$? | |
15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15436 | (exit $ac_status); }; }; then | |
15437 | ac_hi=$ac_mid | |
15438 | else | |
15439 | echo "$as_me: failed program was:" >&5 | |
15440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15441 | ||
15442 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15443 | fi | |
15444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15445 | done | |
15446 | case $ac_lo in | |
15447 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18c04407 RW |
15448 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15449 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15450 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18cbfd85 PB |
15451 | See \`config.log' for more details." >&5 |
15452 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15453 | See \`config.log' for more details." >&2;} | |
18c04407 | 15454 | { (exit 1); exit 1; }; }; } ;; |
18cbfd85 PB |
15455 | esac |
15456 | else | |
15457 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
15458 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15459 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15460 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
15461 | See \`config.log' for more details." >&5 |
15462 | echo "$as_me: error: cannot run test program while cross compiling | |
15463 | See \`config.log' for more details." >&2;} | |
18c04407 | 15464 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
15465 | else |
15466 | cat >conftest.$ac_ext <<_ACEOF | |
15467 | /* confdefs.h. */ | |
15468 | _ACEOF | |
15469 | cat confdefs.h >>conftest.$ac_ext | |
15470 | cat >>conftest.$ac_ext <<_ACEOF | |
15471 | /* end confdefs.h. */ | |
15472 | $ac_includes_default | |
15473 | long longval () { return (long) (sizeof (void *)); } | |
15474 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15475 | #include <stdio.h> | |
15476 | #include <stdlib.h> | |
15477 | int | |
15478 | main () | |
15479 | { | |
15480 | ||
15481 | FILE *f = fopen ("conftest.val", "w"); | |
15482 | if (! f) | |
15483 | exit (1); | |
15484 | if (((long) (sizeof (void *))) < 0) | |
15485 | { | |
15486 | long i = longval (); | |
15487 | if (i != ((long) (sizeof (void *)))) | |
15488 | exit (1); | |
15489 | fprintf (f, "%ld\n", i); | |
15490 | } | |
15491 | else | |
15492 | { | |
15493 | unsigned long i = ulongval (); | |
15494 | if (i != ((long) (sizeof (void *)))) | |
15495 | exit (1); | |
15496 | fprintf (f, "%lu\n", i); | |
15497 | } | |
15498 | exit (ferror (f) || fclose (f) != 0); | |
15499 | ||
15500 | ; | |
15501 | return 0; | |
15502 | } | |
15503 | _ACEOF | |
15504 | rm -f conftest$ac_exeext | |
15505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15506 | (eval $ac_link) 2>&5 | |
15507 | ac_status=$? | |
15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15509 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15511 | (eval $ac_try) 2>&5 | |
15512 | ac_status=$? | |
15513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15514 | (exit $ac_status); }; }; then | |
15515 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15516 | else | |
15517 | echo "$as_me: program exited with status $ac_status" >&5 | |
15518 | echo "$as_me: failed program was:" >&5 | |
15519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15520 | ||
15521 | ( exit $ac_status ) | |
18c04407 RW |
15522 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15523 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18cbfd85 PB |
15524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
15525 | See \`config.log' for more details." >&5 | |
15526 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15527 | See \`config.log' for more details." >&2;} | |
18c04407 | 15528 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
15529 | fi |
15530 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15531 | fi | |
15532 | fi | |
15533 | rm -f conftest.val | |
15534 | else | |
15535 | ac_cv_sizeof_void_p=0 | |
15536 | fi | |
15537 | fi | |
15538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15539 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15540 | cat >>confdefs.h <<_ACEOF | |
15541 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15542 | _ACEOF | |
15543 | ||
15544 | ;; | |
15545 | esac | |
15546 | ||
15547 | # Lacking an uint64_t? Test size of long | |
15548 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
15549 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
15550 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15551 | if test "${ac_cv_type_long+set}" = set; then | |
15552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15553 | else | |
15554 | cat >conftest.$ac_ext <<_ACEOF | |
15555 | /* confdefs.h. */ | |
15556 | _ACEOF | |
15557 | cat confdefs.h >>conftest.$ac_ext | |
15558 | cat >>conftest.$ac_ext <<_ACEOF | |
15559 | /* end confdefs.h. */ | |
15560 | $ac_includes_default | |
15561 | int | |
15562 | main () | |
15563 | { | |
15564 | if ((long *) 0) | |
15565 | return 0; | |
15566 | if (sizeof (long)) | |
15567 | return 0; | |
15568 | ; | |
15569 | return 0; | |
15570 | } | |
15571 | _ACEOF | |
15572 | rm -f conftest.$ac_objext | |
15573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15574 | (eval $ac_compile) 2>conftest.er1 | |
15575 | ac_status=$? | |
15576 | grep -v '^ *+' conftest.er1 >conftest.err | |
15577 | rm -f conftest.er1 | |
15578 | cat conftest.err >&5 | |
15579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15580 | (exit $ac_status); } && | |
d349482e AT |
15581 | { ac_try='test -z "$ac_c_werror_flag" |
15582 | || test ! -s conftest.err' | |
18cbfd85 PB |
15583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15584 | (eval $ac_try) 2>&5 | |
15585 | ac_status=$? | |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); }; } && | |
15588 | { ac_try='test -s conftest.$ac_objext' | |
15589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15590 | (eval $ac_try) 2>&5 | |
15591 | ac_status=$? | |
15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15593 | (exit $ac_status); }; }; then | |
15594 | ac_cv_type_long=yes | |
15595 | else | |
15596 | echo "$as_me: failed program was:" >&5 | |
15597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15598 | ||
15599 | ac_cv_type_long=no | |
15600 | fi | |
15601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15602 | fi | |
15603 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15604 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15605 | ||
15606 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15607 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15608 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15610 | else | |
15611 | if test "$ac_cv_type_long" = yes; then | |
15612 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15613 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15614 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15615 | # This bug is HP SR number 8606223364. | |
15616 | if test "$cross_compiling" = yes; then | |
15617 | # Depending upon the size, compute the lo and hi bounds. | |
15618 | cat >conftest.$ac_ext <<_ACEOF | |
15619 | /* confdefs.h. */ | |
15620 | _ACEOF | |
15621 | cat confdefs.h >>conftest.$ac_ext | |
15622 | cat >>conftest.$ac_ext <<_ACEOF | |
15623 | /* end confdefs.h. */ | |
15624 | $ac_includes_default | |
15625 | int | |
15626 | main () | |
15627 | { | |
15628 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15629 | test_array [0] = 0 | |
15630 | ||
15631 | ; | |
15632 | return 0; | |
15633 | } | |
15634 | _ACEOF | |
15635 | rm -f conftest.$ac_objext | |
15636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15637 | (eval $ac_compile) 2>conftest.er1 | |
15638 | ac_status=$? | |
15639 | grep -v '^ *+' conftest.er1 >conftest.err | |
15640 | rm -f conftest.er1 | |
15641 | cat conftest.err >&5 | |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15643 | (exit $ac_status); } && | |
d349482e AT |
15644 | { ac_try='test -z "$ac_c_werror_flag" |
15645 | || test ! -s conftest.err' | |
18cbfd85 PB |
15646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15647 | (eval $ac_try) 2>&5 | |
15648 | ac_status=$? | |
15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15650 | (exit $ac_status); }; } && | |
15651 | { ac_try='test -s conftest.$ac_objext' | |
15652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15653 | (eval $ac_try) 2>&5 | |
15654 | ac_status=$? | |
15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15656 | (exit $ac_status); }; }; then | |
15657 | ac_lo=0 ac_mid=0 | |
15658 | while :; do | |
15659 | cat >conftest.$ac_ext <<_ACEOF | |
15660 | /* confdefs.h. */ | |
15661 | _ACEOF | |
15662 | cat confdefs.h >>conftest.$ac_ext | |
15663 | cat >>conftest.$ac_ext <<_ACEOF | |
15664 | /* end confdefs.h. */ | |
15665 | $ac_includes_default | |
15666 | int | |
15667 | main () | |
15668 | { | |
15669 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15670 | test_array [0] = 0 | |
15671 | ||
15672 | ; | |
15673 | return 0; | |
15674 | } | |
15675 | _ACEOF | |
15676 | rm -f conftest.$ac_objext | |
15677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15678 | (eval $ac_compile) 2>conftest.er1 | |
15679 | ac_status=$? | |
15680 | grep -v '^ *+' conftest.er1 >conftest.err | |
15681 | rm -f conftest.er1 | |
15682 | cat conftest.err >&5 | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); } && | |
d349482e AT |
15685 | { ac_try='test -z "$ac_c_werror_flag" |
15686 | || test ! -s conftest.err' | |
18cbfd85 PB |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15688 | (eval $ac_try) 2>&5 | |
15689 | ac_status=$? | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); }; } && | |
15692 | { ac_try='test -s conftest.$ac_objext' | |
15693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15694 | (eval $ac_try) 2>&5 | |
15695 | ac_status=$? | |
15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15697 | (exit $ac_status); }; }; then | |
15698 | ac_hi=$ac_mid; break | |
15699 | else | |
15700 | echo "$as_me: failed program was:" >&5 | |
15701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15702 | ||
15703 | ac_lo=`expr $ac_mid + 1` | |
15704 | if test $ac_lo -le $ac_mid; then | |
15705 | ac_lo= ac_hi= | |
15706 | break | |
15707 | fi | |
15708 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15709 | fi | |
15710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15711 | done | |
15712 | else | |
15713 | echo "$as_me: failed program was:" >&5 | |
15714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15715 | ||
15716 | cat >conftest.$ac_ext <<_ACEOF | |
15717 | /* confdefs.h. */ | |
15718 | _ACEOF | |
15719 | cat confdefs.h >>conftest.$ac_ext | |
15720 | cat >>conftest.$ac_ext <<_ACEOF | |
15721 | /* end confdefs.h. */ | |
15722 | $ac_includes_default | |
15723 | int | |
15724 | main () | |
15725 | { | |
15726 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15727 | test_array [0] = 0 | |
15728 | ||
15729 | ; | |
15730 | return 0; | |
15731 | } | |
15732 | _ACEOF | |
15733 | rm -f conftest.$ac_objext | |
15734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15735 | (eval $ac_compile) 2>conftest.er1 | |
15736 | ac_status=$? | |
15737 | grep -v '^ *+' conftest.er1 >conftest.err | |
15738 | rm -f conftest.er1 | |
15739 | cat conftest.err >&5 | |
15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15741 | (exit $ac_status); } && | |
d349482e AT |
15742 | { ac_try='test -z "$ac_c_werror_flag" |
15743 | || test ! -s conftest.err' | |
18cbfd85 PB |
15744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15745 | (eval $ac_try) 2>&5 | |
15746 | ac_status=$? | |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15748 | (exit $ac_status); }; } && | |
15749 | { ac_try='test -s conftest.$ac_objext' | |
15750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15751 | (eval $ac_try) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); }; }; then | |
15755 | ac_hi=-1 ac_mid=-1 | |
15756 | while :; do | |
15757 | cat >conftest.$ac_ext <<_ACEOF | |
15758 | /* confdefs.h. */ | |
15759 | _ACEOF | |
15760 | cat confdefs.h >>conftest.$ac_ext | |
15761 | cat >>conftest.$ac_ext <<_ACEOF | |
15762 | /* end confdefs.h. */ | |
15763 | $ac_includes_default | |
15764 | int | |
15765 | main () | |
15766 | { | |
15767 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15768 | test_array [0] = 0 | |
15769 | ||
15770 | ; | |
15771 | return 0; | |
15772 | } | |
15773 | _ACEOF | |
15774 | rm -f conftest.$ac_objext | |
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15776 | (eval $ac_compile) 2>conftest.er1 | |
15777 | ac_status=$? | |
15778 | grep -v '^ *+' conftest.er1 >conftest.err | |
15779 | rm -f conftest.er1 | |
15780 | cat conftest.err >&5 | |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15782 | (exit $ac_status); } && | |
d349482e AT |
15783 | { ac_try='test -z "$ac_c_werror_flag" |
15784 | || test ! -s conftest.err' | |
18cbfd85 PB |
15785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15786 | (eval $ac_try) 2>&5 | |
15787 | ac_status=$? | |
15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15789 | (exit $ac_status); }; } && | |
15790 | { ac_try='test -s conftest.$ac_objext' | |
15791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15792 | (eval $ac_try) 2>&5 | |
15793 | ac_status=$? | |
15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15795 | (exit $ac_status); }; }; then | |
15796 | ac_lo=$ac_mid; break | |
15797 | else | |
15798 | echo "$as_me: failed program was:" >&5 | |
15799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15800 | ||
15801 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15802 | if test $ac_mid -le $ac_hi; then | |
15803 | ac_lo= ac_hi= | |
15804 | break | |
15805 | fi | |
15806 | ac_mid=`expr 2 '*' $ac_mid` | |
15807 | fi | |
15808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15809 | done | |
15810 | else | |
15811 | echo "$as_me: failed program was:" >&5 | |
15812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15813 | ||
15814 | ac_lo= ac_hi= | |
15815 | fi | |
15816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15817 | fi | |
15818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15819 | # Binary search between lo and hi bounds. | |
15820 | while test "x$ac_lo" != "x$ac_hi"; do | |
15821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15822 | cat >conftest.$ac_ext <<_ACEOF | |
15823 | /* confdefs.h. */ | |
15824 | _ACEOF | |
15825 | cat confdefs.h >>conftest.$ac_ext | |
15826 | cat >>conftest.$ac_ext <<_ACEOF | |
15827 | /* end confdefs.h. */ | |
15828 | $ac_includes_default | |
15829 | int | |
15830 | main () | |
15831 | { | |
15832 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15833 | test_array [0] = 0 | |
15834 | ||
15835 | ; | |
15836 | return 0; | |
15837 | } | |
15838 | _ACEOF | |
15839 | rm -f conftest.$ac_objext | |
15840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15841 | (eval $ac_compile) 2>conftest.er1 | |
15842 | ac_status=$? | |
15843 | grep -v '^ *+' conftest.er1 >conftest.err | |
15844 | rm -f conftest.er1 | |
15845 | cat conftest.err >&5 | |
15846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15847 | (exit $ac_status); } && | |
d349482e AT |
15848 | { ac_try='test -z "$ac_c_werror_flag" |
15849 | || test ! -s conftest.err' | |
18cbfd85 PB |
15850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15851 | (eval $ac_try) 2>&5 | |
15852 | ac_status=$? | |
15853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15854 | (exit $ac_status); }; } && | |
15855 | { ac_try='test -s conftest.$ac_objext' | |
15856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15857 | (eval $ac_try) 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); }; }; then | |
15861 | ac_hi=$ac_mid | |
15862 | else | |
15863 | echo "$as_me: failed program was:" >&5 | |
15864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15865 | ||
15866 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15867 | fi | |
15868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15869 | done | |
15870 | case $ac_lo in | |
15871 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18c04407 RW |
15872 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15873 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15874 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18cbfd85 PB |
15875 | See \`config.log' for more details." >&5 |
15876 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15877 | See \`config.log' for more details." >&2;} | |
18c04407 | 15878 | { (exit 1); exit 1; }; }; } ;; |
18cbfd85 PB |
15879 | esac |
15880 | else | |
15881 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
15882 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15883 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15884 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
15885 | See \`config.log' for more details." >&5 |
15886 | echo "$as_me: error: cannot run test program while cross compiling | |
15887 | See \`config.log' for more details." >&2;} | |
18c04407 | 15888 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
15889 | else |
15890 | cat >conftest.$ac_ext <<_ACEOF | |
15891 | /* confdefs.h. */ | |
15892 | _ACEOF | |
15893 | cat confdefs.h >>conftest.$ac_ext | |
15894 | cat >>conftest.$ac_ext <<_ACEOF | |
15895 | /* end confdefs.h. */ | |
15896 | $ac_includes_default | |
15897 | long longval () { return (long) (sizeof (long)); } | |
15898 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
15899 | #include <stdio.h> | |
15900 | #include <stdlib.h> | |
15901 | int | |
15902 | main () | |
15903 | { | |
15904 | ||
15905 | FILE *f = fopen ("conftest.val", "w"); | |
15906 | if (! f) | |
15907 | exit (1); | |
15908 | if (((long) (sizeof (long))) < 0) | |
15909 | { | |
15910 | long i = longval (); | |
15911 | if (i != ((long) (sizeof (long)))) | |
15912 | exit (1); | |
15913 | fprintf (f, "%ld\n", i); | |
15914 | } | |
15915 | else | |
15916 | { | |
15917 | unsigned long i = ulongval (); | |
15918 | if (i != ((long) (sizeof (long)))) | |
15919 | exit (1); | |
15920 | fprintf (f, "%lu\n", i); | |
15921 | } | |
15922 | exit (ferror (f) || fclose (f) != 0); | |
15923 | ||
15924 | ; | |
15925 | return 0; | |
15926 | } | |
15927 | _ACEOF | |
15928 | rm -f conftest$ac_exeext | |
15929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15930 | (eval $ac_link) 2>&5 | |
15931 | ac_status=$? | |
15932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15935 | (eval $ac_try) 2>&5 | |
15936 | ac_status=$? | |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15938 | (exit $ac_status); }; }; then | |
15939 | ac_cv_sizeof_long=`cat conftest.val` | |
15940 | else | |
15941 | echo "$as_me: program exited with status $ac_status" >&5 | |
15942 | echo "$as_me: failed program was:" >&5 | |
15943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15944 | ||
15945 | ( exit $ac_status ) | |
18c04407 RW |
15946 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15947 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18cbfd85 PB |
15948 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
15949 | See \`config.log' for more details." >&5 | |
15950 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15951 | See \`config.log' for more details." >&2;} | |
18c04407 | 15952 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
15953 | fi |
15954 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15955 | fi | |
15956 | fi | |
15957 | rm -f conftest.val | |
15958 | else | |
15959 | ac_cv_sizeof_long=0 | |
15960 | fi | |
15961 | fi | |
15962 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
15963 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15964 | cat >>confdefs.h <<_ACEOF | |
15965 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15966 | _ACEOF | |
15967 | ||
15968 | ;; | |
15969 | esac | |
15970 | ||
15971 | if test $acx_cv_header_stdint = stddef.h; then | |
15972 | # Lacking a good header? Test size of everything and deduce all types. | |
15973 | echo "$as_me:$LINENO: checking for int" >&5 | |
15974 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15975 | if test "${ac_cv_type_int+set}" = set; then | |
15976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15977 | else | |
15978 | cat >conftest.$ac_ext <<_ACEOF | |
15979 | /* confdefs.h. */ | |
15980 | _ACEOF | |
15981 | cat confdefs.h >>conftest.$ac_ext | |
15982 | cat >>conftest.$ac_ext <<_ACEOF | |
15983 | /* end confdefs.h. */ | |
15984 | $ac_includes_default | |
15985 | int | |
15986 | main () | |
15987 | { | |
15988 | if ((int *) 0) | |
15989 | return 0; | |
15990 | if (sizeof (int)) | |
15991 | return 0; | |
15992 | ; | |
15993 | return 0; | |
15994 | } | |
15995 | _ACEOF | |
15996 | rm -f conftest.$ac_objext | |
15997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15998 | (eval $ac_compile) 2>conftest.er1 | |
15999 | ac_status=$? | |
16000 | grep -v '^ *+' conftest.er1 >conftest.err | |
16001 | rm -f conftest.er1 | |
16002 | cat conftest.err >&5 | |
16003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16004 | (exit $ac_status); } && | |
d349482e AT |
16005 | { ac_try='test -z "$ac_c_werror_flag" |
16006 | || test ! -s conftest.err' | |
18cbfd85 PB |
16007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16008 | (eval $ac_try) 2>&5 | |
16009 | ac_status=$? | |
16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16011 | (exit $ac_status); }; } && | |
16012 | { ac_try='test -s conftest.$ac_objext' | |
16013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16014 | (eval $ac_try) 2>&5 | |
16015 | ac_status=$? | |
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16017 | (exit $ac_status); }; }; then | |
16018 | ac_cv_type_int=yes | |
16019 | else | |
16020 | echo "$as_me: failed program was:" >&5 | |
16021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16022 | ||
16023 | ac_cv_type_int=no | |
16024 | fi | |
16025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16026 | fi | |
16027 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16028 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16029 | ||
16030 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16031 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16032 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16034 | else | |
16035 | if test "$ac_cv_type_int" = yes; then | |
16036 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16037 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16038 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16039 | # This bug is HP SR number 8606223364. | |
16040 | if test "$cross_compiling" = yes; then | |
16041 | # Depending upon the size, compute the lo and hi bounds. | |
16042 | cat >conftest.$ac_ext <<_ACEOF | |
16043 | /* confdefs.h. */ | |
16044 | _ACEOF | |
16045 | cat confdefs.h >>conftest.$ac_ext | |
16046 | cat >>conftest.$ac_ext <<_ACEOF | |
16047 | /* end confdefs.h. */ | |
16048 | $ac_includes_default | |
16049 | int | |
16050 | main () | |
16051 | { | |
16052 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16053 | test_array [0] = 0 | |
16054 | ||
16055 | ; | |
16056 | return 0; | |
16057 | } | |
16058 | _ACEOF | |
16059 | rm -f conftest.$ac_objext | |
16060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16061 | (eval $ac_compile) 2>conftest.er1 | |
16062 | ac_status=$? | |
16063 | grep -v '^ *+' conftest.er1 >conftest.err | |
16064 | rm -f conftest.er1 | |
16065 | cat conftest.err >&5 | |
16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16067 | (exit $ac_status); } && | |
d349482e AT |
16068 | { ac_try='test -z "$ac_c_werror_flag" |
16069 | || test ! -s conftest.err' | |
18cbfd85 PB |
16070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16071 | (eval $ac_try) 2>&5 | |
16072 | ac_status=$? | |
16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16074 | (exit $ac_status); }; } && | |
16075 | { ac_try='test -s conftest.$ac_objext' | |
16076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16077 | (eval $ac_try) 2>&5 | |
16078 | ac_status=$? | |
16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16080 | (exit $ac_status); }; }; then | |
16081 | ac_lo=0 ac_mid=0 | |
16082 | while :; do | |
16083 | cat >conftest.$ac_ext <<_ACEOF | |
16084 | /* confdefs.h. */ | |
16085 | _ACEOF | |
16086 | cat confdefs.h >>conftest.$ac_ext | |
16087 | cat >>conftest.$ac_ext <<_ACEOF | |
16088 | /* end confdefs.h. */ | |
16089 | $ac_includes_default | |
16090 | int | |
16091 | main () | |
16092 | { | |
16093 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16094 | test_array [0] = 0 | |
16095 | ||
16096 | ; | |
16097 | return 0; | |
16098 | } | |
16099 | _ACEOF | |
16100 | rm -f conftest.$ac_objext | |
16101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16102 | (eval $ac_compile) 2>conftest.er1 | |
16103 | ac_status=$? | |
16104 | grep -v '^ *+' conftest.er1 >conftest.err | |
16105 | rm -f conftest.er1 | |
16106 | cat conftest.err >&5 | |
16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16108 | (exit $ac_status); } && | |
d349482e AT |
16109 | { ac_try='test -z "$ac_c_werror_flag" |
16110 | || test ! -s conftest.err' | |
18cbfd85 PB |
16111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16112 | (eval $ac_try) 2>&5 | |
16113 | ac_status=$? | |
16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16115 | (exit $ac_status); }; } && | |
16116 | { ac_try='test -s conftest.$ac_objext' | |
16117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16118 | (eval $ac_try) 2>&5 | |
16119 | ac_status=$? | |
16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16121 | (exit $ac_status); }; }; then | |
16122 | ac_hi=$ac_mid; break | |
16123 | else | |
16124 | echo "$as_me: failed program was:" >&5 | |
16125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16126 | ||
16127 | ac_lo=`expr $ac_mid + 1` | |
16128 | if test $ac_lo -le $ac_mid; then | |
16129 | ac_lo= ac_hi= | |
16130 | break | |
16131 | fi | |
16132 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16133 | fi | |
16134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16135 | done | |
16136 | else | |
16137 | echo "$as_me: failed program was:" >&5 | |
16138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16139 | ||
16140 | cat >conftest.$ac_ext <<_ACEOF | |
16141 | /* confdefs.h. */ | |
16142 | _ACEOF | |
16143 | cat confdefs.h >>conftest.$ac_ext | |
16144 | cat >>conftest.$ac_ext <<_ACEOF | |
16145 | /* end confdefs.h. */ | |
16146 | $ac_includes_default | |
16147 | int | |
16148 | main () | |
16149 | { | |
16150 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16151 | test_array [0] = 0 | |
16152 | ||
16153 | ; | |
16154 | return 0; | |
16155 | } | |
16156 | _ACEOF | |
16157 | rm -f conftest.$ac_objext | |
16158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16159 | (eval $ac_compile) 2>conftest.er1 | |
16160 | ac_status=$? | |
16161 | grep -v '^ *+' conftest.er1 >conftest.err | |
16162 | rm -f conftest.er1 | |
16163 | cat conftest.err >&5 | |
16164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16165 | (exit $ac_status); } && | |
d349482e AT |
16166 | { ac_try='test -z "$ac_c_werror_flag" |
16167 | || test ! -s conftest.err' | |
18cbfd85 PB |
16168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16169 | (eval $ac_try) 2>&5 | |
16170 | ac_status=$? | |
16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16172 | (exit $ac_status); }; } && | |
16173 | { ac_try='test -s conftest.$ac_objext' | |
16174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16175 | (eval $ac_try) 2>&5 | |
16176 | ac_status=$? | |
16177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16178 | (exit $ac_status); }; }; then | |
16179 | ac_hi=-1 ac_mid=-1 | |
16180 | while :; do | |
16181 | cat >conftest.$ac_ext <<_ACEOF | |
16182 | /* confdefs.h. */ | |
16183 | _ACEOF | |
16184 | cat confdefs.h >>conftest.$ac_ext | |
16185 | cat >>conftest.$ac_ext <<_ACEOF | |
16186 | /* end confdefs.h. */ | |
16187 | $ac_includes_default | |
16188 | int | |
16189 | main () | |
16190 | { | |
16191 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16192 | test_array [0] = 0 | |
16193 | ||
16194 | ; | |
16195 | return 0; | |
16196 | } | |
16197 | _ACEOF | |
16198 | rm -f conftest.$ac_objext | |
16199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16200 | (eval $ac_compile) 2>conftest.er1 | |
16201 | ac_status=$? | |
16202 | grep -v '^ *+' conftest.er1 >conftest.err | |
16203 | rm -f conftest.er1 | |
16204 | cat conftest.err >&5 | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); } && | |
d349482e AT |
16207 | { ac_try='test -z "$ac_c_werror_flag" |
16208 | || test ! -s conftest.err' | |
18cbfd85 PB |
16209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16210 | (eval $ac_try) 2>&5 | |
16211 | ac_status=$? | |
16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16213 | (exit $ac_status); }; } && | |
16214 | { ac_try='test -s conftest.$ac_objext' | |
16215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16216 | (eval $ac_try) 2>&5 | |
16217 | ac_status=$? | |
16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16219 | (exit $ac_status); }; }; then | |
16220 | ac_lo=$ac_mid; break | |
16221 | else | |
16222 | echo "$as_me: failed program was:" >&5 | |
16223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16224 | ||
16225 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16226 | if test $ac_mid -le $ac_hi; then | |
16227 | ac_lo= ac_hi= | |
16228 | break | |
16229 | fi | |
16230 | ac_mid=`expr 2 '*' $ac_mid` | |
16231 | fi | |
16232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16233 | done | |
16234 | else | |
16235 | echo "$as_me: failed program was:" >&5 | |
16236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16237 | ||
16238 | ac_lo= ac_hi= | |
16239 | fi | |
16240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16241 | fi | |
16242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16243 | # Binary search between lo and hi bounds. | |
16244 | while test "x$ac_lo" != "x$ac_hi"; do | |
16245 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16246 | cat >conftest.$ac_ext <<_ACEOF | |
16247 | /* confdefs.h. */ | |
16248 | _ACEOF | |
16249 | cat confdefs.h >>conftest.$ac_ext | |
16250 | cat >>conftest.$ac_ext <<_ACEOF | |
16251 | /* end confdefs.h. */ | |
16252 | $ac_includes_default | |
16253 | int | |
16254 | main () | |
16255 | { | |
16256 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16257 | test_array [0] = 0 | |
16258 | ||
16259 | ; | |
16260 | return 0; | |
16261 | } | |
16262 | _ACEOF | |
16263 | rm -f conftest.$ac_objext | |
16264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16265 | (eval $ac_compile) 2>conftest.er1 | |
16266 | ac_status=$? | |
16267 | grep -v '^ *+' conftest.er1 >conftest.err | |
16268 | rm -f conftest.er1 | |
16269 | cat conftest.err >&5 | |
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16271 | (exit $ac_status); } && | |
d349482e AT |
16272 | { ac_try='test -z "$ac_c_werror_flag" |
16273 | || test ! -s conftest.err' | |
18cbfd85 PB |
16274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16275 | (eval $ac_try) 2>&5 | |
16276 | ac_status=$? | |
16277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16278 | (exit $ac_status); }; } && | |
16279 | { ac_try='test -s conftest.$ac_objext' | |
16280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16281 | (eval $ac_try) 2>&5 | |
16282 | ac_status=$? | |
16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16284 | (exit $ac_status); }; }; then | |
16285 | ac_hi=$ac_mid | |
16286 | else | |
16287 | echo "$as_me: failed program was:" >&5 | |
16288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16289 | ||
16290 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16291 | fi | |
16292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16293 | done | |
16294 | case $ac_lo in | |
16295 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18c04407 RW |
16296 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16297 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16298 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18cbfd85 PB |
16299 | See \`config.log' for more details." >&5 |
16300 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16301 | See \`config.log' for more details." >&2;} | |
18c04407 | 16302 | { (exit 1); exit 1; }; }; } ;; |
18cbfd85 PB |
16303 | esac |
16304 | else | |
16305 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
16306 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16307 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16308 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
16309 | See \`config.log' for more details." >&5 |
16310 | echo "$as_me: error: cannot run test program while cross compiling | |
16311 | See \`config.log' for more details." >&2;} | |
18c04407 | 16312 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
16313 | else |
16314 | cat >conftest.$ac_ext <<_ACEOF | |
16315 | /* confdefs.h. */ | |
16316 | _ACEOF | |
16317 | cat confdefs.h >>conftest.$ac_ext | |
16318 | cat >>conftest.$ac_ext <<_ACEOF | |
16319 | /* end confdefs.h. */ | |
16320 | $ac_includes_default | |
16321 | long longval () { return (long) (sizeof (int)); } | |
16322 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16323 | #include <stdio.h> | |
16324 | #include <stdlib.h> | |
16325 | int | |
16326 | main () | |
16327 | { | |
16328 | ||
16329 | FILE *f = fopen ("conftest.val", "w"); | |
16330 | if (! f) | |
16331 | exit (1); | |
16332 | if (((long) (sizeof (int))) < 0) | |
16333 | { | |
16334 | long i = longval (); | |
16335 | if (i != ((long) (sizeof (int)))) | |
16336 | exit (1); | |
16337 | fprintf (f, "%ld\n", i); | |
16338 | } | |
16339 | else | |
16340 | { | |
16341 | unsigned long i = ulongval (); | |
16342 | if (i != ((long) (sizeof (int)))) | |
16343 | exit (1); | |
16344 | fprintf (f, "%lu\n", i); | |
16345 | } | |
16346 | exit (ferror (f) || fclose (f) != 0); | |
16347 | ||
16348 | ; | |
16349 | return 0; | |
16350 | } | |
16351 | _ACEOF | |
16352 | rm -f conftest$ac_exeext | |
16353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16354 | (eval $ac_link) 2>&5 | |
16355 | ac_status=$? | |
16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16359 | (eval $ac_try) 2>&5 | |
16360 | ac_status=$? | |
16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16362 | (exit $ac_status); }; }; then | |
16363 | ac_cv_sizeof_int=`cat conftest.val` | |
16364 | else | |
16365 | echo "$as_me: program exited with status $ac_status" >&5 | |
16366 | echo "$as_me: failed program was:" >&5 | |
16367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16368 | ||
16369 | ( exit $ac_status ) | |
18c04407 RW |
16370 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16371 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18cbfd85 PB |
16372 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
16373 | See \`config.log' for more details." >&5 | |
16374 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16375 | See \`config.log' for more details." >&2;} | |
18c04407 | 16376 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
16377 | fi |
16378 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16379 | fi | |
16380 | fi | |
16381 | rm -f conftest.val | |
16382 | else | |
16383 | ac_cv_sizeof_int=0 | |
16384 | fi | |
16385 | fi | |
16386 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16387 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16388 | cat >>confdefs.h <<_ACEOF | |
16389 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16390 | _ACEOF | |
16391 | ||
16392 | ||
16393 | echo "$as_me:$LINENO: checking for short" >&5 | |
16394 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16395 | if test "${ac_cv_type_short+set}" = set; then | |
16396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16397 | else | |
16398 | cat >conftest.$ac_ext <<_ACEOF | |
16399 | /* confdefs.h. */ | |
16400 | _ACEOF | |
16401 | cat confdefs.h >>conftest.$ac_ext | |
16402 | cat >>conftest.$ac_ext <<_ACEOF | |
16403 | /* end confdefs.h. */ | |
16404 | $ac_includes_default | |
16405 | int | |
16406 | main () | |
16407 | { | |
16408 | if ((short *) 0) | |
16409 | return 0; | |
16410 | if (sizeof (short)) | |
16411 | return 0; | |
16412 | ; | |
16413 | return 0; | |
16414 | } | |
16415 | _ACEOF | |
16416 | rm -f conftest.$ac_objext | |
16417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16418 | (eval $ac_compile) 2>conftest.er1 | |
16419 | ac_status=$? | |
16420 | grep -v '^ *+' conftest.er1 >conftest.err | |
16421 | rm -f conftest.er1 | |
16422 | cat conftest.err >&5 | |
16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16424 | (exit $ac_status); } && | |
d349482e AT |
16425 | { ac_try='test -z "$ac_c_werror_flag" |
16426 | || test ! -s conftest.err' | |
18cbfd85 PB |
16427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16428 | (eval $ac_try) 2>&5 | |
16429 | ac_status=$? | |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16431 | (exit $ac_status); }; } && | |
16432 | { ac_try='test -s conftest.$ac_objext' | |
16433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16434 | (eval $ac_try) 2>&5 | |
16435 | ac_status=$? | |
16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16437 | (exit $ac_status); }; }; then | |
16438 | ac_cv_type_short=yes | |
16439 | else | |
16440 | echo "$as_me: failed program was:" >&5 | |
16441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16442 | ||
16443 | ac_cv_type_short=no | |
16444 | fi | |
16445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16446 | fi | |
16447 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16448 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16449 | ||
16450 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16451 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16452 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16454 | else | |
16455 | if test "$ac_cv_type_short" = yes; then | |
16456 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16457 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16458 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16459 | # This bug is HP SR number 8606223364. | |
16460 | if test "$cross_compiling" = yes; then | |
16461 | # Depending upon the size, compute the lo and hi bounds. | |
16462 | cat >conftest.$ac_ext <<_ACEOF | |
16463 | /* confdefs.h. */ | |
16464 | _ACEOF | |
16465 | cat confdefs.h >>conftest.$ac_ext | |
16466 | cat >>conftest.$ac_ext <<_ACEOF | |
16467 | /* end confdefs.h. */ | |
16468 | $ac_includes_default | |
16469 | int | |
16470 | main () | |
16471 | { | |
16472 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16473 | test_array [0] = 0 | |
16474 | ||
16475 | ; | |
16476 | return 0; | |
16477 | } | |
16478 | _ACEOF | |
16479 | rm -f conftest.$ac_objext | |
16480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16481 | (eval $ac_compile) 2>conftest.er1 | |
16482 | ac_status=$? | |
16483 | grep -v '^ *+' conftest.er1 >conftest.err | |
16484 | rm -f conftest.er1 | |
16485 | cat conftest.err >&5 | |
16486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16487 | (exit $ac_status); } && | |
d349482e AT |
16488 | { ac_try='test -z "$ac_c_werror_flag" |
16489 | || test ! -s conftest.err' | |
18cbfd85 PB |
16490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16491 | (eval $ac_try) 2>&5 | |
16492 | ac_status=$? | |
16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16494 | (exit $ac_status); }; } && | |
16495 | { ac_try='test -s conftest.$ac_objext' | |
16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16497 | (eval $ac_try) 2>&5 | |
16498 | ac_status=$? | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); }; }; then | |
16501 | ac_lo=0 ac_mid=0 | |
16502 | while :; do | |
16503 | cat >conftest.$ac_ext <<_ACEOF | |
16504 | /* confdefs.h. */ | |
16505 | _ACEOF | |
16506 | cat confdefs.h >>conftest.$ac_ext | |
16507 | cat >>conftest.$ac_ext <<_ACEOF | |
16508 | /* end confdefs.h. */ | |
16509 | $ac_includes_default | |
16510 | int | |
16511 | main () | |
16512 | { | |
16513 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16514 | test_array [0] = 0 | |
16515 | ||
16516 | ; | |
16517 | return 0; | |
16518 | } | |
16519 | _ACEOF | |
16520 | rm -f conftest.$ac_objext | |
16521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16522 | (eval $ac_compile) 2>conftest.er1 | |
16523 | ac_status=$? | |
16524 | grep -v '^ *+' conftest.er1 >conftest.err | |
16525 | rm -f conftest.er1 | |
16526 | cat conftest.err >&5 | |
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16528 | (exit $ac_status); } && | |
d349482e AT |
16529 | { ac_try='test -z "$ac_c_werror_flag" |
16530 | || test ! -s conftest.err' | |
18cbfd85 PB |
16531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16532 | (eval $ac_try) 2>&5 | |
16533 | ac_status=$? | |
16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16535 | (exit $ac_status); }; } && | |
16536 | { ac_try='test -s conftest.$ac_objext' | |
16537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16538 | (eval $ac_try) 2>&5 | |
16539 | ac_status=$? | |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16541 | (exit $ac_status); }; }; then | |
16542 | ac_hi=$ac_mid; break | |
16543 | else | |
16544 | echo "$as_me: failed program was:" >&5 | |
16545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16546 | ||
16547 | ac_lo=`expr $ac_mid + 1` | |
16548 | if test $ac_lo -le $ac_mid; then | |
16549 | ac_lo= ac_hi= | |
16550 | break | |
16551 | fi | |
16552 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16553 | fi | |
16554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16555 | done | |
16556 | else | |
16557 | echo "$as_me: failed program was:" >&5 | |
16558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16559 | ||
16560 | cat >conftest.$ac_ext <<_ACEOF | |
16561 | /* confdefs.h. */ | |
16562 | _ACEOF | |
16563 | cat confdefs.h >>conftest.$ac_ext | |
16564 | cat >>conftest.$ac_ext <<_ACEOF | |
16565 | /* end confdefs.h. */ | |
16566 | $ac_includes_default | |
16567 | int | |
16568 | main () | |
16569 | { | |
16570 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16571 | test_array [0] = 0 | |
16572 | ||
16573 | ; | |
16574 | return 0; | |
16575 | } | |
16576 | _ACEOF | |
16577 | rm -f conftest.$ac_objext | |
16578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16579 | (eval $ac_compile) 2>conftest.er1 | |
16580 | ac_status=$? | |
16581 | grep -v '^ *+' conftest.er1 >conftest.err | |
16582 | rm -f conftest.er1 | |
16583 | cat conftest.err >&5 | |
16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16585 | (exit $ac_status); } && | |
d349482e AT |
16586 | { ac_try='test -z "$ac_c_werror_flag" |
16587 | || test ! -s conftest.err' | |
18cbfd85 PB |
16588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16589 | (eval $ac_try) 2>&5 | |
16590 | ac_status=$? | |
16591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16592 | (exit $ac_status); }; } && | |
16593 | { ac_try='test -s conftest.$ac_objext' | |
16594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16595 | (eval $ac_try) 2>&5 | |
16596 | ac_status=$? | |
16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16598 | (exit $ac_status); }; }; then | |
16599 | ac_hi=-1 ac_mid=-1 | |
16600 | while :; do | |
16601 | cat >conftest.$ac_ext <<_ACEOF | |
16602 | /* confdefs.h. */ | |
16603 | _ACEOF | |
16604 | cat confdefs.h >>conftest.$ac_ext | |
16605 | cat >>conftest.$ac_ext <<_ACEOF | |
16606 | /* end confdefs.h. */ | |
16607 | $ac_includes_default | |
16608 | int | |
16609 | main () | |
16610 | { | |
16611 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16612 | test_array [0] = 0 | |
16613 | ||
16614 | ; | |
16615 | return 0; | |
16616 | } | |
16617 | _ACEOF | |
16618 | rm -f conftest.$ac_objext | |
16619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16620 | (eval $ac_compile) 2>conftest.er1 | |
16621 | ac_status=$? | |
16622 | grep -v '^ *+' conftest.er1 >conftest.err | |
16623 | rm -f conftest.er1 | |
16624 | cat conftest.err >&5 | |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16626 | (exit $ac_status); } && | |
d349482e AT |
16627 | { ac_try='test -z "$ac_c_werror_flag" |
16628 | || test ! -s conftest.err' | |
18cbfd85 PB |
16629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16630 | (eval $ac_try) 2>&5 | |
16631 | ac_status=$? | |
16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16633 | (exit $ac_status); }; } && | |
16634 | { ac_try='test -s conftest.$ac_objext' | |
16635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16636 | (eval $ac_try) 2>&5 | |
16637 | ac_status=$? | |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16639 | (exit $ac_status); }; }; then | |
16640 | ac_lo=$ac_mid; break | |
16641 | else | |
16642 | echo "$as_me: failed program was:" >&5 | |
16643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16644 | ||
16645 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16646 | if test $ac_mid -le $ac_hi; then | |
16647 | ac_lo= ac_hi= | |
16648 | break | |
16649 | fi | |
16650 | ac_mid=`expr 2 '*' $ac_mid` | |
16651 | fi | |
16652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16653 | done | |
16654 | else | |
16655 | echo "$as_me: failed program was:" >&5 | |
16656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16657 | ||
16658 | ac_lo= ac_hi= | |
16659 | fi | |
16660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16661 | fi | |
16662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16663 | # Binary search between lo and hi bounds. | |
16664 | while test "x$ac_lo" != "x$ac_hi"; do | |
16665 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16666 | cat >conftest.$ac_ext <<_ACEOF | |
16667 | /* confdefs.h. */ | |
16668 | _ACEOF | |
16669 | cat confdefs.h >>conftest.$ac_ext | |
16670 | cat >>conftest.$ac_ext <<_ACEOF | |
16671 | /* end confdefs.h. */ | |
16672 | $ac_includes_default | |
16673 | int | |
16674 | main () | |
16675 | { | |
16676 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16677 | test_array [0] = 0 | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | _ACEOF | |
16683 | rm -f conftest.$ac_objext | |
16684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16685 | (eval $ac_compile) 2>conftest.er1 | |
16686 | ac_status=$? | |
16687 | grep -v '^ *+' conftest.er1 >conftest.err | |
16688 | rm -f conftest.er1 | |
16689 | cat conftest.err >&5 | |
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16691 | (exit $ac_status); } && | |
d349482e AT |
16692 | { ac_try='test -z "$ac_c_werror_flag" |
16693 | || test ! -s conftest.err' | |
18cbfd85 PB |
16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16698 | (exit $ac_status); }; } && | |
16699 | { ac_try='test -s conftest.$ac_objext' | |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; }; then | |
16705 | ac_hi=$ac_mid | |
16706 | else | |
16707 | echo "$as_me: failed program was:" >&5 | |
16708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16709 | ||
16710 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16711 | fi | |
16712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16713 | done | |
16714 | case $ac_lo in | |
16715 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18c04407 RW |
16716 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16717 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16718 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18cbfd85 PB |
16719 | See \`config.log' for more details." >&5 |
16720 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16721 | See \`config.log' for more details." >&2;} | |
18c04407 | 16722 | { (exit 1); exit 1; }; }; } ;; |
18cbfd85 PB |
16723 | esac |
16724 | else | |
16725 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
16726 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16727 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16728 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
16729 | See \`config.log' for more details." >&5 |
16730 | echo "$as_me: error: cannot run test program while cross compiling | |
16731 | See \`config.log' for more details." >&2;} | |
18c04407 | 16732 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
16733 | else |
16734 | cat >conftest.$ac_ext <<_ACEOF | |
16735 | /* confdefs.h. */ | |
16736 | _ACEOF | |
16737 | cat confdefs.h >>conftest.$ac_ext | |
16738 | cat >>conftest.$ac_ext <<_ACEOF | |
16739 | /* end confdefs.h. */ | |
16740 | $ac_includes_default | |
16741 | long longval () { return (long) (sizeof (short)); } | |
16742 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16743 | #include <stdio.h> | |
16744 | #include <stdlib.h> | |
16745 | int | |
16746 | main () | |
16747 | { | |
16748 | ||
16749 | FILE *f = fopen ("conftest.val", "w"); | |
16750 | if (! f) | |
16751 | exit (1); | |
16752 | if (((long) (sizeof (short))) < 0) | |
16753 | { | |
16754 | long i = longval (); | |
16755 | if (i != ((long) (sizeof (short)))) | |
16756 | exit (1); | |
16757 | fprintf (f, "%ld\n", i); | |
16758 | } | |
16759 | else | |
16760 | { | |
16761 | unsigned long i = ulongval (); | |
16762 | if (i != ((long) (sizeof (short)))) | |
16763 | exit (1); | |
16764 | fprintf (f, "%lu\n", i); | |
16765 | } | |
16766 | exit (ferror (f) || fclose (f) != 0); | |
16767 | ||
16768 | ; | |
16769 | return 0; | |
16770 | } | |
16771 | _ACEOF | |
16772 | rm -f conftest$ac_exeext | |
16773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16774 | (eval $ac_link) 2>&5 | |
16775 | ac_status=$? | |
16776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; }; then | |
16783 | ac_cv_sizeof_short=`cat conftest.val` | |
16784 | else | |
16785 | echo "$as_me: program exited with status $ac_status" >&5 | |
16786 | echo "$as_me: failed program was:" >&5 | |
16787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16788 | ||
16789 | ( exit $ac_status ) | |
18c04407 RW |
16790 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16791 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18cbfd85 PB |
16792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
16793 | See \`config.log' for more details." >&5 | |
16794 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16795 | See \`config.log' for more details." >&2;} | |
18c04407 | 16796 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
16797 | fi |
16798 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16799 | fi | |
16800 | fi | |
16801 | rm -f conftest.val | |
16802 | else | |
16803 | ac_cv_sizeof_short=0 | |
16804 | fi | |
16805 | fi | |
16806 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16807 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16808 | cat >>confdefs.h <<_ACEOF | |
16809 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16810 | _ACEOF | |
16811 | ||
16812 | ||
16813 | echo "$as_me:$LINENO: checking for char" >&5 | |
16814 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16815 | if test "${ac_cv_type_char+set}" = set; then | |
16816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16817 | else | |
16818 | cat >conftest.$ac_ext <<_ACEOF | |
16819 | /* confdefs.h. */ | |
16820 | _ACEOF | |
16821 | cat confdefs.h >>conftest.$ac_ext | |
16822 | cat >>conftest.$ac_ext <<_ACEOF | |
16823 | /* end confdefs.h. */ | |
16824 | $ac_includes_default | |
16825 | int | |
16826 | main () | |
16827 | { | |
16828 | if ((char *) 0) | |
16829 | return 0; | |
16830 | if (sizeof (char)) | |
16831 | return 0; | |
16832 | ; | |
16833 | return 0; | |
16834 | } | |
16835 | _ACEOF | |
16836 | rm -f conftest.$ac_objext | |
16837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16838 | (eval $ac_compile) 2>conftest.er1 | |
16839 | ac_status=$? | |
16840 | grep -v '^ *+' conftest.er1 >conftest.err | |
16841 | rm -f conftest.er1 | |
16842 | cat conftest.err >&5 | |
16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16844 | (exit $ac_status); } && | |
d349482e AT |
16845 | { ac_try='test -z "$ac_c_werror_flag" |
16846 | || test ! -s conftest.err' | |
18cbfd85 PB |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; } && | |
16852 | { ac_try='test -s conftest.$ac_objext' | |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; }; then | |
16858 | ac_cv_type_char=yes | |
16859 | else | |
16860 | echo "$as_me: failed program was:" >&5 | |
16861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16862 | ||
16863 | ac_cv_type_char=no | |
16864 | fi | |
16865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16866 | fi | |
16867 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16868 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16869 | ||
16870 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16871 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16872 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16874 | else | |
16875 | if test "$ac_cv_type_char" = yes; then | |
16876 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16877 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16878 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16879 | # This bug is HP SR number 8606223364. | |
16880 | if test "$cross_compiling" = yes; then | |
16881 | # Depending upon the size, compute the lo and hi bounds. | |
16882 | cat >conftest.$ac_ext <<_ACEOF | |
16883 | /* confdefs.h. */ | |
16884 | _ACEOF | |
16885 | cat confdefs.h >>conftest.$ac_ext | |
16886 | cat >>conftest.$ac_ext <<_ACEOF | |
16887 | /* end confdefs.h. */ | |
16888 | $ac_includes_default | |
16889 | int | |
16890 | main () | |
16891 | { | |
16892 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16893 | test_array [0] = 0 | |
16894 | ||
16895 | ; | |
16896 | return 0; | |
16897 | } | |
16898 | _ACEOF | |
16899 | rm -f conftest.$ac_objext | |
16900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16901 | (eval $ac_compile) 2>conftest.er1 | |
16902 | ac_status=$? | |
16903 | grep -v '^ *+' conftest.er1 >conftest.err | |
16904 | rm -f conftest.er1 | |
16905 | cat conftest.err >&5 | |
16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16907 | (exit $ac_status); } && | |
d349482e AT |
16908 | { ac_try='test -z "$ac_c_werror_flag" |
16909 | || test ! -s conftest.err' | |
18cbfd85 PB |
16910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16911 | (eval $ac_try) 2>&5 | |
16912 | ac_status=$? | |
16913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16914 | (exit $ac_status); }; } && | |
16915 | { ac_try='test -s conftest.$ac_objext' | |
16916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16917 | (eval $ac_try) 2>&5 | |
16918 | ac_status=$? | |
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16920 | (exit $ac_status); }; }; then | |
16921 | ac_lo=0 ac_mid=0 | |
16922 | while :; do | |
16923 | cat >conftest.$ac_ext <<_ACEOF | |
16924 | /* confdefs.h. */ | |
16925 | _ACEOF | |
16926 | cat confdefs.h >>conftest.$ac_ext | |
16927 | cat >>conftest.$ac_ext <<_ACEOF | |
16928 | /* end confdefs.h. */ | |
16929 | $ac_includes_default | |
16930 | int | |
16931 | main () | |
16932 | { | |
16933 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16934 | test_array [0] = 0 | |
16935 | ||
16936 | ; | |
16937 | return 0; | |
16938 | } | |
16939 | _ACEOF | |
16940 | rm -f conftest.$ac_objext | |
16941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16942 | (eval $ac_compile) 2>conftest.er1 | |
16943 | ac_status=$? | |
16944 | grep -v '^ *+' conftest.er1 >conftest.err | |
16945 | rm -f conftest.er1 | |
16946 | cat conftest.err >&5 | |
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16948 | (exit $ac_status); } && | |
d349482e AT |
16949 | { ac_try='test -z "$ac_c_werror_flag" |
16950 | || test ! -s conftest.err' | |
18cbfd85 PB |
16951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16952 | (eval $ac_try) 2>&5 | |
16953 | ac_status=$? | |
16954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16955 | (exit $ac_status); }; } && | |
16956 | { ac_try='test -s conftest.$ac_objext' | |
16957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16958 | (eval $ac_try) 2>&5 | |
16959 | ac_status=$? | |
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16961 | (exit $ac_status); }; }; then | |
16962 | ac_hi=$ac_mid; break | |
16963 | else | |
16964 | echo "$as_me: failed program was:" >&5 | |
16965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16966 | ||
16967 | ac_lo=`expr $ac_mid + 1` | |
16968 | if test $ac_lo -le $ac_mid; then | |
16969 | ac_lo= ac_hi= | |
16970 | break | |
16971 | fi | |
16972 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16973 | fi | |
16974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16975 | done | |
16976 | else | |
16977 | echo "$as_me: failed program was:" >&5 | |
16978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16979 | ||
16980 | cat >conftest.$ac_ext <<_ACEOF | |
16981 | /* confdefs.h. */ | |
16982 | _ACEOF | |
16983 | cat confdefs.h >>conftest.$ac_ext | |
16984 | cat >>conftest.$ac_ext <<_ACEOF | |
16985 | /* end confdefs.h. */ | |
16986 | $ac_includes_default | |
16987 | int | |
16988 | main () | |
16989 | { | |
16990 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16991 | test_array [0] = 0 | |
16992 | ||
16993 | ; | |
16994 | return 0; | |
16995 | } | |
16996 | _ACEOF | |
16997 | rm -f conftest.$ac_objext | |
16998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16999 | (eval $ac_compile) 2>conftest.er1 | |
17000 | ac_status=$? | |
17001 | grep -v '^ *+' conftest.er1 >conftest.err | |
17002 | rm -f conftest.er1 | |
17003 | cat conftest.err >&5 | |
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17005 | (exit $ac_status); } && | |
d349482e AT |
17006 | { ac_try='test -z "$ac_c_werror_flag" |
17007 | || test ! -s conftest.err' | |
18cbfd85 PB |
17008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17009 | (eval $ac_try) 2>&5 | |
17010 | ac_status=$? | |
17011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17012 | (exit $ac_status); }; } && | |
17013 | { ac_try='test -s conftest.$ac_objext' | |
17014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17015 | (eval $ac_try) 2>&5 | |
17016 | ac_status=$? | |
17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17018 | (exit $ac_status); }; }; then | |
17019 | ac_hi=-1 ac_mid=-1 | |
17020 | while :; do | |
17021 | cat >conftest.$ac_ext <<_ACEOF | |
17022 | /* confdefs.h. */ | |
17023 | _ACEOF | |
17024 | cat confdefs.h >>conftest.$ac_ext | |
17025 | cat >>conftest.$ac_ext <<_ACEOF | |
17026 | /* end confdefs.h. */ | |
17027 | $ac_includes_default | |
17028 | int | |
17029 | main () | |
17030 | { | |
17031 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17032 | test_array [0] = 0 | |
17033 | ||
17034 | ; | |
17035 | return 0; | |
17036 | } | |
17037 | _ACEOF | |
17038 | rm -f conftest.$ac_objext | |
17039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17040 | (eval $ac_compile) 2>conftest.er1 | |
17041 | ac_status=$? | |
17042 | grep -v '^ *+' conftest.er1 >conftest.err | |
17043 | rm -f conftest.er1 | |
17044 | cat conftest.err >&5 | |
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17046 | (exit $ac_status); } && | |
d349482e AT |
17047 | { ac_try='test -z "$ac_c_werror_flag" |
17048 | || test ! -s conftest.err' | |
18cbfd85 PB |
17049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17050 | (eval $ac_try) 2>&5 | |
17051 | ac_status=$? | |
17052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17053 | (exit $ac_status); }; } && | |
17054 | { ac_try='test -s conftest.$ac_objext' | |
17055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17056 | (eval $ac_try) 2>&5 | |
17057 | ac_status=$? | |
17058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17059 | (exit $ac_status); }; }; then | |
17060 | ac_lo=$ac_mid; break | |
17061 | else | |
17062 | echo "$as_me: failed program was:" >&5 | |
17063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17064 | ||
17065 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
17066 | if test $ac_mid -le $ac_hi; then | |
17067 | ac_lo= ac_hi= | |
17068 | break | |
17069 | fi | |
17070 | ac_mid=`expr 2 '*' $ac_mid` | |
17071 | fi | |
17072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17073 | done | |
17074 | else | |
17075 | echo "$as_me: failed program was:" >&5 | |
17076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17077 | ||
17078 | ac_lo= ac_hi= | |
17079 | fi | |
17080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17081 | fi | |
17082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17083 | # Binary search between lo and hi bounds. | |
17084 | while test "x$ac_lo" != "x$ac_hi"; do | |
17085 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17086 | cat >conftest.$ac_ext <<_ACEOF | |
17087 | /* confdefs.h. */ | |
17088 | _ACEOF | |
17089 | cat confdefs.h >>conftest.$ac_ext | |
17090 | cat >>conftest.$ac_ext <<_ACEOF | |
17091 | /* end confdefs.h. */ | |
17092 | $ac_includes_default | |
17093 | int | |
17094 | main () | |
17095 | { | |
17096 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17097 | test_array [0] = 0 | |
17098 | ||
17099 | ; | |
17100 | return 0; | |
17101 | } | |
17102 | _ACEOF | |
17103 | rm -f conftest.$ac_objext | |
17104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17105 | (eval $ac_compile) 2>conftest.er1 | |
17106 | ac_status=$? | |
17107 | grep -v '^ *+' conftest.er1 >conftest.err | |
17108 | rm -f conftest.er1 | |
17109 | cat conftest.err >&5 | |
17110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17111 | (exit $ac_status); } && | |
d349482e AT |
17112 | { ac_try='test -z "$ac_c_werror_flag" |
17113 | || test ! -s conftest.err' | |
18cbfd85 PB |
17114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17115 | (eval $ac_try) 2>&5 | |
17116 | ac_status=$? | |
17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17118 | (exit $ac_status); }; } && | |
17119 | { ac_try='test -s conftest.$ac_objext' | |
17120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17124 | (exit $ac_status); }; }; then | |
17125 | ac_hi=$ac_mid | |
17126 | else | |
17127 | echo "$as_me: failed program was:" >&5 | |
17128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17129 | ||
17130 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17131 | fi | |
17132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17133 | done | |
17134 | case $ac_lo in | |
17135 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
18c04407 RW |
17136 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17137 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17138 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18cbfd85 PB |
17139 | See \`config.log' for more details." >&5 |
17140 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17141 | See \`config.log' for more details." >&2;} | |
18c04407 | 17142 | { (exit 1); exit 1; }; }; } ;; |
18cbfd85 PB |
17143 | esac |
17144 | else | |
17145 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
17146 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17147 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17148 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
17149 | See \`config.log' for more details." >&5 |
17150 | echo "$as_me: error: cannot run test program while cross compiling | |
17151 | See \`config.log' for more details." >&2;} | |
18c04407 | 17152 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
17153 | else |
17154 | cat >conftest.$ac_ext <<_ACEOF | |
17155 | /* confdefs.h. */ | |
17156 | _ACEOF | |
17157 | cat confdefs.h >>conftest.$ac_ext | |
17158 | cat >>conftest.$ac_ext <<_ACEOF | |
17159 | /* end confdefs.h. */ | |
17160 | $ac_includes_default | |
17161 | long longval () { return (long) (sizeof (char)); } | |
17162 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17163 | #include <stdio.h> | |
17164 | #include <stdlib.h> | |
17165 | int | |
17166 | main () | |
17167 | { | |
17168 | ||
17169 | FILE *f = fopen ("conftest.val", "w"); | |
17170 | if (! f) | |
17171 | exit (1); | |
17172 | if (((long) (sizeof (char))) < 0) | |
17173 | { | |
17174 | long i = longval (); | |
17175 | if (i != ((long) (sizeof (char)))) | |
17176 | exit (1); | |
17177 | fprintf (f, "%ld\n", i); | |
17178 | } | |
17179 | else | |
17180 | { | |
17181 | unsigned long i = ulongval (); | |
17182 | if (i != ((long) (sizeof (char)))) | |
17183 | exit (1); | |
17184 | fprintf (f, "%lu\n", i); | |
17185 | } | |
17186 | exit (ferror (f) || fclose (f) != 0); | |
17187 | ||
17188 | ; | |
17189 | return 0; | |
17190 | } | |
17191 | _ACEOF | |
17192 | rm -f conftest$ac_exeext | |
17193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17194 | (eval $ac_link) 2>&5 | |
17195 | ac_status=$? | |
17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; }; then | |
17203 | ac_cv_sizeof_char=`cat conftest.val` | |
17204 | else | |
17205 | echo "$as_me: program exited with status $ac_status" >&5 | |
17206 | echo "$as_me: failed program was:" >&5 | |
17207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17208 | ||
17209 | ( exit $ac_status ) | |
18c04407 RW |
17210 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17211 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18cbfd85 PB |
17212 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
17213 | See \`config.log' for more details." >&5 | |
17214 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17215 | See \`config.log' for more details." >&2;} | |
18c04407 | 17216 | { (exit 1); exit 1; }; }; } |
18cbfd85 PB |
17217 | fi |
17218 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17219 | fi | |
17220 | fi | |
17221 | rm -f conftest.val | |
17222 | else | |
17223 | ac_cv_sizeof_char=0 | |
17224 | fi | |
17225 | fi | |
17226 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17227 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17228 | cat >>confdefs.h <<_ACEOF | |
17229 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17230 | _ACEOF | |
17231 | ||
17232 | ||
17233 | ||
17234 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
17235 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
17236 | case "$ac_cv_sizeof_char" in | |
17237 | 1) acx_cv_type_int8_t=char ;; | |
17238 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
17239 | echo "$as_me: error: no 8-bit type" >&2;} | |
17240 | { (exit please report a bug); exit please report a bug; }; } | |
17241 | esac | |
17242 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
17243 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
17244 | ||
17245 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
17246 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
17247 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
17248 | 2:*) acx_cv_type_int16_t=int ;; | |
17249 | *:2) acx_cv_type_int16_t=short ;; | |
17250 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
17251 | echo "$as_me: error: no 16-bit type" >&2;} | |
17252 | { (exit please report a bug); exit please report a bug; }; } | |
17253 | esac | |
17254 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
17255 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
17256 | ||
17257 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
17258 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
17259 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
17260 | 4:*) acx_cv_type_int32_t=int ;; | |
17261 | *:4) acx_cv_type_int32_t=long ;; | |
17262 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
17263 | echo "$as_me: error: no 32-bit type" >&2;} | |
17264 | { (exit please report a bug); exit please report a bug; }; } | |
17265 | esac | |
17266 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
17267 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
17268 | fi | |
17269 | ||
17270 | # These tests are here to make the output prettier | |
17271 | ||
17272 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
17273 | case "$ac_cv_sizeof_long" in | |
17274 | 8) acx_cv_type_int64_t=long ;; | |
17275 | esac | |
17276 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
17277 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
17278 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
17279 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
17280 | fi | |
17281 | ||
17282 | # Now we can use the above types | |
17283 | ||
17284 | if test "$ac_cv_type_uintptr_t" != yes; then | |
17285 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
17286 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
17287 | case $ac_cv_sizeof_void_p in | |
17288 | 2) acx_cv_type_intptr_t=int16_t ;; | |
17289 | 4) acx_cv_type_intptr_t=int32_t ;; | |
17290 | 8) acx_cv_type_intptr_t=int64_t ;; | |
17291 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
17292 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
17293 | { (exit please report a bug); exit please report a bug; }; } | |
17294 | esac | |
17295 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
17296 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
17297 | fi | |
17298 | ||
17299 | # ----------------- done all checks, emit header ------------- | |
17300 | ac_config_commands="$ac_config_commands gstdint.h" | |
17301 | ||
17302 | ||
17303 | ||
17304 | ||
953ff289 | 17305 | # Check to see if -pthread or -lpthread is needed. Prefer the former. |
124452c9 | 17306 | # In case the pthread.h system header is not found, this test will fail. |
953ff289 | 17307 | XPCFLAGS="" |
60def7ed | 17308 | CFLAGS="$CFLAGS -pthread" |
953ff289 DN |
17309 | cat >conftest.$ac_ext <<_ACEOF |
17310 | /* confdefs.h. */ | |
17311 | _ACEOF | |
17312 | cat confdefs.h >>conftest.$ac_ext | |
17313 | cat >>conftest.$ac_ext <<_ACEOF | |
17314 | /* end confdefs.h. */ | |
17315 | #include <pthread.h> | |
17316 | void *g(void *d) { return NULL; } | |
17317 | int | |
17318 | main () | |
17319 | { | |
17320 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
17321 | ; | |
17322 | return 0; | |
17323 | } | |
17324 | _ACEOF | |
17325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17327 | (eval $ac_link) 2>conftest.er1 | |
17328 | ac_status=$? | |
17329 | grep -v '^ *+' conftest.er1 >conftest.err | |
17330 | rm -f conftest.er1 | |
17331 | cat conftest.err >&5 | |
17332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17333 | (exit $ac_status); } && | |
d349482e AT |
17334 | { ac_try='test -z "$ac_c_werror_flag" |
17335 | || test ! -s conftest.err' | |
953ff289 DN |
17336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17337 | (eval $ac_try) 2>&5 | |
17338 | ac_status=$? | |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17340 | (exit $ac_status); }; } && | |
17341 | { ac_try='test -s conftest$ac_exeext' | |
17342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17343 | (eval $ac_try) 2>&5 | |
17344 | ac_status=$? | |
17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17346 | (exit $ac_status); }; }; then | |
60def7ed | 17347 | XPCFLAGS=" -Wc,-pthread" |
953ff289 DN |
17348 | else |
17349 | echo "$as_me: failed program was:" >&5 | |
17350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17351 | ||
17352 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
17353 | cat >conftest.$ac_ext <<_ACEOF | |
17354 | /* confdefs.h. */ | |
17355 | _ACEOF | |
17356 | cat confdefs.h >>conftest.$ac_ext | |
17357 | cat >>conftest.$ac_ext <<_ACEOF | |
17358 | /* end confdefs.h. */ | |
17359 | #include <pthread.h> | |
17360 | void *g(void *d) { return NULL; } | |
17361 | int | |
17362 | main () | |
17363 | { | |
17364 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
17365 | ; | |
17366 | return 0; | |
17367 | } | |
17368 | _ACEOF | |
17369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17371 | (eval $ac_link) 2>conftest.er1 | |
17372 | ac_status=$? | |
17373 | grep -v '^ *+' conftest.er1 >conftest.err | |
17374 | rm -f conftest.er1 | |
17375 | cat conftest.err >&5 | |
17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17377 | (exit $ac_status); } && | |
d349482e AT |
17378 | { ac_try='test -z "$ac_c_werror_flag" |
17379 | || test ! -s conftest.err' | |
953ff289 DN |
17380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17381 | (eval $ac_try) 2>&5 | |
17382 | ac_status=$? | |
17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17384 | (exit $ac_status); }; } && | |
17385 | { ac_try='test -s conftest$ac_exeext' | |
17386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17387 | (eval $ac_try) 2>&5 | |
17388 | ac_status=$? | |
17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17390 | (exit $ac_status); }; }; then | |
17391 | : | |
17392 | else | |
17393 | echo "$as_me: failed program was:" >&5 | |
17394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17395 | ||
17396 | { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5 | |
17397 | echo "$as_me: error: Pthreads are required to build libgomp" >&2;} | |
17398 | { (exit 1); exit 1; }; } | |
17399 | fi | |
17400 | rm -f conftest.err conftest.$ac_objext \ | |
17401 | conftest$ac_exeext conftest.$ac_ext | |
17402 | fi | |
17403 | rm -f conftest.err conftest.$ac_objext \ | |
17404 | conftest$ac_exeext conftest.$ac_ext | |
17405 | ||
17406 | # Check for functions needed. | |
17407 | ||
17408 | ||
976e44e3 JJ |
17409 | |
17410 | for ac_func in getloadavg clock_gettime strtoull | |
953ff289 DN |
17411 | do |
17412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17417 | else | |
17418 | cat >conftest.$ac_ext <<_ACEOF | |
17419 | /* confdefs.h. */ | |
17420 | _ACEOF | |
17421 | cat confdefs.h >>conftest.$ac_ext | |
17422 | cat >>conftest.$ac_ext <<_ACEOF | |
17423 | /* end confdefs.h. */ | |
17424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17426 | #define $ac_func innocuous_$ac_func | |
17427 | ||
17428 | /* System header to define __stub macros and hopefully few prototypes, | |
17429 | which can conflict with char $ac_func (); below. | |
17430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17431 | <limits.h> exists even on freestanding compilers. */ | |
17432 | ||
17433 | #ifdef __STDC__ | |
17434 | # include <limits.h> | |
17435 | #else | |
17436 | # include <assert.h> | |
17437 | #endif | |
17438 | ||
17439 | #undef $ac_func | |
17440 | ||
17441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17442 | #ifdef __cplusplus | |
17443 | extern "C" | |
17444 | { | |
17445 | #endif | |
17446 | /* We use char because int might match the return type of a gcc2 | |
17447 | builtin and then its argument prototype would still apply. */ | |
17448 | char $ac_func (); | |
17449 | /* The GNU C library defines this for functions which it implements | |
17450 | to always fail with ENOSYS. Some functions are actually named | |
17451 | something starting with __ and the normal name is an alias. */ | |
17452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17453 | choke me | |
17454 | #else | |
17455 | char (*f) () = $ac_func; | |
17456 | #endif | |
17457 | #ifdef __cplusplus | |
17458 | } | |
17459 | #endif | |
17460 | ||
17461 | int | |
17462 | main () | |
17463 | { | |
17464 | return f != $ac_func; | |
17465 | ; | |
17466 | return 0; | |
17467 | } | |
17468 | _ACEOF | |
17469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17471 | (eval $ac_link) 2>conftest.er1 | |
17472 | ac_status=$? | |
17473 | grep -v '^ *+' conftest.er1 >conftest.err | |
17474 | rm -f conftest.er1 | |
17475 | cat conftest.err >&5 | |
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17477 | (exit $ac_status); } && | |
d349482e AT |
17478 | { ac_try='test -z "$ac_c_werror_flag" |
17479 | || test ! -s conftest.err' | |
953ff289 DN |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; } && | |
17485 | { ac_try='test -s conftest$ac_exeext' | |
17486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17487 | (eval $ac_try) 2>&5 | |
17488 | ac_status=$? | |
17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17490 | (exit $ac_status); }; }; then | |
17491 | eval "$as_ac_var=yes" | |
17492 | else | |
17493 | echo "$as_me: failed program was:" >&5 | |
17494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17495 | ||
17496 | eval "$as_ac_var=no" | |
17497 | fi | |
17498 | rm -f conftest.err conftest.$ac_objext \ | |
17499 | conftest$ac_exeext conftest.$ac_ext | |
17500 | fi | |
17501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
17502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
17503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
17504 | cat >>confdefs.h <<_ACEOF | |
17505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17506 | _ACEOF | |
17507 | ||
17508 | fi | |
17509 | done | |
17510 | ||
17511 | ||
d349482e AT |
17512 | # Check for broken semaphore implementation on darwin. |
17513 | # sem_init returns: sem_init error: Function not implemented. | |
17514 | case "$host" in | |
17515 | *-darwin*) | |
17516 | ||
17517 | cat >>confdefs.h <<\_ACEOF | |
17518 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 | |
17519 | _ACEOF | |
17520 | ||
fe5568e9 | 17521 | ;; |
0f3e711e JJ |
17522 | esac |
17523 | ||
17524 | # Check whether --enable-linux-futex or --disable-linux-futex was given. | |
17525 | if test "${enable_linux_futex+set}" = set; then | |
17526 | enableval="$enable_linux_futex" | |
17527 | ||
17528 | case "$enableval" in | |
17529 | yes|no|default) ;; | |
17530 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 | |
17531 | echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} | |
17532 | { (exit 1); exit 1; }; } ;; | |
17533 | esac | |
17534 | ||
17535 | else | |
17536 | enable_linux_futex=default | |
17537 | fi; | |
17538 | ||
17539 | case "$target" in | |
fe5568e9 JJ |
17540 | *-linux*) |
17541 | case "$enable_linux_futex" in | |
17542 | default) | |
17543 | # If headers don't have gettid/futex syscalls definition, then | |
17544 | # default to no, otherwise there will be compile time failures. | |
17545 | # Otherwise, default to yes. If we don't detect we are | |
17546 | # compiled/linked against NPTL and not cross-compiling, check | |
17547 | # if programs are run by default against NPTL and if not, issue | |
17548 | # a warning. | |
17549 | enable_linux_futex=no | |
17550 | cat >conftest.$ac_ext <<_ACEOF | |
17551 | /* confdefs.h. */ | |
17552 | _ACEOF | |
17553 | cat confdefs.h >>conftest.$ac_ext | |
17554 | cat >>conftest.$ac_ext <<_ACEOF | |
17555 | /* end confdefs.h. */ | |
17556 | #include <sys/syscall.h> | |
17557 | int lk; | |
17558 | int | |
17559 | main () | |
17560 | { | |
17561 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
17562 | ; | |
17563 | return 0; | |
17564 | } | |
17565 | _ACEOF | |
17566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17568 | (eval $ac_link) 2>conftest.er1 | |
17569 | ac_status=$? | |
17570 | grep -v '^ *+' conftest.er1 >conftest.err | |
17571 | rm -f conftest.er1 | |
17572 | cat conftest.err >&5 | |
17573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17574 | (exit $ac_status); } && | |
17575 | { ac_try='test -z "$ac_c_werror_flag" | |
17576 | || test ! -s conftest.err' | |
17577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17578 | (eval $ac_try) 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); }; } && | |
17582 | { ac_try='test -s conftest$ac_exeext' | |
17583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17584 | (eval $ac_try) 2>&5 | |
17585 | ac_status=$? | |
17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17587 | (exit $ac_status); }; }; then | |
0f3e711e JJ |
17588 | save_LIBS="$LIBS" |
17589 | LIBS="-lpthread $LIBS" | |
17590 | cat >conftest.$ac_ext <<_ACEOF | |
fe5568e9 JJ |
17591 | /* confdefs.h. */ |
17592 | _ACEOF | |
17593 | cat confdefs.h >>conftest.$ac_ext | |
17594 | cat >>conftest.$ac_ext <<_ACEOF | |
17595 | /* end confdefs.h. */ | |
17596 | #ifndef _GNU_SOURCE | |
17597 | #define _GNU_SOURCE 1 | |
17598 | #endif | |
17599 | #include <pthread.h> | |
17600 | pthread_t th; void *status; | |
17601 | int | |
17602 | main () | |
17603 | { | |
17604 | pthread_tryjoin_np (th, &status); | |
17605 | ; | |
17606 | return 0; | |
17607 | } | |
17608 | _ACEOF | |
17609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17611 | (eval $ac_link) 2>conftest.er1 | |
17612 | ac_status=$? | |
17613 | grep -v '^ *+' conftest.er1 >conftest.err | |
17614 | rm -f conftest.er1 | |
17615 | cat conftest.err >&5 | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); } && | |
17618 | { ac_try='test -z "$ac_c_werror_flag" | |
17619 | || test ! -s conftest.err' | |
17620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); }; } && | |
17625 | { ac_try='test -s conftest$ac_exeext' | |
17626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17627 | (eval $ac_try) 2>&5 | |
17628 | ac_status=$? | |
17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17630 | (exit $ac_status); }; }; then | |
17631 | enable_linux_futex=yes | |
17632 | else | |
17633 | echo "$as_me: failed program was:" >&5 | |
17634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17635 | ||
17636 | if test x$cross_compiling = xno; then | |
17637 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
0f3e711e | 17638 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else |
fe5568e9 JJ |
17639 | { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. |
17640 | If so, please configure with --disable-linux-futex" >&5 | |
17641 | echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
17642 | If so, please configure with --disable-linux-futex" >&2;} | |
17643 | fi | |
17644 | fi | |
17645 | enable_linux_futex=yes | |
17646 | fi | |
17647 | rm -f conftest.err conftest.$ac_objext \ | |
17648 | conftest$ac_exeext conftest.$ac_ext | |
0f3e711e | 17649 | LIBS="$save_LIBS" |
fe5568e9 JJ |
17650 | else |
17651 | echo "$as_me: failed program was:" >&5 | |
17652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17653 | ||
17654 | fi | |
17655 | rm -f conftest.err conftest.$ac_objext \ | |
17656 | conftest$ac_exeext conftest.$ac_ext | |
17657 | ;; | |
a1b25e49 | 17658 | yes) |
fe5568e9 JJ |
17659 | cat >conftest.$ac_ext <<_ACEOF |
17660 | /* confdefs.h. */ | |
17661 | _ACEOF | |
17662 | cat confdefs.h >>conftest.$ac_ext | |
17663 | cat >>conftest.$ac_ext <<_ACEOF | |
17664 | /* end confdefs.h. */ | |
17665 | #include <sys/syscall.h> | |
17666 | int lk; | |
17667 | int | |
17668 | main () | |
17669 | { | |
17670 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
17671 | ; | |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17677 | (eval $ac_link) 2>conftest.er1 | |
17678 | ac_status=$? | |
17679 | grep -v '^ *+' conftest.er1 >conftest.err | |
17680 | rm -f conftest.er1 | |
17681 | cat conftest.err >&5 | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); } && | |
17684 | { ac_try='test -z "$ac_c_werror_flag" | |
17685 | || test ! -s conftest.err' | |
17686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17687 | (eval $ac_try) 2>&5 | |
17688 | ac_status=$? | |
17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17690 | (exit $ac_status); }; } && | |
17691 | { ac_try='test -s conftest$ac_exeext' | |
17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17693 | (eval $ac_try) 2>&5 | |
17694 | ac_status=$? | |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); }; }; then | |
17697 | : | |
17698 | else | |
17699 | echo "$as_me: failed program was:" >&5 | |
17700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17701 | ||
17702 | { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 | |
17703 | echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} | |
17704 | { (exit 1); exit 1; }; } | |
17705 | fi | |
17706 | rm -f conftest.err conftest.$ac_objext \ | |
17707 | conftest$ac_exeext conftest.$ac_ext | |
17708 | ;; | |
17709 | esac | |
d349482e | 17710 | ;; |
0f3e711e JJ |
17711 | *) |
17712 | enable_linux_futex=no | |
17713 | ;; | |
d349482e | 17714 | esac |
0f3e711e JJ |
17715 | if test x$enable_linux_futex = xyes; then |
17716 | : | |
17717 | fi | |
17718 | ||
d349482e | 17719 | |
a0884cf0 JJ |
17720 | # Check for pthread_{,attr_}[sg]etaffinity_np. |
17721 | cat >conftest.$ac_ext <<_ACEOF | |
17722 | /* confdefs.h. */ | |
17723 | _ACEOF | |
17724 | cat confdefs.h >>conftest.$ac_ext | |
17725 | cat >>conftest.$ac_ext <<_ACEOF | |
17726 | /* end confdefs.h. */ | |
17727 | #define _GNU_SOURCE | |
17728 | #include <pthread.h> | |
17729 | int | |
17730 | main () | |
17731 | { | |
17732 | cpu_set_t cpuset; | |
17733 | pthread_attr_t attr; | |
17734 | pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
17735 | if (CPU_ISSET (0, &cpuset)) | |
17736 | CPU_SET (1, &cpuset); | |
17737 | else | |
17738 | CPU_ZERO (&cpuset); | |
17739 | pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
17740 | pthread_attr_init (&attr); | |
17741 | pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
17742 | pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
17743 | ; | |
17744 | return 0; | |
17745 | } | |
17746 | _ACEOF | |
17747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17749 | (eval $ac_link) 2>conftest.er1 | |
17750 | ac_status=$? | |
17751 | grep -v '^ *+' conftest.er1 >conftest.err | |
17752 | rm -f conftest.er1 | |
17753 | cat conftest.err >&5 | |
17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17755 | (exit $ac_status); } && | |
17756 | { ac_try='test -z "$ac_c_werror_flag" | |
17757 | || test ! -s conftest.err' | |
17758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17759 | (eval $ac_try) 2>&5 | |
17760 | ac_status=$? | |
17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17762 | (exit $ac_status); }; } && | |
17763 | { ac_try='test -s conftest$ac_exeext' | |
17764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17765 | (eval $ac_try) 2>&5 | |
17766 | ac_status=$? | |
17767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17768 | (exit $ac_status); }; }; then | |
17769 | ||
17770 | cat >>confdefs.h <<\_ACEOF | |
17771 | #define HAVE_PTHREAD_AFFINITY_NP 1 | |
17772 | _ACEOF | |
17773 | ||
17774 | else | |
17775 | echo "$as_me: failed program was:" >&5 | |
17776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17777 | ||
17778 | fi | |
17779 | rm -f conftest.err conftest.$ac_objext \ | |
17780 | conftest$ac_exeext conftest.$ac_ext | |
17781 | ||
953ff289 DN |
17782 | # At least for glibc, clock_gettime is in librt. But don't pull that |
17783 | # in if it still doesn't give us the function we want. | |
17784 | if test $ac_cv_func_clock_gettime = no; then | |
17785 | echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 | |
17786 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 | |
17787 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then | |
17788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17789 | else | |
17790 | ac_check_lib_save_LIBS=$LIBS | |
17791 | LIBS="-lrt $LIBS" | |
17792 | cat >conftest.$ac_ext <<_ACEOF | |
17793 | /* confdefs.h. */ | |
17794 | _ACEOF | |
17795 | cat confdefs.h >>conftest.$ac_ext | |
17796 | cat >>conftest.$ac_ext <<_ACEOF | |
17797 | /* end confdefs.h. */ | |
17798 | ||
17799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17800 | #ifdef __cplusplus | |
17801 | extern "C" | |
17802 | #endif | |
17803 | /* We use char because int might match the return type of a gcc2 | |
17804 | builtin and then its argument prototype would still apply. */ | |
17805 | char clock_gettime (); | |
17806 | int | |
17807 | main () | |
17808 | { | |
17809 | clock_gettime (); | |
17810 | ; | |
17811 | return 0; | |
17812 | } | |
17813 | _ACEOF | |
17814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17816 | (eval $ac_link) 2>conftest.er1 | |
17817 | ac_status=$? | |
17818 | grep -v '^ *+' conftest.er1 >conftest.err | |
17819 | rm -f conftest.er1 | |
17820 | cat conftest.err >&5 | |
17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17822 | (exit $ac_status); } && | |
d349482e AT |
17823 | { ac_try='test -z "$ac_c_werror_flag" |
17824 | || test ! -s conftest.err' | |
953ff289 DN |
17825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17826 | (eval $ac_try) 2>&5 | |
17827 | ac_status=$? | |
17828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17829 | (exit $ac_status); }; } && | |
17830 | { ac_try='test -s conftest$ac_exeext' | |
17831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17832 | (eval $ac_try) 2>&5 | |
17833 | ac_status=$? | |
17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17835 | (exit $ac_status); }; }; then | |
17836 | ac_cv_lib_rt_clock_gettime=yes | |
17837 | else | |
17838 | echo "$as_me: failed program was:" >&5 | |
17839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17840 | ||
17841 | ac_cv_lib_rt_clock_gettime=no | |
17842 | fi | |
17843 | rm -f conftest.err conftest.$ac_objext \ | |
17844 | conftest$ac_exeext conftest.$ac_ext | |
17845 | LIBS=$ac_check_lib_save_LIBS | |
17846 | fi | |
17847 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
17848 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 | |
17849 | if test $ac_cv_lib_rt_clock_gettime = yes; then | |
17850 | LIBS="-lrt $LIBS" | |
c663e301 JM |
17851 | |
17852 | cat >>confdefs.h <<\_ACEOF | |
17853 | #define HAVE_CLOCK_GETTIME 1 | |
953ff289 DN |
17854 | _ACEOF |
17855 | ||
17856 | fi | |
17857 | ||
17858 | fi | |
17859 | ||
17860 | # See if we support thread-local storage. | |
17861 | ||
17862 | # Check whether --enable-tls or --disable-tls was given. | |
17863 | if test "${enable_tls+set}" = set; then | |
17864 | enableval="$enable_tls" | |
17865 | ||
17866 | case "$enableval" in | |
17867 | yes|no) ;; | |
17868 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 | |
17869 | echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} | |
17870 | { (exit 1); exit 1; }; } ;; | |
17871 | esac | |
17872 | ||
17873 | else | |
17874 | enable_tls=yes | |
17875 | fi; | |
17876 | ||
17877 | echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 | |
17878 | echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 | |
3afcaaf4 | 17879 | if test "${gcc_cv_have_tls+set}" = set; then |
953ff289 DN |
17880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17881 | else | |
17882 | ||
60e1758f | 17883 | if test "$cross_compiling" = yes; then |
1cf3d07d | 17884 | cat >conftest.$ac_ext <<_ACEOF |
597c25e6 | 17885 | __thread int a; int b; int main() { return a = b; } |
953ff289 | 17886 | _ACEOF |
597c25e6 DJ |
17887 | rm -f conftest.$ac_objext conftest$ac_exeext |
17888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17889 | (eval $ac_link) 2>conftest.er1 | |
953ff289 DN |
17890 | ac_status=$? |
17891 | grep -v '^ *+' conftest.er1 >conftest.err | |
17892 | rm -f conftest.er1 | |
17893 | cat conftest.err >&5 | |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17895 | (exit $ac_status); } && | |
d349482e AT |
17896 | { ac_try='test -z "$ac_c_werror_flag" |
17897 | || test ! -s conftest.err' | |
953ff289 DN |
17898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17899 | (eval $ac_try) 2>&5 | |
17900 | ac_status=$? | |
17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17902 | (exit $ac_status); }; } && | |
597c25e6 | 17903 | { ac_try='test -s conftest$ac_exeext' |
953ff289 DN |
17904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17905 | (eval $ac_try) 2>&5 | |
17906 | ac_status=$? | |
17907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17908 | (exit $ac_status); }; }; then | |
3afcaaf4 | 17909 | gcc_cv_have_tls=yes |
953ff289 DN |
17910 | else |
17911 | echo "$as_me: failed program was:" >&5 | |
17912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17913 | ||
3afcaaf4 | 17914 | gcc_cv_have_tls=no |
953ff289 | 17915 | fi |
597c25e6 DJ |
17916 | rm -f conftest.err conftest.$ac_objext \ |
17917 | conftest$ac_exeext conftest.$ac_ext | |
60e1758f | 17918 | |
1cf3d07d | 17919 | |
60e1758f RH |
17920 | else |
17921 | cat >conftest.$ac_ext <<_ACEOF | |
17922 | __thread int a; int b; int main() { return a = b; } | |
17923 | _ACEOF | |
17924 | rm -f conftest$ac_exeext | |
17925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17926 | (eval $ac_link) 2>&5 | |
17927 | ac_status=$? | |
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17931 | (eval $ac_try) 2>&5 | |
17932 | ac_status=$? | |
17933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17934 | (exit $ac_status); }; }; then | |
78e075d4 | 17935 | chktls_save_LDFLAGS="$LDFLAGS" |
60e1758f | 17936 | LDFLAGS="-static $LDFLAGS" |
aad741f4 EB |
17937 | cat >conftest.$ac_ext <<_ACEOF |
17938 | int main() { return 0; } | |
17939 | _ACEOF | |
17940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17942 | (eval $ac_link) 2>conftest.er1 | |
17943 | ac_status=$? | |
17944 | grep -v '^ *+' conftest.er1 >conftest.err | |
17945 | rm -f conftest.er1 | |
17946 | cat conftest.err >&5 | |
17947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17948 | (exit $ac_status); } && | |
17949 | { ac_try='test -z "$ac_c_werror_flag" | |
17950 | || test ! -s conftest.err' | |
17951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17952 | (eval $ac_try) 2>&5 | |
17953 | ac_status=$? | |
17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17955 | (exit $ac_status); }; } && | |
17956 | { ac_try='test -s conftest$ac_exeext' | |
17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17961 | (exit $ac_status); }; }; then | |
17962 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
17963 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17964 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17965 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
60e1758f RH |
17966 | See \`config.log' for more details." >&5 |
17967 | echo "$as_me: error: cannot run test program while cross compiling | |
17968 | See \`config.log' for more details." >&2;} | |
18c04407 | 17969 | { (exit 1); exit 1; }; }; } |
60e1758f RH |
17970 | else |
17971 | cat >conftest.$ac_ext <<_ACEOF | |
17972 | __thread int a; int b; int main() { return a = b; } | |
17973 | _ACEOF | |
17974 | rm -f conftest$ac_exeext | |
17975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17976 | (eval $ac_link) 2>&5 | |
17977 | ac_status=$? | |
17978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17981 | (eval $ac_try) 2>&5 | |
17982 | ac_status=$? | |
17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17984 | (exit $ac_status); }; }; then | |
3afcaaf4 | 17985 | gcc_cv_have_tls=yes |
60e1758f RH |
17986 | else |
17987 | echo "$as_me: program exited with status $ac_status" >&5 | |
17988 | echo "$as_me: failed program was:" >&5 | |
17989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17990 | ||
17991 | ( exit $ac_status ) | |
3afcaaf4 | 17992 | gcc_cv_have_tls=no |
60e1758f RH |
17993 | fi |
17994 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17995 | fi | |
aad741f4 EB |
17996 | else |
17997 | echo "$as_me: failed program was:" >&5 | |
17998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17999 | ||
3afcaaf4 | 18000 | gcc_cv_have_tls=yes |
aad741f4 EB |
18001 | fi |
18002 | rm -f conftest.err conftest.$ac_objext \ | |
18003 | conftest$ac_exeext conftest.$ac_ext | |
78e075d4 | 18004 | LDFLAGS="$chktls_save_LDFLAGS" |
3afcaaf4 | 18005 | if test $gcc_cv_have_tls = yes; then |
78e075d4 JJ |
18006 | chktls_save_CFLAGS="$CFLAGS" |
18007 | thread_CFLAGS=failed | |
18008 | for flag in '' '-pthread' '-lpthread'; do | |
18009 | CFLAGS="$flag $chktls_save_CFLAGS" | |
18010 | cat >conftest.$ac_ext <<_ACEOF | |
18011 | /* confdefs.h. */ | |
18012 | _ACEOF | |
18013 | cat confdefs.h >>conftest.$ac_ext | |
18014 | cat >>conftest.$ac_ext <<_ACEOF | |
18015 | /* end confdefs.h. */ | |
18016 | #include <pthread.h> | |
18017 | void *g(void *d) { return NULL; } | |
18018 | int | |
18019 | main () | |
18020 | { | |
18021 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
18022 | ; | |
18023 | return 0; | |
18024 | } | |
18025 | _ACEOF | |
18026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18028 | (eval $ac_link) 2>conftest.er1 | |
18029 | ac_status=$? | |
18030 | grep -v '^ *+' conftest.er1 >conftest.err | |
18031 | rm -f conftest.er1 | |
18032 | cat conftest.err >&5 | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); } && | |
18035 | { ac_try='test -z "$ac_c_werror_flag" | |
18036 | || test ! -s conftest.err' | |
18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18038 | (eval $ac_try) 2>&5 | |
18039 | ac_status=$? | |
18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18041 | (exit $ac_status); }; } && | |
18042 | { ac_try='test -s conftest$ac_exeext' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
18048 | thread_CFLAGS="$flag" | |
18049 | else | |
18050 | echo "$as_me: failed program was:" >&5 | |
18051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18052 | ||
18053 | fi | |
18054 | rm -f conftest.err conftest.$ac_objext \ | |
18055 | conftest$ac_exeext conftest.$ac_ext | |
18056 | if test "X$thread_CFLAGS" != Xfailed; then | |
18057 | break | |
18058 | fi | |
18059 | done | |
18060 | CFLAGS="$chktls_save_CFLAGS" | |
18061 | if test "X$thread_CFLAGS" != Xfailed; then | |
18062 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
18063 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
18064 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
18065 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18066 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
78e075d4 JJ |
18067 | See \`config.log' for more details." >&5 |
18068 | echo "$as_me: error: cannot run test program while cross compiling | |
18069 | See \`config.log' for more details." >&2;} | |
18c04407 | 18070 | { (exit 1); exit 1; }; }; } |
78e075d4 JJ |
18071 | else |
18072 | cat >conftest.$ac_ext <<_ACEOF | |
18073 | /* confdefs.h. */ | |
18074 | _ACEOF | |
18075 | cat confdefs.h >>conftest.$ac_ext | |
18076 | cat >>conftest.$ac_ext <<_ACEOF | |
18077 | /* end confdefs.h. */ | |
18078 | #include <pthread.h> | |
18079 | __thread int a; | |
18080 | static int *a_in_other_thread; | |
18081 | static void * | |
18082 | thread_func (void *arg) | |
18083 | { | |
18084 | a_in_other_thread = &a; | |
18085 | return (void *)0; | |
18086 | } | |
18087 | int | |
18088 | main () | |
18089 | { | |
18090 | pthread_t thread; | |
18091 | void *thread_retval; | |
18092 | int *a_in_main_thread; | |
18093 | if (pthread_create (&thread, (pthread_attr_t *)0, | |
18094 | thread_func, (void *)0)) | |
18095 | return 0; | |
18096 | a_in_main_thread = &a; | |
18097 | if (pthread_join (thread, &thread_retval)) | |
18098 | return 0; | |
18099 | return (a_in_other_thread == a_in_main_thread); | |
18100 | ; | |
18101 | return 0; | |
18102 | } | |
18103 | _ACEOF | |
18104 | rm -f conftest$ac_exeext | |
18105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18106 | (eval $ac_link) 2>&5 | |
18107 | ac_status=$? | |
18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18109 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18111 | (eval $ac_try) 2>&5 | |
18112 | ac_status=$? | |
18113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18114 | (exit $ac_status); }; }; then | |
3afcaaf4 | 18115 | gcc_cv_have_tls=yes |
78e075d4 JJ |
18116 | else |
18117 | echo "$as_me: program exited with status $ac_status" >&5 | |
18118 | echo "$as_me: failed program was:" >&5 | |
18119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18120 | ||
18121 | ( exit $ac_status ) | |
3afcaaf4 | 18122 | gcc_cv_have_tls=no |
78e075d4 JJ |
18123 | fi |
18124 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18125 | fi | |
18126 | CFLAGS="$chktls_save_CFLAGS" | |
18127 | fi | |
18128 | fi | |
60e1758f RH |
18129 | else |
18130 | echo "$as_me: program exited with status $ac_status" >&5 | |
18131 | echo "$as_me: failed program was:" >&5 | |
18132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18133 | ||
18134 | ( exit $ac_status ) | |
3afcaaf4 | 18135 | gcc_cv_have_tls=no |
60e1758f RH |
18136 | fi |
18137 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18138 | fi | |
953ff289 | 18139 | fi |
3afcaaf4 MR |
18140 | echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5 |
18141 | echo "${ECHO_T}$gcc_cv_have_tls" >&6 | |
18142 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
953ff289 DN |
18143 | |
18144 | cat >>confdefs.h <<\_ACEOF | |
18145 | #define HAVE_TLS 1 | |
18146 | _ACEOF | |
18147 | ||
18148 | fi | |
18149 | ||
18150 | # See what sort of export controls are availible. | |
18151 | ||
18152 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
18153 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
6d26724a | 18154 | if test "${libgomp_cv_have_attribute_visibility+set}" = set; then |
953ff289 DN |
18155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18156 | else | |
18157 | ||
18158 | save_CFLAGS="$CFLAGS" | |
18159 | CFLAGS="$CFLAGS -Werror" | |
18160 | cat >conftest.$ac_ext <<_ACEOF | |
18161 | /* confdefs.h. */ | |
18162 | _ACEOF | |
18163 | cat confdefs.h >>conftest.$ac_ext | |
18164 | cat >>conftest.$ac_ext <<_ACEOF | |
18165 | /* end confdefs.h. */ | |
18166 | void __attribute__((visibility("hidden"))) foo(void) { } | |
18167 | int | |
18168 | main () | |
18169 | { | |
18170 | ||
18171 | ; | |
18172 | return 0; | |
18173 | } | |
18174 | _ACEOF | |
18175 | rm -f conftest.$ac_objext | |
18176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18177 | (eval $ac_compile) 2>conftest.er1 | |
18178 | ac_status=$? | |
18179 | grep -v '^ *+' conftest.er1 >conftest.err | |
18180 | rm -f conftest.er1 | |
18181 | cat conftest.err >&5 | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); } && | |
d349482e AT |
18184 | { ac_try='test -z "$ac_c_werror_flag" |
18185 | || test ! -s conftest.err' | |
953ff289 DN |
18186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18187 | (eval $ac_try) 2>&5 | |
18188 | ac_status=$? | |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18190 | (exit $ac_status); }; } && | |
18191 | { ac_try='test -s conftest.$ac_objext' | |
18192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18193 | (eval $ac_try) 2>&5 | |
18194 | ac_status=$? | |
18195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18196 | (exit $ac_status); }; }; then | |
6d26724a | 18197 | libgomp_cv_have_attribute_visibility=yes |
953ff289 DN |
18198 | else |
18199 | echo "$as_me: failed program was:" >&5 | |
18200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18201 | ||
6d26724a | 18202 | libgomp_cv_have_attribute_visibility=no |
953ff289 DN |
18203 | fi |
18204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18205 | CFLAGS="$save_CFLAGS" | |
18206 | fi | |
6d26724a RW |
18207 | echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5 |
18208 | echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6 | |
18209 | if test $libgomp_cv_have_attribute_visibility = yes; then | |
953ff289 DN |
18210 | |
18211 | cat >>confdefs.h <<\_ACEOF | |
18212 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
18213 | _ACEOF | |
18214 | ||
18215 | fi | |
18216 | ||
18217 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
18218 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
6d26724a | 18219 | if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then |
953ff289 DN |
18220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18221 | else | |
18222 | ||
18223 | save_CFLAGS="$CFLAGS" | |
18224 | CFLAGS="$CFLAGS -Werror" | |
18225 | cat >conftest.$ac_ext <<_ACEOF | |
18226 | /* confdefs.h. */ | |
18227 | _ACEOF | |
18228 | cat confdefs.h >>conftest.$ac_ext | |
18229 | cat >>conftest.$ac_ext <<_ACEOF | |
18230 | /* end confdefs.h. */ | |
18231 | void __attribute__((dllexport)) foo(void) { } | |
18232 | int | |
18233 | main () | |
18234 | { | |
18235 | ||
18236 | ; | |
18237 | return 0; | |
18238 | } | |
18239 | _ACEOF | |
18240 | rm -f conftest.$ac_objext | |
18241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18242 | (eval $ac_compile) 2>conftest.er1 | |
18243 | ac_status=$? | |
18244 | grep -v '^ *+' conftest.er1 >conftest.err | |
18245 | rm -f conftest.er1 | |
18246 | cat conftest.err >&5 | |
18247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18248 | (exit $ac_status); } && | |
d349482e AT |
18249 | { ac_try='test -z "$ac_c_werror_flag" |
18250 | || test ! -s conftest.err' | |
953ff289 DN |
18251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18252 | (eval $ac_try) 2>&5 | |
18253 | ac_status=$? | |
18254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18255 | (exit $ac_status); }; } && | |
18256 | { ac_try='test -s conftest.$ac_objext' | |
18257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18258 | (eval $ac_try) 2>&5 | |
18259 | ac_status=$? | |
18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18261 | (exit $ac_status); }; }; then | |
6d26724a | 18262 | libgomp_cv_have_attribute_dllexport=yes |
953ff289 DN |
18263 | else |
18264 | echo "$as_me: failed program was:" >&5 | |
18265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18266 | ||
6d26724a | 18267 | libgomp_cv_have_attribute_dllexport=no |
953ff289 DN |
18268 | fi |
18269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18270 | CFLAGS="$save_CFLAGS" | |
18271 | fi | |
6d26724a RW |
18272 | echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5 |
18273 | echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6 | |
18274 | if test $libgomp_cv_have_attribute_dllexport = yes; then | |
953ff289 DN |
18275 | |
18276 | cat >>confdefs.h <<\_ACEOF | |
18277 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
18278 | _ACEOF | |
18279 | ||
18280 | fi | |
18281 | ||
18282 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
18283 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
6d26724a | 18284 | if test "${libgomp_cv_have_attribute_alias+set}" = set; then |
953ff289 DN |
18285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18286 | else | |
18287 | ||
18288 | cat >conftest.$ac_ext <<_ACEOF | |
18289 | /* confdefs.h. */ | |
18290 | _ACEOF | |
18291 | cat confdefs.h >>conftest.$ac_ext | |
18292 | cat >>conftest.$ac_ext <<_ACEOF | |
18293 | /* end confdefs.h. */ | |
18294 | ||
953ff289 | 18295 | void foo(void) { } |
8887708e | 18296 | extern void bar(void) __attribute__((alias("foo"))); |
953ff289 DN |
18297 | int |
18298 | main () | |
18299 | { | |
18300 | bar(); | |
18301 | ; | |
18302 | return 0; | |
18303 | } | |
18304 | _ACEOF | |
18305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18307 | (eval $ac_link) 2>conftest.er1 | |
18308 | ac_status=$? | |
18309 | grep -v '^ *+' conftest.er1 >conftest.err | |
18310 | rm -f conftest.er1 | |
18311 | cat conftest.err >&5 | |
18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18313 | (exit $ac_status); } && | |
d349482e AT |
18314 | { ac_try='test -z "$ac_c_werror_flag" |
18315 | || test ! -s conftest.err' | |
953ff289 DN |
18316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18317 | (eval $ac_try) 2>&5 | |
18318 | ac_status=$? | |
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18320 | (exit $ac_status); }; } && | |
18321 | { ac_try='test -s conftest$ac_exeext' | |
18322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18323 | (eval $ac_try) 2>&5 | |
18324 | ac_status=$? | |
18325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18326 | (exit $ac_status); }; }; then | |
6d26724a | 18327 | libgomp_cv_have_attribute_alias=yes |
953ff289 DN |
18328 | else |
18329 | echo "$as_me: failed program was:" >&5 | |
18330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18331 | ||
6d26724a | 18332 | libgomp_cv_have_attribute_alias=no |
953ff289 DN |
18333 | fi |
18334 | rm -f conftest.err conftest.$ac_objext \ | |
18335 | conftest$ac_exeext conftest.$ac_ext | |
18336 | fi | |
6d26724a RW |
18337 | echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5 |
18338 | echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6 | |
18339 | if test $libgomp_cv_have_attribute_alias = yes; then | |
953ff289 DN |
18340 | |
18341 | cat >>confdefs.h <<\_ACEOF | |
18342 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
18343 | _ACEOF | |
18344 | ||
18345 | fi | |
18346 | ||
1cf3d07d SE |
18347 | |
18348 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
18349 | if test "${with_gnu_ld+set}" = set; then | |
18350 | withval="$with_gnu_ld" | |
18351 | test "$withval" = no || with_gnu_ld=yes | |
18352 | else | |
18353 | with_gnu_ld=no | |
18354 | fi; | |
18355 | ac_prog=ld | |
18356 | if test "$GCC" = yes; then | |
18357 | # Check if gcc -print-prog-name=ld gives a path. | |
18358 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
18359 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
18360 | case $host in | |
18361 | *-*-mingw*) | |
18362 | # gcc leaves a trailing carriage return which upsets mingw | |
18363 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
18364 | *) | |
18365 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
18366 | esac | |
18367 | case $ac_prog in | |
18368 | # Accept absolute paths. | |
18369 | [\\/]* | ?:[\\/]*) | |
18370 | re_direlt='/[^/][^/]*/\.\./' | |
18371 | # Canonicalize the pathname of ld | |
18372 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
18373 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
18374 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
18375 | done | |
18376 | test -z "$LD" && LD="$ac_prog" | |
18377 | ;; | |
18378 | "") | |
18379 | # If it fails, then pretend we aren't using GCC. | |
18380 | ac_prog=ld | |
18381 | ;; | |
18382 | *) | |
18383 | # If it is relative, then search for the first ld in PATH. | |
18384 | with_gnu_ld=unknown | |
18385 | ;; | |
18386 | esac | |
18387 | elif test "$with_gnu_ld" = yes; then | |
18388 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
18389 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
18390 | else | |
18391 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
18392 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
18393 | fi | |
18394 | if test "${lt_cv_path_LD+set}" = set; then | |
18395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18396 | else | |
18397 | if test -z "$LD"; then | |
18398 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
18399 | for ac_dir in $PATH; do | |
18400 | IFS="$lt_save_ifs" | |
18401 | test -z "$ac_dir" && ac_dir=. | |
18402 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
18403 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
18404 | # Check to see if the program is GNU ld. I'd rather use --version, | |
18405 | # but apparently some variants of GNU ld only accept -v. | |
18406 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
18407 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
18408 | *GNU* | *'with BFD'*) | |
18409 | test "$with_gnu_ld" != no && break | |
18410 | ;; | |
18411 | *) | |
18412 | test "$with_gnu_ld" != yes && break | |
18413 | ;; | |
18414 | esac | |
18415 | fi | |
18416 | done | |
18417 | IFS="$lt_save_ifs" | |
18418 | else | |
18419 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
18420 | fi | |
18421 | fi | |
18422 | ||
18423 | LD="$lt_cv_path_LD" | |
18424 | if test -n "$LD"; then | |
18425 | echo "$as_me:$LINENO: result: $LD" >&5 | |
18426 | echo "${ECHO_T}$LD" >&6 | |
18427 | else | |
18428 | echo "$as_me:$LINENO: result: no" >&5 | |
18429 | echo "${ECHO_T}no" >&6 | |
18430 | fi | |
18431 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
18432 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
18433 | { (exit 1); exit 1; }; } | |
18434 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
18435 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
18436 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
18437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18438 | else | |
18439 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
18440 | case `$LD -v 2>&1 </dev/null` in | |
18441 | *GNU* | *'with BFD'*) | |
18442 | lt_cv_prog_gnu_ld=yes | |
18443 | ;; | |
18444 | *) | |
18445 | lt_cv_prog_gnu_ld=no | |
18446 | ;; | |
18447 | esac | |
18448 | fi | |
18449 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
18450 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
18451 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
18452 | ||
18453 | ||
18454 | ||
18455 | ||
18456 | ||
18457 | ||
18458 | ||
953ff289 DN |
18459 | # If we're not using GNU ld, then there's no point in even trying these |
18460 | # tests. Check for that first. We should have already tested for gld | |
18461 | # by now (in libtool), but require it now just to be safe... | |
18462 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
18463 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
18464 | ||
18465 | ||
18466 | ||
18467 | # The name set by libtool depends on the version of libtool. Shame on us | |
18468 | # for depending on an impl detail, but c'est la vie. Older versions used | |
18469 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
18470 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
18471 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
18472 | # set (hence we're using an older libtool), then set it. | |
18473 | if test x${with_gnu_ld+set} != xset; then | |
18474 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
18475 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
18476 | with_gnu_ld=no | |
18477 | else | |
18478 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
18479 | fi | |
18480 | fi | |
18481 | ||
18482 | # Start by getting the version number. I think the libtool test already | |
18483 | # does some of this, but throws away the result. | |
18484 | ||
18485 | ldver=`$LD --version 2>/dev/null | head -1 | \ | |
f210f1cd | 18486 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` |
953ff289 DN |
18487 | |
18488 | libgomp_gnu_ld_version=`echo $ldver | \ | |
18489 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
18490 | ||
18491 | # Set --gc-sections. | |
18492 | if test "$with_gnu_ld" = "notbroken"; then | |
18493 | # GNU ld it is! Joy and bunny rabbits! | |
18494 | ||
18495 | # All these tests are for C++; save the language and the compiler flags. | |
18496 | # Need to do this so that g++ won't try to link in libstdc++ | |
18497 | ac_test_CFLAGS="${CFLAGS+set}" | |
18498 | ac_save_CFLAGS="$CFLAGS" | |
18499 | CFLAGS='-x c++ -Wl,--gc-sections' | |
18500 | ||
18501 | # Check for -Wl,--gc-sections | |
18502 | # XXX This test is broken at the moment, as symbols required for linking | |
18503 | # are now in libsupc++ (not built yet). In addition, this test has | |
18504 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
18505 | # really work at the moment (keeps on discarding used sections, first | |
18506 | # .eh_frame and now some of the glibc sections for iconv). | |
18507 | # Bzzzzt. Thanks for playing, maybe next time. | |
18508 | echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 | |
18509 | echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 | |
18510 | if test "$cross_compiling" = yes; then | |
18511 | ac_sectionLDflags=yes | |
18512 | else | |
18513 | cat >conftest.$ac_ext <<_ACEOF | |
18514 | /* confdefs.h. */ | |
18515 | _ACEOF | |
18516 | cat confdefs.h >>conftest.$ac_ext | |
18517 | cat >>conftest.$ac_ext <<_ACEOF | |
18518 | /* end confdefs.h. */ | |
18519 | ||
18520 | int main(void) | |
18521 | { | |
18522 | try { throw 1; } | |
18523 | catch (...) { }; | |
18524 | return 0; | |
18525 | } | |
18526 | ||
18527 | _ACEOF | |
18528 | rm -f conftest$ac_exeext | |
18529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18530 | (eval $ac_link) 2>&5 | |
18531 | ac_status=$? | |
18532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18535 | (eval $ac_try) 2>&5 | |
18536 | ac_status=$? | |
18537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18538 | (exit $ac_status); }; }; then | |
18539 | ac_sectionLDflags=yes | |
18540 | else | |
18541 | echo "$as_me: program exited with status $ac_status" >&5 | |
18542 | echo "$as_me: failed program was:" >&5 | |
18543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18544 | ||
18545 | ( exit $ac_status ) | |
18546 | ac_sectionLDflags=no | |
18547 | fi | |
18548 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18549 | fi | |
18550 | if test "$ac_test_CFLAGS" = set; then | |
18551 | CFLAGS="$ac_save_CFLAGS" | |
18552 | else | |
18553 | # this is the suspicious part | |
18554 | CFLAGS='' | |
18555 | fi | |
18556 | if test "$ac_sectionLDflags" = "yes"; then | |
18557 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
18558 | fi | |
18559 | echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5 | |
18560 | echo "${ECHO_T}$ac_sectionLDflags" >&6 | |
18561 | fi | |
18562 | ||
18563 | # Set linker optimization flags. | |
18564 | if test x"$with_gnu_ld" = x"yes"; then | |
18565 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
18566 | fi | |
18567 | ||
18568 | ||
18569 | ||
18570 | ||
18571 | ||
18572 | ||
18573 | # Check whether --enable-symvers or --disable-symvers was given. | |
18574 | if test "${enable_symvers+set}" = set; then | |
18575 | enableval="$enable_symvers" | |
18576 | ||
18577 | case "$enableval" in | |
18578 | yes|no|gnu) ;; | |
18579 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5 | |
18580 | echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;} | |
18581 | { (exit 1); exit 1; }; } ;; | |
18582 | esac | |
18583 | ||
18584 | else | |
18585 | enable_symvers=yes | |
18586 | fi; | |
18587 | ||
18588 | ||
18589 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
18590 | # don't know enough about $LD to do tricks... | |
18591 | ||
18592 | # FIXME The following test is too strict, in theory. | |
18593 | if test $enable_shared = no || | |
18594 | test "x$LD" = x || | |
18595 | test x$libgomp_gnu_ld_version = x; then | |
18596 | enable_symvers=no | |
18597 | fi | |
18598 | ||
18599 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
18600 | if test $enable_symvers != no; then | |
18601 | echo "$as_me:$LINENO: checking for shared libgcc" >&5 | |
18602 | echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6 | |
18603 | ac_save_CFLAGS="$CFLAGS" | |
18604 | CFLAGS=' -lgcc_s' | |
18605 | cat >conftest.$ac_ext <<_ACEOF | |
18606 | /* confdefs.h. */ | |
18607 | _ACEOF | |
18608 | cat confdefs.h >>conftest.$ac_ext | |
18609 | cat >>conftest.$ac_ext <<_ACEOF | |
18610 | /* end confdefs.h. */ | |
18611 | ||
18612 | int | |
18613 | main () | |
18614 | { | |
18615 | return 0; | |
18616 | ; | |
18617 | return 0; | |
18618 | } | |
18619 | _ACEOF | |
18620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18622 | (eval $ac_link) 2>conftest.er1 | |
18623 | ac_status=$? | |
18624 | grep -v '^ *+' conftest.er1 >conftest.err | |
18625 | rm -f conftest.er1 | |
18626 | cat conftest.err >&5 | |
18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18628 | (exit $ac_status); } && | |
d349482e AT |
18629 | { ac_try='test -z "$ac_c_werror_flag" |
18630 | || test ! -s conftest.err' | |
953ff289 DN |
18631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18632 | (eval $ac_try) 2>&5 | |
18633 | ac_status=$? | |
18634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18635 | (exit $ac_status); }; } && | |
18636 | { ac_try='test -s conftest$ac_exeext' | |
18637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18638 | (eval $ac_try) 2>&5 | |
18639 | ac_status=$? | |
18640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18641 | (exit $ac_status); }; }; then | |
18642 | libgomp_shared_libgcc=yes | |
18643 | else | |
18644 | echo "$as_me: failed program was:" >&5 | |
18645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18646 | ||
18647 | libgomp_shared_libgcc=no | |
18648 | fi | |
18649 | rm -f conftest.err conftest.$ac_objext \ | |
18650 | conftest$ac_exeext conftest.$ac_ext | |
18651 | CFLAGS="$ac_save_CFLAGS" | |
18652 | if test $libgomp_shared_libgcc = no; then | |
18653 | cat > conftest.c <<EOF | |
18654 | int main (void) { return 0; } | |
18655 | EOF | |
18656 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
18657 | -shared -shared-libgcc -o conftest.so \ | |
18658 | conftest.c -v 2>&1 >/dev/null \ | |
18659 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
18660 | rm -f conftest.c conftest.so | |
18661 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
18662 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
18663 | cat >conftest.$ac_ext <<_ACEOF | |
18664 | /* confdefs.h. */ | |
18665 | _ACEOF | |
18666 | cat confdefs.h >>conftest.$ac_ext | |
18667 | cat >>conftest.$ac_ext <<_ACEOF | |
18668 | /* end confdefs.h. */ | |
18669 | ||
18670 | int | |
18671 | main () | |
18672 | { | |
18673 | return 0; | |
18674 | ; | |
18675 | return 0; | |
18676 | } | |
18677 | _ACEOF | |
18678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18680 | (eval $ac_link) 2>conftest.er1 | |
18681 | ac_status=$? | |
18682 | grep -v '^ *+' conftest.er1 >conftest.err | |
18683 | rm -f conftest.er1 | |
18684 | cat conftest.err >&5 | |
18685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18686 | (exit $ac_status); } && | |
d349482e AT |
18687 | { ac_try='test -z "$ac_c_werror_flag" |
18688 | || test ! -s conftest.err' | |
953ff289 DN |
18689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18690 | (eval $ac_try) 2>&5 | |
18691 | ac_status=$? | |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18693 | (exit $ac_status); }; } && | |
18694 | { ac_try='test -s conftest$ac_exeext' | |
18695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18696 | (eval $ac_try) 2>&5 | |
18697 | ac_status=$? | |
18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18699 | (exit $ac_status); }; }; then | |
18700 | libgomp_shared_libgcc=yes | |
18701 | else | |
18702 | echo "$as_me: failed program was:" >&5 | |
18703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18704 | ||
18705 | fi | |
18706 | rm -f conftest.err conftest.$ac_objext \ | |
18707 | conftest$ac_exeext conftest.$ac_ext | |
18708 | CFLAGS="$ac_save_CFLAGS" | |
18709 | fi | |
18710 | fi | |
18711 | echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5 | |
18712 | echo "${ECHO_T}$libgomp_shared_libgcc" >&6 | |
18713 | fi | |
18714 | ||
18715 | # For GNU ld, we need at least this version. The format is described in | |
18716 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
18717 | libgomp_min_gnu_ld_version=21400 | |
18718 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
18719 | ||
18720 | # Check to see if unspecified "yes" value can win, given results above. | |
18721 | # Change "yes" into either "no" or a style name. | |
18722 | if test $enable_symvers = yes; then | |
18723 | if test $with_gnu_ld = yes && | |
18724 | test $libgomp_shared_libgcc = yes; | |
18725 | then | |
18726 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then | |
18727 | enable_symvers=gnu | |
18728 | else | |
18729 | # The right tools, the right setup, but too old. Fallbacks? | |
18730 | { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
18731 | echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
18732 | { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
18733 | echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
18734 | { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5 | |
18735 | echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
18736 | { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
18737 | echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
18738 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
18739 | # Globbing fix is present, proper block support is not. | |
18740 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
18741 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
18742 | enable_symvers=no | |
18743 | else | |
18744 | # 2.11 or older. | |
18745 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
18746 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
18747 | enable_symvers=no | |
18748 | fi | |
18749 | fi | |
18750 | else | |
18751 | # just fail for now | |
18752 | { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
18753 | echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
18754 | { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5 | |
18755 | echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
18756 | { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
18757 | echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
18758 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
18759 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
18760 | enable_symvers=no | |
18761 | fi | |
18762 | fi | |
18763 | ||
18764 | ||
18765 | ||
18766 | if test $enable_symvers != no; then | |
18767 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
18768 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
18769 | else | |
18770 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' | |
18771 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
18772 | fi | |
18773 | ||
18774 | { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5 | |
18775 | echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
18776 | ||
18777 | ||
a68ab351 JJ |
18778 | if test $enable_symvers = gnu; then |
18779 | ||
18780 | cat >>confdefs.h <<\_ACEOF | |
18781 | #define LIBGOMP_GNU_SYMBOL_VERSIONING 1 | |
18782 | _ACEOF | |
18783 | ||
18784 | fi | |
18785 | ||
953ff289 DN |
18786 | # Get target configury. |
18787 | . ${srcdir}/configure.tgt | |
18788 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
18789 | ||
18790 | # Check for __sync_val_compare_and_swap, but only after the target has | |
18791 | # had a chance to set XCFLAGS. | |
18792 | ||
18793 | echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
18794 | echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6 | |
6d26724a | 18795 | if test "${libgomp_cv_have_sync_builtins+set}" = set; then |
953ff289 DN |
18796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18797 | else | |
18798 | ||
18799 | cat >conftest.$ac_ext <<_ACEOF | |
18800 | /* confdefs.h. */ | |
18801 | _ACEOF | |
18802 | cat confdefs.h >>conftest.$ac_ext | |
18803 | cat >>conftest.$ac_ext <<_ACEOF | |
18804 | /* end confdefs.h. */ | |
18805 | ||
18806 | int | |
18807 | main () | |
18808 | { | |
18809 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
18810 | ; | |
18811 | return 0; | |
18812 | } | |
18813 | _ACEOF | |
18814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18816 | (eval $ac_link) 2>conftest.er1 | |
18817 | ac_status=$? | |
18818 | grep -v '^ *+' conftest.er1 >conftest.err | |
18819 | rm -f conftest.er1 | |
18820 | cat conftest.err >&5 | |
18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18822 | (exit $ac_status); } && | |
d349482e AT |
18823 | { ac_try='test -z "$ac_c_werror_flag" |
18824 | || test ! -s conftest.err' | |
953ff289 DN |
18825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18826 | (eval $ac_try) 2>&5 | |
18827 | ac_status=$? | |
18828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18829 | (exit $ac_status); }; } && | |
18830 | { ac_try='test -s conftest$ac_exeext' | |
18831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18832 | (eval $ac_try) 2>&5 | |
18833 | ac_status=$? | |
18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18835 | (exit $ac_status); }; }; then | |
6d26724a | 18836 | libgomp_cv_have_sync_builtins=yes |
953ff289 DN |
18837 | else |
18838 | echo "$as_me: failed program was:" >&5 | |
18839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18840 | ||
6d26724a | 18841 | libgomp_cv_have_sync_builtins=no |
953ff289 DN |
18842 | fi |
18843 | rm -f conftest.err conftest.$ac_objext \ | |
18844 | conftest$ac_exeext conftest.$ac_ext | |
18845 | fi | |
6d26724a RW |
18846 | echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5 |
18847 | echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6 | |
18848 | if test $libgomp_cv_have_sync_builtins = yes; then | |
953ff289 DN |
18849 | |
18850 | cat >>confdefs.h <<\_ACEOF | |
18851 | #define HAVE_SYNC_BUILTINS 1 | |
18852 | _ACEOF | |
18853 | ||
18854 | fi | |
18855 | ||
18856 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
18857 | ||
18858 | ||
18859 | ||
18860 | ||
18861 | ||
18862 | # Cleanup and exit. | |
18863 | CFLAGS="$save_CFLAGS" | |
18864 | cat >confcache <<\_ACEOF | |
18865 | # This file is a shell script that caches the results of configure | |
18866 | # tests run on this system so they can be shared between configure | |
18867 | # scripts and configure runs, see configure's option --config-cache. | |
18868 | # It is not useful on other systems. If it contains results you don't | |
18869 | # want to keep, you may remove or edit it. | |
18870 | # | |
18871 | # config.status only pays attention to the cache file if you give it | |
18872 | # the --recheck option to rerun configure. | |
18873 | # | |
18874 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18875 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18876 | # following values. | |
18877 | ||
18878 | _ACEOF | |
18879 | ||
18880 | # The following way of writing the cache mishandles newlines in values, | |
18881 | # but we know of no workaround that is simple, portable, and efficient. | |
18882 | # So, don't put newlines in cache variables' values. | |
18883 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18884 | # and sets the high bit in the cache file unless we assign to the vars. | |
18885 | { | |
18886 | (set) 2>&1 | | |
18887 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18888 | *ac_space=\ *) | |
18889 | # `set' does not quote correctly, so add quotes (double-quote | |
18890 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18891 | sed -n \ | |
18892 | "s/'/'\\\\''/g; | |
18893 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18894 | ;; | |
18895 | *) | |
18896 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18897 | sed -n \ | |
18898 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
18899 | ;; | |
18900 | esac; | |
18901 | } | | |
18902 | sed ' | |
18903 | t clear | |
18904 | : clear | |
18905 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18906 | t end | |
18907 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18908 | : end' >>confcache | |
18909 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
18910 | if test -w $cache_file; then | |
18911 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
18912 | cat confcache >$cache_file | |
18913 | else | |
18914 | echo "not updating unwritable cache $cache_file" | |
18915 | fi | |
18916 | fi | |
18917 | rm -f confcache | |
18918 | ||
18919 | if test ${multilib} = yes; then | |
18920 | multilib_arg="--enable-multilib" | |
18921 | else | |
18922 | multilib_arg= | |
18923 | fi | |
18924 | ||
18925 | # Set up the set of libraries that we need to link against for libgomp. | |
192a50ad | 18926 | # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, |
953ff289 DN |
18927 | # which will force linkage against -lpthread (or equivalent for the system). |
18928 | # That's not 100% ideal, but about the best we can do easily. | |
18929 | if test $enable_shared = yes; then | |
18930 | link_gomp="-lgomp %{static: $LIBS}" | |
18931 | else | |
18932 | link_gomp="-lgomp $LIBS" | |
18933 | fi | |
18934 | ||
18935 | ||
18936 | ||
18937 | ||
18938 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
18939 | USE_FORTRAN_TRUE= | |
18940 | USE_FORTRAN_FALSE='#' | |
18941 | else | |
18942 | USE_FORTRAN_TRUE='#' | |
18943 | USE_FORTRAN_FALSE= | |
18944 | fi | |
18945 | ||
18946 | ||
03b8fe49 PB |
18947 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document |
18948 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
18949 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
18950 | # need to copy this macro to our acinclude.m4. | |
18951 | save_CFLAGS="$CFLAGS" | |
18952 | for i in $config_path; do | |
18953 | if test -f $srcdir/config/$i/omp-lock.h; then | |
a68ab351 | 18954 | CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" |
03b8fe49 PB |
18955 | break |
18956 | fi | |
18957 | done | |
18958 | ||
18959 | if test "$cross_compiling" = yes; then | |
18960 | # Depending upon the size, compute the lo and hi bounds. | |
18961 | cat >conftest.$ac_ext <<_ACEOF | |
18962 | /* confdefs.h. */ | |
18963 | _ACEOF | |
18964 | cat confdefs.h >>conftest.$ac_ext | |
18965 | cat >>conftest.$ac_ext <<_ACEOF | |
18966 | /* end confdefs.h. */ | |
18967 | ||
18968 | int | |
18969 | main () | |
18970 | { | |
18971 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)]; | |
18972 | test_array [0] = 0 | |
18973 | ||
18974 | ; | |
18975 | return 0; | |
18976 | } | |
18977 | _ACEOF | |
18978 | rm -f conftest.$ac_objext | |
18979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18980 | (eval $ac_compile) 2>conftest.er1 | |
18981 | ac_status=$? | |
18982 | grep -v '^ *+' conftest.er1 >conftest.err | |
18983 | rm -f conftest.er1 | |
18984 | cat conftest.err >&5 | |
18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18986 | (exit $ac_status); } && | |
d349482e AT |
18987 | { ac_try='test -z "$ac_c_werror_flag" |
18988 | || test ! -s conftest.err' | |
03b8fe49 PB |
18989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18990 | (eval $ac_try) 2>&5 | |
18991 | ac_status=$? | |
18992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18993 | (exit $ac_status); }; } && | |
18994 | { ac_try='test -s conftest.$ac_objext' | |
18995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18996 | (eval $ac_try) 2>&5 | |
18997 | ac_status=$? | |
18998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18999 | (exit $ac_status); }; }; then | |
19000 | ac_lo=0 ac_mid=0 | |
19001 | while :; do | |
19002 | cat >conftest.$ac_ext <<_ACEOF | |
19003 | /* confdefs.h. */ | |
19004 | _ACEOF | |
19005 | cat confdefs.h >>conftest.$ac_ext | |
19006 | cat >>conftest.$ac_ext <<_ACEOF | |
19007 | /* end confdefs.h. */ | |
19008 | ||
19009 | int | |
19010 | main () | |
19011 | { | |
19012 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
19013 | test_array [0] = 0 | |
19014 | ||
19015 | ; | |
19016 | return 0; | |
19017 | } | |
19018 | _ACEOF | |
19019 | rm -f conftest.$ac_objext | |
19020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19021 | (eval $ac_compile) 2>conftest.er1 | |
19022 | ac_status=$? | |
19023 | grep -v '^ *+' conftest.er1 >conftest.err | |
19024 | rm -f conftest.er1 | |
19025 | cat conftest.err >&5 | |
19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19027 | (exit $ac_status); } && | |
d349482e AT |
19028 | { ac_try='test -z "$ac_c_werror_flag" |
19029 | || test ! -s conftest.err' | |
03b8fe49 PB |
19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19031 | (eval $ac_try) 2>&5 | |
19032 | ac_status=$? | |
19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19034 | (exit $ac_status); }; } && | |
19035 | { ac_try='test -s conftest.$ac_objext' | |
19036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19037 | (eval $ac_try) 2>&5 | |
19038 | ac_status=$? | |
19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19040 | (exit $ac_status); }; }; then | |
19041 | ac_hi=$ac_mid; break | |
19042 | else | |
19043 | echo "$as_me: failed program was:" >&5 | |
19044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19045 | ||
19046 | ac_lo=`expr $ac_mid + 1` | |
19047 | if test $ac_lo -le $ac_mid; then | |
19048 | ac_lo= ac_hi= | |
19049 | break | |
19050 | fi | |
19051 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19052 | fi | |
19053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19054 | done | |
19055 | else | |
19056 | echo "$as_me: failed program was:" >&5 | |
19057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19058 | ||
19059 | cat >conftest.$ac_ext <<_ACEOF | |
19060 | /* confdefs.h. */ | |
19061 | _ACEOF | |
19062 | cat confdefs.h >>conftest.$ac_ext | |
19063 | cat >>conftest.$ac_ext <<_ACEOF | |
19064 | /* end confdefs.h. */ | |
19065 | ||
19066 | int | |
19067 | main () | |
19068 | { | |
19069 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)]; | |
19070 | test_array [0] = 0 | |
19071 | ||
19072 | ; | |
19073 | return 0; | |
19074 | } | |
19075 | _ACEOF | |
19076 | rm -f conftest.$ac_objext | |
19077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19078 | (eval $ac_compile) 2>conftest.er1 | |
19079 | ac_status=$? | |
19080 | grep -v '^ *+' conftest.er1 >conftest.err | |
19081 | rm -f conftest.er1 | |
19082 | cat conftest.err >&5 | |
19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19084 | (exit $ac_status); } && | |
d349482e AT |
19085 | { ac_try='test -z "$ac_c_werror_flag" |
19086 | || test ! -s conftest.err' | |
03b8fe49 PB |
19087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19088 | (eval $ac_try) 2>&5 | |
19089 | ac_status=$? | |
19090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19091 | (exit $ac_status); }; } && | |
19092 | { ac_try='test -s conftest.$ac_objext' | |
19093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19094 | (eval $ac_try) 2>&5 | |
19095 | ac_status=$? | |
19096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19097 | (exit $ac_status); }; }; then | |
19098 | ac_hi=-1 ac_mid=-1 | |
19099 | while :; do | |
19100 | cat >conftest.$ac_ext <<_ACEOF | |
19101 | /* confdefs.h. */ | |
19102 | _ACEOF | |
19103 | cat confdefs.h >>conftest.$ac_ext | |
19104 | cat >>conftest.$ac_ext <<_ACEOF | |
19105 | /* end confdefs.h. */ | |
19106 | ||
19107 | int | |
19108 | main () | |
19109 | { | |
19110 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)]; | |
19111 | test_array [0] = 0 | |
19112 | ||
19113 | ; | |
19114 | return 0; | |
19115 | } | |
19116 | _ACEOF | |
19117 | rm -f conftest.$ac_objext | |
19118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19119 | (eval $ac_compile) 2>conftest.er1 | |
19120 | ac_status=$? | |
19121 | grep -v '^ *+' conftest.er1 >conftest.err | |
19122 | rm -f conftest.er1 | |
19123 | cat conftest.err >&5 | |
19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19125 | (exit $ac_status); } && | |
d349482e AT |
19126 | { ac_try='test -z "$ac_c_werror_flag" |
19127 | || test ! -s conftest.err' | |
03b8fe49 PB |
19128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19129 | (eval $ac_try) 2>&5 | |
19130 | ac_status=$? | |
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19132 | (exit $ac_status); }; } && | |
19133 | { ac_try='test -s conftest.$ac_objext' | |
19134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19135 | (eval $ac_try) 2>&5 | |
19136 | ac_status=$? | |
19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19138 | (exit $ac_status); }; }; then | |
19139 | ac_lo=$ac_mid; break | |
19140 | else | |
19141 | echo "$as_me: failed program was:" >&5 | |
19142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19143 | ||
19144 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19145 | if test $ac_mid -le $ac_hi; then | |
19146 | ac_lo= ac_hi= | |
19147 | break | |
19148 | fi | |
19149 | ac_mid=`expr 2 '*' $ac_mid` | |
19150 | fi | |
19151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19152 | done | |
19153 | else | |
19154 | echo "$as_me: failed program was:" >&5 | |
19155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19156 | ||
19157 | ac_lo= ac_hi= | |
19158 | fi | |
19159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19160 | fi | |
19161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19162 | # Binary search between lo and hi bounds. | |
19163 | while test "x$ac_lo" != "x$ac_hi"; do | |
19164 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19165 | cat >conftest.$ac_ext <<_ACEOF | |
19166 | /* confdefs.h. */ | |
19167 | _ACEOF | |
19168 | cat confdefs.h >>conftest.$ac_ext | |
19169 | cat >>conftest.$ac_ext <<_ACEOF | |
19170 | /* end confdefs.h. */ | |
19171 | ||
19172 | int | |
19173 | main () | |
19174 | { | |
19175 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
19176 | test_array [0] = 0 | |
19177 | ||
19178 | ; | |
19179 | return 0; | |
19180 | } | |
19181 | _ACEOF | |
19182 | rm -f conftest.$ac_objext | |
19183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19184 | (eval $ac_compile) 2>conftest.er1 | |
19185 | ac_status=$? | |
19186 | grep -v '^ *+' conftest.er1 >conftest.err | |
19187 | rm -f conftest.er1 | |
19188 | cat conftest.err >&5 | |
19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19190 | (exit $ac_status); } && | |
d349482e AT |
19191 | { ac_try='test -z "$ac_c_werror_flag" |
19192 | || test ! -s conftest.err' | |
03b8fe49 PB |
19193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19194 | (eval $ac_try) 2>&5 | |
19195 | ac_status=$? | |
19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19197 | (exit $ac_status); }; } && | |
19198 | { ac_try='test -s conftest.$ac_objext' | |
19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19200 | (eval $ac_try) 2>&5 | |
19201 | ac_status=$? | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); }; }; then | |
19204 | ac_hi=$ac_mid | |
19205 | else | |
19206 | echo "$as_me: failed program was:" >&5 | |
19207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19208 | ||
19209 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19210 | fi | |
19211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19212 | done | |
19213 | case $ac_lo in | |
19214 | ?*) OMP_LOCK_SIZE=$ac_lo;; | |
19215 | '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
19216 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
19217 | { (exit 1); exit 1; }; } ;; | |
19218 | esac | |
19219 | else | |
19220 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
19221 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
19222 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19223 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
19224 | See \`config.log' for more details." >&5 |
19225 | echo "$as_me: error: cannot run test program while cross compiling | |
19226 | See \`config.log' for more details." >&2;} | |
18c04407 | 19227 | { (exit 1); exit 1; }; }; } |
03b8fe49 PB |
19228 | else |
19229 | cat >conftest.$ac_ext <<_ACEOF | |
19230 | /* confdefs.h. */ | |
19231 | _ACEOF | |
19232 | cat confdefs.h >>conftest.$ac_ext | |
19233 | cat >>conftest.$ac_ext <<_ACEOF | |
19234 | /* end confdefs.h. */ | |
19235 | ||
19236 | long longval () { return sizeof (omp_lock_t); } | |
19237 | unsigned long ulongval () { return sizeof (omp_lock_t); } | |
19238 | #include <stdio.h> | |
19239 | #include <stdlib.h> | |
19240 | int | |
19241 | main () | |
19242 | { | |
19243 | ||
19244 | FILE *f = fopen ("conftest.val", "w"); | |
19245 | if (! f) | |
19246 | exit (1); | |
19247 | if ((sizeof (omp_lock_t)) < 0) | |
19248 | { | |
19249 | long i = longval (); | |
19250 | if (i != (sizeof (omp_lock_t))) | |
19251 | exit (1); | |
19252 | fprintf (f, "%ld\n", i); | |
19253 | } | |
19254 | else | |
19255 | { | |
19256 | unsigned long i = ulongval (); | |
19257 | if (i != (sizeof (omp_lock_t))) | |
19258 | exit (1); | |
19259 | fprintf (f, "%lu\n", i); | |
19260 | } | |
19261 | exit (ferror (f) || fclose (f) != 0); | |
19262 | ||
19263 | ; | |
19264 | return 0; | |
19265 | } | |
19266 | _ACEOF | |
19267 | rm -f conftest$ac_exeext | |
19268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19269 | (eval $ac_link) 2>&5 | |
19270 | ac_status=$? | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19274 | (eval $ac_try) 2>&5 | |
19275 | ac_status=$? | |
19276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19277 | (exit $ac_status); }; }; then | |
19278 | OMP_LOCK_SIZE=`cat conftest.val` | |
19279 | else | |
19280 | echo "$as_me: program exited with status $ac_status" >&5 | |
19281 | echo "$as_me: failed program was:" >&5 | |
19282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19283 | ||
19284 | ( exit $ac_status ) | |
19285 | { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
19286 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
19287 | { (exit 1); exit 1; }; } | |
19288 | fi | |
19289 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19290 | fi | |
19291 | fi | |
19292 | rm -f conftest.val | |
19293 | if test "$cross_compiling" = yes; then | |
19294 | # Depending upon the size, compute the lo and hi bounds. | |
19295 | cat >conftest.$ac_ext <<_ACEOF | |
19296 | /* confdefs.h. */ | |
19297 | _ACEOF | |
19298 | cat confdefs.h >>conftest.$ac_ext | |
19299 | cat >>conftest.$ac_ext <<_ACEOF | |
19300 | /* end confdefs.h. */ | |
19301 | ||
19302 | int | |
19303 | main () | |
19304 | { | |
19305 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)]; | |
19306 | test_array [0] = 0 | |
19307 | ||
19308 | ; | |
19309 | return 0; | |
19310 | } | |
19311 | _ACEOF | |
19312 | rm -f conftest.$ac_objext | |
19313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19314 | (eval $ac_compile) 2>conftest.er1 | |
19315 | ac_status=$? | |
19316 | grep -v '^ *+' conftest.er1 >conftest.err | |
19317 | rm -f conftest.er1 | |
19318 | cat conftest.err >&5 | |
19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19320 | (exit $ac_status); } && | |
d349482e AT |
19321 | { ac_try='test -z "$ac_c_werror_flag" |
19322 | || test ! -s conftest.err' | |
03b8fe49 PB |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; } && | |
19328 | { ac_try='test -s conftest.$ac_objext' | |
19329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19330 | (eval $ac_try) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); }; }; then | |
19334 | ac_lo=0 ac_mid=0 | |
19335 | while :; do | |
19336 | cat >conftest.$ac_ext <<_ACEOF | |
19337 | /* confdefs.h. */ | |
19338 | _ACEOF | |
19339 | cat confdefs.h >>conftest.$ac_ext | |
19340 | cat >>conftest.$ac_ext <<_ACEOF | |
19341 | /* end confdefs.h. */ | |
19342 | ||
19343 | int | |
19344 | main () | |
19345 | { | |
19346 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
19347 | test_array [0] = 0 | |
19348 | ||
19349 | ; | |
19350 | return 0; | |
19351 | } | |
19352 | _ACEOF | |
19353 | rm -f conftest.$ac_objext | |
19354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19355 | (eval $ac_compile) 2>conftest.er1 | |
19356 | ac_status=$? | |
19357 | grep -v '^ *+' conftest.er1 >conftest.err | |
19358 | rm -f conftest.er1 | |
19359 | cat conftest.err >&5 | |
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19361 | (exit $ac_status); } && | |
d349482e AT |
19362 | { ac_try='test -z "$ac_c_werror_flag" |
19363 | || test ! -s conftest.err' | |
03b8fe49 PB |
19364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19365 | (eval $ac_try) 2>&5 | |
19366 | ac_status=$? | |
19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19368 | (exit $ac_status); }; } && | |
19369 | { ac_try='test -s conftest.$ac_objext' | |
19370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19371 | (eval $ac_try) 2>&5 | |
19372 | ac_status=$? | |
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19374 | (exit $ac_status); }; }; then | |
19375 | ac_hi=$ac_mid; break | |
19376 | else | |
19377 | echo "$as_me: failed program was:" >&5 | |
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19379 | ||
19380 | ac_lo=`expr $ac_mid + 1` | |
19381 | if test $ac_lo -le $ac_mid; then | |
19382 | ac_lo= ac_hi= | |
19383 | break | |
19384 | fi | |
19385 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19386 | fi | |
19387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19388 | done | |
19389 | else | |
19390 | echo "$as_me: failed program was:" >&5 | |
19391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19392 | ||
19393 | cat >conftest.$ac_ext <<_ACEOF | |
19394 | /* confdefs.h. */ | |
19395 | _ACEOF | |
19396 | cat confdefs.h >>conftest.$ac_ext | |
19397 | cat >>conftest.$ac_ext <<_ACEOF | |
19398 | /* end confdefs.h. */ | |
19399 | ||
19400 | int | |
19401 | main () | |
19402 | { | |
19403 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)]; | |
19404 | test_array [0] = 0 | |
19405 | ||
19406 | ; | |
19407 | return 0; | |
19408 | } | |
19409 | _ACEOF | |
19410 | rm -f conftest.$ac_objext | |
19411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19412 | (eval $ac_compile) 2>conftest.er1 | |
19413 | ac_status=$? | |
19414 | grep -v '^ *+' conftest.er1 >conftest.err | |
19415 | rm -f conftest.er1 | |
19416 | cat conftest.err >&5 | |
19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19418 | (exit $ac_status); } && | |
d349482e AT |
19419 | { ac_try='test -z "$ac_c_werror_flag" |
19420 | || test ! -s conftest.err' | |
03b8fe49 PB |
19421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19422 | (eval $ac_try) 2>&5 | |
19423 | ac_status=$? | |
19424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19425 | (exit $ac_status); }; } && | |
19426 | { ac_try='test -s conftest.$ac_objext' | |
19427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19428 | (eval $ac_try) 2>&5 | |
19429 | ac_status=$? | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); }; }; then | |
19432 | ac_hi=-1 ac_mid=-1 | |
19433 | while :; do | |
19434 | cat >conftest.$ac_ext <<_ACEOF | |
19435 | /* confdefs.h. */ | |
19436 | _ACEOF | |
19437 | cat confdefs.h >>conftest.$ac_ext | |
19438 | cat >>conftest.$ac_ext <<_ACEOF | |
19439 | /* end confdefs.h. */ | |
19440 | ||
19441 | int | |
19442 | main () | |
19443 | { | |
19444 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)]; | |
19445 | test_array [0] = 0 | |
19446 | ||
19447 | ; | |
19448 | return 0; | |
19449 | } | |
19450 | _ACEOF | |
19451 | rm -f conftest.$ac_objext | |
19452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19453 | (eval $ac_compile) 2>conftest.er1 | |
19454 | ac_status=$? | |
19455 | grep -v '^ *+' conftest.er1 >conftest.err | |
19456 | rm -f conftest.er1 | |
19457 | cat conftest.err >&5 | |
19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); } && | |
d349482e AT |
19460 | { ac_try='test -z "$ac_c_werror_flag" |
19461 | || test ! -s conftest.err' | |
03b8fe49 PB |
19462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19463 | (eval $ac_try) 2>&5 | |
19464 | ac_status=$? | |
19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19466 | (exit $ac_status); }; } && | |
19467 | { ac_try='test -s conftest.$ac_objext' | |
19468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19469 | (eval $ac_try) 2>&5 | |
19470 | ac_status=$? | |
19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19472 | (exit $ac_status); }; }; then | |
19473 | ac_lo=$ac_mid; break | |
19474 | else | |
19475 | echo "$as_me: failed program was:" >&5 | |
19476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19477 | ||
19478 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19479 | if test $ac_mid -le $ac_hi; then | |
19480 | ac_lo= ac_hi= | |
19481 | break | |
19482 | fi | |
19483 | ac_mid=`expr 2 '*' $ac_mid` | |
19484 | fi | |
19485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19486 | done | |
19487 | else | |
19488 | echo "$as_me: failed program was:" >&5 | |
19489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19490 | ||
19491 | ac_lo= ac_hi= | |
19492 | fi | |
19493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19494 | fi | |
19495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19496 | # Binary search between lo and hi bounds. | |
19497 | while test "x$ac_lo" != "x$ac_hi"; do | |
19498 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19499 | cat >conftest.$ac_ext <<_ACEOF | |
19500 | /* confdefs.h. */ | |
19501 | _ACEOF | |
19502 | cat confdefs.h >>conftest.$ac_ext | |
19503 | cat >>conftest.$ac_ext <<_ACEOF | |
19504 | /* end confdefs.h. */ | |
19505 | ||
19506 | int | |
19507 | main () | |
19508 | { | |
19509 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
19510 | test_array [0] = 0 | |
19511 | ||
19512 | ; | |
19513 | return 0; | |
19514 | } | |
19515 | _ACEOF | |
19516 | rm -f conftest.$ac_objext | |
19517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19518 | (eval $ac_compile) 2>conftest.er1 | |
19519 | ac_status=$? | |
19520 | grep -v '^ *+' conftest.er1 >conftest.err | |
19521 | rm -f conftest.er1 | |
19522 | cat conftest.err >&5 | |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19524 | (exit $ac_status); } && | |
d349482e AT |
19525 | { ac_try='test -z "$ac_c_werror_flag" |
19526 | || test ! -s conftest.err' | |
03b8fe49 PB |
19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19528 | (eval $ac_try) 2>&5 | |
19529 | ac_status=$? | |
19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19531 | (exit $ac_status); }; } && | |
19532 | { ac_try='test -s conftest.$ac_objext' | |
19533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19534 | (eval $ac_try) 2>&5 | |
19535 | ac_status=$? | |
19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19537 | (exit $ac_status); }; }; then | |
19538 | ac_hi=$ac_mid | |
19539 | else | |
19540 | echo "$as_me: failed program was:" >&5 | |
19541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19542 | ||
19543 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19544 | fi | |
19545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19546 | done | |
19547 | case $ac_lo in | |
19548 | ?*) OMP_LOCK_ALIGN=$ac_lo;; | |
19549 | '') ;; | |
19550 | esac | |
19551 | else | |
19552 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
19553 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
19554 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19555 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
19556 | See \`config.log' for more details." >&5 |
19557 | echo "$as_me: error: cannot run test program while cross compiling | |
19558 | See \`config.log' for more details." >&2;} | |
18c04407 | 19559 | { (exit 1); exit 1; }; }; } |
03b8fe49 PB |
19560 | else |
19561 | cat >conftest.$ac_ext <<_ACEOF | |
19562 | /* confdefs.h. */ | |
19563 | _ACEOF | |
19564 | cat confdefs.h >>conftest.$ac_ext | |
19565 | cat >>conftest.$ac_ext <<_ACEOF | |
19566 | /* end confdefs.h. */ | |
19567 | ||
19568 | long longval () { return __alignof (omp_lock_t); } | |
19569 | unsigned long ulongval () { return __alignof (omp_lock_t); } | |
19570 | #include <stdio.h> | |
19571 | #include <stdlib.h> | |
19572 | int | |
19573 | main () | |
19574 | { | |
19575 | ||
19576 | FILE *f = fopen ("conftest.val", "w"); | |
19577 | if (! f) | |
19578 | exit (1); | |
19579 | if ((__alignof (omp_lock_t)) < 0) | |
19580 | { | |
19581 | long i = longval (); | |
19582 | if (i != (__alignof (omp_lock_t))) | |
19583 | exit (1); | |
19584 | fprintf (f, "%ld\n", i); | |
19585 | } | |
19586 | else | |
19587 | { | |
19588 | unsigned long i = ulongval (); | |
19589 | if (i != (__alignof (omp_lock_t))) | |
19590 | exit (1); | |
19591 | fprintf (f, "%lu\n", i); | |
19592 | } | |
19593 | exit (ferror (f) || fclose (f) != 0); | |
19594 | ||
19595 | ; | |
19596 | return 0; | |
19597 | } | |
19598 | _ACEOF | |
19599 | rm -f conftest$ac_exeext | |
19600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19601 | (eval $ac_link) 2>&5 | |
19602 | ac_status=$? | |
19603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19606 | (eval $ac_try) 2>&5 | |
19607 | ac_status=$? | |
19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19609 | (exit $ac_status); }; }; then | |
19610 | OMP_LOCK_ALIGN=`cat conftest.val` | |
19611 | else | |
19612 | echo "$as_me: program exited with status $ac_status" >&5 | |
19613 | echo "$as_me: failed program was:" >&5 | |
19614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19615 | ||
19616 | fi | |
19617 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19618 | fi | |
19619 | fi | |
19620 | rm -f conftest.val | |
19621 | if test "$cross_compiling" = yes; then | |
19622 | # Depending upon the size, compute the lo and hi bounds. | |
19623 | cat >conftest.$ac_ext <<_ACEOF | |
19624 | /* confdefs.h. */ | |
19625 | _ACEOF | |
19626 | cat confdefs.h >>conftest.$ac_ext | |
19627 | cat >>conftest.$ac_ext <<_ACEOF | |
19628 | /* end confdefs.h. */ | |
19629 | ||
19630 | int | |
19631 | main () | |
19632 | { | |
19633 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)]; | |
19634 | test_array [0] = 0 | |
19635 | ||
19636 | ; | |
19637 | return 0; | |
19638 | } | |
19639 | _ACEOF | |
19640 | rm -f conftest.$ac_objext | |
19641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19642 | (eval $ac_compile) 2>conftest.er1 | |
19643 | ac_status=$? | |
19644 | grep -v '^ *+' conftest.er1 >conftest.err | |
19645 | rm -f conftest.er1 | |
19646 | cat conftest.err >&5 | |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 | (exit $ac_status); } && | |
d349482e AT |
19649 | { ac_try='test -z "$ac_c_werror_flag" |
19650 | || test ! -s conftest.err' | |
03b8fe49 PB |
19651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19652 | (eval $ac_try) 2>&5 | |
19653 | ac_status=$? | |
19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19655 | (exit $ac_status); }; } && | |
19656 | { ac_try='test -s conftest.$ac_objext' | |
19657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19658 | (eval $ac_try) 2>&5 | |
19659 | ac_status=$? | |
19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19661 | (exit $ac_status); }; }; then | |
19662 | ac_lo=0 ac_mid=0 | |
19663 | while :; do | |
19664 | cat >conftest.$ac_ext <<_ACEOF | |
19665 | /* confdefs.h. */ | |
19666 | _ACEOF | |
19667 | cat confdefs.h >>conftest.$ac_ext | |
19668 | cat >>conftest.$ac_ext <<_ACEOF | |
19669 | /* end confdefs.h. */ | |
19670 | ||
19671 | int | |
19672 | main () | |
19673 | { | |
19674 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
19675 | test_array [0] = 0 | |
19676 | ||
19677 | ; | |
19678 | return 0; | |
19679 | } | |
19680 | _ACEOF | |
19681 | rm -f conftest.$ac_objext | |
19682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19683 | (eval $ac_compile) 2>conftest.er1 | |
19684 | ac_status=$? | |
19685 | grep -v '^ *+' conftest.er1 >conftest.err | |
19686 | rm -f conftest.er1 | |
19687 | cat conftest.err >&5 | |
19688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19689 | (exit $ac_status); } && | |
d349482e AT |
19690 | { ac_try='test -z "$ac_c_werror_flag" |
19691 | || test ! -s conftest.err' | |
03b8fe49 PB |
19692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19693 | (eval $ac_try) 2>&5 | |
19694 | ac_status=$? | |
19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19696 | (exit $ac_status); }; } && | |
19697 | { ac_try='test -s conftest.$ac_objext' | |
19698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19699 | (eval $ac_try) 2>&5 | |
19700 | ac_status=$? | |
19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19702 | (exit $ac_status); }; }; then | |
19703 | ac_hi=$ac_mid; break | |
19704 | else | |
19705 | echo "$as_me: failed program was:" >&5 | |
19706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19707 | ||
19708 | ac_lo=`expr $ac_mid + 1` | |
19709 | if test $ac_lo -le $ac_mid; then | |
19710 | ac_lo= ac_hi= | |
19711 | break | |
19712 | fi | |
19713 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19714 | fi | |
19715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19716 | done | |
19717 | else | |
19718 | echo "$as_me: failed program was:" >&5 | |
19719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19720 | ||
19721 | cat >conftest.$ac_ext <<_ACEOF | |
19722 | /* confdefs.h. */ | |
19723 | _ACEOF | |
19724 | cat confdefs.h >>conftest.$ac_ext | |
19725 | cat >>conftest.$ac_ext <<_ACEOF | |
19726 | /* end confdefs.h. */ | |
19727 | ||
19728 | int | |
19729 | main () | |
19730 | { | |
19731 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)]; | |
19732 | test_array [0] = 0 | |
19733 | ||
19734 | ; | |
19735 | return 0; | |
19736 | } | |
19737 | _ACEOF | |
19738 | rm -f conftest.$ac_objext | |
19739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19740 | (eval $ac_compile) 2>conftest.er1 | |
19741 | ac_status=$? | |
19742 | grep -v '^ *+' conftest.er1 >conftest.err | |
19743 | rm -f conftest.er1 | |
19744 | cat conftest.err >&5 | |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19746 | (exit $ac_status); } && | |
d349482e AT |
19747 | { ac_try='test -z "$ac_c_werror_flag" |
19748 | || test ! -s conftest.err' | |
03b8fe49 PB |
19749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19750 | (eval $ac_try) 2>&5 | |
19751 | ac_status=$? | |
19752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19753 | (exit $ac_status); }; } && | |
19754 | { ac_try='test -s conftest.$ac_objext' | |
19755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19756 | (eval $ac_try) 2>&5 | |
19757 | ac_status=$? | |
19758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19759 | (exit $ac_status); }; }; then | |
19760 | ac_hi=-1 ac_mid=-1 | |
19761 | while :; do | |
19762 | cat >conftest.$ac_ext <<_ACEOF | |
19763 | /* confdefs.h. */ | |
19764 | _ACEOF | |
19765 | cat confdefs.h >>conftest.$ac_ext | |
19766 | cat >>conftest.$ac_ext <<_ACEOF | |
19767 | /* end confdefs.h. */ | |
19768 | ||
19769 | int | |
19770 | main () | |
19771 | { | |
19772 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)]; | |
19773 | test_array [0] = 0 | |
19774 | ||
19775 | ; | |
19776 | return 0; | |
19777 | } | |
19778 | _ACEOF | |
19779 | rm -f conftest.$ac_objext | |
19780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19781 | (eval $ac_compile) 2>conftest.er1 | |
19782 | ac_status=$? | |
19783 | grep -v '^ *+' conftest.er1 >conftest.err | |
19784 | rm -f conftest.er1 | |
19785 | cat conftest.err >&5 | |
19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19787 | (exit $ac_status); } && | |
d349482e AT |
19788 | { ac_try='test -z "$ac_c_werror_flag" |
19789 | || test ! -s conftest.err' | |
03b8fe49 PB |
19790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19791 | (eval $ac_try) 2>&5 | |
19792 | ac_status=$? | |
19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19794 | (exit $ac_status); }; } && | |
19795 | { ac_try='test -s conftest.$ac_objext' | |
19796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19797 | (eval $ac_try) 2>&5 | |
19798 | ac_status=$? | |
19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19800 | (exit $ac_status); }; }; then | |
19801 | ac_lo=$ac_mid; break | |
19802 | else | |
19803 | echo "$as_me: failed program was:" >&5 | |
19804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19805 | ||
19806 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19807 | if test $ac_mid -le $ac_hi; then | |
19808 | ac_lo= ac_hi= | |
19809 | break | |
19810 | fi | |
19811 | ac_mid=`expr 2 '*' $ac_mid` | |
19812 | fi | |
19813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19814 | done | |
19815 | else | |
19816 | echo "$as_me: failed program was:" >&5 | |
19817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19818 | ||
19819 | ac_lo= ac_hi= | |
19820 | fi | |
19821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19822 | fi | |
19823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19824 | # Binary search between lo and hi bounds. | |
19825 | while test "x$ac_lo" != "x$ac_hi"; do | |
19826 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19827 | cat >conftest.$ac_ext <<_ACEOF | |
19828 | /* confdefs.h. */ | |
19829 | _ACEOF | |
19830 | cat confdefs.h >>conftest.$ac_ext | |
19831 | cat >>conftest.$ac_ext <<_ACEOF | |
19832 | /* end confdefs.h. */ | |
19833 | ||
19834 | int | |
19835 | main () | |
19836 | { | |
19837 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
19838 | test_array [0] = 0 | |
19839 | ||
19840 | ; | |
19841 | return 0; | |
19842 | } | |
19843 | _ACEOF | |
19844 | rm -f conftest.$ac_objext | |
19845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19846 | (eval $ac_compile) 2>conftest.er1 | |
19847 | ac_status=$? | |
19848 | grep -v '^ *+' conftest.er1 >conftest.err | |
19849 | rm -f conftest.er1 | |
19850 | cat conftest.err >&5 | |
19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19852 | (exit $ac_status); } && | |
d349482e AT |
19853 | { ac_try='test -z "$ac_c_werror_flag" |
19854 | || test ! -s conftest.err' | |
03b8fe49 PB |
19855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19856 | (eval $ac_try) 2>&5 | |
19857 | ac_status=$? | |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); }; } && | |
19860 | { ac_try='test -s conftest.$ac_objext' | |
19861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19862 | (eval $ac_try) 2>&5 | |
19863 | ac_status=$? | |
19864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19865 | (exit $ac_status); }; }; then | |
19866 | ac_hi=$ac_mid | |
19867 | else | |
19868 | echo "$as_me: failed program was:" >&5 | |
19869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19870 | ||
19871 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19872 | fi | |
19873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19874 | done | |
19875 | case $ac_lo in | |
19876 | ?*) OMP_NEST_LOCK_SIZE=$ac_lo;; | |
19877 | '') ;; | |
19878 | esac | |
19879 | else | |
19880 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
19881 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
19882 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19883 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
19884 | See \`config.log' for more details." >&5 |
19885 | echo "$as_me: error: cannot run test program while cross compiling | |
19886 | See \`config.log' for more details." >&2;} | |
18c04407 | 19887 | { (exit 1); exit 1; }; }; } |
03b8fe49 PB |
19888 | else |
19889 | cat >conftest.$ac_ext <<_ACEOF | |
19890 | /* confdefs.h. */ | |
19891 | _ACEOF | |
19892 | cat confdefs.h >>conftest.$ac_ext | |
19893 | cat >>conftest.$ac_ext <<_ACEOF | |
19894 | /* end confdefs.h. */ | |
19895 | ||
19896 | long longval () { return sizeof (omp_nest_lock_t); } | |
19897 | unsigned long ulongval () { return sizeof (omp_nest_lock_t); } | |
19898 | #include <stdio.h> | |
19899 | #include <stdlib.h> | |
19900 | int | |
19901 | main () | |
19902 | { | |
19903 | ||
19904 | FILE *f = fopen ("conftest.val", "w"); | |
19905 | if (! f) | |
19906 | exit (1); | |
19907 | if ((sizeof (omp_nest_lock_t)) < 0) | |
19908 | { | |
19909 | long i = longval (); | |
19910 | if (i != (sizeof (omp_nest_lock_t))) | |
19911 | exit (1); | |
19912 | fprintf (f, "%ld\n", i); | |
19913 | } | |
19914 | else | |
19915 | { | |
19916 | unsigned long i = ulongval (); | |
19917 | if (i != (sizeof (omp_nest_lock_t))) | |
19918 | exit (1); | |
19919 | fprintf (f, "%lu\n", i); | |
19920 | } | |
19921 | exit (ferror (f) || fclose (f) != 0); | |
19922 | ||
19923 | ; | |
19924 | return 0; | |
19925 | } | |
19926 | _ACEOF | |
19927 | rm -f conftest$ac_exeext | |
19928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19929 | (eval $ac_link) 2>&5 | |
19930 | ac_status=$? | |
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19934 | (eval $ac_try) 2>&5 | |
19935 | ac_status=$? | |
19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19937 | (exit $ac_status); }; }; then | |
19938 | OMP_NEST_LOCK_SIZE=`cat conftest.val` | |
19939 | else | |
19940 | echo "$as_me: program exited with status $ac_status" >&5 | |
19941 | echo "$as_me: failed program was:" >&5 | |
19942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19943 | ||
19944 | fi | |
19945 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19946 | fi | |
19947 | fi | |
19948 | rm -f conftest.val | |
19949 | if test "$cross_compiling" = yes; then | |
19950 | # Depending upon the size, compute the lo and hi bounds. | |
19951 | cat >conftest.$ac_ext <<_ACEOF | |
19952 | /* confdefs.h. */ | |
19953 | _ACEOF | |
19954 | cat confdefs.h >>conftest.$ac_ext | |
19955 | cat >>conftest.$ac_ext <<_ACEOF | |
19956 | /* end confdefs.h. */ | |
19957 | ||
19958 | int | |
19959 | main () | |
19960 | { | |
19961 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)]; | |
19962 | test_array [0] = 0 | |
19963 | ||
19964 | ; | |
19965 | return 0; | |
19966 | } | |
19967 | _ACEOF | |
19968 | rm -f conftest.$ac_objext | |
19969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19970 | (eval $ac_compile) 2>conftest.er1 | |
19971 | ac_status=$? | |
19972 | grep -v '^ *+' conftest.er1 >conftest.err | |
19973 | rm -f conftest.er1 | |
19974 | cat conftest.err >&5 | |
19975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19976 | (exit $ac_status); } && | |
d349482e AT |
19977 | { ac_try='test -z "$ac_c_werror_flag" |
19978 | || test ! -s conftest.err' | |
03b8fe49 PB |
19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19980 | (eval $ac_try) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; } && | |
19984 | { ac_try='test -s conftest.$ac_objext' | |
19985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19986 | (eval $ac_try) 2>&5 | |
19987 | ac_status=$? | |
19988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19989 | (exit $ac_status); }; }; then | |
19990 | ac_lo=0 ac_mid=0 | |
19991 | while :; do | |
19992 | cat >conftest.$ac_ext <<_ACEOF | |
19993 | /* confdefs.h. */ | |
19994 | _ACEOF | |
19995 | cat confdefs.h >>conftest.$ac_ext | |
19996 | cat >>conftest.$ac_ext <<_ACEOF | |
19997 | /* end confdefs.h. */ | |
19998 | ||
19999 | int | |
20000 | main () | |
20001 | { | |
20002 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
20003 | test_array [0] = 0 | |
20004 | ||
20005 | ; | |
20006 | return 0; | |
20007 | } | |
20008 | _ACEOF | |
20009 | rm -f conftest.$ac_objext | |
20010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20011 | (eval $ac_compile) 2>conftest.er1 | |
20012 | ac_status=$? | |
20013 | grep -v '^ *+' conftest.er1 >conftest.err | |
20014 | rm -f conftest.er1 | |
20015 | cat conftest.err >&5 | |
20016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20017 | (exit $ac_status); } && | |
d349482e AT |
20018 | { ac_try='test -z "$ac_c_werror_flag" |
20019 | || test ! -s conftest.err' | |
03b8fe49 PB |
20020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20021 | (eval $ac_try) 2>&5 | |
20022 | ac_status=$? | |
20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20024 | (exit $ac_status); }; } && | |
20025 | { ac_try='test -s conftest.$ac_objext' | |
20026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20027 | (eval $ac_try) 2>&5 | |
20028 | ac_status=$? | |
20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20030 | (exit $ac_status); }; }; then | |
20031 | ac_hi=$ac_mid; break | |
20032 | else | |
20033 | echo "$as_me: failed program was:" >&5 | |
20034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20035 | ||
20036 | ac_lo=`expr $ac_mid + 1` | |
20037 | if test $ac_lo -le $ac_mid; then | |
20038 | ac_lo= ac_hi= | |
20039 | break | |
20040 | fi | |
20041 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20042 | fi | |
20043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20044 | done | |
20045 | else | |
20046 | echo "$as_me: failed program was:" >&5 | |
20047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20048 | ||
20049 | cat >conftest.$ac_ext <<_ACEOF | |
20050 | /* confdefs.h. */ | |
20051 | _ACEOF | |
20052 | cat confdefs.h >>conftest.$ac_ext | |
20053 | cat >>conftest.$ac_ext <<_ACEOF | |
20054 | /* end confdefs.h. */ | |
20055 | ||
20056 | int | |
20057 | main () | |
20058 | { | |
20059 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)]; | |
20060 | test_array [0] = 0 | |
20061 | ||
20062 | ; | |
20063 | return 0; | |
20064 | } | |
20065 | _ACEOF | |
20066 | rm -f conftest.$ac_objext | |
20067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20068 | (eval $ac_compile) 2>conftest.er1 | |
20069 | ac_status=$? | |
20070 | grep -v '^ *+' conftest.er1 >conftest.err | |
20071 | rm -f conftest.er1 | |
20072 | cat conftest.err >&5 | |
20073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20074 | (exit $ac_status); } && | |
d349482e AT |
20075 | { ac_try='test -z "$ac_c_werror_flag" |
20076 | || test ! -s conftest.err' | |
03b8fe49 PB |
20077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20078 | (eval $ac_try) 2>&5 | |
20079 | ac_status=$? | |
20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20081 | (exit $ac_status); }; } && | |
20082 | { ac_try='test -s conftest.$ac_objext' | |
20083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20084 | (eval $ac_try) 2>&5 | |
20085 | ac_status=$? | |
20086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20087 | (exit $ac_status); }; }; then | |
20088 | ac_hi=-1 ac_mid=-1 | |
20089 | while :; do | |
20090 | cat >conftest.$ac_ext <<_ACEOF | |
20091 | /* confdefs.h. */ | |
20092 | _ACEOF | |
20093 | cat confdefs.h >>conftest.$ac_ext | |
20094 | cat >>conftest.$ac_ext <<_ACEOF | |
20095 | /* end confdefs.h. */ | |
20096 | ||
20097 | int | |
20098 | main () | |
20099 | { | |
20100 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)]; | |
20101 | test_array [0] = 0 | |
20102 | ||
20103 | ; | |
20104 | return 0; | |
20105 | } | |
20106 | _ACEOF | |
20107 | rm -f conftest.$ac_objext | |
20108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20109 | (eval $ac_compile) 2>conftest.er1 | |
20110 | ac_status=$? | |
20111 | grep -v '^ *+' conftest.er1 >conftest.err | |
20112 | rm -f conftest.er1 | |
20113 | cat conftest.err >&5 | |
20114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20115 | (exit $ac_status); } && | |
d349482e AT |
20116 | { ac_try='test -z "$ac_c_werror_flag" |
20117 | || test ! -s conftest.err' | |
03b8fe49 PB |
20118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20119 | (eval $ac_try) 2>&5 | |
20120 | ac_status=$? | |
20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20122 | (exit $ac_status); }; } && | |
20123 | { ac_try='test -s conftest.$ac_objext' | |
20124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20125 | (eval $ac_try) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); }; }; then | |
20129 | ac_lo=$ac_mid; break | |
20130 | else | |
20131 | echo "$as_me: failed program was:" >&5 | |
20132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20133 | ||
20134 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20135 | if test $ac_mid -le $ac_hi; then | |
20136 | ac_lo= ac_hi= | |
20137 | break | |
20138 | fi | |
20139 | ac_mid=`expr 2 '*' $ac_mid` | |
20140 | fi | |
20141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20142 | done | |
20143 | else | |
20144 | echo "$as_me: failed program was:" >&5 | |
20145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20146 | ||
20147 | ac_lo= ac_hi= | |
20148 | fi | |
20149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20150 | fi | |
20151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20152 | # Binary search between lo and hi bounds. | |
20153 | while test "x$ac_lo" != "x$ac_hi"; do | |
20154 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20155 | cat >conftest.$ac_ext <<_ACEOF | |
20156 | /* confdefs.h. */ | |
20157 | _ACEOF | |
20158 | cat confdefs.h >>conftest.$ac_ext | |
20159 | cat >>conftest.$ac_ext <<_ACEOF | |
20160 | /* end confdefs.h. */ | |
20161 | ||
20162 | int | |
20163 | main () | |
20164 | { | |
20165 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
20166 | test_array [0] = 0 | |
20167 | ||
20168 | ; | |
20169 | return 0; | |
20170 | } | |
20171 | _ACEOF | |
20172 | rm -f conftest.$ac_objext | |
20173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20174 | (eval $ac_compile) 2>conftest.er1 | |
20175 | ac_status=$? | |
20176 | grep -v '^ *+' conftest.er1 >conftest.err | |
20177 | rm -f conftest.er1 | |
20178 | cat conftest.err >&5 | |
20179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20180 | (exit $ac_status); } && | |
d349482e AT |
20181 | { ac_try='test -z "$ac_c_werror_flag" |
20182 | || test ! -s conftest.err' | |
03b8fe49 PB |
20183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20184 | (eval $ac_try) 2>&5 | |
20185 | ac_status=$? | |
20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20187 | (exit $ac_status); }; } && | |
20188 | { ac_try='test -s conftest.$ac_objext' | |
20189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20190 | (eval $ac_try) 2>&5 | |
20191 | ac_status=$? | |
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20193 | (exit $ac_status); }; }; then | |
20194 | ac_hi=$ac_mid | |
20195 | else | |
20196 | echo "$as_me: failed program was:" >&5 | |
20197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20198 | ||
20199 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20200 | fi | |
20201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20202 | done | |
20203 | case $ac_lo in | |
20204 | ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;; | |
20205 | '') ;; | |
20206 | esac | |
20207 | else | |
20208 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
20209 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
20210 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20211 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
d349482e AT |
20212 | See \`config.log' for more details." >&5 |
20213 | echo "$as_me: error: cannot run test program while cross compiling | |
20214 | See \`config.log' for more details." >&2;} | |
18c04407 | 20215 | { (exit 1); exit 1; }; }; } |
03b8fe49 PB |
20216 | else |
20217 | cat >conftest.$ac_ext <<_ACEOF | |
20218 | /* confdefs.h. */ | |
20219 | _ACEOF | |
20220 | cat confdefs.h >>conftest.$ac_ext | |
20221 | cat >>conftest.$ac_ext <<_ACEOF | |
20222 | /* end confdefs.h. */ | |
20223 | ||
20224 | long longval () { return __alignof (omp_nest_lock_t); } | |
20225 | unsigned long ulongval () { return __alignof (omp_nest_lock_t); } | |
20226 | #include <stdio.h> | |
20227 | #include <stdlib.h> | |
20228 | int | |
20229 | main () | |
20230 | { | |
20231 | ||
20232 | FILE *f = fopen ("conftest.val", "w"); | |
20233 | if (! f) | |
20234 | exit (1); | |
20235 | if ((__alignof (omp_nest_lock_t)) < 0) | |
20236 | { | |
20237 | long i = longval (); | |
20238 | if (i != (__alignof (omp_nest_lock_t))) | |
20239 | exit (1); | |
20240 | fprintf (f, "%ld\n", i); | |
20241 | } | |
20242 | else | |
20243 | { | |
20244 | unsigned long i = ulongval (); | |
20245 | if (i != (__alignof (omp_nest_lock_t))) | |
20246 | exit (1); | |
20247 | fprintf (f, "%lu\n", i); | |
20248 | } | |
20249 | exit (ferror (f) || fclose (f) != 0); | |
20250 | ||
20251 | ; | |
20252 | return 0; | |
20253 | } | |
20254 | _ACEOF | |
20255 | rm -f conftest$ac_exeext | |
20256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20257 | (eval $ac_link) 2>&5 | |
20258 | ac_status=$? | |
20259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20262 | (eval $ac_try) 2>&5 | |
20263 | ac_status=$? | |
20264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20265 | (exit $ac_status); }; }; then | |
20266 | OMP_NEST_LOCK_ALIGN=`cat conftest.val` | |
20267 | else | |
20268 | echo "$as_me: program exited with status $ac_status" >&5 | |
20269 | echo "$as_me: failed program was:" >&5 | |
20270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20271 | ||
20272 | fi | |
20273 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20274 | fi | |
20275 | fi | |
20276 | rm -f conftest.val | |
a68ab351 JJ |
20277 | if test "$cross_compiling" = yes; then |
20278 | # Depending upon the size, compute the lo and hi bounds. | |
20279 | cat >conftest.$ac_ext <<_ACEOF | |
20280 | /* confdefs.h. */ | |
20281 | _ACEOF | |
20282 | cat confdefs.h >>conftest.$ac_ext | |
20283 | cat >>conftest.$ac_ext <<_ACEOF | |
20284 | /* end confdefs.h. */ | |
03b8fe49 | 20285 | |
a68ab351 JJ |
20286 | int |
20287 | main () | |
20288 | { | |
20289 | static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)]; | |
20290 | test_array [0] = 0 | |
20291 | ||
20292 | ; | |
20293 | return 0; | |
20294 | } | |
20295 | _ACEOF | |
20296 | rm -f conftest.$ac_objext | |
20297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20298 | (eval $ac_compile) 2>conftest.er1 | |
20299 | ac_status=$? | |
20300 | grep -v '^ *+' conftest.er1 >conftest.err | |
20301 | rm -f conftest.er1 | |
20302 | cat conftest.err >&5 | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); } && | |
20305 | { ac_try='test -z "$ac_c_werror_flag" | |
20306 | || test ! -s conftest.err' | |
20307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20308 | (eval $ac_try) 2>&5 | |
20309 | ac_status=$? | |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20311 | (exit $ac_status); }; } && | |
20312 | { ac_try='test -s conftest.$ac_objext' | |
20313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20314 | (eval $ac_try) 2>&5 | |
20315 | ac_status=$? | |
20316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20317 | (exit $ac_status); }; }; then | |
20318 | ac_lo=0 ac_mid=0 | |
20319 | while :; do | |
20320 | cat >conftest.$ac_ext <<_ACEOF | |
20321 | /* confdefs.h. */ | |
20322 | _ACEOF | |
20323 | cat confdefs.h >>conftest.$ac_ext | |
20324 | cat >>conftest.$ac_ext <<_ACEOF | |
20325 | /* end confdefs.h. */ | |
20326 | ||
20327 | int | |
20328 | main () | |
20329 | { | |
20330 | static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)]; | |
20331 | test_array [0] = 0 | |
20332 | ||
20333 | ; | |
20334 | return 0; | |
20335 | } | |
20336 | _ACEOF | |
20337 | rm -f conftest.$ac_objext | |
20338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20339 | (eval $ac_compile) 2>conftest.er1 | |
20340 | ac_status=$? | |
20341 | grep -v '^ *+' conftest.er1 >conftest.err | |
20342 | rm -f conftest.er1 | |
20343 | cat conftest.err >&5 | |
20344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20345 | (exit $ac_status); } && | |
20346 | { ac_try='test -z "$ac_c_werror_flag" | |
20347 | || test ! -s conftest.err' | |
20348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20349 | (eval $ac_try) 2>&5 | |
20350 | ac_status=$? | |
20351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20352 | (exit $ac_status); }; } && | |
20353 | { ac_try='test -s conftest.$ac_objext' | |
20354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20355 | (eval $ac_try) 2>&5 | |
20356 | ac_status=$? | |
20357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20358 | (exit $ac_status); }; }; then | |
20359 | ac_hi=$ac_mid; break | |
20360 | else | |
20361 | echo "$as_me: failed program was:" >&5 | |
20362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20363 | ||
20364 | ac_lo=`expr $ac_mid + 1` | |
20365 | if test $ac_lo -le $ac_mid; then | |
20366 | ac_lo= ac_hi= | |
20367 | break | |
20368 | fi | |
20369 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
03b8fe49 | 20370 | fi |
a68ab351 JJ |
20371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20372 | done | |
20373 | else | |
20374 | echo "$as_me: failed program was:" >&5 | |
20375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20376 | ||
20377 | cat >conftest.$ac_ext <<_ACEOF | |
20378 | /* confdefs.h. */ | |
20379 | _ACEOF | |
20380 | cat confdefs.h >>conftest.$ac_ext | |
20381 | cat >>conftest.$ac_ext <<_ACEOF | |
20382 | /* end confdefs.h. */ | |
20383 | ||
20384 | int | |
20385 | main () | |
20386 | { | |
20387 | static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)]; | |
20388 | test_array [0] = 0 | |
20389 | ||
20390 | ; | |
20391 | return 0; | |
20392 | } | |
20393 | _ACEOF | |
20394 | rm -f conftest.$ac_objext | |
20395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20396 | (eval $ac_compile) 2>conftest.er1 | |
20397 | ac_status=$? | |
20398 | grep -v '^ *+' conftest.er1 >conftest.err | |
20399 | rm -f conftest.er1 | |
20400 | cat conftest.err >&5 | |
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20402 | (exit $ac_status); } && | |
20403 | { ac_try='test -z "$ac_c_werror_flag" | |
20404 | || test ! -s conftest.err' | |
20405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20406 | (eval $ac_try) 2>&5 | |
20407 | ac_status=$? | |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20409 | (exit $ac_status); }; } && | |
20410 | { ac_try='test -s conftest.$ac_objext' | |
20411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20412 | (eval $ac_try) 2>&5 | |
20413 | ac_status=$? | |
20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20415 | (exit $ac_status); }; }; then | |
20416 | ac_hi=-1 ac_mid=-1 | |
20417 | while :; do | |
20418 | cat >conftest.$ac_ext <<_ACEOF | |
20419 | /* confdefs.h. */ | |
20420 | _ACEOF | |
20421 | cat confdefs.h >>conftest.$ac_ext | |
20422 | cat >>conftest.$ac_ext <<_ACEOF | |
20423 | /* end confdefs.h. */ | |
20424 | ||
20425 | int | |
20426 | main () | |
20427 | { | |
20428 | static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)]; | |
20429 | test_array [0] = 0 | |
20430 | ||
20431 | ; | |
20432 | return 0; | |
20433 | } | |
20434 | _ACEOF | |
20435 | rm -f conftest.$ac_objext | |
20436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20437 | (eval $ac_compile) 2>conftest.er1 | |
20438 | ac_status=$? | |
20439 | grep -v '^ *+' conftest.er1 >conftest.err | |
20440 | rm -f conftest.er1 | |
20441 | cat conftest.err >&5 | |
20442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20443 | (exit $ac_status); } && | |
20444 | { ac_try='test -z "$ac_c_werror_flag" | |
20445 | || test ! -s conftest.err' | |
20446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20447 | (eval $ac_try) 2>&5 | |
20448 | ac_status=$? | |
20449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20450 | (exit $ac_status); }; } && | |
20451 | { ac_try='test -s conftest.$ac_objext' | |
20452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20453 | (eval $ac_try) 2>&5 | |
20454 | ac_status=$? | |
20455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20456 | (exit $ac_status); }; }; then | |
20457 | ac_lo=$ac_mid; break | |
20458 | else | |
20459 | echo "$as_me: failed program was:" >&5 | |
20460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20461 | ||
20462 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20463 | if test $ac_mid -le $ac_hi; then | |
20464 | ac_lo= ac_hi= | |
20465 | break | |
20466 | fi | |
20467 | ac_mid=`expr 2 '*' $ac_mid` | |
20468 | fi | |
20469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20470 | done | |
20471 | else | |
20472 | echo "$as_me: failed program was:" >&5 | |
20473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20474 | ||
20475 | ac_lo= ac_hi= | |
20476 | fi | |
20477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
03b8fe49 | 20478 | fi |
a68ab351 JJ |
20479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20480 | # Binary search between lo and hi bounds. | |
20481 | while test "x$ac_lo" != "x$ac_hi"; do | |
20482 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20483 | cat >conftest.$ac_ext <<_ACEOF | |
20484 | /* confdefs.h. */ | |
20485 | _ACEOF | |
20486 | cat confdefs.h >>conftest.$ac_ext | |
20487 | cat >>conftest.$ac_ext <<_ACEOF | |
20488 | /* end confdefs.h. */ | |
20489 | ||
20490 | int | |
20491 | main () | |
20492 | { | |
20493 | static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)]; | |
20494 | test_array [0] = 0 | |
20495 | ||
20496 | ; | |
20497 | return 0; | |
20498 | } | |
20499 | _ACEOF | |
20500 | rm -f conftest.$ac_objext | |
20501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20502 | (eval $ac_compile) 2>conftest.er1 | |
20503 | ac_status=$? | |
20504 | grep -v '^ *+' conftest.er1 >conftest.err | |
20505 | rm -f conftest.er1 | |
20506 | cat conftest.err >&5 | |
20507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20508 | (exit $ac_status); } && | |
20509 | { ac_try='test -z "$ac_c_werror_flag" | |
20510 | || test ! -s conftest.err' | |
20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20512 | (eval $ac_try) 2>&5 | |
20513 | ac_status=$? | |
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20515 | (exit $ac_status); }; } && | |
20516 | { ac_try='test -s conftest.$ac_objext' | |
20517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20518 | (eval $ac_try) 2>&5 | |
20519 | ac_status=$? | |
20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 | (exit $ac_status); }; }; then | |
20522 | ac_hi=$ac_mid | |
20523 | else | |
20524 | echo "$as_me: failed program was:" >&5 | |
20525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20526 | ||
20527 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20528 | fi | |
20529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20530 | done | |
20531 | case $ac_lo in | |
20532 | ?*) OMP_LOCK_25_SIZE=$ac_lo;; | |
20533 | '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5 | |
20534 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;} | |
20535 | { (exit 1); exit 1; }; } ;; | |
20536 | esac | |
20537 | else | |
20538 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
20539 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
20540 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20541 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
a68ab351 JJ |
20542 | See \`config.log' for more details." >&5 |
20543 | echo "$as_me: error: cannot run test program while cross compiling | |
20544 | See \`config.log' for more details." >&2;} | |
18c04407 | 20545 | { (exit 1); exit 1; }; }; } |
a68ab351 JJ |
20546 | else |
20547 | cat >conftest.$ac_ext <<_ACEOF | |
20548 | /* confdefs.h. */ | |
20549 | _ACEOF | |
20550 | cat confdefs.h >>conftest.$ac_ext | |
20551 | cat >>conftest.$ac_ext <<_ACEOF | |
20552 | /* end confdefs.h. */ | |
20553 | ||
20554 | long longval () { return sizeof (omp_lock_25_t); } | |
20555 | unsigned long ulongval () { return sizeof (omp_lock_25_t); } | |
20556 | #include <stdio.h> | |
20557 | #include <stdlib.h> | |
20558 | int | |
20559 | main () | |
20560 | { | |
20561 | ||
20562 | FILE *f = fopen ("conftest.val", "w"); | |
20563 | if (! f) | |
20564 | exit (1); | |
20565 | if ((sizeof (omp_lock_25_t)) < 0) | |
20566 | { | |
20567 | long i = longval (); | |
20568 | if (i != (sizeof (omp_lock_25_t))) | |
20569 | exit (1); | |
20570 | fprintf (f, "%ld\n", i); | |
20571 | } | |
20572 | else | |
20573 | { | |
20574 | unsigned long i = ulongval (); | |
20575 | if (i != (sizeof (omp_lock_25_t))) | |
20576 | exit (1); | |
20577 | fprintf (f, "%lu\n", i); | |
20578 | } | |
20579 | exit (ferror (f) || fclose (f) != 0); | |
20580 | ||
20581 | ; | |
20582 | return 0; | |
20583 | } | |
20584 | _ACEOF | |
20585 | rm -f conftest$ac_exeext | |
20586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20587 | (eval $ac_link) 2>&5 | |
20588 | ac_status=$? | |
20589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20592 | (eval $ac_try) 2>&5 | |
20593 | ac_status=$? | |
20594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20595 | (exit $ac_status); }; }; then | |
20596 | OMP_LOCK_25_SIZE=`cat conftest.val` | |
20597 | else | |
20598 | echo "$as_me: program exited with status $ac_status" >&5 | |
20599 | echo "$as_me: failed program was:" >&5 | |
20600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20601 | ||
20602 | ( exit $ac_status ) | |
20603 | { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5 | |
20604 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;} | |
20605 | { (exit 1); exit 1; }; } | |
20606 | fi | |
20607 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20608 | fi | |
20609 | fi | |
20610 | rm -f conftest.val | |
20611 | if test "$cross_compiling" = yes; then | |
20612 | # Depending upon the size, compute the lo and hi bounds. | |
20613 | cat >conftest.$ac_ext <<_ACEOF | |
20614 | /* confdefs.h. */ | |
20615 | _ACEOF | |
20616 | cat confdefs.h >>conftest.$ac_ext | |
20617 | cat >>conftest.$ac_ext <<_ACEOF | |
20618 | /* end confdefs.h. */ | |
20619 | ||
20620 | int | |
20621 | main () | |
20622 | { | |
20623 | static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)]; | |
20624 | test_array [0] = 0 | |
20625 | ||
20626 | ; | |
20627 | return 0; | |
20628 | } | |
20629 | _ACEOF | |
20630 | rm -f conftest.$ac_objext | |
20631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20632 | (eval $ac_compile) 2>conftest.er1 | |
20633 | ac_status=$? | |
20634 | grep -v '^ *+' conftest.er1 >conftest.err | |
20635 | rm -f conftest.er1 | |
20636 | cat conftest.err >&5 | |
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 | (exit $ac_status); } && | |
20639 | { ac_try='test -z "$ac_c_werror_flag" | |
20640 | || test ! -s conftest.err' | |
20641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20642 | (eval $ac_try) 2>&5 | |
20643 | ac_status=$? | |
20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20645 | (exit $ac_status); }; } && | |
20646 | { ac_try='test -s conftest.$ac_objext' | |
20647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20648 | (eval $ac_try) 2>&5 | |
20649 | ac_status=$? | |
20650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20651 | (exit $ac_status); }; }; then | |
20652 | ac_lo=0 ac_mid=0 | |
20653 | while :; do | |
20654 | cat >conftest.$ac_ext <<_ACEOF | |
20655 | /* confdefs.h. */ | |
20656 | _ACEOF | |
20657 | cat confdefs.h >>conftest.$ac_ext | |
20658 | cat >>conftest.$ac_ext <<_ACEOF | |
20659 | /* end confdefs.h. */ | |
20660 | ||
20661 | int | |
20662 | main () | |
20663 | { | |
20664 | static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)]; | |
20665 | test_array [0] = 0 | |
20666 | ||
20667 | ; | |
20668 | return 0; | |
20669 | } | |
20670 | _ACEOF | |
20671 | rm -f conftest.$ac_objext | |
20672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20673 | (eval $ac_compile) 2>conftest.er1 | |
20674 | ac_status=$? | |
20675 | grep -v '^ *+' conftest.er1 >conftest.err | |
20676 | rm -f conftest.er1 | |
20677 | cat conftest.err >&5 | |
20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20679 | (exit $ac_status); } && | |
20680 | { ac_try='test -z "$ac_c_werror_flag" | |
20681 | || test ! -s conftest.err' | |
20682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20683 | (eval $ac_try) 2>&5 | |
20684 | ac_status=$? | |
20685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20686 | (exit $ac_status); }; } && | |
20687 | { ac_try='test -s conftest.$ac_objext' | |
20688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20689 | (eval $ac_try) 2>&5 | |
20690 | ac_status=$? | |
20691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20692 | (exit $ac_status); }; }; then | |
20693 | ac_hi=$ac_mid; break | |
20694 | else | |
20695 | echo "$as_me: failed program was:" >&5 | |
20696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20697 | ||
20698 | ac_lo=`expr $ac_mid + 1` | |
20699 | if test $ac_lo -le $ac_mid; then | |
20700 | ac_lo= ac_hi= | |
20701 | break | |
20702 | fi | |
20703 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20704 | fi | |
20705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20706 | done | |
20707 | else | |
20708 | echo "$as_me: failed program was:" >&5 | |
20709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20710 | ||
20711 | cat >conftest.$ac_ext <<_ACEOF | |
20712 | /* confdefs.h. */ | |
20713 | _ACEOF | |
20714 | cat confdefs.h >>conftest.$ac_ext | |
20715 | cat >>conftest.$ac_ext <<_ACEOF | |
20716 | /* end confdefs.h. */ | |
20717 | ||
20718 | int | |
20719 | main () | |
20720 | { | |
20721 | static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)]; | |
20722 | test_array [0] = 0 | |
20723 | ||
20724 | ; | |
20725 | return 0; | |
20726 | } | |
20727 | _ACEOF | |
20728 | rm -f conftest.$ac_objext | |
20729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20730 | (eval $ac_compile) 2>conftest.er1 | |
20731 | ac_status=$? | |
20732 | grep -v '^ *+' conftest.er1 >conftest.err | |
20733 | rm -f conftest.er1 | |
20734 | cat conftest.err >&5 | |
20735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20736 | (exit $ac_status); } && | |
20737 | { ac_try='test -z "$ac_c_werror_flag" | |
20738 | || test ! -s conftest.err' | |
20739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20740 | (eval $ac_try) 2>&5 | |
20741 | ac_status=$? | |
20742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20743 | (exit $ac_status); }; } && | |
20744 | { ac_try='test -s conftest.$ac_objext' | |
20745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20746 | (eval $ac_try) 2>&5 | |
20747 | ac_status=$? | |
20748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20749 | (exit $ac_status); }; }; then | |
20750 | ac_hi=-1 ac_mid=-1 | |
20751 | while :; do | |
20752 | cat >conftest.$ac_ext <<_ACEOF | |
20753 | /* confdefs.h. */ | |
20754 | _ACEOF | |
20755 | cat confdefs.h >>conftest.$ac_ext | |
20756 | cat >>conftest.$ac_ext <<_ACEOF | |
20757 | /* end confdefs.h. */ | |
20758 | ||
20759 | int | |
20760 | main () | |
20761 | { | |
20762 | static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)]; | |
20763 | test_array [0] = 0 | |
20764 | ||
20765 | ; | |
20766 | return 0; | |
20767 | } | |
20768 | _ACEOF | |
20769 | rm -f conftest.$ac_objext | |
20770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20771 | (eval $ac_compile) 2>conftest.er1 | |
20772 | ac_status=$? | |
20773 | grep -v '^ *+' conftest.er1 >conftest.err | |
20774 | rm -f conftest.er1 | |
20775 | cat conftest.err >&5 | |
20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20777 | (exit $ac_status); } && | |
20778 | { ac_try='test -z "$ac_c_werror_flag" | |
20779 | || test ! -s conftest.err' | |
20780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20781 | (eval $ac_try) 2>&5 | |
20782 | ac_status=$? | |
20783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20784 | (exit $ac_status); }; } && | |
20785 | { ac_try='test -s conftest.$ac_objext' | |
20786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20787 | (eval $ac_try) 2>&5 | |
20788 | ac_status=$? | |
20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20790 | (exit $ac_status); }; }; then | |
20791 | ac_lo=$ac_mid; break | |
20792 | else | |
20793 | echo "$as_me: failed program was:" >&5 | |
20794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20795 | ||
20796 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20797 | if test $ac_mid -le $ac_hi; then | |
20798 | ac_lo= ac_hi= | |
20799 | break | |
20800 | fi | |
20801 | ac_mid=`expr 2 '*' $ac_mid` | |
20802 | fi | |
20803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20804 | done | |
20805 | else | |
20806 | echo "$as_me: failed program was:" >&5 | |
20807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20808 | ||
20809 | ac_lo= ac_hi= | |
20810 | fi | |
20811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20812 | fi | |
20813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20814 | # Binary search between lo and hi bounds. | |
20815 | while test "x$ac_lo" != "x$ac_hi"; do | |
20816 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20817 | cat >conftest.$ac_ext <<_ACEOF | |
20818 | /* confdefs.h. */ | |
20819 | _ACEOF | |
20820 | cat confdefs.h >>conftest.$ac_ext | |
20821 | cat >>conftest.$ac_ext <<_ACEOF | |
20822 | /* end confdefs.h. */ | |
20823 | ||
20824 | int | |
20825 | main () | |
20826 | { | |
20827 | static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)]; | |
20828 | test_array [0] = 0 | |
20829 | ||
20830 | ; | |
20831 | return 0; | |
20832 | } | |
20833 | _ACEOF | |
20834 | rm -f conftest.$ac_objext | |
20835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20836 | (eval $ac_compile) 2>conftest.er1 | |
20837 | ac_status=$? | |
20838 | grep -v '^ *+' conftest.er1 >conftest.err | |
20839 | rm -f conftest.er1 | |
20840 | cat conftest.err >&5 | |
20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 | (exit $ac_status); } && | |
20843 | { ac_try='test -z "$ac_c_werror_flag" | |
20844 | || test ! -s conftest.err' | |
20845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20846 | (eval $ac_try) 2>&5 | |
20847 | ac_status=$? | |
20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20849 | (exit $ac_status); }; } && | |
20850 | { ac_try='test -s conftest.$ac_objext' | |
20851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20852 | (eval $ac_try) 2>&5 | |
20853 | ac_status=$? | |
20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20855 | (exit $ac_status); }; }; then | |
20856 | ac_hi=$ac_mid | |
20857 | else | |
20858 | echo "$as_me: failed program was:" >&5 | |
20859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20860 | ||
20861 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20862 | fi | |
20863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20864 | done | |
20865 | case $ac_lo in | |
20866 | ?*) OMP_LOCK_25_ALIGN=$ac_lo;; | |
20867 | '') ;; | |
20868 | esac | |
20869 | else | |
20870 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
20871 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
20872 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20873 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
a68ab351 JJ |
20874 | See \`config.log' for more details." >&5 |
20875 | echo "$as_me: error: cannot run test program while cross compiling | |
20876 | See \`config.log' for more details." >&2;} | |
18c04407 | 20877 | { (exit 1); exit 1; }; }; } |
a68ab351 JJ |
20878 | else |
20879 | cat >conftest.$ac_ext <<_ACEOF | |
20880 | /* confdefs.h. */ | |
20881 | _ACEOF | |
20882 | cat confdefs.h >>conftest.$ac_ext | |
20883 | cat >>conftest.$ac_ext <<_ACEOF | |
20884 | /* end confdefs.h. */ | |
20885 | ||
20886 | long longval () { return __alignof (omp_lock_25_t); } | |
20887 | unsigned long ulongval () { return __alignof (omp_lock_25_t); } | |
20888 | #include <stdio.h> | |
20889 | #include <stdlib.h> | |
20890 | int | |
20891 | main () | |
20892 | { | |
20893 | ||
20894 | FILE *f = fopen ("conftest.val", "w"); | |
20895 | if (! f) | |
20896 | exit (1); | |
20897 | if ((__alignof (omp_lock_25_t)) < 0) | |
20898 | { | |
20899 | long i = longval (); | |
20900 | if (i != (__alignof (omp_lock_25_t))) | |
20901 | exit (1); | |
20902 | fprintf (f, "%ld\n", i); | |
20903 | } | |
20904 | else | |
20905 | { | |
20906 | unsigned long i = ulongval (); | |
20907 | if (i != (__alignof (omp_lock_25_t))) | |
20908 | exit (1); | |
20909 | fprintf (f, "%lu\n", i); | |
20910 | } | |
20911 | exit (ferror (f) || fclose (f) != 0); | |
20912 | ||
20913 | ; | |
20914 | return 0; | |
20915 | } | |
20916 | _ACEOF | |
20917 | rm -f conftest$ac_exeext | |
20918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20919 | (eval $ac_link) 2>&5 | |
20920 | ac_status=$? | |
20921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20924 | (eval $ac_try) 2>&5 | |
20925 | ac_status=$? | |
20926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20927 | (exit $ac_status); }; }; then | |
20928 | OMP_LOCK_25_ALIGN=`cat conftest.val` | |
20929 | else | |
20930 | echo "$as_me: program exited with status $ac_status" >&5 | |
20931 | echo "$as_me: failed program was:" >&5 | |
20932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20933 | ||
20934 | fi | |
20935 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20936 | fi | |
20937 | fi | |
20938 | rm -f conftest.val | |
20939 | if test "$cross_compiling" = yes; then | |
20940 | # Depending upon the size, compute the lo and hi bounds. | |
20941 | cat >conftest.$ac_ext <<_ACEOF | |
20942 | /* confdefs.h. */ | |
20943 | _ACEOF | |
20944 | cat confdefs.h >>conftest.$ac_ext | |
20945 | cat >>conftest.$ac_ext <<_ACEOF | |
20946 | /* end confdefs.h. */ | |
20947 | ||
20948 | int | |
20949 | main () | |
20950 | { | |
20951 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)]; | |
20952 | test_array [0] = 0 | |
20953 | ||
20954 | ; | |
20955 | return 0; | |
20956 | } | |
20957 | _ACEOF | |
20958 | rm -f conftest.$ac_objext | |
20959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20960 | (eval $ac_compile) 2>conftest.er1 | |
20961 | ac_status=$? | |
20962 | grep -v '^ *+' conftest.er1 >conftest.err | |
20963 | rm -f conftest.er1 | |
20964 | cat conftest.err >&5 | |
20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20966 | (exit $ac_status); } && | |
20967 | { ac_try='test -z "$ac_c_werror_flag" | |
20968 | || test ! -s conftest.err' | |
20969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20970 | (eval $ac_try) 2>&5 | |
20971 | ac_status=$? | |
20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20973 | (exit $ac_status); }; } && | |
20974 | { ac_try='test -s conftest.$ac_objext' | |
20975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20976 | (eval $ac_try) 2>&5 | |
20977 | ac_status=$? | |
20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20979 | (exit $ac_status); }; }; then | |
20980 | ac_lo=0 ac_mid=0 | |
20981 | while :; do | |
20982 | cat >conftest.$ac_ext <<_ACEOF | |
20983 | /* confdefs.h. */ | |
20984 | _ACEOF | |
20985 | cat confdefs.h >>conftest.$ac_ext | |
20986 | cat >>conftest.$ac_ext <<_ACEOF | |
20987 | /* end confdefs.h. */ | |
20988 | ||
20989 | int | |
20990 | main () | |
20991 | { | |
20992 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)]; | |
20993 | test_array [0] = 0 | |
20994 | ||
20995 | ; | |
20996 | return 0; | |
20997 | } | |
20998 | _ACEOF | |
20999 | rm -f conftest.$ac_objext | |
21000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21001 | (eval $ac_compile) 2>conftest.er1 | |
21002 | ac_status=$? | |
21003 | grep -v '^ *+' conftest.er1 >conftest.err | |
21004 | rm -f conftest.er1 | |
21005 | cat conftest.err >&5 | |
21006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21007 | (exit $ac_status); } && | |
21008 | { ac_try='test -z "$ac_c_werror_flag" | |
21009 | || test ! -s conftest.err' | |
21010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21011 | (eval $ac_try) 2>&5 | |
21012 | ac_status=$? | |
21013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21014 | (exit $ac_status); }; } && | |
21015 | { ac_try='test -s conftest.$ac_objext' | |
21016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21017 | (eval $ac_try) 2>&5 | |
21018 | ac_status=$? | |
21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21020 | (exit $ac_status); }; }; then | |
21021 | ac_hi=$ac_mid; break | |
21022 | else | |
21023 | echo "$as_me: failed program was:" >&5 | |
21024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21025 | ||
21026 | ac_lo=`expr $ac_mid + 1` | |
21027 | if test $ac_lo -le $ac_mid; then | |
21028 | ac_lo= ac_hi= | |
21029 | break | |
21030 | fi | |
21031 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21032 | fi | |
21033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21034 | done | |
21035 | else | |
21036 | echo "$as_me: failed program was:" >&5 | |
21037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21038 | ||
21039 | cat >conftest.$ac_ext <<_ACEOF | |
21040 | /* confdefs.h. */ | |
21041 | _ACEOF | |
21042 | cat confdefs.h >>conftest.$ac_ext | |
21043 | cat >>conftest.$ac_ext <<_ACEOF | |
21044 | /* end confdefs.h. */ | |
21045 | ||
21046 | int | |
21047 | main () | |
21048 | { | |
21049 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)]; | |
21050 | test_array [0] = 0 | |
21051 | ||
21052 | ; | |
21053 | return 0; | |
21054 | } | |
21055 | _ACEOF | |
21056 | rm -f conftest.$ac_objext | |
21057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21058 | (eval $ac_compile) 2>conftest.er1 | |
21059 | ac_status=$? | |
21060 | grep -v '^ *+' conftest.er1 >conftest.err | |
21061 | rm -f conftest.er1 | |
21062 | cat conftest.err >&5 | |
21063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21064 | (exit $ac_status); } && | |
21065 | { ac_try='test -z "$ac_c_werror_flag" | |
21066 | || test ! -s conftest.err' | |
21067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21068 | (eval $ac_try) 2>&5 | |
21069 | ac_status=$? | |
21070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21071 | (exit $ac_status); }; } && | |
21072 | { ac_try='test -s conftest.$ac_objext' | |
21073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21074 | (eval $ac_try) 2>&5 | |
21075 | ac_status=$? | |
21076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21077 | (exit $ac_status); }; }; then | |
21078 | ac_hi=-1 ac_mid=-1 | |
21079 | while :; do | |
21080 | cat >conftest.$ac_ext <<_ACEOF | |
21081 | /* confdefs.h. */ | |
21082 | _ACEOF | |
21083 | cat confdefs.h >>conftest.$ac_ext | |
21084 | cat >>conftest.$ac_ext <<_ACEOF | |
21085 | /* end confdefs.h. */ | |
21086 | ||
21087 | int | |
21088 | main () | |
21089 | { | |
21090 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)]; | |
21091 | test_array [0] = 0 | |
21092 | ||
21093 | ; | |
21094 | return 0; | |
21095 | } | |
21096 | _ACEOF | |
21097 | rm -f conftest.$ac_objext | |
21098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21099 | (eval $ac_compile) 2>conftest.er1 | |
21100 | ac_status=$? | |
21101 | grep -v '^ *+' conftest.er1 >conftest.err | |
21102 | rm -f conftest.er1 | |
21103 | cat conftest.err >&5 | |
21104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21105 | (exit $ac_status); } && | |
21106 | { ac_try='test -z "$ac_c_werror_flag" | |
21107 | || test ! -s conftest.err' | |
21108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21109 | (eval $ac_try) 2>&5 | |
21110 | ac_status=$? | |
21111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21112 | (exit $ac_status); }; } && | |
21113 | { ac_try='test -s conftest.$ac_objext' | |
21114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21115 | (eval $ac_try) 2>&5 | |
21116 | ac_status=$? | |
21117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21118 | (exit $ac_status); }; }; then | |
21119 | ac_lo=$ac_mid; break | |
21120 | else | |
21121 | echo "$as_me: failed program was:" >&5 | |
21122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21123 | ||
21124 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21125 | if test $ac_mid -le $ac_hi; then | |
21126 | ac_lo= ac_hi= | |
21127 | break | |
21128 | fi | |
21129 | ac_mid=`expr 2 '*' $ac_mid` | |
21130 | fi | |
21131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21132 | done | |
21133 | else | |
21134 | echo "$as_me: failed program was:" >&5 | |
21135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21136 | ||
21137 | ac_lo= ac_hi= | |
21138 | fi | |
21139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21140 | fi | |
21141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21142 | # Binary search between lo and hi bounds. | |
21143 | while test "x$ac_lo" != "x$ac_hi"; do | |
21144 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21145 | cat >conftest.$ac_ext <<_ACEOF | |
21146 | /* confdefs.h. */ | |
21147 | _ACEOF | |
21148 | cat confdefs.h >>conftest.$ac_ext | |
21149 | cat >>conftest.$ac_ext <<_ACEOF | |
21150 | /* end confdefs.h. */ | |
21151 | ||
21152 | int | |
21153 | main () | |
21154 | { | |
21155 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)]; | |
21156 | test_array [0] = 0 | |
21157 | ||
21158 | ; | |
21159 | return 0; | |
21160 | } | |
21161 | _ACEOF | |
21162 | rm -f conftest.$ac_objext | |
21163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21164 | (eval $ac_compile) 2>conftest.er1 | |
21165 | ac_status=$? | |
21166 | grep -v '^ *+' conftest.er1 >conftest.err | |
21167 | rm -f conftest.er1 | |
21168 | cat conftest.err >&5 | |
21169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21170 | (exit $ac_status); } && | |
21171 | { ac_try='test -z "$ac_c_werror_flag" | |
21172 | || test ! -s conftest.err' | |
21173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21174 | (eval $ac_try) 2>&5 | |
21175 | ac_status=$? | |
21176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21177 | (exit $ac_status); }; } && | |
21178 | { ac_try='test -s conftest.$ac_objext' | |
21179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21180 | (eval $ac_try) 2>&5 | |
21181 | ac_status=$? | |
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21183 | (exit $ac_status); }; }; then | |
21184 | ac_hi=$ac_mid | |
21185 | else | |
21186 | echo "$as_me: failed program was:" >&5 | |
21187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21188 | ||
21189 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21190 | fi | |
21191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21192 | done | |
21193 | case $ac_lo in | |
21194 | ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;; | |
21195 | '') ;; | |
21196 | esac | |
21197 | else | |
21198 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
21199 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
21200 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21201 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
a68ab351 JJ |
21202 | See \`config.log' for more details." >&5 |
21203 | echo "$as_me: error: cannot run test program while cross compiling | |
21204 | See \`config.log' for more details." >&2;} | |
18c04407 | 21205 | { (exit 1); exit 1; }; }; } |
a68ab351 JJ |
21206 | else |
21207 | cat >conftest.$ac_ext <<_ACEOF | |
21208 | /* confdefs.h. */ | |
21209 | _ACEOF | |
21210 | cat confdefs.h >>conftest.$ac_ext | |
21211 | cat >>conftest.$ac_ext <<_ACEOF | |
21212 | /* end confdefs.h. */ | |
21213 | ||
21214 | long longval () { return sizeof (omp_nest_lock_25_t); } | |
21215 | unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); } | |
21216 | #include <stdio.h> | |
21217 | #include <stdlib.h> | |
21218 | int | |
21219 | main () | |
21220 | { | |
21221 | ||
21222 | FILE *f = fopen ("conftest.val", "w"); | |
21223 | if (! f) | |
21224 | exit (1); | |
21225 | if ((sizeof (omp_nest_lock_25_t)) < 0) | |
21226 | { | |
21227 | long i = longval (); | |
21228 | if (i != (sizeof (omp_nest_lock_25_t))) | |
21229 | exit (1); | |
21230 | fprintf (f, "%ld\n", i); | |
21231 | } | |
21232 | else | |
21233 | { | |
21234 | unsigned long i = ulongval (); | |
21235 | if (i != (sizeof (omp_nest_lock_25_t))) | |
21236 | exit (1); | |
21237 | fprintf (f, "%lu\n", i); | |
21238 | } | |
21239 | exit (ferror (f) || fclose (f) != 0); | |
21240 | ||
21241 | ; | |
21242 | return 0; | |
21243 | } | |
21244 | _ACEOF | |
21245 | rm -f conftest$ac_exeext | |
21246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21247 | (eval $ac_link) 2>&5 | |
21248 | ac_status=$? | |
21249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21252 | (eval $ac_try) 2>&5 | |
21253 | ac_status=$? | |
21254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21255 | (exit $ac_status); }; }; then | |
21256 | OMP_NEST_LOCK_25_SIZE=`cat conftest.val` | |
21257 | else | |
21258 | echo "$as_me: program exited with status $ac_status" >&5 | |
21259 | echo "$as_me: failed program was:" >&5 | |
21260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21261 | ||
21262 | fi | |
21263 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21264 | fi | |
21265 | fi | |
21266 | rm -f conftest.val | |
21267 | if test "$cross_compiling" = yes; then | |
21268 | # Depending upon the size, compute the lo and hi bounds. | |
21269 | cat >conftest.$ac_ext <<_ACEOF | |
21270 | /* confdefs.h. */ | |
21271 | _ACEOF | |
21272 | cat confdefs.h >>conftest.$ac_ext | |
21273 | cat >>conftest.$ac_ext <<_ACEOF | |
21274 | /* end confdefs.h. */ | |
21275 | ||
21276 | int | |
21277 | main () | |
21278 | { | |
21279 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)]; | |
21280 | test_array [0] = 0 | |
21281 | ||
21282 | ; | |
21283 | return 0; | |
21284 | } | |
21285 | _ACEOF | |
21286 | rm -f conftest.$ac_objext | |
21287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21288 | (eval $ac_compile) 2>conftest.er1 | |
21289 | ac_status=$? | |
21290 | grep -v '^ *+' conftest.er1 >conftest.err | |
21291 | rm -f conftest.er1 | |
21292 | cat conftest.err >&5 | |
21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21294 | (exit $ac_status); } && | |
21295 | { ac_try='test -z "$ac_c_werror_flag" | |
21296 | || test ! -s conftest.err' | |
21297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21298 | (eval $ac_try) 2>&5 | |
21299 | ac_status=$? | |
21300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21301 | (exit $ac_status); }; } && | |
21302 | { ac_try='test -s conftest.$ac_objext' | |
21303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21304 | (eval $ac_try) 2>&5 | |
21305 | ac_status=$? | |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21307 | (exit $ac_status); }; }; then | |
21308 | ac_lo=0 ac_mid=0 | |
21309 | while :; do | |
21310 | cat >conftest.$ac_ext <<_ACEOF | |
21311 | /* confdefs.h. */ | |
21312 | _ACEOF | |
21313 | cat confdefs.h >>conftest.$ac_ext | |
21314 | cat >>conftest.$ac_ext <<_ACEOF | |
21315 | /* end confdefs.h. */ | |
21316 | ||
21317 | int | |
21318 | main () | |
21319 | { | |
21320 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)]; | |
21321 | test_array [0] = 0 | |
21322 | ||
21323 | ; | |
21324 | return 0; | |
21325 | } | |
21326 | _ACEOF | |
21327 | rm -f conftest.$ac_objext | |
21328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21329 | (eval $ac_compile) 2>conftest.er1 | |
21330 | ac_status=$? | |
21331 | grep -v '^ *+' conftest.er1 >conftest.err | |
21332 | rm -f conftest.er1 | |
21333 | cat conftest.err >&5 | |
21334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21335 | (exit $ac_status); } && | |
21336 | { ac_try='test -z "$ac_c_werror_flag" | |
21337 | || test ! -s conftest.err' | |
21338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21339 | (eval $ac_try) 2>&5 | |
21340 | ac_status=$? | |
21341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21342 | (exit $ac_status); }; } && | |
21343 | { ac_try='test -s conftest.$ac_objext' | |
21344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21345 | (eval $ac_try) 2>&5 | |
21346 | ac_status=$? | |
21347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21348 | (exit $ac_status); }; }; then | |
21349 | ac_hi=$ac_mid; break | |
21350 | else | |
21351 | echo "$as_me: failed program was:" >&5 | |
21352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21353 | ||
21354 | ac_lo=`expr $ac_mid + 1` | |
21355 | if test $ac_lo -le $ac_mid; then | |
21356 | ac_lo= ac_hi= | |
21357 | break | |
21358 | fi | |
21359 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21360 | fi | |
21361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21362 | done | |
21363 | else | |
21364 | echo "$as_me: failed program was:" >&5 | |
21365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21366 | ||
21367 | cat >conftest.$ac_ext <<_ACEOF | |
21368 | /* confdefs.h. */ | |
21369 | _ACEOF | |
21370 | cat confdefs.h >>conftest.$ac_ext | |
21371 | cat >>conftest.$ac_ext <<_ACEOF | |
21372 | /* end confdefs.h. */ | |
21373 | ||
21374 | int | |
21375 | main () | |
21376 | { | |
21377 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)]; | |
21378 | test_array [0] = 0 | |
21379 | ||
21380 | ; | |
21381 | return 0; | |
21382 | } | |
21383 | _ACEOF | |
21384 | rm -f conftest.$ac_objext | |
21385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21386 | (eval $ac_compile) 2>conftest.er1 | |
21387 | ac_status=$? | |
21388 | grep -v '^ *+' conftest.er1 >conftest.err | |
21389 | rm -f conftest.er1 | |
21390 | cat conftest.err >&5 | |
21391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21392 | (exit $ac_status); } && | |
21393 | { ac_try='test -z "$ac_c_werror_flag" | |
21394 | || test ! -s conftest.err' | |
21395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21396 | (eval $ac_try) 2>&5 | |
21397 | ac_status=$? | |
21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21399 | (exit $ac_status); }; } && | |
21400 | { ac_try='test -s conftest.$ac_objext' | |
21401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21402 | (eval $ac_try) 2>&5 | |
21403 | ac_status=$? | |
21404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21405 | (exit $ac_status); }; }; then | |
21406 | ac_hi=-1 ac_mid=-1 | |
21407 | while :; do | |
21408 | cat >conftest.$ac_ext <<_ACEOF | |
21409 | /* confdefs.h. */ | |
21410 | _ACEOF | |
21411 | cat confdefs.h >>conftest.$ac_ext | |
21412 | cat >>conftest.$ac_ext <<_ACEOF | |
21413 | /* end confdefs.h. */ | |
21414 | ||
21415 | int | |
21416 | main () | |
21417 | { | |
21418 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)]; | |
21419 | test_array [0] = 0 | |
21420 | ||
21421 | ; | |
21422 | return 0; | |
21423 | } | |
21424 | _ACEOF | |
21425 | rm -f conftest.$ac_objext | |
21426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21427 | (eval $ac_compile) 2>conftest.er1 | |
21428 | ac_status=$? | |
21429 | grep -v '^ *+' conftest.er1 >conftest.err | |
21430 | rm -f conftest.er1 | |
21431 | cat conftest.err >&5 | |
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21433 | (exit $ac_status); } && | |
21434 | { ac_try='test -z "$ac_c_werror_flag" | |
21435 | || test ! -s conftest.err' | |
21436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21437 | (eval $ac_try) 2>&5 | |
21438 | ac_status=$? | |
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21440 | (exit $ac_status); }; } && | |
21441 | { ac_try='test -s conftest.$ac_objext' | |
21442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21443 | (eval $ac_try) 2>&5 | |
21444 | ac_status=$? | |
21445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21446 | (exit $ac_status); }; }; then | |
21447 | ac_lo=$ac_mid; break | |
21448 | else | |
21449 | echo "$as_me: failed program was:" >&5 | |
21450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21451 | ||
21452 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21453 | if test $ac_mid -le $ac_hi; then | |
21454 | ac_lo= ac_hi= | |
21455 | break | |
21456 | fi | |
21457 | ac_mid=`expr 2 '*' $ac_mid` | |
21458 | fi | |
21459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21460 | done | |
21461 | else | |
21462 | echo "$as_me: failed program was:" >&5 | |
21463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21464 | ||
21465 | ac_lo= ac_hi= | |
21466 | fi | |
21467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21468 | fi | |
21469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21470 | # Binary search between lo and hi bounds. | |
21471 | while test "x$ac_lo" != "x$ac_hi"; do | |
21472 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21473 | cat >conftest.$ac_ext <<_ACEOF | |
21474 | /* confdefs.h. */ | |
21475 | _ACEOF | |
21476 | cat confdefs.h >>conftest.$ac_ext | |
21477 | cat >>conftest.$ac_ext <<_ACEOF | |
21478 | /* end confdefs.h. */ | |
21479 | ||
21480 | int | |
21481 | main () | |
21482 | { | |
21483 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)]; | |
21484 | test_array [0] = 0 | |
21485 | ||
21486 | ; | |
21487 | return 0; | |
21488 | } | |
21489 | _ACEOF | |
21490 | rm -f conftest.$ac_objext | |
21491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21492 | (eval $ac_compile) 2>conftest.er1 | |
21493 | ac_status=$? | |
21494 | grep -v '^ *+' conftest.er1 >conftest.err | |
21495 | rm -f conftest.er1 | |
21496 | cat conftest.err >&5 | |
21497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21498 | (exit $ac_status); } && | |
21499 | { ac_try='test -z "$ac_c_werror_flag" | |
21500 | || test ! -s conftest.err' | |
21501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21502 | (eval $ac_try) 2>&5 | |
21503 | ac_status=$? | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); }; } && | |
21506 | { ac_try='test -s conftest.$ac_objext' | |
21507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21508 | (eval $ac_try) 2>&5 | |
21509 | ac_status=$? | |
21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21511 | (exit $ac_status); }; }; then | |
21512 | ac_hi=$ac_mid | |
21513 | else | |
21514 | echo "$as_me: failed program was:" >&5 | |
21515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21516 | ||
21517 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21518 | fi | |
21519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21520 | done | |
21521 | case $ac_lo in | |
21522 | ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;; | |
21523 | '') ;; | |
21524 | esac | |
21525 | else | |
21526 | if test "$cross_compiling" = yes; then | |
18c04407 RW |
21527 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
21528 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21529 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
a68ab351 JJ |
21530 | See \`config.log' for more details." >&5 |
21531 | echo "$as_me: error: cannot run test program while cross compiling | |
21532 | See \`config.log' for more details." >&2;} | |
18c04407 | 21533 | { (exit 1); exit 1; }; }; } |
a68ab351 JJ |
21534 | else |
21535 | cat >conftest.$ac_ext <<_ACEOF | |
21536 | /* confdefs.h. */ | |
21537 | _ACEOF | |
21538 | cat confdefs.h >>conftest.$ac_ext | |
21539 | cat >>conftest.$ac_ext <<_ACEOF | |
21540 | /* end confdefs.h. */ | |
21541 | ||
21542 | long longval () { return __alignof (omp_nest_lock_25_t); } | |
21543 | unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); } | |
21544 | #include <stdio.h> | |
21545 | #include <stdlib.h> | |
21546 | int | |
21547 | main () | |
21548 | { | |
21549 | ||
21550 | FILE *f = fopen ("conftest.val", "w"); | |
21551 | if (! f) | |
21552 | exit (1); | |
21553 | if ((__alignof (omp_nest_lock_25_t)) < 0) | |
21554 | { | |
21555 | long i = longval (); | |
21556 | if (i != (__alignof (omp_nest_lock_25_t))) | |
21557 | exit (1); | |
21558 | fprintf (f, "%ld\n", i); | |
21559 | } | |
21560 | else | |
21561 | { | |
21562 | unsigned long i = ulongval (); | |
21563 | if (i != (__alignof (omp_nest_lock_25_t))) | |
21564 | exit (1); | |
21565 | fprintf (f, "%lu\n", i); | |
21566 | } | |
21567 | exit (ferror (f) || fclose (f) != 0); | |
21568 | ||
21569 | ; | |
21570 | return 0; | |
21571 | } | |
21572 | _ACEOF | |
21573 | rm -f conftest$ac_exeext | |
21574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21575 | (eval $ac_link) 2>&5 | |
21576 | ac_status=$? | |
21577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21580 | (eval $ac_try) 2>&5 | |
21581 | ac_status=$? | |
21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21583 | (exit $ac_status); }; }; then | |
21584 | OMP_NEST_LOCK_25_ALIGN=`cat conftest.val` | |
21585 | else | |
21586 | echo "$as_me: program exited with status $ac_status" >&5 | |
21587 | echo "$as_me: failed program was:" >&5 | |
21588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21589 | ||
21590 | fi | |
21591 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21592 | fi | |
21593 | fi | |
21594 | rm -f conftest.val | |
21595 | ||
21596 | # If the lock fits in an integer, then arrange for Fortran to use that | |
21597 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
21598 | # Except that we don't have a way at present to multi-lib the installed | |
21599 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
21600 | # actual target. | |
21601 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
21602 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
21603 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
21604 | OMP_LOCK_KIND=8 | |
21605 | fi | |
21606 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
21607 | OMP_NEST_LOCK_KIND=8 | |
21608 | fi | |
21609 | OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE | |
21610 | OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE | |
21611 | if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then | |
21612 | OMP_LOCK_25_KIND=8 | |
21613 | fi | |
21614 | if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then | |
21615 | OMP_NEST_LOCK_25_KIND=8 | |
21616 | fi | |
21617 | ||
21618 | ||
21619 | ||
21620 | ||
21621 | ||
21622 | ||
03b8fe49 PB |
21623 | |
21624 | ||
21625 | ||
21626 | ||
21627 | ||
21628 | ||
21629 | ||
21630 | CFLAGS="$save_CFLAGS" | |
21631 | ||
21632 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" | |
21633 | ||
953ff289 DN |
21634 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
21635 | ||
21636 | cat >confcache <<\_ACEOF | |
21637 | # This file is a shell script that caches the results of configure | |
21638 | # tests run on this system so they can be shared between configure | |
21639 | # scripts and configure runs, see configure's option --config-cache. | |
21640 | # It is not useful on other systems. If it contains results you don't | |
21641 | # want to keep, you may remove or edit it. | |
21642 | # | |
21643 | # config.status only pays attention to the cache file if you give it | |
21644 | # the --recheck option to rerun configure. | |
21645 | # | |
21646 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21647 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21648 | # following values. | |
21649 | ||
21650 | _ACEOF | |
21651 | ||
21652 | # The following way of writing the cache mishandles newlines in values, | |
21653 | # but we know of no workaround that is simple, portable, and efficient. | |
21654 | # So, don't put newlines in cache variables' values. | |
21655 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21656 | # and sets the high bit in the cache file unless we assign to the vars. | |
21657 | { | |
21658 | (set) 2>&1 | | |
21659 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21660 | *ac_space=\ *) | |
21661 | # `set' does not quote correctly, so add quotes (double-quote | |
21662 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21663 | sed -n \ | |
21664 | "s/'/'\\\\''/g; | |
21665 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21666 | ;; | |
21667 | *) | |
21668 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21669 | sed -n \ | |
21670 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21671 | ;; | |
21672 | esac; | |
21673 | } | | |
21674 | sed ' | |
21675 | t clear | |
21676 | : clear | |
21677 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21678 | t end | |
21679 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21680 | : end' >>confcache | |
21681 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21682 | if test -w $cache_file; then | |
21683 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21684 | cat confcache >$cache_file | |
21685 | else | |
21686 | echo "not updating unwritable cache $cache_file" | |
21687 | fi | |
21688 | fi | |
21689 | rm -f confcache | |
21690 | ||
21691 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21692 | # Let make expand exec_prefix. | |
21693 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21694 | ||
21695 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21696 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21697 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21698 | # (actually we leave an empty line to preserve line numbers). | |
21699 | if test "x$srcdir" = x.; then | |
21700 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21701 | s/:*\$(srcdir):*/:/; | |
21702 | s/:*\${srcdir}:*/:/; | |
21703 | s/:*@srcdir@:*/:/; | |
21704 | s/^\([^=]*=[ ]*\):*/\1/; | |
21705 | s/:*$//; | |
21706 | s/^[^=]*=[ ]*$//; | |
21707 | }' | |
21708 | fi | |
21709 | ||
21710 | DEFS=-DHAVE_CONFIG_H | |
21711 | ||
21712 | ac_libobjs= | |
21713 | ac_ltlibobjs= | |
21714 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21715 | # 1. Remove the extension, and $U if already installed. | |
21716 | ac_i=`echo "$ac_i" | | |
21717 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21718 | # 2. Add them. | |
21719 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21720 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21721 | done | |
21722 | LIBOBJS=$ac_libobjs | |
21723 | ||
21724 | LTLIBOBJS=$ac_ltlibobjs | |
21725 | ||
21726 | ||
627ab4b8 TT |
21727 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
21728 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined. | |
21729 | Usually this means the macro was only invoked conditionally." >&5 | |
21730 | echo "$as_me: error: conditional \"GENINSRC\" was never defined. | |
21731 | Usually this means the macro was only invoked conditionally." >&2;} | |
21732 | { (exit 1); exit 1; }; } | |
21733 | fi | |
953ff289 DN |
21734 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
21735 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
21736 | Usually this means the macro was only invoked conditionally." >&5 | |
21737 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
21738 | Usually this means the macro was only invoked conditionally." >&2;} | |
21739 | { (exit 1); exit 1; }; } | |
21740 | fi | |
21741 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21742 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
21743 | Usually this means the macro was only invoked conditionally." >&5 | |
21744 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
21745 | Usually this means the macro was only invoked conditionally." >&2;} | |
21746 | { (exit 1); exit 1; }; } | |
21747 | fi | |
748b9d7c DF |
21748 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
21749 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined. | |
21750 | Usually this means the macro was only invoked conditionally." >&5 | |
21751 | echo "$as_me: error: conditional \"BUILD_INFO\" was never defined. | |
21752 | Usually this means the macro was only invoked conditionally." >&2;} | |
21753 | { (exit 1); exit 1; }; } | |
21754 | fi | |
c41303c6 RH |
21755 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
21756 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21757 | Usually this means the macro was only invoked conditionally." >&5 | |
21758 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21759 | Usually this means the macro was only invoked conditionally." >&2;} | |
21760 | { (exit 1); exit 1; }; } | |
21761 | fi | |
953ff289 DN |
21762 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
21763 | { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
21764 | Usually this means the macro was only invoked conditionally." >&5 | |
21765 | echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
21766 | Usually this means the macro was only invoked conditionally." >&2;} | |
21767 | { (exit 1); exit 1; }; } | |
21768 | fi | |
21769 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then | |
21770 | { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined. | |
21771 | Usually this means the macro was only invoked conditionally." >&5 | |
21772 | echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined. | |
21773 | Usually this means the macro was only invoked conditionally." >&2;} | |
21774 | { (exit 1); exit 1; }; } | |
21775 | fi | |
21776 | ||
21777 | : ${CONFIG_STATUS=./config.status} | |
21778 | ac_clean_files_save=$ac_clean_files | |
21779 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21780 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21781 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21782 | cat >$CONFIG_STATUS <<_ACEOF | |
21783 | #! $SHELL | |
21784 | # Generated by $as_me. | |
21785 | # Run this file to recreate the current configuration. | |
21786 | # Compiler output produced by configure, useful for debugging | |
21787 | # configure, is in config.log if it exists. | |
21788 | ||
21789 | debug=false | |
21790 | ac_cs_recheck=false | |
21791 | ac_cs_silent=false | |
21792 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21793 | _ACEOF | |
21794 | ||
21795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21796 | ## --------------------- ## | |
21797 | ## M4sh Initialization. ## | |
21798 | ## --------------------- ## | |
21799 | ||
21800 | # Be Bourne compatible | |
21801 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21802 | emulate sh | |
21803 | NULLCMD=: | |
21804 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21805 | # is contrary to our usage. Disable this feature. | |
21806 | alias -g '${1+"$@"}'='"$@"' | |
21807 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21808 | set -o posix | |
21809 | fi | |
21810 | DUALCASE=1; export DUALCASE # for MKS sh | |
21811 | ||
21812 | # Support unset when possible. | |
21813 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21814 | as_unset=unset | |
21815 | else | |
21816 | as_unset=false | |
21817 | fi | |
21818 | ||
21819 | ||
21820 | # Work around bugs in pre-3.0 UWIN ksh. | |
21821 | $as_unset ENV MAIL MAILPATH | |
21822 | PS1='$ ' | |
21823 | PS2='> ' | |
21824 | PS4='+ ' | |
21825 | ||
21826 | # NLS nuisances. | |
21827 | for as_var in \ | |
21828 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21829 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21830 | LC_TELEPHONE LC_TIME | |
21831 | do | |
21832 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21833 | eval $as_var=C; export $as_var | |
21834 | else | |
21835 | $as_unset $as_var | |
21836 | fi | |
21837 | done | |
21838 | ||
21839 | # Required to use basename. | |
21840 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21841 | as_expr=expr | |
21842 | else | |
21843 | as_expr=false | |
21844 | fi | |
21845 | ||
21846 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21847 | as_basename=basename | |
21848 | else | |
21849 | as_basename=false | |
21850 | fi | |
21851 | ||
21852 | ||
21853 | # Name of the executable. | |
21854 | as_me=`$as_basename "$0" || | |
21855 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21856 | X"$0" : 'X\(//\)$' \| \ | |
21857 | X"$0" : 'X\(/\)$' \| \ | |
21858 | . : '\(.\)' 2>/dev/null || | |
21859 | echo X/"$0" | | |
21860 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21861 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21862 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21863 | s/.*/./; q'` | |
21864 | ||
21865 | ||
21866 | # PATH needs CR, and LINENO needs CR and PATH. | |
21867 | # Avoid depending upon Character Ranges. | |
21868 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21869 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21870 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21871 | as_cr_digits='0123456789' | |
21872 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21873 | ||
21874 | # The user is always right. | |
21875 | if test "${PATH_SEPARATOR+set}" != set; then | |
21876 | echo "#! /bin/sh" >conf$$.sh | |
21877 | echo "exit 0" >>conf$$.sh | |
21878 | chmod +x conf$$.sh | |
21879 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21880 | PATH_SEPARATOR=';' | |
21881 | else | |
21882 | PATH_SEPARATOR=: | |
21883 | fi | |
21884 | rm -f conf$$.sh | |
21885 | fi | |
21886 | ||
21887 | ||
21888 | as_lineno_1=$LINENO | |
21889 | as_lineno_2=$LINENO | |
21890 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21891 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21892 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21893 | # Find who we are. Look in the path if we contain no path at all | |
21894 | # relative or not. | |
21895 | case $0 in | |
21896 | *[\\/]* ) as_myself=$0 ;; | |
21897 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21898 | for as_dir in $PATH | |
21899 | do | |
21900 | IFS=$as_save_IFS | |
21901 | test -z "$as_dir" && as_dir=. | |
21902 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21903 | done | |
21904 | ||
21905 | ;; | |
21906 | esac | |
21907 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21908 | # in which case we are not to be found in the path. | |
21909 | if test "x$as_myself" = x; then | |
21910 | as_myself=$0 | |
21911 | fi | |
21912 | if test ! -f "$as_myself"; then | |
21913 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21914 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21915 | { (exit 1); exit 1; }; } | |
21916 | fi | |
21917 | case $CONFIG_SHELL in | |
21918 | '') | |
21919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21920 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21921 | do | |
21922 | IFS=$as_save_IFS | |
21923 | test -z "$as_dir" && as_dir=. | |
21924 | for as_base in sh bash ksh sh5; do | |
21925 | case $as_dir in | |
21926 | /*) | |
21927 | if ("$as_dir/$as_base" -c ' | |
21928 | as_lineno_1=$LINENO | |
21929 | as_lineno_2=$LINENO | |
21930 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21931 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21932 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21933 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21934 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21935 | CONFIG_SHELL=$as_dir/$as_base | |
21936 | export CONFIG_SHELL | |
21937 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21938 | fi;; | |
21939 | esac | |
21940 | done | |
21941 | done | |
21942 | ;; | |
21943 | esac | |
21944 | ||
21945 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21946 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21947 | # line-number line before each line; the second 'sed' does the real | |
21948 | # work. The second script uses 'N' to pair each line-number line | |
21949 | # with the numbered line, and appends trailing '-' during | |
21950 | # substitution so that $LINENO is not a special case at line end. | |
21951 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21952 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21953 | sed '=' <$as_myself | | |
21954 | sed ' | |
21955 | N | |
21956 | s,$,-, | |
21957 | : loop | |
21958 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21959 | t loop | |
21960 | s,-$,, | |
21961 | s,^['$as_cr_digits']*\n,, | |
21962 | ' >$as_me.lineno && | |
21963 | chmod +x $as_me.lineno || | |
21964 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21965 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21966 | { (exit 1); exit 1; }; } | |
21967 | ||
21968 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21969 | # (the dirname of $[0] is not the place where we might find the | |
21970 | # original and so on. Autoconf is especially sensible to this). | |
21971 | . ./$as_me.lineno | |
21972 | # Exit status is that of the last command. | |
21973 | exit | |
21974 | } | |
21975 | ||
21976 | ||
21977 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21978 | *c*,-n*) ECHO_N= ECHO_C=' | |
21979 | ' ECHO_T=' ' ;; | |
21980 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21981 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21982 | esac | |
21983 | ||
21984 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21985 | as_expr=expr | |
21986 | else | |
21987 | as_expr=false | |
21988 | fi | |
21989 | ||
21990 | rm -f conf$$ conf$$.exe conf$$.file | |
21991 | echo >conf$$.file | |
21992 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21993 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21994 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21995 | if test -f conf$$.exe; then | |
21996 | # Don't use ln at all; we don't have any links | |
21997 | as_ln_s='cp -p' | |
21998 | else | |
21999 | as_ln_s='ln -s' | |
22000 | fi | |
22001 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22002 | as_ln_s=ln | |
22003 | else | |
22004 | as_ln_s='cp -p' | |
22005 | fi | |
22006 | rm -f conf$$ conf$$.exe conf$$.file | |
22007 | ||
22008 | if mkdir -p . 2>/dev/null; then | |
22009 | as_mkdir_p=: | |
22010 | else | |
22011 | test -d ./-p && rmdir ./-p | |
22012 | as_mkdir_p=false | |
22013 | fi | |
22014 | ||
22015 | as_executable_p="test -f" | |
22016 | ||
22017 | # Sed expression to map a string onto a valid CPP name. | |
22018 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22019 | ||
22020 | # Sed expression to map a string onto a valid variable name. | |
22021 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22022 | ||
22023 | ||
22024 | # IFS | |
22025 | # We need space, tab and new line, in precisely that order. | |
22026 | as_nl=' | |
22027 | ' | |
22028 | IFS=" $as_nl" | |
22029 | ||
22030 | # CDPATH. | |
22031 | $as_unset CDPATH | |
22032 | ||
22033 | exec 6>&1 | |
22034 | ||
22035 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22036 | # report actual input values of CONFIG_FILES etc. instead of their | |
22037 | # values after options handling. Logging --version etc. is OK. | |
22038 | exec 5>>config.log | |
22039 | { | |
22040 | echo | |
22041 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22042 | ## Running $as_me. ## | |
22043 | _ASBOX | |
22044 | } >&5 | |
22045 | cat >&5 <<_CSEOF | |
22046 | ||
22047 | This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was | |
22048 | generated by GNU Autoconf 2.59. Invocation command line was | |
22049 | ||
22050 | CONFIG_FILES = $CONFIG_FILES | |
22051 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22052 | CONFIG_LINKS = $CONFIG_LINKS | |
22053 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22054 | $ $0 $@ | |
22055 | ||
22056 | _CSEOF | |
22057 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22058 | echo >&5 | |
22059 | _ACEOF | |
22060 | ||
22061 | # Files that config.status was made for. | |
22062 | if test -n "$ac_config_files"; then | |
22063 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22064 | fi | |
22065 | ||
22066 | if test -n "$ac_config_headers"; then | |
22067 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22068 | fi | |
22069 | ||
22070 | if test -n "$ac_config_links"; then | |
22071 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
22072 | fi | |
22073 | ||
22074 | if test -n "$ac_config_commands"; then | |
22075 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22076 | fi | |
22077 | ||
22078 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22079 | ||
22080 | ac_cs_usage="\ | |
22081 | \`$as_me' instantiates files from templates according to the | |
22082 | current configuration. | |
22083 | ||
22084 | Usage: $0 [OPTIONS] [FILE]... | |
22085 | ||
22086 | -h, --help print this help, then exit | |
22087 | -V, --version print version number, then exit | |
22088 | -q, --quiet do not print progress messages | |
22089 | -d, --debug don't remove temporary files | |
22090 | --recheck update $as_me by reconfiguring in the same conditions | |
22091 | --file=FILE[:TEMPLATE] | |
22092 | instantiate the configuration file FILE | |
22093 | --header=FILE[:TEMPLATE] | |
22094 | instantiate the configuration header FILE | |
22095 | ||
22096 | Configuration files: | |
22097 | $config_files | |
22098 | ||
22099 | Configuration headers: | |
22100 | $config_headers | |
22101 | ||
22102 | Configuration commands: | |
22103 | $config_commands | |
22104 | ||
22105 | Report bugs to <bug-autoconf@gnu.org>." | |
22106 | _ACEOF | |
22107 | ||
22108 | cat >>$CONFIG_STATUS <<_ACEOF | |
22109 | ac_cs_version="\\ | |
22110 | GNU OpenMP Runtime Library config.status 1.0 | |
22111 | configured by $0, generated by GNU Autoconf 2.59, | |
22112 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22113 | ||
22114 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22115 | This config.status script is free software; the Free Software Foundation | |
22116 | gives unlimited permission to copy, distribute and modify it." | |
22117 | srcdir=$srcdir | |
22118 | INSTALL="$INSTALL" | |
22119 | _ACEOF | |
22120 | ||
22121 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22122 | # If no file are specified by the user, then we need to provide default | |
22123 | # value. By we need to know if files were specified by the user. | |
22124 | ac_need_defaults=: | |
22125 | while test $# != 0 | |
22126 | do | |
22127 | case $1 in | |
22128 | --*=*) | |
22129 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22130 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22131 | ac_shift=: | |
22132 | ;; | |
22133 | -*) | |
22134 | ac_option=$1 | |
22135 | ac_optarg=$2 | |
22136 | ac_shift=shift | |
22137 | ;; | |
22138 | *) # This is not an option, so the user has probably given explicit | |
22139 | # arguments. | |
22140 | ac_option=$1 | |
22141 | ac_need_defaults=false;; | |
22142 | esac | |
22143 | ||
22144 | case $ac_option in | |
22145 | # Handling of the options. | |
22146 | _ACEOF | |
22147 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22148 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22149 | ac_cs_recheck=: ;; | |
22150 | --version | --vers* | -V ) | |
22151 | echo "$ac_cs_version"; exit 0 ;; | |
22152 | --he | --h) | |
22153 | # Conflict between --help and --header | |
22154 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22155 | Try \`$0 --help' for more information." >&5 | |
22156 | echo "$as_me: error: ambiguous option: $1 | |
22157 | Try \`$0 --help' for more information." >&2;} | |
22158 | { (exit 1); exit 1; }; };; | |
22159 | --help | --hel | -h ) | |
22160 | echo "$ac_cs_usage"; exit 0 ;; | |
22161 | --debug | --d* | -d ) | |
22162 | debug=: ;; | |
22163 | --file | --fil | --fi | --f ) | |
22164 | $ac_shift | |
22165 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22166 | ac_need_defaults=false;; | |
22167 | --header | --heade | --head | --hea ) | |
22168 | $ac_shift | |
22169 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22170 | ac_need_defaults=false;; | |
22171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22172 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22173 | ac_cs_silent=: ;; | |
22174 | ||
22175 | # This is an error. | |
22176 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22177 | Try \`$0 --help' for more information." >&5 | |
22178 | echo "$as_me: error: unrecognized option: $1 | |
22179 | Try \`$0 --help' for more information." >&2;} | |
22180 | { (exit 1); exit 1; }; } ;; | |
22181 | ||
22182 | *) ac_config_targets="$ac_config_targets $1" ;; | |
22183 | ||
22184 | esac | |
22185 | shift | |
22186 | done | |
22187 | ||
22188 | ac_configure_extra_args= | |
22189 | ||
22190 | if $ac_cs_silent; then | |
22191 | exec 6>/dev/null | |
22192 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22193 | fi | |
22194 | ||
22195 | _ACEOF | |
22196 | cat >>$CONFIG_STATUS <<_ACEOF | |
22197 | if \$ac_cs_recheck; then | |
22198 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22199 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22200 | fi | |
22201 | ||
22202 | _ACEOF | |
22203 | ||
22204 | cat >>$CONFIG_STATUS <<_ACEOF | |
22205 | # | |
22206 | # INIT-COMMANDS section. | |
22207 | # | |
22208 | ||
22209 | ||
22210 | srcdir="$srcdir" | |
22211 | host="$host" | |
22212 | target="$target" | |
22213 | with_multisubdir="$with_multisubdir" | |
22214 | with_multisrctop="$with_multisrctop" | |
22215 | with_target_subdir="$with_target_subdir" | |
22216 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
22217 | multi_basedir="$multi_basedir" | |
22218 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
22219 | CC="$CC" | |
22220 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
22221 | ||
1cf3d07d SE |
22222 | |
22223 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22224 | # if CDPATH is set. | |
22225 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22226 | ||
22227 | sed_quote_subst='$sed_quote_subst' | |
22228 | double_quote_subst='$double_quote_subst' | |
22229 | delay_variable_subst='$delay_variable_subst' | |
22230 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
22231 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
22232 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
22233 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
22234 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
22235 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
22236 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
22237 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
22238 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
22239 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
22240 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
22241 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
22242 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
22243 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
22244 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
22245 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
22246 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
22247 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
22248 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
22249 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
22250 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
22251 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
22252 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
22253 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
22254 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
22255 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
22256 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
22257 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 22258 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
22259 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
22260 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
22261 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
22262 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
22263 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
22264 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
22265 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22266 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22267 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22268 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
22269 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
22270 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
22271 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
22272 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
22273 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
22274 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 22275 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
22276 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
22277 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
22278 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
22279 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
22280 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
22281 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
22282 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
22283 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
22284 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
22285 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed PG |
22286 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
22287 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
22288 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
22289 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
22290 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
1cf3d07d SE |
22291 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
22292 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22293 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22294 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
22295 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
22296 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22297 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22298 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
22299 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22300 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22301 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22302 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22303 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22304 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22305 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
22306 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
22307 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
22308 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22309 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
22310 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
22311 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
22312 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
22313 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
22314 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
22315 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
22316 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
22317 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
22318 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
22319 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
22320 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22321 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
22322 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
22323 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22324 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22325 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
22326 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
22327 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
22328 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
22329 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
22330 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
22331 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
22332 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22333 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22334 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22335 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22336 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22337 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
22338 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
22339 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
22340 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22341 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
22342 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
22343 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
22344 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
22345 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
22346 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
22347 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 22348 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
22349 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
22350 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
22351 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
22352 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
22353 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
22354 | LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22355 | old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22356 | compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22357 | GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22358 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22359 | lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22360 | lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22361 | lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22362 | lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22363 | archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22364 | enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22365 | export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22366 | whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22367 | compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22368 | old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22369 | old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22370 | archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22371 | archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22372 | module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22373 | module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22374 | with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22375 | allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22376 | no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22377 | hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22378 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22379 | hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22380 | hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22381 | hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22382 | hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22383 | hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22384 | hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22385 | inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22386 | link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22387 | fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22388 | always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22389 | export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22390 | exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22391 | include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22392 | prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22393 | file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22394 | hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 22395 | compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
22396 | predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' |
22397 | postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22398 | predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22399 | postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22400 | compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
22401 | ||
22402 | LTCC='$LTCC' | |
22403 | LTCFLAGS='$LTCFLAGS' | |
22404 | compiler='$compiler_DEFAULT' | |
22405 | ||
22406 | # Quote evaled strings. | |
22407 | for var in SED \ | |
22408 | GREP \ | |
22409 | EGREP \ | |
22410 | FGREP \ | |
22411 | LD \ | |
22412 | NM \ | |
22413 | LN_S \ | |
22414 | lt_SP2NL \ | |
22415 | lt_NL2SP \ | |
22416 | reload_flag \ | |
6b4a97ed | 22417 | OBJDUMP \ |
1cf3d07d SE |
22418 | deplibs_check_method \ |
22419 | file_magic_cmd \ | |
22420 | AR \ | |
22421 | AR_FLAGS \ | |
22422 | STRIP \ | |
22423 | RANLIB \ | |
22424 | CC \ | |
22425 | CFLAGS \ | |
22426 | compiler \ | |
22427 | lt_cv_sys_global_symbol_pipe \ | |
22428 | lt_cv_sys_global_symbol_to_cdecl \ | |
22429 | lt_cv_sys_global_symbol_to_c_name_address \ | |
6b4a97ed | 22430 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
22431 | SHELL \ |
22432 | ECHO \ | |
22433 | lt_prog_compiler_no_builtin_flag \ | |
22434 | lt_prog_compiler_wl \ | |
22435 | lt_prog_compiler_pic \ | |
22436 | lt_prog_compiler_static \ | |
22437 | lt_cv_prog_compiler_c_o \ | |
22438 | need_locks \ | |
6b4a97ed PG |
22439 | DSYMUTIL \ |
22440 | NMEDIT \ | |
22441 | LIPO \ | |
22442 | OTOOL \ | |
22443 | OTOOL64 \ | |
1cf3d07d SE |
22444 | shrext_cmds \ |
22445 | export_dynamic_flag_spec \ | |
22446 | whole_archive_flag_spec \ | |
22447 | compiler_needs_object \ | |
22448 | with_gnu_ld \ | |
22449 | allow_undefined_flag \ | |
22450 | no_undefined_flag \ | |
22451 | hardcode_libdir_flag_spec \ | |
22452 | hardcode_libdir_flag_spec_ld \ | |
22453 | hardcode_libdir_separator \ | |
22454 | fix_srcfile_path \ | |
22455 | exclude_expsyms \ | |
22456 | include_expsyms \ | |
22457 | file_list_spec \ | |
22458 | variables_saved_for_relink \ | |
22459 | libname_spec \ | |
22460 | library_names_spec \ | |
22461 | soname_spec \ | |
22462 | finish_eval \ | |
22463 | old_striplib \ | |
22464 | striplib \ | |
6b4a97ed | 22465 | compiler_lib_search_dirs \ |
1cf3d07d SE |
22466 | predep_objects \ |
22467 | postdep_objects \ | |
22468 | predeps \ | |
22469 | postdeps \ | |
22470 | compiler_lib_search_path \ | |
22471 | LD_FC \ | |
22472 | compiler_FC \ | |
22473 | lt_prog_compiler_no_builtin_flag_FC \ | |
22474 | lt_prog_compiler_wl_FC \ | |
22475 | lt_prog_compiler_pic_FC \ | |
22476 | lt_prog_compiler_static_FC \ | |
22477 | lt_cv_prog_compiler_c_o_FC \ | |
22478 | export_dynamic_flag_spec_FC \ | |
22479 | whole_archive_flag_spec_FC \ | |
22480 | compiler_needs_object_FC \ | |
22481 | with_gnu_ld_FC \ | |
22482 | allow_undefined_flag_FC \ | |
22483 | no_undefined_flag_FC \ | |
22484 | hardcode_libdir_flag_spec_FC \ | |
22485 | hardcode_libdir_flag_spec_ld_FC \ | |
22486 | hardcode_libdir_separator_FC \ | |
22487 | fix_srcfile_path_FC \ | |
22488 | exclude_expsyms_FC \ | |
22489 | include_expsyms_FC \ | |
22490 | file_list_spec_FC \ | |
6b4a97ed | 22491 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
22492 | predep_objects_FC \ |
22493 | postdep_objects_FC \ | |
22494 | predeps_FC \ | |
22495 | postdeps_FC \ | |
22496 | compiler_lib_search_path_FC; do | |
22497 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
22498 | *[\\\\\\\`\\"\\\$]*) | |
22499 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
22500 | ;; | |
22501 | *) | |
22502 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22503 | ;; | |
22504 | esac | |
22505 | done | |
22506 | ||
22507 | # Double-quote double-evaled strings. | |
22508 | for var in reload_cmds \ | |
22509 | old_postinstall_cmds \ | |
22510 | old_postuninstall_cmds \ | |
22511 | old_archive_cmds \ | |
22512 | extract_expsyms_cmds \ | |
22513 | old_archive_from_new_cmds \ | |
22514 | old_archive_from_expsyms_cmds \ | |
22515 | archive_cmds \ | |
22516 | archive_expsym_cmds \ | |
22517 | module_cmds \ | |
22518 | module_expsym_cmds \ | |
22519 | export_symbols_cmds \ | |
22520 | prelink_cmds \ | |
22521 | postinstall_cmds \ | |
22522 | postuninstall_cmds \ | |
22523 | finish_cmds \ | |
22524 | sys_lib_search_path_spec \ | |
22525 | sys_lib_dlsearch_path_spec \ | |
22526 | old_archive_cmds_FC \ | |
22527 | old_archive_from_new_cmds_FC \ | |
22528 | old_archive_from_expsyms_cmds_FC \ | |
22529 | archive_cmds_FC \ | |
22530 | archive_expsym_cmds_FC \ | |
22531 | module_cmds_FC \ | |
22532 | module_expsym_cmds_FC \ | |
22533 | export_symbols_cmds_FC \ | |
22534 | prelink_cmds_FC; do | |
22535 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
22536 | *[\\\\\\\`\\"\\\$]*) | |
22537 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
22538 | ;; | |
22539 | *) | |
22540 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22541 | ;; | |
22542 | esac | |
22543 | done | |
22544 | ||
22545 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
22546 | case \$lt_ECHO in | |
22547 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
22548 | ;; | |
22549 | esac | |
22550 | ||
22551 | ac_aux_dir='$ac_aux_dir' | |
22552 | xsi_shell='$xsi_shell' | |
22553 | lt_shell_append='$lt_shell_append' | |
22554 | ||
22555 | # See if we are running on zsh, and set the options which allow our | |
22556 | # commands through without removal of \ escapes INIT. | |
22557 | if test -n "\${ZSH_VERSION+set}" ; then | |
22558 | setopt NO_GLOB_SUBST | |
22559 | fi | |
22560 | ||
22561 | ||
22562 | PACKAGE='$PACKAGE' | |
22563 | VERSION='$VERSION' | |
22564 | TIMESTAMP='$TIMESTAMP' | |
22565 | RM='$RM' | |
22566 | ofile='$ofile' | |
22567 | ||
22568 | ||
22569 | ||
22570 | ||
22571 | ||
22572 | ||
18cbfd85 PB |
22573 | GCC="$GCC" |
22574 | CC="$CC" | |
22575 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
22576 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
22577 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
22578 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
22579 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
22580 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
22581 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
22582 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
22583 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
22584 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
22585 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
22586 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
22587 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
22588 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
22589 | ||
22590 | ||
953ff289 DN |
22591 | _ACEOF |
22592 | ||
22593 | ||
22594 | ||
22595 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22596 | for ac_config_target in $ac_config_targets | |
22597 | do | |
22598 | case "$ac_config_target" in | |
22599 | # Handling of arguments. | |
03b8fe49 PB |
22600 | "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;; |
22601 | "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
22602 | "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
22603 | "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
953ff289 DN |
22604 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
22605 | "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
22606 | "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
22607 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
22608 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
1cf3d07d | 22609 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
18cbfd85 | 22610 | "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
953ff289 DN |
22611 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
22612 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22613 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22614 | { (exit 1); exit 1; }; };; | |
22615 | esac | |
22616 | done | |
22617 | ||
22618 | # If the user did not use the arguments to specify the items to instantiate, | |
22619 | # then the envvar interface is used. Set only those that are not. | |
22620 | # We use the long form for the default assignment because of an extremely | |
22621 | # bizarre bug on SunOS 4.1.3. | |
22622 | if $ac_need_defaults; then | |
22623 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22624 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22625 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22626 | fi | |
22627 | ||
22628 | # Have a temporary directory for convenience. Make it in the build tree | |
22629 | # simply because there is no reason to put it here, and in addition, | |
22630 | # creating and moving files from /tmp can sometimes cause problems. | |
22631 | # Create a temporary directory, and hook for its removal unless debugging. | |
22632 | $debug || | |
22633 | { | |
22634 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22635 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22636 | } | |
22637 | ||
22638 | # Create a (secure) tmp directory for tmp files. | |
22639 | ||
22640 | { | |
22641 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22642 | test -n "$tmp" && test -d "$tmp" | |
22643 | } || | |
22644 | { | |
22645 | tmp=./confstat$$-$RANDOM | |
22646 | (umask 077 && mkdir $tmp) | |
22647 | } || | |
22648 | { | |
22649 | echo "$me: cannot create a temporary directory in ." >&2 | |
22650 | { (exit 1); exit 1; } | |
22651 | } | |
22652 | ||
22653 | _ACEOF | |
22654 | ||
22655 | cat >>$CONFIG_STATUS <<_ACEOF | |
22656 | ||
22657 | # | |
22658 | # CONFIG_FILES section. | |
22659 | # | |
22660 | ||
22661 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22662 | # This happens for instance when ./config.status config.h | |
22663 | if test -n "\$CONFIG_FILES"; then | |
22664 | # Protect against being on the right side of a sed subst in config.status. | |
22665 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22666 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22667 | s,@SHELL@,$SHELL,;t t | |
22668 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22669 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22670 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22671 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22672 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22673 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22674 | s,@exec_prefix@,$exec_prefix,;t t | |
22675 | s,@prefix@,$prefix,;t t | |
22676 | s,@program_transform_name@,$program_transform_name,;t t | |
22677 | s,@bindir@,$bindir,;t t | |
22678 | s,@sbindir@,$sbindir,;t t | |
22679 | s,@libexecdir@,$libexecdir,;t t | |
22680 | s,@datadir@,$datadir,;t t | |
22681 | s,@sysconfdir@,$sysconfdir,;t t | |
22682 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22683 | s,@localstatedir@,$localstatedir,;t t | |
22684 | s,@libdir@,$libdir,;t t | |
22685 | s,@includedir@,$includedir,;t t | |
22686 | s,@oldincludedir@,$oldincludedir,;t t | |
22687 | s,@infodir@,$infodir,;t t | |
22688 | s,@mandir@,$mandir,;t t | |
22689 | s,@build_alias@,$build_alias,;t t | |
22690 | s,@host_alias@,$host_alias,;t t | |
22691 | s,@target_alias@,$target_alias,;t t | |
22692 | s,@DEFS@,$DEFS,;t t | |
22693 | s,@ECHO_C@,$ECHO_C,;t t | |
22694 | s,@ECHO_N@,$ECHO_N,;t t | |
22695 | s,@ECHO_T@,$ECHO_T,;t t | |
22696 | s,@LIBS@,$LIBS,;t t | |
627ab4b8 TT |
22697 | s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t |
22698 | s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t | |
953ff289 DN |
22699 | s,@build@,$build,;t t |
22700 | s,@build_cpu@,$build_cpu,;t t | |
22701 | s,@build_vendor@,$build_vendor,;t t | |
22702 | s,@build_os@,$build_os,;t t | |
22703 | s,@host@,$host,;t t | |
22704 | s,@host_cpu@,$host_cpu,;t t | |
22705 | s,@host_vendor@,$host_vendor,;t t | |
22706 | s,@host_os@,$host_os,;t t | |
22707 | s,@target@,$target,;t t | |
22708 | s,@target_cpu@,$target_cpu,;t t | |
22709 | s,@target_vendor@,$target_vendor,;t t | |
22710 | s,@target_os@,$target_os,;t t | |
22711 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22712 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22713 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22714 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
22715 | s,@PACKAGE@,$PACKAGE,;t t | |
22716 | s,@VERSION@,$VERSION,;t t | |
22717 | s,@ACLOCAL@,$ACLOCAL,;t t | |
22718 | s,@AUTOCONF@,$AUTOCONF,;t t | |
22719 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
22720 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
22721 | s,@MAKEINFO@,$MAKEINFO,;t t | |
22722 | s,@install_sh@,$install_sh,;t t | |
22723 | s,@STRIP@,$STRIP,;t t | |
22724 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
22725 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
22726 | s,@mkdir_p@,$mkdir_p,;t t | |
22727 | s,@AWK@,$AWK,;t t | |
22728 | s,@SET_MAKE@,$SET_MAKE,;t t | |
22729 | s,@am__leading_dot@,$am__leading_dot,;t t | |
22730 | s,@AMTAR@,$AMTAR,;t t | |
22731 | s,@am__tar@,$am__tar,;t t | |
22732 | s,@am__untar@,$am__untar,;t t | |
22733 | s,@multi_basedir@,$multi_basedir,;t t | |
22734 | s,@toolexecdir@,$toolexecdir,;t t | |
22735 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
22736 | s,@CC@,$CC,;t t | |
22737 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22738 | s,@EXEEXT@,$EXEEXT,;t t | |
22739 | s,@OBJEXT@,$OBJEXT,;t t | |
22740 | s,@DEPDIR@,$DEPDIR,;t t | |
22741 | s,@am__include@,$am__include,;t t | |
22742 | s,@am__quote@,$am__quote,;t t | |
22743 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
22744 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
22745 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
22746 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
22747 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
22748 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
22749 | s,@CFLAGS@,$CFLAGS,;t t | |
22750 | s,@AR@,$AR,;t t | |
22751 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22752 | s,@RANLIB@,$RANLIB,;t t | |
22753 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
22754 | s,@PERL@,$PERL,;t t | |
748b9d7c DF |
22755 | s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t |
22756 | s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t | |
953ff289 | 22757 | s,@LIBTOOL@,$LIBTOOL,;t t |
1cf3d07d SE |
22758 | s,@SED@,$SED,;t t |
22759 | s,@EGREP@,$EGREP,;t t | |
22760 | s,@FGREP@,$FGREP,;t t | |
22761 | s,@GREP@,$GREP,;t t | |
22762 | s,@LD@,$LD,;t t | |
22763 | s,@DUMPBIN@,$DUMPBIN,;t t | |
22764 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
22765 | s,@NM@,$NM,;t t | |
22766 | s,@LN_S@,$LN_S,;t t | |
6b4a97ed PG |
22767 | s,@OBJDUMP@,$OBJDUMP,;t t |
22768 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
1cf3d07d | 22769 | s,@lt_ECHO@,$lt_ECHO,;t t |
6b4a97ed PG |
22770 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
22771 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
22772 | s,@NMEDIT@,$NMEDIT,;t t | |
22773 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
22774 | s,@LIPO@,$LIPO,;t t | |
22775 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
22776 | s,@OTOOL@,$OTOOL,;t t | |
22777 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
22778 | s,@OTOOL64@,$OTOOL64,;t t | |
22779 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
1cf3d07d SE |
22780 | s,@CPP@,$CPP,;t t |
22781 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
953ff289 DN |
22782 | s,@enable_shared@,$enable_shared,;t t |
22783 | s,@enable_static@,$enable_static,;t t | |
c41303c6 RH |
22784 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
22785 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
22786 | s,@MAINT@,$MAINT,;t t | |
953ff289 DN |
22787 | s,@FC@,$FC,;t t |
22788 | s,@FCFLAGS@,$FCFLAGS,;t t | |
22789 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22790 | s,@ac_ct_FC@,$ac_ct_FC,;t t | |
22791 | s,@libtool_VERSION@,$libtool_VERSION,;t t | |
953ff289 DN |
22792 | s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t |
22793 | s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t | |
22794 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t | |
22795 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t | |
22796 | s,@config_path@,$config_path,;t t | |
22797 | s,@XCFLAGS@,$XCFLAGS,;t t | |
22798 | s,@XLDFLAGS@,$XLDFLAGS,;t t | |
22799 | s,@link_gomp@,$link_gomp,;t t | |
22800 | s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t | |
22801 | s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t | |
03b8fe49 PB |
22802 | s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t |
22803 | s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t | |
22804 | s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t | |
22805 | s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t | |
22806 | s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t | |
22807 | s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t | |
a68ab351 JJ |
22808 | s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t |
22809 | s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t | |
22810 | s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t | |
22811 | s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t | |
22812 | s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t | |
22813 | s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t | |
953ff289 DN |
22814 | s,@LIBOBJS@,$LIBOBJS,;t t |
22815 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
22816 | CEOF | |
22817 | ||
22818 | _ACEOF | |
22819 | ||
22820 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22821 | # Split the substitutions into bite-sized pieces for seds with | |
22822 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22823 | ac_max_sed_lines=48 | |
22824 | ac_sed_frag=1 # Number of current file. | |
22825 | ac_beg=1 # First line for current file. | |
22826 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22827 | ac_more_lines=: | |
22828 | ac_sed_cmds= | |
22829 | while $ac_more_lines; do | |
22830 | if test $ac_beg -gt 1; then | |
22831 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22832 | else | |
22833 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22834 | fi | |
22835 | if test ! -s $tmp/subs.frag; then | |
22836 | ac_more_lines=false | |
22837 | else | |
22838 | # The purpose of the label and of the branching condition is to | |
22839 | # speed up the sed processing (if there are no `@' at all, there | |
22840 | # is no need to browse any of the substitutions). | |
22841 | # These are the two extra sed commands mentioned above. | |
22842 | (echo ':t | |
22843 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22844 | if test -z "$ac_sed_cmds"; then | |
22845 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22846 | else | |
22847 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22848 | fi | |
22849 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22850 | ac_beg=$ac_end | |
22851 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22852 | fi | |
22853 | done | |
22854 | if test -z "$ac_sed_cmds"; then | |
22855 | ac_sed_cmds=cat | |
22856 | fi | |
22857 | fi # test -n "$CONFIG_FILES" | |
22858 | ||
22859 | _ACEOF | |
22860 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22861 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
22862 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22863 | case $ac_file in | |
22864 | - | *:- | *:-:* ) # input from stdin | |
22865 | cat >$tmp/stdin | |
22866 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22867 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22868 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22869 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22870 | * ) ac_file_in=$ac_file.in ;; | |
22871 | esac | |
22872 | ||
22873 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
22874 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22875 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22876 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22877 | X"$ac_file" : 'X\(//\)$' \| \ | |
22878 | X"$ac_file" : 'X\(/\)' \| \ | |
22879 | . : '\(.\)' 2>/dev/null || | |
22880 | echo X"$ac_file" | | |
22881 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22882 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22883 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22884 | /^X\(\/\).*/{ s//\1/; q; } | |
22885 | s/.*/./; q'` | |
22886 | { if $as_mkdir_p; then | |
22887 | mkdir -p "$ac_dir" | |
22888 | else | |
22889 | as_dir="$ac_dir" | |
22890 | as_dirs= | |
22891 | while test ! -d "$as_dir"; do | |
22892 | as_dirs="$as_dir $as_dirs" | |
22893 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22894 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22895 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22896 | X"$as_dir" : 'X\(//\)$' \| \ | |
22897 | X"$as_dir" : 'X\(/\)' \| \ | |
22898 | . : '\(.\)' 2>/dev/null || | |
22899 | echo X"$as_dir" | | |
22900 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22901 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22902 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22903 | /^X\(\/\).*/{ s//\1/; q; } | |
22904 | s/.*/./; q'` | |
22905 | done | |
22906 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22907 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22908 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22909 | { (exit 1); exit 1; }; }; } | |
22910 | ||
22911 | ac_builddir=. | |
22912 | ||
22913 | if test "$ac_dir" != .; then | |
22914 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22915 | # A "../" for each directory in $ac_dir_suffix. | |
22916 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22917 | else | |
22918 | ac_dir_suffix= ac_top_builddir= | |
22919 | fi | |
22920 | ||
22921 | case $srcdir in | |
22922 | .) # No --srcdir option. We are building in place. | |
22923 | ac_srcdir=. | |
22924 | if test -z "$ac_top_builddir"; then | |
22925 | ac_top_srcdir=. | |
22926 | else | |
22927 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22928 | fi ;; | |
22929 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22930 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22931 | ac_top_srcdir=$srcdir ;; | |
22932 | *) # Relative path. | |
22933 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22934 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22935 | esac | |
22936 | ||
22937 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22938 | # the directories may not exist. | |
22939 | case `pwd` in | |
22940 | .) ac_abs_builddir="$ac_dir";; | |
22941 | *) | |
22942 | case "$ac_dir" in | |
22943 | .) ac_abs_builddir=`pwd`;; | |
22944 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22945 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22946 | esac;; | |
22947 | esac | |
22948 | case $ac_abs_builddir in | |
22949 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22950 | *) | |
22951 | case ${ac_top_builddir}. in | |
22952 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22953 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22954 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22955 | esac;; | |
22956 | esac | |
22957 | case $ac_abs_builddir in | |
22958 | .) ac_abs_srcdir=$ac_srcdir;; | |
22959 | *) | |
22960 | case $ac_srcdir in | |
22961 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22962 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22963 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22964 | esac;; | |
22965 | esac | |
22966 | case $ac_abs_builddir in | |
22967 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22968 | *) | |
22969 | case $ac_top_srcdir in | |
22970 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22971 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22972 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22973 | esac;; | |
22974 | esac | |
22975 | ||
22976 | ||
22977 | case $INSTALL in | |
22978 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22979 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
22980 | esac | |
22981 | ||
d349482e AT |
22982 | if test x"$ac_file" != x-; then |
22983 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22984 | echo "$as_me: creating $ac_file" >&6;} | |
22985 | rm -f "$ac_file" | |
22986 | fi | |
953ff289 DN |
22987 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22988 | # use $as_me), people would be surprised to read: | |
22989 | # /* config.h. Generated by config.status. */ | |
22990 | if test x"$ac_file" = x-; then | |
22991 | configure_input= | |
22992 | else | |
22993 | configure_input="$ac_file. " | |
22994 | fi | |
22995 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22996 | sed 's,.*/,,'` by configure." | |
22997 | ||
22998 | # First look for the input files in the build tree, otherwise in the | |
22999 | # src tree. | |
23000 | ac_file_inputs=`IFS=: | |
23001 | for f in $ac_file_in; do | |
23002 | case $f in | |
23003 | -) echo $tmp/stdin ;; | |
23004 | [\\/$]*) | |
23005 | # Absolute (can't be DOS-style, as IFS=:) | |
23006 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23007 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23008 | { (exit 1); exit 1; }; } | |
23009 | echo "$f";; | |
23010 | *) # Relative | |
23011 | if test -f "$f"; then | |
23012 | # Build tree | |
23013 | echo "$f" | |
23014 | elif test -f "$srcdir/$f"; then | |
23015 | # Source tree | |
23016 | echo "$srcdir/$f" | |
23017 | else | |
23018 | # /dev/null tree | |
23019 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23020 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23021 | { (exit 1); exit 1; }; } | |
23022 | fi;; | |
23023 | esac | |
23024 | done` || { (exit 1); exit 1; } | |
23025 | _ACEOF | |
23026 | cat >>$CONFIG_STATUS <<_ACEOF | |
23027 | sed "$ac_vpsub | |
23028 | $extrasub | |
23029 | _ACEOF | |
23030 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23031 | :t | |
23032 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23033 | s,@configure_input@,$configure_input,;t t | |
23034 | s,@srcdir@,$ac_srcdir,;t t | |
23035 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
23036 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
23037 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
23038 | s,@builddir@,$ac_builddir,;t t | |
23039 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
23040 | s,@top_builddir@,$ac_top_builddir,;t t | |
23041 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
23042 | s,@INSTALL@,$ac_INSTALL,;t t | |
23043 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
23044 | rm -f $tmp/stdin | |
23045 | if test x"$ac_file" != x-; then | |
23046 | mv $tmp/out $ac_file | |
23047 | else | |
23048 | cat $tmp/out | |
23049 | rm -f $tmp/out | |
23050 | fi | |
23051 | ||
23052 | done | |
23053 | _ACEOF | |
23054 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23055 | ||
23056 | # | |
23057 | # CONFIG_HEADER section. | |
23058 | # | |
23059 | ||
23060 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
23061 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
23062 | # | |
23063 | # ac_d sets the value in "#define NAME VALUE" lines. | |
23064 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
23065 | ac_dB='[ ].*$,\1#\2' | |
23066 | ac_dC=' ' | |
23067 | ac_dD=',;t' | |
23068 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
23069 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23070 | ac_uB='$,\1#\2define\3' | |
23071 | ac_uC=' ' | |
23072 | ac_uD=',;t' | |
23073 | ||
23074 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
23075 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
23076 | case $ac_file in | |
23077 | - | *:- | *:-:* ) # input from stdin | |
23078 | cat >$tmp/stdin | |
23079 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23080 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23081 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23082 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23083 | * ) ac_file_in=$ac_file.in ;; | |
23084 | esac | |
23085 | ||
23086 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
23087 | echo "$as_me: creating $ac_file" >&6;} | |
23088 | ||
23089 | # First look for the input files in the build tree, otherwise in the | |
23090 | # src tree. | |
23091 | ac_file_inputs=`IFS=: | |
23092 | for f in $ac_file_in; do | |
23093 | case $f in | |
23094 | -) echo $tmp/stdin ;; | |
23095 | [\\/$]*) | |
23096 | # Absolute (can't be DOS-style, as IFS=:) | |
23097 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23098 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23099 | { (exit 1); exit 1; }; } | |
23100 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
23101 | echo "$f";; | |
23102 | *) # Relative | |
23103 | if test -f "$f"; then | |
23104 | # Build tree | |
23105 | echo "$f" | |
23106 | elif test -f "$srcdir/$f"; then | |
23107 | # Source tree | |
23108 | echo "$srcdir/$f" | |
23109 | else | |
23110 | # /dev/null tree | |
23111 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23112 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23113 | { (exit 1); exit 1; }; } | |
23114 | fi;; | |
23115 | esac | |
23116 | done` || { (exit 1); exit 1; } | |
23117 | # Remove the trailing spaces. | |
23118 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
23119 | ||
23120 | _ACEOF | |
23121 | ||
23122 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
23123 | # `conftest.undefs', that substitutes the proper values into | |
23124 | # config.h.in to produce config.h. The first handles `#define' | |
23125 | # templates, and the second `#undef' templates. | |
23126 | # And first: Protect against being on the right side of a sed subst in | |
23127 | # config.status. Protect against being in an unquoted here document | |
23128 | # in config.status. | |
23129 | rm -f conftest.defines conftest.undefs | |
23130 | # Using a here document instead of a string reduces the quoting nightmare. | |
23131 | # Putting comments in sed scripts is not portable. | |
23132 | # | |
23133 | # `end' is used to avoid that the second main sed command (meant for | |
23134 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
23135 | # See the Autoconf documentation for `clear'. | |
23136 | cat >confdef2sed.sed <<\_ACEOF | |
23137 | s/[\\&,]/\\&/g | |
23138 | s,[\\$`],\\&,g | |
23139 | t clear | |
23140 | : clear | |
23141 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
23142 | t end | |
23143 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
23144 | : end | |
23145 | _ACEOF | |
23146 | # If some macros were called several times there might be several times | |
23147 | # the same #defines, which is useless. Nevertheless, we may not want to | |
23148 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
23149 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
23150 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
23151 | rm -f confdef2sed.sed | |
23152 | ||
23153 | # This sed command replaces #undef with comments. This is necessary, for | |
23154 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23155 | # on some systems where configure will not decide to define it. | |
23156 | cat >>conftest.undefs <<\_ACEOF | |
23157 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
23158 | _ACEOF | |
23159 | ||
23160 | # Break up conftest.defines because some shells have a limit on the size | |
23161 | # of here documents, and old seds have small limits too (100 cmds). | |
23162 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
23163 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
23164 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
23165 | echo ' :' >>$CONFIG_STATUS | |
23166 | rm -f conftest.tail | |
23167 | while grep . conftest.defines >/dev/null | |
23168 | do | |
23169 | # Write a limited-size here document to $tmp/defines.sed. | |
23170 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
23171 | # Speed up: don't consider the non `#define' lines. | |
23172 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
23173 | # Work around the forget-to-reset-the-flag bug. | |
23174 | echo 't clr' >>$CONFIG_STATUS | |
23175 | echo ': clr' >>$CONFIG_STATUS | |
23176 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
23177 | echo 'CEOF | |
23178 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
23179 | rm -f $tmp/in | |
23180 | mv $tmp/out $tmp/in | |
23181 | ' >>$CONFIG_STATUS | |
23182 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
23183 | rm -f conftest.defines | |
23184 | mv conftest.tail conftest.defines | |
23185 | done | |
23186 | rm -f conftest.defines | |
23187 | echo ' fi # grep' >>$CONFIG_STATUS | |
23188 | echo >>$CONFIG_STATUS | |
23189 | ||
23190 | # Break up conftest.undefs because some shells have a limit on the size | |
23191 | # of here documents, and old seds have small limits too (100 cmds). | |
23192 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
23193 | rm -f conftest.tail | |
23194 | while grep . conftest.undefs >/dev/null | |
23195 | do | |
23196 | # Write a limited-size here document to $tmp/undefs.sed. | |
23197 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
23198 | # Speed up: don't consider the non `#undef' | |
23199 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
23200 | # Work around the forget-to-reset-the-flag bug. | |
23201 | echo 't clr' >>$CONFIG_STATUS | |
23202 | echo ': clr' >>$CONFIG_STATUS | |
23203 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
23204 | echo 'CEOF | |
23205 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
23206 | rm -f $tmp/in | |
23207 | mv $tmp/out $tmp/in | |
23208 | ' >>$CONFIG_STATUS | |
23209 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
23210 | rm -f conftest.undefs | |
23211 | mv conftest.tail conftest.undefs | |
23212 | done | |
23213 | rm -f conftest.undefs | |
23214 | ||
23215 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23216 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23217 | # use $as_me), people would be surprised to read: | |
23218 | # /* config.h. Generated by config.status. */ | |
23219 | if test x"$ac_file" = x-; then | |
23220 | echo "/* Generated by configure. */" >$tmp/config.h | |
23221 | else | |
23222 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
23223 | fi | |
23224 | cat $tmp/in >>$tmp/config.h | |
23225 | rm -f $tmp/in | |
23226 | if test x"$ac_file" != x-; then | |
23227 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
23228 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
23229 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23230 | else | |
23231 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23232 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23233 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23234 | X"$ac_file" : 'X\(//\)$' \| \ | |
23235 | X"$ac_file" : 'X\(/\)' \| \ | |
23236 | . : '\(.\)' 2>/dev/null || | |
23237 | echo X"$ac_file" | | |
23238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23239 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23240 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23241 | /^X\(\/\).*/{ s//\1/; q; } | |
23242 | s/.*/./; q'` | |
23243 | { if $as_mkdir_p; then | |
23244 | mkdir -p "$ac_dir" | |
23245 | else | |
23246 | as_dir="$ac_dir" | |
23247 | as_dirs= | |
23248 | while test ! -d "$as_dir"; do | |
23249 | as_dirs="$as_dir $as_dirs" | |
23250 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23251 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23252 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23253 | X"$as_dir" : 'X\(//\)$' \| \ | |
23254 | X"$as_dir" : 'X\(/\)' \| \ | |
23255 | . : '\(.\)' 2>/dev/null || | |
23256 | echo X"$as_dir" | | |
23257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23260 | /^X\(\/\).*/{ s//\1/; q; } | |
23261 | s/.*/./; q'` | |
23262 | done | |
23263 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23264 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23265 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23266 | { (exit 1); exit 1; }; }; } | |
23267 | ||
23268 | rm -f $ac_file | |
23269 | mv $tmp/config.h $ac_file | |
23270 | fi | |
23271 | else | |
23272 | cat $tmp/config.h | |
23273 | rm -f $tmp/config.h | |
23274 | fi | |
23275 | # Compute $ac_file's index in $config_headers. | |
23276 | _am_stamp_count=1 | |
23277 | for _am_header in $config_headers :; do | |
23278 | case $_am_header in | |
23279 | $ac_file | $ac_file:* ) | |
23280 | break ;; | |
23281 | * ) | |
23282 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
23283 | esac | |
23284 | done | |
23285 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
23286 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23287 | X$ac_file : 'X\(//\)[^/]' \| \ | |
23288 | X$ac_file : 'X\(//\)$' \| \ | |
23289 | X$ac_file : 'X\(/\)' \| \ | |
23290 | . : '\(.\)' 2>/dev/null || | |
23291 | echo X$ac_file | | |
23292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23293 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23294 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23295 | /^X\(\/\).*/{ s//\1/; q; } | |
23296 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
23297 | done | |
23298 | _ACEOF | |
23299 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23300 | ||
23301 | # | |
23302 | # CONFIG_COMMANDS section. | |
23303 | # | |
23304 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
23305 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23306 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23307 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
23308 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23309 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23310 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23311 | X"$ac_dest" : 'X\(/\)' \| \ | |
23312 | . : '\(.\)' 2>/dev/null || | |
23313 | echo X"$ac_dest" | | |
23314 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23315 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23316 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23317 | /^X\(\/\).*/{ s//\1/; q; } | |
23318 | s/.*/./; q'` | |
23319 | { if $as_mkdir_p; then | |
23320 | mkdir -p "$ac_dir" | |
23321 | else | |
23322 | as_dir="$ac_dir" | |
23323 | as_dirs= | |
23324 | while test ! -d "$as_dir"; do | |
23325 | as_dirs="$as_dir $as_dirs" | |
23326 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23327 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23328 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23329 | X"$as_dir" : 'X\(//\)$' \| \ | |
23330 | X"$as_dir" : 'X\(/\)' \| \ | |
23331 | . : '\(.\)' 2>/dev/null || | |
23332 | echo X"$as_dir" | | |
23333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23335 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23336 | /^X\(\/\).*/{ s//\1/; q; } | |
23337 | s/.*/./; q'` | |
23338 | done | |
23339 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23340 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23341 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23342 | { (exit 1); exit 1; }; }; } | |
23343 | ||
23344 | ac_builddir=. | |
23345 | ||
23346 | if test "$ac_dir" != .; then | |
23347 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23348 | # A "../" for each directory in $ac_dir_suffix. | |
23349 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23350 | else | |
23351 | ac_dir_suffix= ac_top_builddir= | |
23352 | fi | |
23353 | ||
23354 | case $srcdir in | |
23355 | .) # No --srcdir option. We are building in place. | |
23356 | ac_srcdir=. | |
23357 | if test -z "$ac_top_builddir"; then | |
23358 | ac_top_srcdir=. | |
23359 | else | |
23360 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23361 | fi ;; | |
23362 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23363 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23364 | ac_top_srcdir=$srcdir ;; | |
23365 | *) # Relative path. | |
23366 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23367 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23368 | esac | |
23369 | ||
23370 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23371 | # the directories may not exist. | |
23372 | case `pwd` in | |
23373 | .) ac_abs_builddir="$ac_dir";; | |
23374 | *) | |
23375 | case "$ac_dir" in | |
23376 | .) ac_abs_builddir=`pwd`;; | |
23377 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23378 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23379 | esac;; | |
23380 | esac | |
23381 | case $ac_abs_builddir in | |
23382 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23383 | *) | |
23384 | case ${ac_top_builddir}. in | |
23385 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23386 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23387 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23388 | esac;; | |
23389 | esac | |
23390 | case $ac_abs_builddir in | |
23391 | .) ac_abs_srcdir=$ac_srcdir;; | |
23392 | *) | |
23393 | case $ac_srcdir in | |
23394 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23395 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23396 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23397 | esac;; | |
23398 | esac | |
23399 | case $ac_abs_builddir in | |
23400 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23401 | *) | |
23402 | case $ac_top_srcdir in | |
23403 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23404 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23405 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23406 | esac;; | |
23407 | esac | |
23408 | ||
23409 | ||
23410 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
23411 | echo "$as_me: executing $ac_dest commands" >&6;} | |
23412 | case $ac_dest in | |
23413 | default-1 ) | |
23414 | # Only add multilib support code if we just rebuilt the top-level | |
23415 | # Makefile. | |
23416 | case " $CONFIG_FILES " in | |
23417 | *" Makefile "*) | |
23418 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
23419 | ;; | |
23420 | esac ;; | |
23421 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
23422 | # Strip MF so we end up with the name of the file. | |
23423 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23424 | # Check whether this is an Automake generated Makefile or not. | |
23425 | # We used to match only the files named `Makefile.in', but | |
23426 | # some people rename them; so instead we look at the file content. | |
23427 | # Grep'ing the first line is not enough: some people post-process | |
23428 | # each Makefile.in and add a new line on top of each file to say so. | |
23429 | # So let's grep whole file. | |
23430 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
23431 | dirpart=`(dirname "$mf") 2>/dev/null || | |
23432 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23433 | X"$mf" : 'X\(//\)[^/]' \| \ | |
23434 | X"$mf" : 'X\(//\)$' \| \ | |
23435 | X"$mf" : 'X\(/\)' \| \ | |
23436 | . : '\(.\)' 2>/dev/null || | |
23437 | echo X"$mf" | | |
23438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23439 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23440 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23441 | /^X\(\/\).*/{ s//\1/; q; } | |
23442 | s/.*/./; q'` | |
23443 | else | |
23444 | continue | |
23445 | fi | |
23446 | # Extract the definition of DEPDIR, am__include, and am__quote | |
23447 | # from the Makefile without running `make'. | |
23448 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23449 | test -z "$DEPDIR" && continue | |
23450 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
23451 | test -z "am__include" && continue | |
23452 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
23453 | # When using ansi2knr, U may be empty or an underscore; expand it | |
23454 | U=`sed -n 's/^U = //p' < "$mf"` | |
23455 | # Find all dependency output files, they are included files with | |
23456 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23457 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23458 | # expansion. | |
23459 | for file in `sed -n " | |
23460 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23461 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
23462 | # Make sure the directory exists. | |
23463 | test -f "$dirpart/$file" && continue | |
23464 | fdir=`(dirname "$file") 2>/dev/null || | |
23465 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23466 | X"$file" : 'X\(//\)[^/]' \| \ | |
23467 | X"$file" : 'X\(//\)$' \| \ | |
23468 | X"$file" : 'X\(/\)' \| \ | |
23469 | . : '\(.\)' 2>/dev/null || | |
23470 | echo X"$file" | | |
23471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23473 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23474 | /^X\(\/\).*/{ s//\1/; q; } | |
23475 | s/.*/./; q'` | |
23476 | { if $as_mkdir_p; then | |
23477 | mkdir -p $dirpart/$fdir | |
23478 | else | |
23479 | as_dir=$dirpart/$fdir | |
23480 | as_dirs= | |
23481 | while test ! -d "$as_dir"; do | |
23482 | as_dirs="$as_dir $as_dirs" | |
23483 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23485 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23486 | X"$as_dir" : 'X\(//\)$' \| \ | |
23487 | X"$as_dir" : 'X\(/\)' \| \ | |
23488 | . : '\(.\)' 2>/dev/null || | |
23489 | echo X"$as_dir" | | |
23490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23491 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23492 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23493 | /^X\(\/\).*/{ s//\1/; q; } | |
23494 | s/.*/./; q'` | |
23495 | done | |
23496 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23497 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
23498 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
23499 | { (exit 1); exit 1; }; }; } | |
23500 | ||
23501 | # echo "creating $dirpart/$file" | |
23502 | echo '# dummy' > "$dirpart/$file" | |
23503 | done | |
23504 | done | |
1cf3d07d SE |
23505 | ;; |
23506 | libtool ) | |
23507 | ||
23508 | # See if we are running on zsh, and set the options which allow our | |
23509 | # commands through without removal of \ escapes. | |
23510 | if test -n "${ZSH_VERSION+set}" ; then | |
23511 | setopt NO_GLOB_SUBST | |
23512 | fi | |
23513 | ||
23514 | cfgfile="${ofile}T" | |
23515 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
23516 | $RM "$cfgfile" | |
23517 | ||
23518 | cat <<_LT_EOF >> "$cfgfile" | |
23519 | #! $SHELL | |
23520 | ||
23521 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
6b4a97ed | 23522 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
23523 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
23524 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
23525 | # | |
6b4a97ed PG |
23526 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
23527 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
23528 | # Written by Gordon Matzigkeit, 1996 | |
1cf3d07d | 23529 | # |
6b4a97ed | 23530 | # This file is part of GNU Libtool. |
1cf3d07d | 23531 | # |
6b4a97ed PG |
23532 | # GNU Libtool is free software; you can redistribute it and/or |
23533 | # modify it under the terms of the GNU General Public License as | |
23534 | # published by the Free Software Foundation; either version 2 of | |
23535 | # the License, or (at your option) any later version. | |
1cf3d07d | 23536 | # |
6b4a97ed PG |
23537 | # As a special exception to the GNU General Public License, |
23538 | # if you distribute this file as part of a program or library that | |
23539 | # is built using GNU Libtool, you may include this file under the | |
23540 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 23541 | # |
6b4a97ed PG |
23542 | # GNU Libtool is distributed in the hope that it will be useful, |
23543 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23544 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23545 | # GNU General Public License for more details. | |
1cf3d07d | 23546 | # |
6b4a97ed PG |
23547 | # You should have received a copy of the GNU General Public License |
23548 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
23549 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
23550 | # obtained by writing to the Free Software Foundation, Inc., | |
23551 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
23552 | |
23553 | ||
23554 | # The names of the tagged configurations supported by this script. | |
23555 | available_tags="FC " | |
23556 | ||
23557 | # ### BEGIN LIBTOOL CONFIG | |
23558 | ||
23559 | # Which release of libtool.m4 was used? | |
23560 | macro_version=$macro_version | |
23561 | macro_revision=$macro_revision | |
23562 | ||
23563 | # Whether or not to build shared libraries. | |
23564 | build_libtool_libs=$enable_shared | |
23565 | ||
23566 | # Whether or not to build static libraries. | |
23567 | build_old_libs=$enable_static | |
23568 | ||
23569 | # What type of objects to build. | |
23570 | pic_mode=$pic_mode | |
23571 | ||
23572 | # Whether or not to optimize for fast installation. | |
23573 | fast_install=$enable_fast_install | |
23574 | ||
23575 | # The host system. | |
23576 | host_alias=$host_alias | |
23577 | host=$host | |
23578 | host_os=$host_os | |
23579 | ||
23580 | # The build system. | |
23581 | build_alias=$build_alias | |
23582 | build=$build | |
23583 | build_os=$build_os | |
23584 | ||
23585 | # A sed program that does not truncate output. | |
23586 | SED=$lt_SED | |
23587 | ||
23588 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23589 | Xsed="\$SED -e 1s/^X//" | |
23590 | ||
23591 | # A grep program that handles long lines. | |
23592 | GREP=$lt_GREP | |
23593 | ||
23594 | # An ERE matcher. | |
23595 | EGREP=$lt_EGREP | |
23596 | ||
23597 | # A literal string matcher. | |
23598 | FGREP=$lt_FGREP | |
23599 | ||
23600 | # A BSD- or MS-compatible name lister. | |
23601 | NM=$lt_NM | |
23602 | ||
23603 | # Whether we need soft or hard links. | |
23604 | LN_S=$lt_LN_S | |
23605 | ||
23606 | # What is the maximum length of a command? | |
23607 | max_cmd_len=$max_cmd_len | |
23608 | ||
23609 | # Object file suffix (normally "o"). | |
23610 | objext=$ac_objext | |
23611 | ||
23612 | # Executable file suffix (normally ""). | |
23613 | exeext=$exeext | |
23614 | ||
23615 | # whether the shell understands "unset". | |
23616 | lt_unset=$lt_unset | |
23617 | ||
23618 | # turn spaces into newlines. | |
23619 | SP2NL=$lt_lt_SP2NL | |
23620 | ||
23621 | # turn newlines into spaces. | |
23622 | NL2SP=$lt_lt_NL2SP | |
23623 | ||
23624 | # How to create reloadable object files. | |
23625 | reload_flag=$lt_reload_flag | |
23626 | reload_cmds=$lt_reload_cmds | |
23627 | ||
6b4a97ed PG |
23628 | # An object symbol dumper. |
23629 | OBJDUMP=$lt_OBJDUMP | |
23630 | ||
1cf3d07d SE |
23631 | # Method to check whether dependent libraries are shared objects. |
23632 | deplibs_check_method=$lt_deplibs_check_method | |
23633 | ||
23634 | # Command to use when deplibs_check_method == "file_magic". | |
23635 | file_magic_cmd=$lt_file_magic_cmd | |
23636 | ||
23637 | # The archiver. | |
23638 | AR=$lt_AR | |
23639 | AR_FLAGS=$lt_AR_FLAGS | |
23640 | ||
23641 | # A symbol stripping program. | |
23642 | STRIP=$lt_STRIP | |
23643 | ||
23644 | # Commands used to install an old-style archive. | |
23645 | RANLIB=$lt_RANLIB | |
23646 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23647 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23648 | ||
23649 | # A C compiler. | |
23650 | LTCC=$lt_CC | |
23651 | ||
23652 | # LTCC compiler flags. | |
23653 | LTCFLAGS=$lt_CFLAGS | |
23654 | ||
23655 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23656 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23657 | ||
23658 | # Transform the output of nm in a proper C declaration. | |
23659 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23660 | ||
23661 | # Transform the output of nm in a C name address pair. | |
23662 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23663 | ||
6b4a97ed PG |
23664 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
23665 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23666 | ||
1cf3d07d SE |
23667 | # The name of the directory that contains temporary libtool files. |
23668 | objdir=$objdir | |
23669 | ||
23670 | # Shell to use when invoking shell scripts. | |
23671 | SHELL=$lt_SHELL | |
23672 | ||
23673 | # An echo program that does not interpret backslashes. | |
23674 | ECHO=$lt_ECHO | |
23675 | ||
23676 | # Used to examine libraries when file_magic_cmd begins with "file". | |
23677 | MAGIC_CMD=$MAGIC_CMD | |
23678 | ||
23679 | # Must we lock files when doing compilation? | |
23680 | need_locks=$lt_need_locks | |
23681 | ||
6b4a97ed PG |
23682 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
23683 | DSYMUTIL=$lt_DSYMUTIL | |
23684 | ||
23685 | # Tool to change global to local symbols on Mac OS X. | |
23686 | NMEDIT=$lt_NMEDIT | |
23687 | ||
23688 | # Tool to manipulate fat objects and archives on Mac OS X. | |
23689 | LIPO=$lt_LIPO | |
23690 | ||
23691 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23692 | OTOOL=$lt_OTOOL | |
23693 | ||
23694 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23695 | OTOOL64=$lt_OTOOL64 | |
23696 | ||
1cf3d07d SE |
23697 | # Old archive suffix (normally "a"). |
23698 | libext=$libext | |
23699 | ||
23700 | # Shared library suffix (normally ".so"). | |
23701 | shrext_cmds=$lt_shrext_cmds | |
23702 | ||
23703 | # The commands to extract the exported symbol list from a shared archive. | |
23704 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
23705 | ||
23706 | # Variables whose values should be saved in libtool wrapper scripts and | |
23707 | # restored at link time. | |
23708 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
23709 | ||
23710 | # Do we need the "lib" prefix for modules? | |
23711 | need_lib_prefix=$need_lib_prefix | |
23712 | ||
23713 | # Do we need a version for libraries? | |
23714 | need_version=$need_version | |
23715 | ||
23716 | # Library versioning type. | |
23717 | version_type=$version_type | |
23718 | ||
23719 | # Shared library runtime path variable. | |
23720 | runpath_var=$runpath_var | |
23721 | ||
23722 | # Shared library path variable. | |
23723 | shlibpath_var=$shlibpath_var | |
23724 | ||
23725 | # Is shlibpath searched before the hard-coded library search path? | |
23726 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
23727 | ||
23728 | # Format of library name prefix. | |
23729 | libname_spec=$lt_libname_spec | |
23730 | ||
23731 | # List of archive names. First name is the real one, the rest are links. | |
23732 | # The last name is the one that the linker finds with -lNAME | |
23733 | library_names_spec=$lt_library_names_spec | |
23734 | ||
23735 | # The coded name of the library, if different from the real name. | |
23736 | soname_spec=$lt_soname_spec | |
23737 | ||
23738 | # Command to use after installation of a shared archive. | |
23739 | postinstall_cmds=$lt_postinstall_cmds | |
23740 | ||
23741 | # Command to use after uninstallation of a shared archive. | |
23742 | postuninstall_cmds=$lt_postuninstall_cmds | |
23743 | ||
23744 | # Commands used to finish a libtool library installation in a directory. | |
23745 | finish_cmds=$lt_finish_cmds | |
23746 | ||
23747 | # As "finish_cmds", except a single script fragment to be evaled but | |
23748 | # not shown. | |
23749 | finish_eval=$lt_finish_eval | |
23750 | ||
23751 | # Whether we should hardcode library paths into libraries. | |
23752 | hardcode_into_libs=$hardcode_into_libs | |
23753 | ||
23754 | # Compile-time system search path for libraries. | |
23755 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
23756 | ||
23757 | # Run-time system search path for libraries. | |
23758 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
23759 | ||
23760 | # Whether dlopen is supported. | |
23761 | dlopen_support=$enable_dlopen | |
23762 | ||
23763 | # Whether dlopen of programs is supported. | |
23764 | dlopen_self=$enable_dlopen_self | |
23765 | ||
23766 | # Whether dlopen of statically linked programs is supported. | |
23767 | dlopen_self_static=$enable_dlopen_self_static | |
23768 | ||
23769 | # Commands to strip libraries. | |
23770 | old_striplib=$lt_old_striplib | |
23771 | striplib=$lt_striplib | |
23772 | ||
23773 | ||
23774 | # The linker used to build libraries. | |
23775 | LD=$lt_LD | |
23776 | ||
23777 | # Commands used to build an old-style archive. | |
23778 | old_archive_cmds=$lt_old_archive_cmds | |
23779 | ||
23780 | # A language specific compiler. | |
23781 | CC=$lt_compiler | |
23782 | ||
23783 | # Is the compiler the GNU compiler? | |
23784 | with_gcc=$GCC | |
23785 | ||
23786 | # Compiler flag to turn off builtin functions. | |
23787 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
23788 | ||
23789 | # How to pass a linker flag through the compiler. | |
23790 | wl=$lt_lt_prog_compiler_wl | |
23791 | ||
23792 | # Additional compiler flags for building library objects. | |
23793 | pic_flag=$lt_lt_prog_compiler_pic | |
23794 | ||
23795 | # Compiler flag to prevent dynamic linking. | |
23796 | link_static_flag=$lt_lt_prog_compiler_static | |
23797 | ||
23798 | # Does compiler simultaneously support -c and -o options? | |
23799 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
23800 | ||
23801 | # Whether or not to add -lc for building shared libraries. | |
23802 | build_libtool_need_lc=$archive_cmds_need_lc | |
23803 | ||
23804 | # Whether or not to disallow shared libs when runtime libs are static. | |
23805 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
23806 | ||
23807 | # Compiler flag to allow reflexive dlopens. | |
23808 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
23809 | ||
23810 | # Compiler flag to generate shared objects directly from archives. | |
23811 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
23812 | ||
23813 | # Whether the compiler copes with passing no objects directly. | |
23814 | compiler_needs_object=$lt_compiler_needs_object | |
23815 | ||
23816 | # Create an old-style archive from a shared archive. | |
23817 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
23818 | ||
23819 | # Create a temporary old-style archive to link instead of a shared archive. | |
23820 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
23821 | ||
23822 | # Commands used to build a shared archive. | |
23823 | archive_cmds=$lt_archive_cmds | |
23824 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
23825 | ||
23826 | # Commands used to build a loadable module if different from building | |
23827 | # a shared archive. | |
23828 | module_cmds=$lt_module_cmds | |
23829 | module_expsym_cmds=$lt_module_expsym_cmds | |
23830 | ||
23831 | # Whether we are building with GNU ld or not. | |
23832 | with_gnu_ld=$lt_with_gnu_ld | |
23833 | ||
23834 | # Flag that allows shared libraries with undefined symbols to be built. | |
23835 | allow_undefined_flag=$lt_allow_undefined_flag | |
23836 | ||
23837 | # Flag that enforces no undefined symbols. | |
23838 | no_undefined_flag=$lt_no_undefined_flag | |
23839 | ||
23840 | # Flag to hardcode \$libdir into a binary during linking. | |
23841 | # This must work even if \$libdir does not exist | |
23842 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
23843 | ||
23844 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
23845 | # during linking. This must work even if \$libdir does not exist. | |
23846 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
23847 | ||
23848 | # Whether we need a single "-rpath" flag with a separated argument. | |
23849 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
23850 | ||
23851 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23852 | # DIR into the resulting binary. | |
23853 | hardcode_direct=$hardcode_direct | |
23854 | ||
23855 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23856 | # DIR into the resulting binary and the resulting library dependency is | |
23857 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
23858 | # library is relocated. | |
23859 | hardcode_direct_absolute=$hardcode_direct_absolute | |
23860 | ||
23861 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23862 | # into the resulting binary. | |
23863 | hardcode_minus_L=$hardcode_minus_L | |
23864 | ||
23865 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23866 | # into the resulting binary. | |
23867 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
23868 | ||
23869 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
23870 | # into the library and all subsequent libraries and executables linked | |
23871 | # against it. | |
23872 | hardcode_automatic=$hardcode_automatic | |
23873 | ||
23874 | # Set to yes if linker adds runtime paths of dependent libraries | |
23875 | # to runtime path list. | |
23876 | inherit_rpath=$inherit_rpath | |
23877 | ||
23878 | # Whether libtool must link a program against all its dependency libraries. | |
23879 | link_all_deplibs=$link_all_deplibs | |
23880 | ||
23881 | # Fix the shell variable \$srcfile for the compiler. | |
23882 | fix_srcfile_path=$lt_fix_srcfile_path | |
23883 | ||
23884 | # Set to "yes" if exported symbols are required. | |
23885 | always_export_symbols=$always_export_symbols | |
23886 | ||
23887 | # The commands to list exported symbols. | |
23888 | export_symbols_cmds=$lt_export_symbols_cmds | |
23889 | ||
23890 | # Symbols that should not be listed in the preloaded symbols. | |
23891 | exclude_expsyms=$lt_exclude_expsyms | |
23892 | ||
23893 | # Symbols that must always be exported. | |
23894 | include_expsyms=$lt_include_expsyms | |
23895 | ||
23896 | # Commands necessary for linking programs (against libraries) with templates. | |
23897 | prelink_cmds=$lt_prelink_cmds | |
23898 | ||
23899 | # Specify filename containing input files. | |
23900 | file_list_spec=$lt_file_list_spec | |
23901 | ||
23902 | # How to hardcode a shared library path into an executable. | |
23903 | hardcode_action=$hardcode_action | |
23904 | ||
6b4a97ed PG |
23905 | # The directories searched by this compiler when creating a shared library. |
23906 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
23907 | ||
1cf3d07d SE |
23908 | # Dependencies to place before and after the objects being linked to |
23909 | # create a shared library. | |
23910 | predep_objects=$lt_predep_objects | |
23911 | postdep_objects=$lt_postdep_objects | |
23912 | predeps=$lt_predeps | |
23913 | postdeps=$lt_postdeps | |
23914 | ||
23915 | # The library search path used internally by the compiler when linking | |
23916 | # a shared library. | |
23917 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
23918 | ||
23919 | # ### END LIBTOOL CONFIG | |
23920 | ||
23921 | _LT_EOF | |
23922 | ||
23923 | case $host_os in | |
23924 | aix3*) | |
23925 | cat <<\_LT_EOF >> "$cfgfile" | |
23926 | # AIX sometimes has problems with the GCC collect2 program. For some | |
23927 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
23928 | # vanish in a puff of smoke. | |
23929 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
23930 | COLLECT_NAMES= | |
23931 | export COLLECT_NAMES | |
23932 | fi | |
23933 | _LT_EOF | |
23934 | ;; | |
23935 | esac | |
23936 | ||
23937 | ||
23938 | ltmain="$ac_aux_dir/ltmain.sh" | |
23939 | ||
23940 | ||
23941 | # We use sed instead of cat because bash on DJGPP gets confused if | |
23942 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
23943 | # text mode, it properly converts lines to CR/LF. This bash problem | |
23944 | # is reportedly fixed, but why not run on old versions too? | |
23945 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
23946 | || (rm -f "$cfgfile"; exit 1) | |
23947 | ||
23948 | case $xsi_shell in | |
23949 | yes) | |
23950 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 23951 | |
1cf3d07d SE |
23952 | # func_dirname file append nondir_replacement |
23953 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
23954 | # otherwise set result to NONDIR_REPLACEMENT. | |
23955 | func_dirname () | |
23956 | { | |
23957 | case ${1} in | |
23958 | */*) func_dirname_result="${1%/*}${2}" ;; | |
23959 | * ) func_dirname_result="${3}" ;; | |
23960 | esac | |
23961 | } | |
23962 | ||
23963 | # func_basename file | |
23964 | func_basename () | |
23965 | { | |
23966 | func_basename_result="${1##*/}" | |
23967 | } | |
23968 | ||
6b4a97ed PG |
23969 | # func_dirname_and_basename file append nondir_replacement |
23970 | # perform func_basename and func_dirname in a single function | |
23971 | # call: | |
23972 | # dirname: Compute the dirname of FILE. If nonempty, | |
23973 | # add APPEND to the result, otherwise set result | |
23974 | # to NONDIR_REPLACEMENT. | |
23975 | # value returned in "$func_dirname_result" | |
23976 | # basename: Compute filename of FILE. | |
23977 | # value retuned in "$func_basename_result" | |
23978 | # Implementation must be kept synchronized with func_dirname | |
23979 | # and func_basename. For efficiency, we do not delegate to | |
23980 | # those functions but instead duplicate the functionality here. | |
23981 | func_dirname_and_basename () | |
23982 | { | |
23983 | case ${1} in | |
23984 | */*) func_dirname_result="${1%/*}${2}" ;; | |
23985 | * ) func_dirname_result="${3}" ;; | |
23986 | esac | |
23987 | func_basename_result="${1##*/}" | |
23988 | } | |
23989 | ||
1cf3d07d SE |
23990 | # func_stripname prefix suffix name |
23991 | # strip PREFIX and SUFFIX off of NAME. | |
23992 | # PREFIX and SUFFIX must not contain globbing or regex special | |
23993 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
23994 | # dot (in which case that matches only a dot). | |
23995 | func_stripname () | |
23996 | { | |
23997 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
23998 | # positional parameters, so assign one to ordinary parameter first. | |
23999 | func_stripname_result=${3} | |
24000 | func_stripname_result=${func_stripname_result#"${1}"} | |
24001 | func_stripname_result=${func_stripname_result%"${2}"} | |
24002 | } | |
24003 | ||
24004 | # func_opt_split | |
24005 | func_opt_split () | |
24006 | { | |
24007 | func_opt_split_opt=${1%%=*} | |
24008 | func_opt_split_arg=${1#*=} | |
24009 | } | |
24010 | ||
24011 | # func_lo2o object | |
24012 | func_lo2o () | |
24013 | { | |
24014 | case ${1} in | |
24015 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
24016 | *) func_lo2o_result=${1} ;; | |
24017 | esac | |
24018 | } | |
6b4a97ed PG |
24019 | |
24020 | # func_xform libobj-or-source | |
24021 | func_xform () | |
24022 | { | |
24023 | func_xform_result=${1%.*}.lo | |
24024 | } | |
24025 | ||
24026 | # func_arith arithmetic-term... | |
24027 | func_arith () | |
24028 | { | |
24029 | func_arith_result=$(( $* )) | |
24030 | } | |
24031 | ||
24032 | # func_len string | |
24033 | # STRING may not start with a hyphen. | |
24034 | func_len () | |
24035 | { | |
24036 | func_len_result=${#1} | |
24037 | } | |
24038 | ||
1cf3d07d SE |
24039 | _LT_EOF |
24040 | ;; | |
24041 | *) # Bourne compatible functions. | |
24042 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 24043 | |
1cf3d07d SE |
24044 | # func_dirname file append nondir_replacement |
24045 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
24046 | # otherwise set result to NONDIR_REPLACEMENT. | |
24047 | func_dirname () | |
24048 | { | |
24049 | # Extract subdirectory from the argument. | |
24050 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
24051 | if test "X$func_dirname_result" = "X${1}"; then | |
24052 | func_dirname_result="${3}" | |
24053 | else | |
24054 | func_dirname_result="$func_dirname_result${2}" | |
24055 | fi | |
24056 | } | |
24057 | ||
24058 | # func_basename file | |
24059 | func_basename () | |
24060 | { | |
24061 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
24062 | } | |
24063 | ||
6b4a97ed | 24064 | |
1cf3d07d SE |
24065 | # func_stripname prefix suffix name |
24066 | # strip PREFIX and SUFFIX off of NAME. | |
24067 | # PREFIX and SUFFIX must not contain globbing or regex special | |
24068 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
24069 | # dot (in which case that matches only a dot). | |
24070 | # func_strip_suffix prefix name | |
24071 | func_stripname () | |
24072 | { | |
24073 | case ${2} in | |
24074 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
24075 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
24076 | *) func_stripname_result=`$ECHO "X${3}" \ | |
24077 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
24078 | esac | |
24079 | } | |
24080 | ||
24081 | # sed scripts: | |
24082 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
24083 | my_sed_long_arg='1s/^-[^=]*=//' | |
24084 | ||
24085 | # func_opt_split | |
24086 | func_opt_split () | |
24087 | { | |
24088 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
24089 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
24090 | } | |
24091 | ||
24092 | # func_lo2o object | |
24093 | func_lo2o () | |
24094 | { | |
24095 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
24096 | } | |
6b4a97ed PG |
24097 | |
24098 | # func_xform libobj-or-source | |
24099 | func_xform () | |
24100 | { | |
24101 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
24102 | } | |
24103 | ||
24104 | # func_arith arithmetic-term... | |
24105 | func_arith () | |
24106 | { | |
24107 | func_arith_result=`expr "$@"` | |
24108 | } | |
24109 | ||
24110 | # func_len string | |
24111 | # STRING may not start with a hyphen. | |
24112 | func_len () | |
24113 | { | |
24114 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
24115 | } | |
24116 | ||
1cf3d07d SE |
24117 | _LT_EOF |
24118 | esac | |
24119 | ||
24120 | case $lt_shell_append in | |
24121 | yes) | |
24122 | cat << \_LT_EOF >> "$cfgfile" | |
24123 | ||
24124 | # func_append var value | |
24125 | # Append VALUE to the end of shell variable VAR. | |
24126 | func_append () | |
24127 | { | |
24128 | eval "$1+=\$2" | |
24129 | } | |
24130 | _LT_EOF | |
24131 | ;; | |
24132 | *) | |
24133 | cat << \_LT_EOF >> "$cfgfile" | |
24134 | ||
24135 | # func_append var value | |
24136 | # Append VALUE to the end of shell variable VAR. | |
24137 | func_append () | |
24138 | { | |
24139 | eval "$1=\$$1\$2" | |
24140 | } | |
6b4a97ed | 24141 | |
1cf3d07d SE |
24142 | _LT_EOF |
24143 | ;; | |
24144 | esac | |
24145 | ||
24146 | ||
24147 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
24148 | || (rm -f "$cfgfile"; exit 1) | |
24149 | ||
24150 | mv -f "$cfgfile" "$ofile" || | |
24151 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
24152 | chmod +x "$ofile" | |
24153 | ||
24154 | ||
24155 | cat <<_LT_EOF >> "$ofile" | |
24156 | ||
24157 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
24158 | ||
24159 | # The linker used to build libraries. | |
24160 | LD=$lt_LD_FC | |
24161 | ||
24162 | # Commands used to build an old-style archive. | |
24163 | old_archive_cmds=$lt_old_archive_cmds_FC | |
24164 | ||
24165 | # A language specific compiler. | |
24166 | CC=$lt_compiler_FC | |
24167 | ||
24168 | # Is the compiler the GNU compiler? | |
24169 | with_gcc=$GCC_FC | |
24170 | ||
24171 | # Compiler flag to turn off builtin functions. | |
24172 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
24173 | ||
24174 | # How to pass a linker flag through the compiler. | |
24175 | wl=$lt_lt_prog_compiler_wl_FC | |
24176 | ||
24177 | # Additional compiler flags for building library objects. | |
24178 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
24179 | ||
24180 | # Compiler flag to prevent dynamic linking. | |
24181 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
24182 | ||
24183 | # Does compiler simultaneously support -c and -o options? | |
24184 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
24185 | ||
24186 | # Whether or not to add -lc for building shared libraries. | |
24187 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
24188 | ||
24189 | # Whether or not to disallow shared libs when runtime libs are static. | |
24190 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
24191 | ||
24192 | # Compiler flag to allow reflexive dlopens. | |
24193 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
24194 | ||
24195 | # Compiler flag to generate shared objects directly from archives. | |
24196 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
24197 | ||
24198 | # Whether the compiler copes with passing no objects directly. | |
24199 | compiler_needs_object=$lt_compiler_needs_object_FC | |
24200 | ||
24201 | # Create an old-style archive from a shared archive. | |
24202 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
24203 | ||
24204 | # Create a temporary old-style archive to link instead of a shared archive. | |
24205 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
24206 | ||
24207 | # Commands used to build a shared archive. | |
24208 | archive_cmds=$lt_archive_cmds_FC | |
24209 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
24210 | ||
24211 | # Commands used to build a loadable module if different from building | |
24212 | # a shared archive. | |
24213 | module_cmds=$lt_module_cmds_FC | |
24214 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
24215 | ||
24216 | # Whether we are building with GNU ld or not. | |
24217 | with_gnu_ld=$lt_with_gnu_ld_FC | |
24218 | ||
24219 | # Flag that allows shared libraries with undefined symbols to be built. | |
24220 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
24221 | ||
24222 | # Flag that enforces no undefined symbols. | |
24223 | no_undefined_flag=$lt_no_undefined_flag_FC | |
24224 | ||
24225 | # Flag to hardcode \$libdir into a binary during linking. | |
24226 | # This must work even if \$libdir does not exist | |
24227 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
24228 | ||
24229 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
24230 | # during linking. This must work even if \$libdir does not exist. | |
24231 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
24232 | ||
24233 | # Whether we need a single "-rpath" flag with a separated argument. | |
24234 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
24235 | ||
24236 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
24237 | # DIR into the resulting binary. | |
24238 | hardcode_direct=$hardcode_direct_FC | |
24239 | ||
24240 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
24241 | # DIR into the resulting binary and the resulting library dependency is | |
24242 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
24243 | # library is relocated. | |
24244 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
24245 | ||
24246 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
24247 | # into the resulting binary. | |
24248 | hardcode_minus_L=$hardcode_minus_L_FC | |
24249 | ||
24250 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
24251 | # into the resulting binary. | |
24252 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
24253 | ||
24254 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
24255 | # into the library and all subsequent libraries and executables linked | |
24256 | # against it. | |
24257 | hardcode_automatic=$hardcode_automatic_FC | |
24258 | ||
24259 | # Set to yes if linker adds runtime paths of dependent libraries | |
24260 | # to runtime path list. | |
24261 | inherit_rpath=$inherit_rpath_FC | |
24262 | ||
24263 | # Whether libtool must link a program against all its dependency libraries. | |
24264 | link_all_deplibs=$link_all_deplibs_FC | |
24265 | ||
24266 | # Fix the shell variable \$srcfile for the compiler. | |
24267 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
24268 | ||
24269 | # Set to "yes" if exported symbols are required. | |
24270 | always_export_symbols=$always_export_symbols_FC | |
24271 | ||
24272 | # The commands to list exported symbols. | |
24273 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
24274 | ||
24275 | # Symbols that should not be listed in the preloaded symbols. | |
24276 | exclude_expsyms=$lt_exclude_expsyms_FC | |
24277 | ||
24278 | # Symbols that must always be exported. | |
24279 | include_expsyms=$lt_include_expsyms_FC | |
24280 | ||
24281 | # Commands necessary for linking programs (against libraries) with templates. | |
24282 | prelink_cmds=$lt_prelink_cmds_FC | |
24283 | ||
24284 | # Specify filename containing input files. | |
24285 | file_list_spec=$lt_file_list_spec_FC | |
24286 | ||
24287 | # How to hardcode a shared library path into an executable. | |
24288 | hardcode_action=$hardcode_action_FC | |
24289 | ||
6b4a97ed PG |
24290 | # The directories searched by this compiler when creating a shared library. |
24291 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
24292 | ||
1cf3d07d SE |
24293 | # Dependencies to place before and after the objects being linked to |
24294 | # create a shared library. | |
24295 | predep_objects=$lt_predep_objects_FC | |
24296 | postdep_objects=$lt_postdep_objects_FC | |
24297 | predeps=$lt_predeps_FC | |
24298 | postdeps=$lt_postdeps_FC | |
24299 | ||
24300 | # The library search path used internally by the compiler when linking | |
24301 | # a shared library. | |
24302 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
24303 | ||
24304 | # ### END LIBTOOL TAG CONFIG: FC | |
24305 | _LT_EOF | |
24306 | ||
18cbfd85 PB |
24307 | ;; |
24308 | gstdint.h ) | |
24309 | if test "$GCC" = yes; then | |
24310 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
24311 | else | |
24312 | echo "/* generated for $CC */" > tmp-stdint.h | |
24313 | fi | |
24314 | ||
24315 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24316 | ||
24317 | #ifndef GCC_GENERATED_STDINT_H | |
24318 | #define GCC_GENERATED_STDINT_H 1 | |
24319 | ||
24320 | #include <sys/types.h> | |
24321 | EOF | |
24322 | ||
24323 | if test "$acx_cv_header_stdint" != stdint.h; then | |
24324 | echo "#include <stddef.h>" >> tmp-stdint.h | |
24325 | fi | |
24326 | if test "$acx_cv_header_stdint" != stddef.h; then | |
24327 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
24328 | fi | |
24329 | ||
24330 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24331 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
24332 | #ifdef __int8_t_defined | |
24333 | #define _INT8_T | |
24334 | #define _INT16_T | |
24335 | #define _INT32_T | |
24336 | #endif | |
24337 | #ifdef __uint32_t_defined | |
24338 | #define _UINT32_T | |
24339 | #endif | |
24340 | ||
24341 | EOF | |
24342 | ||
24343 | # ----------------- done header, emit basic int types ------------- | |
24344 | if test "$acx_cv_header_stdint" = stddef.h; then | |
24345 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24346 | ||
24347 | #ifndef _UINT8_T | |
24348 | #define _UINT8_T | |
1cf3d07d SE |
24349 | #ifndef __uint8_t_defined |
24350 | #define __uint8_t_defined | |
18cbfd85 PB |
24351 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
24352 | #endif | |
1cf3d07d | 24353 | #endif |
18cbfd85 PB |
24354 | |
24355 | #ifndef _UINT16_T | |
24356 | #define _UINT16_T | |
1cf3d07d SE |
24357 | #ifndef __uint16_t_defined |
24358 | #define __uint16_t_defined | |
18cbfd85 PB |
24359 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
24360 | #endif | |
1cf3d07d | 24361 | #endif |
18cbfd85 PB |
24362 | |
24363 | #ifndef _UINT32_T | |
24364 | #define _UINT32_T | |
1cf3d07d SE |
24365 | #ifndef __uint32_t_defined |
24366 | #define __uint32_t_defined | |
18cbfd85 PB |
24367 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
24368 | #endif | |
1cf3d07d | 24369 | #endif |
18cbfd85 PB |
24370 | |
24371 | #ifndef _INT8_T | |
24372 | #define _INT8_T | |
1cf3d07d SE |
24373 | #ifndef __int8_t_defined |
24374 | #define __int8_t_defined | |
18cbfd85 PB |
24375 | typedef $acx_cv_type_int8_t int8_t; |
24376 | #endif | |
1cf3d07d | 24377 | #endif |
18cbfd85 PB |
24378 | |
24379 | #ifndef _INT16_T | |
24380 | #define _INT16_T | |
1cf3d07d SE |
24381 | #ifndef __int16_t_defined |
24382 | #define __int16_t_defined | |
18cbfd85 PB |
24383 | typedef $acx_cv_type_int16_t int16_t; |
24384 | #endif | |
1cf3d07d | 24385 | #endif |
18cbfd85 PB |
24386 | |
24387 | #ifndef _INT32_T | |
24388 | #define _INT32_T | |
1cf3d07d SE |
24389 | #ifndef __int32_t_defined |
24390 | #define __int32_t_defined | |
18cbfd85 PB |
24391 | typedef $acx_cv_type_int32_t int32_t; |
24392 | #endif | |
1cf3d07d | 24393 | #endif |
18cbfd85 PB |
24394 | EOF |
24395 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
24396 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24397 | ||
24398 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
24399 | #ifndef _INT8_T | |
24400 | #define _INT8_T | |
24401 | #endif | |
24402 | #ifndef _INT16_T | |
24403 | #define _INT16_T | |
24404 | #endif | |
24405 | #ifndef _INT32_T | |
24406 | #define _INT32_T | |
24407 | #endif | |
24408 | ||
24409 | #ifndef _UINT8_T | |
24410 | #define _UINT8_T | |
1cf3d07d SE |
24411 | #ifndef __uint8_t_defined |
24412 | #define __uint8_t_defined | |
18cbfd85 PB |
24413 | typedef u_int8_t uint8_t; |
24414 | #endif | |
1cf3d07d | 24415 | #endif |
18cbfd85 PB |
24416 | |
24417 | #ifndef _UINT16_T | |
24418 | #define _UINT16_T | |
1cf3d07d SE |
24419 | #ifndef __uint16_t_defined |
24420 | #define __uint16_t_defined | |
18cbfd85 PB |
24421 | typedef u_int16_t uint16_t; |
24422 | #endif | |
1cf3d07d | 24423 | #endif |
18cbfd85 PB |
24424 | |
24425 | #ifndef _UINT32_T | |
24426 | #define _UINT32_T | |
1cf3d07d SE |
24427 | #ifndef __uint32_t_defined |
24428 | #define __uint32_t_defined | |
18cbfd85 PB |
24429 | typedef u_int32_t uint32_t; |
24430 | #endif | |
1cf3d07d | 24431 | #endif |
18cbfd85 PB |
24432 | EOF |
24433 | else | |
24434 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24435 | ||
24436 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
24437 | #ifndef _INT8_T | |
24438 | #define _INT8_T | |
24439 | #endif | |
24440 | #ifndef _INT16_T | |
24441 | #define _INT16_T | |
24442 | #endif | |
24443 | #ifndef _INT32_T | |
24444 | #define _INT32_T | |
24445 | #endif | |
24446 | #ifndef _UINT8_T | |
24447 | #define _UINT8_T | |
24448 | #endif | |
24449 | #ifndef _UINT16_T | |
24450 | #define _UINT16_T | |
24451 | #endif | |
24452 | #ifndef _UINT32_T | |
24453 | #define _UINT32_T | |
24454 | #endif | |
24455 | EOF | |
24456 | fi | |
24457 | ||
24458 | # ------------- done basic int types, emit int64_t types ------------ | |
24459 | if test "$ac_cv_type_uint64_t" = yes; then | |
24460 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24461 | ||
24462 | /* system headers have good uint64_t and int64_t */ | |
24463 | #ifndef _INT64_T | |
24464 | #define _INT64_T | |
24465 | #endif | |
24466 | #ifndef _UINT64_T | |
24467 | #define _UINT64_T | |
24468 | #endif | |
24469 | EOF | |
24470 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
24471 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24472 | ||
24473 | /* system headers have an u_int64_t (and int64_t) */ | |
24474 | #ifndef _INT64_T | |
24475 | #define _INT64_T | |
24476 | #endif | |
24477 | #ifndef _UINT64_T | |
24478 | #define _UINT64_T | |
1cf3d07d SE |
24479 | #ifndef __uint64_t_defined |
24480 | #define __uint64_t_defined | |
18cbfd85 PB |
24481 | typedef u_int64_t uint64_t; |
24482 | #endif | |
1cf3d07d | 24483 | #endif |
18cbfd85 PB |
24484 | EOF |
24485 | elif test -n "$acx_cv_type_int64_t"; then | |
24486 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24487 | ||
24488 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
24489 | #ifndef _INT64_T | |
24490 | #define _INT64_T | |
24491 | typedef $acx_cv_type_int64_t int64_t; | |
24492 | #endif | |
24493 | #ifndef _UINT64_T | |
24494 | #define _UINT64_T | |
1cf3d07d SE |
24495 | #ifndef __uint64_t_defined |
24496 | #define __uint64_t_defined | |
18cbfd85 PB |
24497 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
24498 | #endif | |
1cf3d07d | 24499 | #endif |
18cbfd85 PB |
24500 | EOF |
24501 | else | |
24502 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24503 | ||
24504 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
24505 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
24506 | #ifndef _INT64_T | |
24507 | #define _INT64_T | |
1cf3d07d | 24508 | #ifndef __int64_t_defined |
18cbfd85 PB |
24509 | typedef long long int64_t; |
24510 | #endif | |
1cf3d07d | 24511 | #endif |
18cbfd85 PB |
24512 | #ifndef _UINT64_T |
24513 | #define _UINT64_T | |
24514 | typedef unsigned long long uint64_t; | |
24515 | #endif | |
24516 | ||
24517 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
24518 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
24519 | does not implement __extension__. But that compiler doesn't define | |
24520 | __GNUC_MINOR__. */ | |
24521 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
24522 | # define __extension__ | |
24523 | # endif | |
24524 | ||
24525 | # ifndef _INT64_T | |
24526 | # define _INT64_T | |
24527 | __extension__ typedef long long int64_t; | |
24528 | # endif | |
24529 | # ifndef _UINT64_T | |
24530 | # define _UINT64_T | |
24531 | __extension__ typedef unsigned long long uint64_t; | |
24532 | # endif | |
24533 | ||
24534 | #elif !defined __STRICT_ANSI__ | |
24535 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
24536 | ||
24537 | # ifndef _INT64_T | |
24538 | # define _INT64_T | |
24539 | typedef __int64 int64_t; | |
24540 | # endif | |
24541 | # ifndef _UINT64_T | |
24542 | # define _UINT64_T | |
24543 | typedef unsigned __int64 uint64_t; | |
24544 | # endif | |
24545 | # endif /* compiler */ | |
24546 | ||
24547 | #endif /* ANSI version */ | |
24548 | EOF | |
24549 | fi | |
24550 | ||
24551 | # ------------- done int64_t types, emit intptr types ------------ | |
24552 | if test "$ac_cv_type_uintptr_t" != yes; then | |
24553 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24554 | ||
24555 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
1cf3d07d | 24556 | #ifndef __uintptr_t_defined |
18cbfd85 | 24557 | typedef u$acx_cv_type_intptr_t uintptr_t; |
1cf3d07d SE |
24558 | #endif |
24559 | #ifndef __intptr_t_defined | |
18cbfd85 | 24560 | typedef $acx_cv_type_intptr_t intptr_t; |
1cf3d07d | 24561 | #endif |
18cbfd85 PB |
24562 | EOF |
24563 | fi | |
24564 | ||
24565 | # ------------- done intptr types, emit int_least types ------------ | |
24566 | if test "$ac_cv_type_int_least32_t" != yes; then | |
24567 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24568 | ||
24569 | /* Define int_least types */ | |
24570 | typedef int8_t int_least8_t; | |
24571 | typedef int16_t int_least16_t; | |
24572 | typedef int32_t int_least32_t; | |
24573 | #ifdef _INT64_T | |
24574 | typedef int64_t int_least64_t; | |
24575 | #endif | |
24576 | ||
24577 | typedef uint8_t uint_least8_t; | |
24578 | typedef uint16_t uint_least16_t; | |
24579 | typedef uint32_t uint_least32_t; | |
24580 | #ifdef _UINT64_T | |
24581 | typedef uint64_t uint_least64_t; | |
24582 | #endif | |
24583 | EOF | |
24584 | fi | |
24585 | ||
24586 | # ------------- done intptr types, emit int_fast types ------------ | |
24587 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
24588 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24589 | ||
24590 | /* Define int_fast types. short is often slow */ | |
24591 | typedef int8_t int_fast8_t; | |
24592 | typedef int int_fast16_t; | |
24593 | typedef int32_t int_fast32_t; | |
24594 | #ifdef _INT64_T | |
24595 | typedef int64_t int_fast64_t; | |
24596 | #endif | |
24597 | ||
24598 | typedef uint8_t uint_fast8_t; | |
24599 | typedef unsigned int uint_fast16_t; | |
24600 | typedef uint32_t uint_fast32_t; | |
24601 | #ifdef _UINT64_T | |
24602 | typedef uint64_t uint_fast64_t; | |
24603 | #endif | |
24604 | EOF | |
24605 | fi | |
24606 | ||
24607 | if test "$ac_cv_type_uintmax_t" != yes; then | |
24608 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24609 | ||
24610 | /* Define intmax based on what we found */ | |
24611 | #ifdef _INT64_T | |
24612 | typedef int64_t intmax_t; | |
24613 | #else | |
24614 | typedef long intmax_t; | |
24615 | #endif | |
24616 | #ifdef _UINT64_T | |
24617 | typedef uint64_t uintmax_t; | |
24618 | #else | |
24619 | typedef unsigned long uintmax_t; | |
24620 | #endif | |
24621 | EOF | |
24622 | fi | |
24623 | ||
24624 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24625 | ||
24626 | #endif /* GCC_GENERATED_STDINT_H */ | |
24627 | EOF | |
24628 | ||
24629 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
24630 | rm -f tmp-stdint.h | |
24631 | else | |
24632 | mv -f tmp-stdint.h gstdint.h | |
24633 | fi | |
24634 | ||
953ff289 DN |
24635 | ;; |
24636 | esac | |
24637 | done | |
24638 | _ACEOF | |
24639 | ||
24640 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24641 | ||
24642 | { (exit 0); exit 0; } | |
24643 | _ACEOF | |
24644 | chmod +x $CONFIG_STATUS | |
24645 | ac_clean_files=$ac_clean_files_save | |
24646 | ||
24647 | ||
24648 | # configure is writing to config.log, and then calls config.status. | |
24649 | # config.status does its own redirection, appending to config.log. | |
24650 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24651 | # by configure, so config.status won't be able to write to it; its | |
24652 | # output is simply discarded. So we exec the FD to /dev/null, | |
24653 | # effectively closing config.log, so it can be properly (re)opened and | |
24654 | # appended to by config.status. When coming back to configure, we | |
24655 | # need to make the FD available again. | |
24656 | if test "$no_create" != yes; then | |
24657 | ac_cs_success=: | |
24658 | ac_config_status_args= | |
24659 | test "$silent" = yes && | |
24660 | ac_config_status_args="$ac_config_status_args --quiet" | |
24661 | exec 5>/dev/null | |
24662 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24663 | exec 5>>config.log | |
24664 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24665 | # would make configure fail if this is the last instruction. | |
24666 | $ac_cs_success || { (exit 1); exit 1; } | |
24667 | fi | |
24668 |