]>
Commit | Line | Data |
---|---|---|
bf9f3bac | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59. | |
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 | ||
244 | ||
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | echo=${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 <<EOF | |
274 | $* | |
275 | 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 "$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 | echo_test_string=`eval $cmd` && | |
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
291 | then | |
292 | break | |
293 | fi | |
294 | done | |
295 | fi | |
296 | ||
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
299 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
300 | : | |
301 | else | |
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
303 | # backslashes. This makes it impossible to quote backslashes using | |
304 | # echo "$something" | sed 's/\\/\\\\/g' | |
305 | # | |
306 | # So, first we look for a working echo in the user's PATH. | |
307 | ||
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
309 | for dir in $PATH /usr/ucb; do | |
310 | IFS="$lt_save_ifs" | |
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
314 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
315 | echo="$dir/echo" | |
316 | break | |
317 | fi | |
318 | done | |
319 | IFS="$lt_save_ifs" | |
320 | ||
321 | if test "X$echo" = Xecho; then | |
322 | # We didn't find a better echo, so look for alternatives. | |
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
325 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
326 | # This shell has a builtin print -r that does the trick. | |
327 | echo='print -r' | |
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
330 | # If we have ksh, try running configure again with it. | |
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
332 | export ORIGINAL_CONFIG_SHELL | |
333 | CONFIG_SHELL=/bin/ksh | |
334 | export CONFIG_SHELL | |
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
336 | else | |
337 | # Try using printf. | |
338 | echo='printf %s\n' | |
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
341 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
342 | # Cool, printf works | |
343 | : | |
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
345 | test "X$echo_testing_string" = 'X\t' && | |
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
347 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
349 | export CONFIG_SHELL | |
350 | SHELL="$CONFIG_SHELL" | |
351 | export SHELL | |
352 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
354 | test "X$echo_testing_string" = 'X\t' && | |
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
356 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
357 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
358 | else | |
359 | # maybe with a smaller string... | |
360 | prev=: | |
361 | ||
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
364 | then | |
365 | break | |
366 | fi | |
367 | prev="$cmd" | |
368 | done | |
369 | ||
370 | if test "$prev" != 'sed 50q "$0"'; then | |
371 | echo_test_string=`eval $prev` | |
372 | export echo_test_string | |
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
374 | else | |
375 | # Oops. We lost completely, so just stick with echo. | |
376 | echo=echo | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | fi | |
383 | ||
384 | # Copy echo and quote the copy suitably for passing to libtool from | |
385 | # the Makefile, instead of quoting the original, which is used later. | |
386 | ECHO=$echo | |
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
389 | fi | |
390 | ||
391 | ||
392 | ||
393 | ||
394 | tagnames=${tagnames+${tagnames},}CXX | |
395 | ||
396 | tagnames=${tagnames+${tagnames},}F77 | |
397 | ||
398 | # Name of the host. | |
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
400 | # so uname gets run too. | |
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
402 | ||
403 | exec 6>&1 | |
404 | ||
405 | # | |
406 | # Initializations. | |
407 | # | |
408 | ac_default_prefix=/usr/local | |
409 | ac_config_libobj_dir=. | |
410 | cross_compiling=no | |
411 | subdirs= | |
412 | MFLAGS= | |
413 | MAKEFLAGS= | |
414 | SHELL=${CONFIG_SHELL-/bin/sh} | |
415 | ||
416 | # Maximum number of lines to put in a shell here document. | |
417 | # This variable seems obsolete. It should probably be removed, and | |
418 | # only ac_max_sed_lines should be used. | |
419 | : ${ac_max_here_lines=38} | |
420 | ||
421 | # Identity of this package. | |
422 | PACKAGE_NAME= | |
423 | PACKAGE_TARNAME= | |
424 | PACKAGE_VERSION= | |
425 | PACKAGE_STRING= | |
426 | PACKAGE_BUGREPORT= | |
427 | ||
428 | # Factoring default headers for most tests. | |
429 | ac_includes_default="\ | |
430 | #include <stdio.h> | |
431 | #if HAVE_SYS_TYPES_H | |
432 | # include <sys/types.h> | |
433 | #endif | |
434 | #if HAVE_SYS_STAT_H | |
435 | # include <sys/stat.h> | |
436 | #endif | |
437 | #if STDC_HEADERS | |
438 | # include <stdlib.h> | |
439 | # include <stddef.h> | |
440 | #else | |
441 | # if HAVE_STDLIB_H | |
442 | # include <stdlib.h> | |
443 | # endif | |
444 | #endif | |
445 | #if HAVE_STRING_H | |
446 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
447 | # include <memory.h> | |
448 | # endif | |
449 | # include <string.h> | |
450 | #endif | |
451 | #if HAVE_STRINGS_H | |
452 | # include <strings.h> | |
453 | #endif | |
454 | #if HAVE_INTTYPES_H | |
455 | # include <inttypes.h> | |
456 | #else | |
457 | # if HAVE_STDINT_H | |
458 | # include <stdint.h> | |
459 | # endif | |
460 | #endif | |
461 | #if HAVE_UNISTD_H | |
462 | # include <unistd.h> | |
463 | #endif" | |
464 | ||
86933a6e | 465 | 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 SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LICENSE SPL_CONFIG LINUX LINUX_OBJ LINUX_VERSION LINUX_SYMBOLS KERNELMAKE_PARAMS KERNELCPPFLAGS CONFIG_USER_TRUE CONFIG_USER_FALSE CONFIG_KERNEL_TRUE CONFIG_KERNEL_FALSE LIBOBJS LTLIBOBJS' |
bf9f3bac | 466 | ac_subst_files='' |
467 | ||
468 | # Initialize some variables set by options. | |
469 | ac_init_help= | |
470 | ac_init_version=false | |
471 | # The variables have the same names as the options, with | |
472 | # dashes changed to underlines. | |
473 | cache_file=/dev/null | |
474 | exec_prefix=NONE | |
475 | no_create= | |
476 | no_recursion= | |
477 | prefix=NONE | |
478 | program_prefix=NONE | |
479 | program_suffix=NONE | |
480 | program_transform_name=s,x,x, | |
481 | silent= | |
482 | site= | |
483 | srcdir= | |
484 | verbose= | |
485 | x_includes=NONE | |
486 | x_libraries=NONE | |
487 | ||
488 | # Installation directory options. | |
489 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
490 | # and all the variables that are supposed to be based on exec_prefix | |
491 | # by default will actually change. | |
492 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
493 | bindir='${exec_prefix}/bin' | |
494 | sbindir='${exec_prefix}/sbin' | |
495 | libexecdir='${exec_prefix}/libexec' | |
496 | datadir='${prefix}/share' | |
497 | sysconfdir='${prefix}/etc' | |
498 | sharedstatedir='${prefix}/com' | |
499 | localstatedir='${prefix}/var' | |
500 | libdir='${exec_prefix}/lib' | |
501 | includedir='${prefix}/include' | |
502 | oldincludedir='/usr/include' | |
503 | infodir='${prefix}/info' | |
504 | mandir='${prefix}/man' | |
505 | ||
506 | ac_prev= | |
507 | for ac_option | |
508 | do | |
509 | # If the previous option needs an argument, assign it. | |
510 | if test -n "$ac_prev"; then | |
511 | eval "$ac_prev=\$ac_option" | |
512 | ac_prev= | |
513 | continue | |
514 | fi | |
515 | ||
516 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
517 | ||
518 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
519 | ||
520 | case $ac_option in | |
521 | ||
522 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
523 | ac_prev=bindir ;; | |
524 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
525 | bindir=$ac_optarg ;; | |
526 | ||
527 | -build | --build | --buil | --bui | --bu) | |
528 | ac_prev=build_alias ;; | |
529 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
530 | build_alias=$ac_optarg ;; | |
531 | ||
532 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
533 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
534 | ac_prev=cache_file ;; | |
535 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
536 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
537 | cache_file=$ac_optarg ;; | |
538 | ||
539 | --config-cache | -C) | |
540 | cache_file=config.cache ;; | |
541 | ||
542 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
543 | ac_prev=datadir ;; | |
544 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
545 | | --da=*) | |
546 | datadir=$ac_optarg ;; | |
547 | ||
548 | -disable-* | --disable-*) | |
549 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
550 | # Reject names that are not valid shell variable names. | |
551 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
552 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
553 | { (exit 1); exit 1; }; } | |
554 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
555 | eval "enable_$ac_feature=no" ;; | |
556 | ||
557 | -enable-* | --enable-*) | |
558 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
559 | # Reject names that are not valid shell variable names. | |
560 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
561 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
562 | { (exit 1); exit 1; }; } | |
563 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
564 | case $ac_option in | |
565 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
566 | *) ac_optarg=yes ;; | |
567 | esac | |
568 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
569 | ||
570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
572 | | --exec | --exe | --ex) | |
573 | ac_prev=exec_prefix ;; | |
574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
576 | | --exec=* | --exe=* | --ex=*) | |
577 | exec_prefix=$ac_optarg ;; | |
578 | ||
579 | -gas | --gas | --ga | --g) | |
580 | # Obsolete; use --with-gas. | |
581 | with_gas=yes ;; | |
582 | ||
583 | -help | --help | --hel | --he | -h) | |
584 | ac_init_help=long ;; | |
585 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
586 | ac_init_help=recursive ;; | |
587 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
588 | ac_init_help=short ;; | |
589 | ||
590 | -host | --host | --hos | --ho) | |
591 | ac_prev=host_alias ;; | |
592 | -host=* | --host=* | --hos=* | --ho=*) | |
593 | host_alias=$ac_optarg ;; | |
594 | ||
595 | -includedir | --includedir | --includedi | --included | --include \ | |
596 | | --includ | --inclu | --incl | --inc) | |
597 | ac_prev=includedir ;; | |
598 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
599 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
600 | includedir=$ac_optarg ;; | |
601 | ||
602 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
603 | ac_prev=infodir ;; | |
604 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
605 | infodir=$ac_optarg ;; | |
606 | ||
607 | -libdir | --libdir | --libdi | --libd) | |
608 | ac_prev=libdir ;; | |
609 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
610 | libdir=$ac_optarg ;; | |
611 | ||
612 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
613 | | --libexe | --libex | --libe) | |
614 | ac_prev=libexecdir ;; | |
615 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
616 | | --libexe=* | --libex=* | --libe=*) | |
617 | libexecdir=$ac_optarg ;; | |
618 | ||
619 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
620 | | --localstate | --localstat | --localsta | --localst \ | |
621 | | --locals | --local | --loca | --loc | --lo) | |
622 | ac_prev=localstatedir ;; | |
623 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
624 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
625 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
626 | localstatedir=$ac_optarg ;; | |
627 | ||
628 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
629 | ac_prev=mandir ;; | |
630 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
631 | mandir=$ac_optarg ;; | |
632 | ||
633 | -nfp | --nfp | --nf) | |
634 | # Obsolete; use --without-fp. | |
635 | with_fp=no ;; | |
636 | ||
637 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
638 | | --no-cr | --no-c | -n) | |
639 | no_create=yes ;; | |
640 | ||
641 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
642 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
643 | no_recursion=yes ;; | |
644 | ||
645 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
646 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
647 | | --oldin | --oldi | --old | --ol | --o) | |
648 | ac_prev=oldincludedir ;; | |
649 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
650 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
651 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
652 | oldincludedir=$ac_optarg ;; | |
653 | ||
654 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
655 | ac_prev=prefix ;; | |
656 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
657 | prefix=$ac_optarg ;; | |
658 | ||
659 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
660 | | --program-pre | --program-pr | --program-p) | |
661 | ac_prev=program_prefix ;; | |
662 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
663 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
664 | program_prefix=$ac_optarg ;; | |
665 | ||
666 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
667 | | --program-suf | --program-su | --program-s) | |
668 | ac_prev=program_suffix ;; | |
669 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
670 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
671 | program_suffix=$ac_optarg ;; | |
672 | ||
673 | -program-transform-name | --program-transform-name \ | |
674 | | --program-transform-nam | --program-transform-na \ | |
675 | | --program-transform-n | --program-transform- \ | |
676 | | --program-transform | --program-transfor \ | |
677 | | --program-transfo | --program-transf \ | |
678 | | --program-trans | --program-tran \ | |
679 | | --progr-tra | --program-tr | --program-t) | |
680 | ac_prev=program_transform_name ;; | |
681 | -program-transform-name=* | --program-transform-name=* \ | |
682 | | --program-transform-nam=* | --program-transform-na=* \ | |
683 | | --program-transform-n=* | --program-transform-=* \ | |
684 | | --program-transform=* | --program-transfor=* \ | |
685 | | --program-transfo=* | --program-transf=* \ | |
686 | | --program-trans=* | --program-tran=* \ | |
687 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
688 | program_transform_name=$ac_optarg ;; | |
689 | ||
690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
691 | | -silent | --silent | --silen | --sile | --sil) | |
692 | silent=yes ;; | |
693 | ||
694 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
695 | ac_prev=sbindir ;; | |
696 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
697 | | --sbi=* | --sb=*) | |
698 | sbindir=$ac_optarg ;; | |
699 | ||
700 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
701 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
702 | | --sharedst | --shareds | --shared | --share | --shar \ | |
703 | | --sha | --sh) | |
704 | ac_prev=sharedstatedir ;; | |
705 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
706 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
707 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
708 | | --sha=* | --sh=*) | |
709 | sharedstatedir=$ac_optarg ;; | |
710 | ||
711 | -site | --site | --sit) | |
712 | ac_prev=site ;; | |
713 | -site=* | --site=* | --sit=*) | |
714 | site=$ac_optarg ;; | |
715 | ||
716 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
717 | ac_prev=srcdir ;; | |
718 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
719 | srcdir=$ac_optarg ;; | |
720 | ||
721 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
722 | | --syscon | --sysco | --sysc | --sys | --sy) | |
723 | ac_prev=sysconfdir ;; | |
724 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
725 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
726 | sysconfdir=$ac_optarg ;; | |
727 | ||
728 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
729 | ac_prev=target_alias ;; | |
730 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
731 | target_alias=$ac_optarg ;; | |
732 | ||
733 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
734 | verbose=yes ;; | |
735 | ||
736 | -version | --version | --versio | --versi | --vers | -V) | |
737 | ac_init_version=: ;; | |
738 | ||
739 | -with-* | --with-*) | |
740 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
741 | # Reject names that are not valid shell variable names. | |
742 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
743 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
744 | { (exit 1); exit 1; }; } | |
745 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
746 | case $ac_option in | |
747 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
748 | *) ac_optarg=yes ;; | |
749 | esac | |
750 | eval "with_$ac_package='$ac_optarg'" ;; | |
751 | ||
752 | -without-* | --without-*) | |
753 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
754 | # Reject names that are not valid shell variable names. | |
755 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
756 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
757 | { (exit 1); exit 1; }; } | |
758 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
759 | eval "with_$ac_package=no" ;; | |
760 | ||
761 | --x) | |
762 | # Obsolete; use --with-x. | |
763 | with_x=yes ;; | |
764 | ||
765 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
766 | | --x-incl | --x-inc | --x-in | --x-i) | |
767 | ac_prev=x_includes ;; | |
768 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
769 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
770 | x_includes=$ac_optarg ;; | |
771 | ||
772 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
773 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
774 | ac_prev=x_libraries ;; | |
775 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
776 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
777 | x_libraries=$ac_optarg ;; | |
778 | ||
779 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
780 | Try \`$0 --help' for more information." >&2 | |
781 | { (exit 1); exit 1; }; } | |
782 | ;; | |
783 | ||
784 | *=*) | |
785 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
786 | # Reject names that are not valid shell variable names. | |
787 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
788 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
789 | { (exit 1); exit 1; }; } | |
790 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
791 | eval "$ac_envvar='$ac_optarg'" | |
792 | export $ac_envvar ;; | |
793 | ||
794 | *) | |
795 | # FIXME: should be removed in autoconf 3.0. | |
796 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
797 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
798 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
799 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
800 | ;; | |
801 | ||
802 | esac | |
803 | done | |
804 | ||
805 | if test -n "$ac_prev"; then | |
806 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
807 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
808 | { (exit 1); exit 1; }; } | |
809 | fi | |
810 | ||
811 | # Be sure to have absolute paths. | |
812 | for ac_var in exec_prefix prefix | |
813 | do | |
814 | eval ac_val=$`echo $ac_var` | |
815 | case $ac_val in | |
816 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
817 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
818 | { (exit 1); exit 1; }; };; | |
819 | esac | |
820 | done | |
821 | ||
822 | # Be sure to have absolute paths. | |
823 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
824 | localstatedir libdir includedir oldincludedir infodir mandir | |
825 | do | |
826 | eval ac_val=$`echo $ac_var` | |
827 | case $ac_val in | |
828 | [\\/$]* | ?:[\\/]* ) ;; | |
829 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
830 | { (exit 1); exit 1; }; };; | |
831 | esac | |
832 | done | |
833 | ||
834 | # There might be people who depend on the old broken behavior: `$host' | |
835 | # used to hold the argument of --host etc. | |
836 | # FIXME: To remove some day. | |
837 | build=$build_alias | |
838 | host=$host_alias | |
839 | target=$target_alias | |
840 | ||
841 | # FIXME: To remove some day. | |
842 | if test "x$host_alias" != x; then | |
843 | if test "x$build_alias" = x; then | |
844 | cross_compiling=maybe | |
845 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
846 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
847 | elif test "x$build_alias" != "x$host_alias"; then | |
848 | cross_compiling=yes | |
849 | fi | |
850 | fi | |
851 | ||
852 | ac_tool_prefix= | |
853 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
854 | ||
855 | test "$silent" = yes && exec 6>/dev/null | |
856 | ||
857 | ||
858 | # Find the source files, if location was not specified. | |
859 | if test -z "$srcdir"; then | |
860 | ac_srcdir_defaulted=yes | |
861 | # Try the directory containing this script, then its parent. | |
862 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
863 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
864 | X"$0" : 'X\(//\)[^/]' \| \ | |
865 | X"$0" : 'X\(//\)$' \| \ | |
866 | X"$0" : 'X\(/\)' \| \ | |
867 | . : '\(.\)' 2>/dev/null || | |
868 | echo X"$0" | | |
869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
870 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
871 | /^X\(\/\/\)$/{ s//\1/; q; } | |
872 | /^X\(\/\).*/{ s//\1/; q; } | |
873 | s/.*/./; q'` | |
874 | srcdir=$ac_confdir | |
875 | if test ! -r $srcdir/$ac_unique_file; then | |
876 | srcdir=.. | |
877 | fi | |
878 | else | |
879 | ac_srcdir_defaulted=no | |
880 | fi | |
881 | if test ! -r $srcdir/$ac_unique_file; then | |
882 | if test "$ac_srcdir_defaulted" = yes; then | |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
884 | { (exit 1); exit 1; }; } | |
885 | else | |
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
887 | { (exit 1); exit 1; }; } | |
888 | fi | |
889 | fi | |
890 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
891 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
892 | { (exit 1); exit 1; }; } | |
893 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
894 | ac_env_build_alias_set=${build_alias+set} | |
895 | ac_env_build_alias_value=$build_alias | |
896 | ac_cv_env_build_alias_set=${build_alias+set} | |
897 | ac_cv_env_build_alias_value=$build_alias | |
898 | ac_env_host_alias_set=${host_alias+set} | |
899 | ac_env_host_alias_value=$host_alias | |
900 | ac_cv_env_host_alias_set=${host_alias+set} | |
901 | ac_cv_env_host_alias_value=$host_alias | |
902 | ac_env_target_alias_set=${target_alias+set} | |
903 | ac_env_target_alias_value=$target_alias | |
904 | ac_cv_env_target_alias_set=${target_alias+set} | |
905 | ac_cv_env_target_alias_value=$target_alias | |
906 | ac_env_CC_set=${CC+set} | |
907 | ac_env_CC_value=$CC | |
908 | ac_cv_env_CC_set=${CC+set} | |
909 | ac_cv_env_CC_value=$CC | |
910 | ac_env_CFLAGS_set=${CFLAGS+set} | |
911 | ac_env_CFLAGS_value=$CFLAGS | |
912 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
913 | ac_cv_env_CFLAGS_value=$CFLAGS | |
914 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
915 | ac_env_LDFLAGS_value=$LDFLAGS | |
916 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
917 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
918 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
919 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
920 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
921 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
922 | ac_env_CPP_set=${CPP+set} | |
923 | ac_env_CPP_value=$CPP | |
924 | ac_cv_env_CPP_set=${CPP+set} | |
925 | ac_cv_env_CPP_value=$CPP | |
926 | ac_env_CXX_set=${CXX+set} | |
927 | ac_env_CXX_value=$CXX | |
928 | ac_cv_env_CXX_set=${CXX+set} | |
929 | ac_cv_env_CXX_value=$CXX | |
930 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
931 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
932 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
933 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
934 | ac_env_CXXCPP_set=${CXXCPP+set} | |
935 | ac_env_CXXCPP_value=$CXXCPP | |
936 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
937 | ac_cv_env_CXXCPP_value=$CXXCPP | |
938 | ac_env_F77_set=${F77+set} | |
939 | ac_env_F77_value=$F77 | |
940 | ac_cv_env_F77_set=${F77+set} | |
941 | ac_cv_env_F77_value=$F77 | |
942 | ac_env_FFLAGS_set=${FFLAGS+set} | |
943 | ac_env_FFLAGS_value=$FFLAGS | |
944 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
945 | ac_cv_env_FFLAGS_value=$FFLAGS | |
946 | ||
947 | # | |
948 | # Report the --help message. | |
949 | # | |
950 | if test "$ac_init_help" = "long"; then | |
951 | # Omit some internal or obsolete options to make the list less imposing. | |
952 | # This message is too long to be a string in the A/UX 3.1 sh. | |
953 | cat <<_ACEOF | |
954 | \`configure' configures this package to adapt to many kinds of systems. | |
955 | ||
956 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
957 | ||
958 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
959 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
960 | ||
961 | Defaults for the options are specified in brackets. | |
962 | ||
963 | Configuration: | |
964 | -h, --help display this help and exit | |
965 | --help=short display options specific to this package | |
966 | --help=recursive display the short help of all the included packages | |
967 | -V, --version display version information and exit | |
968 | -q, --quiet, --silent do not print \`checking...' messages | |
969 | --cache-file=FILE cache test results in FILE [disabled] | |
970 | -C, --config-cache alias for \`--cache-file=config.cache' | |
971 | -n, --no-create do not create output files | |
972 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
973 | ||
974 | _ACEOF | |
975 | ||
976 | cat <<_ACEOF | |
977 | Installation directories: | |
978 | --prefix=PREFIX install architecture-independent files in PREFIX | |
979 | [$ac_default_prefix] | |
980 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
981 | [PREFIX] | |
982 | ||
983 | By default, \`make install' will install all the files in | |
984 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
985 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
986 | for instance \`--prefix=\$HOME'. | |
987 | ||
988 | For better control, use the options below. | |
989 | ||
990 | Fine tuning of the installation directories: | |
991 | --bindir=DIR user executables [EPREFIX/bin] | |
992 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
993 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
994 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
995 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
996 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
997 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
998 | --libdir=DIR object code libraries [EPREFIX/lib] | |
999 | --includedir=DIR C header files [PREFIX/include] | |
1000 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1001 | --infodir=DIR info documentation [PREFIX/info] | |
1002 | --mandir=DIR man documentation [PREFIX/man] | |
1003 | _ACEOF | |
1004 | ||
1005 | cat <<\_ACEOF | |
1006 | ||
1007 | Program names: | |
1008 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1009 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1010 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1011 | ||
1012 | System types: | |
1013 | --build=BUILD configure for building on BUILD [guessed] | |
1014 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1015 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1016 | _ACEOF | |
1017 | fi | |
1018 | ||
1019 | if test -n "$ac_init_help"; then | |
1020 | ||
1021 | cat <<\_ACEOF | |
1022 | ||
1023 | Optional Features: | |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1026 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1027 | (and sometimes confusing) to the casual installer | |
1028 | --disable-dependency-tracking speeds up one-time build | |
1029 | --enable-dependency-tracking do not reject slow dependency extractors | |
1030 | --enable-shared[=PKGS] | |
1031 | build shared libraries [default=yes] | |
1032 | --enable-static[=PKGS] | |
1033 | build static libraries [default=yes] | |
1034 | --enable-fast-install[=PKGS] | |
1035 | optimize for fast installation [default=yes] | |
1036 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1037 | --enable-debug Enable generic debug support (default off) | |
1038 | --enable-debug-kmem Enable kmem debug support (default off) | |
1039 | --enable-debug-mutex Enable mutex debug support (default off) | |
1040 | --enable-debug-kstat Enable kstat debug support (default off) | |
1041 | --enable-debug-callb Enable callb debug support (default off) | |
1042 | ||
1043 | Optional Packages: | |
1044 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1045 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1046 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1047 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1048 | both] | |
1049 | --with-tags[=TAGS] | |
1050 | include additional configurations [automatic] | |
86933a6e | 1051 | --with-config=CONFIG Config file 'kernel|user|all' |
bf9f3bac | 1052 | --with-linux=PATH Path to kernel source |
1053 | --with-linux-obj=PATH Path to kernel build objects | |
1054 | ||
1055 | Some influential environment variables: | |
1056 | CC C compiler command | |
1057 | CFLAGS C compiler flags | |
1058 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1059 | nonstandard directory <lib dir> | |
1060 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1061 | headers in a nonstandard directory <include dir> | |
1062 | CPP C preprocessor | |
1063 | CXX C++ compiler command | |
1064 | CXXFLAGS C++ compiler flags | |
1065 | CXXCPP C++ preprocessor | |
1066 | F77 Fortran 77 compiler command | |
1067 | FFLAGS Fortran 77 compiler flags | |
1068 | ||
1069 | Use these variables to override the choices made by `configure' or to help | |
1070 | it to find libraries and programs with nonstandard names/locations. | |
1071 | ||
1072 | _ACEOF | |
1073 | fi | |
1074 | ||
1075 | if test "$ac_init_help" = "recursive"; then | |
1076 | # If there are subdirs, report their specific --help. | |
1077 | ac_popdir=`pwd` | |
1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1079 | test -d $ac_dir || continue | |
1080 | ac_builddir=. | |
1081 | ||
1082 | if test "$ac_dir" != .; then | |
1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1084 | # A "../" for each directory in $ac_dir_suffix. | |
1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1086 | else | |
1087 | ac_dir_suffix= ac_top_builddir= | |
1088 | fi | |
1089 | ||
1090 | case $srcdir in | |
1091 | .) # No --srcdir option. We are building in place. | |
1092 | ac_srcdir=. | |
1093 | if test -z "$ac_top_builddir"; then | |
1094 | ac_top_srcdir=. | |
1095 | else | |
1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1097 | fi ;; | |
1098 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1099 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1100 | ac_top_srcdir=$srcdir ;; | |
1101 | *) # Relative path. | |
1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1104 | esac | |
1105 | ||
1106 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1107 | # the directories may not exist. | |
1108 | case `pwd` in | |
1109 | .) ac_abs_builddir="$ac_dir";; | |
1110 | *) | |
1111 | case "$ac_dir" in | |
1112 | .) ac_abs_builddir=`pwd`;; | |
1113 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1114 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1115 | esac;; | |
1116 | esac | |
1117 | case $ac_abs_builddir in | |
1118 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1119 | *) | |
1120 | case ${ac_top_builddir}. in | |
1121 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1122 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1123 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1124 | esac;; | |
1125 | esac | |
1126 | case $ac_abs_builddir in | |
1127 | .) ac_abs_srcdir=$ac_srcdir;; | |
1128 | *) | |
1129 | case $ac_srcdir in | |
1130 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1131 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1132 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1133 | esac;; | |
1134 | esac | |
1135 | case $ac_abs_builddir in | |
1136 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1137 | *) | |
1138 | case $ac_top_srcdir in | |
1139 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1140 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1141 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1142 | esac;; | |
1143 | esac | |
1144 | ||
1145 | cd $ac_dir | |
1146 | # Check for guested configure; otherwise get Cygnus style configure. | |
1147 | if test -f $ac_srcdir/configure.gnu; then | |
1148 | echo | |
1149 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1150 | elif test -f $ac_srcdir/configure; then | |
1151 | echo | |
1152 | $SHELL $ac_srcdir/configure --help=recursive | |
1153 | elif test -f $ac_srcdir/configure.ac || | |
1154 | test -f $ac_srcdir/configure.in; then | |
1155 | echo | |
1156 | $ac_configure --help | |
1157 | else | |
1158 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1159 | fi | |
1160 | cd $ac_popdir | |
1161 | done | |
1162 | fi | |
1163 | ||
1164 | test -n "$ac_init_help" && exit 0 | |
1165 | if $ac_init_version; then | |
1166 | cat <<\_ACEOF | |
1167 | ||
1168 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1169 | This configure script is free software; the Free Software Foundation | |
1170 | gives unlimited permission to copy, distribute and modify it. | |
1171 | _ACEOF | |
1172 | exit 0 | |
1173 | fi | |
1174 | exec 5>config.log | |
1175 | cat >&5 <<_ACEOF | |
1176 | This file contains any messages produced by compilers while | |
1177 | running configure, to aid debugging if configure makes a mistake. | |
1178 | ||
1179 | It was created by $as_me, which was | |
1180 | generated by GNU Autoconf 2.59. Invocation command line was | |
1181 | ||
1182 | $ $0 $@ | |
1183 | ||
1184 | _ACEOF | |
1185 | { | |
1186 | cat <<_ASUNAME | |
1187 | ## --------- ## | |
1188 | ## Platform. ## | |
1189 | ## --------- ## | |
1190 | ||
1191 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1192 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1193 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1194 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1195 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1196 | ||
1197 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1198 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1199 | ||
1200 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1201 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1202 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1203 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1204 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1205 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1206 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1207 | ||
1208 | _ASUNAME | |
1209 | ||
1210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1211 | for as_dir in $PATH | |
1212 | do | |
1213 | IFS=$as_save_IFS | |
1214 | test -z "$as_dir" && as_dir=. | |
1215 | echo "PATH: $as_dir" | |
1216 | done | |
1217 | ||
1218 | } >&5 | |
1219 | ||
1220 | cat >&5 <<_ACEOF | |
1221 | ||
1222 | ||
1223 | ## ----------- ## | |
1224 | ## Core tests. ## | |
1225 | ## ----------- ## | |
1226 | ||
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | # Keep a trace of the command line. | |
1231 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1232 | # Strip out --silent because we don't want to record it for future runs. | |
1233 | # Also quote any args containing shell meta-characters. | |
1234 | # Make two passes to allow for proper duplicate-argument suppression. | |
1235 | ac_configure_args= | |
1236 | ac_configure_args0= | |
1237 | ac_configure_args1= | |
1238 | ac_sep= | |
1239 | ac_must_keep_next=false | |
1240 | for ac_pass in 1 2 | |
1241 | do | |
1242 | for ac_arg | |
1243 | do | |
1244 | case $ac_arg in | |
1245 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1246 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1247 | | -silent | --silent | --silen | --sile | --sil) | |
1248 | continue ;; | |
1249 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1250 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1251 | esac | |
1252 | case $ac_pass in | |
1253 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1254 | 2) | |
1255 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1256 | if test $ac_must_keep_next = true; then | |
1257 | ac_must_keep_next=false # Got value, back to normal. | |
1258 | else | |
1259 | case $ac_arg in | |
1260 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1261 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1262 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1263 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1264 | case "$ac_configure_args0 " in | |
1265 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1266 | esac | |
1267 | ;; | |
1268 | -* ) ac_must_keep_next=true ;; | |
1269 | esac | |
1270 | fi | |
1271 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1272 | # Get rid of the leading space. | |
1273 | ac_sep=" " | |
1274 | ;; | |
1275 | esac | |
1276 | done | |
1277 | done | |
1278 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1279 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1280 | ||
1281 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1282 | # config.log. We remove comments because anyway the quotes in there | |
1283 | # would cause problems or look ugly. | |
1284 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1285 | # such as our DU 5.0 friend, will then `close' the trap. | |
1286 | trap 'exit_status=$? | |
1287 | # Save into config.log some information that might help in debugging. | |
1288 | { | |
1289 | echo | |
1290 | ||
1291 | cat <<\_ASBOX | |
1292 | ## ---------------- ## | |
1293 | ## Cache variables. ## | |
1294 | ## ---------------- ## | |
1295 | _ASBOX | |
1296 | echo | |
1297 | # The following way of writing the cache mishandles newlines in values, | |
1298 | { | |
1299 | (set) 2>&1 | | |
1300 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1301 | *ac_space=\ *) | |
1302 | sed -n \ | |
1303 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1304 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1305 | ;; | |
1306 | *) | |
1307 | sed -n \ | |
1308 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1309 | ;; | |
1310 | esac; | |
1311 | } | |
1312 | echo | |
1313 | ||
1314 | cat <<\_ASBOX | |
1315 | ## ----------------- ## | |
1316 | ## Output variables. ## | |
1317 | ## ----------------- ## | |
1318 | _ASBOX | |
1319 | echo | |
1320 | for ac_var in $ac_subst_vars | |
1321 | do | |
1322 | eval ac_val=$`echo $ac_var` | |
1323 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1324 | done | sort | |
1325 | echo | |
1326 | ||
1327 | if test -n "$ac_subst_files"; then | |
1328 | cat <<\_ASBOX | |
1329 | ## ------------- ## | |
1330 | ## Output files. ## | |
1331 | ## ------------- ## | |
1332 | _ASBOX | |
1333 | echo | |
1334 | for ac_var in $ac_subst_files | |
1335 | do | |
1336 | eval ac_val=$`echo $ac_var` | |
1337 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1338 | done | sort | |
1339 | echo | |
1340 | fi | |
1341 | ||
1342 | if test -s confdefs.h; then | |
1343 | cat <<\_ASBOX | |
1344 | ## ----------- ## | |
1345 | ## confdefs.h. ## | |
1346 | ## ----------- ## | |
1347 | _ASBOX | |
1348 | echo | |
1349 | sed "/^$/d" confdefs.h | sort | |
1350 | echo | |
1351 | fi | |
1352 | test "$ac_signal" != 0 && | |
1353 | echo "$as_me: caught signal $ac_signal" | |
1354 | echo "$as_me: exit $exit_status" | |
1355 | } >&5 | |
1356 | rm -f core *.core && | |
1357 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1358 | exit $exit_status | |
1359 | ' 0 | |
1360 | for ac_signal in 1 2 13 15; do | |
1361 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1362 | done | |
1363 | ac_signal=0 | |
1364 | ||
1365 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1366 | rm -rf conftest* confdefs.h | |
1367 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1368 | echo >confdefs.h | |
1369 | ||
1370 | # Predefined preprocessor variables. | |
1371 | ||
1372 | cat >>confdefs.h <<_ACEOF | |
1373 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1374 | _ACEOF | |
1375 | ||
1376 | ||
1377 | cat >>confdefs.h <<_ACEOF | |
1378 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1379 | _ACEOF | |
1380 | ||
1381 | ||
1382 | cat >>confdefs.h <<_ACEOF | |
1383 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1384 | _ACEOF | |
1385 | ||
1386 | ||
1387 | cat >>confdefs.h <<_ACEOF | |
1388 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1389 | _ACEOF | |
1390 | ||
1391 | ||
1392 | cat >>confdefs.h <<_ACEOF | |
1393 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1394 | _ACEOF | |
1395 | ||
1396 | ||
1397 | # Let the site file select an alternate cache file if it wants to. | |
1398 | # Prefer explicitly selected file to automatically selected ones. | |
1399 | if test -z "$CONFIG_SITE"; then | |
1400 | if test "x$prefix" != xNONE; then | |
1401 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1402 | else | |
1403 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1404 | fi | |
1405 | fi | |
1406 | for ac_site_file in $CONFIG_SITE; do | |
1407 | if test -r "$ac_site_file"; then | |
1408 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1409 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1410 | sed 's/^/| /' "$ac_site_file" >&5 | |
1411 | . "$ac_site_file" | |
1412 | fi | |
1413 | done | |
1414 | ||
1415 | if test -r "$cache_file"; then | |
1416 | # Some versions of bash will fail to source /dev/null (special | |
1417 | # files actually), so we avoid doing that. | |
1418 | if test -f "$cache_file"; then | |
1419 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1420 | echo "$as_me: loading cache $cache_file" >&6;} | |
1421 | case $cache_file in | |
1422 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1423 | *) . ./$cache_file;; | |
1424 | esac | |
1425 | fi | |
1426 | else | |
1427 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1428 | echo "$as_me: creating cache $cache_file" >&6;} | |
1429 | >$cache_file | |
1430 | fi | |
1431 | ||
1432 | # Check that the precious variables saved in the cache have kept the same | |
1433 | # value. | |
1434 | ac_cache_corrupted=false | |
1435 | for ac_var in `(set) 2>&1 | | |
1436 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1437 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1438 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1439 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1440 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1441 | case $ac_old_set,$ac_new_set in | |
1442 | set,) | |
1443 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1444 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1445 | ac_cache_corrupted=: ;; | |
1446 | ,set) | |
1447 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1448 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1449 | ac_cache_corrupted=: ;; | |
1450 | ,);; | |
1451 | *) | |
1452 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1453 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1454 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1455 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1456 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1457 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1458 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1459 | ac_cache_corrupted=: | |
1460 | fi;; | |
1461 | esac | |
1462 | # Pass precious variables to config.status. | |
1463 | if test "$ac_new_set" = set; then | |
1464 | case $ac_new_val in | |
1465 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1466 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1467 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1468 | esac | |
1469 | case " $ac_configure_args " in | |
1470 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1471 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1472 | esac | |
1473 | fi | |
1474 | done | |
1475 | if $ac_cache_corrupted; then | |
1476 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1477 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1478 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1479 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1480 | { (exit 1); exit 1; }; } | |
1481 | fi | |
1482 | ||
1483 | ac_ext=c | |
1484 | ac_cpp='$CPP $CPPFLAGS' | |
1485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
0c617c9a BB |
1507 | ac_ext=c |
1508 | ac_cpp='$CPP $CPPFLAGS' | |
1509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1512 | ||
1513 | ||
dd529a30 | 1514 | echo "$as_me:$LINENO: checking metadata" >&5 |
1515 | echo $ECHO_N "checking metadata... $ECHO_C" >&6 | |
1516 | ||
1517 | META="$srcdir/META" | |
1518 | _spl_ac_meta_got_file=no | |
1519 | if test -f "$META"; then | |
1520 | _spl_ac_meta_got_file=yes | |
1521 | ||
abc3ca14 | 1522 | SPL_META_NAME=`perl -n\ |
dd529a30 | 1523 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1524 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1525 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1526 | -e "s/^\s+//;"\ | |
1527 | -e "s/\s+$//;"\ | |
1528 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1529 | -e "\\$val=\\$_;"\ | |
1530 | -e "END { print \\$val if defined \\$val; }"\ | |
1531 | '(?:NAME|PROJECT|PACKAGE)' $META`; | |
abc3ca14 | 1532 | if test -n "$SPL_META_NAME"; then |
dd529a30 | 1533 | |
1534 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1535 | #define SPL_META_NAME "$SPL_META_NAME" |
dd529a30 | 1536 | _ACEOF |
1537 | ||
1538 | ||
1539 | fi | |
1540 | ||
abc3ca14 | 1541 | SPL_META_VERSION=`perl -n\ |
dd529a30 | 1542 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1543 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1544 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1545 | -e "s/^\s+//;"\ | |
1546 | -e "s/\s+$//;"\ | |
1547 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1548 | -e "\\$val=\\$_;"\ | |
1549 | -e "END { print \\$val if defined \\$val; }"\ | |
1550 | 'VERSION' $META`; | |
abc3ca14 | 1551 | if test -n "$SPL_META_VERSION"; then |
dd529a30 | 1552 | |
1553 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1554 | #define SPL_META_VERSION "$SPL_META_VERSION" |
dd529a30 | 1555 | _ACEOF |
1556 | ||
1557 | ||
1558 | fi | |
1559 | ||
abc3ca14 | 1560 | SPL_META_RELEASE=`perl -n\ |
dd529a30 | 1561 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1562 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1563 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1564 | -e "s/^\s+//;"\ | |
1565 | -e "s/\s+$//;"\ | |
1566 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1567 | -e "\\$val=\\$_;"\ | |
1568 | -e "END { print \\$val if defined \\$val; }"\ | |
1569 | 'RELEASE' $META`; | |
abc3ca14 | 1570 | if test -n "$SPL_META_RELEASE"; then |
dd529a30 | 1571 | |
1572 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1573 | #define SPL_META_RELEASE "$SPL_META_RELEASE" |
dd529a30 | 1574 | _ACEOF |
1575 | ||
1576 | ||
1577 | fi | |
1578 | ||
abc3ca14 | 1579 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then |
72e7de60 | 1580 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" |
abc3ca14 | 1581 | test -n "$SPL_META_RELEASE" && |
72e7de60 | 1582 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" |
dd529a30 | 1583 | |
1584 | cat >>confdefs.h <<_ACEOF | |
72e7de60 | 1585 | #define SPL_META_ALIAS "$SPL_META_ALIAS" |
dd529a30 | 1586 | _ACEOF |
1587 | ||
1588 | ||
1589 | fi | |
1590 | ||
abc3ca14 | 1591 | SPL_META_DATA=`perl -n\ |
dd529a30 | 1592 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1593 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1594 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1595 | -e "s/^\s+//;"\ | |
1596 | -e "s/\s+$//;"\ | |
1597 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1598 | -e "\\$val=\\$_;"\ | |
1599 | -e "END { print \\$val if defined \\$val; }"\ | |
1600 | 'DATE' $META`; | |
abc3ca14 | 1601 | if test -n "$SPL_META_DATA"; then |
dd529a30 | 1602 | |
1603 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1604 | #define SPL_META_DATA "$SPL_META_DATA" |
dd529a30 | 1605 | _ACEOF |
1606 | ||
1607 | ||
1608 | fi | |
1609 | ||
abc3ca14 | 1610 | SPL_META_AUTHOR=`perl -n\ |
dd529a30 | 1611 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1612 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1613 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1614 | -e "s/^\s+//;"\ | |
1615 | -e "s/\s+$//;"\ | |
1616 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1617 | -e "\\$val=\\$_;"\ | |
1618 | -e "END { print \\$val if defined \\$val; }"\ | |
1619 | 'AUTHOR' $META`; | |
abc3ca14 | 1620 | if test -n "$SPL_META_AUTHOR"; then |
dd529a30 | 1621 | |
1622 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1623 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" |
dd529a30 | 1624 | _ACEOF |
1625 | ||
1626 | ||
1627 | fi | |
1628 | ||
1629 | ||
abc3ca14 | 1630 | SPL_META_LT_CURRENT=`perl -n\ |
dd529a30 | 1631 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1632 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1633 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1634 | -e "s/^\s+//;"\ | |
1635 | -e "s/\s+$//;"\ | |
1636 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1637 | -e "\\$val=\\$_;"\ | |
1638 | -e "END { print \\$val if defined \\$val; }"\ | |
1639 | 'LT_CURRENT' $META`; | |
abc3ca14 | 1640 | SPL_META_LT_REVISION=`perl -n\ |
dd529a30 | 1641 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1642 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1643 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1644 | -e "s/^\s+//;"\ | |
1645 | -e "s/\s+$//;"\ | |
1646 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1647 | -e "\\$val=\\$_;"\ | |
1648 | -e "END { print \\$val if defined \\$val; }"\ | |
1649 | 'LT_REVISION' $META`; | |
abc3ca14 | 1650 | SPL_META_LT_AGE=`perl -n\ |
dd529a30 | 1651 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
1652 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
1653 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
1654 | -e "s/^\s+//;"\ | |
1655 | -e "s/\s+$//;"\ | |
1656 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
1657 | -e "\\$val=\\$_;"\ | |
1658 | -e "END { print \\$val if defined \\$val; }"\ | |
1659 | 'LT_AGE' $META`; | |
abc3ca14 BB |
1660 | if test -n "$SPL_META_LT_CURRENT" \ |
1661 | -o -n "$SPL_META_LT_REVISION" \ | |
1662 | -o -n "$SPL_META_LT_AGE"; then | |
1663 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
1664 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
1665 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
dd529a30 | 1666 | |
1667 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1668 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" |
dd529a30 | 1669 | _ACEOF |
1670 | ||
1671 | ||
1672 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1673 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" |
dd529a30 | 1674 | _ACEOF |
1675 | ||
1676 | ||
1677 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 1678 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" |
dd529a30 | 1679 | _ACEOF |
1680 | ||
1681 | ||
1682 | ||
1683 | ||
1684 | fi | |
1685 | fi | |
1686 | ||
1687 | echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5 | |
1688 | echo "${ECHO_T}$_spl_ac_meta_got_file" >&6 | |
1689 | ||
1690 | ||
bf9f3bac | 1691 | ac_aux_dir= |
1692 | for ac_dir in config $srcdir/config; do | |
1693 | if test -f $ac_dir/install-sh; then | |
1694 | ac_aux_dir=$ac_dir | |
1695 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1696 | break | |
1697 | elif test -f $ac_dir/install.sh; then | |
1698 | ac_aux_dir=$ac_dir | |
1699 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1700 | break | |
1701 | elif test -f $ac_dir/shtool; then | |
1702 | ac_aux_dir=$ac_dir | |
1703 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1704 | break | |
1705 | fi | |
1706 | done | |
1707 | if test -z "$ac_aux_dir"; then | |
1708 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | |
1709 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
1710 | { (exit 1); exit 1; }; } | |
1711 | fi | |
1712 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1713 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1714 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1715 | ||
1716 | # Make sure we can run config.sub. | |
1717 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1718 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1719 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1720 | { (exit 1); exit 1; }; } | |
1721 | ||
1722 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1723 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1724 | if test "${ac_cv_build+set}" = set; then | |
1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1726 | else | |
1727 | ac_cv_build_alias=$build_alias | |
1728 | test -z "$ac_cv_build_alias" && | |
1729 | ac_cv_build_alias=`$ac_config_guess` | |
1730 | test -z "$ac_cv_build_alias" && | |
1731 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1732 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1733 | { (exit 1); exit 1; }; } | |
1734 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1735 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1736 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1737 | { (exit 1); exit 1; }; } | |
1738 | ||
1739 | fi | |
1740 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1741 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1742 | build=$ac_cv_build | |
1743 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1744 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1745 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1746 | ||
1747 | ||
1748 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1749 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1750 | if test "${ac_cv_host+set}" = set; then | |
1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1752 | else | |
1753 | ac_cv_host_alias=$host_alias | |
1754 | test -z "$ac_cv_host_alias" && | |
1755 | ac_cv_host_alias=$ac_cv_build_alias | |
1756 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1757 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1758 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1759 | { (exit 1); exit 1; }; } | |
1760 | ||
1761 | fi | |
1762 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1763 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1764 | host=$ac_cv_host | |
1765 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1766 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1767 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1768 | ||
1769 | ||
1770 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1771 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1772 | if test "${ac_cv_target+set}" = set; then | |
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1774 | else | |
1775 | ac_cv_target_alias=$target_alias | |
1776 | test "x$ac_cv_target_alias" = "x" && | |
1777 | ac_cv_target_alias=$ac_cv_host_alias | |
1778 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1779 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1780 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1781 | { (exit 1); exit 1; }; } | |
1782 | ||
1783 | fi | |
1784 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1785 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1786 | target=$ac_cv_target | |
1787 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1788 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1789 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1790 | ||
1791 | ||
1792 | # The aliases save the names the user supplied, while $host etc. | |
1793 | # will get canonicalized. | |
1794 | test -n "$target_alias" && | |
1795 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1796 | NONENONEs,x,x, && | |
1797 | program_prefix=${target_alias}- | |
1798 | am__api_version="1.9" | |
1799 | # Find a good install program. We prefer a C program (faster), | |
1800 | # so one script is as good as another. But avoid the broken or | |
1801 | # incompatible versions: | |
1802 | # SysV /etc/install, /usr/sbin/install | |
1803 | # SunOS /usr/etc/install | |
1804 | # IRIX /sbin/install | |
1805 | # AIX /bin/install | |
1806 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1807 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1808 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1809 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1810 | # OS/2's system install, which has a completely different semantic | |
1811 | # ./install, which can be erroneously created by make from ./install.sh. | |
1812 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1813 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1814 | if test -z "$INSTALL"; then | |
1815 | if test "${ac_cv_path_install+set}" = set; then | |
1816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1817 | else | |
1818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1819 | for as_dir in $PATH | |
1820 | do | |
1821 | IFS=$as_save_IFS | |
1822 | test -z "$as_dir" && as_dir=. | |
1823 | # Account for people who put trailing slashes in PATH elements. | |
1824 | case $as_dir/ in | |
1825 | ./ | .// | /cC/* | \ | |
1826 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1827 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1828 | /usr/ucb/* ) ;; | |
1829 | *) | |
1830 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1831 | # Don't use installbsd from OSF since it installs stuff as root | |
1832 | # by default. | |
1833 | for ac_prog in ginstall scoinst install; do | |
1834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1835 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1836 | if test $ac_prog = install && | |
1837 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1838 | # AIX install. It has an incompatible calling convention. | |
1839 | : | |
1840 | elif test $ac_prog = install && | |
1841 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1842 | # program-specific install script used by HP pwplus--don't use. | |
1843 | : | |
1844 | else | |
1845 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1846 | break 3 | |
1847 | fi | |
1848 | fi | |
1849 | done | |
1850 | done | |
1851 | ;; | |
1852 | esac | |
1853 | done | |
1854 | ||
1855 | ||
1856 | fi | |
1857 | if test "${ac_cv_path_install+set}" = set; then | |
1858 | INSTALL=$ac_cv_path_install | |
1859 | else | |
1860 | # As a last resort, use the slow shell script. We don't cache a | |
1861 | # path for INSTALL within a source directory, because that will | |
1862 | # break other packages using the cache if that directory is | |
1863 | # removed, or if the path is relative. | |
1864 | INSTALL=$ac_install_sh | |
1865 | fi | |
1866 | fi | |
1867 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1868 | echo "${ECHO_T}$INSTALL" >&6 | |
1869 | ||
1870 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1871 | # It thinks the first close brace ends the variable substitution. | |
1872 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1873 | ||
1874 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1875 | ||
1876 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1877 | ||
1878 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1879 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1880 | # Just in case | |
1881 | sleep 1 | |
1882 | echo timestamp > conftest.file | |
1883 | # Do `set' in a subshell so we don't clobber the current shell's | |
1884 | # arguments. Must try -L first in case configure is actually a | |
1885 | # symlink; some systems play weird games with the mod time of symlinks | |
1886 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1887 | # directory). | |
1888 | if ( | |
1889 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1890 | if test "$*" = "X"; then | |
1891 | # -L didn't work. | |
1892 | set X `ls -t $srcdir/configure conftest.file` | |
1893 | fi | |
1894 | rm -f conftest.file | |
1895 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1896 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1897 | ||
1898 | # If neither matched, then we have a broken ls. This can happen | |
1899 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1900 | # broken ls alias from the environment. This has actually | |
1901 | # happened. Such a system could not be considered "sane". | |
1902 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1903 | alias in your environment" >&5 | |
1904 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1905 | alias in your environment" >&2;} | |
1906 | { (exit 1); exit 1; }; } | |
1907 | fi | |
1908 | ||
1909 | test "$2" = conftest.file | |
1910 | ) | |
1911 | then | |
1912 | # Ok. | |
1913 | : | |
1914 | else | |
1915 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1916 | Check your system clock" >&5 | |
1917 | echo "$as_me: error: newly created file is older than distributed files! | |
1918 | Check your system clock" >&2;} | |
1919 | { (exit 1); exit 1; }; } | |
1920 | fi | |
1921 | echo "$as_me:$LINENO: result: yes" >&5 | |
1922 | echo "${ECHO_T}yes" >&6 | |
1923 | test "$program_prefix" != NONE && | |
1924 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1925 | # Use a double $ so make ignores it. | |
1926 | test "$program_suffix" != NONE && | |
1927 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1928 | # Double any \ or $. echo might interpret backslashes. | |
1929 | # By default was `s,x,x', remove it if useless. | |
1930 | cat <<\_ACEOF >conftest.sed | |
1931 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1932 | _ACEOF | |
1933 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1934 | rm conftest.sed | |
1935 | ||
1936 | # expand $ac_aux_dir to an absolute path | |
1937 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1938 | ||
1939 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1940 | # Use eval to expand $SHELL | |
1941 | if eval "$MISSING --run true"; then | |
1942 | am_missing_run="$MISSING --run " | |
1943 | else | |
1944 | am_missing_run= | |
1945 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1946 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1947 | fi | |
1948 | ||
1949 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1950 | # We used to keeping the `.' as first argument, in order to | |
1951 | # allow $(mkdir_p) to be used without argument. As in | |
1952 | # $(mkdir_p) $(somedir) | |
1953 | # where $(somedir) is conditionally defined. However this is wrong | |
1954 | # for two reasons: | |
1955 | # 1. if the package is installed by a user who cannot write `.' | |
1956 | # make install will fail, | |
1957 | # 2. the above comment should most certainly read | |
1958 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1959 | # so it does not work when $(somedir) is undefined and | |
1960 | # $(DESTDIR) is not. | |
1961 | # To support the latter case, we have to write | |
1962 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1963 | # so the `.' trick is pointless. | |
1964 | mkdir_p='mkdir -p --' | |
1965 | else | |
1966 | # On NextStep and OpenStep, the `mkdir' command does not | |
1967 | # recognize any option. It will interpret all options as | |
1968 | # directories to create, and then abort because `.' already | |
1969 | # exists. | |
1970 | for d in ./-p ./--version; | |
1971 | do | |
1972 | test -d $d && rmdir $d | |
1973 | done | |
1974 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1975 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1976 | mkdir_p='$(mkinstalldirs)' | |
1977 | else | |
1978 | mkdir_p='$(install_sh) -d' | |
1979 | fi | |
1980 | fi | |
1981 | ||
1982 | for ac_prog in gawk mawk nawk awk | |
1983 | do | |
1984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1985 | set dummy $ac_prog; ac_word=$2 | |
1986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1988 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1990 | else | |
1991 | if test -n "$AWK"; then | |
1992 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1993 | else | |
1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1995 | for as_dir in $PATH | |
1996 | do | |
1997 | IFS=$as_save_IFS | |
1998 | test -z "$as_dir" && as_dir=. | |
1999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2001 | ac_cv_prog_AWK="$ac_prog" | |
2002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2003 | break 2 | |
2004 | fi | |
2005 | done | |
2006 | done | |
2007 | ||
2008 | fi | |
2009 | fi | |
2010 | AWK=$ac_cv_prog_AWK | |
2011 | if test -n "$AWK"; then | |
2012 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2013 | echo "${ECHO_T}$AWK" >&6 | |
2014 | else | |
2015 | echo "$as_me:$LINENO: result: no" >&5 | |
2016 | echo "${ECHO_T}no" >&6 | |
2017 | fi | |
2018 | ||
2019 | test -n "$AWK" && break | |
2020 | done | |
2021 | ||
2022 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2023 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2024 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2025 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2027 | else | |
2028 | cat >conftest.make <<\_ACEOF | |
2029 | all: | |
2030 | @echo 'ac_maketemp="$(MAKE)"' | |
2031 | _ACEOF | |
2032 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2033 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2034 | if test -n "$ac_maketemp"; then | |
2035 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2036 | else | |
2037 | eval ac_cv_prog_make_${ac_make}_set=no | |
2038 | fi | |
2039 | rm -f conftest.make | |
2040 | fi | |
2041 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2042 | echo "$as_me:$LINENO: result: yes" >&5 | |
2043 | echo "${ECHO_T}yes" >&6 | |
2044 | SET_MAKE= | |
2045 | else | |
2046 | echo "$as_me:$LINENO: result: no" >&5 | |
2047 | echo "${ECHO_T}no" >&6 | |
2048 | SET_MAKE="MAKE=${MAKE-make}" | |
2049 | fi | |
2050 | ||
2051 | rm -rf .tst 2>/dev/null | |
2052 | mkdir .tst 2>/dev/null | |
2053 | if test -d .tst; then | |
2054 | am__leading_dot=. | |
2055 | else | |
2056 | am__leading_dot=_ | |
2057 | fi | |
2058 | rmdir .tst 2>/dev/null | |
2059 | ||
2060 | # test to see if srcdir already configured | |
2061 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2062 | test -f $srcdir/config.status; then | |
2063 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2064 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2065 | { (exit 1); exit 1; }; } | |
2066 | fi | |
2067 | ||
2068 | # test whether we have cygpath | |
2069 | if test -z "$CYGPATH_W"; then | |
2070 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2071 | CYGPATH_W='cygpath -w' | |
2072 | else | |
2073 | CYGPATH_W=echo | |
2074 | fi | |
2075 | fi | |
2076 | ||
2077 | ||
2078 | # Define the identity of the package. | |
abc3ca14 BB |
2079 | PACKAGE=$SPL_META_NAME |
2080 | VERSION=$SPL_META_VERSION | |
bf9f3bac | 2081 | |
2082 | ||
2083 | cat >>confdefs.h <<_ACEOF | |
2084 | #define PACKAGE "$PACKAGE" | |
2085 | _ACEOF | |
2086 | ||
2087 | ||
2088 | cat >>confdefs.h <<_ACEOF | |
2089 | #define VERSION "$VERSION" | |
2090 | _ACEOF | |
2091 | ||
2092 | # Some tools Automake needs. | |
2093 | ||
2094 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2095 | ||
2096 | ||
2097 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2098 | ||
2099 | ||
2100 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2101 | ||
2102 | ||
2103 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2104 | ||
2105 | ||
2106 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2107 | ||
2108 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2109 | ||
2110 | # Installed binaries are usually stripped using `strip' when the user | |
2111 | # run `make install-strip'. However `strip' might not be the right | |
2112 | # tool to use in cross-compilation environments, therefore Automake | |
2113 | # will honor the `STRIP' environment variable to overrule this program. | |
2114 | if test "$cross_compiling" != no; then | |
2115 | if test -n "$ac_tool_prefix"; then | |
2116 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2117 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2120 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2122 | else | |
2123 | if test -n "$STRIP"; then | |
2124 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2125 | else | |
2126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2127 | for as_dir in $PATH | |
2128 | do | |
2129 | IFS=$as_save_IFS | |
2130 | test -z "$as_dir" && as_dir=. | |
2131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2133 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2135 | break 2 | |
2136 | fi | |
2137 | done | |
2138 | done | |
2139 | ||
2140 | fi | |
2141 | fi | |
2142 | STRIP=$ac_cv_prog_STRIP | |
2143 | if test -n "$STRIP"; then | |
2144 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2145 | echo "${ECHO_T}$STRIP" >&6 | |
2146 | else | |
2147 | echo "$as_me:$LINENO: result: no" >&5 | |
2148 | echo "${ECHO_T}no" >&6 | |
2149 | fi | |
2150 | ||
2151 | fi | |
2152 | if test -z "$ac_cv_prog_STRIP"; then | |
2153 | ac_ct_STRIP=$STRIP | |
2154 | # Extract the first word of "strip", so it can be a program name with args. | |
2155 | set dummy strip; ac_word=$2 | |
2156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2158 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2160 | else | |
2161 | if test -n "$ac_ct_STRIP"; then | |
2162 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2163 | else | |
2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2165 | for as_dir in $PATH | |
2166 | do | |
2167 | IFS=$as_save_IFS | |
2168 | test -z "$as_dir" && as_dir=. | |
2169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2170 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2171 | ac_cv_prog_ac_ct_STRIP="strip" | |
2172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2173 | break 2 | |
2174 | fi | |
2175 | done | |
2176 | done | |
2177 | ||
2178 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2179 | fi | |
2180 | fi | |
2181 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2182 | if test -n "$ac_ct_STRIP"; then | |
2183 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2184 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2185 | else | |
2186 | echo "$as_me:$LINENO: result: no" >&5 | |
2187 | echo "${ECHO_T}no" >&6 | |
2188 | fi | |
2189 | ||
2190 | STRIP=$ac_ct_STRIP | |
2191 | else | |
2192 | STRIP="$ac_cv_prog_STRIP" | |
2193 | fi | |
2194 | ||
2195 | fi | |
2196 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2197 | ||
2198 | # We need awk for the "check" target. The system "awk" is bad on | |
2199 | # some platforms. | |
2200 | # Always define AMTAR for backward compatibility. | |
2201 | ||
2202 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2203 | ||
2204 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2205 | ||
2206 | ||
2207 | ||
2208 | ||
2209 | ||
2210 | ac_config_headers="$ac_config_headers spl_config.h" | |
2211 | ||
0cbaeb11 BB |
2212 | |
2213 | ||
bf9f3bac | 2214 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2215 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
2216 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
2217 | if test "${enable_maintainer_mode+set}" = set; then | |
2218 | enableval="$enable_maintainer_mode" | |
2219 | USE_MAINTAINER_MODE=$enableval | |
2220 | else | |
2221 | USE_MAINTAINER_MODE=no | |
2222 | fi; | |
2223 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2224 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2225 | ||
2226 | ||
2227 | if test $USE_MAINTAINER_MODE = yes; then | |
2228 | MAINTAINER_MODE_TRUE= | |
2229 | MAINTAINER_MODE_FALSE='#' | |
2230 | else | |
2231 | MAINTAINER_MODE_TRUE='#' | |
2232 | MAINTAINER_MODE_FALSE= | |
2233 | fi | |
2234 | ||
2235 | MAINT=$MAINTAINER_MODE_TRUE | |
2236 | ||
2237 | ||
2238 | ||
2239 | # Find a good install program. We prefer a C program (faster), | |
2240 | # so one script is as good as another. But avoid the broken or | |
2241 | # incompatible versions: | |
2242 | # SysV /etc/install, /usr/sbin/install | |
2243 | # SunOS /usr/etc/install | |
2244 | # IRIX /sbin/install | |
2245 | # AIX /bin/install | |
2246 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2247 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2248 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2249 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2250 | # OS/2's system install, which has a completely different semantic | |
2251 | # ./install, which can be erroneously created by make from ./install.sh. | |
2252 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2253 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2254 | if test -z "$INSTALL"; then | |
2255 | if test "${ac_cv_path_install+set}" = set; then | |
2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2257 | else | |
2258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2259 | for as_dir in $PATH | |
2260 | do | |
2261 | IFS=$as_save_IFS | |
2262 | test -z "$as_dir" && as_dir=. | |
2263 | # Account for people who put trailing slashes in PATH elements. | |
2264 | case $as_dir/ in | |
2265 | ./ | .// | /cC/* | \ | |
2266 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2267 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2268 | /usr/ucb/* ) ;; | |
2269 | *) | |
2270 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2271 | # Don't use installbsd from OSF since it installs stuff as root | |
2272 | # by default. | |
2273 | for ac_prog in ginstall scoinst install; do | |
2274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2275 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2276 | if test $ac_prog = install && | |
2277 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2278 | # AIX install. It has an incompatible calling convention. | |
2279 | : | |
2280 | elif test $ac_prog = install && | |
2281 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2282 | # program-specific install script used by HP pwplus--don't use. | |
2283 | : | |
2284 | else | |
2285 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2286 | break 3 | |
2287 | fi | |
2288 | fi | |
2289 | done | |
2290 | done | |
2291 | ;; | |
2292 | esac | |
2293 | done | |
2294 | ||
2295 | ||
2296 | fi | |
2297 | if test "${ac_cv_path_install+set}" = set; then | |
2298 | INSTALL=$ac_cv_path_install | |
2299 | else | |
2300 | # As a last resort, use the slow shell script. We don't cache a | |
2301 | # path for INSTALL within a source directory, because that will | |
2302 | # break other packages using the cache if that directory is | |
2303 | # removed, or if the path is relative. | |
2304 | INSTALL=$ac_install_sh | |
2305 | fi | |
2306 | fi | |
2307 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2308 | echo "${ECHO_T}$INSTALL" >&6 | |
2309 | ||
2310 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2311 | # It thinks the first close brace ends the variable substitution. | |
2312 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2313 | ||
2314 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2315 | ||
2316 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2317 | ||
2318 | ac_ext=c | |
2319 | ac_cpp='$CPP $CPPFLAGS' | |
2320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2323 | if test -n "$ac_tool_prefix"; then | |
2324 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2325 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2328 | if test "${ac_cv_prog_CC+set}" = set; then | |
2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2330 | else | |
2331 | if test -n "$CC"; then | |
2332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2333 | else | |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2341 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2343 | break 2 | |
2344 | fi | |
2345 | done | |
2346 | done | |
2347 | ||
2348 | fi | |
2349 | fi | |
2350 | CC=$ac_cv_prog_CC | |
2351 | if test -n "$CC"; then | |
2352 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2353 | echo "${ECHO_T}$CC" >&6 | |
2354 | else | |
2355 | echo "$as_me:$LINENO: result: no" >&5 | |
2356 | echo "${ECHO_T}no" >&6 | |
2357 | fi | |
2358 | ||
2359 | fi | |
2360 | if test -z "$ac_cv_prog_CC"; then | |
2361 | ac_ct_CC=$CC | |
2362 | # Extract the first word of "gcc", so it can be a program name with args. | |
2363 | set dummy gcc; ac_word=$2 | |
2364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2366 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2368 | else | |
2369 | if test -n "$ac_ct_CC"; then | |
2370 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2371 | else | |
2372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2373 | for as_dir in $PATH | |
2374 | do | |
2375 | IFS=$as_save_IFS | |
2376 | test -z "$as_dir" && as_dir=. | |
2377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2379 | ac_cv_prog_ac_ct_CC="gcc" | |
2380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2381 | break 2 | |
2382 | fi | |
2383 | done | |
2384 | done | |
2385 | ||
2386 | fi | |
2387 | fi | |
2388 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2389 | if test -n "$ac_ct_CC"; then | |
2390 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2391 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2392 | else | |
2393 | echo "$as_me:$LINENO: result: no" >&5 | |
2394 | echo "${ECHO_T}no" >&6 | |
2395 | fi | |
2396 | ||
2397 | CC=$ac_ct_CC | |
2398 | else | |
2399 | CC="$ac_cv_prog_CC" | |
2400 | fi | |
2401 | ||
2402 | if test -z "$CC"; then | |
2403 | if test -n "$ac_tool_prefix"; then | |
2404 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2405 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2408 | if test "${ac_cv_prog_CC+set}" = set; then | |
2409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2410 | else | |
2411 | if test -n "$CC"; then | |
2412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2413 | else | |
2414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2415 | for as_dir in $PATH | |
2416 | do | |
2417 | IFS=$as_save_IFS | |
2418 | test -z "$as_dir" && as_dir=. | |
2419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2421 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2423 | break 2 | |
2424 | fi | |
2425 | done | |
2426 | done | |
2427 | ||
2428 | fi | |
2429 | fi | |
2430 | CC=$ac_cv_prog_CC | |
2431 | if test -n "$CC"; then | |
2432 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2433 | echo "${ECHO_T}$CC" >&6 | |
2434 | else | |
2435 | echo "$as_me:$LINENO: result: no" >&5 | |
2436 | echo "${ECHO_T}no" >&6 | |
2437 | fi | |
2438 | ||
2439 | fi | |
2440 | if test -z "$ac_cv_prog_CC"; then | |
2441 | ac_ct_CC=$CC | |
2442 | # Extract the first word of "cc", so it can be a program name with args. | |
2443 | set dummy cc; ac_word=$2 | |
2444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2448 | else | |
2449 | if test -n "$ac_ct_CC"; then | |
2450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2451 | else | |
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2453 | for as_dir in $PATH | |
2454 | do | |
2455 | IFS=$as_save_IFS | |
2456 | test -z "$as_dir" && as_dir=. | |
2457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2459 | ac_cv_prog_ac_ct_CC="cc" | |
2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2461 | break 2 | |
2462 | fi | |
2463 | done | |
2464 | done | |
2465 | ||
2466 | fi | |
2467 | fi | |
2468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2469 | if test -n "$ac_ct_CC"; then | |
2470 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2471 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2472 | else | |
2473 | echo "$as_me:$LINENO: result: no" >&5 | |
2474 | echo "${ECHO_T}no" >&6 | |
2475 | fi | |
2476 | ||
2477 | CC=$ac_ct_CC | |
2478 | else | |
2479 | CC="$ac_cv_prog_CC" | |
2480 | fi | |
2481 | ||
2482 | fi | |
2483 | if test -z "$CC"; then | |
2484 | # Extract the first word of "cc", so it can be a program name with args. | |
2485 | set dummy cc; ac_word=$2 | |
2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2488 | if test "${ac_cv_prog_CC+set}" = set; then | |
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2490 | else | |
2491 | if test -n "$CC"; then | |
2492 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2493 | else | |
2494 | ac_prog_rejected=no | |
2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2496 | for as_dir in $PATH | |
2497 | do | |
2498 | IFS=$as_save_IFS | |
2499 | test -z "$as_dir" && as_dir=. | |
2500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2502 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2503 | ac_prog_rejected=yes | |
2504 | continue | |
2505 | fi | |
2506 | ac_cv_prog_CC="cc" | |
2507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2508 | break 2 | |
2509 | fi | |
2510 | done | |
2511 | done | |
2512 | ||
2513 | if test $ac_prog_rejected = yes; then | |
2514 | # We found a bogon in the path, so make sure we never use it. | |
2515 | set dummy $ac_cv_prog_CC | |
2516 | shift | |
2517 | if test $# != 0; then | |
2518 | # We chose a different compiler from the bogus one. | |
2519 | # However, it has the same basename, so the bogon will be chosen | |
2520 | # first if we set CC to just the basename; use the full file name. | |
2521 | shift | |
2522 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2523 | fi | |
2524 | fi | |
2525 | fi | |
2526 | fi | |
2527 | CC=$ac_cv_prog_CC | |
2528 | if test -n "$CC"; then | |
2529 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2530 | echo "${ECHO_T}$CC" >&6 | |
2531 | else | |
2532 | echo "$as_me:$LINENO: result: no" >&5 | |
2533 | echo "${ECHO_T}no" >&6 | |
2534 | fi | |
2535 | ||
2536 | fi | |
2537 | if test -z "$CC"; then | |
2538 | if test -n "$ac_tool_prefix"; then | |
2539 | for ac_prog in cl | |
2540 | do | |
2541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2545 | if test "${ac_cv_prog_CC+set}" = set; then | |
2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2547 | else | |
2548 | if test -n "$CC"; then | |
2549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2550 | else | |
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2552 | for as_dir in $PATH | |
2553 | do | |
2554 | IFS=$as_save_IFS | |
2555 | test -z "$as_dir" && as_dir=. | |
2556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2558 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2560 | break 2 | |
2561 | fi | |
2562 | done | |
2563 | done | |
2564 | ||
2565 | fi | |
2566 | fi | |
2567 | CC=$ac_cv_prog_CC | |
2568 | if test -n "$CC"; then | |
2569 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2570 | echo "${ECHO_T}$CC" >&6 | |
2571 | else | |
2572 | echo "$as_me:$LINENO: result: no" >&5 | |
2573 | echo "${ECHO_T}no" >&6 | |
2574 | fi | |
2575 | ||
2576 | test -n "$CC" && break | |
2577 | done | |
2578 | fi | |
2579 | if test -z "$CC"; then | |
2580 | ac_ct_CC=$CC | |
2581 | for ac_prog in cl | |
2582 | do | |
2583 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2584 | set dummy $ac_prog; ac_word=$2 | |
2585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2587 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2589 | else | |
2590 | if test -n "$ac_ct_CC"; then | |
2591 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2592 | else | |
2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2594 | for as_dir in $PATH | |
2595 | do | |
2596 | IFS=$as_save_IFS | |
2597 | test -z "$as_dir" && as_dir=. | |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2600 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2602 | break 2 | |
2603 | fi | |
2604 | done | |
2605 | done | |
2606 | ||
2607 | fi | |
2608 | fi | |
2609 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2610 | if test -n "$ac_ct_CC"; then | |
2611 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2612 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2613 | else | |
2614 | echo "$as_me:$LINENO: result: no" >&5 | |
2615 | echo "${ECHO_T}no" >&6 | |
2616 | fi | |
2617 | ||
2618 | test -n "$ac_ct_CC" && break | |
2619 | done | |
2620 | ||
2621 | CC=$ac_ct_CC | |
2622 | fi | |
2623 | ||
2624 | fi | |
2625 | ||
2626 | ||
2627 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2628 | See \`config.log' for more details." >&5 | |
2629 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2630 | See \`config.log' for more details." >&2;} | |
2631 | { (exit 1); exit 1; }; } | |
2632 | ||
2633 | # Provide some information about the compiler. | |
2634 | echo "$as_me:$LINENO:" \ | |
2635 | "checking for C compiler version" >&5 | |
2636 | ac_compiler=`set X $ac_compile; echo $2` | |
2637 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2638 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2639 | ac_status=$? | |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); } | |
2642 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2643 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2644 | ac_status=$? | |
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2646 | (exit $ac_status); } | |
2647 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2648 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2649 | ac_status=$? | |
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2651 | (exit $ac_status); } | |
2652 | ||
2653 | cat >conftest.$ac_ext <<_ACEOF | |
2654 | /* confdefs.h. */ | |
2655 | _ACEOF | |
2656 | cat confdefs.h >>conftest.$ac_ext | |
2657 | cat >>conftest.$ac_ext <<_ACEOF | |
2658 | /* end confdefs.h. */ | |
2659 | ||
2660 | int | |
2661 | main () | |
2662 | { | |
2663 | ||
2664 | ; | |
2665 | return 0; | |
2666 | } | |
2667 | _ACEOF | |
2668 | ac_clean_files_save=$ac_clean_files | |
2669 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2670 | # Try to create an executable without -o first, disregard a.out. | |
2671 | # It will help us diagnose broken compilers, and finding out an intuition | |
2672 | # of exeext. | |
2673 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2674 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2675 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2676 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2677 | (eval $ac_link_default) 2>&5 | |
2678 | ac_status=$? | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); }; then | |
2681 | # Find the output, starting from the most likely. This scheme is | |
2682 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2683 | # resort. | |
2684 | ||
2685 | # Be careful to initialize this variable, since it used to be cached. | |
2686 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2687 | ac_cv_exeext= | |
2688 | # b.out is created by i960 compilers. | |
2689 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2690 | do | |
2691 | test -f "$ac_file" || continue | |
2692 | case $ac_file in | |
2693 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2694 | ;; | |
2695 | conftest.$ac_ext ) | |
2696 | # This is the source file. | |
2697 | ;; | |
2698 | [ab].out ) | |
2699 | # We found the default executable, but exeext='' is most | |
2700 | # certainly right. | |
2701 | break;; | |
2702 | *.* ) | |
2703 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2704 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2705 | # but it would be cool to find out if it's true. Does anybody | |
2706 | # maintain Libtool? --akim. | |
2707 | export ac_cv_exeext | |
2708 | break;; | |
2709 | * ) | |
2710 | break;; | |
2711 | esac | |
2712 | done | |
2713 | else | |
2714 | echo "$as_me: failed program was:" >&5 | |
2715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2716 | ||
2717 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2718 | See \`config.log' for more details." >&5 | |
2719 | echo "$as_me: error: C compiler cannot create executables | |
2720 | See \`config.log' for more details." >&2;} | |
2721 | { (exit 77); exit 77; }; } | |
2722 | fi | |
2723 | ||
2724 | ac_exeext=$ac_cv_exeext | |
2725 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2726 | echo "${ECHO_T}$ac_file" >&6 | |
2727 | ||
2728 | # Check the compiler produces executables we can run. If not, either | |
2729 | # the compiler is broken, or we cross compile. | |
2730 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2731 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2732 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2733 | # If not cross compiling, check that we can run a simple program. | |
2734 | if test "$cross_compiling" != yes; then | |
2735 | if { ac_try='./$ac_file' | |
2736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2737 | (eval $ac_try) 2>&5 | |
2738 | ac_status=$? | |
2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2740 | (exit $ac_status); }; }; then | |
2741 | cross_compiling=no | |
2742 | else | |
2743 | if test "$cross_compiling" = maybe; then | |
2744 | cross_compiling=yes | |
2745 | else | |
2746 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2747 | If you meant to cross compile, use \`--host'. | |
2748 | See \`config.log' for more details." >&5 | |
2749 | echo "$as_me: error: cannot run C compiled programs. | |
2750 | If you meant to cross compile, use \`--host'. | |
2751 | See \`config.log' for more details." >&2;} | |
2752 | { (exit 1); exit 1; }; } | |
2753 | fi | |
2754 | fi | |
2755 | fi | |
2756 | echo "$as_me:$LINENO: result: yes" >&5 | |
2757 | echo "${ECHO_T}yes" >&6 | |
2758 | ||
2759 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2760 | ac_clean_files=$ac_clean_files_save | |
2761 | # Check the compiler produces executables we can run. If not, either | |
2762 | # the compiler is broken, or we cross compile. | |
2763 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2764 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2765 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2766 | echo "${ECHO_T}$cross_compiling" >&6 | |
2767 | ||
2768 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2769 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2771 | (eval $ac_link) 2>&5 | |
2772 | ac_status=$? | |
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2774 | (exit $ac_status); }; then | |
2775 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2776 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2777 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2778 | # `rm'. | |
2779 | for ac_file in conftest.exe conftest conftest.*; do | |
2780 | test -f "$ac_file" || continue | |
2781 | case $ac_file in | |
2782 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2783 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2784 | export ac_cv_exeext | |
2785 | break;; | |
2786 | * ) break;; | |
2787 | esac | |
2788 | done | |
2789 | else | |
2790 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2791 | See \`config.log' for more details." >&5 | |
2792 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2793 | See \`config.log' for more details." >&2;} | |
2794 | { (exit 1); exit 1; }; } | |
2795 | fi | |
2796 | ||
2797 | rm -f conftest$ac_cv_exeext | |
2798 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2799 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2800 | ||
2801 | rm -f conftest.$ac_ext | |
2802 | EXEEXT=$ac_cv_exeext | |
2803 | ac_exeext=$EXEEXT | |
2804 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2805 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2806 | if test "${ac_cv_objext+set}" = set; then | |
2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2808 | else | |
2809 | cat >conftest.$ac_ext <<_ACEOF | |
2810 | /* confdefs.h. */ | |
2811 | _ACEOF | |
2812 | cat confdefs.h >>conftest.$ac_ext | |
2813 | cat >>conftest.$ac_ext <<_ACEOF | |
2814 | /* end confdefs.h. */ | |
2815 | ||
2816 | int | |
2817 | main () | |
2818 | { | |
2819 | ||
2820 | ; | |
2821 | return 0; | |
2822 | } | |
2823 | _ACEOF | |
2824 | rm -f conftest.o conftest.obj | |
2825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2826 | (eval $ac_compile) 2>&5 | |
2827 | ac_status=$? | |
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2829 | (exit $ac_status); }; then | |
2830 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2831 | case $ac_file in | |
2832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2833 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2834 | break;; | |
2835 | esac | |
2836 | done | |
2837 | else | |
2838 | echo "$as_me: failed program was:" >&5 | |
2839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2840 | ||
2841 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2842 | See \`config.log' for more details." >&5 | |
2843 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2844 | See \`config.log' for more details." >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
2846 | fi | |
2847 | ||
2848 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2849 | fi | |
2850 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2851 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2852 | OBJEXT=$ac_cv_objext | |
2853 | ac_objext=$OBJEXT | |
2854 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2855 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2856 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2858 | else | |
2859 | cat >conftest.$ac_ext <<_ACEOF | |
2860 | /* confdefs.h. */ | |
2861 | _ACEOF | |
2862 | cat confdefs.h >>conftest.$ac_ext | |
2863 | cat >>conftest.$ac_ext <<_ACEOF | |
2864 | /* end confdefs.h. */ | |
2865 | ||
2866 | int | |
2867 | main () | |
2868 | { | |
2869 | #ifndef __GNUC__ | |
2870 | choke me | |
2871 | #endif | |
2872 | ||
2873 | ; | |
2874 | return 0; | |
2875 | } | |
2876 | _ACEOF | |
2877 | rm -f conftest.$ac_objext | |
2878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2879 | (eval $ac_compile) 2>conftest.er1 | |
2880 | ac_status=$? | |
2881 | grep -v '^ *+' conftest.er1 >conftest.err | |
2882 | rm -f conftest.er1 | |
2883 | cat conftest.err >&5 | |
2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2885 | (exit $ac_status); } && | |
2886 | { ac_try='test -z "$ac_c_werror_flag" | |
2887 | || test ! -s conftest.err' | |
2888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2889 | (eval $ac_try) 2>&5 | |
2890 | ac_status=$? | |
2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2892 | (exit $ac_status); }; } && | |
2893 | { ac_try='test -s conftest.$ac_objext' | |
2894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2895 | (eval $ac_try) 2>&5 | |
2896 | ac_status=$? | |
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2898 | (exit $ac_status); }; }; then | |
2899 | ac_compiler_gnu=yes | |
2900 | else | |
2901 | echo "$as_me: failed program was:" >&5 | |
2902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2903 | ||
2904 | ac_compiler_gnu=no | |
2905 | fi | |
2906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2907 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2908 | ||
2909 | fi | |
2910 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2911 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2912 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2913 | ac_test_CFLAGS=${CFLAGS+set} | |
2914 | ac_save_CFLAGS=$CFLAGS | |
2915 | CFLAGS="-g" | |
2916 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2917 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2918 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2920 | else | |
2921 | cat >conftest.$ac_ext <<_ACEOF | |
2922 | /* confdefs.h. */ | |
2923 | _ACEOF | |
2924 | cat confdefs.h >>conftest.$ac_ext | |
2925 | cat >>conftest.$ac_ext <<_ACEOF | |
2926 | /* end confdefs.h. */ | |
2927 | ||
2928 | int | |
2929 | main () | |
2930 | { | |
2931 | ||
2932 | ; | |
2933 | return 0; | |
2934 | } | |
2935 | _ACEOF | |
2936 | rm -f conftest.$ac_objext | |
2937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2938 | (eval $ac_compile) 2>conftest.er1 | |
2939 | ac_status=$? | |
2940 | grep -v '^ *+' conftest.er1 >conftest.err | |
2941 | rm -f conftest.er1 | |
2942 | cat conftest.err >&5 | |
2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2944 | (exit $ac_status); } && | |
2945 | { ac_try='test -z "$ac_c_werror_flag" | |
2946 | || test ! -s conftest.err' | |
2947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2948 | (eval $ac_try) 2>&5 | |
2949 | ac_status=$? | |
2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2951 | (exit $ac_status); }; } && | |
2952 | { ac_try='test -s conftest.$ac_objext' | |
2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2954 | (eval $ac_try) 2>&5 | |
2955 | ac_status=$? | |
2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2957 | (exit $ac_status); }; }; then | |
2958 | ac_cv_prog_cc_g=yes | |
2959 | else | |
2960 | echo "$as_me: failed program was:" >&5 | |
2961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2962 | ||
2963 | ac_cv_prog_cc_g=no | |
2964 | fi | |
2965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2966 | fi | |
2967 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2968 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2969 | if test "$ac_test_CFLAGS" = set; then | |
2970 | CFLAGS=$ac_save_CFLAGS | |
2971 | elif test $ac_cv_prog_cc_g = yes; then | |
2972 | if test "$GCC" = yes; then | |
2973 | CFLAGS="-g -O2" | |
2974 | else | |
2975 | CFLAGS="-g" | |
2976 | fi | |
2977 | else | |
2978 | if test "$GCC" = yes; then | |
2979 | CFLAGS="-O2" | |
2980 | else | |
2981 | CFLAGS= | |
2982 | fi | |
2983 | fi | |
2984 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2985 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2986 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2988 | else | |
2989 | ac_cv_prog_cc_stdc=no | |
2990 | ac_save_CC=$CC | |
2991 | cat >conftest.$ac_ext <<_ACEOF | |
2992 | /* confdefs.h. */ | |
2993 | _ACEOF | |
2994 | cat confdefs.h >>conftest.$ac_ext | |
2995 | cat >>conftest.$ac_ext <<_ACEOF | |
2996 | /* end confdefs.h. */ | |
2997 | #include <stdarg.h> | |
2998 | #include <stdio.h> | |
2999 | #include <sys/types.h> | |
3000 | #include <sys/stat.h> | |
3001 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3002 | struct buf { int x; }; | |
3003 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3004 | static char *e (p, i) | |
3005 | char **p; | |
3006 | int i; | |
3007 | { | |
3008 | return p[i]; | |
3009 | } | |
3010 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3011 | { | |
3012 | char *s; | |
3013 | va_list v; | |
3014 | va_start (v,p); | |
3015 | s = g (p, va_arg (v,int)); | |
3016 | va_end (v); | |
3017 | return s; | |
3018 | } | |
3019 | ||
3020 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3021 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3022 | These don't provoke an error unfortunately, instead are silently treated | |
3023 | as 'x'. The following induces an error, until -std1 is added to get | |
3024 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3025 | array size at least. It's necessary to write '\x00'==0 to get something | |
3026 | that's true only with -std1. */ | |
3027 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3028 | ||
3029 | int test (int i, double x); | |
3030 | struct s1 {int (*f) (int a);}; | |
3031 | struct s2 {int (*f) (double a);}; | |
3032 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3033 | int argc; | |
3034 | char **argv; | |
3035 | int | |
3036 | main () | |
3037 | { | |
3038 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3039 | ; | |
3040 | return 0; | |
3041 | } | |
3042 | _ACEOF | |
3043 | # Don't try gcc -ansi; that turns off useful extensions and | |
3044 | # breaks some systems' header files. | |
3045 | # AIX -qlanglvl=ansi | |
3046 | # Ultrix and OSF/1 -std1 | |
3047 | # HP-UX 10.20 and later -Ae | |
3048 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3049 | # SVR4 -Xc -D__EXTENSIONS__ | |
3050 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3051 | do | |
3052 | CC="$ac_save_CC $ac_arg" | |
3053 | rm -f conftest.$ac_objext | |
3054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3055 | (eval $ac_compile) 2>conftest.er1 | |
3056 | ac_status=$? | |
3057 | grep -v '^ *+' conftest.er1 >conftest.err | |
3058 | rm -f conftest.er1 | |
3059 | cat conftest.err >&5 | |
3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3061 | (exit $ac_status); } && | |
3062 | { ac_try='test -z "$ac_c_werror_flag" | |
3063 | || test ! -s conftest.err' | |
3064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3065 | (eval $ac_try) 2>&5 | |
3066 | ac_status=$? | |
3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3068 | (exit $ac_status); }; } && | |
3069 | { ac_try='test -s conftest.$ac_objext' | |
3070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3071 | (eval $ac_try) 2>&5 | |
3072 | ac_status=$? | |
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3074 | (exit $ac_status); }; }; then | |
3075 | ac_cv_prog_cc_stdc=$ac_arg | |
3076 | break | |
3077 | else | |
3078 | echo "$as_me: failed program was:" >&5 | |
3079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3080 | ||
3081 | fi | |
3082 | rm -f conftest.err conftest.$ac_objext | |
3083 | done | |
3084 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3085 | CC=$ac_save_CC | |
3086 | ||
3087 | fi | |
3088 | ||
3089 | case "x$ac_cv_prog_cc_stdc" in | |
3090 | x|xno) | |
3091 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3092 | echo "${ECHO_T}none needed" >&6 ;; | |
3093 | *) | |
3094 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3095 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3096 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3097 | esac | |
3098 | ||
3099 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3100 | # in C++ we need to declare it. In case someone uses the same compiler | |
3101 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3102 | # the declaration of exit, since it's the most demanding environment. | |
3103 | cat >conftest.$ac_ext <<_ACEOF | |
3104 | #ifndef __cplusplus | |
3105 | choke me | |
3106 | #endif | |
3107 | _ACEOF | |
3108 | rm -f conftest.$ac_objext | |
3109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3110 | (eval $ac_compile) 2>conftest.er1 | |
3111 | ac_status=$? | |
3112 | grep -v '^ *+' conftest.er1 >conftest.err | |
3113 | rm -f conftest.er1 | |
3114 | cat conftest.err >&5 | |
3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3116 | (exit $ac_status); } && | |
3117 | { ac_try='test -z "$ac_c_werror_flag" | |
3118 | || test ! -s conftest.err' | |
3119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3120 | (eval $ac_try) 2>&5 | |
3121 | ac_status=$? | |
3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3123 | (exit $ac_status); }; } && | |
3124 | { ac_try='test -s conftest.$ac_objext' | |
3125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3126 | (eval $ac_try) 2>&5 | |
3127 | ac_status=$? | |
3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3129 | (exit $ac_status); }; }; then | |
3130 | for ac_declaration in \ | |
3131 | '' \ | |
3132 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3133 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3134 | 'extern "C" void exit (int) throw ();' \ | |
3135 | 'extern "C" void exit (int);' \ | |
3136 | 'void exit (int);' | |
3137 | do | |
3138 | cat >conftest.$ac_ext <<_ACEOF | |
3139 | /* confdefs.h. */ | |
3140 | _ACEOF | |
3141 | cat confdefs.h >>conftest.$ac_ext | |
3142 | cat >>conftest.$ac_ext <<_ACEOF | |
3143 | /* end confdefs.h. */ | |
3144 | $ac_declaration | |
3145 | #include <stdlib.h> | |
3146 | int | |
3147 | main () | |
3148 | { | |
3149 | exit (42); | |
3150 | ; | |
3151 | return 0; | |
3152 | } | |
3153 | _ACEOF | |
3154 | rm -f conftest.$ac_objext | |
3155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3156 | (eval $ac_compile) 2>conftest.er1 | |
3157 | ac_status=$? | |
3158 | grep -v '^ *+' conftest.er1 >conftest.err | |
3159 | rm -f conftest.er1 | |
3160 | cat conftest.err >&5 | |
3161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3162 | (exit $ac_status); } && | |
3163 | { ac_try='test -z "$ac_c_werror_flag" | |
3164 | || test ! -s conftest.err' | |
3165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3166 | (eval $ac_try) 2>&5 | |
3167 | ac_status=$? | |
3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3169 | (exit $ac_status); }; } && | |
3170 | { ac_try='test -s conftest.$ac_objext' | |
3171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3172 | (eval $ac_try) 2>&5 | |
3173 | ac_status=$? | |
3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3175 | (exit $ac_status); }; }; then | |
3176 | : | |
3177 | else | |
3178 | echo "$as_me: failed program was:" >&5 | |
3179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3180 | ||
3181 | continue | |
3182 | fi | |
3183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3184 | cat >conftest.$ac_ext <<_ACEOF | |
3185 | /* confdefs.h. */ | |
3186 | _ACEOF | |
3187 | cat confdefs.h >>conftest.$ac_ext | |
3188 | cat >>conftest.$ac_ext <<_ACEOF | |
3189 | /* end confdefs.h. */ | |
3190 | $ac_declaration | |
3191 | int | |
3192 | main () | |
3193 | { | |
3194 | exit (42); | |
3195 | ; | |
3196 | return 0; | |
3197 | } | |
3198 | _ACEOF | |
3199 | rm -f conftest.$ac_objext | |
3200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3201 | (eval $ac_compile) 2>conftest.er1 | |
3202 | ac_status=$? | |
3203 | grep -v '^ *+' conftest.er1 >conftest.err | |
3204 | rm -f conftest.er1 | |
3205 | cat conftest.err >&5 | |
3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3207 | (exit $ac_status); } && | |
3208 | { ac_try='test -z "$ac_c_werror_flag" | |
3209 | || test ! -s conftest.err' | |
3210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3211 | (eval $ac_try) 2>&5 | |
3212 | ac_status=$? | |
3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3214 | (exit $ac_status); }; } && | |
3215 | { ac_try='test -s conftest.$ac_objext' | |
3216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3217 | (eval $ac_try) 2>&5 | |
3218 | ac_status=$? | |
3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3220 | (exit $ac_status); }; }; then | |
3221 | break | |
3222 | else | |
3223 | echo "$as_me: failed program was:" >&5 | |
3224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3225 | ||
3226 | fi | |
3227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3228 | done | |
3229 | rm -f conftest* | |
3230 | if test -n "$ac_declaration"; then | |
3231 | echo '#ifdef __cplusplus' >>confdefs.h | |
3232 | echo $ac_declaration >>confdefs.h | |
3233 | echo '#endif' >>confdefs.h | |
3234 | fi | |
3235 | ||
3236 | else | |
3237 | echo "$as_me: failed program was:" >&5 | |
3238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3239 | ||
3240 | fi | |
3241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3242 | ac_ext=c | |
3243 | ac_cpp='$CPP $CPPFLAGS' | |
3244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3247 | DEPDIR="${am__leading_dot}deps" | |
3248 | ||
3249 | ac_config_commands="$ac_config_commands depfiles" | |
3250 | ||
3251 | ||
3252 | am_make=${MAKE-make} | |
3253 | cat > confinc << 'END' | |
3254 | am__doit: | |
3255 | @echo done | |
3256 | .PHONY: am__doit | |
3257 | END | |
3258 | # If we don't find an include directive, just comment out the code. | |
3259 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3260 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
3261 | am__include="#" | |
3262 | am__quote= | |
3263 | _am_result=none | |
3264 | # First try GNU make style include. | |
3265 | echo "include confinc" > confmf | |
3266 | # We grep out `Entering directory' and `Leaving directory' | |
3267 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3268 | # In particular we don't look at `^make:' because GNU make might | |
3269 | # be invoked under some other name (usually "gmake"), in which | |
3270 | # case it prints its new name instead of `make'. | |
3271 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3272 | am__include=include | |
3273 | am__quote= | |
3274 | _am_result=GNU | |
3275 | fi | |
3276 | # Now try BSD make style include. | |
3277 | if test "$am__include" = "#"; then | |
3278 | echo '.include "confinc"' > confmf | |
3279 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3280 | am__include=.include | |
3281 | am__quote="\"" | |
3282 | _am_result=BSD | |
3283 | fi | |
3284 | fi | |
3285 | ||
3286 | ||
3287 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3288 | echo "${ECHO_T}$_am_result" >&6 | |
3289 | rm -f confinc confmf | |
3290 | ||
3291 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3292 | if test "${enable_dependency_tracking+set}" = set; then | |
3293 | enableval="$enable_dependency_tracking" | |
3294 | ||
3295 | fi; | |
3296 | if test "x$enable_dependency_tracking" != xno; then | |
3297 | am_depcomp="$ac_aux_dir/depcomp" | |
3298 | AMDEPBACKSLASH='\' | |
3299 | fi | |
3300 | ||
3301 | ||
3302 | if test "x$enable_dependency_tracking" != xno; then | |
3303 | AMDEP_TRUE= | |
3304 | AMDEP_FALSE='#' | |
3305 | else | |
3306 | AMDEP_TRUE='#' | |
3307 | AMDEP_FALSE= | |
3308 | fi | |
3309 | ||
3310 | ||
3311 | ||
3312 | ||
3313 | depcc="$CC" am_compiler_list= | |
3314 | ||
3315 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3316 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3317 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3319 | else | |
3320 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3321 | # We make a subdir and do the tests there. Otherwise we can end up | |
3322 | # making bogus files that we don't know about and never remove. For | |
3323 | # instance it was reported that on HP-UX the gcc test will end up | |
3324 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3325 | # in D'. | |
3326 | mkdir conftest.dir | |
3327 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3328 | # using a relative directory. | |
3329 | cp "$am_depcomp" conftest.dir | |
3330 | cd conftest.dir | |
3331 | # We will build objects and dependencies in a subdirectory because | |
3332 | # it helps to detect inapplicable dependency modes. For instance | |
3333 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3334 | # side effect of compilation, but ICC will put the dependencies in | |
3335 | # the current directory while Tru64 will put them in the object | |
3336 | # directory. | |
3337 | mkdir sub | |
3338 | ||
3339 | am_cv_CC_dependencies_compiler_type=none | |
3340 | if test "$am_compiler_list" = ""; then | |
3341 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3342 | fi | |
3343 | for depmode in $am_compiler_list; do | |
3344 | # Setup a source with many dependencies, because some compilers | |
3345 | # like to wrap large dependency lists on column 80 (with \), and | |
3346 | # we should not choose a depcomp mode which is confused by this. | |
3347 | # | |
3348 | # We need to recreate these files for each test, as the compiler may | |
3349 | # overwrite some of them when testing with obscure command lines. | |
3350 | # This happens at least with the AIX C compiler. | |
3351 | : > sub/conftest.c | |
3352 | for i in 1 2 3 4 5 6; do | |
3353 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3354 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3355 | # Solaris 8's {/usr,}/bin/sh. | |
3356 | touch sub/conftst$i.h | |
3357 | done | |
3358 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3359 | ||
3360 | case $depmode in | |
3361 | nosideeffect) | |
3362 | # after this tag, mechanisms are not by side-effect, so they'll | |
3363 | # only be used when explicitly requested | |
3364 | if test "x$enable_dependency_tracking" = xyes; then | |
3365 | continue | |
3366 | else | |
3367 | break | |
3368 | fi | |
3369 | ;; | |
3370 | none) break ;; | |
3371 | esac | |
3372 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3373 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3374 | # handle `-M -o', and we need to detect this. | |
3375 | if depmode=$depmode \ | |
3376 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3377 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3378 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3379 | >/dev/null 2>conftest.err && | |
3380 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3381 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3382 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3383 | # icc doesn't choke on unknown options, it will just issue warnings | |
3384 | # or remarks (even with -Werror). So we grep stderr for any message | |
3385 | # that says an option was ignored or not supported. | |
3386 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3387 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3388 | # The diagnosis changed in icc 8.0: | |
3389 | # icc: Command line remark: option '-MP' not supported | |
3390 | if (grep 'ignoring option' conftest.err || | |
3391 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3392 | am_cv_CC_dependencies_compiler_type=$depmode | |
3393 | break | |
3394 | fi | |
3395 | fi | |
3396 | done | |
3397 | ||
3398 | cd .. | |
3399 | rm -rf conftest.dir | |
3400 | else | |
3401 | am_cv_CC_dependencies_compiler_type=none | |
3402 | fi | |
3403 | ||
3404 | fi | |
3405 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3406 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3407 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3408 | ||
3409 | ||
3410 | ||
3411 | if | |
3412 | test "x$enable_dependency_tracking" != xno \ | |
3413 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3414 | am__fastdepCC_TRUE= | |
3415 | am__fastdepCC_FALSE='#' | |
3416 | else | |
3417 | am__fastdepCC_TRUE='#' | |
3418 | am__fastdepCC_FALSE= | |
3419 | fi | |
3420 | ||
3421 | ||
3422 | # Check whether --enable-shared or --disable-shared was given. | |
3423 | if test "${enable_shared+set}" = set; then | |
3424 | enableval="$enable_shared" | |
3425 | p=${PACKAGE-default} | |
3426 | case $enableval in | |
3427 | yes) enable_shared=yes ;; | |
3428 | no) enable_shared=no ;; | |
3429 | *) | |
3430 | enable_shared=no | |
3431 | # Look at the argument we got. We use all the common list separators. | |
3432 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3433 | for pkg in $enableval; do | |
3434 | IFS="$lt_save_ifs" | |
3435 | if test "X$pkg" = "X$p"; then | |
3436 | enable_shared=yes | |
3437 | fi | |
3438 | done | |
3439 | IFS="$lt_save_ifs" | |
3440 | ;; | |
3441 | esac | |
3442 | else | |
3443 | enable_shared=yes | |
3444 | fi; | |
3445 | ||
3446 | # Check whether --enable-static or --disable-static was given. | |
3447 | if test "${enable_static+set}" = set; then | |
3448 | enableval="$enable_static" | |
3449 | p=${PACKAGE-default} | |
3450 | case $enableval in | |
3451 | yes) enable_static=yes ;; | |
3452 | no) enable_static=no ;; | |
3453 | *) | |
3454 | enable_static=no | |
3455 | # Look at the argument we got. We use all the common list separators. | |
3456 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3457 | for pkg in $enableval; do | |
3458 | IFS="$lt_save_ifs" | |
3459 | if test "X$pkg" = "X$p"; then | |
3460 | enable_static=yes | |
3461 | fi | |
3462 | done | |
3463 | IFS="$lt_save_ifs" | |
3464 | ;; | |
3465 | esac | |
3466 | else | |
3467 | enable_static=yes | |
3468 | fi; | |
3469 | ||
3470 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3471 | if test "${enable_fast_install+set}" = set; then | |
3472 | enableval="$enable_fast_install" | |
3473 | p=${PACKAGE-default} | |
3474 | case $enableval in | |
3475 | yes) enable_fast_install=yes ;; | |
3476 | no) enable_fast_install=no ;; | |
3477 | *) | |
3478 | enable_fast_install=no | |
3479 | # Look at the argument we got. We use all the common list separators. | |
3480 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3481 | for pkg in $enableval; do | |
3482 | IFS="$lt_save_ifs" | |
3483 | if test "X$pkg" = "X$p"; then | |
3484 | enable_fast_install=yes | |
3485 | fi | |
3486 | done | |
3487 | IFS="$lt_save_ifs" | |
3488 | ;; | |
3489 | esac | |
3490 | else | |
3491 | enable_fast_install=yes | |
3492 | fi; | |
3493 | ||
3494 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3495 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3496 | if test "${lt_cv_path_SED+set}" = set; then | |
3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3498 | else | |
3499 | # Loop through the user's path and test for sed and gsed. | |
3500 | # Then use that list of sed's as ones to test for truncation. | |
3501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3502 | for as_dir in $PATH | |
3503 | do | |
3504 | IFS=$as_save_IFS | |
3505 | test -z "$as_dir" && as_dir=. | |
3506 | for lt_ac_prog in sed gsed; do | |
3507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3508 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3509 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3510 | fi | |
3511 | done | |
3512 | done | |
3513 | done | |
3514 | IFS=$as_save_IFS | |
3515 | lt_ac_max=0 | |
3516 | lt_ac_count=0 | |
3517 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3518 | # along with /bin/sed that truncates output. | |
3519 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3520 | test ! -f $lt_ac_sed && continue | |
3521 | cat /dev/null > conftest.in | |
3522 | lt_ac_count=0 | |
3523 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3524 | # Check for GNU sed and select it if it is found. | |
3525 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3526 | lt_cv_path_SED=$lt_ac_sed | |
3527 | break | |
3528 | fi | |
3529 | while true; do | |
3530 | cat conftest.in conftest.in >conftest.tmp | |
3531 | mv conftest.tmp conftest.in | |
3532 | cp conftest.in conftest.nl | |
3533 | echo >>conftest.nl | |
3534 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3535 | cmp -s conftest.out conftest.nl || break | |
3536 | # 10000 chars as input seems more than enough | |
3537 | test $lt_ac_count -gt 10 && break | |
3538 | lt_ac_count=`expr $lt_ac_count + 1` | |
3539 | if test $lt_ac_count -gt $lt_ac_max; then | |
3540 | lt_ac_max=$lt_ac_count | |
3541 | lt_cv_path_SED=$lt_ac_sed | |
3542 | fi | |
3543 | done | |
3544 | done | |
3545 | ||
3546 | fi | |
3547 | ||
3548 | SED=$lt_cv_path_SED | |
3549 | ||
3550 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3551 | echo "${ECHO_T}$SED" >&6 | |
3552 | ||
3553 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3554 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3555 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3557 | else | |
3558 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3559 | then ac_cv_prog_egrep='grep -E' | |
3560 | else ac_cv_prog_egrep='egrep' | |
3561 | fi | |
3562 | fi | |
3563 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3564 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3565 | EGREP=$ac_cv_prog_egrep | |
3566 | ||
3567 | ||
3568 | ||
3569 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3570 | if test "${with_gnu_ld+set}" = set; then | |
3571 | withval="$with_gnu_ld" | |
3572 | test "$withval" = no || with_gnu_ld=yes | |
3573 | else | |
3574 | with_gnu_ld=no | |
3575 | fi; | |
3576 | ac_prog=ld | |
3577 | if test "$GCC" = yes; then | |
3578 | # Check if gcc -print-prog-name=ld gives a path. | |
3579 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3580 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3581 | case $host in | |
3582 | *-*-mingw*) | |
3583 | # gcc leaves a trailing carriage return which upsets mingw | |
3584 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3585 | *) | |
3586 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3587 | esac | |
3588 | case $ac_prog in | |
3589 | # Accept absolute paths. | |
3590 | [\\/]* | ?:[\\/]*) | |
3591 | re_direlt='/[^/][^/]*/\.\./' | |
3592 | # Canonicalize the pathname of ld | |
3593 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3594 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3595 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3596 | done | |
3597 | test -z "$LD" && LD="$ac_prog" | |
3598 | ;; | |
3599 | "") | |
3600 | # If it fails, then pretend we aren't using GCC. | |
3601 | ac_prog=ld | |
3602 | ;; | |
3603 | *) | |
3604 | # If it is relative, then search for the first ld in PATH. | |
3605 | with_gnu_ld=unknown | |
3606 | ;; | |
3607 | esac | |
3608 | elif test "$with_gnu_ld" = yes; then | |
3609 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3610 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3611 | else | |
3612 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3613 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3614 | fi | |
3615 | if test "${lt_cv_path_LD+set}" = set; then | |
3616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3617 | else | |
3618 | if test -z "$LD"; then | |
3619 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3620 | for ac_dir in $PATH; do | |
3621 | IFS="$lt_save_ifs" | |
3622 | test -z "$ac_dir" && ac_dir=. | |
3623 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3624 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3625 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3626 | # but apparently some variants of GNU ld only accept -v. | |
3627 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3628 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3629 | *GNU* | *'with BFD'*) | |
3630 | test "$with_gnu_ld" != no && break | |
3631 | ;; | |
3632 | *) | |
3633 | test "$with_gnu_ld" != yes && break | |
3634 | ;; | |
3635 | esac | |
3636 | fi | |
3637 | done | |
3638 | IFS="$lt_save_ifs" | |
3639 | else | |
3640 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3641 | fi | |
3642 | fi | |
3643 | ||
3644 | LD="$lt_cv_path_LD" | |
3645 | if test -n "$LD"; then | |
3646 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3647 | echo "${ECHO_T}$LD" >&6 | |
3648 | else | |
3649 | echo "$as_me:$LINENO: result: no" >&5 | |
3650 | echo "${ECHO_T}no" >&6 | |
3651 | fi | |
3652 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3653 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3654 | { (exit 1); exit 1; }; } | |
3655 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3656 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3657 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3659 | else | |
3660 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3661 | case `$LD -v 2>&1 </dev/null` in | |
3662 | *GNU* | *'with BFD'*) | |
3663 | lt_cv_prog_gnu_ld=yes | |
3664 | ;; | |
3665 | *) | |
3666 | lt_cv_prog_gnu_ld=no | |
3667 | ;; | |
3668 | esac | |
3669 | fi | |
3670 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3671 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3672 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3673 | ||
3674 | ||
3675 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3676 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3677 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3679 | else | |
3680 | lt_cv_ld_reload_flag='-r' | |
3681 | fi | |
3682 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3683 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3684 | reload_flag=$lt_cv_ld_reload_flag | |
3685 | case $reload_flag in | |
3686 | "" | " "*) ;; | |
3687 | *) reload_flag=" $reload_flag" ;; | |
3688 | esac | |
3689 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3690 | case $host_os in | |
3691 | darwin*) | |
3692 | if test "$GCC" = yes; then | |
3693 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
3694 | else | |
3695 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3696 | fi | |
3697 | ;; | |
3698 | esac | |
3699 | ||
3700 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3701 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3702 | if test "${lt_cv_path_NM+set}" = set; then | |
3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3704 | else | |
3705 | if test -n "$NM"; then | |
3706 | # Let the user override the test. | |
3707 | lt_cv_path_NM="$NM" | |
3708 | else | |
3709 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3710 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3711 | lt_nm_to_check="$lt_nm_to_check nm" | |
3712 | fi | |
3713 | for lt_tmp_nm in $lt_nm_to_check; do | |
3714 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3715 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3716 | IFS="$lt_save_ifs" | |
3717 | test -z "$ac_dir" && ac_dir=. | |
3718 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3719 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3720 | # Check to see if the nm accepts a BSD-compat flag. | |
3721 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3722 | # nm: unknown option "B" ignored | |
3723 | # Tru64's nm complains that /dev/null is an invalid object file | |
3724 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3725 | */dev/null* | *'Invalid file or object type'*) | |
3726 | lt_cv_path_NM="$tmp_nm -B" | |
3727 | break | |
3728 | ;; | |
3729 | *) | |
3730 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3731 | */dev/null*) | |
3732 | lt_cv_path_NM="$tmp_nm -p" | |
3733 | break | |
3734 | ;; | |
3735 | *) | |
3736 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3737 | continue # so that we can try to find one that supports BSD flags | |
3738 | ;; | |
3739 | esac | |
3740 | ;; | |
3741 | esac | |
3742 | fi | |
3743 | done | |
3744 | IFS="$lt_save_ifs" | |
3745 | done | |
3746 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3747 | fi | |
3748 | fi | |
3749 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3750 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3751 | NM="$lt_cv_path_NM" | |
3752 | ||
3753 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3754 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3755 | LN_S=$as_ln_s | |
3756 | if test "$LN_S" = "ln -s"; then | |
3757 | echo "$as_me:$LINENO: result: yes" >&5 | |
3758 | echo "${ECHO_T}yes" >&6 | |
3759 | else | |
3760 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3761 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3762 | fi | |
3763 | ||
3764 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
3765 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
3766 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3768 | else | |
3769 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3770 | lt_cv_file_magic_test_file= | |
3771 | lt_cv_deplibs_check_method='unknown' | |
3772 | # Need to set the preceding variable on all platforms that support | |
3773 | # interlibrary dependencies. | |
3774 | # 'none' -- dependencies not supported. | |
3775 | # `unknown' -- same as none, but documents that we really don't know. | |
3776 | # 'pass_all' -- all dependencies passed with no checks. | |
3777 | # 'test_compile' -- check by making test program. | |
3778 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3779 | # which responds to the $file_magic_cmd with a given extended regex. | |
3780 | # If you have `file' or equivalent on your system and you're not sure | |
3781 | # whether `pass_all' will *always* work, you probably want this one. | |
3782 | ||
3783 | case $host_os in | |
3784 | aix4* | aix5*) | |
3785 | lt_cv_deplibs_check_method=pass_all | |
3786 | ;; | |
3787 | ||
3788 | beos*) | |
3789 | lt_cv_deplibs_check_method=pass_all | |
3790 | ;; | |
3791 | ||
3792 | bsdi[45]*) | |
3793 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3794 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3795 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3796 | ;; | |
3797 | ||
3798 | cygwin*) | |
3799 | # func_win32_libid is a shell function defined in ltmain.sh | |
3800 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3801 | lt_cv_file_magic_cmd='func_win32_libid' | |
3802 | ;; | |
3803 | ||
3804 | mingw* | pw32*) | |
3805 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
3806 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
3807 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3808 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3809 | ;; | |
3810 | ||
3811 | darwin* | rhapsody*) | |
3812 | lt_cv_deplibs_check_method=pass_all | |
3813 | ;; | |
3814 | ||
3815 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
3816 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3817 | case $host_cpu in | |
3818 | i*86 ) | |
3819 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3820 | # Let's accept both of them until this is cleared up. | |
3821 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
3822 | lt_cv_file_magic_cmd=/usr/bin/file | |
3823 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3824 | ;; | |
3825 | esac | |
3826 | else | |
3827 | lt_cv_deplibs_check_method=pass_all | |
3828 | fi | |
3829 | ;; | |
3830 | ||
3831 | gnu*) | |
3832 | lt_cv_deplibs_check_method=pass_all | |
3833 | ;; | |
3834 | ||
3835 | hpux10.20* | hpux11*) | |
3836 | lt_cv_file_magic_cmd=/usr/bin/file | |
3837 | case $host_cpu in | |
3838 | ia64*) | |
3839 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3840 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3841 | ;; | |
3842 | hppa*64*) | |
3843 | 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]' | |
3844 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3845 | ;; | |
3846 | *) | |
3847 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3848 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3849 | ;; | |
3850 | esac | |
3851 | ;; | |
3852 | ||
3853 | interix3*) | |
3854 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
3855 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
3856 | ;; | |
3857 | ||
3858 | irix5* | irix6* | nonstopux*) | |
3859 | case $LD in | |
3860 | *-32|*"-32 ") libmagic=32-bit;; | |
3861 | *-n32|*"-n32 ") libmagic=N32;; | |
3862 | *-64|*"-64 ") libmagic=64-bit;; | |
3863 | *) libmagic=never-match;; | |
3864 | esac | |
3865 | lt_cv_deplibs_check_method=pass_all | |
3866 | ;; | |
3867 | ||
3868 | # This must be Linux ELF. | |
3869 | linux*) | |
3870 | lt_cv_deplibs_check_method=pass_all | |
3871 | ;; | |
3872 | ||
3873 | netbsd*) | |
3874 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3875 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3876 | else | |
3877 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3878 | fi | |
3879 | ;; | |
3880 | ||
3881 | newos6*) | |
3882 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3883 | lt_cv_file_magic_cmd=/usr/bin/file | |
3884 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3885 | ;; | |
3886 | ||
3887 | nto-qnx*) | |
3888 | lt_cv_deplibs_check_method=unknown | |
3889 | ;; | |
3890 | ||
3891 | openbsd*) | |
3892 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3893 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
3894 | else | |
3895 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3896 | fi | |
3897 | ;; | |
3898 | ||
3899 | osf3* | osf4* | osf5*) | |
3900 | lt_cv_deplibs_check_method=pass_all | |
3901 | ;; | |
3902 | ||
3903 | solaris*) | |
3904 | lt_cv_deplibs_check_method=pass_all | |
3905 | ;; | |
3906 | ||
3907 | sysv4 | sysv4.3*) | |
3908 | case $host_vendor in | |
3909 | motorola) | |
3910 | 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]' | |
3911 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3912 | ;; | |
3913 | ncr) | |
3914 | lt_cv_deplibs_check_method=pass_all | |
3915 | ;; | |
3916 | sequent) | |
3917 | lt_cv_file_magic_cmd='/bin/file' | |
3918 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3919 | ;; | |
3920 | sni) | |
3921 | lt_cv_file_magic_cmd='/bin/file' | |
3922 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3923 | lt_cv_file_magic_test_file=/lib/libc.so | |
3924 | ;; | |
3925 | siemens) | |
3926 | lt_cv_deplibs_check_method=pass_all | |
3927 | ;; | |
3928 | pc) | |
3929 | lt_cv_deplibs_check_method=pass_all | |
3930 | ;; | |
3931 | esac | |
3932 | ;; | |
3933 | ||
3934 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3935 | lt_cv_deplibs_check_method=pass_all | |
3936 | ;; | |
3937 | esac | |
3938 | ||
3939 | fi | |
3940 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3941 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3942 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3943 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3944 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3945 | ||
3946 | ||
3947 | ||
3948 | ||
3949 | # If no C compiler was specified, use CC. | |
3950 | LTCC=${LTCC-"$CC"} | |
3951 | ||
3952 | # If no C compiler flags were specified, use CFLAGS. | |
3953 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
3954 | ||
3955 | # Allow CC to be a program name with arguments. | |
3956 | compiler=$CC | |
3957 | ||
3958 | ||
3959 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3960 | if test "${enable_libtool_lock+set}" = set; then | |
3961 | enableval="$enable_libtool_lock" | |
3962 | ||
3963 | fi; | |
3964 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3965 | ||
3966 | # Some flags need to be propagated to the compiler or linker for good | |
3967 | # libtool support. | |
3968 | case $host in | |
3969 | ia64-*-hpux*) | |
3970 | # Find out which ABI we are using. | |
3971 | echo 'int i;' > conftest.$ac_ext | |
3972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3973 | (eval $ac_compile) 2>&5 | |
3974 | ac_status=$? | |
3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3976 | (exit $ac_status); }; then | |
3977 | case `/usr/bin/file conftest.$ac_objext` in | |
3978 | *ELF-32*) | |
3979 | HPUX_IA64_MODE="32" | |
3980 | ;; | |
3981 | *ELF-64*) | |
3982 | HPUX_IA64_MODE="64" | |
3983 | ;; | |
3984 | esac | |
3985 | fi | |
3986 | rm -rf conftest* | |
3987 | ;; | |
3988 | *-*-irix6*) | |
3989 | # Find out which ABI we are using. | |
86933a6e | 3990 | echo '#line 3990 "configure"' > conftest.$ac_ext |
bf9f3bac | 3991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3992 | (eval $ac_compile) 2>&5 | |
3993 | ac_status=$? | |
3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3995 | (exit $ac_status); }; then | |
3996 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
3997 | case `/usr/bin/file conftest.$ac_objext` in | |
3998 | *32-bit*) | |
3999 | LD="${LD-ld} -melf32bsmip" | |
4000 | ;; | |
4001 | *N32*) | |
4002 | LD="${LD-ld} -melf32bmipn32" | |
4003 | ;; | |
4004 | *64-bit*) | |
4005 | LD="${LD-ld} -melf64bmip" | |
4006 | ;; | |
4007 | esac | |
4008 | else | |
4009 | case `/usr/bin/file conftest.$ac_objext` in | |
4010 | *32-bit*) | |
4011 | LD="${LD-ld} -32" | |
4012 | ;; | |
4013 | *N32*) | |
4014 | LD="${LD-ld} -n32" | |
4015 | ;; | |
4016 | *64-bit*) | |
4017 | LD="${LD-ld} -64" | |
4018 | ;; | |
4019 | esac | |
4020 | fi | |
4021 | fi | |
4022 | rm -rf conftest* | |
4023 | ;; | |
4024 | ||
4025 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4026 | # Find out which ABI we are using. | |
4027 | echo 'int i;' > conftest.$ac_ext | |
4028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4029 | (eval $ac_compile) 2>&5 | |
4030 | ac_status=$? | |
4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4032 | (exit $ac_status); }; then | |
4033 | case `/usr/bin/file conftest.o` in | |
4034 | *32-bit*) | |
4035 | case $host in | |
4036 | x86_64-*linux*) | |
4037 | LD="${LD-ld} -m elf_i386" | |
4038 | ;; | |
4039 | ppc64-*linux*|powerpc64-*linux*) | |
4040 | LD="${LD-ld} -m elf32ppclinux" | |
4041 | ;; | |
4042 | s390x-*linux*) | |
4043 | LD="${LD-ld} -m elf_s390" | |
4044 | ;; | |
4045 | sparc64-*linux*) | |
4046 | LD="${LD-ld} -m elf32_sparc" | |
4047 | ;; | |
4048 | esac | |
4049 | ;; | |
4050 | *64-bit*) | |
4051 | case $host in | |
4052 | x86_64-*linux*) | |
4053 | LD="${LD-ld} -m elf_x86_64" | |
4054 | ;; | |
4055 | ppc*-*linux*|powerpc*-*linux*) | |
4056 | LD="${LD-ld} -m elf64ppc" | |
4057 | ;; | |
4058 | s390*-*linux*) | |
4059 | LD="${LD-ld} -m elf64_s390" | |
4060 | ;; | |
4061 | sparc*-*linux*) | |
4062 | LD="${LD-ld} -m elf64_sparc" | |
4063 | ;; | |
4064 | esac | |
4065 | ;; | |
4066 | esac | |
4067 | fi | |
4068 | rm -rf conftest* | |
4069 | ;; | |
4070 | ||
4071 | *-*-sco3.2v5*) | |
4072 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4073 | SAVE_CFLAGS="$CFLAGS" | |
4074 | CFLAGS="$CFLAGS -belf" | |
4075 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4076 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4077 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4079 | else | |
4080 | ac_ext=c | |
4081 | ac_cpp='$CPP $CPPFLAGS' | |
4082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4085 | ||
4086 | cat >conftest.$ac_ext <<_ACEOF | |
4087 | /* confdefs.h. */ | |
4088 | _ACEOF | |
4089 | cat confdefs.h >>conftest.$ac_ext | |
4090 | cat >>conftest.$ac_ext <<_ACEOF | |
4091 | /* end confdefs.h. */ | |
4092 | ||
4093 | int | |
4094 | main () | |
4095 | { | |
4096 | ||
4097 | ; | |
4098 | return 0; | |
4099 | } | |
4100 | _ACEOF | |
4101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4103 | (eval $ac_link) 2>conftest.er1 | |
4104 | ac_status=$? | |
4105 | grep -v '^ *+' conftest.er1 >conftest.err | |
4106 | rm -f conftest.er1 | |
4107 | cat conftest.err >&5 | |
4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4109 | (exit $ac_status); } && | |
4110 | { ac_try='test -z "$ac_c_werror_flag" | |
4111 | || test ! -s conftest.err' | |
4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4113 | (eval $ac_try) 2>&5 | |
4114 | ac_status=$? | |
4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4116 | (exit $ac_status); }; } && | |
4117 | { ac_try='test -s conftest$ac_exeext' | |
4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4119 | (eval $ac_try) 2>&5 | |
4120 | ac_status=$? | |
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4122 | (exit $ac_status); }; }; then | |
4123 | lt_cv_cc_needs_belf=yes | |
4124 | else | |
4125 | echo "$as_me: failed program was:" >&5 | |
4126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4127 | ||
4128 | lt_cv_cc_needs_belf=no | |
4129 | fi | |
4130 | rm -f conftest.err conftest.$ac_objext \ | |
4131 | conftest$ac_exeext conftest.$ac_ext | |
4132 | ac_ext=c | |
4133 | ac_cpp='$CPP $CPPFLAGS' | |
4134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4137 | ||
4138 | fi | |
4139 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4140 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4141 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4142 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4143 | CFLAGS="$SAVE_CFLAGS" | |
4144 | fi | |
4145 | ;; | |
4146 | sparc*-*solaris*) | |
4147 | # Find out which ABI we are using. | |
4148 | echo 'int i;' > conftest.$ac_ext | |
4149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4150 | (eval $ac_compile) 2>&5 | |
4151 | ac_status=$? | |
4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4153 | (exit $ac_status); }; then | |
4154 | case `/usr/bin/file conftest.o` in | |
4155 | *64-bit*) | |
4156 | case $lt_cv_prog_gnu_ld in | |
4157 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4158 | *) LD="${LD-ld} -64" ;; | |
4159 | esac | |
4160 | ;; | |
4161 | esac | |
4162 | fi | |
4163 | rm -rf conftest* | |
4164 | ;; | |
4165 | ||
4166 | ||
4167 | esac | |
4168 | ||
4169 | need_locks="$enable_libtool_lock" | |
4170 | ||
4171 | ||
4172 | ac_ext=c | |
4173 | ac_cpp='$CPP $CPPFLAGS' | |
4174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4177 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4178 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4179 | # On Suns, sometimes $CPP names a directory. | |
4180 | if test -n "$CPP" && test -d "$CPP"; then | |
4181 | CPP= | |
4182 | fi | |
4183 | if test -z "$CPP"; then | |
4184 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4186 | else | |
4187 | # Double quotes because CPP needs to be expanded | |
4188 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4189 | do | |
4190 | ac_preproc_ok=false | |
4191 | for ac_c_preproc_warn_flag in '' yes | |
4192 | do | |
4193 | # Use a header file that comes with gcc, so configuring glibc | |
4194 | # with a fresh cross-compiler works. | |
4195 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4196 | # <limits.h> exists even on freestanding compilers. | |
4197 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4198 | # not just through cpp. "Syntax error" is here to catch this case. | |
4199 | cat >conftest.$ac_ext <<_ACEOF | |
4200 | /* confdefs.h. */ | |
4201 | _ACEOF | |
4202 | cat confdefs.h >>conftest.$ac_ext | |
4203 | cat >>conftest.$ac_ext <<_ACEOF | |
4204 | /* end confdefs.h. */ | |
4205 | #ifdef __STDC__ | |
4206 | # include <limits.h> | |
4207 | #else | |
4208 | # include <assert.h> | |
4209 | #endif | |
4210 | Syntax error | |
4211 | _ACEOF | |
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4214 | ac_status=$? | |
4215 | grep -v '^ *+' conftest.er1 >conftest.err | |
4216 | rm -f conftest.er1 | |
4217 | cat conftest.err >&5 | |
4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4219 | (exit $ac_status); } >/dev/null; then | |
4220 | if test -s conftest.err; then | |
4221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4223 | else | |
4224 | ac_cpp_err= | |
4225 | fi | |
4226 | else | |
4227 | ac_cpp_err=yes | |
4228 | fi | |
4229 | if test -z "$ac_cpp_err"; then | |
4230 | : | |
4231 | else | |
4232 | echo "$as_me: failed program was:" >&5 | |
4233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4234 | ||
4235 | # Broken: fails on valid input. | |
4236 | continue | |
4237 | fi | |
4238 | rm -f conftest.err conftest.$ac_ext | |
4239 | ||
4240 | # OK, works on sane cases. Now check whether non-existent headers | |
4241 | # can be detected and how. | |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
4243 | /* confdefs.h. */ | |
4244 | _ACEOF | |
4245 | cat confdefs.h >>conftest.$ac_ext | |
4246 | cat >>conftest.$ac_ext <<_ACEOF | |
4247 | /* end confdefs.h. */ | |
4248 | #include <ac_nonexistent.h> | |
4249 | _ACEOF | |
4250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4252 | ac_status=$? | |
4253 | grep -v '^ *+' conftest.er1 >conftest.err | |
4254 | rm -f conftest.er1 | |
4255 | cat conftest.err >&5 | |
4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4257 | (exit $ac_status); } >/dev/null; then | |
4258 | if test -s conftest.err; then | |
4259 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4260 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4261 | else | |
4262 | ac_cpp_err= | |
4263 | fi | |
4264 | else | |
4265 | ac_cpp_err=yes | |
4266 | fi | |
4267 | if test -z "$ac_cpp_err"; then | |
4268 | # Broken: success on invalid input. | |
4269 | continue | |
4270 | else | |
4271 | echo "$as_me: failed program was:" >&5 | |
4272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4273 | ||
4274 | # Passes both tests. | |
4275 | ac_preproc_ok=: | |
4276 | break | |
4277 | fi | |
4278 | rm -f conftest.err conftest.$ac_ext | |
4279 | ||
4280 | done | |
4281 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4282 | rm -f conftest.err conftest.$ac_ext | |
4283 | if $ac_preproc_ok; then | |
4284 | break | |
4285 | fi | |
4286 | ||
4287 | done | |
4288 | ac_cv_prog_CPP=$CPP | |
4289 | ||
4290 | fi | |
4291 | CPP=$ac_cv_prog_CPP | |
4292 | else | |
4293 | ac_cv_prog_CPP=$CPP | |
4294 | fi | |
4295 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4296 | echo "${ECHO_T}$CPP" >&6 | |
4297 | ac_preproc_ok=false | |
4298 | for ac_c_preproc_warn_flag in '' yes | |
4299 | do | |
4300 | # Use a header file that comes with gcc, so configuring glibc | |
4301 | # with a fresh cross-compiler works. | |
4302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4303 | # <limits.h> exists even on freestanding compilers. | |
4304 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4305 | # not just through cpp. "Syntax error" is here to catch this case. | |
4306 | cat >conftest.$ac_ext <<_ACEOF | |
4307 | /* confdefs.h. */ | |
4308 | _ACEOF | |
4309 | cat confdefs.h >>conftest.$ac_ext | |
4310 | cat >>conftest.$ac_ext <<_ACEOF | |
4311 | /* end confdefs.h. */ | |
4312 | #ifdef __STDC__ | |
4313 | # include <limits.h> | |
4314 | #else | |
4315 | # include <assert.h> | |
4316 | #endif | |
4317 | Syntax error | |
4318 | _ACEOF | |
4319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4320 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4321 | ac_status=$? | |
4322 | grep -v '^ *+' conftest.er1 >conftest.err | |
4323 | rm -f conftest.er1 | |
4324 | cat conftest.err >&5 | |
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4326 | (exit $ac_status); } >/dev/null; then | |
4327 | if test -s conftest.err; then | |
4328 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4329 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4330 | else | |
4331 | ac_cpp_err= | |
4332 | fi | |
4333 | else | |
4334 | ac_cpp_err=yes | |
4335 | fi | |
4336 | if test -z "$ac_cpp_err"; then | |
4337 | : | |
4338 | else | |
4339 | echo "$as_me: failed program was:" >&5 | |
4340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4341 | ||
4342 | # Broken: fails on valid input. | |
4343 | continue | |
4344 | fi | |
4345 | rm -f conftest.err conftest.$ac_ext | |
4346 | ||
4347 | # OK, works on sane cases. Now check whether non-existent headers | |
4348 | # can be detected and how. | |
4349 | cat >conftest.$ac_ext <<_ACEOF | |
4350 | /* confdefs.h. */ | |
4351 | _ACEOF | |
4352 | cat confdefs.h >>conftest.$ac_ext | |
4353 | cat >>conftest.$ac_ext <<_ACEOF | |
4354 | /* end confdefs.h. */ | |
4355 | #include <ac_nonexistent.h> | |
4356 | _ACEOF | |
4357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4359 | ac_status=$? | |
4360 | grep -v '^ *+' conftest.er1 >conftest.err | |
4361 | rm -f conftest.er1 | |
4362 | cat conftest.err >&5 | |
4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4364 | (exit $ac_status); } >/dev/null; then | |
4365 | if test -s conftest.err; then | |
4366 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4368 | else | |
4369 | ac_cpp_err= | |
4370 | fi | |
4371 | else | |
4372 | ac_cpp_err=yes | |
4373 | fi | |
4374 | if test -z "$ac_cpp_err"; then | |
4375 | # Broken: success on invalid input. | |
4376 | continue | |
4377 | else | |
4378 | echo "$as_me: failed program was:" >&5 | |
4379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4380 | ||
4381 | # Passes both tests. | |
4382 | ac_preproc_ok=: | |
4383 | break | |
4384 | fi | |
4385 | rm -f conftest.err conftest.$ac_ext | |
4386 | ||
4387 | done | |
4388 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4389 | rm -f conftest.err conftest.$ac_ext | |
4390 | if $ac_preproc_ok; then | |
4391 | : | |
4392 | else | |
4393 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4394 | See \`config.log' for more details." >&5 | |
4395 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4396 | See \`config.log' for more details." >&2;} | |
4397 | { (exit 1); exit 1; }; } | |
4398 | fi | |
4399 | ||
4400 | ac_ext=c | |
4401 | ac_cpp='$CPP $CPPFLAGS' | |
4402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4405 | ||
4406 | ||
4407 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4408 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4409 | if test "${ac_cv_header_stdc+set}" = set; then | |
4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4411 | else | |
4412 | cat >conftest.$ac_ext <<_ACEOF | |
4413 | /* confdefs.h. */ | |
4414 | _ACEOF | |
4415 | cat confdefs.h >>conftest.$ac_ext | |
4416 | cat >>conftest.$ac_ext <<_ACEOF | |
4417 | /* end confdefs.h. */ | |
4418 | #include <stdlib.h> | |
4419 | #include <stdarg.h> | |
4420 | #include <string.h> | |
4421 | #include <float.h> | |
4422 | ||
4423 | int | |
4424 | main () | |
4425 | { | |
4426 | ||
4427 | ; | |
4428 | return 0; | |
4429 | } | |
4430 | _ACEOF | |
4431 | rm -f conftest.$ac_objext | |
4432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4433 | (eval $ac_compile) 2>conftest.er1 | |
4434 | ac_status=$? | |
4435 | grep -v '^ *+' conftest.er1 >conftest.err | |
4436 | rm -f conftest.er1 | |
4437 | cat conftest.err >&5 | |
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4439 | (exit $ac_status); } && | |
4440 | { ac_try='test -z "$ac_c_werror_flag" | |
4441 | || test ! -s conftest.err' | |
4442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4443 | (eval $ac_try) 2>&5 | |
4444 | ac_status=$? | |
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4446 | (exit $ac_status); }; } && | |
4447 | { ac_try='test -s conftest.$ac_objext' | |
4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4449 | (eval $ac_try) 2>&5 | |
4450 | ac_status=$? | |
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4452 | (exit $ac_status); }; }; then | |
4453 | ac_cv_header_stdc=yes | |
4454 | else | |
4455 | echo "$as_me: failed program was:" >&5 | |
4456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4457 | ||
4458 | ac_cv_header_stdc=no | |
4459 | fi | |
4460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4461 | ||
4462 | if test $ac_cv_header_stdc = yes; then | |
4463 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4464 | cat >conftest.$ac_ext <<_ACEOF | |
4465 | /* confdefs.h. */ | |
4466 | _ACEOF | |
4467 | cat confdefs.h >>conftest.$ac_ext | |
4468 | cat >>conftest.$ac_ext <<_ACEOF | |
4469 | /* end confdefs.h. */ | |
4470 | #include <string.h> | |
4471 | ||
4472 | _ACEOF | |
4473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4474 | $EGREP "memchr" >/dev/null 2>&1; then | |
4475 | : | |
4476 | else | |
4477 | ac_cv_header_stdc=no | |
4478 | fi | |
4479 | rm -f conftest* | |
4480 | ||
4481 | fi | |
4482 | ||
4483 | if test $ac_cv_header_stdc = yes; then | |
4484 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4485 | cat >conftest.$ac_ext <<_ACEOF | |
4486 | /* confdefs.h. */ | |
4487 | _ACEOF | |
4488 | cat confdefs.h >>conftest.$ac_ext | |
4489 | cat >>conftest.$ac_ext <<_ACEOF | |
4490 | /* end confdefs.h. */ | |
4491 | #include <stdlib.h> | |
4492 | ||
4493 | _ACEOF | |
4494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4495 | $EGREP "free" >/dev/null 2>&1; then | |
4496 | : | |
4497 | else | |
4498 | ac_cv_header_stdc=no | |
4499 | fi | |
4500 | rm -f conftest* | |
4501 | ||
4502 | fi | |
4503 | ||
4504 | if test $ac_cv_header_stdc = yes; then | |
4505 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4506 | if test "$cross_compiling" = yes; then | |
4507 | : | |
4508 | else | |
4509 | cat >conftest.$ac_ext <<_ACEOF | |
4510 | /* confdefs.h. */ | |
4511 | _ACEOF | |
4512 | cat confdefs.h >>conftest.$ac_ext | |
4513 | cat >>conftest.$ac_ext <<_ACEOF | |
4514 | /* end confdefs.h. */ | |
4515 | #include <ctype.h> | |
4516 | #if ((' ' & 0x0FF) == 0x020) | |
4517 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4518 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4519 | #else | |
4520 | # define ISLOWER(c) \ | |
4521 | (('a' <= (c) && (c) <= 'i') \ | |
4522 | || ('j' <= (c) && (c) <= 'r') \ | |
4523 | || ('s' <= (c) && (c) <= 'z')) | |
4524 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4525 | #endif | |
4526 | ||
4527 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4528 | int | |
4529 | main () | |
4530 | { | |
4531 | int i; | |
4532 | for (i = 0; i < 256; i++) | |
4533 | if (XOR (islower (i), ISLOWER (i)) | |
4534 | || toupper (i) != TOUPPER (i)) | |
4535 | exit(2); | |
4536 | exit (0); | |
4537 | } | |
4538 | _ACEOF | |
4539 | rm -f conftest$ac_exeext | |
4540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4541 | (eval $ac_link) 2>&5 | |
4542 | ac_status=$? | |
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4546 | (eval $ac_try) 2>&5 | |
4547 | ac_status=$? | |
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4549 | (exit $ac_status); }; }; then | |
4550 | : | |
4551 | else | |
4552 | echo "$as_me: program exited with status $ac_status" >&5 | |
4553 | echo "$as_me: failed program was:" >&5 | |
4554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4555 | ||
4556 | ( exit $ac_status ) | |
4557 | ac_cv_header_stdc=no | |
4558 | fi | |
4559 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4560 | fi | |
4561 | fi | |
4562 | fi | |
4563 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4564 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4565 | if test $ac_cv_header_stdc = yes; then | |
4566 | ||
4567 | cat >>confdefs.h <<\_ACEOF | |
4568 | #define STDC_HEADERS 1 | |
4569 | _ACEOF | |
4570 | ||
4571 | fi | |
4572 | ||
4573 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4574 | ||
4575 | ||
4576 | ||
4577 | ||
4578 | ||
4579 | ||
4580 | ||
4581 | ||
4582 | ||
4583 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4584 | inttypes.h stdint.h unistd.h | |
4585 | do | |
4586 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4587 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4588 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4591 | else | |
4592 | cat >conftest.$ac_ext <<_ACEOF | |
4593 | /* confdefs.h. */ | |
4594 | _ACEOF | |
4595 | cat confdefs.h >>conftest.$ac_ext | |
4596 | cat >>conftest.$ac_ext <<_ACEOF | |
4597 | /* end confdefs.h. */ | |
4598 | $ac_includes_default | |
4599 | ||
4600 | #include <$ac_header> | |
4601 | _ACEOF | |
4602 | rm -f conftest.$ac_objext | |
4603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4604 | (eval $ac_compile) 2>conftest.er1 | |
4605 | ac_status=$? | |
4606 | grep -v '^ *+' conftest.er1 >conftest.err | |
4607 | rm -f conftest.er1 | |
4608 | cat conftest.err >&5 | |
4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4610 | (exit $ac_status); } && | |
4611 | { ac_try='test -z "$ac_c_werror_flag" | |
4612 | || test ! -s conftest.err' | |
4613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4614 | (eval $ac_try) 2>&5 | |
4615 | ac_status=$? | |
4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4617 | (exit $ac_status); }; } && | |
4618 | { ac_try='test -s conftest.$ac_objext' | |
4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4620 | (eval $ac_try) 2>&5 | |
4621 | ac_status=$? | |
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4623 | (exit $ac_status); }; }; then | |
4624 | eval "$as_ac_Header=yes" | |
4625 | else | |
4626 | echo "$as_me: failed program was:" >&5 | |
4627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4628 | ||
4629 | eval "$as_ac_Header=no" | |
4630 | fi | |
4631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4632 | fi | |
4633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4636 | cat >>confdefs.h <<_ACEOF | |
4637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4638 | _ACEOF | |
4639 | ||
4640 | fi | |
4641 | ||
4642 | done | |
4643 | ||
4644 | ||
4645 | ||
4646 | for ac_header in dlfcn.h | |
4647 | do | |
4648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4654 | fi | |
4655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4657 | else | |
4658 | # Is the header compilable? | |
4659 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4660 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4661 | cat >conftest.$ac_ext <<_ACEOF | |
4662 | /* confdefs.h. */ | |
4663 | _ACEOF | |
4664 | cat confdefs.h >>conftest.$ac_ext | |
4665 | cat >>conftest.$ac_ext <<_ACEOF | |
4666 | /* end confdefs.h. */ | |
4667 | $ac_includes_default | |
4668 | #include <$ac_header> | |
4669 | _ACEOF | |
4670 | rm -f conftest.$ac_objext | |
4671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4672 | (eval $ac_compile) 2>conftest.er1 | |
4673 | ac_status=$? | |
4674 | grep -v '^ *+' conftest.er1 >conftest.err | |
4675 | rm -f conftest.er1 | |
4676 | cat conftest.err >&5 | |
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4678 | (exit $ac_status); } && | |
4679 | { ac_try='test -z "$ac_c_werror_flag" | |
4680 | || test ! -s conftest.err' | |
4681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4682 | (eval $ac_try) 2>&5 | |
4683 | ac_status=$? | |
4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4685 | (exit $ac_status); }; } && | |
4686 | { ac_try='test -s conftest.$ac_objext' | |
4687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4688 | (eval $ac_try) 2>&5 | |
4689 | ac_status=$? | |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4691 | (exit $ac_status); }; }; then | |
4692 | ac_header_compiler=yes | |
4693 | else | |
4694 | echo "$as_me: failed program was:" >&5 | |
4695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4696 | ||
4697 | ac_header_compiler=no | |
4698 | fi | |
4699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4700 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4701 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4702 | ||
4703 | # Is the header present? | |
4704 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4705 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4706 | cat >conftest.$ac_ext <<_ACEOF | |
4707 | /* confdefs.h. */ | |
4708 | _ACEOF | |
4709 | cat confdefs.h >>conftest.$ac_ext | |
4710 | cat >>conftest.$ac_ext <<_ACEOF | |
4711 | /* end confdefs.h. */ | |
4712 | #include <$ac_header> | |
4713 | _ACEOF | |
4714 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4715 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4716 | ac_status=$? | |
4717 | grep -v '^ *+' conftest.er1 >conftest.err | |
4718 | rm -f conftest.er1 | |
4719 | cat conftest.err >&5 | |
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4721 | (exit $ac_status); } >/dev/null; then | |
4722 | if test -s conftest.err; then | |
4723 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4724 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4725 | else | |
4726 | ac_cpp_err= | |
4727 | fi | |
4728 | else | |
4729 | ac_cpp_err=yes | |
4730 | fi | |
4731 | if test -z "$ac_cpp_err"; then | |
4732 | ac_header_preproc=yes | |
4733 | else | |
4734 | echo "$as_me: failed program was:" >&5 | |
4735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4736 | ||
4737 | ac_header_preproc=no | |
4738 | fi | |
4739 | rm -f conftest.err conftest.$ac_ext | |
4740 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4741 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4742 | ||
4743 | # So? What about this header? | |
4744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4745 | yes:no: ) | |
4746 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4747 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4749 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4750 | ac_header_preproc=yes | |
4751 | ;; | |
4752 | no:yes:* ) | |
4753 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4754 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4755 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4756 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4757 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4758 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4759 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4760 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4762 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4763 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4764 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4765 | ( | |
4766 | cat <<\_ASBOX | |
4767 | ## ------------------------------------------ ## | |
4768 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4769 | ## ------------------------------------------ ## | |
4770 | _ASBOX | |
4771 | ) | | |
4772 | sed "s/^/$as_me: WARNING: /" >&2 | |
4773 | ;; | |
4774 | esac | |
4775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4779 | else | |
4780 | eval "$as_ac_Header=\$ac_header_preproc" | |
4781 | fi | |
4782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4784 | ||
4785 | fi | |
4786 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4787 | cat >>confdefs.h <<_ACEOF | |
4788 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4789 | _ACEOF | |
4790 | ||
4791 | fi | |
4792 | ||
4793 | done | |
4794 | ||
4795 | ac_ext=cc | |
4796 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4800 | if test -n "$ac_tool_prefix"; then | |
4801 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4802 | do | |
4803 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4804 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4807 | if test "${ac_cv_prog_CXX+set}" = set; then | |
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4809 | else | |
4810 | if test -n "$CXX"; then | |
4811 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4812 | else | |
4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4814 | for as_dir in $PATH | |
4815 | do | |
4816 | IFS=$as_save_IFS | |
4817 | test -z "$as_dir" && as_dir=. | |
4818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4820 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4822 | break 2 | |
4823 | fi | |
4824 | done | |
4825 | done | |
4826 | ||
4827 | fi | |
4828 | fi | |
4829 | CXX=$ac_cv_prog_CXX | |
4830 | if test -n "$CXX"; then | |
4831 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
4832 | echo "${ECHO_T}$CXX" >&6 | |
4833 | else | |
4834 | echo "$as_me:$LINENO: result: no" >&5 | |
4835 | echo "${ECHO_T}no" >&6 | |
4836 | fi | |
4837 | ||
4838 | test -n "$CXX" && break | |
4839 | done | |
4840 | fi | |
4841 | if test -z "$CXX"; then | |
4842 | ac_ct_CXX=$CXX | |
4843 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4844 | do | |
4845 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4846 | set dummy $ac_prog; ac_word=$2 | |
4847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4849 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4851 | else | |
4852 | if test -n "$ac_ct_CXX"; then | |
4853 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4854 | else | |
4855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4856 | for as_dir in $PATH | |
4857 | do | |
4858 | IFS=$as_save_IFS | |
4859 | test -z "$as_dir" && as_dir=. | |
4860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4862 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4864 | break 2 | |
4865 | fi | |
4866 | done | |
4867 | done | |
4868 | ||
4869 | fi | |
4870 | fi | |
4871 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4872 | if test -n "$ac_ct_CXX"; then | |
4873 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
4874 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
4875 | else | |
4876 | echo "$as_me:$LINENO: result: no" >&5 | |
4877 | echo "${ECHO_T}no" >&6 | |
4878 | fi | |
4879 | ||
4880 | test -n "$ac_ct_CXX" && break | |
4881 | done | |
4882 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
4883 | ||
4884 | CXX=$ac_ct_CXX | |
4885 | fi | |
4886 | ||
4887 | ||
4888 | # Provide some information about the compiler. | |
4889 | echo "$as_me:$LINENO:" \ | |
4890 | "checking for C++ compiler version" >&5 | |
4891 | ac_compiler=`set X $ac_compile; echo $2` | |
4892 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4893 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4894 | ac_status=$? | |
4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4896 | (exit $ac_status); } | |
4897 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4898 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4899 | ac_status=$? | |
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4901 | (exit $ac_status); } | |
4902 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4903 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4904 | ac_status=$? | |
4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4906 | (exit $ac_status); } | |
4907 | ||
4908 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4909 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
4910 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4912 | else | |
4913 | cat >conftest.$ac_ext <<_ACEOF | |
4914 | /* confdefs.h. */ | |
4915 | _ACEOF | |
4916 | cat confdefs.h >>conftest.$ac_ext | |
4917 | cat >>conftest.$ac_ext <<_ACEOF | |
4918 | /* end confdefs.h. */ | |
4919 | ||
4920 | int | |
4921 | main () | |
4922 | { | |
4923 | #ifndef __GNUC__ | |
4924 | choke me | |
4925 | #endif | |
4926 | ||
4927 | ; | |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
4931 | rm -f conftest.$ac_objext | |
4932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4933 | (eval $ac_compile) 2>conftest.er1 | |
4934 | ac_status=$? | |
4935 | grep -v '^ *+' conftest.er1 >conftest.err | |
4936 | rm -f conftest.er1 | |
4937 | cat conftest.err >&5 | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); } && | |
4940 | { ac_try='test -z "$ac_cxx_werror_flag" | |
4941 | || test ! -s conftest.err' | |
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4943 | (eval $ac_try) 2>&5 | |
4944 | ac_status=$? | |
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4946 | (exit $ac_status); }; } && | |
4947 | { ac_try='test -s conftest.$ac_objext' | |
4948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4949 | (eval $ac_try) 2>&5 | |
4950 | ac_status=$? | |
4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4952 | (exit $ac_status); }; }; then | |
4953 | ac_compiler_gnu=yes | |
4954 | else | |
4955 | echo "$as_me: failed program was:" >&5 | |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4957 | ||
4958 | ac_compiler_gnu=no | |
4959 | fi | |
4960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4961 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4962 | ||
4963 | fi | |
4964 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4965 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
4966 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4967 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4968 | ac_save_CXXFLAGS=$CXXFLAGS | |
4969 | CXXFLAGS="-g" | |
4970 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4971 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4972 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4974 | else | |
4975 | cat >conftest.$ac_ext <<_ACEOF | |
4976 | /* confdefs.h. */ | |
4977 | _ACEOF | |
4978 | cat confdefs.h >>conftest.$ac_ext | |
4979 | cat >>conftest.$ac_ext <<_ACEOF | |
4980 | /* end confdefs.h. */ | |
4981 | ||
4982 | int | |
4983 | main () | |
4984 | { | |
4985 | ||
4986 | ; | |
4987 | return 0; | |
4988 | } | |
4989 | _ACEOF | |
4990 | rm -f conftest.$ac_objext | |
4991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4992 | (eval $ac_compile) 2>conftest.er1 | |
4993 | ac_status=$? | |
4994 | grep -v '^ *+' conftest.er1 >conftest.err | |
4995 | rm -f conftest.er1 | |
4996 | cat conftest.err >&5 | |
4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4998 | (exit $ac_status); } && | |
4999 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5000 | || test ! -s conftest.err' | |
5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5002 | (eval $ac_try) 2>&5 | |
5003 | ac_status=$? | |
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5005 | (exit $ac_status); }; } && | |
5006 | { ac_try='test -s conftest.$ac_objext' | |
5007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5008 | (eval $ac_try) 2>&5 | |
5009 | ac_status=$? | |
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5011 | (exit $ac_status); }; }; then | |
5012 | ac_cv_prog_cxx_g=yes | |
5013 | else | |
5014 | echo "$as_me: failed program was:" >&5 | |
5015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5016 | ||
5017 | ac_cv_prog_cxx_g=no | |
5018 | fi | |
5019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5020 | fi | |
5021 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
5022 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
5023 | if test "$ac_test_CXXFLAGS" = set; then | |
5024 | CXXFLAGS=$ac_save_CXXFLAGS | |
5025 | elif test $ac_cv_prog_cxx_g = yes; then | |
5026 | if test "$GXX" = yes; then | |
5027 | CXXFLAGS="-g -O2" | |
5028 | else | |
5029 | CXXFLAGS="-g" | |
5030 | fi | |
5031 | else | |
5032 | if test "$GXX" = yes; then | |
5033 | CXXFLAGS="-O2" | |
5034 | else | |
5035 | CXXFLAGS= | |
5036 | fi | |
5037 | fi | |
5038 | for ac_declaration in \ | |
5039 | '' \ | |
5040 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5041 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5042 | 'extern "C" void exit (int) throw ();' \ | |
5043 | 'extern "C" void exit (int);' \ | |
5044 | 'void exit (int);' | |
5045 | do | |
5046 | cat >conftest.$ac_ext <<_ACEOF | |
5047 | /* confdefs.h. */ | |
5048 | _ACEOF | |
5049 | cat confdefs.h >>conftest.$ac_ext | |
5050 | cat >>conftest.$ac_ext <<_ACEOF | |
5051 | /* end confdefs.h. */ | |
5052 | $ac_declaration | |
5053 | #include <stdlib.h> | |
5054 | int | |
5055 | main () | |
5056 | { | |
5057 | exit (42); | |
5058 | ; | |
5059 | return 0; | |
5060 | } | |
5061 | _ACEOF | |
5062 | rm -f conftest.$ac_objext | |
5063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5064 | (eval $ac_compile) 2>conftest.er1 | |
5065 | ac_status=$? | |
5066 | grep -v '^ *+' conftest.er1 >conftest.err | |
5067 | rm -f conftest.er1 | |
5068 | cat conftest.err >&5 | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); } && | |
5071 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5072 | || test ! -s conftest.err' | |
5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5074 | (eval $ac_try) 2>&5 | |
5075 | ac_status=$? | |
5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5077 | (exit $ac_status); }; } && | |
5078 | { ac_try='test -s conftest.$ac_objext' | |
5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5080 | (eval $ac_try) 2>&5 | |
5081 | ac_status=$? | |
5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5083 | (exit $ac_status); }; }; then | |
5084 | : | |
5085 | else | |
5086 | echo "$as_me: failed program was:" >&5 | |
5087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5088 | ||
5089 | continue | |
5090 | fi | |
5091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5092 | cat >conftest.$ac_ext <<_ACEOF | |
5093 | /* confdefs.h. */ | |
5094 | _ACEOF | |
5095 | cat confdefs.h >>conftest.$ac_ext | |
5096 | cat >>conftest.$ac_ext <<_ACEOF | |
5097 | /* end confdefs.h. */ | |
5098 | $ac_declaration | |
5099 | int | |
5100 | main () | |
5101 | { | |
5102 | exit (42); | |
5103 | ; | |
5104 | return 0; | |
5105 | } | |
5106 | _ACEOF | |
5107 | rm -f conftest.$ac_objext | |
5108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5109 | (eval $ac_compile) 2>conftest.er1 | |
5110 | ac_status=$? | |
5111 | grep -v '^ *+' conftest.er1 >conftest.err | |
5112 | rm -f conftest.er1 | |
5113 | cat conftest.err >&5 | |
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5115 | (exit $ac_status); } && | |
5116 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5117 | || test ! -s conftest.err' | |
5118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5119 | (eval $ac_try) 2>&5 | |
5120 | ac_status=$? | |
5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5122 | (exit $ac_status); }; } && | |
5123 | { ac_try='test -s conftest.$ac_objext' | |
5124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5125 | (eval $ac_try) 2>&5 | |
5126 | ac_status=$? | |
5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5128 | (exit $ac_status); }; }; then | |
5129 | break | |
5130 | else | |
5131 | echo "$as_me: failed program was:" >&5 | |
5132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5133 | ||
5134 | fi | |
5135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5136 | done | |
5137 | rm -f conftest* | |
5138 | if test -n "$ac_declaration"; then | |
5139 | echo '#ifdef __cplusplus' >>confdefs.h | |
5140 | echo $ac_declaration >>confdefs.h | |
5141 | echo '#endif' >>confdefs.h | |
5142 | fi | |
5143 | ||
5144 | ac_ext=cc | |
5145 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5146 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5147 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5148 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5149 | ||
5150 | depcc="$CXX" am_compiler_list= | |
5151 | ||
5152 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
5153 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
5154 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5156 | else | |
5157 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5158 | # We make a subdir and do the tests there. Otherwise we can end up | |
5159 | # making bogus files that we don't know about and never remove. For | |
5160 | # instance it was reported that on HP-UX the gcc test will end up | |
5161 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5162 | # in D'. | |
5163 | mkdir conftest.dir | |
5164 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5165 | # using a relative directory. | |
5166 | cp "$am_depcomp" conftest.dir | |
5167 | cd conftest.dir | |
5168 | # We will build objects and dependencies in a subdirectory because | |
5169 | # it helps to detect inapplicable dependency modes. For instance | |
5170 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5171 | # side effect of compilation, but ICC will put the dependencies in | |
5172 | # the current directory while Tru64 will put them in the object | |
5173 | # directory. | |
5174 | mkdir sub | |
5175 | ||
5176 | am_cv_CXX_dependencies_compiler_type=none | |
5177 | if test "$am_compiler_list" = ""; then | |
5178 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5179 | fi | |
5180 | for depmode in $am_compiler_list; do | |
5181 | # Setup a source with many dependencies, because some compilers | |
5182 | # like to wrap large dependency lists on column 80 (with \), and | |
5183 | # we should not choose a depcomp mode which is confused by this. | |
5184 | # | |
5185 | # We need to recreate these files for each test, as the compiler may | |
5186 | # overwrite some of them when testing with obscure command lines. | |
5187 | # This happens at least with the AIX C compiler. | |
5188 | : > sub/conftest.c | |
5189 | for i in 1 2 3 4 5 6; do | |
5190 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5191 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5192 | # Solaris 8's {/usr,}/bin/sh. | |
5193 | touch sub/conftst$i.h | |
5194 | done | |
5195 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5196 | ||
5197 | case $depmode in | |
5198 | nosideeffect) | |
5199 | # after this tag, mechanisms are not by side-effect, so they'll | |
5200 | # only be used when explicitly requested | |
5201 | if test "x$enable_dependency_tracking" = xyes; then | |
5202 | continue | |
5203 | else | |
5204 | break | |
5205 | fi | |
5206 | ;; | |
5207 | none) break ;; | |
5208 | esac | |
5209 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5210 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5211 | # handle `-M -o', and we need to detect this. | |
5212 | if depmode=$depmode \ | |
5213 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5214 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5215 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5216 | >/dev/null 2>conftest.err && | |
5217 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5218 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5219 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5220 | # icc doesn't choke on unknown options, it will just issue warnings | |
5221 | # or remarks (even with -Werror). So we grep stderr for any message | |
5222 | # that says an option was ignored or not supported. | |
5223 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5224 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5225 | # The diagnosis changed in icc 8.0: | |
5226 | # icc: Command line remark: option '-MP' not supported | |
5227 | if (grep 'ignoring option' conftest.err || | |
5228 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5229 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5230 | break | |
5231 | fi | |
5232 | fi | |
5233 | done | |
5234 | ||
5235 | cd .. | |
5236 | rm -rf conftest.dir | |
5237 | else | |
5238 | am_cv_CXX_dependencies_compiler_type=none | |
5239 | fi | |
5240 | ||
5241 | fi | |
5242 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5243 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
5244 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5245 | ||
5246 | ||
5247 | ||
5248 | if | |
5249 | test "x$enable_dependency_tracking" != xno \ | |
5250 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5251 | am__fastdepCXX_TRUE= | |
5252 | am__fastdepCXX_FALSE='#' | |
5253 | else | |
5254 | am__fastdepCXX_TRUE='#' | |
5255 | am__fastdepCXX_FALSE= | |
5256 | fi | |
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5262 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5263 | (test "X$CXX" != "Xg++"))) ; then | |
5264 | ac_ext=cc | |
5265 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5266 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5267 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5268 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5269 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5270 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
5271 | if test -z "$CXXCPP"; then | |
5272 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
5273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5274 | else | |
5275 | # Double quotes because CXXCPP needs to be expanded | |
5276 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5277 | do | |
5278 | ac_preproc_ok=false | |
5279 | for ac_cxx_preproc_warn_flag in '' yes | |
5280 | do | |
5281 | # Use a header file that comes with gcc, so configuring glibc | |
5282 | # with a fresh cross-compiler works. | |
5283 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5284 | # <limits.h> exists even on freestanding compilers. | |
5285 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5286 | # not just through cpp. "Syntax error" is here to catch this case. | |
5287 | cat >conftest.$ac_ext <<_ACEOF | |
5288 | /* confdefs.h. */ | |
5289 | _ACEOF | |
5290 | cat confdefs.h >>conftest.$ac_ext | |
5291 | cat >>conftest.$ac_ext <<_ACEOF | |
5292 | /* end confdefs.h. */ | |
5293 | #ifdef __STDC__ | |
5294 | # include <limits.h> | |
5295 | #else | |
5296 | # include <assert.h> | |
5297 | #endif | |
5298 | Syntax error | |
5299 | _ACEOF | |
5300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5302 | ac_status=$? | |
5303 | grep -v '^ *+' conftest.er1 >conftest.err | |
5304 | rm -f conftest.er1 | |
5305 | cat conftest.err >&5 | |
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5307 | (exit $ac_status); } >/dev/null; then | |
5308 | if test -s conftest.err; then | |
5309 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5310 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5311 | else | |
5312 | ac_cpp_err= | |
5313 | fi | |
5314 | else | |
5315 | ac_cpp_err=yes | |
5316 | fi | |
5317 | if test -z "$ac_cpp_err"; then | |
5318 | : | |
5319 | else | |
5320 | echo "$as_me: failed program was:" >&5 | |
5321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5322 | ||
5323 | # Broken: fails on valid input. | |
5324 | continue | |
5325 | fi | |
5326 | rm -f conftest.err conftest.$ac_ext | |
5327 | ||
5328 | # OK, works on sane cases. Now check whether non-existent headers | |
5329 | # can be detected and how. | |
5330 | cat >conftest.$ac_ext <<_ACEOF | |
5331 | /* confdefs.h. */ | |
5332 | _ACEOF | |
5333 | cat confdefs.h >>conftest.$ac_ext | |
5334 | cat >>conftest.$ac_ext <<_ACEOF | |
5335 | /* end confdefs.h. */ | |
5336 | #include <ac_nonexistent.h> | |
5337 | _ACEOF | |
5338 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5339 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5340 | ac_status=$? | |
5341 | grep -v '^ *+' conftest.er1 >conftest.err | |
5342 | rm -f conftest.er1 | |
5343 | cat conftest.err >&5 | |
5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5345 | (exit $ac_status); } >/dev/null; then | |
5346 | if test -s conftest.err; then | |
5347 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5348 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5349 | else | |
5350 | ac_cpp_err= | |
5351 | fi | |
5352 | else | |
5353 | ac_cpp_err=yes | |
5354 | fi | |
5355 | if test -z "$ac_cpp_err"; then | |
5356 | # Broken: success on invalid input. | |
5357 | continue | |
5358 | else | |
5359 | echo "$as_me: failed program was:" >&5 | |
5360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5361 | ||
5362 | # Passes both tests. | |
5363 | ac_preproc_ok=: | |
5364 | break | |
5365 | fi | |
5366 | rm -f conftest.err conftest.$ac_ext | |
5367 | ||
5368 | done | |
5369 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5370 | rm -f conftest.err conftest.$ac_ext | |
5371 | if $ac_preproc_ok; then | |
5372 | break | |
5373 | fi | |
5374 | ||
5375 | done | |
5376 | ac_cv_prog_CXXCPP=$CXXCPP | |
5377 | ||
5378 | fi | |
5379 | CXXCPP=$ac_cv_prog_CXXCPP | |
5380 | else | |
5381 | ac_cv_prog_CXXCPP=$CXXCPP | |
5382 | fi | |
5383 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5384 | echo "${ECHO_T}$CXXCPP" >&6 | |
5385 | ac_preproc_ok=false | |
5386 | for ac_cxx_preproc_warn_flag in '' yes | |
5387 | do | |
5388 | # Use a header file that comes with gcc, so configuring glibc | |
5389 | # with a fresh cross-compiler works. | |
5390 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5391 | # <limits.h> exists even on freestanding compilers. | |
5392 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5393 | # not just through cpp. "Syntax error" is here to catch this case. | |
5394 | cat >conftest.$ac_ext <<_ACEOF | |
5395 | /* confdefs.h. */ | |
5396 | _ACEOF | |
5397 | cat confdefs.h >>conftest.$ac_ext | |
5398 | cat >>conftest.$ac_ext <<_ACEOF | |
5399 | /* end confdefs.h. */ | |
5400 | #ifdef __STDC__ | |
5401 | # include <limits.h> | |
5402 | #else | |
5403 | # include <assert.h> | |
5404 | #endif | |
5405 | Syntax error | |
5406 | _ACEOF | |
5407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5409 | ac_status=$? | |
5410 | grep -v '^ *+' conftest.er1 >conftest.err | |
5411 | rm -f conftest.er1 | |
5412 | cat conftest.err >&5 | |
5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5414 | (exit $ac_status); } >/dev/null; then | |
5415 | if test -s conftest.err; then | |
5416 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5417 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5418 | else | |
5419 | ac_cpp_err= | |
5420 | fi | |
5421 | else | |
5422 | ac_cpp_err=yes | |
5423 | fi | |
5424 | if test -z "$ac_cpp_err"; then | |
5425 | : | |
5426 | else | |
5427 | echo "$as_me: failed program was:" >&5 | |
5428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5429 | ||
5430 | # Broken: fails on valid input. | |
5431 | continue | |
5432 | fi | |
5433 | rm -f conftest.err conftest.$ac_ext | |
5434 | ||
5435 | # OK, works on sane cases. Now check whether non-existent headers | |
5436 | # can be detected and how. | |
5437 | cat >conftest.$ac_ext <<_ACEOF | |
5438 | /* confdefs.h. */ | |
5439 | _ACEOF | |
5440 | cat confdefs.h >>conftest.$ac_ext | |
5441 | cat >>conftest.$ac_ext <<_ACEOF | |
5442 | /* end confdefs.h. */ | |
5443 | #include <ac_nonexistent.h> | |
5444 | _ACEOF | |
5445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5447 | ac_status=$? | |
5448 | grep -v '^ *+' conftest.er1 >conftest.err | |
5449 | rm -f conftest.er1 | |
5450 | cat conftest.err >&5 | |
5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5452 | (exit $ac_status); } >/dev/null; then | |
5453 | if test -s conftest.err; then | |
5454 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5455 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5456 | else | |
5457 | ac_cpp_err= | |
5458 | fi | |
5459 | else | |
5460 | ac_cpp_err=yes | |
5461 | fi | |
5462 | if test -z "$ac_cpp_err"; then | |
5463 | # Broken: success on invalid input. | |
5464 | continue | |
5465 | else | |
5466 | echo "$as_me: failed program was:" >&5 | |
5467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5468 | ||
5469 | # Passes both tests. | |
5470 | ac_preproc_ok=: | |
5471 | break | |
5472 | fi | |
5473 | rm -f conftest.err conftest.$ac_ext | |
5474 | ||
5475 | done | |
5476 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5477 | rm -f conftest.err conftest.$ac_ext | |
5478 | if $ac_preproc_ok; then | |
5479 | : | |
5480 | else | |
5481 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5482 | See \`config.log' for more details." >&5 | |
5483 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5484 | See \`config.log' for more details." >&2;} | |
5485 | { (exit 1); exit 1; }; } | |
5486 | fi | |
5487 | ||
5488 | ac_ext=cc | |
5489 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5490 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5491 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5492 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5493 | ||
5494 | fi | |
5495 | ||
5496 | ||
5497 | ac_ext=f | |
5498 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5499 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5500 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5501 | if test -n "$ac_tool_prefix"; then | |
5502 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5503 | do | |
5504 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5505 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5508 | if test "${ac_cv_prog_F77+set}" = set; then | |
5509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5510 | else | |
5511 | if test -n "$F77"; then | |
5512 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
5513 | else | |
5514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5515 | for as_dir in $PATH | |
5516 | do | |
5517 | IFS=$as_save_IFS | |
5518 | test -z "$as_dir" && as_dir=. | |
5519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5521 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5523 | break 2 | |
5524 | fi | |
5525 | done | |
5526 | done | |
5527 | ||
5528 | fi | |
5529 | fi | |
5530 | F77=$ac_cv_prog_F77 | |
5531 | if test -n "$F77"; then | |
5532 | echo "$as_me:$LINENO: result: $F77" >&5 | |
5533 | echo "${ECHO_T}$F77" >&6 | |
5534 | else | |
5535 | echo "$as_me:$LINENO: result: no" >&5 | |
5536 | echo "${ECHO_T}no" >&6 | |
5537 | fi | |
5538 | ||
5539 | test -n "$F77" && break | |
5540 | done | |
5541 | fi | |
5542 | if test -z "$F77"; then | |
5543 | ac_ct_F77=$F77 | |
5544 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5545 | do | |
5546 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5547 | set dummy $ac_prog; ac_word=$2 | |
5548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5550 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5552 | else | |
5553 | if test -n "$ac_ct_F77"; then | |
5554 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5555 | else | |
5556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5557 | for as_dir in $PATH | |
5558 | do | |
5559 | IFS=$as_save_IFS | |
5560 | test -z "$as_dir" && as_dir=. | |
5561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5563 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
5564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5565 | break 2 | |
5566 | fi | |
5567 | done | |
5568 | done | |
5569 | ||
5570 | fi | |
5571 | fi | |
5572 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5573 | if test -n "$ac_ct_F77"; then | |
5574 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5575 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
5576 | else | |
5577 | echo "$as_me:$LINENO: result: no" >&5 | |
5578 | echo "${ECHO_T}no" >&6 | |
5579 | fi | |
5580 | ||
5581 | test -n "$ac_ct_F77" && break | |
5582 | done | |
5583 | ||
5584 | F77=$ac_ct_F77 | |
5585 | fi | |
5586 | ||
5587 | ||
5588 | # Provide some information about the compiler. | |
86933a6e | 5589 | echo "$as_me:5589:" \ |
bf9f3bac | 5590 | "checking for Fortran 77 compiler version" >&5 |
5591 | ac_compiler=`set X $ac_compile; echo $2` | |
5592 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5593 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5594 | ac_status=$? | |
5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5596 | (exit $ac_status); } | |
5597 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5598 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5599 | ac_status=$? | |
5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5601 | (exit $ac_status); } | |
5602 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5603 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5604 | ac_status=$? | |
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5606 | (exit $ac_status); } | |
5607 | rm -f a.out | |
5608 | ||
5609 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
5610 | # input file. (Note that this only needs to work for GNU compilers.) | |
5611 | ac_save_ext=$ac_ext | |
5612 | ac_ext=F | |
5613 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5614 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5615 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5617 | else | |
5618 | cat >conftest.$ac_ext <<_ACEOF | |
5619 | program main | |
5620 | #ifndef __GNUC__ | |
5621 | choke me | |
5622 | #endif | |
5623 | ||
5624 | end | |
5625 | _ACEOF | |
5626 | rm -f conftest.$ac_objext | |
5627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5628 | (eval $ac_compile) 2>conftest.er1 | |
5629 | ac_status=$? | |
5630 | grep -v '^ *+' conftest.er1 >conftest.err | |
5631 | rm -f conftest.er1 | |
5632 | cat conftest.err >&5 | |
5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5634 | (exit $ac_status); } && | |
5635 | { ac_try='test -z "$ac_f77_werror_flag" | |
5636 | || test ! -s conftest.err' | |
5637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5638 | (eval $ac_try) 2>&5 | |
5639 | ac_status=$? | |
5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5641 | (exit $ac_status); }; } && | |
5642 | { ac_try='test -s conftest.$ac_objext' | |
5643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5644 | (eval $ac_try) 2>&5 | |
5645 | ac_status=$? | |
5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5647 | (exit $ac_status); }; }; then | |
5648 | ac_compiler_gnu=yes | |
5649 | else | |
5650 | echo "$as_me: failed program was:" >&5 | |
5651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5652 | ||
5653 | ac_compiler_gnu=no | |
5654 | fi | |
5655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5656 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5657 | ||
5658 | fi | |
5659 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5660 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5661 | ac_ext=$ac_save_ext | |
5662 | ac_test_FFLAGS=${FFLAGS+set} | |
5663 | ac_save_FFLAGS=$FFLAGS | |
5664 | FFLAGS= | |
5665 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5666 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5667 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
5668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5669 | else | |
5670 | FFLAGS=-g | |
5671 | cat >conftest.$ac_ext <<_ACEOF | |
5672 | program main | |
5673 | ||
5674 | end | |
5675 | _ACEOF | |
5676 | rm -f conftest.$ac_objext | |
5677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5678 | (eval $ac_compile) 2>conftest.er1 | |
5679 | ac_status=$? | |
5680 | grep -v '^ *+' conftest.er1 >conftest.err | |
5681 | rm -f conftest.er1 | |
5682 | cat conftest.err >&5 | |
5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5684 | (exit $ac_status); } && | |
5685 | { ac_try='test -z "$ac_f77_werror_flag" | |
5686 | || test ! -s conftest.err' | |
5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5688 | (eval $ac_try) 2>&5 | |
5689 | ac_status=$? | |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); }; } && | |
5692 | { ac_try='test -s conftest.$ac_objext' | |
5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5694 | (eval $ac_try) 2>&5 | |
5695 | ac_status=$? | |
5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5697 | (exit $ac_status); }; }; then | |
5698 | ac_cv_prog_f77_g=yes | |
5699 | else | |
5700 | echo "$as_me: failed program was:" >&5 | |
5701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5702 | ||
5703 | ac_cv_prog_f77_g=no | |
5704 | fi | |
5705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5706 | ||
5707 | fi | |
5708 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5709 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5710 | if test "$ac_test_FFLAGS" = set; then | |
5711 | FFLAGS=$ac_save_FFLAGS | |
5712 | elif test $ac_cv_prog_f77_g = yes; then | |
5713 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5714 | FFLAGS="-g -O2" | |
5715 | else | |
5716 | FFLAGS="-g" | |
5717 | fi | |
5718 | else | |
5719 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5720 | FFLAGS="-O2" | |
5721 | else | |
5722 | FFLAGS= | |
5723 | fi | |
5724 | fi | |
5725 | ||
5726 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
5727 | ac_ext=c | |
5728 | ac_cpp='$CPP $CPPFLAGS' | |
5729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5732 | ||
5733 | ||
5734 | ||
5735 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5736 | ||
5737 | # find the maximum length of command line arguments | |
5738 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5739 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5740 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5742 | else | |
5743 | i=0 | |
5744 | teststring="ABCD" | |
5745 | ||
5746 | case $build_os in | |
5747 | msdosdjgpp*) | |
5748 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5749 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5750 | # during glob expansion). Even if it were fixed, the result of this | |
5751 | # check would be larger than it should be. | |
5752 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5753 | ;; | |
5754 | ||
5755 | gnu*) | |
5756 | # Under GNU Hurd, this test is not required because there is | |
5757 | # no limit to the length of command line arguments. | |
5758 | # Libtool will interpret -1 as no limit whatsoever | |
5759 | lt_cv_sys_max_cmd_len=-1; | |
5760 | ;; | |
5761 | ||
5762 | cygwin* | mingw*) | |
5763 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5764 | # about 5 minutes as the teststring grows exponentially. | |
5765 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5766 | # you end up with a "frozen" computer, even though with patience | |
5767 | # the test eventually succeeds (with a max line length of 256k). | |
5768 | # Instead, let's just punt: use the minimum linelength reported by | |
5769 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5770 | lt_cv_sys_max_cmd_len=8192; | |
5771 | ;; | |
5772 | ||
5773 | amigaos*) | |
5774 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5775 | # So we just punt and use a minimum line length of 8192. | |
5776 | lt_cv_sys_max_cmd_len=8192; | |
5777 | ;; | |
5778 | ||
5779 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5780 | # This has been around since 386BSD, at least. Likely further. | |
5781 | if test -x /sbin/sysctl; then | |
5782 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5783 | elif test -x /usr/sbin/sysctl; then | |
5784 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5785 | else | |
5786 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5787 | fi | |
5788 | # And add a safety zone | |
5789 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5791 | ;; | |
5792 | ||
5793 | interix*) | |
5794 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5795 | lt_cv_sys_max_cmd_len=196608 | |
5796 | ;; | |
5797 | ||
5798 | osf*) | |
5799 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5800 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5801 | # nice to cause kernel panics so lets avoid the loop below. | |
5802 | # First set a reasonable default. | |
5803 | lt_cv_sys_max_cmd_len=16384 | |
5804 | # | |
5805 | if test -x /sbin/sysconfig; then | |
5806 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5807 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5808 | esac | |
5809 | fi | |
5810 | ;; | |
5811 | sco3.2v5*) | |
5812 | lt_cv_sys_max_cmd_len=102400 | |
5813 | ;; | |
5814 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5815 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5816 | if test -n "$kargmax"; then | |
5817 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5818 | else | |
5819 | lt_cv_sys_max_cmd_len=32768 | |
5820 | fi | |
5821 | ;; | |
5822 | *) | |
5823 | # If test is not a shell built-in, we'll probably end up computing a | |
5824 | # maximum length that is only half of the actual maximum length, but | |
5825 | # we can't tell. | |
5826 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5827 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
5828 | = "XX$teststring") >/dev/null 2>&1 && | |
5829 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
5830 | lt_cv_sys_max_cmd_len=$new_result && | |
5831 | test $i != 17 # 1/2 MB should be enough | |
5832 | do | |
5833 | i=`expr $i + 1` | |
5834 | teststring=$teststring$teststring | |
5835 | done | |
5836 | teststring= | |
5837 | # Add a significant safety factor because C++ compilers can tack on massive | |
5838 | # amounts of additional arguments before passing them to the linker. | |
5839 | # It appears as though 1/2 is a usable value. | |
5840 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5841 | ;; | |
5842 | esac | |
5843 | ||
5844 | fi | |
5845 | ||
5846 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5847 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5848 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5849 | else | |
5850 | echo "$as_me:$LINENO: result: none" >&5 | |
5851 | echo "${ECHO_T}none" >&6 | |
5852 | fi | |
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5858 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5859 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5860 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5862 | else | |
5863 | ||
5864 | # These are sane defaults that work on at least a few old systems. | |
5865 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5866 | ||
5867 | # Character class describing NM global symbol codes. | |
5868 | symcode='[BCDEGRST]' | |
5869 | ||
5870 | # Regexp to match symbols that can be accessed directly from C. | |
5871 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5872 | ||
5873 | # Transform an extracted symbol line into a proper C declaration | |
5874 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5875 | ||
5876 | # Transform an extracted symbol line into symbol name and symbol address | |
5877 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5878 | ||
5879 | # Define system-specific variables. | |
5880 | case $host_os in | |
5881 | aix*) | |
5882 | symcode='[BCDT]' | |
5883 | ;; | |
5884 | cygwin* | mingw* | pw32*) | |
5885 | symcode='[ABCDGISTW]' | |
5886 | ;; | |
5887 | hpux*) # Its linker distinguishes data from code symbols | |
5888 | if test "$host_cpu" = ia64; then | |
5889 | symcode='[ABCDEGRST]' | |
5890 | fi | |
5891 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5892 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5893 | ;; | |
5894 | linux*) | |
5895 | if test "$host_cpu" = ia64; then | |
5896 | symcode='[ABCDGIRSTW]' | |
5897 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5898 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
5899 | fi | |
5900 | ;; | |
5901 | irix* | nonstopux*) | |
5902 | symcode='[BCDEGRST]' | |
5903 | ;; | |
5904 | osf*) | |
5905 | symcode='[BCDEGQRST]' | |
5906 | ;; | |
5907 | solaris*) | |
5908 | symcode='[BDRT]' | |
5909 | ;; | |
5910 | sco3.2v5*) | |
5911 | symcode='[DT]' | |
5912 | ;; | |
5913 | sysv4.2uw2*) | |
5914 | symcode='[DT]' | |
5915 | ;; | |
5916 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5917 | symcode='[ABDT]' | |
5918 | ;; | |
5919 | sysv4) | |
5920 | symcode='[DFNSTU]' | |
5921 | ;; | |
5922 | esac | |
5923 | ||
5924 | # Handle CRLF in mingw tool chain | |
5925 | opt_cr= | |
5926 | case $build_os in | |
5927 | mingw*) | |
5928 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5929 | ;; | |
5930 | esac | |
5931 | ||
5932 | # If we're using GNU nm, then use its standard symbol codes. | |
5933 | case `$NM -V 2>&1` in | |
5934 | *GNU* | *'with BFD'*) | |
5935 | symcode='[ABCDGIRSTW]' ;; | |
5936 | esac | |
5937 | ||
5938 | # Try without a prefix undercore, then with it. | |
5939 | for ac_symprfx in "" "_"; do | |
5940 | ||
5941 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5942 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5943 | ||
5944 | # Write the raw and C identifiers. | |
5945 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5946 | ||
5947 | # Check to see that the pipe works correctly. | |
5948 | pipe_works=no | |
5949 | ||
5950 | rm -f conftest* | |
5951 | cat > conftest.$ac_ext <<EOF | |
5952 | #ifdef __cplusplus | |
5953 | extern "C" { | |
5954 | #endif | |
5955 | char nm_test_var; | |
5956 | void nm_test_func(){} | |
5957 | #ifdef __cplusplus | |
5958 | } | |
5959 | #endif | |
5960 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5961 | EOF | |
5962 | ||
5963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5964 | (eval $ac_compile) 2>&5 | |
5965 | ac_status=$? | |
5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5967 | (exit $ac_status); }; then | |
5968 | # Now try to grab the symbols. | |
5969 | nlist=conftest.nm | |
5970 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5971 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5972 | ac_status=$? | |
5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5974 | (exit $ac_status); } && test -s "$nlist"; then | |
5975 | # Try sorting and uniquifying the output. | |
5976 | if sort "$nlist" | uniq > "$nlist"T; then | |
5977 | mv -f "$nlist"T "$nlist" | |
5978 | else | |
5979 | rm -f "$nlist"T | |
5980 | fi | |
5981 | ||
5982 | # Make sure that we snagged all the symbols we need. | |
5983 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5984 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5985 | cat <<EOF > conftest.$ac_ext | |
5986 | #ifdef __cplusplus | |
5987 | extern "C" { | |
5988 | #endif | |
5989 | ||
5990 | EOF | |
5991 | # Now generate the symbol file. | |
5992 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5993 | ||
5994 | cat <<EOF >> conftest.$ac_ext | |
5995 | #if defined (__STDC__) && __STDC__ | |
5996 | # define lt_ptr_t void * | |
5997 | #else | |
5998 | # define lt_ptr_t char * | |
5999 | # define const | |
6000 | #endif | |
6001 | ||
6002 | /* The mapping between symbol names and symbols. */ | |
6003 | const struct { | |
6004 | const char *name; | |
6005 | lt_ptr_t address; | |
6006 | } | |
6007 | lt_preloaded_symbols[] = | |
6008 | { | |
6009 | EOF | |
6010 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
6011 | cat <<\EOF >> conftest.$ac_ext | |
6012 | {0, (lt_ptr_t) 0} | |
6013 | }; | |
6014 | ||
6015 | #ifdef __cplusplus | |
6016 | } | |
6017 | #endif | |
6018 | EOF | |
6019 | # Now try linking the two files. | |
6020 | mv conftest.$ac_objext conftstm.$ac_objext | |
6021 | lt_save_LIBS="$LIBS" | |
6022 | lt_save_CFLAGS="$CFLAGS" | |
6023 | LIBS="conftstm.$ac_objext" | |
6024 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6026 | (eval $ac_link) 2>&5 | |
6027 | ac_status=$? | |
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6029 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6030 | pipe_works=yes | |
6031 | fi | |
6032 | LIBS="$lt_save_LIBS" | |
6033 | CFLAGS="$lt_save_CFLAGS" | |
6034 | else | |
6035 | echo "cannot find nm_test_func in $nlist" >&5 | |
6036 | fi | |
6037 | else | |
6038 | echo "cannot find nm_test_var in $nlist" >&5 | |
6039 | fi | |
6040 | else | |
6041 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6042 | fi | |
6043 | else | |
6044 | echo "$progname: failed program was:" >&5 | |
6045 | cat conftest.$ac_ext >&5 | |
6046 | fi | |
6047 | rm -f conftest* conftst* | |
6048 | ||
6049 | # Do not use the global_symbol_pipe unless it works. | |
6050 | if test "$pipe_works" = yes; then | |
6051 | break | |
6052 | else | |
6053 | lt_cv_sys_global_symbol_pipe= | |
6054 | fi | |
6055 | done | |
6056 | ||
6057 | fi | |
6058 | ||
6059 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6060 | lt_cv_sys_global_symbol_to_cdecl= | |
6061 | fi | |
6062 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6063 | echo "$as_me:$LINENO: result: failed" >&5 | |
6064 | echo "${ECHO_T}failed" >&6 | |
6065 | else | |
6066 | echo "$as_me:$LINENO: result: ok" >&5 | |
6067 | echo "${ECHO_T}ok" >&6 | |
6068 | fi | |
6069 | ||
6070 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6071 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6072 | if test "${lt_cv_objdir+set}" = set; then | |
6073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6074 | else | |
6075 | rm -f .libs 2>/dev/null | |
6076 | mkdir .libs 2>/dev/null | |
6077 | if test -d .libs; then | |
6078 | lt_cv_objdir=.libs | |
6079 | else | |
6080 | # MS-DOS does not allow filenames that begin with a dot. | |
6081 | lt_cv_objdir=_libs | |
6082 | fi | |
6083 | rmdir .libs 2>/dev/null | |
6084 | fi | |
6085 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6086 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6087 | objdir=$lt_cv_objdir | |
6088 | ||
6089 | ||
6090 | ||
6091 | ||
6092 | ||
6093 | case $host_os in | |
6094 | aix3*) | |
6095 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6096 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6097 | # vanish in a puff of smoke. | |
6098 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6099 | COLLECT_NAMES= | |
6100 | export COLLECT_NAMES | |
6101 | fi | |
6102 | ;; | |
6103 | esac | |
6104 | ||
6105 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6106 | # metacharacters that are still active within double-quoted strings. | |
6107 | Xsed='sed -e 1s/^X//' | |
6108 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
6109 | ||
6110 | # Same as above, but do not quote variable references. | |
6111 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
6112 | ||
6113 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6114 | # double_quote_subst'ed string. | |
6115 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6116 | ||
6117 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6118 | no_glob_subst='s/\*/\\\*/g' | |
6119 | ||
6120 | # Constants: | |
6121 | rm="rm -f" | |
6122 | ||
6123 | # Global variables: | |
6124 | default_ofile=libtool | |
6125 | can_build_shared=yes | |
6126 | ||
6127 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6128 | # which needs '.lib'). | |
6129 | libext=a | |
6130 | ltmain="$ac_aux_dir/ltmain.sh" | |
6131 | ofile="$default_ofile" | |
6132 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6133 | ||
6134 | if test -n "$ac_tool_prefix"; then | |
6135 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6136 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6139 | if test "${ac_cv_prog_AR+set}" = set; then | |
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6141 | else | |
6142 | if test -n "$AR"; then | |
6143 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6144 | else | |
6145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6146 | for as_dir in $PATH | |
6147 | do | |
6148 | IFS=$as_save_IFS | |
6149 | test -z "$as_dir" && as_dir=. | |
6150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6152 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6154 | break 2 | |
6155 | fi | |
6156 | done | |
6157 | done | |
6158 | ||
6159 | fi | |
6160 | fi | |
6161 | AR=$ac_cv_prog_AR | |
6162 | if test -n "$AR"; then | |
6163 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6164 | echo "${ECHO_T}$AR" >&6 | |
6165 | else | |
6166 | echo "$as_me:$LINENO: result: no" >&5 | |
6167 | echo "${ECHO_T}no" >&6 | |
6168 | fi | |
6169 | ||
6170 | fi | |
6171 | if test -z "$ac_cv_prog_AR"; then | |
6172 | ac_ct_AR=$AR | |
6173 | # Extract the first word of "ar", so it can be a program name with args. | |
6174 | set dummy ar; ac_word=$2 | |
6175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6177 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6179 | else | |
6180 | if test -n "$ac_ct_AR"; then | |
6181 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6182 | else | |
6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6184 | for as_dir in $PATH | |
6185 | do | |
6186 | IFS=$as_save_IFS | |
6187 | test -z "$as_dir" && as_dir=. | |
6188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6190 | ac_cv_prog_ac_ct_AR="ar" | |
6191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6192 | break 2 | |
6193 | fi | |
6194 | done | |
6195 | done | |
6196 | ||
6197 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
6198 | fi | |
6199 | fi | |
6200 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6201 | if test -n "$ac_ct_AR"; then | |
6202 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6203 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6204 | else | |
6205 | echo "$as_me:$LINENO: result: no" >&5 | |
6206 | echo "${ECHO_T}no" >&6 | |
6207 | fi | |
6208 | ||
6209 | AR=$ac_ct_AR | |
6210 | else | |
6211 | AR="$ac_cv_prog_AR" | |
6212 | fi | |
6213 | ||
6214 | if test -n "$ac_tool_prefix"; then | |
6215 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6216 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6219 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6221 | else | |
6222 | if test -n "$RANLIB"; then | |
6223 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6224 | else | |
6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6226 | for as_dir in $PATH | |
6227 | do | |
6228 | IFS=$as_save_IFS | |
6229 | test -z "$as_dir" && as_dir=. | |
6230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6232 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6234 | break 2 | |
6235 | fi | |
6236 | done | |
6237 | done | |
6238 | ||
6239 | fi | |
6240 | fi | |
6241 | RANLIB=$ac_cv_prog_RANLIB | |
6242 | if test -n "$RANLIB"; then | |
6243 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6244 | echo "${ECHO_T}$RANLIB" >&6 | |
6245 | else | |
6246 | echo "$as_me:$LINENO: result: no" >&5 | |
6247 | echo "${ECHO_T}no" >&6 | |
6248 | fi | |
6249 | ||
6250 | fi | |
6251 | if test -z "$ac_cv_prog_RANLIB"; then | |
6252 | ac_ct_RANLIB=$RANLIB | |
6253 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6254 | set dummy ranlib; ac_word=$2 | |
6255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6257 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6259 | else | |
6260 | if test -n "$ac_ct_RANLIB"; then | |
6261 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6262 | else | |
6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6264 | for as_dir in $PATH | |
6265 | do | |
6266 | IFS=$as_save_IFS | |
6267 | test -z "$as_dir" && as_dir=. | |
6268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6270 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6272 | break 2 | |
6273 | fi | |
6274 | done | |
6275 | done | |
6276 | ||
6277 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
6278 | fi | |
6279 | fi | |
6280 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6281 | if test -n "$ac_ct_RANLIB"; then | |
6282 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6283 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6284 | else | |
6285 | echo "$as_me:$LINENO: result: no" >&5 | |
6286 | echo "${ECHO_T}no" >&6 | |
6287 | fi | |
6288 | ||
6289 | RANLIB=$ac_ct_RANLIB | |
6290 | else | |
6291 | RANLIB="$ac_cv_prog_RANLIB" | |
6292 | fi | |
6293 | ||
6294 | if test -n "$ac_tool_prefix"; then | |
6295 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6296 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6299 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6301 | else | |
6302 | if test -n "$STRIP"; then | |
6303 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6304 | else | |
6305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6306 | for as_dir in $PATH | |
6307 | do | |
6308 | IFS=$as_save_IFS | |
6309 | test -z "$as_dir" && as_dir=. | |
6310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6312 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6314 | break 2 | |
6315 | fi | |
6316 | done | |
6317 | done | |
6318 | ||
6319 | fi | |
6320 | fi | |
6321 | STRIP=$ac_cv_prog_STRIP | |
6322 | if test -n "$STRIP"; then | |
6323 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6324 | echo "${ECHO_T}$STRIP" >&6 | |
6325 | else | |
6326 | echo "$as_me:$LINENO: result: no" >&5 | |
6327 | echo "${ECHO_T}no" >&6 | |
6328 | fi | |
6329 | ||
6330 | fi | |
6331 | if test -z "$ac_cv_prog_STRIP"; then | |
6332 | ac_ct_STRIP=$STRIP | |
6333 | # Extract the first word of "strip", so it can be a program name with args. | |
6334 | set dummy strip; ac_word=$2 | |
6335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6337 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6339 | else | |
6340 | if test -n "$ac_ct_STRIP"; then | |
6341 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6342 | else | |
6343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6344 | for as_dir in $PATH | |
6345 | do | |
6346 | IFS=$as_save_IFS | |
6347 | test -z "$as_dir" && as_dir=. | |
6348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6350 | ac_cv_prog_ac_ct_STRIP="strip" | |
6351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6352 | break 2 | |
6353 | fi | |
6354 | done | |
6355 | done | |
6356 | ||
6357 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6358 | fi | |
6359 | fi | |
6360 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6361 | if test -n "$ac_ct_STRIP"; then | |
6362 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6363 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6364 | else | |
6365 | echo "$as_me:$LINENO: result: no" >&5 | |
6366 | echo "${ECHO_T}no" >&6 | |
6367 | fi | |
6368 | ||
6369 | STRIP=$ac_ct_STRIP | |
6370 | else | |
6371 | STRIP="$ac_cv_prog_STRIP" | |
6372 | fi | |
6373 | ||
6374 | ||
6375 | old_CC="$CC" | |
6376 | old_CFLAGS="$CFLAGS" | |
6377 | ||
6378 | # Set sane defaults for various variables | |
6379 | test -z "$AR" && AR=ar | |
6380 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6381 | test -z "$AS" && AS=as | |
6382 | test -z "$CC" && CC=cc | |
6383 | test -z "$LTCC" && LTCC=$CC | |
6384 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6385 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6386 | test -z "$LD" && LD=ld | |
6387 | test -z "$LN_S" && LN_S="ln -s" | |
6388 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6389 | test -z "$NM" && NM=nm | |
6390 | test -z "$SED" && SED=sed | |
6391 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6392 | test -z "$RANLIB" && RANLIB=: | |
6393 | test -z "$STRIP" && STRIP=: | |
6394 | test -z "$ac_objext" && ac_objext=o | |
6395 | ||
6396 | # Determine commands to create old-style static archives. | |
6397 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6398 | old_postinstall_cmds='chmod 644 $oldlib' | |
6399 | old_postuninstall_cmds= | |
6400 | ||
6401 | if test -n "$RANLIB"; then | |
6402 | case $host_os in | |
6403 | openbsd*) | |
6404 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6405 | ;; | |
6406 | *) | |
6407 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6408 | ;; | |
6409 | esac | |
6410 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6411 | fi | |
6412 | ||
6413 | for cc_temp in $compiler""; do | |
6414 | case $cc_temp in | |
6415 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6416 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6417 | \-*) ;; | |
6418 | *) break;; | |
6419 | esac | |
6420 | done | |
6421 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6422 | ||
6423 | ||
6424 | # Only perform the check for file, if the check method requires it | |
6425 | case $deplibs_check_method in | |
6426 | file_magic*) | |
6427 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6428 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6429 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6430 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6432 | else | |
6433 | case $MAGIC_CMD in | |
6434 | [\\/*] | ?:[\\/]*) | |
6435 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6436 | ;; | |
6437 | *) | |
6438 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6439 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6440 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6441 | for ac_dir in $ac_dummy; do | |
6442 | IFS="$lt_save_ifs" | |
6443 | test -z "$ac_dir" && ac_dir=. | |
6444 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6445 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6446 | if test -n "$file_magic_test_file"; then | |
6447 | case $deplibs_check_method in | |
6448 | "file_magic "*) | |
6449 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6450 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6451 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6452 | $EGREP "$file_magic_regex" > /dev/null; then | |
6453 | : | |
6454 | else | |
6455 | cat <<EOF 1>&2 | |
6456 | ||
6457 | *** Warning: the command libtool uses to detect shared libraries, | |
6458 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6459 | *** The result is that libtool may fail to recognize shared libraries | |
6460 | *** as such. This will affect the creation of libtool libraries that | |
6461 | *** depend on shared libraries, but programs linked with such libtool | |
6462 | *** libraries will work regardless of this problem. Nevertheless, you | |
6463 | *** may want to report the problem to your system manager and/or to | |
6464 | *** bug-libtool@gnu.org | |
6465 | ||
6466 | EOF | |
6467 | fi ;; | |
6468 | esac | |
6469 | fi | |
6470 | break | |
6471 | fi | |
6472 | done | |
6473 | IFS="$lt_save_ifs" | |
6474 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6475 | ;; | |
6476 | esac | |
6477 | fi | |
6478 | ||
6479 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6480 | if test -n "$MAGIC_CMD"; then | |
6481 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6482 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6483 | else | |
6484 | echo "$as_me:$LINENO: result: no" >&5 | |
6485 | echo "${ECHO_T}no" >&6 | |
6486 | fi | |
6487 | ||
6488 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6489 | if test -n "$ac_tool_prefix"; then | |
6490 | echo "$as_me:$LINENO: checking for file" >&5 | |
6491 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6492 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6494 | else | |
6495 | case $MAGIC_CMD in | |
6496 | [\\/*] | ?:[\\/]*) | |
6497 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6498 | ;; | |
6499 | *) | |
6500 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6501 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6502 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6503 | for ac_dir in $ac_dummy; do | |
6504 | IFS="$lt_save_ifs" | |
6505 | test -z "$ac_dir" && ac_dir=. | |
6506 | if test -f $ac_dir/file; then | |
6507 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6508 | if test -n "$file_magic_test_file"; then | |
6509 | case $deplibs_check_method in | |
6510 | "file_magic "*) | |
6511 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6512 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6513 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6514 | $EGREP "$file_magic_regex" > /dev/null; then | |
6515 | : | |
6516 | else | |
6517 | cat <<EOF 1>&2 | |
6518 | ||
6519 | *** Warning: the command libtool uses to detect shared libraries, | |
6520 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6521 | *** The result is that libtool may fail to recognize shared libraries | |
6522 | *** as such. This will affect the creation of libtool libraries that | |
6523 | *** depend on shared libraries, but programs linked with such libtool | |
6524 | *** libraries will work regardless of this problem. Nevertheless, you | |
6525 | *** may want to report the problem to your system manager and/or to | |
6526 | *** bug-libtool@gnu.org | |
6527 | ||
6528 | EOF | |
6529 | fi ;; | |
6530 | esac | |
6531 | fi | |
6532 | break | |
6533 | fi | |
6534 | done | |
6535 | IFS="$lt_save_ifs" | |
6536 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6537 | ;; | |
6538 | esac | |
6539 | fi | |
6540 | ||
6541 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6542 | if test -n "$MAGIC_CMD"; then | |
6543 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6544 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6545 | else | |
6546 | echo "$as_me:$LINENO: result: no" >&5 | |
6547 | echo "${ECHO_T}no" >&6 | |
6548 | fi | |
6549 | ||
6550 | else | |
6551 | MAGIC_CMD=: | |
6552 | fi | |
6553 | fi | |
6554 | ||
6555 | fi | |
6556 | ;; | |
6557 | esac | |
6558 | ||
6559 | enable_dlopen=no | |
6560 | enable_win32_dll=no | |
6561 | ||
6562 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6563 | if test "${enable_libtool_lock+set}" = set; then | |
6564 | enableval="$enable_libtool_lock" | |
6565 | ||
6566 | fi; | |
6567 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6568 | ||
6569 | ||
6570 | # Check whether --with-pic or --without-pic was given. | |
6571 | if test "${with_pic+set}" = set; then | |
6572 | withval="$with_pic" | |
6573 | pic_mode="$withval" | |
6574 | else | |
6575 | pic_mode=default | |
6576 | fi; | |
6577 | test -z "$pic_mode" && pic_mode=default | |
6578 | ||
6579 | # Use C for the default configuration in the libtool script | |
6580 | tagname= | |
6581 | lt_save_CC="$CC" | |
6582 | ac_ext=c | |
6583 | ac_cpp='$CPP $CPPFLAGS' | |
6584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6587 | ||
6588 | ||
6589 | # Source file extension for C test sources. | |
6590 | ac_ext=c | |
6591 | ||
6592 | # Object file extension for compiled C test sources. | |
6593 | objext=o | |
6594 | objext=$objext | |
6595 | ||
6596 | # Code to be used in simple compile tests | |
6597 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
6598 | ||
6599 | # Code to be used in simple link tests | |
6600 | lt_simple_link_test_code='int main(){return(0);}\n' | |
6601 | ||
6602 | ||
6603 | # If no C compiler was specified, use CC. | |
6604 | LTCC=${LTCC-"$CC"} | |
6605 | ||
6606 | # If no C compiler flags were specified, use CFLAGS. | |
6607 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6608 | ||
6609 | # Allow CC to be a program name with arguments. | |
6610 | compiler=$CC | |
6611 | ||
6612 | ||
6613 | # save warnings/boilerplate of simple test code | |
6614 | ac_outfile=conftest.$ac_objext | |
6615 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6616 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6617 | _lt_compiler_boilerplate=`cat conftest.err` | |
6618 | $rm conftest* | |
6619 | ||
6620 | ac_outfile=conftest.$ac_objext | |
6621 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
6622 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6623 | _lt_linker_boilerplate=`cat conftest.err` | |
6624 | $rm conftest* | |
6625 | ||
6626 | ||
6627 | ||
6628 | lt_prog_compiler_no_builtin_flag= | |
6629 | ||
6630 | if test "$GCC" = yes; then | |
6631 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6632 | ||
6633 | ||
6634 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6635 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6636 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6638 | else | |
6639 | lt_cv_prog_compiler_rtti_exceptions=no | |
6640 | ac_outfile=conftest.$ac_objext | |
6641 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6642 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6643 | # Insert the option either (1) after the last *FLAGS variable, or | |
6644 | # (2) before a word containing "conftest.", or (3) at the end. | |
6645 | # Note that $ac_compile itself does not contain backslashes and begins | |
6646 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6647 | # The option is referenced via a variable to avoid confusing sed. | |
6648 | lt_compile=`echo "$ac_compile" | $SED \ | |
6649 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6650 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6651 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 6652 | (eval echo "\"\$as_me:6652: $lt_compile\"" >&5) |
bf9f3bac | 6653 | (eval "$lt_compile" 2>conftest.err) |
6654 | ac_status=$? | |
6655 | cat conftest.err >&5 | |
86933a6e | 6656 | echo "$as_me:6656: \$? = $ac_status" >&5 |
bf9f3bac | 6657 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6658 | # The compiler can only warn and ignore the option if not recognized | |
6659 | # So say no if there are warnings other than the usual output. | |
6660 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6661 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6662 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6663 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6664 | fi | |
6665 | fi | |
6666 | $rm conftest* | |
6667 | ||
6668 | fi | |
6669 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6670 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6671 | ||
6672 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6673 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6674 | else | |
6675 | : | |
6676 | fi | |
6677 | ||
6678 | fi | |
6679 | ||
6680 | lt_prog_compiler_wl= | |
6681 | lt_prog_compiler_pic= | |
6682 | lt_prog_compiler_static= | |
6683 | ||
6684 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6685 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6686 | ||
6687 | if test "$GCC" = yes; then | |
6688 | lt_prog_compiler_wl='-Wl,' | |
6689 | lt_prog_compiler_static='-static' | |
6690 | ||
6691 | case $host_os in | |
6692 | aix*) | |
6693 | # All AIX code is PIC. | |
6694 | if test "$host_cpu" = ia64; then | |
6695 | # AIX 5 now supports IA64 processor | |
6696 | lt_prog_compiler_static='-Bstatic' | |
6697 | fi | |
6698 | ;; | |
6699 | ||
6700 | amigaos*) | |
6701 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6702 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6703 | # like `-m68040'. | |
6704 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6705 | ;; | |
6706 | ||
6707 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6708 | # PIC is the default for these OSes. | |
6709 | ;; | |
6710 | ||
6711 | mingw* | pw32* | os2*) | |
6712 | # This hack is so that the source file can tell whether it is being | |
6713 | # built for inclusion in a dll (and should export symbols for example). | |
6714 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6715 | ;; | |
6716 | ||
6717 | darwin* | rhapsody*) | |
6718 | # PIC is the default on this platform | |
6719 | # Common symbols not allowed in MH_DYLIB files | |
6720 | lt_prog_compiler_pic='-fno-common' | |
6721 | ;; | |
6722 | ||
6723 | interix3*) | |
6724 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6725 | # Instead, we relocate shared libraries at runtime. | |
6726 | ;; | |
6727 | ||
6728 | msdosdjgpp*) | |
6729 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6730 | # on systems that don't support them. | |
6731 | lt_prog_compiler_can_build_shared=no | |
6732 | enable_shared=no | |
6733 | ;; | |
6734 | ||
6735 | sysv4*MP*) | |
6736 | if test -d /usr/nec; then | |
6737 | lt_prog_compiler_pic=-Kconform_pic | |
6738 | fi | |
6739 | ;; | |
6740 | ||
6741 | hpux*) | |
6742 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6743 | # not for PA HP-UX. | |
6744 | case $host_cpu in | |
6745 | hppa*64*|ia64*) | |
6746 | # +Z the default | |
6747 | ;; | |
6748 | *) | |
6749 | lt_prog_compiler_pic='-fPIC' | |
6750 | ;; | |
6751 | esac | |
6752 | ;; | |
6753 | ||
6754 | *) | |
6755 | lt_prog_compiler_pic='-fPIC' | |
6756 | ;; | |
6757 | esac | |
6758 | else | |
6759 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6760 | case $host_os in | |
6761 | aix*) | |
6762 | lt_prog_compiler_wl='-Wl,' | |
6763 | if test "$host_cpu" = ia64; then | |
6764 | # AIX 5 now supports IA64 processor | |
6765 | lt_prog_compiler_static='-Bstatic' | |
6766 | else | |
6767 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6768 | fi | |
6769 | ;; | |
6770 | darwin*) | |
6771 | # PIC is the default on this platform | |
6772 | # Common symbols not allowed in MH_DYLIB files | |
6773 | case $cc_basename in | |
6774 | xlc*) | |
6775 | lt_prog_compiler_pic='-qnocommon' | |
6776 | lt_prog_compiler_wl='-Wl,' | |
6777 | ;; | |
6778 | esac | |
6779 | ;; | |
6780 | ||
6781 | mingw* | pw32* | os2*) | |
6782 | # This hack is so that the source file can tell whether it is being | |
6783 | # built for inclusion in a dll (and should export symbols for example). | |
6784 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6785 | ;; | |
6786 | ||
6787 | hpux9* | hpux10* | hpux11*) | |
6788 | lt_prog_compiler_wl='-Wl,' | |
6789 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6790 | # not for PA HP-UX. | |
6791 | case $host_cpu in | |
6792 | hppa*64*|ia64*) | |
6793 | # +Z the default | |
6794 | ;; | |
6795 | *) | |
6796 | lt_prog_compiler_pic='+Z' | |
6797 | ;; | |
6798 | esac | |
6799 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6800 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6801 | ;; | |
6802 | ||
6803 | irix5* | irix6* | nonstopux*) | |
6804 | lt_prog_compiler_wl='-Wl,' | |
6805 | # PIC (with -KPIC) is the default. | |
6806 | lt_prog_compiler_static='-non_shared' | |
6807 | ;; | |
6808 | ||
6809 | newsos6) | |
6810 | lt_prog_compiler_pic='-KPIC' | |
6811 | lt_prog_compiler_static='-Bstatic' | |
6812 | ;; | |
6813 | ||
6814 | linux*) | |
6815 | case $cc_basename in | |
6816 | icc* | ecc*) | |
6817 | lt_prog_compiler_wl='-Wl,' | |
6818 | lt_prog_compiler_pic='-KPIC' | |
6819 | lt_prog_compiler_static='-static' | |
6820 | ;; | |
6821 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6822 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6823 | # which looks to be a dead project) | |
6824 | lt_prog_compiler_wl='-Wl,' | |
6825 | lt_prog_compiler_pic='-fpic' | |
6826 | lt_prog_compiler_static='-Bstatic' | |
6827 | ;; | |
6828 | ccc*) | |
6829 | lt_prog_compiler_wl='-Wl,' | |
6830 | # All Alpha code is PIC. | |
6831 | lt_prog_compiler_static='-non_shared' | |
6832 | ;; | |
6833 | esac | |
6834 | ;; | |
6835 | ||
6836 | osf3* | osf4* | osf5*) | |
6837 | lt_prog_compiler_wl='-Wl,' | |
6838 | # All OSF/1 code is PIC. | |
6839 | lt_prog_compiler_static='-non_shared' | |
6840 | ;; | |
6841 | ||
6842 | solaris*) | |
6843 | lt_prog_compiler_pic='-KPIC' | |
6844 | lt_prog_compiler_static='-Bstatic' | |
6845 | case $cc_basename in | |
6846 | f77* | f90* | f95*) | |
6847 | lt_prog_compiler_wl='-Qoption ld ';; | |
6848 | *) | |
6849 | lt_prog_compiler_wl='-Wl,';; | |
6850 | esac | |
6851 | ;; | |
6852 | ||
6853 | sunos4*) | |
6854 | lt_prog_compiler_wl='-Qoption ld ' | |
6855 | lt_prog_compiler_pic='-PIC' | |
6856 | lt_prog_compiler_static='-Bstatic' | |
6857 | ;; | |
6858 | ||
6859 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
6860 | lt_prog_compiler_wl='-Wl,' | |
6861 | lt_prog_compiler_pic='-KPIC' | |
6862 | lt_prog_compiler_static='-Bstatic' | |
6863 | ;; | |
6864 | ||
6865 | sysv4*MP*) | |
6866 | if test -d /usr/nec ;then | |
6867 | lt_prog_compiler_pic='-Kconform_pic' | |
6868 | lt_prog_compiler_static='-Bstatic' | |
6869 | fi | |
6870 | ;; | |
6871 | ||
6872 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6873 | lt_prog_compiler_wl='-Wl,' | |
6874 | lt_prog_compiler_pic='-KPIC' | |
6875 | lt_prog_compiler_static='-Bstatic' | |
6876 | ;; | |
6877 | ||
6878 | unicos*) | |
6879 | lt_prog_compiler_wl='-Wl,' | |
6880 | lt_prog_compiler_can_build_shared=no | |
6881 | ;; | |
6882 | ||
6883 | uts4*) | |
6884 | lt_prog_compiler_pic='-pic' | |
6885 | lt_prog_compiler_static='-Bstatic' | |
6886 | ;; | |
6887 | ||
6888 | *) | |
6889 | lt_prog_compiler_can_build_shared=no | |
6890 | ;; | |
6891 | esac | |
6892 | fi | |
6893 | ||
6894 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6895 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6896 | ||
6897 | # | |
6898 | # Check to make sure the PIC flag actually works. | |
6899 | # | |
6900 | if test -n "$lt_prog_compiler_pic"; then | |
6901 | ||
6902 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6903 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6904 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6906 | else | |
6907 | lt_prog_compiler_pic_works=no | |
6908 | ac_outfile=conftest.$ac_objext | |
6909 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6910 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6911 | # Insert the option either (1) after the last *FLAGS variable, or | |
6912 | # (2) before a word containing "conftest.", or (3) at the end. | |
6913 | # Note that $ac_compile itself does not contain backslashes and begins | |
6914 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6915 | # The option is referenced via a variable to avoid confusing sed. | |
6916 | lt_compile=`echo "$ac_compile" | $SED \ | |
6917 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6918 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6919 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 6920 | (eval echo "\"\$as_me:6920: $lt_compile\"" >&5) |
bf9f3bac | 6921 | (eval "$lt_compile" 2>conftest.err) |
6922 | ac_status=$? | |
6923 | cat conftest.err >&5 | |
86933a6e | 6924 | echo "$as_me:6924: \$? = $ac_status" >&5 |
bf9f3bac | 6925 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6926 | # The compiler can only warn and ignore the option if not recognized | |
6927 | # So say no if there are warnings other than the usual output. | |
6928 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6929 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6930 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6931 | lt_prog_compiler_pic_works=yes | |
6932 | fi | |
6933 | fi | |
6934 | $rm conftest* | |
6935 | ||
6936 | fi | |
6937 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6938 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6939 | ||
6940 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6941 | case $lt_prog_compiler_pic in | |
6942 | "" | " "*) ;; | |
6943 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6944 | esac | |
6945 | else | |
6946 | lt_prog_compiler_pic= | |
6947 | lt_prog_compiler_can_build_shared=no | |
6948 | fi | |
6949 | ||
6950 | fi | |
6951 | case $host_os in | |
6952 | # For platforms which do not support PIC, -DPIC is meaningless: | |
6953 | *djgpp*) | |
6954 | lt_prog_compiler_pic= | |
6955 | ;; | |
6956 | *) | |
6957 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6958 | ;; | |
6959 | esac | |
6960 | ||
6961 | # | |
6962 | # Check to make sure the static flag actually works. | |
6963 | # | |
6964 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
6965 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
6966 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
6967 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6969 | else | |
6970 | lt_prog_compiler_static_works=no | |
6971 | save_LDFLAGS="$LDFLAGS" | |
6972 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
6973 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6974 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6975 | # The linker can only warn and ignore the option if not recognized | |
6976 | # So say no if there are warnings | |
6977 | if test -s conftest.err; then | |
6978 | # Append any errors to the config.log. | |
6979 | cat conftest.err 1>&5 | |
6980 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
6981 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6982 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6983 | lt_prog_compiler_static_works=yes | |
6984 | fi | |
6985 | else | |
6986 | lt_prog_compiler_static_works=yes | |
6987 | fi | |
6988 | fi | |
6989 | $rm conftest* | |
6990 | LDFLAGS="$save_LDFLAGS" | |
6991 | ||
6992 | fi | |
6993 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6994 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6995 | ||
6996 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
6997 | : | |
6998 | else | |
6999 | lt_prog_compiler_static= | |
7000 | fi | |
7001 | ||
7002 | ||
7003 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7004 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7005 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7007 | else | |
7008 | lt_cv_prog_compiler_c_o=no | |
7009 | $rm -r conftest 2>/dev/null | |
7010 | mkdir conftest | |
7011 | cd conftest | |
7012 | mkdir out | |
7013 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7014 | ||
7015 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7016 | # Insert the option either (1) after the last *FLAGS variable, or | |
7017 | # (2) before a word containing "conftest.", or (3) at the end. | |
7018 | # Note that $ac_compile itself does not contain backslashes and begins | |
7019 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7020 | lt_compile=`echo "$ac_compile" | $SED \ | |
7021 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7022 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7023 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 7024 | (eval echo "\"\$as_me:7024: $lt_compile\"" >&5) |
bf9f3bac | 7025 | (eval "$lt_compile" 2>out/conftest.err) |
7026 | ac_status=$? | |
7027 | cat out/conftest.err >&5 | |
86933a6e | 7028 | echo "$as_me:7028: \$? = $ac_status" >&5 |
bf9f3bac | 7029 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7030 | then | |
7031 | # The compiler can only warn and ignore the option if not recognized | |
7032 | # So say no if there are warnings | |
7033 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7034 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7035 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7036 | lt_cv_prog_compiler_c_o=yes | |
7037 | fi | |
7038 | fi | |
7039 | chmod u+w . 2>&5 | |
7040 | $rm conftest* | |
7041 | # SGI C++ compiler will create directory out/ii_files/ for | |
7042 | # template instantiation | |
7043 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
7044 | $rm out/* && rmdir out | |
7045 | cd .. | |
7046 | rmdir conftest | |
7047 | $rm conftest* | |
7048 | ||
7049 | fi | |
7050 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7051 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7052 | ||
7053 | ||
7054 | hard_links="nottested" | |
7055 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7056 | # do not overwrite the value of need_locks provided by the user | |
7057 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7058 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7059 | hard_links=yes | |
7060 | $rm conftest* | |
7061 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7062 | touch conftest.a | |
7063 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7064 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7065 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7066 | echo "${ECHO_T}$hard_links" >&6 | |
7067 | if test "$hard_links" = no; then | |
7068 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7069 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7070 | need_locks=warn | |
7071 | fi | |
7072 | else | |
7073 | need_locks=no | |
7074 | fi | |
7075 | ||
7076 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7077 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7078 | ||
7079 | runpath_var= | |
7080 | allow_undefined_flag= | |
7081 | enable_shared_with_static_runtimes=no | |
7082 | archive_cmds= | |
7083 | archive_expsym_cmds= | |
7084 | old_archive_From_new_cmds= | |
7085 | old_archive_from_expsyms_cmds= | |
7086 | export_dynamic_flag_spec= | |
7087 | whole_archive_flag_spec= | |
7088 | thread_safe_flag_spec= | |
7089 | hardcode_libdir_flag_spec= | |
7090 | hardcode_libdir_flag_spec_ld= | |
7091 | hardcode_libdir_separator= | |
7092 | hardcode_direct=no | |
7093 | hardcode_minus_L=no | |
7094 | hardcode_shlibpath_var=unsupported | |
7095 | link_all_deplibs=unknown | |
7096 | hardcode_automatic=no | |
7097 | module_cmds= | |
7098 | module_expsym_cmds= | |
7099 | always_export_symbols=no | |
7100 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7101 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7102 | # included in the symbol list | |
7103 | include_expsyms= | |
7104 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7105 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7106 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7107 | # as well as any symbol that contains `d'. | |
7108 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7109 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7110 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7111 | # the symbol is explicitly referenced. Since portable code cannot | |
7112 | # rely on this symbol name, it's probably fine to never include it in | |
7113 | # preloaded symbol tables. | |
7114 | extract_expsyms_cmds= | |
7115 | # Just being paranoid about ensuring that cc_basename is set. | |
7116 | for cc_temp in $compiler""; do | |
7117 | case $cc_temp in | |
7118 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7119 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7120 | \-*) ;; | |
7121 | *) break;; | |
7122 | esac | |
7123 | done | |
7124 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7125 | ||
7126 | case $host_os in | |
7127 | cygwin* | mingw* | pw32*) | |
7128 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7129 | # When not using gcc, we currently assume that we are using | |
7130 | # Microsoft Visual C++. | |
7131 | if test "$GCC" != yes; then | |
7132 | with_gnu_ld=no | |
7133 | fi | |
7134 | ;; | |
7135 | interix*) | |
7136 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7137 | with_gnu_ld=yes | |
7138 | ;; | |
7139 | openbsd*) | |
7140 | with_gnu_ld=no | |
7141 | ;; | |
7142 | esac | |
7143 | ||
7144 | ld_shlibs=yes | |
7145 | if test "$with_gnu_ld" = yes; then | |
7146 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7147 | wlarc='${wl}' | |
7148 | ||
7149 | # Set some defaults for GNU ld with shared library support. These | |
7150 | # are reset later if shared libraries are not supported. Putting them | |
7151 | # here allows them to be overridden if necessary. | |
7152 | runpath_var=LD_RUN_PATH | |
7153 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
7154 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7155 | # ancient GNU ld didn't support --whole-archive et. al. | |
7156 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
7157 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7158 | else | |
7159 | whole_archive_flag_spec= | |
7160 | fi | |
7161 | supports_anon_versioning=no | |
7162 | case `$LD -v 2>/dev/null` in | |
7163 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7164 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7165 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7166 | *\ 2.11.*) ;; # other 2.11 versions | |
7167 | *) supports_anon_versioning=yes ;; | |
7168 | esac | |
7169 | ||
7170 | # See if GNU ld supports shared libraries. | |
7171 | case $host_os in | |
7172 | aix3* | aix4* | aix5*) | |
7173 | # On AIX/PPC, the GNU linker is very broken | |
7174 | if test "$host_cpu" != ia64; then | |
7175 | ld_shlibs=no | |
7176 | cat <<EOF 1>&2 | |
7177 | ||
7178 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7179 | *** to be unable to reliably create shared libraries on AIX. | |
7180 | *** Therefore, libtool is disabling shared libraries support. If you | |
7181 | *** really care for shared libraries, you may want to modify your PATH | |
7182 | *** so that a non-GNU linker is found, and then restart. | |
7183 | ||
7184 | EOF | |
7185 | fi | |
7186 | ;; | |
7187 | ||
7188 | amigaos*) | |
7189 | 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)' | |
7190 | hardcode_libdir_flag_spec='-L$libdir' | |
7191 | hardcode_minus_L=yes | |
7192 | ||
7193 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7194 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7195 | # to version 4, is to share data among multiple programs linked | |
7196 | # with the same dynamic library. Since this doesn't match the | |
7197 | # behavior of shared libraries on other platforms, we can't use | |
7198 | # them. | |
7199 | ld_shlibs=no | |
7200 | ;; | |
7201 | ||
7202 | beos*) | |
7203 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7204 | allow_undefined_flag=unsupported | |
7205 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7206 | # support --undefined. This deserves some investigation. FIXME | |
7207 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7208 | else | |
7209 | ld_shlibs=no | |
7210 | fi | |
7211 | ;; | |
7212 | ||
7213 | cygwin* | mingw* | pw32*) | |
7214 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7215 | # as there is no search path for DLLs. | |
7216 | hardcode_libdir_flag_spec='-L$libdir' | |
7217 | allow_undefined_flag=unsupported | |
7218 | always_export_symbols=no | |
7219 | enable_shared_with_static_runtimes=yes | |
7220 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
7221 | ||
7222 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
7223 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7224 | # If the export-symbols file already is a .def file (1st line | |
7225 | # is EXPORTS), use it as is; otherwise, prepend... | |
7226 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7227 | cp $export_symbols $output_objdir/$soname.def; | |
7228 | else | |
7229 | echo EXPORTS > $output_objdir/$soname.def; | |
7230 | cat $export_symbols >> $output_objdir/$soname.def; | |
7231 | fi~ | |
7232 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7233 | else | |
7234 | ld_shlibs=no | |
7235 | fi | |
7236 | ;; | |
7237 | ||
7238 | interix3*) | |
7239 | hardcode_direct=no | |
7240 | hardcode_shlibpath_var=no | |
7241 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7242 | export_dynamic_flag_spec='${wl}-E' | |
7243 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7244 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7245 | # default) and relocated if they conflict, which is a slow very memory | |
7246 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7247 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7248 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7249 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7250 | 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' | |
7251 | ;; | |
7252 | ||
7253 | linux*) | |
7254 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7255 | tmp_addflag= | |
7256 | case $cc_basename,$host_cpu in | |
7257 | pgcc*) # Portland Group C compiler | |
7258 | 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' | |
7259 | tmp_addflag=' $pic_flag' | |
7260 | ;; | |
7261 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7262 | 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' | |
7263 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7264 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7265 | tmp_addflag=' -i_dynamic' ;; | |
7266 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7267 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7268 | ifc* | ifort*) # Intel Fortran compiler | |
7269 | tmp_addflag=' -nofor_main' ;; | |
7270 | esac | |
7271 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7272 | ||
7273 | if test $supports_anon_versioning = yes; then | |
7274 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7275 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7276 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7277 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7278 | fi | |
7279 | else | |
7280 | ld_shlibs=no | |
7281 | fi | |
7282 | ;; | |
7283 | ||
7284 | netbsd*) | |
7285 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7286 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7287 | wlarc= | |
7288 | else | |
7289 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7290 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7291 | fi | |
7292 | ;; | |
7293 | ||
7294 | solaris*) | |
7295 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
7296 | ld_shlibs=no | |
7297 | cat <<EOF 1>&2 | |
7298 | ||
7299 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7300 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7301 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7302 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7303 | *** your PATH or compiler configuration so that the native linker is | |
7304 | *** used, and then restart. | |
7305 | ||
7306 | EOF | |
7307 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7308 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7309 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7310 | else | |
7311 | ld_shlibs=no | |
7312 | fi | |
7313 | ;; | |
7314 | ||
7315 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7316 | case `$LD -v 2>&1` in | |
7317 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7318 | ld_shlibs=no | |
7319 | cat <<_LT_EOF 1>&2 | |
7320 | ||
7321 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7322 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7323 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7324 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7325 | *** your PATH or compiler configuration so that the native linker is | |
7326 | *** used, and then restart. | |
7327 | ||
7328 | _LT_EOF | |
7329 | ;; | |
7330 | *) | |
7331 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7332 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
7333 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
7334 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
7335 | else | |
7336 | ld_shlibs=no | |
7337 | fi | |
7338 | ;; | |
7339 | esac | |
7340 | ;; | |
7341 | ||
7342 | sunos4*) | |
7343 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7344 | wlarc= | |
7345 | hardcode_direct=yes | |
7346 | hardcode_shlibpath_var=no | |
7347 | ;; | |
7348 | ||
7349 | *) | |
7350 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7351 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7352 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7353 | else | |
7354 | ld_shlibs=no | |
7355 | fi | |
7356 | ;; | |
7357 | esac | |
7358 | ||
7359 | if test "$ld_shlibs" = no; then | |
7360 | runpath_var= | |
7361 | hardcode_libdir_flag_spec= | |
7362 | export_dynamic_flag_spec= | |
7363 | whole_archive_flag_spec= | |
7364 | fi | |
7365 | else | |
7366 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7367 | case $host_os in | |
7368 | aix3*) | |
7369 | allow_undefined_flag=unsupported | |
7370 | always_export_symbols=yes | |
7371 | 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' | |
7372 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7373 | # are no directories specified by -L. | |
7374 | hardcode_minus_L=yes | |
7375 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7376 | # Neither direct hardcoding nor static linking is supported with a | |
7377 | # broken collect2. | |
7378 | hardcode_direct=unsupported | |
7379 | fi | |
7380 | ;; | |
7381 | ||
7382 | aix4* | aix5*) | |
7383 | if test "$host_cpu" = ia64; then | |
7384 | # On IA64, the linker does run time linking by default, so we don't | |
7385 | # have to do anything special. | |
7386 | aix_use_runtimelinking=no | |
7387 | exp_sym_flag='-Bexport' | |
7388 | no_entry_flag="" | |
7389 | else | |
7390 | # If we're using GNU nm, then we don't want the "-C" option. | |
7391 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7392 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
7393 | 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' | |
7394 | else | |
7395 | 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' | |
7396 | fi | |
7397 | aix_use_runtimelinking=no | |
7398 | ||
7399 | # Test if we are trying to use run time linking or normal | |
7400 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7401 | # need to do runtime linking. | |
7402 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7403 | for ld_flag in $LDFLAGS; do | |
7404 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7405 | aix_use_runtimelinking=yes | |
7406 | break | |
7407 | fi | |
7408 | done | |
7409 | ;; | |
7410 | esac | |
7411 | ||
7412 | exp_sym_flag='-bexport' | |
7413 | no_entry_flag='-bnoentry' | |
7414 | fi | |
7415 | ||
7416 | # When large executables or shared objects are built, AIX ld can | |
7417 | # have problems creating the table of contents. If linking a library | |
7418 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7419 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7420 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7421 | ||
7422 | archive_cmds='' | |
7423 | hardcode_direct=yes | |
7424 | hardcode_libdir_separator=':' | |
7425 | link_all_deplibs=yes | |
7426 | ||
7427 | if test "$GCC" = yes; then | |
7428 | case $host_os in aix4.[012]|aix4.[012].*) | |
7429 | # We only want to do this on AIX 4.2 and lower, the check | |
7430 | # below for broken collect2 doesn't work under 4.3+ | |
7431 | collect2name=`${CC} -print-prog-name=collect2` | |
7432 | if test -f "$collect2name" && \ | |
7433 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7434 | then | |
7435 | # We have reworked collect2 | |
7436 | hardcode_direct=yes | |
7437 | else | |
7438 | # We have old collect2 | |
7439 | hardcode_direct=unsupported | |
7440 | # It fails to find uninstalled libraries when the uninstalled | |
7441 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7442 | # to unsupported forces relinking | |
7443 | hardcode_minus_L=yes | |
7444 | hardcode_libdir_flag_spec='-L$libdir' | |
7445 | hardcode_libdir_separator= | |
7446 | fi | |
7447 | ;; | |
7448 | esac | |
7449 | shared_flag='-shared' | |
7450 | if test "$aix_use_runtimelinking" = yes; then | |
7451 | shared_flag="$shared_flag "'${wl}-G' | |
7452 | fi | |
7453 | else | |
7454 | # not using gcc | |
7455 | if test "$host_cpu" = ia64; then | |
7456 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7457 | # chokes on -Wl,-G. The following line is correct: | |
7458 | shared_flag='-G' | |
7459 | else | |
7460 | if test "$aix_use_runtimelinking" = yes; then | |
7461 | shared_flag='${wl}-G' | |
7462 | else | |
7463 | shared_flag='${wl}-bM:SRE' | |
7464 | fi | |
7465 | fi | |
7466 | fi | |
7467 | ||
7468 | # It seems that -bexpall does not export symbols beginning with | |
7469 | # underscore (_), so it is better to generate a list of symbols to export. | |
7470 | always_export_symbols=yes | |
7471 | if test "$aix_use_runtimelinking" = yes; then | |
7472 | # Warning - without using the other runtime loading flags (-brtl), | |
7473 | # -berok will link without error, but may produce a broken library. | |
7474 | allow_undefined_flag='-berok' | |
7475 | # Determine the default libpath from the value encoded in an empty executable. | |
7476 | cat >conftest.$ac_ext <<_ACEOF | |
7477 | /* confdefs.h. */ | |
7478 | _ACEOF | |
7479 | cat confdefs.h >>conftest.$ac_ext | |
7480 | cat >>conftest.$ac_ext <<_ACEOF | |
7481 | /* end confdefs.h. */ | |
7482 | ||
7483 | int | |
7484 | main () | |
7485 | { | |
7486 | ||
7487 | ; | |
7488 | return 0; | |
7489 | } | |
7490 | _ACEOF | |
7491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7493 | (eval $ac_link) 2>conftest.er1 | |
7494 | ac_status=$? | |
7495 | grep -v '^ *+' conftest.er1 >conftest.err | |
7496 | rm -f conftest.er1 | |
7497 | cat conftest.err >&5 | |
7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7499 | (exit $ac_status); } && | |
7500 | { ac_try='test -z "$ac_c_werror_flag" | |
7501 | || test ! -s conftest.err' | |
7502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7503 | (eval $ac_try) 2>&5 | |
7504 | ac_status=$? | |
7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7506 | (exit $ac_status); }; } && | |
7507 | { ac_try='test -s conftest$ac_exeext' | |
7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7509 | (eval $ac_try) 2>&5 | |
7510 | ac_status=$? | |
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7512 | (exit $ac_status); }; }; then | |
7513 | ||
7514 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7515 | }'` | |
7516 | # Check for a 64-bit object if we didn't find anything. | |
7517 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7518 | }'`; fi | |
7519 | else | |
7520 | echo "$as_me: failed program was:" >&5 | |
7521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7522 | ||
7523 | fi | |
7524 | rm -f conftest.err conftest.$ac_objext \ | |
7525 | conftest$ac_exeext conftest.$ac_ext | |
7526 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7527 | ||
7528 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7529 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7530 | else | |
7531 | if test "$host_cpu" = ia64; then | |
7532 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7533 | allow_undefined_flag="-z nodefs" | |
7534 | 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" | |
7535 | else | |
7536 | # Determine the default libpath from the value encoded in an empty executable. | |
7537 | cat >conftest.$ac_ext <<_ACEOF | |
7538 | /* confdefs.h. */ | |
7539 | _ACEOF | |
7540 | cat confdefs.h >>conftest.$ac_ext | |
7541 | cat >>conftest.$ac_ext <<_ACEOF | |
7542 | /* end confdefs.h. */ | |
7543 | ||
7544 | int | |
7545 | main () | |
7546 | { | |
7547 | ||
7548 | ; | |
7549 | return 0; | |
7550 | } | |
7551 | _ACEOF | |
7552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7554 | (eval $ac_link) 2>conftest.er1 | |
7555 | ac_status=$? | |
7556 | grep -v '^ *+' conftest.er1 >conftest.err | |
7557 | rm -f conftest.er1 | |
7558 | cat conftest.err >&5 | |
7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7560 | (exit $ac_status); } && | |
7561 | { ac_try='test -z "$ac_c_werror_flag" | |
7562 | || test ! -s conftest.err' | |
7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7564 | (eval $ac_try) 2>&5 | |
7565 | ac_status=$? | |
7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7567 | (exit $ac_status); }; } && | |
7568 | { ac_try='test -s conftest$ac_exeext' | |
7569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7570 | (eval $ac_try) 2>&5 | |
7571 | ac_status=$? | |
7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7573 | (exit $ac_status); }; }; then | |
7574 | ||
7575 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7576 | }'` | |
7577 | # Check for a 64-bit object if we didn't find anything. | |
7578 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7579 | }'`; fi | |
7580 | else | |
7581 | echo "$as_me: failed program was:" >&5 | |
7582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7583 | ||
7584 | fi | |
7585 | rm -f conftest.err conftest.$ac_objext \ | |
7586 | conftest$ac_exeext conftest.$ac_ext | |
7587 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7588 | ||
7589 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7590 | # Warning - without using the other run time loading flags, | |
7591 | # -berok will link without error, but may produce a broken library. | |
7592 | no_undefined_flag=' ${wl}-bernotok' | |
7593 | allow_undefined_flag=' ${wl}-berok' | |
7594 | # Exported symbols can be pulled into shared objects from archives | |
7595 | whole_archive_flag_spec='$convenience' | |
7596 | archive_cmds_need_lc=yes | |
7597 | # This is similar to how AIX traditionally builds its shared libraries. | |
7598 | 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' | |
7599 | fi | |
7600 | fi | |
7601 | ;; | |
7602 | ||
7603 | amigaos*) | |
7604 | 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)' | |
7605 | hardcode_libdir_flag_spec='-L$libdir' | |
7606 | hardcode_minus_L=yes | |
7607 | # see comment about different semantics on the GNU ld section | |
7608 | ld_shlibs=no | |
7609 | ;; | |
7610 | ||
7611 | bsdi[45]*) | |
7612 | export_dynamic_flag_spec=-rdynamic | |
7613 | ;; | |
7614 | ||
7615 | cygwin* | mingw* | pw32*) | |
7616 | # When not using gcc, we currently assume that we are using | |
7617 | # Microsoft Visual C++. | |
7618 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7619 | # no search path for DLLs. | |
7620 | hardcode_libdir_flag_spec=' ' | |
7621 | allow_undefined_flag=unsupported | |
7622 | # Tell ltmain to make .lib files, not .a files. | |
7623 | libext=lib | |
7624 | # Tell ltmain to make .dll files, not .so files. | |
7625 | shrext_cmds=".dll" | |
7626 | # FIXME: Setting linknames here is a bad hack. | |
7627 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7628 | # The linker will automatically build a .lib file if we build a DLL. | |
7629 | old_archive_From_new_cmds='true' | |
7630 | # FIXME: Should let the user specify the lib program. | |
7631 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7632 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7633 | enable_shared_with_static_runtimes=yes | |
7634 | ;; | |
7635 | ||
7636 | darwin* | rhapsody*) | |
7637 | case $host_os in | |
7638 | rhapsody* | darwin1.[012]) | |
7639 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7640 | ;; | |
7641 | *) # Darwin 1.3 on | |
7642 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7643 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7644 | else | |
7645 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
7646 | 10.[012]) | |
7647 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7648 | ;; | |
7649 | 10.*) | |
7650 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7651 | ;; | |
7652 | esac | |
7653 | fi | |
7654 | ;; | |
7655 | esac | |
7656 | archive_cmds_need_lc=no | |
7657 | hardcode_direct=no | |
7658 | hardcode_automatic=yes | |
7659 | hardcode_shlibpath_var=unsupported | |
7660 | whole_archive_flag_spec='' | |
7661 | link_all_deplibs=yes | |
7662 | if test "$GCC" = yes ; then | |
7663 | output_verbose_link_cmd='echo' | |
7664 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7665 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7666 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7667 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7668 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7669 | else | |
7670 | case $cc_basename in | |
7671 | xlc*) | |
7672 | output_verbose_link_cmd='echo' | |
7673 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
7674 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7675 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7676 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7677 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7678 | ;; | |
7679 | *) | |
7680 | ld_shlibs=no | |
7681 | ;; | |
7682 | esac | |
7683 | fi | |
7684 | ;; | |
7685 | ||
7686 | dgux*) | |
7687 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7688 | hardcode_libdir_flag_spec='-L$libdir' | |
7689 | hardcode_shlibpath_var=no | |
7690 | ;; | |
7691 | ||
7692 | freebsd1*) | |
7693 | ld_shlibs=no | |
7694 | ;; | |
7695 | ||
7696 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7697 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7698 | # does not break anything, and helps significantly (at the cost of a little | |
7699 | # extra space). | |
7700 | freebsd2.2*) | |
7701 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7702 | hardcode_libdir_flag_spec='-R$libdir' | |
7703 | hardcode_direct=yes | |
7704 | hardcode_shlibpath_var=no | |
7705 | ;; | |
7706 | ||
7707 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7708 | freebsd2*) | |
7709 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7710 | hardcode_direct=yes | |
7711 | hardcode_minus_L=yes | |
7712 | hardcode_shlibpath_var=no | |
7713 | ;; | |
7714 | ||
7715 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7716 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
7717 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7718 | hardcode_libdir_flag_spec='-R$libdir' | |
7719 | hardcode_direct=yes | |
7720 | hardcode_shlibpath_var=no | |
7721 | ;; | |
7722 | ||
7723 | hpux9*) | |
7724 | if test "$GCC" = yes; then | |
7725 | 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' | |
7726 | else | |
7727 | 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' | |
7728 | fi | |
7729 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7730 | hardcode_libdir_separator=: | |
7731 | hardcode_direct=yes | |
7732 | ||
7733 | # hardcode_minus_L: Not really in the search PATH, | |
7734 | # but as the default location of the library. | |
7735 | hardcode_minus_L=yes | |
7736 | export_dynamic_flag_spec='${wl}-E' | |
7737 | ;; | |
7738 | ||
7739 | hpux10*) | |
7740 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7741 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7742 | else | |
7743 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7744 | fi | |
7745 | if test "$with_gnu_ld" = no; then | |
7746 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7747 | hardcode_libdir_separator=: | |
7748 | ||
7749 | hardcode_direct=yes | |
7750 | export_dynamic_flag_spec='${wl}-E' | |
7751 | ||
7752 | # hardcode_minus_L: Not really in the search PATH, | |
7753 | # but as the default location of the library. | |
7754 | hardcode_minus_L=yes | |
7755 | fi | |
7756 | ;; | |
7757 | ||
7758 | hpux11*) | |
7759 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7760 | case $host_cpu in | |
7761 | hppa*64*) | |
7762 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7763 | ;; | |
7764 | ia64*) | |
7765 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7766 | ;; | |
7767 | *) | |
7768 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7769 | ;; | |
7770 | esac | |
7771 | else | |
7772 | case $host_cpu in | |
7773 | hppa*64*) | |
7774 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7775 | ;; | |
7776 | ia64*) | |
7777 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7778 | ;; | |
7779 | *) | |
7780 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7781 | ;; | |
7782 | esac | |
7783 | fi | |
7784 | if test "$with_gnu_ld" = no; then | |
7785 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7786 | hardcode_libdir_separator=: | |
7787 | ||
7788 | case $host_cpu in | |
7789 | hppa*64*|ia64*) | |
7790 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
7791 | hardcode_direct=no | |
7792 | hardcode_shlibpath_var=no | |
7793 | ;; | |
7794 | *) | |
7795 | hardcode_direct=yes | |
7796 | export_dynamic_flag_spec='${wl}-E' | |
7797 | ||
7798 | # hardcode_minus_L: Not really in the search PATH, | |
7799 | # but as the default location of the library. | |
7800 | hardcode_minus_L=yes | |
7801 | ;; | |
7802 | esac | |
7803 | fi | |
7804 | ;; | |
7805 | ||
7806 | irix5* | irix6* | nonstopux*) | |
7807 | if test "$GCC" = yes; then | |
7808 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7809 | else | |
7810 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
7811 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7812 | fi | |
7813 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7814 | hardcode_libdir_separator=: | |
7815 | link_all_deplibs=yes | |
7816 | ;; | |
7817 | ||
7818 | netbsd*) | |
7819 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7820 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7821 | else | |
7822 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7823 | fi | |
7824 | hardcode_libdir_flag_spec='-R$libdir' | |
7825 | hardcode_direct=yes | |
7826 | hardcode_shlibpath_var=no | |
7827 | ;; | |
7828 | ||
7829 | newsos6) | |
7830 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7831 | hardcode_direct=yes | |
7832 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7833 | hardcode_libdir_separator=: | |
7834 | hardcode_shlibpath_var=no | |
7835 | ;; | |
7836 | ||
7837 | openbsd*) | |
7838 | hardcode_direct=yes | |
7839 | hardcode_shlibpath_var=no | |
7840 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7841 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7842 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7843 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7844 | export_dynamic_flag_spec='${wl}-E' | |
7845 | else | |
7846 | case $host_os in | |
7847 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7848 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7849 | hardcode_libdir_flag_spec='-R$libdir' | |
7850 | ;; | |
7851 | *) | |
7852 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7853 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7854 | ;; | |
7855 | esac | |
7856 | fi | |
7857 | ;; | |
7858 | ||
7859 | os2*) | |
7860 | hardcode_libdir_flag_spec='-L$libdir' | |
7861 | hardcode_minus_L=yes | |
7862 | allow_undefined_flag=unsupported | |
7863 | 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' | |
7864 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7865 | ;; | |
7866 | ||
7867 | osf3*) | |
7868 | if test "$GCC" = yes; then | |
7869 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7870 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7871 | else | |
7872 | allow_undefined_flag=' -expect_unresolved \*' | |
7873 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
7874 | fi | |
7875 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7876 | hardcode_libdir_separator=: | |
7877 | ;; | |
7878 | ||
7879 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7880 | if test "$GCC" = yes; then | |
7881 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7882 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7883 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7884 | else | |
7885 | allow_undefined_flag=' -expect_unresolved \*' | |
7886 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
7887 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7888 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
7889 | ||
7890 | # Both c and cxx compiler support -rpath directly | |
7891 | hardcode_libdir_flag_spec='-rpath $libdir' | |
7892 | fi | |
7893 | hardcode_libdir_separator=: | |
7894 | ;; | |
7895 | ||
7896 | solaris*) | |
7897 | no_undefined_flag=' -z text' | |
7898 | if test "$GCC" = yes; then | |
7899 | wlarc='${wl}' | |
7900 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7901 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7902 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7903 | else | |
7904 | wlarc='' | |
7905 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7906 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7907 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7908 | fi | |
7909 | hardcode_libdir_flag_spec='-R$libdir' | |
7910 | hardcode_shlibpath_var=no | |
7911 | case $host_os in | |
7912 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7913 | *) | |
7914 | # The compiler driver will combine linker options so we | |
7915 | # cannot just pass the convience library names through | |
7916 | # without $wl, iff we do not link with $LD. | |
7917 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7918 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7919 | case $wlarc in | |
7920 | '') | |
7921 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7922 | *) | |
7923 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
7924 | esac ;; | |
7925 | esac | |
7926 | link_all_deplibs=yes | |
7927 | ;; | |
7928 | ||
7929 | sunos4*) | |
7930 | if test "x$host_vendor" = xsequent; then | |
7931 | # Use $CC to link under sequent, because it throws in some extra .o | |
7932 | # files that make .init and .fini sections work. | |
7933 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7934 | else | |
7935 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7936 | fi | |
7937 | hardcode_libdir_flag_spec='-L$libdir' | |
7938 | hardcode_direct=yes | |
7939 | hardcode_minus_L=yes | |
7940 | hardcode_shlibpath_var=no | |
7941 | ;; | |
7942 | ||
7943 | sysv4) | |
7944 | case $host_vendor in | |
7945 | sni) | |
7946 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7947 | hardcode_direct=yes # is this really true??? | |
7948 | ;; | |
7949 | siemens) | |
7950 | ## LD is ld it makes a PLAMLIB | |
7951 | ## CC just makes a GrossModule. | |
7952 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7953 | reload_cmds='$CC -r -o $output$reload_objs' | |
7954 | hardcode_direct=no | |
7955 | ;; | |
7956 | motorola) | |
7957 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7958 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
7959 | ;; | |
7960 | esac | |
7961 | runpath_var='LD_RUN_PATH' | |
7962 | hardcode_shlibpath_var=no | |
7963 | ;; | |
7964 | ||
7965 | sysv4.3*) | |
7966 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7967 | hardcode_shlibpath_var=no | |
7968 | export_dynamic_flag_spec='-Bexport' | |
7969 | ;; | |
7970 | ||
7971 | sysv4*MP*) | |
7972 | if test -d /usr/nec; then | |
7973 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7974 | hardcode_shlibpath_var=no | |
7975 | runpath_var=LD_RUN_PATH | |
7976 | hardcode_runpath_var=yes | |
7977 | ld_shlibs=yes | |
7978 | fi | |
7979 | ;; | |
7980 | ||
7981 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
7982 | no_undefined_flag='${wl}-z,text' | |
7983 | archive_cmds_need_lc=no | |
7984 | hardcode_shlibpath_var=no | |
7985 | runpath_var='LD_RUN_PATH' | |
7986 | ||
7987 | if test "$GCC" = yes; then | |
7988 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7989 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7990 | else | |
7991 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7992 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7993 | fi | |
7994 | ;; | |
7995 | ||
7996 | sysv5* | sco3.2v5* | sco5v6*) | |
7997 | # Note: We can NOT use -z defs as we might desire, because we do not | |
7998 | # link with -lc, and that would cause any symbols used from libc to | |
7999 | # always be unresolved, which means just about no library would | |
8000 | # ever link correctly. If we're not using GNU ld we use -z text | |
8001 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8002 | # as -z defs. | |
8003 | no_undefined_flag='${wl}-z,text' | |
8004 | allow_undefined_flag='${wl}-z,nodefs' | |
8005 | archive_cmds_need_lc=no | |
8006 | hardcode_shlibpath_var=no | |
8007 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
8008 | hardcode_libdir_separator=':' | |
8009 | link_all_deplibs=yes | |
8010 | export_dynamic_flag_spec='${wl}-Bexport' | |
8011 | runpath_var='LD_RUN_PATH' | |
8012 | ||
8013 | if test "$GCC" = yes; then | |
8014 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8015 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8016 | else | |
8017 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8018 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8019 | fi | |
8020 | ;; | |
8021 | ||
8022 | uts4*) | |
8023 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8024 | hardcode_libdir_flag_spec='-L$libdir' | |
8025 | hardcode_shlibpath_var=no | |
8026 | ;; | |
8027 | ||
8028 | *) | |
8029 | ld_shlibs=no | |
8030 | ;; | |
8031 | esac | |
8032 | fi | |
8033 | ||
8034 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8035 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8036 | test "$ld_shlibs" = no && can_build_shared=no | |
8037 | ||
8038 | # | |
8039 | # Do we need to explicitly link libc? | |
8040 | # | |
8041 | case "x$archive_cmds_need_lc" in | |
8042 | x|xyes) | |
8043 | # Assume -lc should be added | |
8044 | archive_cmds_need_lc=yes | |
8045 | ||
8046 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8047 | case $archive_cmds in | |
8048 | *'~'*) | |
8049 | # FIXME: we may have to deal with multi-command sequences. | |
8050 | ;; | |
8051 | '$CC '*) | |
8052 | # Test whether the compiler implicitly links with -lc since on some | |
8053 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8054 | # to ld, don't add -lc before -lgcc. | |
8055 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8056 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8057 | $rm conftest* | |
8058 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8059 | ||
8060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8061 | (eval $ac_compile) 2>&5 | |
8062 | ac_status=$? | |
8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8064 | (exit $ac_status); } 2>conftest.err; then | |
8065 | soname=conftest | |
8066 | lib=conftest | |
8067 | libobjs=conftest.$ac_objext | |
8068 | deplibs= | |
8069 | wl=$lt_prog_compiler_wl | |
8070 | pic_flag=$lt_prog_compiler_pic | |
8071 | compiler_flags=-v | |
8072 | linker_flags=-v | |
8073 | verstring= | |
8074 | output_objdir=. | |
8075 | libname=conftest | |
8076 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8077 | allow_undefined_flag= | |
8078 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8079 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8080 | ac_status=$? | |
8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8082 | (exit $ac_status); } | |
8083 | then | |
8084 | archive_cmds_need_lc=no | |
8085 | else | |
8086 | archive_cmds_need_lc=yes | |
8087 | fi | |
8088 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8089 | else | |
8090 | cat conftest.err 1>&5 | |
8091 | fi | |
8092 | $rm conftest* | |
8093 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8094 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8095 | ;; | |
8096 | esac | |
8097 | fi | |
8098 | ;; | |
8099 | esac | |
8100 | ||
8101 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8102 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8103 | library_names_spec= | |
8104 | libname_spec='lib$name' | |
8105 | soname_spec= | |
8106 | shrext_cmds=".so" | |
8107 | postinstall_cmds= | |
8108 | postuninstall_cmds= | |
8109 | finish_cmds= | |
8110 | finish_eval= | |
8111 | shlibpath_var= | |
8112 | shlibpath_overrides_runpath=unknown | |
8113 | version_type=none | |
8114 | dynamic_linker="$host_os ld.so" | |
8115 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8116 | if test "$GCC" = yes; then | |
8117 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8118 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8119 | # if the path contains ";" then we assume it to be the separator | |
8120 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8121 | # assumed that no part of a normal pathname contains ";" but that should | |
8122 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8123 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8124 | else | |
8125 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8126 | fi | |
8127 | else | |
8128 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8129 | fi | |
8130 | need_lib_prefix=unknown | |
8131 | hardcode_into_libs=no | |
8132 | ||
8133 | # when you set need_version to no, make sure it does not cause -set_version | |
8134 | # flags to be left without arguments | |
8135 | need_version=unknown | |
8136 | ||
8137 | case $host_os in | |
8138 | aix3*) | |
8139 | version_type=linux | |
8140 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8141 | shlibpath_var=LIBPATH | |
8142 | ||
8143 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8144 | soname_spec='${libname}${release}${shared_ext}$major' | |
8145 | ;; | |
8146 | ||
8147 | aix4* | aix5*) | |
8148 | version_type=linux | |
8149 | need_lib_prefix=no | |
8150 | need_version=no | |
8151 | hardcode_into_libs=yes | |
8152 | if test "$host_cpu" = ia64; then | |
8153 | # AIX 5 supports IA64 | |
8154 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8155 | shlibpath_var=LD_LIBRARY_PATH | |
8156 | else | |
8157 | # With GCC up to 2.95.x, collect2 would create an import file | |
8158 | # for dependence libraries. The import file would start with | |
8159 | # the line `#! .'. This would cause the generated library to | |
8160 | # depend on `.', always an invalid library. This was fixed in | |
8161 | # development snapshots of GCC prior to 3.0. | |
8162 | case $host_os in | |
8163 | aix4 | aix4.[01] | aix4.[01].*) | |
8164 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8165 | echo ' yes ' | |
8166 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8167 | : | |
8168 | else | |
8169 | can_build_shared=no | |
8170 | fi | |
8171 | ;; | |
8172 | esac | |
8173 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8174 | # soname into executable. Probably we can add versioning support to | |
8175 | # collect2, so additional links can be useful in future. | |
8176 | if test "$aix_use_runtimelinking" = yes; then | |
8177 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8178 | # instead of lib<name>.a to let people know that these are not | |
8179 | # typical AIX shared libraries. | |
8180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8181 | else | |
8182 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8183 | # and later when we are not doing run time linking. | |
8184 | library_names_spec='${libname}${release}.a $libname.a' | |
8185 | soname_spec='${libname}${release}${shared_ext}$major' | |
8186 | fi | |
8187 | shlibpath_var=LIBPATH | |
8188 | fi | |
8189 | ;; | |
8190 | ||
8191 | amigaos*) | |
8192 | library_names_spec='$libname.ixlibrary $libname.a' | |
8193 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8194 | 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' | |
8195 | ;; | |
8196 | ||
8197 | beos*) | |
8198 | library_names_spec='${libname}${shared_ext}' | |
8199 | dynamic_linker="$host_os ld.so" | |
8200 | shlibpath_var=LIBRARY_PATH | |
8201 | ;; | |
8202 | ||
8203 | bsdi[45]*) | |
8204 | version_type=linux | |
8205 | need_version=no | |
8206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8207 | soname_spec='${libname}${release}${shared_ext}$major' | |
8208 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8209 | shlibpath_var=LD_LIBRARY_PATH | |
8210 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8211 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8212 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8213 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8214 | # libtool to hard-code these into programs | |
8215 | ;; | |
8216 | ||
8217 | cygwin* | mingw* | pw32*) | |
8218 | version_type=windows | |
8219 | shrext_cmds=".dll" | |
8220 | need_version=no | |
8221 | need_lib_prefix=no | |
8222 | ||
8223 | case $GCC,$host_os in | |
8224 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8225 | library_names_spec='$libname.dll.a' | |
8226 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8227 | postinstall_cmds='base_file=`basename \${file}`~ | |
8228 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
8229 | dldir=$destdir/`dirname \$dlpath`~ | |
8230 | test -d \$dldir || mkdir -p \$dldir~ | |
8231 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8232 | chmod a+x \$dldir/$dlname' | |
8233 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8234 | dlpath=$dir/\$dldll~ | |
8235 | $rm \$dlpath' | |
8236 | shlibpath_overrides_runpath=yes | |
8237 | ||
8238 | case $host_os in | |
8239 | cygwin*) | |
8240 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8241 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8242 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8243 | ;; | |
8244 | mingw*) | |
8245 | # MinGW DLLs use traditional 'lib' prefix | |
8246 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8247 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8248 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
8249 | # It is most probably a Windows format PATH printed by | |
8250 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8251 | # path with ; separators, and with drive letters. We can handle the | |
8252 | # drive letters (cygwin fileutils understands them), so leave them, | |
8253 | # especially as we might pass files found there to a mingw objdump, | |
8254 | # which wouldn't understand a cygwinified path. Ahh. | |
8255 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8256 | else | |
8257 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8258 | fi | |
8259 | ;; | |
8260 | pw32*) | |
8261 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8262 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8263 | ;; | |
8264 | esac | |
8265 | ;; | |
8266 | ||
8267 | *) | |
8268 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8269 | ;; | |
8270 | esac | |
8271 | dynamic_linker='Win32 ld.exe' | |
8272 | # FIXME: first we should search . and the directory the executable is in | |
8273 | shlibpath_var=PATH | |
8274 | ;; | |
8275 | ||
8276 | darwin* | rhapsody*) | |
8277 | dynamic_linker="$host_os dyld" | |
8278 | version_type=darwin | |
8279 | need_lib_prefix=no | |
8280 | need_version=no | |
8281 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8282 | soname_spec='${libname}${release}${major}$shared_ext' | |
8283 | shlibpath_overrides_runpath=yes | |
8284 | shlibpath_var=DYLD_LIBRARY_PATH | |
8285 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8286 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
8287 | if test "$GCC" = yes; then | |
8288 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
8289 | else | |
8290 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8291 | fi | |
8292 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8293 | ;; | |
8294 | ||
8295 | dgux*) | |
8296 | version_type=linux | |
8297 | need_lib_prefix=no | |
8298 | need_version=no | |
8299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8300 | soname_spec='${libname}${release}${shared_ext}$major' | |
8301 | shlibpath_var=LD_LIBRARY_PATH | |
8302 | ;; | |
8303 | ||
8304 | freebsd1*) | |
8305 | dynamic_linker=no | |
8306 | ;; | |
8307 | ||
8308 | kfreebsd*-gnu) | |
8309 | version_type=linux | |
8310 | need_lib_prefix=no | |
8311 | need_version=no | |
8312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8313 | soname_spec='${libname}${release}${shared_ext}$major' | |
8314 | shlibpath_var=LD_LIBRARY_PATH | |
8315 | shlibpath_overrides_runpath=no | |
8316 | hardcode_into_libs=yes | |
8317 | dynamic_linker='GNU ld.so' | |
8318 | ;; | |
8319 | ||
8320 | freebsd* | dragonfly*) | |
8321 | # DragonFly does not have aout. When/if they implement a new | |
8322 | # versioning mechanism, adjust this. | |
8323 | if test -x /usr/bin/objformat; then | |
8324 | objformat=`/usr/bin/objformat` | |
8325 | else | |
8326 | case $host_os in | |
8327 | freebsd[123]*) objformat=aout ;; | |
8328 | *) objformat=elf ;; | |
8329 | esac | |
8330 | fi | |
8331 | version_type=freebsd-$objformat | |
8332 | case $version_type in | |
8333 | freebsd-elf*) | |
8334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8335 | need_version=no | |
8336 | need_lib_prefix=no | |
8337 | ;; | |
8338 | freebsd-*) | |
8339 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8340 | need_version=yes | |
8341 | ;; | |
8342 | esac | |
8343 | shlibpath_var=LD_LIBRARY_PATH | |
8344 | case $host_os in | |
8345 | freebsd2*) | |
8346 | shlibpath_overrides_runpath=yes | |
8347 | ;; | |
8348 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8349 | shlibpath_overrides_runpath=yes | |
8350 | hardcode_into_libs=yes | |
8351 | ;; | |
8352 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8353 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8354 | shlibpath_overrides_runpath=no | |
8355 | hardcode_into_libs=yes | |
8356 | ;; | |
8357 | freebsd*) # from 4.6 on | |
8358 | shlibpath_overrides_runpath=yes | |
8359 | hardcode_into_libs=yes | |
8360 | ;; | |
8361 | esac | |
8362 | ;; | |
8363 | ||
8364 | gnu*) | |
8365 | version_type=linux | |
8366 | need_lib_prefix=no | |
8367 | need_version=no | |
8368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8369 | soname_spec='${libname}${release}${shared_ext}$major' | |
8370 | shlibpath_var=LD_LIBRARY_PATH | |
8371 | hardcode_into_libs=yes | |
8372 | ;; | |
8373 | ||
8374 | hpux9* | hpux10* | hpux11*) | |
8375 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8376 | # link against other versions. | |
8377 | version_type=sunos | |
8378 | need_lib_prefix=no | |
8379 | need_version=no | |
8380 | case $host_cpu in | |
8381 | ia64*) | |
8382 | shrext_cmds='.so' | |
8383 | hardcode_into_libs=yes | |
8384 | dynamic_linker="$host_os dld.so" | |
8385 | shlibpath_var=LD_LIBRARY_PATH | |
8386 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8388 | soname_spec='${libname}${release}${shared_ext}$major' | |
8389 | if test "X$HPUX_IA64_MODE" = X32; then | |
8390 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8391 | else | |
8392 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8393 | fi | |
8394 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8395 | ;; | |
8396 | hppa*64*) | |
8397 | shrext_cmds='.sl' | |
8398 | hardcode_into_libs=yes | |
8399 | dynamic_linker="$host_os dld.sl" | |
8400 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8401 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8403 | soname_spec='${libname}${release}${shared_ext}$major' | |
8404 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8405 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8406 | ;; | |
8407 | *) | |
8408 | shrext_cmds='.sl' | |
8409 | dynamic_linker="$host_os dld.sl" | |
8410 | shlibpath_var=SHLIB_PATH | |
8411 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8413 | soname_spec='${libname}${release}${shared_ext}$major' | |
8414 | ;; | |
8415 | esac | |
8416 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8417 | postinstall_cmds='chmod 555 $lib' | |
8418 | ;; | |
8419 | ||
8420 | interix3*) | |
8421 | version_type=linux | |
8422 | need_lib_prefix=no | |
8423 | need_version=no | |
8424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8425 | soname_spec='${libname}${release}${shared_ext}$major' | |
8426 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8427 | shlibpath_var=LD_LIBRARY_PATH | |
8428 | shlibpath_overrides_runpath=no | |
8429 | hardcode_into_libs=yes | |
8430 | ;; | |
8431 | ||
8432 | irix5* | irix6* | nonstopux*) | |
8433 | case $host_os in | |
8434 | nonstopux*) version_type=nonstopux ;; | |
8435 | *) | |
8436 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8437 | version_type=linux | |
8438 | else | |
8439 | version_type=irix | |
8440 | fi ;; | |
8441 | esac | |
8442 | need_lib_prefix=no | |
8443 | need_version=no | |
8444 | soname_spec='${libname}${release}${shared_ext}$major' | |
8445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8446 | case $host_os in | |
8447 | irix5* | nonstopux*) | |
8448 | libsuff= shlibsuff= | |
8449 | ;; | |
8450 | *) | |
8451 | case $LD in # libtool.m4 will add one of these switches to LD | |
8452 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8453 | libsuff= shlibsuff= libmagic=32-bit;; | |
8454 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8455 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8456 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8457 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8458 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8459 | esac | |
8460 | ;; | |
8461 | esac | |
8462 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8463 | shlibpath_overrides_runpath=no | |
8464 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8465 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8466 | hardcode_into_libs=yes | |
8467 | ;; | |
8468 | ||
8469 | # No shared lib support for Linux oldld, aout, or coff. | |
8470 | linux*oldld* | linux*aout* | linux*coff*) | |
8471 | dynamic_linker=no | |
8472 | ;; | |
8473 | ||
8474 | # This must be Linux ELF. | |
8475 | linux*) | |
8476 | version_type=linux | |
8477 | need_lib_prefix=no | |
8478 | need_version=no | |
8479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8480 | soname_spec='${libname}${release}${shared_ext}$major' | |
8481 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8482 | shlibpath_var=LD_LIBRARY_PATH | |
8483 | shlibpath_overrides_runpath=no | |
8484 | # This implies no fast_install, which is unacceptable. | |
8485 | # Some rework will be needed to allow for fast_install | |
8486 | # before this can be enabled. | |
8487 | hardcode_into_libs=yes | |
8488 | ||
8489 | # find out which ABI we are using | |
8490 | libsuff= | |
8491 | case "$host_cpu" in | |
8492 | x86_64*|s390x*|powerpc64*) | |
86933a6e | 8493 | echo '#line 8493 "configure"' > conftest.$ac_ext |
bf9f3bac | 8494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8495 | (eval $ac_compile) 2>&5 | |
8496 | ac_status=$? | |
8497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8498 | (exit $ac_status); }; then | |
8499 | case `/usr/bin/file conftest.$ac_objext` in | |
8500 | *64-bit*) | |
8501 | libsuff=64 | |
8502 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
8503 | ;; | |
8504 | esac | |
8505 | fi | |
8506 | rm -rf conftest* | |
8507 | ;; | |
8508 | esac | |
8509 | ||
8510 | # Append ld.so.conf contents to the search path | |
8511 | if test -f /etc/ld.so.conf; then | |
8512 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
8513 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
8514 | fi | |
8515 | ||
8516 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8517 | # powerpc, because MkLinux only supported shared libraries with the | |
8518 | # GNU dynamic linker. Since this was broken with cross compilers, | |
8519 | # most powerpc-linux boxes support dynamic linking these days and | |
8520 | # people can always --disable-shared, the test was removed, and we | |
8521 | # assume the GNU/Linux dynamic linker is in use. | |
8522 | dynamic_linker='GNU/Linux ld.so' | |
8523 | ;; | |
8524 | ||
8525 | knetbsd*-gnu) | |
8526 | version_type=linux | |
8527 | need_lib_prefix=no | |
8528 | need_version=no | |
8529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8530 | soname_spec='${libname}${release}${shared_ext}$major' | |
8531 | shlibpath_var=LD_LIBRARY_PATH | |
8532 | shlibpath_overrides_runpath=no | |
8533 | hardcode_into_libs=yes | |
8534 | dynamic_linker='GNU ld.so' | |
8535 | ;; | |
8536 | ||
8537 | netbsd*) | |
8538 | version_type=sunos | |
8539 | need_lib_prefix=no | |
8540 | need_version=no | |
8541 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8543 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8544 | dynamic_linker='NetBSD (a.out) ld.so' | |
8545 | else | |
8546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8547 | soname_spec='${libname}${release}${shared_ext}$major' | |
8548 | dynamic_linker='NetBSD ld.elf_so' | |
8549 | fi | |
8550 | shlibpath_var=LD_LIBRARY_PATH | |
8551 | shlibpath_overrides_runpath=yes | |
8552 | hardcode_into_libs=yes | |
8553 | ;; | |
8554 | ||
8555 | newsos6) | |
8556 | version_type=linux | |
8557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8558 | shlibpath_var=LD_LIBRARY_PATH | |
8559 | shlibpath_overrides_runpath=yes | |
8560 | ;; | |
8561 | ||
8562 | nto-qnx*) | |
8563 | version_type=linux | |
8564 | need_lib_prefix=no | |
8565 | need_version=no | |
8566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8567 | soname_spec='${libname}${release}${shared_ext}$major' | |
8568 | shlibpath_var=LD_LIBRARY_PATH | |
8569 | shlibpath_overrides_runpath=yes | |
8570 | ;; | |
8571 | ||
8572 | openbsd*) | |
8573 | version_type=sunos | |
8574 | sys_lib_dlsearch_path_spec="/usr/lib" | |
8575 | need_lib_prefix=no | |
8576 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
8577 | case $host_os in | |
8578 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
8579 | *) need_version=no ;; | |
8580 | esac | |
8581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8582 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8583 | shlibpath_var=LD_LIBRARY_PATH | |
8584 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8585 | case $host_os in | |
8586 | openbsd2.[89] | openbsd2.[89].*) | |
8587 | shlibpath_overrides_runpath=no | |
8588 | ;; | |
8589 | *) | |
8590 | shlibpath_overrides_runpath=yes | |
8591 | ;; | |
8592 | esac | |
8593 | else | |
8594 | shlibpath_overrides_runpath=yes | |
8595 | fi | |
8596 | ;; | |
8597 | ||
8598 | os2*) | |
8599 | libname_spec='$name' | |
8600 | shrext_cmds=".dll" | |
8601 | need_lib_prefix=no | |
8602 | library_names_spec='$libname${shared_ext} $libname.a' | |
8603 | dynamic_linker='OS/2 ld.exe' | |
8604 | shlibpath_var=LIBPATH | |
8605 | ;; | |
8606 | ||
8607 | osf3* | osf4* | osf5*) | |
8608 | version_type=osf | |
8609 | need_lib_prefix=no | |
8610 | need_version=no | |
8611 | soname_spec='${libname}${release}${shared_ext}$major' | |
8612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8613 | shlibpath_var=LD_LIBRARY_PATH | |
8614 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
8615 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8616 | ;; | |
8617 | ||
8618 | solaris*) | |
8619 | version_type=linux | |
8620 | need_lib_prefix=no | |
8621 | need_version=no | |
8622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8623 | soname_spec='${libname}${release}${shared_ext}$major' | |
8624 | shlibpath_var=LD_LIBRARY_PATH | |
8625 | shlibpath_overrides_runpath=yes | |
8626 | hardcode_into_libs=yes | |
8627 | # ldd complains unless libraries are executable | |
8628 | postinstall_cmds='chmod +x $lib' | |
8629 | ;; | |
8630 | ||
8631 | sunos4*) | |
8632 | version_type=sunos | |
8633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8634 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8635 | shlibpath_var=LD_LIBRARY_PATH | |
8636 | shlibpath_overrides_runpath=yes | |
8637 | if test "$with_gnu_ld" = yes; then | |
8638 | need_lib_prefix=no | |
8639 | fi | |
8640 | need_version=yes | |
8641 | ;; | |
8642 | ||
8643 | sysv4 | sysv4.3*) | |
8644 | version_type=linux | |
8645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8646 | soname_spec='${libname}${release}${shared_ext}$major' | |
8647 | shlibpath_var=LD_LIBRARY_PATH | |
8648 | case $host_vendor in | |
8649 | sni) | |
8650 | shlibpath_overrides_runpath=no | |
8651 | need_lib_prefix=no | |
8652 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8653 | runpath_var=LD_RUN_PATH | |
8654 | ;; | |
8655 | siemens) | |
8656 | need_lib_prefix=no | |
8657 | ;; | |
8658 | motorola) | |
8659 | need_lib_prefix=no | |
8660 | need_version=no | |
8661 | shlibpath_overrides_runpath=no | |
8662 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8663 | ;; | |
8664 | esac | |
8665 | ;; | |
8666 | ||
8667 | sysv4*MP*) | |
8668 | if test -d /usr/nec ;then | |
8669 | version_type=linux | |
8670 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8671 | soname_spec='$libname${shared_ext}.$major' | |
8672 | shlibpath_var=LD_LIBRARY_PATH | |
8673 | fi | |
8674 | ;; | |
8675 | ||
8676 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
8677 | version_type=freebsd-elf | |
8678 | need_lib_prefix=no | |
8679 | need_version=no | |
8680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8681 | soname_spec='${libname}${release}${shared_ext}$major' | |
8682 | shlibpath_var=LD_LIBRARY_PATH | |
8683 | hardcode_into_libs=yes | |
8684 | if test "$with_gnu_ld" = yes; then | |
8685 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
8686 | shlibpath_overrides_runpath=no | |
8687 | else | |
8688 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
8689 | shlibpath_overrides_runpath=yes | |
8690 | case $host_os in | |
8691 | sco3.2v5*) | |
8692 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
8693 | ;; | |
8694 | esac | |
8695 | fi | |
8696 | sys_lib_dlsearch_path_spec='/usr/lib' | |
8697 | ;; | |
8698 | ||
8699 | uts4*) | |
8700 | version_type=linux | |
8701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8702 | soname_spec='${libname}${release}${shared_ext}$major' | |
8703 | shlibpath_var=LD_LIBRARY_PATH | |
8704 | ;; | |
8705 | ||
8706 | *) | |
8707 | dynamic_linker=no | |
8708 | ;; | |
8709 | esac | |
8710 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8711 | echo "${ECHO_T}$dynamic_linker" >&6 | |
8712 | test "$dynamic_linker" = no && can_build_shared=no | |
8713 | ||
8714 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
8715 | if test "$GCC" = yes; then | |
8716 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
8717 | fi | |
8718 | ||
8719 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8720 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8721 | hardcode_action= | |
8722 | if test -n "$hardcode_libdir_flag_spec" || \ | |
8723 | test -n "$runpath_var" || \ | |
8724 | test "X$hardcode_automatic" = "Xyes" ; then | |
8725 | ||
8726 | # We can hardcode non-existant directories. | |
8727 | if test "$hardcode_direct" != no && | |
8728 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8729 | # have to relink, otherwise we might link with an installed library | |
8730 | # when we should be linking with a yet-to-be-installed one | |
8731 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8732 | test "$hardcode_minus_L" != no; then | |
8733 | # Linking always hardcodes the temporary library directory. | |
8734 | hardcode_action=relink | |
8735 | else | |
8736 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8737 | hardcode_action=immediate | |
8738 | fi | |
8739 | else | |
8740 | # We cannot hardcode anything, or else we can only hardcode existing | |
8741 | # directories. | |
8742 | hardcode_action=unsupported | |
8743 | fi | |
8744 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8745 | echo "${ECHO_T}$hardcode_action" >&6 | |
8746 | ||
8747 | if test "$hardcode_action" = relink; then | |
8748 | # Fast installation is not supported | |
8749 | enable_fast_install=no | |
8750 | elif test "$shlibpath_overrides_runpath" = yes || | |
8751 | test "$enable_shared" = no; then | |
8752 | # Fast installation is not necessary | |
8753 | enable_fast_install=needless | |
8754 | fi | |
8755 | ||
8756 | striplib= | |
8757 | old_striplib= | |
8758 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8759 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8760 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8761 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8762 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8763 | echo "$as_me:$LINENO: result: yes" >&5 | |
8764 | echo "${ECHO_T}yes" >&6 | |
8765 | else | |
8766 | # FIXME - insert some real tests, host_os isn't really good enough | |
8767 | case $host_os in | |
8768 | darwin*) | |
8769 | if test -n "$STRIP" ; then | |
8770 | striplib="$STRIP -x" | |
8771 | echo "$as_me:$LINENO: result: yes" >&5 | |
8772 | echo "${ECHO_T}yes" >&6 | |
8773 | else | |
8774 | echo "$as_me:$LINENO: result: no" >&5 | |
8775 | echo "${ECHO_T}no" >&6 | |
8776 | fi | |
8777 | ;; | |
8778 | *) | |
8779 | echo "$as_me:$LINENO: result: no" >&5 | |
8780 | echo "${ECHO_T}no" >&6 | |
8781 | ;; | |
8782 | esac | |
8783 | fi | |
8784 | ||
8785 | if test "x$enable_dlopen" != xyes; then | |
8786 | enable_dlopen=unknown | |
8787 | enable_dlopen_self=unknown | |
8788 | enable_dlopen_self_static=unknown | |
8789 | else | |
8790 | lt_cv_dlopen=no | |
8791 | lt_cv_dlopen_libs= | |
8792 | ||
8793 | case $host_os in | |
8794 | beos*) | |
8795 | lt_cv_dlopen="load_add_on" | |
8796 | lt_cv_dlopen_libs= | |
8797 | lt_cv_dlopen_self=yes | |
8798 | ;; | |
8799 | ||
8800 | mingw* | pw32*) | |
8801 | lt_cv_dlopen="LoadLibrary" | |
8802 | lt_cv_dlopen_libs= | |
8803 | ;; | |
8804 | ||
8805 | cygwin*) | |
8806 | lt_cv_dlopen="dlopen" | |
8807 | lt_cv_dlopen_libs= | |
8808 | ;; | |
8809 | ||
8810 | darwin*) | |
8811 | # if libdl is installed we need to link against it | |
8812 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8813 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8814 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8816 | else | |
8817 | ac_check_lib_save_LIBS=$LIBS | |
8818 | LIBS="-ldl $LIBS" | |
8819 | cat >conftest.$ac_ext <<_ACEOF | |
8820 | /* confdefs.h. */ | |
8821 | _ACEOF | |
8822 | cat confdefs.h >>conftest.$ac_ext | |
8823 | cat >>conftest.$ac_ext <<_ACEOF | |
8824 | /* end confdefs.h. */ | |
8825 | ||
8826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8827 | #ifdef __cplusplus | |
8828 | extern "C" | |
8829 | #endif | |
8830 | /* We use char because int might match the return type of a gcc2 | |
8831 | builtin and then its argument prototype would still apply. */ | |
8832 | char dlopen (); | |
8833 | int | |
8834 | main () | |
8835 | { | |
8836 | dlopen (); | |
8837 | ; | |
8838 | return 0; | |
8839 | } | |
8840 | _ACEOF | |
8841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8843 | (eval $ac_link) 2>conftest.er1 | |
8844 | ac_status=$? | |
8845 | grep -v '^ *+' conftest.er1 >conftest.err | |
8846 | rm -f conftest.er1 | |
8847 | cat conftest.err >&5 | |
8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8849 | (exit $ac_status); } && | |
8850 | { ac_try='test -z "$ac_c_werror_flag" | |
8851 | || test ! -s conftest.err' | |
8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8853 | (eval $ac_try) 2>&5 | |
8854 | ac_status=$? | |
8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8856 | (exit $ac_status); }; } && | |
8857 | { ac_try='test -s conftest$ac_exeext' | |
8858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8859 | (eval $ac_try) 2>&5 | |
8860 | ac_status=$? | |
8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8862 | (exit $ac_status); }; }; then | |
8863 | ac_cv_lib_dl_dlopen=yes | |
8864 | else | |
8865 | echo "$as_me: failed program was:" >&5 | |
8866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8867 | ||
8868 | ac_cv_lib_dl_dlopen=no | |
8869 | fi | |
8870 | rm -f conftest.err conftest.$ac_objext \ | |
8871 | conftest$ac_exeext conftest.$ac_ext | |
8872 | LIBS=$ac_check_lib_save_LIBS | |
8873 | fi | |
8874 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8875 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8876 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8877 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8878 | else | |
8879 | ||
8880 | lt_cv_dlopen="dyld" | |
8881 | lt_cv_dlopen_libs= | |
8882 | lt_cv_dlopen_self=yes | |
8883 | ||
8884 | fi | |
8885 | ||
8886 | ;; | |
8887 | ||
8888 | *) | |
8889 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8890 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8891 | if test "${ac_cv_func_shl_load+set}" = set; then | |
8892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8893 | else | |
8894 | cat >conftest.$ac_ext <<_ACEOF | |
8895 | /* confdefs.h. */ | |
8896 | _ACEOF | |
8897 | cat confdefs.h >>conftest.$ac_ext | |
8898 | cat >>conftest.$ac_ext <<_ACEOF | |
8899 | /* end confdefs.h. */ | |
8900 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
8901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8902 | #define shl_load innocuous_shl_load | |
8903 | ||
8904 | /* System header to define __stub macros and hopefully few prototypes, | |
8905 | which can conflict with char shl_load (); below. | |
8906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8907 | <limits.h> exists even on freestanding compilers. */ | |
8908 | ||
8909 | #ifdef __STDC__ | |
8910 | # include <limits.h> | |
8911 | #else | |
8912 | # include <assert.h> | |
8913 | #endif | |
8914 | ||
8915 | #undef shl_load | |
8916 | ||
8917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8918 | #ifdef __cplusplus | |
8919 | extern "C" | |
8920 | { | |
8921 | #endif | |
8922 | /* We use char because int might match the return type of a gcc2 | |
8923 | builtin and then its argument prototype would still apply. */ | |
8924 | char shl_load (); | |
8925 | /* The GNU C library defines this for functions which it implements | |
8926 | to always fail with ENOSYS. Some functions are actually named | |
8927 | something starting with __ and the normal name is an alias. */ | |
8928 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8929 | choke me | |
8930 | #else | |
8931 | char (*f) () = shl_load; | |
8932 | #endif | |
8933 | #ifdef __cplusplus | |
8934 | } | |
8935 | #endif | |
8936 | ||
8937 | int | |
8938 | main () | |
8939 | { | |
8940 | return f != shl_load; | |
8941 | ; | |
8942 | return 0; | |
8943 | } | |
8944 | _ACEOF | |
8945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8947 | (eval $ac_link) 2>conftest.er1 | |
8948 | ac_status=$? | |
8949 | grep -v '^ *+' conftest.er1 >conftest.err | |
8950 | rm -f conftest.er1 | |
8951 | cat conftest.err >&5 | |
8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8953 | (exit $ac_status); } && | |
8954 | { ac_try='test -z "$ac_c_werror_flag" | |
8955 | || test ! -s conftest.err' | |
8956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8957 | (eval $ac_try) 2>&5 | |
8958 | ac_status=$? | |
8959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8960 | (exit $ac_status); }; } && | |
8961 | { ac_try='test -s conftest$ac_exeext' | |
8962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8963 | (eval $ac_try) 2>&5 | |
8964 | ac_status=$? | |
8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8966 | (exit $ac_status); }; }; then | |
8967 | ac_cv_func_shl_load=yes | |
8968 | else | |
8969 | echo "$as_me: failed program was:" >&5 | |
8970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8971 | ||
8972 | ac_cv_func_shl_load=no | |
8973 | fi | |
8974 | rm -f conftest.err conftest.$ac_objext \ | |
8975 | conftest$ac_exeext conftest.$ac_ext | |
8976 | fi | |
8977 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8978 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8979 | if test $ac_cv_func_shl_load = yes; then | |
8980 | lt_cv_dlopen="shl_load" | |
8981 | else | |
8982 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8983 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8984 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8986 | else | |
8987 | ac_check_lib_save_LIBS=$LIBS | |
8988 | LIBS="-ldld $LIBS" | |
8989 | cat >conftest.$ac_ext <<_ACEOF | |
8990 | /* confdefs.h. */ | |
8991 | _ACEOF | |
8992 | cat confdefs.h >>conftest.$ac_ext | |
8993 | cat >>conftest.$ac_ext <<_ACEOF | |
8994 | /* end confdefs.h. */ | |
8995 | ||
8996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8997 | #ifdef __cplusplus | |
8998 | extern "C" | |
8999 | #endif | |
9000 | /* We use char because int might match the return type of a gcc2 | |
9001 | builtin and then its argument prototype would still apply. */ | |
9002 | char shl_load (); | |
9003 | int | |
9004 | main () | |
9005 | { | |
9006 | shl_load (); | |
9007 | ; | |
9008 | return 0; | |
9009 | } | |
9010 | _ACEOF | |
9011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9013 | (eval $ac_link) 2>conftest.er1 | |
9014 | ac_status=$? | |
9015 | grep -v '^ *+' conftest.er1 >conftest.err | |
9016 | rm -f conftest.er1 | |
9017 | cat conftest.err >&5 | |
9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9019 | (exit $ac_status); } && | |
9020 | { ac_try='test -z "$ac_c_werror_flag" | |
9021 | || test ! -s conftest.err' | |
9022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9023 | (eval $ac_try) 2>&5 | |
9024 | ac_status=$? | |
9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9026 | (exit $ac_status); }; } && | |
9027 | { ac_try='test -s conftest$ac_exeext' | |
9028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9029 | (eval $ac_try) 2>&5 | |
9030 | ac_status=$? | |
9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9032 | (exit $ac_status); }; }; then | |
9033 | ac_cv_lib_dld_shl_load=yes | |
9034 | else | |
9035 | echo "$as_me: failed program was:" >&5 | |
9036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9037 | ||
9038 | ac_cv_lib_dld_shl_load=no | |
9039 | fi | |
9040 | rm -f conftest.err conftest.$ac_objext \ | |
9041 | conftest$ac_exeext conftest.$ac_ext | |
9042 | LIBS=$ac_check_lib_save_LIBS | |
9043 | fi | |
9044 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9045 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9046 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9047 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9048 | else | |
9049 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9050 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9051 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9053 | else | |
9054 | cat >conftest.$ac_ext <<_ACEOF | |
9055 | /* confdefs.h. */ | |
9056 | _ACEOF | |
9057 | cat confdefs.h >>conftest.$ac_ext | |
9058 | cat >>conftest.$ac_ext <<_ACEOF | |
9059 | /* end confdefs.h. */ | |
9060 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9061 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9062 | #define dlopen innocuous_dlopen | |
9063 | ||
9064 | /* System header to define __stub macros and hopefully few prototypes, | |
9065 | which can conflict with char dlopen (); below. | |
9066 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9067 | <limits.h> exists even on freestanding compilers. */ | |
9068 | ||
9069 | #ifdef __STDC__ | |
9070 | # include <limits.h> | |
9071 | #else | |
9072 | # include <assert.h> | |
9073 | #endif | |
9074 | ||
9075 | #undef dlopen | |
9076 | ||
9077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9078 | #ifdef __cplusplus | |
9079 | extern "C" | |
9080 | { | |
9081 | #endif | |
9082 | /* We use char because int might match the return type of a gcc2 | |
9083 | builtin and then its argument prototype would still apply. */ | |
9084 | char dlopen (); | |
9085 | /* The GNU C library defines this for functions which it implements | |
9086 | to always fail with ENOSYS. Some functions are actually named | |
9087 | something starting with __ and the normal name is an alias. */ | |
9088 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9089 | choke me | |
9090 | #else | |
9091 | char (*f) () = dlopen; | |
9092 | #endif | |
9093 | #ifdef __cplusplus | |
9094 | } | |
9095 | #endif | |
9096 | ||
9097 | int | |
9098 | main () | |
9099 | { | |
9100 | return f != dlopen; | |
9101 | ; | |
9102 | return 0; | |
9103 | } | |
9104 | _ACEOF | |
9105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9107 | (eval $ac_link) 2>conftest.er1 | |
9108 | ac_status=$? | |
9109 | grep -v '^ *+' conftest.er1 >conftest.err | |
9110 | rm -f conftest.er1 | |
9111 | cat conftest.err >&5 | |
9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9113 | (exit $ac_status); } && | |
9114 | { ac_try='test -z "$ac_c_werror_flag" | |
9115 | || test ! -s conftest.err' | |
9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9117 | (eval $ac_try) 2>&5 | |
9118 | ac_status=$? | |
9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9120 | (exit $ac_status); }; } && | |
9121 | { ac_try='test -s conftest$ac_exeext' | |
9122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9123 | (eval $ac_try) 2>&5 | |
9124 | ac_status=$? | |
9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9126 | (exit $ac_status); }; }; then | |
9127 | ac_cv_func_dlopen=yes | |
9128 | else | |
9129 | echo "$as_me: failed program was:" >&5 | |
9130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9131 | ||
9132 | ac_cv_func_dlopen=no | |
9133 | fi | |
9134 | rm -f conftest.err conftest.$ac_objext \ | |
9135 | conftest$ac_exeext conftest.$ac_ext | |
9136 | fi | |
9137 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9138 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9139 | if test $ac_cv_func_dlopen = yes; then | |
9140 | lt_cv_dlopen="dlopen" | |
9141 | else | |
9142 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9143 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9144 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9146 | else | |
9147 | ac_check_lib_save_LIBS=$LIBS | |
9148 | LIBS="-ldl $LIBS" | |
9149 | cat >conftest.$ac_ext <<_ACEOF | |
9150 | /* confdefs.h. */ | |
9151 | _ACEOF | |
9152 | cat confdefs.h >>conftest.$ac_ext | |
9153 | cat >>conftest.$ac_ext <<_ACEOF | |
9154 | /* end confdefs.h. */ | |
9155 | ||
9156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9157 | #ifdef __cplusplus | |
9158 | extern "C" | |
9159 | #endif | |
9160 | /* We use char because int might match the return type of a gcc2 | |
9161 | builtin and then its argument prototype would still apply. */ | |
9162 | char dlopen (); | |
9163 | int | |
9164 | main () | |
9165 | { | |
9166 | dlopen (); | |
9167 | ; | |
9168 | return 0; | |
9169 | } | |
9170 | _ACEOF | |
9171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9173 | (eval $ac_link) 2>conftest.er1 | |
9174 | ac_status=$? | |
9175 | grep -v '^ *+' conftest.er1 >conftest.err | |
9176 | rm -f conftest.er1 | |
9177 | cat conftest.err >&5 | |
9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9179 | (exit $ac_status); } && | |
9180 | { ac_try='test -z "$ac_c_werror_flag" | |
9181 | || test ! -s conftest.err' | |
9182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9183 | (eval $ac_try) 2>&5 | |
9184 | ac_status=$? | |
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9186 | (exit $ac_status); }; } && | |
9187 | { ac_try='test -s conftest$ac_exeext' | |
9188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9189 | (eval $ac_try) 2>&5 | |
9190 | ac_status=$? | |
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9192 | (exit $ac_status); }; }; then | |
9193 | ac_cv_lib_dl_dlopen=yes | |
9194 | else | |
9195 | echo "$as_me: failed program was:" >&5 | |
9196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9197 | ||
9198 | ac_cv_lib_dl_dlopen=no | |
9199 | fi | |
9200 | rm -f conftest.err conftest.$ac_objext \ | |
9201 | conftest$ac_exeext conftest.$ac_ext | |
9202 | LIBS=$ac_check_lib_save_LIBS | |
9203 | fi | |
9204 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9205 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9206 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9207 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9208 | else | |
9209 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9210 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9211 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9213 | else | |
9214 | ac_check_lib_save_LIBS=$LIBS | |
9215 | LIBS="-lsvld $LIBS" | |
9216 | cat >conftest.$ac_ext <<_ACEOF | |
9217 | /* confdefs.h. */ | |
9218 | _ACEOF | |
9219 | cat confdefs.h >>conftest.$ac_ext | |
9220 | cat >>conftest.$ac_ext <<_ACEOF | |
9221 | /* end confdefs.h. */ | |
9222 | ||
9223 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9224 | #ifdef __cplusplus | |
9225 | extern "C" | |
9226 | #endif | |
9227 | /* We use char because int might match the return type of a gcc2 | |
9228 | builtin and then its argument prototype would still apply. */ | |
9229 | char dlopen (); | |
9230 | int | |
9231 | main () | |
9232 | { | |
9233 | dlopen (); | |
9234 | ; | |
9235 | return 0; | |
9236 | } | |
9237 | _ACEOF | |
9238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9240 | (eval $ac_link) 2>conftest.er1 | |
9241 | ac_status=$? | |
9242 | grep -v '^ *+' conftest.er1 >conftest.err | |
9243 | rm -f conftest.er1 | |
9244 | cat conftest.err >&5 | |
9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9246 | (exit $ac_status); } && | |
9247 | { ac_try='test -z "$ac_c_werror_flag" | |
9248 | || test ! -s conftest.err' | |
9249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9250 | (eval $ac_try) 2>&5 | |
9251 | ac_status=$? | |
9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9253 | (exit $ac_status); }; } && | |
9254 | { ac_try='test -s conftest$ac_exeext' | |
9255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9256 | (eval $ac_try) 2>&5 | |
9257 | ac_status=$? | |
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9259 | (exit $ac_status); }; }; then | |
9260 | ac_cv_lib_svld_dlopen=yes | |
9261 | else | |
9262 | echo "$as_me: failed program was:" >&5 | |
9263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9264 | ||
9265 | ac_cv_lib_svld_dlopen=no | |
9266 | fi | |
9267 | rm -f conftest.err conftest.$ac_objext \ | |
9268 | conftest$ac_exeext conftest.$ac_ext | |
9269 | LIBS=$ac_check_lib_save_LIBS | |
9270 | fi | |
9271 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9272 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
9273 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9274 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9275 | else | |
9276 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9277 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
9278 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9280 | else | |
9281 | ac_check_lib_save_LIBS=$LIBS | |
9282 | LIBS="-ldld $LIBS" | |
9283 | cat >conftest.$ac_ext <<_ACEOF | |
9284 | /* confdefs.h. */ | |
9285 | _ACEOF | |
9286 | cat confdefs.h >>conftest.$ac_ext | |
9287 | cat >>conftest.$ac_ext <<_ACEOF | |
9288 | /* end confdefs.h. */ | |
9289 | ||
9290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9291 | #ifdef __cplusplus | |
9292 | extern "C" | |
9293 | #endif | |
9294 | /* We use char because int might match the return type of a gcc2 | |
9295 | builtin and then its argument prototype would still apply. */ | |
9296 | char dld_link (); | |
9297 | int | |
9298 | main () | |
9299 | { | |
9300 | dld_link (); | |
9301 | ; | |
9302 | return 0; | |
9303 | } | |
9304 | _ACEOF | |
9305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9307 | (eval $ac_link) 2>conftest.er1 | |
9308 | ac_status=$? | |
9309 | grep -v '^ *+' conftest.er1 >conftest.err | |
9310 | rm -f conftest.er1 | |
9311 | cat conftest.err >&5 | |
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9313 | (exit $ac_status); } && | |
9314 | { ac_try='test -z "$ac_c_werror_flag" | |
9315 | || test ! -s conftest.err' | |
9316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9317 | (eval $ac_try) 2>&5 | |
9318 | ac_status=$? | |
9319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9320 | (exit $ac_status); }; } && | |
9321 | { ac_try='test -s conftest$ac_exeext' | |
9322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9323 | (eval $ac_try) 2>&5 | |
9324 | ac_status=$? | |
9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9326 | (exit $ac_status); }; }; then | |
9327 | ac_cv_lib_dld_dld_link=yes | |
9328 | else | |
9329 | echo "$as_me: failed program was:" >&5 | |
9330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9331 | ||
9332 | ac_cv_lib_dld_dld_link=no | |
9333 | fi | |
9334 | rm -f conftest.err conftest.$ac_objext \ | |
9335 | conftest$ac_exeext conftest.$ac_ext | |
9336 | LIBS=$ac_check_lib_save_LIBS | |
9337 | fi | |
9338 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9339 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9340 | if test $ac_cv_lib_dld_dld_link = yes; then | |
9341 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9342 | fi | |
9343 | ||
9344 | ||
9345 | fi | |
9346 | ||
9347 | ||
9348 | fi | |
9349 | ||
9350 | ||
9351 | fi | |
9352 | ||
9353 | ||
9354 | fi | |
9355 | ||
9356 | ||
9357 | fi | |
9358 | ||
9359 | ;; | |
9360 | esac | |
9361 | ||
9362 | if test "x$lt_cv_dlopen" != xno; then | |
9363 | enable_dlopen=yes | |
9364 | else | |
9365 | enable_dlopen=no | |
9366 | fi | |
9367 | ||
9368 | case $lt_cv_dlopen in | |
9369 | dlopen) | |
9370 | save_CPPFLAGS="$CPPFLAGS" | |
9371 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9372 | ||
9373 | save_LDFLAGS="$LDFLAGS" | |
9374 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9375 | ||
9376 | save_LIBS="$LIBS" | |
9377 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9378 | ||
9379 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9380 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
9381 | if test "${lt_cv_dlopen_self+set}" = set; then | |
9382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9383 | else | |
9384 | if test "$cross_compiling" = yes; then : | |
9385 | lt_cv_dlopen_self=cross | |
9386 | else | |
9387 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9388 | lt_status=$lt_dlunknown | |
9389 | cat > conftest.$ac_ext <<EOF | |
86933a6e | 9390 | #line 9390 "configure" |
bf9f3bac | 9391 | #include "confdefs.h" |
9392 | ||
9393 | #if HAVE_DLFCN_H | |
9394 | #include <dlfcn.h> | |
9395 | #endif | |
9396 | ||
9397 | #include <stdio.h> | |
9398 | ||
9399 | #ifdef RTLD_GLOBAL | |
9400 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9401 | #else | |
9402 | # ifdef DL_GLOBAL | |
9403 | # define LT_DLGLOBAL DL_GLOBAL | |
9404 | # else | |
9405 | # define LT_DLGLOBAL 0 | |
9406 | # endif | |
9407 | #endif | |
9408 | ||
9409 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9410 | find out it does not work in some platform. */ | |
9411 | #ifndef LT_DLLAZY_OR_NOW | |
9412 | # ifdef RTLD_LAZY | |
9413 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9414 | # else | |
9415 | # ifdef DL_LAZY | |
9416 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9417 | # else | |
9418 | # ifdef RTLD_NOW | |
9419 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9420 | # else | |
9421 | # ifdef DL_NOW | |
9422 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9423 | # else | |
9424 | # define LT_DLLAZY_OR_NOW 0 | |
9425 | # endif | |
9426 | # endif | |
9427 | # endif | |
9428 | # endif | |
9429 | #endif | |
9430 | ||
9431 | #ifdef __cplusplus | |
9432 | extern "C" void exit (int); | |
9433 | #endif | |
9434 | ||
9435 | void fnord() { int i=42;} | |
9436 | int main () | |
9437 | { | |
9438 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9439 | int status = $lt_dlunknown; | |
9440 | ||
9441 | if (self) | |
9442 | { | |
9443 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9444 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9445 | /* dlclose (self); */ | |
9446 | } | |
9447 | else | |
9448 | puts (dlerror ()); | |
9449 | ||
9450 | exit (status); | |
9451 | } | |
9452 | EOF | |
9453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9454 | (eval $ac_link) 2>&5 | |
9455 | ac_status=$? | |
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9457 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9458 | (./conftest; exit; ) >&5 2>/dev/null | |
9459 | lt_status=$? | |
9460 | case x$lt_status in | |
9461 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9462 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9463 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9464 | esac | |
9465 | else : | |
9466 | # compilation failed | |
9467 | lt_cv_dlopen_self=no | |
9468 | fi | |
9469 | fi | |
9470 | rm -fr conftest* | |
9471 | ||
9472 | ||
9473 | fi | |
9474 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9475 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
9476 | ||
9477 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9478 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9479 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
9480 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
9481 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9483 | else | |
9484 | if test "$cross_compiling" = yes; then : | |
9485 | lt_cv_dlopen_self_static=cross | |
9486 | else | |
9487 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9488 | lt_status=$lt_dlunknown | |
9489 | cat > conftest.$ac_ext <<EOF | |
86933a6e | 9490 | #line 9490 "configure" |
bf9f3bac | 9491 | #include "confdefs.h" |
9492 | ||
9493 | #if HAVE_DLFCN_H | |
9494 | #include <dlfcn.h> | |
9495 | #endif | |
9496 | ||
9497 | #include <stdio.h> | |
9498 | ||
9499 | #ifdef RTLD_GLOBAL | |
9500 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9501 | #else | |
9502 | # ifdef DL_GLOBAL | |
9503 | # define LT_DLGLOBAL DL_GLOBAL | |
9504 | # else | |
9505 | # define LT_DLGLOBAL 0 | |
9506 | # endif | |
9507 | #endif | |
9508 | ||
9509 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9510 | find out it does not work in some platform. */ | |
9511 | #ifndef LT_DLLAZY_OR_NOW | |
9512 | # ifdef RTLD_LAZY | |
9513 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9514 | # else | |
9515 | # ifdef DL_LAZY | |
9516 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9517 | # else | |
9518 | # ifdef RTLD_NOW | |
9519 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9520 | # else | |
9521 | # ifdef DL_NOW | |
9522 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9523 | # else | |
9524 | # define LT_DLLAZY_OR_NOW 0 | |
9525 | # endif | |
9526 | # endif | |
9527 | # endif | |
9528 | # endif | |
9529 | #endif | |
9530 | ||
9531 | #ifdef __cplusplus | |
9532 | extern "C" void exit (int); | |
9533 | #endif | |
9534 | ||
9535 | void fnord() { int i=42;} | |
9536 | int main () | |
9537 | { | |
9538 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9539 | int status = $lt_dlunknown; | |
9540 | ||
9541 | if (self) | |
9542 | { | |
9543 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9544 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9545 | /* dlclose (self); */ | |
9546 | } | |
9547 | else | |
9548 | puts (dlerror ()); | |
9549 | ||
9550 | exit (status); | |
9551 | } | |
9552 | EOF | |
9553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9554 | (eval $ac_link) 2>&5 | |
9555 | ac_status=$? | |
9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9557 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9558 | (./conftest; exit; ) >&5 2>/dev/null | |
9559 | lt_status=$? | |
9560 | case x$lt_status in | |
9561 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9562 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9563 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9564 | esac | |
9565 | else : | |
9566 | # compilation failed | |
9567 | lt_cv_dlopen_self_static=no | |
9568 | fi | |
9569 | fi | |
9570 | rm -fr conftest* | |
9571 | ||
9572 | ||
9573 | fi | |
9574 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
9575 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
9576 | fi | |
9577 | ||
9578 | CPPFLAGS="$save_CPPFLAGS" | |
9579 | LDFLAGS="$save_LDFLAGS" | |
9580 | LIBS="$save_LIBS" | |
9581 | ;; | |
9582 | esac | |
9583 | ||
9584 | case $lt_cv_dlopen_self in | |
9585 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9586 | *) enable_dlopen_self=unknown ;; | |
9587 | esac | |
9588 | ||
9589 | case $lt_cv_dlopen_self_static in | |
9590 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9591 | *) enable_dlopen_self_static=unknown ;; | |
9592 | esac | |
9593 | fi | |
9594 | ||
9595 | ||
9596 | # Report which library types will actually be built | |
9597 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
9598 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
9599 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
9600 | echo "${ECHO_T}$can_build_shared" >&6 | |
9601 | ||
9602 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
9603 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
9604 | test "$can_build_shared" = "no" && enable_shared=no | |
9605 | ||
9606 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9607 | # are all built from PIC. | |
9608 | case $host_os in | |
9609 | aix3*) | |
9610 | test "$enable_shared" = yes && enable_static=no | |
9611 | if test -n "$RANLIB"; then | |
9612 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9613 | postinstall_cmds='$RANLIB $lib' | |
9614 | fi | |
9615 | ;; | |
9616 | ||
9617 | aix4* | aix5*) | |
9618 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9619 | test "$enable_shared" = yes && enable_static=no | |
9620 | fi | |
9621 | ;; | |
9622 | esac | |
9623 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9624 | echo "${ECHO_T}$enable_shared" >&6 | |
9625 | ||
9626 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9627 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9628 | # Make sure either enable_shared or enable_static is yes. | |
9629 | test "$enable_shared" = yes || enable_static=yes | |
9630 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9631 | echo "${ECHO_T}$enable_static" >&6 | |
9632 | ||
9633 | # The else clause should only fire when bootstrapping the | |
9634 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9635 | # with your package, and you will get complaints that there are | |
9636 | # no rules to generate ltmain.sh. | |
9637 | if test -f "$ltmain"; then | |
9638 | # See if we are running on zsh, and set the options which allow our commands through | |
9639 | # without removal of \ escapes. | |
9640 | if test -n "${ZSH_VERSION+set}" ; then | |
9641 | setopt NO_GLOB_SUBST | |
9642 | fi | |
9643 | # Now quote all the things that may contain metacharacters while being | |
9644 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9645 | # variables and quote the copies for generation of the libtool script. | |
9646 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
9647 | SED SHELL STRIP \ | |
9648 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9649 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9650 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
9651 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9652 | lt_cv_sys_global_symbol_to_c_name_address \ | |
9653 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9654 | old_postinstall_cmds old_postuninstall_cmds \ | |
9655 | compiler \ | |
9656 | CC \ | |
9657 | LD \ | |
9658 | lt_prog_compiler_wl \ | |
9659 | lt_prog_compiler_pic \ | |
9660 | lt_prog_compiler_static \ | |
9661 | lt_prog_compiler_no_builtin_flag \ | |
9662 | export_dynamic_flag_spec \ | |
9663 | thread_safe_flag_spec \ | |
9664 | whole_archive_flag_spec \ | |
9665 | enable_shared_with_static_runtimes \ | |
9666 | old_archive_cmds \ | |
9667 | old_archive_from_new_cmds \ | |
9668 | predep_objects \ | |
9669 | postdep_objects \ | |
9670 | predeps \ | |
9671 | postdeps \ | |
9672 | compiler_lib_search_path \ | |
9673 | archive_cmds \ | |
9674 | archive_expsym_cmds \ | |
9675 | postinstall_cmds \ | |
9676 | postuninstall_cmds \ | |
9677 | old_archive_from_expsyms_cmds \ | |
9678 | allow_undefined_flag \ | |
9679 | no_undefined_flag \ | |
9680 | export_symbols_cmds \ | |
9681 | hardcode_libdir_flag_spec \ | |
9682 | hardcode_libdir_flag_spec_ld \ | |
9683 | hardcode_libdir_separator \ | |
9684 | hardcode_automatic \ | |
9685 | module_cmds \ | |
9686 | module_expsym_cmds \ | |
9687 | lt_cv_prog_compiler_c_o \ | |
9688 | exclude_expsyms \ | |
9689 | include_expsyms; do | |
9690 | ||
9691 | case $var in | |
9692 | old_archive_cmds | \ | |
9693 | old_archive_from_new_cmds | \ | |
9694 | archive_cmds | \ | |
9695 | archive_expsym_cmds | \ | |
9696 | module_cmds | \ | |
9697 | module_expsym_cmds | \ | |
9698 | old_archive_from_expsyms_cmds | \ | |
9699 | export_symbols_cmds | \ | |
9700 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9701 | postinstall_cmds | postuninstall_cmds | \ | |
9702 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
9703 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9704 | # Double-quote double-evaled strings. | |
9705 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9706 | ;; | |
9707 | *) | |
9708 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9709 | ;; | |
9710 | esac | |
9711 | done | |
9712 | ||
9713 | case $lt_echo in | |
9714 | *'\$0 --fallback-echo"') | |
9715 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9716 | ;; | |
9717 | esac | |
9718 | ||
9719 | cfgfile="${ofile}T" | |
9720 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9721 | $rm -f "$cfgfile" | |
9722 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9723 | echo "$as_me: creating $ofile" >&6;} | |
9724 | ||
9725 | cat <<__EOF__ >> "$cfgfile" | |
9726 | #! $SHELL | |
9727 | ||
9728 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9729 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9730 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9731 | # | |
9732 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9733 | # Free Software Foundation, Inc. | |
9734 | # | |
9735 | # This file is part of GNU Libtool: | |
9736 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9737 | # | |
9738 | # This program is free software; you can redistribute it and/or modify | |
9739 | # it under the terms of the GNU General Public License as published by | |
9740 | # the Free Software Foundation; either version 2 of the License, or | |
9741 | # (at your option) any later version. | |
9742 | # | |
9743 | # This program is distributed in the hope that it will be useful, but | |
9744 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9745 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9746 | # General Public License for more details. | |
9747 | # | |
9748 | # You should have received a copy of the GNU General Public License | |
9749 | # along with this program; if not, write to the Free Software | |
9750 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
9751 | # | |
9752 | # As a special exception to the GNU General Public License, if you | |
9753 | # distribute this file as part of a program that contains a | |
9754 | # configuration script generated by Autoconf, you may include it under | |
9755 | # the same distribution terms that you use for the rest of that program. | |
9756 | ||
9757 | # A sed program that does not truncate output. | |
9758 | SED=$lt_SED | |
9759 | ||
9760 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9761 | Xsed="$SED -e 1s/^X//" | |
9762 | ||
9763 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9764 | # if CDPATH is set. | |
9765 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9766 | ||
9767 | # The names of the tagged configurations supported by this script. | |
9768 | available_tags= | |
9769 | ||
9770 | # ### BEGIN LIBTOOL CONFIG | |
9771 | ||
9772 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9773 | ||
9774 | # Shell to use when invoking shell scripts. | |
9775 | SHELL=$lt_SHELL | |
9776 | ||
9777 | # Whether or not to build shared libraries. | |
9778 | build_libtool_libs=$enable_shared | |
9779 | ||
9780 | # Whether or not to build static libraries. | |
9781 | build_old_libs=$enable_static | |
9782 | ||
9783 | # Whether or not to add -lc for building shared libraries. | |
9784 | build_libtool_need_lc=$archive_cmds_need_lc | |
9785 | ||
9786 | # Whether or not to disallow shared libs when runtime libs are static | |
9787 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9788 | ||
9789 | # Whether or not to optimize for fast installation. | |
9790 | fast_install=$enable_fast_install | |
9791 | ||
9792 | # The host system. | |
9793 | host_alias=$host_alias | |
9794 | host=$host | |
9795 | host_os=$host_os | |
9796 | ||
9797 | # The build system. | |
9798 | build_alias=$build_alias | |
9799 | build=$build | |
9800 | build_os=$build_os | |
9801 | ||
9802 | # An echo program that does not interpret backslashes. | |
9803 | echo=$lt_echo | |
9804 | ||
9805 | # The archiver. | |
9806 | AR=$lt_AR | |
9807 | AR_FLAGS=$lt_AR_FLAGS | |
9808 | ||
9809 | # A C compiler. | |
9810 | LTCC=$lt_LTCC | |
9811 | ||
9812 | # LTCC compiler flags. | |
9813 | LTCFLAGS=$lt_LTCFLAGS | |
9814 | ||
9815 | # A language-specific compiler. | |
9816 | CC=$lt_compiler | |
9817 | ||
9818 | # Is the compiler the GNU C compiler? | |
9819 | with_gcc=$GCC | |
9820 | ||
9821 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
9822 | gcc_ver=\`gcc -dumpversion\` | |
9823 | ||
9824 | # An ERE matcher. | |
9825 | EGREP=$lt_EGREP | |
9826 | ||
9827 | # The linker used to build libraries. | |
9828 | LD=$lt_LD | |
9829 | ||
9830 | # Whether we need hard or soft links. | |
9831 | LN_S=$lt_LN_S | |
9832 | ||
9833 | # A BSD-compatible nm program. | |
9834 | NM=$lt_NM | |
9835 | ||
9836 | # A symbol stripping program | |
9837 | STRIP=$lt_STRIP | |
9838 | ||
9839 | # Used to examine libraries when file_magic_cmd begins "file" | |
9840 | MAGIC_CMD=$MAGIC_CMD | |
9841 | ||
9842 | # Used on cygwin: DLL creation program. | |
9843 | DLLTOOL="$DLLTOOL" | |
9844 | ||
9845 | # Used on cygwin: object dumper. | |
9846 | OBJDUMP="$OBJDUMP" | |
9847 | ||
9848 | # Used on cygwin: assembler. | |
9849 | AS="$AS" | |
9850 | ||
9851 | # The name of the directory that contains temporary libtool files. | |
9852 | objdir=$objdir | |
9853 | ||
9854 | # How to create reloadable object files. | |
9855 | reload_flag=$lt_reload_flag | |
9856 | reload_cmds=$lt_reload_cmds | |
9857 | ||
9858 | # How to pass a linker flag through the compiler. | |
9859 | wl=$lt_lt_prog_compiler_wl | |
9860 | ||
9861 | # Object file suffix (normally "o"). | |
9862 | objext="$ac_objext" | |
9863 | ||
9864 | # Old archive suffix (normally "a"). | |
9865 | libext="$libext" | |
9866 | ||
9867 | # Shared library suffix (normally ".so"). | |
9868 | shrext_cmds='$shrext_cmds' | |
9869 | ||
9870 | # Executable file suffix (normally ""). | |
9871 | exeext="$exeext" | |
9872 | ||
9873 | # Additional compiler flags for building library objects. | |
9874 | pic_flag=$lt_lt_prog_compiler_pic | |
9875 | pic_mode=$pic_mode | |
9876 | ||
9877 | # What is the maximum length of a command? | |
9878 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
9879 | ||
9880 | # Does compiler simultaneously support -c and -o options? | |
9881 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9882 | ||
9883 | # Must we lock files when doing compilation? | |
9884 | need_locks=$lt_need_locks | |
9885 | ||
9886 | # Do we need the lib prefix for modules? | |
9887 | need_lib_prefix=$need_lib_prefix | |
9888 | ||
9889 | # Do we need a version for libraries? | |
9890 | need_version=$need_version | |
9891 | ||
9892 | # Whether dlopen is supported. | |
9893 | dlopen_support=$enable_dlopen | |
9894 | ||
9895 | # Whether dlopen of programs is supported. | |
9896 | dlopen_self=$enable_dlopen_self | |
9897 | ||
9898 | # Whether dlopen of statically linked programs is supported. | |
9899 | dlopen_self_static=$enable_dlopen_self_static | |
9900 | ||
9901 | # Compiler flag to prevent dynamic linking. | |
9902 | link_static_flag=$lt_lt_prog_compiler_static | |
9903 | ||
9904 | # Compiler flag to turn off builtin functions. | |
9905 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9906 | ||
9907 | # Compiler flag to allow reflexive dlopens. | |
9908 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9909 | ||
9910 | # Compiler flag to generate shared objects directly from archives. | |
9911 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9912 | ||
9913 | # Compiler flag to generate thread-safe objects. | |
9914 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9915 | ||
9916 | # Library versioning type. | |
9917 | version_type=$version_type | |
9918 | ||
9919 | # Format of library name prefix. | |
9920 | libname_spec=$lt_libname_spec | |
9921 | ||
9922 | # List of archive names. First name is the real one, the rest are links. | |
9923 | # The last name is the one that the linker finds with -lNAME. | |
9924 | library_names_spec=$lt_library_names_spec | |
9925 | ||
9926 | # The coded name of the library, if different from the real name. | |
9927 | soname_spec=$lt_soname_spec | |
9928 | ||
9929 | # Commands used to build and install an old-style archive. | |
9930 | RANLIB=$lt_RANLIB | |
9931 | old_archive_cmds=$lt_old_archive_cmds | |
9932 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
9933 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9934 | ||
9935 | # Create an old-style archive from a shared archive. | |
9936 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9937 | ||
9938 | # Create a temporary old-style archive to link instead of a shared archive. | |
9939 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9940 | ||
9941 | # Commands used to build and install a shared archive. | |
9942 | archive_cmds=$lt_archive_cmds | |
9943 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
9944 | postinstall_cmds=$lt_postinstall_cmds | |
9945 | postuninstall_cmds=$lt_postuninstall_cmds | |
9946 | ||
9947 | # Commands used to build a loadable module (assumed same as above if empty) | |
9948 | module_cmds=$lt_module_cmds | |
9949 | module_expsym_cmds=$lt_module_expsym_cmds | |
9950 | ||
9951 | # Commands to strip libraries. | |
9952 | old_striplib=$lt_old_striplib | |
9953 | striplib=$lt_striplib | |
9954 | ||
9955 | # Dependencies to place before the objects being linked to create a | |
9956 | # shared library. | |
9957 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9958 | ||
9959 | # Dependencies to place after the objects being linked to create a | |
9960 | # shared library. | |
9961 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9962 | ||
9963 | # Dependencies to place before the objects being linked to create a | |
9964 | # shared library. | |
9965 | predeps=$lt_predeps | |
9966 | ||
9967 | # Dependencies to place after the objects being linked to create a | |
9968 | # shared library. | |
9969 | postdeps=$lt_postdeps | |
9970 | ||
9971 | # The library search path used internally by the compiler when linking | |
9972 | # a shared library. | |
9973 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
9974 | ||
9975 | # Method to check whether dependent libraries are shared objects. | |
9976 | deplibs_check_method=$lt_deplibs_check_method | |
9977 | ||
9978 | # Command to use when deplibs_check_method == file_magic. | |
9979 | file_magic_cmd=$lt_file_magic_cmd | |
9980 | ||
9981 | # Flag that allows shared libraries with undefined symbols to be built. | |
9982 | allow_undefined_flag=$lt_allow_undefined_flag | |
9983 | ||
9984 | # Flag that forces no undefined symbols. | |
9985 | no_undefined_flag=$lt_no_undefined_flag | |
9986 | ||
9987 | # Commands used to finish a libtool library installation in a directory. | |
9988 | finish_cmds=$lt_finish_cmds | |
9989 | ||
9990 | # Same as above, but a single script fragment to be evaled but not shown. | |
9991 | finish_eval=$lt_finish_eval | |
9992 | ||
9993 | # Take the output of nm and produce a listing of raw symbols and C names. | |
9994 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9995 | ||
9996 | # Transform the output of nm in a proper C declaration | |
9997 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9998 | ||
9999 | # Transform the output of nm in a C name address pair | |
10000 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10001 | ||
10002 | # This is the shared library runtime path variable. | |
10003 | runpath_var=$runpath_var | |
10004 | ||
10005 | # This is the shared library path variable. | |
10006 | shlibpath_var=$shlibpath_var | |
10007 | ||
10008 | # Is shlibpath searched before the hard-coded library search path? | |
10009 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10010 | ||
10011 | # How to hardcode a shared library path into an executable. | |
10012 | hardcode_action=$hardcode_action | |
10013 | ||
10014 | # Whether we should hardcode library paths into libraries. | |
10015 | hardcode_into_libs=$hardcode_into_libs | |
10016 | ||
10017 | # Flag to hardcode \$libdir into a binary during linking. | |
10018 | # This must work even if \$libdir does not exist. | |
10019 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10020 | ||
10021 | # If ld is used when linking, flag to hardcode \$libdir into | |
10022 | # a binary during linking. This must work even if \$libdir does | |
10023 | # not exist. | |
10024 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10025 | ||
10026 | # Whether we need a single -rpath flag with a separated argument. | |
10027 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10028 | ||
10029 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10030 | # resulting binary. | |
10031 | hardcode_direct=$hardcode_direct | |
10032 | ||
10033 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10034 | # resulting binary. | |
10035 | hardcode_minus_L=$hardcode_minus_L | |
10036 | ||
10037 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10038 | # the resulting binary. | |
10039 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10040 | ||
10041 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10042 | # and all subsequent libraries and executables linked against it. | |
10043 | hardcode_automatic=$hardcode_automatic | |
10044 | ||
10045 | # Variables whose values should be saved in libtool wrapper scripts and | |
10046 | # restored at relink time. | |
10047 | variables_saved_for_relink="$variables_saved_for_relink" | |
10048 | ||
10049 | # Whether libtool must link a program against all its dependency libraries. | |
10050 | link_all_deplibs=$link_all_deplibs | |
10051 | ||
10052 | # Compile-time system search path for libraries | |
10053 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
10054 | ||
10055 | # Run-time system search path for libraries | |
10056 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10057 | ||
10058 | # Fix the shell variable \$srcfile for the compiler. | |
10059 | fix_srcfile_path="$fix_srcfile_path" | |
10060 | ||
10061 | # Set to yes if exported symbols are required. | |
10062 | always_export_symbols=$always_export_symbols | |
10063 | ||
10064 | # The commands to list exported symbols. | |
10065 | export_symbols_cmds=$lt_export_symbols_cmds | |
10066 | ||
10067 | # The commands to extract the exported symbol list from a shared archive. | |
10068 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10069 | ||
10070 | # Symbols that should not be listed in the preloaded symbols. | |
10071 | exclude_expsyms=$lt_exclude_expsyms | |
10072 | ||
10073 | # Symbols that must always be exported. | |
10074 | include_expsyms=$lt_include_expsyms | |
10075 | ||
10076 | # ### END LIBTOOL CONFIG | |
10077 | ||
10078 | __EOF__ | |
10079 | ||
10080 | ||
10081 | case $host_os in | |
10082 | aix3*) | |
10083 | cat <<\EOF >> "$cfgfile" | |
10084 | ||
10085 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10086 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10087 | # vanish in a puff of smoke. | |
10088 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
10089 | COLLECT_NAMES= | |
10090 | export COLLECT_NAMES | |
10091 | fi | |
10092 | EOF | |
10093 | ;; | |
10094 | esac | |
10095 | ||
10096 | # We use sed instead of cat because bash on DJGPP gets confused if | |
10097 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
10098 | # text mode, it properly converts lines to CR/LF. This bash problem | |
10099 | # is reportedly fixed, but why not run on old versions too? | |
10100 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
10101 | ||
10102 | mv -f "$cfgfile" "$ofile" || \ | |
10103 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
10104 | chmod +x "$ofile" | |
10105 | ||
10106 | else | |
10107 | # If there is no Makefile yet, we rely on a make rule to execute | |
10108 | # `config.status --recheck' to rerun these tests and create the | |
10109 | # libtool script then. | |
10110 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10111 | if test -f "$ltmain_in"; then | |
10112 | test -f Makefile && make "$ltmain" | |
10113 | fi | |
10114 | fi | |
10115 | ||
10116 | ||
10117 | ac_ext=c | |
10118 | ac_cpp='$CPP $CPPFLAGS' | |
10119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10122 | ||
10123 | CC="$lt_save_CC" | |
10124 | ||
10125 | ||
10126 | # Check whether --with-tags or --without-tags was given. | |
10127 | if test "${with_tags+set}" = set; then | |
10128 | withval="$with_tags" | |
10129 | tagnames="$withval" | |
10130 | fi; | |
10131 | ||
10132 | if test -f "$ltmain" && test -n "$tagnames"; then | |
10133 | if test ! -f "${ofile}"; then | |
10134 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
10135 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
10136 | fi | |
10137 | ||
10138 | if test -z "$LTCC"; then | |
10139 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
10140 | if test -z "$LTCC"; then | |
10141 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
10142 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
10143 | else | |
10144 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10145 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10146 | fi | |
10147 | fi | |
10148 | if test -z "$LTCFLAGS"; then | |
10149 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10150 | fi | |
10151 | ||
10152 | # Extract list of available tagged configurations in $ofile. | |
10153 | # Note that this assumes the entire list is on one line. | |
10154 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10155 | ||
10156 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10157 | for tagname in $tagnames; do | |
10158 | IFS="$lt_save_ifs" | |
10159 | # Check whether tagname contains only valid characters | |
10160 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10161 | "") ;; | |
10162 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10163 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10164 | { (exit 1); exit 1; }; } | |
10165 | ;; | |
10166 | esac | |
10167 | ||
10168 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10169 | then | |
10170 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10171 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10172 | { (exit 1); exit 1; }; } | |
10173 | fi | |
10174 | ||
10175 | # Update the list of available tags. | |
10176 | if test -n "$tagname"; then | |
10177 | echo appending configuration tag \"$tagname\" to $ofile | |
10178 | ||
10179 | case $tagname in | |
10180 | CXX) | |
10181 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10182 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10183 | (test "X$CXX" != "Xg++"))) ; then | |
10184 | ac_ext=cc | |
10185 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10186 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10187 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10188 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | archive_cmds_need_lc_CXX=no | |
10194 | allow_undefined_flag_CXX= | |
10195 | always_export_symbols_CXX=no | |
10196 | archive_expsym_cmds_CXX= | |
10197 | export_dynamic_flag_spec_CXX= | |
10198 | hardcode_direct_CXX=no | |
10199 | hardcode_libdir_flag_spec_CXX= | |
10200 | hardcode_libdir_flag_spec_ld_CXX= | |
10201 | hardcode_libdir_separator_CXX= | |
10202 | hardcode_minus_L_CXX=no | |
10203 | hardcode_shlibpath_var_CXX=unsupported | |
10204 | hardcode_automatic_CXX=no | |
10205 | module_cmds_CXX= | |
10206 | module_expsym_cmds_CXX= | |
10207 | link_all_deplibs_CXX=unknown | |
10208 | old_archive_cmds_CXX=$old_archive_cmds | |
10209 | no_undefined_flag_CXX= | |
10210 | whole_archive_flag_spec_CXX= | |
10211 | enable_shared_with_static_runtimes_CXX=no | |
10212 | ||
10213 | # Dependencies to place before and after the object being linked: | |
10214 | predep_objects_CXX= | |
10215 | postdep_objects_CXX= | |
10216 | predeps_CXX= | |
10217 | postdeps_CXX= | |
10218 | compiler_lib_search_path_CXX= | |
10219 | ||
10220 | # Source file extension for C++ test sources. | |
10221 | ac_ext=cpp | |
10222 | ||
10223 | # Object file extension for compiled C++ test sources. | |
10224 | objext=o | |
10225 | objext_CXX=$objext | |
10226 | ||
10227 | # Code to be used in simple compile tests | |
10228 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
10229 | ||
10230 | # Code to be used in simple link tests | |
10231 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
10232 | ||
10233 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10234 | ||
10235 | # If no C compiler was specified, use CC. | |
10236 | LTCC=${LTCC-"$CC"} | |
10237 | ||
10238 | # If no C compiler flags were specified, use CFLAGS. | |
10239 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10240 | ||
10241 | # Allow CC to be a program name with arguments. | |
10242 | compiler=$CC | |
10243 | ||
10244 | ||
10245 | # save warnings/boilerplate of simple test code | |
10246 | ac_outfile=conftest.$ac_objext | |
10247 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10248 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10249 | _lt_compiler_boilerplate=`cat conftest.err` | |
10250 | $rm conftest* | |
10251 | ||
10252 | ac_outfile=conftest.$ac_objext | |
10253 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
10254 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10255 | _lt_linker_boilerplate=`cat conftest.err` | |
10256 | $rm conftest* | |
10257 | ||
10258 | ||
10259 | # Allow CC to be a program name with arguments. | |
10260 | lt_save_CC=$CC | |
10261 | lt_save_LD=$LD | |
10262 | lt_save_GCC=$GCC | |
10263 | GCC=$GXX | |
10264 | lt_save_with_gnu_ld=$with_gnu_ld | |
10265 | lt_save_path_LD=$lt_cv_path_LD | |
10266 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10267 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10268 | else | |
10269 | $as_unset lt_cv_prog_gnu_ld | |
10270 | fi | |
10271 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
10272 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
10273 | else | |
10274 | $as_unset lt_cv_path_LD | |
10275 | fi | |
10276 | test -z "${LDCXX+set}" || LD=$LDCXX | |
10277 | CC=${CXX-"c++"} | |
10278 | compiler=$CC | |
10279 | compiler_CXX=$CC | |
10280 | for cc_temp in $compiler""; do | |
10281 | case $cc_temp in | |
10282 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10283 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10284 | \-*) ;; | |
10285 | *) break;; | |
10286 | esac | |
10287 | done | |
10288 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10289 | ||
10290 | ||
10291 | # We don't want -fno-exception wen compiling C++ code, so set the | |
10292 | # no_builtin_flag separately | |
10293 | if test "$GXX" = yes; then | |
10294 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10295 | else | |
10296 | lt_prog_compiler_no_builtin_flag_CXX= | |
10297 | fi | |
10298 | ||
10299 | if test "$GXX" = yes; then | |
10300 | # Set up default GNU C++ configuration | |
10301 | ||
10302 | ||
10303 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10304 | if test "${with_gnu_ld+set}" = set; then | |
10305 | withval="$with_gnu_ld" | |
10306 | test "$withval" = no || with_gnu_ld=yes | |
10307 | else | |
10308 | with_gnu_ld=no | |
10309 | fi; | |
10310 | ac_prog=ld | |
10311 | if test "$GCC" = yes; then | |
10312 | # Check if gcc -print-prog-name=ld gives a path. | |
10313 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10314 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
10315 | case $host in | |
10316 | *-*-mingw*) | |
10317 | # gcc leaves a trailing carriage return which upsets mingw | |
10318 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10319 | *) | |
10320 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10321 | esac | |
10322 | case $ac_prog in | |
10323 | # Accept absolute paths. | |
10324 | [\\/]* | ?:[\\/]*) | |
10325 | re_direlt='/[^/][^/]*/\.\./' | |
10326 | # Canonicalize the pathname of ld | |
10327 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10328 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10329 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10330 | done | |
10331 | test -z "$LD" && LD="$ac_prog" | |
10332 | ;; | |
10333 | "") | |
10334 | # If it fails, then pretend we aren't using GCC. | |
10335 | ac_prog=ld | |
10336 | ;; | |
10337 | *) | |
10338 | # If it is relative, then search for the first ld in PATH. | |
10339 | with_gnu_ld=unknown | |
10340 | ;; | |
10341 | esac | |
10342 | elif test "$with_gnu_ld" = yes; then | |
10343 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10344 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10345 | else | |
10346 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10347 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10348 | fi | |
10349 | if test "${lt_cv_path_LD+set}" = set; then | |
10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10351 | else | |
10352 | if test -z "$LD"; then | |
10353 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10354 | for ac_dir in $PATH; do | |
10355 | IFS="$lt_save_ifs" | |
10356 | test -z "$ac_dir" && ac_dir=. | |
10357 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10358 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10359 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10360 | # but apparently some variants of GNU ld only accept -v. | |
10361 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10362 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10363 | *GNU* | *'with BFD'*) | |
10364 | test "$with_gnu_ld" != no && break | |
10365 | ;; | |
10366 | *) | |
10367 | test "$with_gnu_ld" != yes && break | |
10368 | ;; | |
10369 | esac | |
10370 | fi | |
10371 | done | |
10372 | IFS="$lt_save_ifs" | |
10373 | else | |
10374 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10375 | fi | |
10376 | fi | |
10377 | ||
10378 | LD="$lt_cv_path_LD" | |
10379 | if test -n "$LD"; then | |
10380 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10381 | echo "${ECHO_T}$LD" >&6 | |
10382 | else | |
10383 | echo "$as_me:$LINENO: result: no" >&5 | |
10384 | echo "${ECHO_T}no" >&6 | |
10385 | fi | |
10386 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10387 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10388 | { (exit 1); exit 1; }; } | |
10389 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10390 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10391 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10393 | else | |
10394 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10395 | case `$LD -v 2>&1 </dev/null` in | |
10396 | *GNU* | *'with BFD'*) | |
10397 | lt_cv_prog_gnu_ld=yes | |
10398 | ;; | |
10399 | *) | |
10400 | lt_cv_prog_gnu_ld=no | |
10401 | ;; | |
10402 | esac | |
10403 | fi | |
10404 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10405 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
10406 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
10407 | ||
10408 | ||
10409 | ||
10410 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10411 | # archiving commands below assume that GNU ld is being used. | |
10412 | if test "$with_gnu_ld" = yes; then | |
10413 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10414 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10415 | ||
10416 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10417 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10418 | ||
10419 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10420 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10421 | # investigate it a little bit more. (MM) | |
10422 | wlarc='${wl}' | |
10423 | ||
10424 | # ancient GNU ld didn't support --whole-archive et. al. | |
10425 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10426 | grep 'no-whole-archive' > /dev/null; then | |
10427 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10428 | else | |
10429 | whole_archive_flag_spec_CXX= | |
10430 | fi | |
10431 | else | |
10432 | with_gnu_ld=no | |
10433 | wlarc= | |
10434 | ||
10435 | # A generic and very simple default shared library creation | |
10436 | # command for GNU C++ for the case where it uses the native | |
10437 | # linker, instead of GNU ld. If possible, this setting should | |
10438 | # overridden to take advantage of the native linker features on | |
10439 | # the platform it is being used on. | |
10440 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10441 | fi | |
10442 | ||
10443 | # Commands to make compiler produce verbose output that lists | |
10444 | # what "hidden" libraries, object files and flags are used when | |
10445 | # linking a shared library. | |
10446 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10447 | ||
10448 | else | |
10449 | GXX=no | |
10450 | with_gnu_ld=no | |
10451 | wlarc= | |
10452 | fi | |
10453 | ||
10454 | # PORTME: fill in a description of your system's C++ link characteristics | |
10455 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10456 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
10457 | ld_shlibs_CXX=yes | |
10458 | case $host_os in | |
10459 | aix3*) | |
10460 | # FIXME: insert proper C++ library support | |
10461 | ld_shlibs_CXX=no | |
10462 | ;; | |
10463 | aix4* | aix5*) | |
10464 | if test "$host_cpu" = ia64; then | |
10465 | # On IA64, the linker does run time linking by default, so we don't | |
10466 | # have to do anything special. | |
10467 | aix_use_runtimelinking=no | |
10468 | exp_sym_flag='-Bexport' | |
10469 | no_entry_flag="" | |
10470 | else | |
10471 | aix_use_runtimelinking=no | |
10472 | ||
10473 | # Test if we are trying to use run time linking or normal | |
10474 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10475 | # need to do runtime linking. | |
10476 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
10477 | for ld_flag in $LDFLAGS; do | |
10478 | case $ld_flag in | |
10479 | *-brtl*) | |
10480 | aix_use_runtimelinking=yes | |
10481 | break | |
10482 | ;; | |
10483 | esac | |
10484 | done | |
10485 | ;; | |
10486 | esac | |
10487 | ||
10488 | exp_sym_flag='-bexport' | |
10489 | no_entry_flag='-bnoentry' | |
10490 | fi | |
10491 | ||
10492 | # When large executables or shared objects are built, AIX ld can | |
10493 | # have problems creating the table of contents. If linking a library | |
10494 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10495 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10496 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10497 | ||
10498 | archive_cmds_CXX='' | |
10499 | hardcode_direct_CXX=yes | |
10500 | hardcode_libdir_separator_CXX=':' | |
10501 | link_all_deplibs_CXX=yes | |
10502 | ||
10503 | if test "$GXX" = yes; then | |
10504 | case $host_os in aix4.[012]|aix4.[012].*) | |
10505 | # We only want to do this on AIX 4.2 and lower, the check | |
10506 | # below for broken collect2 doesn't work under 4.3+ | |
10507 | collect2name=`${CC} -print-prog-name=collect2` | |
10508 | if test -f "$collect2name" && \ | |
10509 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10510 | then | |
10511 | # We have reworked collect2 | |
10512 | hardcode_direct_CXX=yes | |
10513 | else | |
10514 | # We have old collect2 | |
10515 | hardcode_direct_CXX=unsupported | |
10516 | # It fails to find uninstalled libraries when the uninstalled | |
10517 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10518 | # to unsupported forces relinking | |
10519 | hardcode_minus_L_CXX=yes | |
10520 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10521 | hardcode_libdir_separator_CXX= | |
10522 | fi | |
10523 | ;; | |
10524 | esac | |
10525 | shared_flag='-shared' | |
10526 | if test "$aix_use_runtimelinking" = yes; then | |
10527 | shared_flag="$shared_flag "'${wl}-G' | |
10528 | fi | |
10529 | else | |
10530 | # not using gcc | |
10531 | if test "$host_cpu" = ia64; then | |
10532 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10533 | # chokes on -Wl,-G. The following line is correct: | |
10534 | shared_flag='-G' | |
10535 | else | |
10536 | if test "$aix_use_runtimelinking" = yes; then | |
10537 | shared_flag='${wl}-G' | |
10538 | else | |
10539 | shared_flag='${wl}-bM:SRE' | |
10540 | fi | |
10541 | fi | |
10542 | fi | |
10543 | ||
10544 | # It seems that -bexpall does not export symbols beginning with | |
10545 | # underscore (_), so it is better to generate a list of symbols to export. | |
10546 | always_export_symbols_CXX=yes | |
10547 | if test "$aix_use_runtimelinking" = yes; then | |
10548 | # Warning - without using the other runtime loading flags (-brtl), | |
10549 | # -berok will link without error, but may produce a broken library. | |
10550 | allow_undefined_flag_CXX='-berok' | |
10551 | # Determine the default libpath from the value encoded in an empty executable. | |
10552 | cat >conftest.$ac_ext <<_ACEOF | |
10553 | /* confdefs.h. */ | |
10554 | _ACEOF | |
10555 | cat confdefs.h >>conftest.$ac_ext | |
10556 | cat >>conftest.$ac_ext <<_ACEOF | |
10557 | /* end confdefs.h. */ | |
10558 | ||
10559 | int | |
10560 | main () | |
10561 | { | |
10562 | ||
10563 | ; | |
10564 | return 0; | |
10565 | } | |
10566 | _ACEOF | |
10567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10569 | (eval $ac_link) 2>conftest.er1 | |
10570 | ac_status=$? | |
10571 | grep -v '^ *+' conftest.er1 >conftest.err | |
10572 | rm -f conftest.er1 | |
10573 | cat conftest.err >&5 | |
10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10575 | (exit $ac_status); } && | |
10576 | { ac_try='test -z "$ac_cxx_werror_flag" | |
10577 | || test ! -s conftest.err' | |
10578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10579 | (eval $ac_try) 2>&5 | |
10580 | ac_status=$? | |
10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10582 | (exit $ac_status); }; } && | |
10583 | { ac_try='test -s conftest$ac_exeext' | |
10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10585 | (eval $ac_try) 2>&5 | |
10586 | ac_status=$? | |
10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10588 | (exit $ac_status); }; }; then | |
10589 | ||
10590 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10591 | }'` | |
10592 | # Check for a 64-bit object if we didn't find anything. | |
10593 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10594 | }'`; fi | |
10595 | else | |
10596 | echo "$as_me: failed program was:" >&5 | |
10597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10598 | ||
10599 | fi | |
10600 | rm -f conftest.err conftest.$ac_objext \ | |
10601 | conftest$ac_exeext conftest.$ac_ext | |
10602 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10603 | ||
10604 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10605 | ||
10606 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10607 | else | |
10608 | if test "$host_cpu" = ia64; then | |
10609 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
10610 | allow_undefined_flag_CXX="-z nodefs" | |
10611 | archive_expsym_cmds_CXX="\$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" | |
10612 | else | |
10613 | # Determine the default libpath from the value encoded in an empty executable. | |
10614 | cat >conftest.$ac_ext <<_ACEOF | |
10615 | /* confdefs.h. */ | |
10616 | _ACEOF | |
10617 | cat confdefs.h >>conftest.$ac_ext | |
10618 | cat >>conftest.$ac_ext <<_ACEOF | |
10619 | /* end confdefs.h. */ | |
10620 | ||
10621 | int | |
10622 | main () | |
10623 | { | |
10624 | ||
10625 | ; | |
10626 | return 0; | |
10627 | } | |
10628 | _ACEOF | |
10629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10631 | (eval $ac_link) 2>conftest.er1 | |
10632 | ac_status=$? | |
10633 | grep -v '^ *+' conftest.er1 >conftest.err | |
10634 | rm -f conftest.er1 | |
10635 | cat conftest.err >&5 | |
10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10637 | (exit $ac_status); } && | |
10638 | { ac_try='test -z "$ac_cxx_werror_flag" | |
10639 | || test ! -s conftest.err' | |
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10641 | (eval $ac_try) 2>&5 | |
10642 | ac_status=$? | |
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10644 | (exit $ac_status); }; } && | |
10645 | { ac_try='test -s conftest$ac_exeext' | |
10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10647 | (eval $ac_try) 2>&5 | |
10648 | ac_status=$? | |
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10650 | (exit $ac_status); }; }; then | |
10651 | ||
10652 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10653 | }'` | |
10654 | # Check for a 64-bit object if we didn't find anything. | |
10655 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10656 | }'`; fi | |
10657 | else | |
10658 | echo "$as_me: failed program was:" >&5 | |
10659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10660 | ||
10661 | fi | |
10662 | rm -f conftest.err conftest.$ac_objext \ | |
10663 | conftest$ac_exeext conftest.$ac_ext | |
10664 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10665 | ||
10666 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10667 | # Warning - without using the other run time loading flags, | |
10668 | # -berok will link without error, but may produce a broken library. | |
10669 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
10670 | allow_undefined_flag_CXX=' ${wl}-berok' | |
10671 | # Exported symbols can be pulled into shared objects from archives | |
10672 | whole_archive_flag_spec_CXX='$convenience' | |
10673 | archive_cmds_need_lc_CXX=yes | |
10674 | # This is similar to how AIX traditionally builds its shared libraries. | |
10675 | archive_expsym_cmds_CXX="\$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' | |
10676 | fi | |
10677 | fi | |
10678 | ;; | |
10679 | ||
10680 | beos*) | |
10681 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
10682 | allow_undefined_flag_CXX=unsupported | |
10683 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10684 | # support --undefined. This deserves some investigation. FIXME | |
10685 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10686 | else | |
10687 | ld_shlibs_CXX=no | |
10688 | fi | |
10689 | ;; | |
10690 | ||
10691 | chorus*) | |
10692 | case $cc_basename in | |
10693 | *) | |
10694 | # FIXME: insert proper C++ library support | |
10695 | ld_shlibs_CXX=no | |
10696 | ;; | |
10697 | esac | |
10698 | ;; | |
10699 | ||
10700 | cygwin* | mingw* | pw32*) | |
10701 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10702 | # as there is no search path for DLLs. | |
10703 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10704 | allow_undefined_flag_CXX=unsupported | |
10705 | always_export_symbols_CXX=no | |
10706 | enable_shared_with_static_runtimes_CXX=yes | |
10707 | ||
10708 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10709 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10710 | # If the export-symbols file already is a .def file (1st line | |
10711 | # is EXPORTS), use it as is; otherwise, prepend... | |
10712 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10713 | cp $export_symbols $output_objdir/$soname.def; | |
10714 | else | |
10715 | echo EXPORTS > $output_objdir/$soname.def; | |
10716 | cat $export_symbols >> $output_objdir/$soname.def; | |
10717 | fi~ | |
10718 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10719 | else | |
10720 | ld_shlibs_CXX=no | |
10721 | fi | |
10722 | ;; | |
10723 | darwin* | rhapsody*) | |
10724 | case $host_os in | |
10725 | rhapsody* | darwin1.[012]) | |
10726 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
10727 | ;; | |
10728 | *) # Darwin 1.3 on | |
10729 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10730 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10731 | else | |
10732 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
10733 | 10.[012]) | |
10734 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10735 | ;; | |
10736 | 10.*) | |
10737 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
10738 | ;; | |
10739 | esac | |
10740 | fi | |
10741 | ;; | |
10742 | esac | |
10743 | archive_cmds_need_lc_CXX=no | |
10744 | hardcode_direct_CXX=no | |
10745 | hardcode_automatic_CXX=yes | |
10746 | hardcode_shlibpath_var_CXX=unsupported | |
10747 | whole_archive_flag_spec_CXX='' | |
10748 | link_all_deplibs_CXX=yes | |
10749 | ||
10750 | if test "$GXX" = yes ; then | |
10751 | lt_int_apple_cc_single_mod=no | |
10752 | output_verbose_link_cmd='echo' | |
10753 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
10754 | lt_int_apple_cc_single_mod=yes | |
10755 | fi | |
10756 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10757 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10758 | else | |
10759 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10760 | fi | |
10761 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10762 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10763 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10764 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10765 | else | |
10766 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10767 | fi | |
10768 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10769 | else | |
10770 | case $cc_basename in | |
10771 | xlc*) | |
10772 | output_verbose_link_cmd='echo' | |
10773 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
10774 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10775 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10776 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10777 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10778 | ;; | |
10779 | *) | |
10780 | ld_shlibs_CXX=no | |
10781 | ;; | |
10782 | esac | |
10783 | fi | |
10784 | ;; | |
10785 | ||
10786 | dgux*) | |
10787 | case $cc_basename in | |
10788 | ec++*) | |
10789 | # FIXME: insert proper C++ library support | |
10790 | ld_shlibs_CXX=no | |
10791 | ;; | |
10792 | ghcx*) | |
10793 | # Green Hills C++ Compiler | |
10794 | # FIXME: insert proper C++ library support | |
10795 | ld_shlibs_CXX=no | |
10796 | ;; | |
10797 | *) | |
10798 | # FIXME: insert proper C++ library support | |
10799 | ld_shlibs_CXX=no | |
10800 | ;; | |
10801 | esac | |
10802 | ;; | |
10803 | freebsd[12]*) | |
10804 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
10805 | ld_shlibs_CXX=no | |
10806 | ;; | |
10807 | freebsd-elf*) | |
10808 | archive_cmds_need_lc_CXX=no | |
10809 | ;; | |
10810 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
10811 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10812 | # conventions | |
10813 | ld_shlibs_CXX=yes | |
10814 | ;; | |
10815 | gnu*) | |
10816 | ;; | |
10817 | hpux9*) | |
10818 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10819 | hardcode_libdir_separator_CXX=: | |
10820 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10821 | hardcode_direct_CXX=yes | |
10822 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10823 | # but as the default | |
10824 | # location of the library. | |
10825 | ||
10826 | case $cc_basename in | |
10827 | CC*) | |
10828 | # FIXME: insert proper C++ library support | |
10829 | ld_shlibs_CXX=no | |
10830 | ;; | |
10831 | aCC*) | |
10832 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10833 | # Commands to make compiler produce verbose output that lists | |
10834 | # what "hidden" libraries, object files and flags are used when | |
10835 | # linking a shared library. | |
10836 | # | |
10837 | # There doesn't appear to be a way to prevent this compiler from | |
10838 | # explicitly linking system object files so we need to strip them | |
10839 | # from the output so that they don't get included in the library | |
10840 | # dependencies. | |
10841 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10842 | ;; | |
10843 | *) | |
10844 | if test "$GXX" = yes; then | |
10845 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10846 | else | |
10847 | # FIXME: insert proper C++ library support | |
10848 | ld_shlibs_CXX=no | |
10849 | fi | |
10850 | ;; | |
10851 | esac | |
10852 | ;; | |
10853 | hpux10*|hpux11*) | |
10854 | if test $with_gnu_ld = no; then | |
10855 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10856 | hardcode_libdir_separator_CXX=: | |
10857 | ||
10858 | case $host_cpu in | |
10859 | hppa*64*|ia64*) | |
10860 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10861 | ;; | |
10862 | *) | |
10863 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10864 | ;; | |
10865 | esac | |
10866 | fi | |
10867 | case $host_cpu in | |
10868 | hppa*64*|ia64*) | |
10869 | hardcode_direct_CXX=no | |
10870 | hardcode_shlibpath_var_CXX=no | |
10871 | ;; | |
10872 | *) | |
10873 | hardcode_direct_CXX=yes | |
10874 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10875 | # but as the default | |
10876 | # location of the library. | |
10877 | ;; | |
10878 | esac | |
10879 | ||
10880 | case $cc_basename in | |
10881 | CC*) | |
10882 | # FIXME: insert proper C++ library support | |
10883 | ld_shlibs_CXX=no | |
10884 | ;; | |
10885 | aCC*) | |
10886 | case $host_cpu in | |
10887 | hppa*64*) | |
10888 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10889 | ;; | |
10890 | ia64*) | |
10891 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10892 | ;; | |
10893 | *) | |
10894 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10895 | ;; | |
10896 | esac | |
10897 | # Commands to make compiler produce verbose output that lists | |
10898 | # what "hidden" libraries, object files and flags are used when | |
10899 | # linking a shared library. | |
10900 | # | |
10901 | # There doesn't appear to be a way to prevent this compiler from | |
10902 | # explicitly linking system object files so we need to strip them | |
10903 | # from the output so that they don't get included in the library | |
10904 | # dependencies. | |
10905 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10906 | ;; | |
10907 | *) | |
10908 | if test "$GXX" = yes; then | |
10909 | if test $with_gnu_ld = no; then | |
10910 | case $host_cpu in | |
10911 | hppa*64*) | |
10912 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10913 | ;; | |
10914 | ia64*) | |
10915 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10916 | ;; | |
10917 | *) | |
10918 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10919 | ;; | |
10920 | esac | |
10921 | fi | |
10922 | else | |
10923 | # FIXME: insert proper C++ library support | |
10924 | ld_shlibs_CXX=no | |
10925 | fi | |
10926 | ;; | |
10927 | esac | |
10928 | ;; | |
10929 | interix3*) | |
10930 | hardcode_direct_CXX=no | |
10931 | hardcode_shlibpath_var_CXX=no | |
10932 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10933 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10934 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10935 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10936 | # default) and relocated if they conflict, which is a slow very memory | |
10937 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10938 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10939 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10940 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10941 | archive_expsym_cmds_CXX='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' | |
10942 | ;; | |
10943 | irix5* | irix6*) | |
10944 | case $cc_basename in | |
10945 | CC*) | |
10946 | # SGI C++ | |
10947 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
10948 | ||
10949 | # Archives containing C++ object files must be created using | |
10950 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10951 | # necessary to make sure instantiated templates are included | |
10952 | # in the archive. | |
10953 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10954 | ;; | |
10955 | *) | |
10956 | if test "$GXX" = yes; then | |
10957 | if test "$with_gnu_ld" = no; then | |
10958 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10959 | else | |
10960 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
10961 | fi | |
10962 | fi | |
10963 | link_all_deplibs_CXX=yes | |
10964 | ;; | |
10965 | esac | |
10966 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10967 | hardcode_libdir_separator_CXX=: | |
10968 | ;; | |
10969 | linux*) | |
10970 | case $cc_basename in | |
10971 | KCC*) | |
10972 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10973 | ||
10974 | # KCC will only create a shared library if the output file | |
10975 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10976 | # to its proper name (with version) after linking. | |
10977 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
10978 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
10979 | # Commands to make compiler produce verbose output that lists | |
10980 | # what "hidden" libraries, object files and flags are used when | |
10981 | # linking a shared library. | |
10982 | # | |
10983 | # There doesn't appear to be a way to prevent this compiler from | |
10984 | # explicitly linking system object files so we need to strip them | |
10985 | # from the output so that they don't get included in the library | |
10986 | # dependencies. | |
10987 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10988 | ||
10989 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10990 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10991 | ||
10992 | # Archives containing C++ object files must be created using | |
10993 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10994 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10995 | ;; | |
10996 | icpc*) | |
10997 | # Intel C++ | |
10998 | with_gnu_ld=yes | |
10999 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11000 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11001 | # earlier do not add the objects themselves. | |
11002 | case `$CC -V 2>&1` in | |
11003 | *"Version 7."*) | |
11004 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11005 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11006 | ;; | |
11007 | *) # Version 8.0 or newer | |
11008 | tmp_idyn= | |
11009 | case $host_cpu in | |
11010 | ia64*) tmp_idyn=' -i_dynamic';; | |
11011 | esac | |
11012 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11013 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11014 | ;; | |
11015 | esac | |
11016 | archive_cmds_need_lc_CXX=no | |
11017 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11018 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11019 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11020 | ;; | |
11021 | pgCC*) | |
11022 | # Portland Group C++ compiler | |
11023 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11024 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11025 | ||
11026 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11027 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11028 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
11029 | ;; | |
11030 | cxx*) | |
11031 | # Compaq C++ | |
11032 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11033 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
11034 | ||
11035 | runpath_var=LD_RUN_PATH | |
11036 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11037 | hardcode_libdir_separator_CXX=: | |
11038 | ||
11039 | # Commands to make compiler produce verbose output that lists | |
11040 | # what "hidden" libraries, object files and flags are used when | |
11041 | # linking a shared library. | |
11042 | # | |
11043 | # There doesn't appear to be a way to prevent this compiler from | |
11044 | # explicitly linking system object files so we need to strip them | |
11045 | # from the output so that they don't get included in the library | |
11046 | # dependencies. | |
11047 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11048 | ;; | |
11049 | esac | |
11050 | ;; | |
11051 | lynxos*) | |
11052 | # FIXME: insert proper C++ library support | |
11053 | ld_shlibs_CXX=no | |
11054 | ;; | |
11055 | m88k*) | |
11056 | # FIXME: insert proper C++ library support | |
11057 | ld_shlibs_CXX=no | |
11058 | ;; | |
11059 | mvs*) | |
11060 | case $cc_basename in | |
11061 | cxx*) | |
11062 | # FIXME: insert proper C++ library support | |
11063 | ld_shlibs_CXX=no | |
11064 | ;; | |
11065 | *) | |
11066 | # FIXME: insert proper C++ library support | |
11067 | ld_shlibs_CXX=no | |
11068 | ;; | |
11069 | esac | |
11070 | ;; | |
11071 | netbsd*) | |
11072 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11073 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11074 | wlarc= | |
11075 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11076 | hardcode_direct_CXX=yes | |
11077 | hardcode_shlibpath_var_CXX=no | |
11078 | fi | |
11079 | # Workaround some broken pre-1.5 toolchains | |
11080 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11081 | ;; | |
11082 | openbsd2*) | |
11083 | # C++ shared libraries are fairly broken | |
11084 | ld_shlibs_CXX=no | |
11085 | ;; | |
11086 | openbsd*) | |
11087 | hardcode_direct_CXX=yes | |
11088 | hardcode_shlibpath_var_CXX=no | |
11089 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11090 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11091 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11092 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11093 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11094 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11095 | fi | |
11096 | output_verbose_link_cmd='echo' | |
11097 | ;; | |
11098 | osf3*) | |
11099 | case $cc_basename in | |
11100 | KCC*) | |
11101 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11102 | ||
11103 | # KCC will only create a shared library if the output file | |
11104 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11105 | # to its proper name (with version) after linking. | |
11106 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11107 | ||
11108 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11109 | hardcode_libdir_separator_CXX=: | |
11110 | ||
11111 | # Archives containing C++ object files must be created using | |
11112 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11113 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11114 | ||
11115 | ;; | |
11116 | RCC*) | |
11117 | # Rational C++ 2.4.1 | |
11118 | # FIXME: insert proper C++ library support | |
11119 | ld_shlibs_CXX=no | |
11120 | ;; | |
11121 | cxx*) | |
11122 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11123 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11124 | ||
11125 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11126 | hardcode_libdir_separator_CXX=: | |
11127 | ||
11128 | # Commands to make compiler produce verbose output that lists | |
11129 | # what "hidden" libraries, object files and flags are used when | |
11130 | # linking a shared library. | |
11131 | # | |
11132 | # There doesn't appear to be a way to prevent this compiler from | |
11133 | # explicitly linking system object files so we need to strip them | |
11134 | # from the output so that they don't get included in the library | |
11135 | # dependencies. | |
11136 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11137 | ;; | |
11138 | *) | |
11139 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11140 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11141 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11142 | ||
11143 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11144 | hardcode_libdir_separator_CXX=: | |
11145 | ||
11146 | # Commands to make compiler produce verbose output that lists | |
11147 | # what "hidden" libraries, object files and flags are used when | |
11148 | # linking a shared library. | |
11149 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11150 | ||
11151 | else | |
11152 | # FIXME: insert proper C++ library support | |
11153 | ld_shlibs_CXX=no | |
11154 | fi | |
11155 | ;; | |
11156 | esac | |
11157 | ;; | |
11158 | osf4* | osf5*) | |
11159 | case $cc_basename in | |
11160 | KCC*) | |
11161 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11162 | ||
11163 | # KCC will only create a shared library if the output file | |
11164 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11165 | # to its proper name (with version) after linking. | |
11166 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11167 | ||
11168 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11169 | hardcode_libdir_separator_CXX=: | |
11170 | ||
11171 | # Archives containing C++ object files must be created using | |
11172 | # the KAI C++ compiler. | |
11173 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11174 | ;; | |
11175 | RCC*) | |
11176 | # Rational C++ 2.4.1 | |
11177 | # FIXME: insert proper C++ library support | |
11178 | ld_shlibs_CXX=no | |
11179 | ;; | |
11180 | cxx*) | |
11181 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11182 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11183 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11184 | echo "-hidden">> $lib.exp~ | |
11185 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11186 | $rm $lib.exp' | |
11187 | ||
11188 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11189 | hardcode_libdir_separator_CXX=: | |
11190 | ||
11191 | # Commands to make compiler produce verbose output that lists | |
11192 | # what "hidden" libraries, object files and flags are used when | |
11193 | # linking a shared library. | |
11194 | # | |
11195 | # There doesn't appear to be a way to prevent this compiler from | |
11196 | # explicitly linking system object files so we need to strip them | |
11197 | # from the output so that they don't get included in the library | |
11198 | # dependencies. | |
11199 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11200 | ;; | |
11201 | *) | |
11202 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11203 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11204 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11205 | ||
11206 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11207 | hardcode_libdir_separator_CXX=: | |
11208 | ||
11209 | # Commands to make compiler produce verbose output that lists | |
11210 | # what "hidden" libraries, object files and flags are used when | |
11211 | # linking a shared library. | |
11212 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11213 | ||
11214 | else | |
11215 | # FIXME: insert proper C++ library support | |
11216 | ld_shlibs_CXX=no | |
11217 | fi | |
11218 | ;; | |
11219 | esac | |
11220 | ;; | |
11221 | psos*) | |
11222 | # FIXME: insert proper C++ library support | |
11223 | ld_shlibs_CXX=no | |
11224 | ;; | |
11225 | sunos4*) | |
11226 | case $cc_basename in | |
11227 | CC*) | |
11228 | # Sun C++ 4.x | |
11229 | # FIXME: insert proper C++ library support | |
11230 | ld_shlibs_CXX=no | |
11231 | ;; | |
11232 | lcc*) | |
11233 | # Lucid | |
11234 | # FIXME: insert proper C++ library support | |
11235 | ld_shlibs_CXX=no | |
11236 | ;; | |
11237 | *) | |
11238 | # FIXME: insert proper C++ library support | |
11239 | ld_shlibs_CXX=no | |
11240 | ;; | |
11241 | esac | |
11242 | ;; | |
11243 | solaris*) | |
11244 | case $cc_basename in | |
11245 | CC*) | |
11246 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11247 | archive_cmds_need_lc_CXX=yes | |
11248 | no_undefined_flag_CXX=' -zdefs' | |
11249 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11250 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11251 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11252 | ||
11253 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11254 | hardcode_shlibpath_var_CXX=no | |
11255 | case $host_os in | |
11256 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11257 | *) | |
11258 | # The C++ compiler is used as linker so we must use $wl | |
11259 | # flag to pass the commands to the underlying system | |
11260 | # linker. We must also pass each convience library through | |
11261 | # to the system linker between allextract/defaultextract. | |
11262 | # The C++ compiler will combine linker options so we | |
11263 | # cannot just pass the convience library names through | |
11264 | # without $wl. | |
11265 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11266 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
11267 | ;; | |
11268 | esac | |
11269 | link_all_deplibs_CXX=yes | |
11270 | ||
11271 | output_verbose_link_cmd='echo' | |
11272 | ||
11273 | # Archives containing C++ object files must be created using | |
11274 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11275 | # necessary to make sure instantiated templates are included | |
11276 | # in the archive. | |
11277 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11278 | ;; | |
11279 | gcx*) | |
11280 | # Green Hills C++ Compiler | |
11281 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11282 | ||
11283 | # The C++ compiler must be used to create the archive. | |
11284 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11285 | ;; | |
11286 | *) | |
11287 | # GNU C++ compiler with Solaris linker | |
11288 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11289 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11290 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
11291 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11292 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11293 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11294 | ||
11295 | # Commands to make compiler produce verbose output that lists | |
11296 | # what "hidden" libraries, object files and flags are used when | |
11297 | # linking a shared library. | |
11298 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11299 | else | |
11300 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11301 | # platform. | |
11302 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11303 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11304 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11305 | ||
11306 | # Commands to make compiler produce verbose output that lists | |
11307 | # what "hidden" libraries, object files and flags are used when | |
11308 | # linking a shared library. | |
11309 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11310 | fi | |
11311 | ||
11312 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11313 | fi | |
11314 | ;; | |
11315 | esac | |
11316 | ;; | |
11317 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11318 | no_undefined_flag_CXX='${wl}-z,text' | |
11319 | archive_cmds_need_lc_CXX=no | |
11320 | hardcode_shlibpath_var_CXX=no | |
11321 | runpath_var='LD_RUN_PATH' | |
11322 | ||
11323 | case $cc_basename in | |
11324 | CC*) | |
11325 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11326 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11327 | ;; | |
11328 | *) | |
11329 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11330 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11331 | ;; | |
11332 | esac | |
11333 | ;; | |
11334 | sysv5* | sco3.2v5* | sco5v6*) | |
11335 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11336 | # link with -lc, and that would cause any symbols used from libc to | |
11337 | # always be unresolved, which means just about no library would | |
11338 | # ever link correctly. If we're not using GNU ld we use -z text | |
11339 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11340 | # as -z defs. | |
11341 | # For security reasons, it is highly recommended that you always | |
11342 | # use absolute paths for naming shared libraries, and exclude the | |
11343 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11344 | # requires that you compile everything twice, which is a pain. | |
11345 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
11346 | # non-empty value in the environment. Most likely only useful for | |
11347 | # creating official distributions of packages. | |
11348 | # This is a hack until libtool officially supports absolute path | |
11349 | # names for shared libraries. | |
11350 | no_undefined_flag_CXX='${wl}-z,text' | |
11351 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11352 | archive_cmds_need_lc_CXX=no | |
11353 | hardcode_shlibpath_var_CXX=no | |
11354 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
11355 | hardcode_libdir_separator_CXX=':' | |
11356 | link_all_deplibs_CXX=yes | |
11357 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11358 | runpath_var='LD_RUN_PATH' | |
11359 | ||
11360 | case $cc_basename in | |
11361 | CC*) | |
11362 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11363 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11364 | ;; | |
11365 | *) | |
11366 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11367 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11368 | ;; | |
11369 | esac | |
11370 | ;; | |
11371 | tandem*) | |
11372 | case $cc_basename in | |
11373 | NCC*) | |
11374 | # NonStop-UX NCC 3.20 | |
11375 | # FIXME: insert proper C++ library support | |
11376 | ld_shlibs_CXX=no | |
11377 | ;; | |
11378 | *) | |
11379 | # FIXME: insert proper C++ library support | |
11380 | ld_shlibs_CXX=no | |
11381 | ;; | |
11382 | esac | |
11383 | ;; | |
11384 | vxworks*) | |
11385 | # FIXME: insert proper C++ library support | |
11386 | ld_shlibs_CXX=no | |
11387 | ;; | |
11388 | *) | |
11389 | # FIXME: insert proper C++ library support | |
11390 | ld_shlibs_CXX=no | |
11391 | ;; | |
11392 | esac | |
11393 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11394 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11395 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11396 | ||
11397 | GCC_CXX="$GXX" | |
11398 | LD_CXX="$LD" | |
11399 | ||
11400 | ||
11401 | cat > conftest.$ac_ext <<EOF | |
11402 | class Foo | |
11403 | { | |
11404 | public: | |
11405 | Foo (void) { a = 0; } | |
11406 | private: | |
11407 | int a; | |
11408 | }; | |
11409 | EOF | |
11410 | ||
11411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11412 | (eval $ac_compile) 2>&5 | |
11413 | ac_status=$? | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); }; then | |
11416 | # Parse the compiler output and extract the necessary | |
11417 | # objects, libraries and library flags. | |
11418 | ||
11419 | # Sentinel used to keep track of whether or not we are before | |
11420 | # the conftest object file. | |
11421 | pre_test_object_deps_done=no | |
11422 | ||
11423 | # The `*' in the case matches for architectures that use `case' in | |
11424 | # $output_verbose_cmd can trigger glob expansion during the loop | |
11425 | # eval without this substitution. | |
11426 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
11427 | ||
11428 | for p in `eval $output_verbose_link_cmd`; do | |
11429 | case $p in | |
11430 | ||
11431 | -L* | -R* | -l*) | |
11432 | # Some compilers place space between "-{L,R}" and the path. | |
11433 | # Remove the space. | |
11434 | if test $p = "-L" \ | |
11435 | || test $p = "-R"; then | |
11436 | prev=$p | |
11437 | continue | |
11438 | else | |
11439 | prev= | |
11440 | fi | |
11441 | ||
11442 | if test "$pre_test_object_deps_done" = no; then | |
11443 | case $p in | |
11444 | -L* | -R*) | |
11445 | # Internal compiler library paths should come after those | |
11446 | # provided the user. The postdeps already come after the | |
11447 | # user supplied libs so there is no need to process them. | |
11448 | if test -z "$compiler_lib_search_path_CXX"; then | |
11449 | compiler_lib_search_path_CXX="${prev}${p}" | |
11450 | else | |
11451 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
11452 | fi | |
11453 | ;; | |
11454 | # The "-l" case would never come before the object being | |
11455 | # linked, so don't bother handling this case. | |
11456 | esac | |
11457 | else | |
11458 | if test -z "$postdeps_CXX"; then | |
11459 | postdeps_CXX="${prev}${p}" | |
11460 | else | |
11461 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
11462 | fi | |
11463 | fi | |
11464 | ;; | |
11465 | ||
11466 | *.$objext) | |
11467 | # This assumes that the test object file only shows up | |
11468 | # once in the compiler output. | |
11469 | if test "$p" = "conftest.$objext"; then | |
11470 | pre_test_object_deps_done=yes | |
11471 | continue | |
11472 | fi | |
11473 | ||
11474 | if test "$pre_test_object_deps_done" = no; then | |
11475 | if test -z "$predep_objects_CXX"; then | |
11476 | predep_objects_CXX="$p" | |
11477 | else | |
11478 | predep_objects_CXX="$predep_objects_CXX $p" | |
11479 | fi | |
11480 | else | |
11481 | if test -z "$postdep_objects_CXX"; then | |
11482 | postdep_objects_CXX="$p" | |
11483 | else | |
11484 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
11485 | fi | |
11486 | fi | |
11487 | ;; | |
11488 | ||
11489 | *) ;; # Ignore the rest. | |
11490 | ||
11491 | esac | |
11492 | done | |
11493 | ||
11494 | # Clean up. | |
11495 | rm -f a.out a.exe | |
11496 | else | |
11497 | echo "libtool.m4: error: problem compiling CXX test program" | |
11498 | fi | |
11499 | ||
11500 | $rm -f confest.$objext | |
11501 | ||
11502 | # PORTME: override above test on systems where it is broken | |
11503 | case $host_os in | |
11504 | interix3*) | |
11505 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
11506 | # hack all around it, let's just trust "g++" to DTRT. | |
11507 | predep_objects_CXX= | |
11508 | postdep_objects_CXX= | |
11509 | postdeps_CXX= | |
11510 | ;; | |
11511 | ||
11512 | solaris*) | |
11513 | case $cc_basename in | |
11514 | CC*) | |
11515 | # Adding this requires a known-good setup of shared libraries for | |
11516 | # Sun compiler versions before 5.6, else PIC objects from an old | |
11517 | # archive will be linked into the output, leading to subtle bugs. | |
11518 | postdeps_CXX='-lCstd -lCrun' | |
11519 | ;; | |
11520 | esac | |
11521 | ;; | |
11522 | esac | |
11523 | ||
11524 | ||
11525 | case " $postdeps_CXX " in | |
11526 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
11527 | esac | |
11528 | ||
11529 | lt_prog_compiler_wl_CXX= | |
11530 | lt_prog_compiler_pic_CXX= | |
11531 | lt_prog_compiler_static_CXX= | |
11532 | ||
11533 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11534 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11535 | ||
11536 | # C++ specific cases for pic, static, wl, etc. | |
11537 | if test "$GXX" = yes; then | |
11538 | lt_prog_compiler_wl_CXX='-Wl,' | |
11539 | lt_prog_compiler_static_CXX='-static' | |
11540 | ||
11541 | case $host_os in | |
11542 | aix*) | |
11543 | # All AIX code is PIC. | |
11544 | if test "$host_cpu" = ia64; then | |
11545 | # AIX 5 now supports IA64 processor | |
11546 | lt_prog_compiler_static_CXX='-Bstatic' | |
11547 | fi | |
11548 | ;; | |
11549 | amigaos*) | |
11550 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11551 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11552 | # like `-m68040'. | |
11553 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
11554 | ;; | |
11555 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11556 | # PIC is the default for these OSes. | |
11557 | ;; | |
11558 | mingw* | os2* | pw32*) | |
11559 | # This hack is so that the source file can tell whether it is being | |
11560 | # built for inclusion in a dll (and should export symbols for example). | |
11561 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
11562 | ;; | |
11563 | darwin* | rhapsody*) | |
11564 | # PIC is the default on this platform | |
11565 | # Common symbols not allowed in MH_DYLIB files | |
11566 | lt_prog_compiler_pic_CXX='-fno-common' | |
11567 | ;; | |
11568 | *djgpp*) | |
11569 | # DJGPP does not support shared libraries at all | |
11570 | lt_prog_compiler_pic_CXX= | |
11571 | ;; | |
11572 | interix3*) | |
11573 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11574 | # Instead, we relocate shared libraries at runtime. | |
11575 | ;; | |
11576 | sysv4*MP*) | |
11577 | if test -d /usr/nec; then | |
11578 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
11579 | fi | |
11580 | ;; | |
11581 | hpux*) | |
11582 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11583 | # not for PA HP-UX. | |
11584 | case $host_cpu in | |
11585 | hppa*64*|ia64*) | |
11586 | ;; | |
11587 | *) | |
11588 | lt_prog_compiler_pic_CXX='-fPIC' | |
11589 | ;; | |
11590 | esac | |
11591 | ;; | |
11592 | *) | |
11593 | lt_prog_compiler_pic_CXX='-fPIC' | |
11594 | ;; | |
11595 | esac | |
11596 | else | |
11597 | case $host_os in | |
11598 | aix4* | aix5*) | |
11599 | # All AIX code is PIC. | |
11600 | if test "$host_cpu" = ia64; then | |
11601 | # AIX 5 now supports IA64 processor | |
11602 | lt_prog_compiler_static_CXX='-Bstatic' | |
11603 | else | |
11604 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
11605 | fi | |
11606 | ;; | |
11607 | chorus*) | |
11608 | case $cc_basename in | |
11609 | cxch68*) | |
11610 | # Green Hills C++ Compiler | |
11611 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
11612 | ;; | |
11613 | esac | |
11614 | ;; | |
11615 | darwin*) | |
11616 | # PIC is the default on this platform | |
11617 | # Common symbols not allowed in MH_DYLIB files | |
11618 | case $cc_basename in | |
11619 | xlc*) | |
11620 | lt_prog_compiler_pic_CXX='-qnocommon' | |
11621 | lt_prog_compiler_wl_CXX='-Wl,' | |
11622 | ;; | |
11623 | esac | |
11624 | ;; | |
11625 | dgux*) | |
11626 | case $cc_basename in | |
11627 | ec++*) | |
11628 | lt_prog_compiler_pic_CXX='-KPIC' | |
11629 | ;; | |
11630 | ghcx*) | |
11631 | # Green Hills C++ Compiler | |
11632 | lt_prog_compiler_pic_CXX='-pic' | |
11633 | ;; | |
11634 | *) | |
11635 | ;; | |
11636 | esac | |
11637 | ;; | |
11638 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
11639 | # FreeBSD uses GNU C++ | |
11640 | ;; | |
11641 | hpux9* | hpux10* | hpux11*) | |
11642 | case $cc_basename in | |
11643 | CC*) | |
11644 | lt_prog_compiler_wl_CXX='-Wl,' | |
11645 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11646 | if test "$host_cpu" != ia64; then | |
11647 | lt_prog_compiler_pic_CXX='+Z' | |
11648 | fi | |
11649 | ;; | |
11650 | aCC*) | |
11651 | lt_prog_compiler_wl_CXX='-Wl,' | |
11652 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11653 | case $host_cpu in | |
11654 | hppa*64*|ia64*) | |
11655 | # +Z the default | |
11656 | ;; | |
11657 | *) | |
11658 | lt_prog_compiler_pic_CXX='+Z' | |
11659 | ;; | |
11660 | esac | |
11661 | ;; | |
11662 | *) | |
11663 | ;; | |
11664 | esac | |
11665 | ;; | |
11666 | interix*) | |
11667 | # This is c89, which is MS Visual C++ (no shared libs) | |
11668 | # Anyone wants to do a port? | |
11669 | ;; | |
11670 | irix5* | irix6* | nonstopux*) | |
11671 | case $cc_basename in | |
11672 | CC*) | |
11673 | lt_prog_compiler_wl_CXX='-Wl,' | |
11674 | lt_prog_compiler_static_CXX='-non_shared' | |
11675 | # CC pic flag -KPIC is the default. | |
11676 | ;; | |
11677 | *) | |
11678 | ;; | |
11679 | esac | |
11680 | ;; | |
11681 | linux*) | |
11682 | case $cc_basename in | |
11683 | KCC*) | |
11684 | # KAI C++ Compiler | |
11685 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11686 | lt_prog_compiler_pic_CXX='-fPIC' | |
11687 | ;; | |
11688 | icpc* | ecpc*) | |
11689 | # Intel C++ | |
11690 | lt_prog_compiler_wl_CXX='-Wl,' | |
11691 | lt_prog_compiler_pic_CXX='-KPIC' | |
11692 | lt_prog_compiler_static_CXX='-static' | |
11693 | ;; | |
11694 | pgCC*) | |
11695 | # Portland Group C++ compiler. | |
11696 | lt_prog_compiler_wl_CXX='-Wl,' | |
11697 | lt_prog_compiler_pic_CXX='-fpic' | |
11698 | lt_prog_compiler_static_CXX='-Bstatic' | |
11699 | ;; | |
11700 | cxx*) | |
11701 | # Compaq C++ | |
11702 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11703 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11704 | lt_prog_compiler_pic_CXX= | |
11705 | lt_prog_compiler_static_CXX='-non_shared' | |
11706 | ;; | |
11707 | *) | |
11708 | ;; | |
11709 | esac | |
11710 | ;; | |
11711 | lynxos*) | |
11712 | ;; | |
11713 | m88k*) | |
11714 | ;; | |
11715 | mvs*) | |
11716 | case $cc_basename in | |
11717 | cxx*) | |
11718 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
11719 | ;; | |
11720 | *) | |
11721 | ;; | |
11722 | esac | |
11723 | ;; | |
11724 | netbsd*) | |
11725 | ;; | |
11726 | osf3* | osf4* | osf5*) | |
11727 | case $cc_basename in | |
11728 | KCC*) | |
11729 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11730 | ;; | |
11731 | RCC*) | |
11732 | # Rational C++ 2.4.1 | |
11733 | lt_prog_compiler_pic_CXX='-pic' | |
11734 | ;; | |
11735 | cxx*) | |
11736 | # Digital/Compaq C++ | |
11737 | lt_prog_compiler_wl_CXX='-Wl,' | |
11738 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11739 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11740 | lt_prog_compiler_pic_CXX= | |
11741 | lt_prog_compiler_static_CXX='-non_shared' | |
11742 | ;; | |
11743 | *) | |
11744 | ;; | |
11745 | esac | |
11746 | ;; | |
11747 | psos*) | |
11748 | ;; | |
11749 | solaris*) | |
11750 | case $cc_basename in | |
11751 | CC*) | |
11752 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11753 | lt_prog_compiler_pic_CXX='-KPIC' | |
11754 | lt_prog_compiler_static_CXX='-Bstatic' | |
11755 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
11756 | ;; | |
11757 | gcx*) | |
11758 | # Green Hills C++ Compiler | |
11759 | lt_prog_compiler_pic_CXX='-PIC' | |
11760 | ;; | |
11761 | *) | |
11762 | ;; | |
11763 | esac | |
11764 | ;; | |
11765 | sunos4*) | |
11766 | case $cc_basename in | |
11767 | CC*) | |
11768 | # Sun C++ 4.x | |
11769 | lt_prog_compiler_pic_CXX='-pic' | |
11770 | lt_prog_compiler_static_CXX='-Bstatic' | |
11771 | ;; | |
11772 | lcc*) | |
11773 | # Lucid | |
11774 | lt_prog_compiler_pic_CXX='-pic' | |
11775 | ;; | |
11776 | *) | |
11777 | ;; | |
11778 | esac | |
11779 | ;; | |
11780 | tandem*) | |
11781 | case $cc_basename in | |
11782 | NCC*) | |
11783 | # NonStop-UX NCC 3.20 | |
11784 | lt_prog_compiler_pic_CXX='-KPIC' | |
11785 | ;; | |
11786 | *) | |
11787 | ;; | |
11788 | esac | |
11789 | ;; | |
11790 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11791 | case $cc_basename in | |
11792 | CC*) | |
11793 | lt_prog_compiler_wl_CXX='-Wl,' | |
11794 | lt_prog_compiler_pic_CXX='-KPIC' | |
11795 | lt_prog_compiler_static_CXX='-Bstatic' | |
11796 | ;; | |
11797 | esac | |
11798 | ;; | |
11799 | vxworks*) | |
11800 | ;; | |
11801 | *) | |
11802 | lt_prog_compiler_can_build_shared_CXX=no | |
11803 | ;; | |
11804 | esac | |
11805 | fi | |
11806 | ||
11807 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
11808 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
11809 | ||
11810 | # | |
11811 | # Check to make sure the PIC flag actually works. | |
11812 | # | |
11813 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
11814 | ||
11815 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
11816 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
11817 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11819 | else | |
11820 | lt_prog_compiler_pic_works_CXX=no | |
11821 | ac_outfile=conftest.$ac_objext | |
11822 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11823 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11824 | # Insert the option either (1) after the last *FLAGS variable, or | |
11825 | # (2) before a word containing "conftest.", or (3) at the end. | |
11826 | # Note that $ac_compile itself does not contain backslashes and begins | |
11827 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11828 | # The option is referenced via a variable to avoid confusing sed. | |
11829 | lt_compile=`echo "$ac_compile" | $SED \ | |
11830 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11831 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11832 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 11833 | (eval echo "\"\$as_me:11833: $lt_compile\"" >&5) |
bf9f3bac | 11834 | (eval "$lt_compile" 2>conftest.err) |
11835 | ac_status=$? | |
11836 | cat conftest.err >&5 | |
86933a6e | 11837 | echo "$as_me:11837: \$? = $ac_status" >&5 |
bf9f3bac | 11838 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11839 | # The compiler can only warn and ignore the option if not recognized | |
11840 | # So say no if there are warnings other than the usual output. | |
11841 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
11842 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11843 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11844 | lt_prog_compiler_pic_works_CXX=yes | |
11845 | fi | |
11846 | fi | |
11847 | $rm conftest* | |
11848 | ||
11849 | fi | |
11850 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11851 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11852 | ||
11853 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11854 | case $lt_prog_compiler_pic_CXX in | |
11855 | "" | " "*) ;; | |
11856 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11857 | esac | |
11858 | else | |
11859 | lt_prog_compiler_pic_CXX= | |
11860 | lt_prog_compiler_can_build_shared_CXX=no | |
11861 | fi | |
11862 | ||
11863 | fi | |
11864 | case $host_os in | |
11865 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11866 | *djgpp*) | |
11867 | lt_prog_compiler_pic_CXX= | |
11868 | ;; | |
11869 | *) | |
11870 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11871 | ;; | |
11872 | esac | |
11873 | ||
11874 | # | |
11875 | # Check to make sure the static flag actually works. | |
11876 | # | |
11877 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
11878 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11879 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
11880 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11882 | else | |
11883 | lt_prog_compiler_static_works_CXX=no | |
11884 | save_LDFLAGS="$LDFLAGS" | |
11885 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11886 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
11887 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11888 | # The linker can only warn and ignore the option if not recognized | |
11889 | # So say no if there are warnings | |
11890 | if test -s conftest.err; then | |
11891 | # Append any errors to the config.log. | |
11892 | cat conftest.err 1>&5 | |
11893 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
11894 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11895 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11896 | lt_prog_compiler_static_works_CXX=yes | |
11897 | fi | |
11898 | else | |
11899 | lt_prog_compiler_static_works_CXX=yes | |
11900 | fi | |
11901 | fi | |
11902 | $rm conftest* | |
11903 | LDFLAGS="$save_LDFLAGS" | |
11904 | ||
11905 | fi | |
11906 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
11907 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
11908 | ||
11909 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
11910 | : | |
11911 | else | |
11912 | lt_prog_compiler_static_CXX= | |
11913 | fi | |
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_CXX+set}" = set; then | |
11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11920 | else | |
11921 | lt_cv_prog_compiler_c_o_CXX=no | |
11922 | $rm -r conftest 2>/dev/null | |
11923 | mkdir conftest | |
11924 | cd conftest | |
11925 | mkdir out | |
11926 | printf "$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:'` | |
86933a6e | 11937 | (eval echo "\"\$as_me:11937: $lt_compile\"" >&5) |
bf9f3bac | 11938 | (eval "$lt_compile" 2>out/conftest.err) |
11939 | ac_status=$? | |
11940 | cat out/conftest.err >&5 | |
86933a6e | 11941 | echo "$as_me:11941: \$? = $ac_status" >&5 |
bf9f3bac | 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_CXX=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 | rmdir conftest | |
11960 | $rm conftest* | |
11961 | ||
11962 | fi | |
11963 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11964 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11965 | ||
11966 | ||
11967 | hard_links="nottested" | |
11968 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11969 | # do not overwrite the value of need_locks provided by the user | |
11970 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11971 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11972 | hard_links=yes | |
11973 | $rm conftest* | |
11974 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11975 | touch conftest.a | |
11976 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11977 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11978 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11979 | echo "${ECHO_T}$hard_links" >&6 | |
11980 | if test "$hard_links" = no; then | |
11981 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11982 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11983 | need_locks=warn | |
11984 | fi | |
11985 | else | |
11986 | need_locks=no | |
11987 | fi | |
11988 | ||
11989 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11990 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11991 | ||
11992 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11993 | case $host_os in | |
11994 | aix4* | aix5*) | |
11995 | # If we're using GNU nm, then we don't want the "-C" option. | |
11996 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11997 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11998 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
11999 | else | |
12000 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12001 | fi | |
12002 | ;; | |
12003 | pw32*) | |
12004 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12005 | ;; | |
12006 | cygwin* | mingw*) | |
12007 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
12008 | ;; | |
12009 | *) | |
12010 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12011 | ;; | |
12012 | esac | |
12013 | ||
12014 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12015 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
12016 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12017 | ||
12018 | # | |
12019 | # Do we need to explicitly link libc? | |
12020 | # | |
12021 | case "x$archive_cmds_need_lc_CXX" in | |
12022 | x|xyes) | |
12023 | # Assume -lc should be added | |
12024 | archive_cmds_need_lc_CXX=yes | |
12025 | ||
12026 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12027 | case $archive_cmds_CXX in | |
12028 | *'~'*) | |
12029 | # FIXME: we may have to deal with multi-command sequences. | |
12030 | ;; | |
12031 | '$CC '*) | |
12032 | # Test whether the compiler implicitly links with -lc since on some | |
12033 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12034 | # to ld, don't add -lc before -lgcc. | |
12035 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12036 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12037 | $rm conftest* | |
12038 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12039 | ||
12040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12041 | (eval $ac_compile) 2>&5 | |
12042 | ac_status=$? | |
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12044 | (exit $ac_status); } 2>conftest.err; then | |
12045 | soname=conftest | |
12046 | lib=conftest | |
12047 | libobjs=conftest.$ac_objext | |
12048 | deplibs= | |
12049 | wl=$lt_prog_compiler_wl_CXX | |
12050 | pic_flag=$lt_prog_compiler_pic_CXX | |
12051 | compiler_flags=-v | |
12052 | linker_flags=-v | |
12053 | verstring= | |
12054 | output_objdir=. | |
12055 | libname=conftest | |
12056 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12057 | allow_undefined_flag_CXX= | |
12058 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12059 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12060 | ac_status=$? | |
12061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12062 | (exit $ac_status); } | |
12063 | then | |
12064 | archive_cmds_need_lc_CXX=no | |
12065 | else | |
12066 | archive_cmds_need_lc_CXX=yes | |
12067 | fi | |
12068 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12069 | else | |
12070 | cat conftest.err 1>&5 | |
12071 | fi | |
12072 | $rm conftest* | |
12073 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12074 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
12075 | ;; | |
12076 | esac | |
12077 | fi | |
12078 | ;; | |
12079 | esac | |
12080 | ||
12081 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12082 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12083 | library_names_spec= | |
12084 | libname_spec='lib$name' | |
12085 | soname_spec= | |
12086 | shrext_cmds=".so" | |
12087 | postinstall_cmds= | |
12088 | postuninstall_cmds= | |
12089 | finish_cmds= | |
12090 | finish_eval= | |
12091 | shlibpath_var= | |
12092 | shlibpath_overrides_runpath=unknown | |
12093 | version_type=none | |
12094 | dynamic_linker="$host_os ld.so" | |
12095 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12096 | if test "$GCC" = yes; then | |
12097 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12098 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12099 | # if the path contains ";" then we assume it to be the separator | |
12100 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12101 | # assumed that no part of a normal pathname contains ";" but that should | |
12102 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12103 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12104 | else | |
12105 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12106 | fi | |
12107 | else | |
12108 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12109 | fi | |
12110 | need_lib_prefix=unknown | |
12111 | hardcode_into_libs=no | |
12112 | ||
12113 | # when you set need_version to no, make sure it does not cause -set_version | |
12114 | # flags to be left without arguments | |
12115 | need_version=unknown | |
12116 | ||
12117 | case $host_os in | |
12118 | aix3*) | |
12119 | version_type=linux | |
12120 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12121 | shlibpath_var=LIBPATH | |
12122 | ||
12123 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12124 | soname_spec='${libname}${release}${shared_ext}$major' | |
12125 | ;; | |
12126 | ||
12127 | aix4* | aix5*) | |
12128 | version_type=linux | |
12129 | need_lib_prefix=no | |
12130 | need_version=no | |
12131 | hardcode_into_libs=yes | |
12132 | if test "$host_cpu" = ia64; then | |
12133 | # AIX 5 supports IA64 | |
12134 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12135 | shlibpath_var=LD_LIBRARY_PATH | |
12136 | else | |
12137 | # With GCC up to 2.95.x, collect2 would create an import file | |
12138 | # for dependence libraries. The import file would start with | |
12139 | # the line `#! .'. This would cause the generated library to | |
12140 | # depend on `.', always an invalid library. This was fixed in | |
12141 | # development snapshots of GCC prior to 3.0. | |
12142 | case $host_os in | |
12143 | aix4 | aix4.[01] | aix4.[01].*) | |
12144 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12145 | echo ' yes ' | |
12146 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12147 | : | |
12148 | else | |
12149 | can_build_shared=no | |
12150 | fi | |
12151 | ;; | |
12152 | esac | |
12153 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12154 | # soname into executable. Probably we can add versioning support to | |
12155 | # collect2, so additional links can be useful in future. | |
12156 | if test "$aix_use_runtimelinking" = yes; then | |
12157 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12158 | # instead of lib<name>.a to let people know that these are not | |
12159 | # typical AIX shared libraries. | |
12160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12161 | else | |
12162 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12163 | # and later when we are not doing run time linking. | |
12164 | library_names_spec='${libname}${release}.a $libname.a' | |
12165 | soname_spec='${libname}${release}${shared_ext}$major' | |
12166 | fi | |
12167 | shlibpath_var=LIBPATH | |
12168 | fi | |
12169 | ;; | |
12170 | ||
12171 | amigaos*) | |
12172 | library_names_spec='$libname.ixlibrary $libname.a' | |
12173 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12174 | 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' | |
12175 | ;; | |
12176 | ||
12177 | beos*) | |
12178 | library_names_spec='${libname}${shared_ext}' | |
12179 | dynamic_linker="$host_os ld.so" | |
12180 | shlibpath_var=LIBRARY_PATH | |
12181 | ;; | |
12182 | ||
12183 | bsdi[45]*) | |
12184 | version_type=linux | |
12185 | need_version=no | |
12186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12187 | soname_spec='${libname}${release}${shared_ext}$major' | |
12188 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12189 | shlibpath_var=LD_LIBRARY_PATH | |
12190 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12191 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12192 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12193 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12194 | # libtool to hard-code these into programs | |
12195 | ;; | |
12196 | ||
12197 | cygwin* | mingw* | pw32*) | |
12198 | version_type=windows | |
12199 | shrext_cmds=".dll" | |
12200 | need_version=no | |
12201 | need_lib_prefix=no | |
12202 | ||
12203 | case $GCC,$host_os in | |
12204 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
12205 | library_names_spec='$libname.dll.a' | |
12206 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12207 | postinstall_cmds='base_file=`basename \${file}`~ | |
12208 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
12209 | dldir=$destdir/`dirname \$dlpath`~ | |
12210 | test -d \$dldir || mkdir -p \$dldir~ | |
12211 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12212 | chmod a+x \$dldir/$dlname' | |
12213 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12214 | dlpath=$dir/\$dldll~ | |
12215 | $rm \$dlpath' | |
12216 | shlibpath_overrides_runpath=yes | |
12217 | ||
12218 | case $host_os in | |
12219 | cygwin*) | |
12220 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12221 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12222 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12223 | ;; | |
12224 | mingw*) | |
12225 | # MinGW DLLs use traditional 'lib' prefix | |
12226 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12227 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12228 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
12229 | # It is most probably a Windows format PATH printed by | |
12230 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12231 | # path with ; separators, and with drive letters. We can handle the | |
12232 | # drive letters (cygwin fileutils understands them), so leave them, | |
12233 | # especially as we might pass files found there to a mingw objdump, | |
12234 | # which wouldn't understand a cygwinified path. Ahh. | |
12235 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12236 | else | |
12237 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12238 | fi | |
12239 | ;; | |
12240 | pw32*) | |
12241 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12242 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12243 | ;; | |
12244 | esac | |
12245 | ;; | |
12246 | ||
12247 | *) | |
12248 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12249 | ;; | |
12250 | esac | |
12251 | dynamic_linker='Win32 ld.exe' | |
12252 | # FIXME: first we should search . and the directory the executable is in | |
12253 | shlibpath_var=PATH | |
12254 | ;; | |
12255 | ||
12256 | darwin* | rhapsody*) | |
12257 | dynamic_linker="$host_os dyld" | |
12258 | version_type=darwin | |
12259 | need_lib_prefix=no | |
12260 | need_version=no | |
12261 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12262 | soname_spec='${libname}${release}${major}$shared_ext' | |
12263 | shlibpath_overrides_runpath=yes | |
12264 | shlibpath_var=DYLD_LIBRARY_PATH | |
12265 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12266 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
12267 | if test "$GCC" = yes; then | |
12268 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
12269 | else | |
12270 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
12271 | fi | |
12272 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12273 | ;; | |
12274 | ||
12275 | dgux*) | |
12276 | version_type=linux | |
12277 | need_lib_prefix=no | |
12278 | need_version=no | |
12279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12280 | soname_spec='${libname}${release}${shared_ext}$major' | |
12281 | shlibpath_var=LD_LIBRARY_PATH | |
12282 | ;; | |
12283 | ||
12284 | freebsd1*) | |
12285 | dynamic_linker=no | |
12286 | ;; | |
12287 | ||
12288 | kfreebsd*-gnu) | |
12289 | version_type=linux | |
12290 | need_lib_prefix=no | |
12291 | need_version=no | |
12292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12293 | soname_spec='${libname}${release}${shared_ext}$major' | |
12294 | shlibpath_var=LD_LIBRARY_PATH | |
12295 | shlibpath_overrides_runpath=no | |
12296 | hardcode_into_libs=yes | |
12297 | dynamic_linker='GNU ld.so' | |
12298 | ;; | |
12299 | ||
12300 | freebsd* | dragonfly*) | |
12301 | # DragonFly does not have aout. When/if they implement a new | |
12302 | # versioning mechanism, adjust this. | |
12303 | if test -x /usr/bin/objformat; then | |
12304 | objformat=`/usr/bin/objformat` | |
12305 | else | |
12306 | case $host_os in | |
12307 | freebsd[123]*) objformat=aout ;; | |
12308 | *) objformat=elf ;; | |
12309 | esac | |
12310 | fi | |
12311 | version_type=freebsd-$objformat | |
12312 | case $version_type in | |
12313 | freebsd-elf*) | |
12314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12315 | need_version=no | |
12316 | need_lib_prefix=no | |
12317 | ;; | |
12318 | freebsd-*) | |
12319 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12320 | need_version=yes | |
12321 | ;; | |
12322 | esac | |
12323 | shlibpath_var=LD_LIBRARY_PATH | |
12324 | case $host_os in | |
12325 | freebsd2*) | |
12326 | shlibpath_overrides_runpath=yes | |
12327 | ;; | |
12328 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12329 | shlibpath_overrides_runpath=yes | |
12330 | hardcode_into_libs=yes | |
12331 | ;; | |
12332 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12333 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12334 | shlibpath_overrides_runpath=no | |
12335 | hardcode_into_libs=yes | |
12336 | ;; | |
12337 | freebsd*) # from 4.6 on | |
12338 | shlibpath_overrides_runpath=yes | |
12339 | hardcode_into_libs=yes | |
12340 | ;; | |
12341 | esac | |
12342 | ;; | |
12343 | ||
12344 | gnu*) | |
12345 | version_type=linux | |
12346 | need_lib_prefix=no | |
12347 | need_version=no | |
12348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12349 | soname_spec='${libname}${release}${shared_ext}$major' | |
12350 | shlibpath_var=LD_LIBRARY_PATH | |
12351 | hardcode_into_libs=yes | |
12352 | ;; | |
12353 | ||
12354 | hpux9* | hpux10* | hpux11*) | |
12355 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12356 | # link against other versions. | |
12357 | version_type=sunos | |
12358 | need_lib_prefix=no | |
12359 | need_version=no | |
12360 | case $host_cpu in | |
12361 | ia64*) | |
12362 | shrext_cmds='.so' | |
12363 | hardcode_into_libs=yes | |
12364 | dynamic_linker="$host_os dld.so" | |
12365 | shlibpath_var=LD_LIBRARY_PATH | |
12366 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12368 | soname_spec='${libname}${release}${shared_ext}$major' | |
12369 | if test "X$HPUX_IA64_MODE" = X32; then | |
12370 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12371 | else | |
12372 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12373 | fi | |
12374 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12375 | ;; | |
12376 | hppa*64*) | |
12377 | shrext_cmds='.sl' | |
12378 | hardcode_into_libs=yes | |
12379 | dynamic_linker="$host_os dld.sl" | |
12380 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12381 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12383 | soname_spec='${libname}${release}${shared_ext}$major' | |
12384 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12385 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12386 | ;; | |
12387 | *) | |
12388 | shrext_cmds='.sl' | |
12389 | dynamic_linker="$host_os dld.sl" | |
12390 | shlibpath_var=SHLIB_PATH | |
12391 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12393 | soname_spec='${libname}${release}${shared_ext}$major' | |
12394 | ;; | |
12395 | esac | |
12396 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12397 | postinstall_cmds='chmod 555 $lib' | |
12398 | ;; | |
12399 | ||
12400 | interix3*) | |
12401 | version_type=linux | |
12402 | need_lib_prefix=no | |
12403 | need_version=no | |
12404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12405 | soname_spec='${libname}${release}${shared_ext}$major' | |
12406 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12407 | shlibpath_var=LD_LIBRARY_PATH | |
12408 | shlibpath_overrides_runpath=no | |
12409 | hardcode_into_libs=yes | |
12410 | ;; | |
12411 | ||
12412 | irix5* | irix6* | nonstopux*) | |
12413 | case $host_os in | |
12414 | nonstopux*) version_type=nonstopux ;; | |
12415 | *) | |
12416 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12417 | version_type=linux | |
12418 | else | |
12419 | version_type=irix | |
12420 | fi ;; | |
12421 | esac | |
12422 | need_lib_prefix=no | |
12423 | need_version=no | |
12424 | soname_spec='${libname}${release}${shared_ext}$major' | |
12425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12426 | case $host_os in | |
12427 | irix5* | nonstopux*) | |
12428 | libsuff= shlibsuff= | |
12429 | ;; | |
12430 | *) | |
12431 | case $LD in # libtool.m4 will add one of these switches to LD | |
12432 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12433 | libsuff= shlibsuff= libmagic=32-bit;; | |
12434 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12435 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12436 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12437 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12438 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12439 | esac | |
12440 | ;; | |
12441 | esac | |
12442 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12443 | shlibpath_overrides_runpath=no | |
12444 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12445 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12446 | hardcode_into_libs=yes | |
12447 | ;; | |
12448 | ||
12449 | # No shared lib support for Linux oldld, aout, or coff. | |
12450 | linux*oldld* | linux*aout* | linux*coff*) | |
12451 | dynamic_linker=no | |
12452 | ;; | |
12453 | ||
12454 | # This must be Linux ELF. | |
12455 | linux*) | |
12456 | version_type=linux | |
12457 | need_lib_prefix=no | |
12458 | need_version=no | |
12459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12460 | soname_spec='${libname}${release}${shared_ext}$major' | |
12461 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12462 | shlibpath_var=LD_LIBRARY_PATH | |
12463 | shlibpath_overrides_runpath=no | |
12464 | # This implies no fast_install, which is unacceptable. | |
12465 | # Some rework will be needed to allow for fast_install | |
12466 | # before this can be enabled. | |
12467 | hardcode_into_libs=yes | |
12468 | ||
12469 | # find out which ABI we are using | |
12470 | libsuff= | |
12471 | case "$host_cpu" in | |
12472 | x86_64*|s390x*|powerpc64*) | |
86933a6e | 12473 | echo '#line 12473 "configure"' > conftest.$ac_ext |
bf9f3bac | 12474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12475 | (eval $ac_compile) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; then | |
12479 | case `/usr/bin/file conftest.$ac_objext` in | |
12480 | *64-bit*) | |
12481 | libsuff=64 | |
12482 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
12483 | ;; | |
12484 | esac | |
12485 | fi | |
12486 | rm -rf conftest* | |
12487 | ;; | |
12488 | esac | |
12489 | ||
12490 | # Append ld.so.conf contents to the search path | |
12491 | if test -f /etc/ld.so.conf; then | |
12492 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
12493 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
12494 | fi | |
12495 | ||
12496 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12497 | # powerpc, because MkLinux only supported shared libraries with the | |
12498 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12499 | # most powerpc-linux boxes support dynamic linking these days and | |
12500 | # people can always --disable-shared, the test was removed, and we | |
12501 | # assume the GNU/Linux dynamic linker is in use. | |
12502 | dynamic_linker='GNU/Linux ld.so' | |
12503 | ;; | |
12504 | ||
12505 | knetbsd*-gnu) | |
12506 | version_type=linux | |
12507 | need_lib_prefix=no | |
12508 | need_version=no | |
12509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12510 | soname_spec='${libname}${release}${shared_ext}$major' | |
12511 | shlibpath_var=LD_LIBRARY_PATH | |
12512 | shlibpath_overrides_runpath=no | |
12513 | hardcode_into_libs=yes | |
12514 | dynamic_linker='GNU ld.so' | |
12515 | ;; | |
12516 | ||
12517 | netbsd*) | |
12518 | version_type=sunos | |
12519 | need_lib_prefix=no | |
12520 | need_version=no | |
12521 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12523 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12524 | dynamic_linker='NetBSD (a.out) ld.so' | |
12525 | else | |
12526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12527 | soname_spec='${libname}${release}${shared_ext}$major' | |
12528 | dynamic_linker='NetBSD ld.elf_so' | |
12529 | fi | |
12530 | shlibpath_var=LD_LIBRARY_PATH | |
12531 | shlibpath_overrides_runpath=yes | |
12532 | hardcode_into_libs=yes | |
12533 | ;; | |
12534 | ||
12535 | newsos6) | |
12536 | version_type=linux | |
12537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12538 | shlibpath_var=LD_LIBRARY_PATH | |
12539 | shlibpath_overrides_runpath=yes | |
12540 | ;; | |
12541 | ||
12542 | nto-qnx*) | |
12543 | version_type=linux | |
12544 | need_lib_prefix=no | |
12545 | need_version=no | |
12546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12547 | soname_spec='${libname}${release}${shared_ext}$major' | |
12548 | shlibpath_var=LD_LIBRARY_PATH | |
12549 | shlibpath_overrides_runpath=yes | |
12550 | ;; | |
12551 | ||
12552 | openbsd*) | |
12553 | version_type=sunos | |
12554 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12555 | need_lib_prefix=no | |
12556 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12557 | case $host_os in | |
12558 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12559 | *) need_version=no ;; | |
12560 | esac | |
12561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12562 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12563 | shlibpath_var=LD_LIBRARY_PATH | |
12564 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12565 | case $host_os in | |
12566 | openbsd2.[89] | openbsd2.[89].*) | |
12567 | shlibpath_overrides_runpath=no | |
12568 | ;; | |
12569 | *) | |
12570 | shlibpath_overrides_runpath=yes | |
12571 | ;; | |
12572 | esac | |
12573 | else | |
12574 | shlibpath_overrides_runpath=yes | |
12575 | fi | |
12576 | ;; | |
12577 | ||
12578 | os2*) | |
12579 | libname_spec='$name' | |
12580 | shrext_cmds=".dll" | |
12581 | need_lib_prefix=no | |
12582 | library_names_spec='$libname${shared_ext} $libname.a' | |
12583 | dynamic_linker='OS/2 ld.exe' | |
12584 | shlibpath_var=LIBPATH | |
12585 | ;; | |
12586 | ||
12587 | osf3* | osf4* | osf5*) | |
12588 | version_type=osf | |
12589 | need_lib_prefix=no | |
12590 | need_version=no | |
12591 | soname_spec='${libname}${release}${shared_ext}$major' | |
12592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12593 | shlibpath_var=LD_LIBRARY_PATH | |
12594 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12595 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12596 | ;; | |
12597 | ||
12598 | solaris*) | |
12599 | version_type=linux | |
12600 | need_lib_prefix=no | |
12601 | need_version=no | |
12602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12603 | soname_spec='${libname}${release}${shared_ext}$major' | |
12604 | shlibpath_var=LD_LIBRARY_PATH | |
12605 | shlibpath_overrides_runpath=yes | |
12606 | hardcode_into_libs=yes | |
12607 | # ldd complains unless libraries are executable | |
12608 | postinstall_cmds='chmod +x $lib' | |
12609 | ;; | |
12610 | ||
12611 | sunos4*) | |
12612 | version_type=sunos | |
12613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12614 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12615 | shlibpath_var=LD_LIBRARY_PATH | |
12616 | shlibpath_overrides_runpath=yes | |
12617 | if test "$with_gnu_ld" = yes; then | |
12618 | need_lib_prefix=no | |
12619 | fi | |
12620 | need_version=yes | |
12621 | ;; | |
12622 | ||
12623 | sysv4 | sysv4.3*) | |
12624 | version_type=linux | |
12625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12626 | soname_spec='${libname}${release}${shared_ext}$major' | |
12627 | shlibpath_var=LD_LIBRARY_PATH | |
12628 | case $host_vendor in | |
12629 | sni) | |
12630 | shlibpath_overrides_runpath=no | |
12631 | need_lib_prefix=no | |
12632 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
12633 | runpath_var=LD_RUN_PATH | |
12634 | ;; | |
12635 | siemens) | |
12636 | need_lib_prefix=no | |
12637 | ;; | |
12638 | motorola) | |
12639 | need_lib_prefix=no | |
12640 | need_version=no | |
12641 | shlibpath_overrides_runpath=no | |
12642 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12643 | ;; | |
12644 | esac | |
12645 | ;; | |
12646 | ||
12647 | sysv4*MP*) | |
12648 | if test -d /usr/nec ;then | |
12649 | version_type=linux | |
12650 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12651 | soname_spec='$libname${shared_ext}.$major' | |
12652 | shlibpath_var=LD_LIBRARY_PATH | |
12653 | fi | |
12654 | ;; | |
12655 | ||
12656 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12657 | version_type=freebsd-elf | |
12658 | need_lib_prefix=no | |
12659 | need_version=no | |
12660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12661 | soname_spec='${libname}${release}${shared_ext}$major' | |
12662 | shlibpath_var=LD_LIBRARY_PATH | |
12663 | hardcode_into_libs=yes | |
12664 | if test "$with_gnu_ld" = yes; then | |
12665 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12666 | shlibpath_overrides_runpath=no | |
12667 | else | |
12668 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12669 | shlibpath_overrides_runpath=yes | |
12670 | case $host_os in | |
12671 | sco3.2v5*) | |
12672 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12673 | ;; | |
12674 | esac | |
12675 | fi | |
12676 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12677 | ;; | |
12678 | ||
12679 | uts4*) | |
12680 | version_type=linux | |
12681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12682 | soname_spec='${libname}${release}${shared_ext}$major' | |
12683 | shlibpath_var=LD_LIBRARY_PATH | |
12684 | ;; | |
12685 | ||
12686 | *) | |
12687 | dynamic_linker=no | |
12688 | ;; | |
12689 | esac | |
12690 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12691 | echo "${ECHO_T}$dynamic_linker" >&6 | |
12692 | test "$dynamic_linker" = no && can_build_shared=no | |
12693 | ||
12694 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12695 | if test "$GCC" = yes; then | |
12696 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12697 | fi | |
12698 | ||
12699 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12700 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12701 | hardcode_action_CXX= | |
12702 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
12703 | test -n "$runpath_var_CXX" || \ | |
12704 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
12705 | ||
12706 | # We can hardcode non-existant directories. | |
12707 | if test "$hardcode_direct_CXX" != no && | |
12708 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12709 | # have to relink, otherwise we might link with an installed library | |
12710 | # when we should be linking with a yet-to-be-installed one | |
12711 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
12712 | test "$hardcode_minus_L_CXX" != no; then | |
12713 | # Linking always hardcodes the temporary library directory. | |
12714 | hardcode_action_CXX=relink | |
12715 | else | |
12716 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12717 | hardcode_action_CXX=immediate | |
12718 | fi | |
12719 | else | |
12720 | # We cannot hardcode anything, or else we can only hardcode existing | |
12721 | # directories. | |
12722 | hardcode_action_CXX=unsupported | |
12723 | fi | |
12724 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
12725 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
12726 | ||
12727 | if test "$hardcode_action_CXX" = relink; then | |
12728 | # Fast installation is not supported | |
12729 | enable_fast_install=no | |
12730 | elif test "$shlibpath_overrides_runpath" = yes || | |
12731 | test "$enable_shared" = no; then | |
12732 | # Fast installation is not necessary | |
12733 | enable_fast_install=needless | |
12734 | fi | |
12735 | ||
12736 | ||
12737 | # The else clause should only fire when bootstrapping the | |
12738 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12739 | # with your package, and you will get complaints that there are | |
12740 | # no rules to generate ltmain.sh. | |
12741 | if test -f "$ltmain"; then | |
12742 | # See if we are running on zsh, and set the options which allow our commands through | |
12743 | # without removal of \ escapes. | |
12744 | if test -n "${ZSH_VERSION+set}" ; then | |
12745 | setopt NO_GLOB_SUBST | |
12746 | fi | |
12747 | # Now quote all the things that may contain metacharacters while being | |
12748 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12749 | # variables and quote the copies for generation of the libtool script. | |
12750 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
12751 | SED SHELL STRIP \ | |
12752 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12753 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12754 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
12755 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12756 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12757 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12758 | old_postinstall_cmds old_postuninstall_cmds \ | |
12759 | compiler_CXX \ | |
12760 | CC_CXX \ | |
12761 | LD_CXX \ | |
12762 | lt_prog_compiler_wl_CXX \ | |
12763 | lt_prog_compiler_pic_CXX \ | |
12764 | lt_prog_compiler_static_CXX \ | |
12765 | lt_prog_compiler_no_builtin_flag_CXX \ | |
12766 | export_dynamic_flag_spec_CXX \ | |
12767 | thread_safe_flag_spec_CXX \ | |
12768 | whole_archive_flag_spec_CXX \ | |
12769 | enable_shared_with_static_runtimes_CXX \ | |
12770 | old_archive_cmds_CXX \ | |
12771 | old_archive_from_new_cmds_CXX \ | |
12772 | predep_objects_CXX \ | |
12773 | postdep_objects_CXX \ | |
12774 | predeps_CXX \ | |
12775 | postdeps_CXX \ | |
12776 | compiler_lib_search_path_CXX \ | |
12777 | archive_cmds_CXX \ | |
12778 | archive_expsym_cmds_CXX \ | |
12779 | postinstall_cmds_CXX \ | |
12780 | postuninstall_cmds_CXX \ | |
12781 | old_archive_from_expsyms_cmds_CXX \ | |
12782 | allow_undefined_flag_CXX \ | |
12783 | no_undefined_flag_CXX \ | |
12784 | export_symbols_cmds_CXX \ | |
12785 | hardcode_libdir_flag_spec_CXX \ | |
12786 | hardcode_libdir_flag_spec_ld_CXX \ | |
12787 | hardcode_libdir_separator_CXX \ | |
12788 | hardcode_automatic_CXX \ | |
12789 | module_cmds_CXX \ | |
12790 | module_expsym_cmds_CXX \ | |
12791 | lt_cv_prog_compiler_c_o_CXX \ | |
12792 | exclude_expsyms_CXX \ | |
12793 | include_expsyms_CXX; do | |
12794 | ||
12795 | case $var in | |
12796 | old_archive_cmds_CXX | \ | |
12797 | old_archive_from_new_cmds_CXX | \ | |
12798 | archive_cmds_CXX | \ | |
12799 | archive_expsym_cmds_CXX | \ | |
12800 | module_cmds_CXX | \ | |
12801 | module_expsym_cmds_CXX | \ | |
12802 | old_archive_from_expsyms_cmds_CXX | \ | |
12803 | export_symbols_cmds_CXX | \ | |
12804 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12805 | postinstall_cmds | postuninstall_cmds | \ | |
12806 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
12807 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12808 | # Double-quote double-evaled strings. | |
12809 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12810 | ;; | |
12811 | *) | |
12812 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12813 | ;; | |
12814 | esac | |
12815 | done | |
12816 | ||
12817 | case $lt_echo in | |
12818 | *'\$0 --fallback-echo"') | |
12819 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12820 | ;; | |
12821 | esac | |
12822 | ||
12823 | cfgfile="$ofile" | |
12824 | ||
12825 | cat <<__EOF__ >> "$cfgfile" | |
12826 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
12827 | ||
12828 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12829 | ||
12830 | # Shell to use when invoking shell scripts. | |
12831 | SHELL=$lt_SHELL | |
12832 | ||
12833 | # Whether or not to build shared libraries. | |
12834 | build_libtool_libs=$enable_shared | |
12835 | ||
12836 | # Whether or not to build static libraries. | |
12837 | build_old_libs=$enable_static | |
12838 | ||
12839 | # Whether or not to add -lc for building shared libraries. | |
12840 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
12841 | ||
12842 | # Whether or not to disallow shared libs when runtime libs are static | |
12843 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
12844 | ||
12845 | # Whether or not to optimize for fast installation. | |
12846 | fast_install=$enable_fast_install | |
12847 | ||
12848 | # The host system. | |
12849 | host_alias=$host_alias | |
12850 | host=$host | |
12851 | host_os=$host_os | |
12852 | ||
12853 | # The build system. | |
12854 | build_alias=$build_alias | |
12855 | build=$build | |
12856 | build_os=$build_os | |
12857 | ||
12858 | # An echo program that does not interpret backslashes. | |
12859 | echo=$lt_echo | |
12860 | ||
12861 | # The archiver. | |
12862 | AR=$lt_AR | |
12863 | AR_FLAGS=$lt_AR_FLAGS | |
12864 | ||
12865 | # A C compiler. | |
12866 | LTCC=$lt_LTCC | |
12867 | ||
12868 | # LTCC compiler flags. | |
12869 | LTCFLAGS=$lt_LTCFLAGS | |
12870 | ||
12871 | # A language-specific compiler. | |
12872 | CC=$lt_compiler_CXX | |
12873 | ||
12874 | # Is the compiler the GNU C compiler? | |
12875 | with_gcc=$GCC_CXX | |
12876 | ||
12877 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
12878 | gcc_ver=\`gcc -dumpversion\` | |
12879 | ||
12880 | # An ERE matcher. | |
12881 | EGREP=$lt_EGREP | |
12882 | ||
12883 | # The linker used to build libraries. | |
12884 | LD=$lt_LD_CXX | |
12885 | ||
12886 | # Whether we need hard or soft links. | |
12887 | LN_S=$lt_LN_S | |
12888 | ||
12889 | # A BSD-compatible nm program. | |
12890 | NM=$lt_NM | |
12891 | ||
12892 | # A symbol stripping program | |
12893 | STRIP=$lt_STRIP | |
12894 | ||
12895 | # Used to examine libraries when file_magic_cmd begins "file" | |
12896 | MAGIC_CMD=$MAGIC_CMD | |
12897 | ||
12898 | # Used on cygwin: DLL creation program. | |
12899 | DLLTOOL="$DLLTOOL" | |
12900 | ||
12901 | # Used on cygwin: object dumper. | |
12902 | OBJDUMP="$OBJDUMP" | |
12903 | ||
12904 | # Used on cygwin: assembler. | |
12905 | AS="$AS" | |
12906 | ||
12907 | # The name of the directory that contains temporary libtool files. | |
12908 | objdir=$objdir | |
12909 | ||
12910 | # How to create reloadable object files. | |
12911 | reload_flag=$lt_reload_flag | |
12912 | reload_cmds=$lt_reload_cmds | |
12913 | ||
12914 | # How to pass a linker flag through the compiler. | |
12915 | wl=$lt_lt_prog_compiler_wl_CXX | |
12916 | ||
12917 | # Object file suffix (normally "o"). | |
12918 | objext="$ac_objext" | |
12919 | ||
12920 | # Old archive suffix (normally "a"). | |
12921 | libext="$libext" | |
12922 | ||
12923 | # Shared library suffix (normally ".so"). | |
12924 | shrext_cmds='$shrext_cmds' | |
12925 | ||
12926 | # Executable file suffix (normally ""). | |
12927 | exeext="$exeext" | |
12928 | ||
12929 | # Additional compiler flags for building library objects. | |
12930 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
12931 | pic_mode=$pic_mode | |
12932 | ||
12933 | # What is the maximum length of a command? | |
12934 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
12935 | ||
12936 | # Does compiler simultaneously support -c and -o options? | |
12937 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
12938 | ||
12939 | # Must we lock files when doing compilation? | |
12940 | need_locks=$lt_need_locks | |
12941 | ||
12942 | # Do we need the lib prefix for modules? | |
12943 | need_lib_prefix=$need_lib_prefix | |
12944 | ||
12945 | # Do we need a version for libraries? | |
12946 | need_version=$need_version | |
12947 | ||
12948 | # Whether dlopen is supported. | |
12949 | dlopen_support=$enable_dlopen | |
12950 | ||
12951 | # Whether dlopen of programs is supported. | |
12952 | dlopen_self=$enable_dlopen_self | |
12953 | ||
12954 | # Whether dlopen of statically linked programs is supported. | |
12955 | dlopen_self_static=$enable_dlopen_self_static | |
12956 | ||
12957 | # Compiler flag to prevent dynamic linking. | |
12958 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
12959 | ||
12960 | # Compiler flag to turn off builtin functions. | |
12961 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
12962 | ||
12963 | # Compiler flag to allow reflexive dlopens. | |
12964 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
12965 | ||
12966 | # Compiler flag to generate shared objects directly from archives. | |
12967 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
12968 | ||
12969 | # Compiler flag to generate thread-safe objects. | |
12970 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
12971 | ||
12972 | # Library versioning type. | |
12973 | version_type=$version_type | |
12974 | ||
12975 | # Format of library name prefix. | |
12976 | libname_spec=$lt_libname_spec | |
12977 | ||
12978 | # List of archive names. First name is the real one, the rest are links. | |
12979 | # The last name is the one that the linker finds with -lNAME. | |
12980 | library_names_spec=$lt_library_names_spec | |
12981 | ||
12982 | # The coded name of the library, if different from the real name. | |
12983 | soname_spec=$lt_soname_spec | |
12984 | ||
12985 | # Commands used to build and install an old-style archive. | |
12986 | RANLIB=$lt_RANLIB | |
12987 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
12988 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12989 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12990 | ||
12991 | # Create an old-style archive from a shared archive. | |
12992 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
12993 | ||
12994 | # Create a temporary old-style archive to link instead of a shared archive. | |
12995 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
12996 | ||
12997 | # Commands used to build and install a shared archive. | |
12998 | archive_cmds=$lt_archive_cmds_CXX | |
12999 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13000 | postinstall_cmds=$lt_postinstall_cmds | |
13001 | postuninstall_cmds=$lt_postuninstall_cmds | |
13002 | ||
13003 | # Commands used to build a loadable module (assumed same as above if empty) | |
13004 | module_cmds=$lt_module_cmds_CXX | |
13005 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13006 | ||
13007 | # Commands to strip libraries. | |
13008 | old_striplib=$lt_old_striplib | |
13009 | striplib=$lt_striplib | |
13010 | ||
13011 | # Dependencies to place before the objects being linked to create a | |
13012 | # shared library. | |
13013 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13014 | ||
13015 | # Dependencies to place after the objects being linked to create a | |
13016 | # shared library. | |
13017 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13018 | ||
13019 | # Dependencies to place before the objects being linked to create a | |
13020 | # shared library. | |
13021 | predeps=$lt_predeps_CXX | |
13022 | ||
13023 | # Dependencies to place after the objects being linked to create a | |
13024 | # shared library. | |
13025 | postdeps=$lt_postdeps_CXX | |
13026 | ||
13027 | # The library search path used internally by the compiler when linking | |
13028 | # a shared library. | |
13029 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13030 | ||
13031 | # Method to check whether dependent libraries are shared objects. | |
13032 | deplibs_check_method=$lt_deplibs_check_method | |
13033 | ||
13034 | # Command to use when deplibs_check_method == file_magic. | |
13035 | file_magic_cmd=$lt_file_magic_cmd | |
13036 | ||
13037 | # Flag that allows shared libraries with undefined symbols to be built. | |
13038 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13039 | ||
13040 | # Flag that forces no undefined symbols. | |
13041 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
13042 | ||
13043 | # Commands used to finish a libtool library installation in a directory. | |
13044 | finish_cmds=$lt_finish_cmds | |
13045 | ||
13046 | # Same as above, but a single script fragment to be evaled but not shown. | |
13047 | finish_eval=$lt_finish_eval | |
13048 | ||
13049 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13050 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13051 | ||
13052 | # Transform the output of nm in a proper C declaration | |
13053 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13054 | ||
13055 | # Transform the output of nm in a C name address pair | |
13056 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13057 | ||
13058 | # This is the shared library runtime path variable. | |
13059 | runpath_var=$runpath_var | |
13060 | ||
13061 | # This is the shared library path variable. | |
13062 | shlibpath_var=$shlibpath_var | |
13063 | ||
13064 | # Is shlibpath searched before the hard-coded library search path? | |
13065 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13066 | ||
13067 | # How to hardcode a shared library path into an executable. | |
13068 | hardcode_action=$hardcode_action_CXX | |
13069 | ||
13070 | # Whether we should hardcode library paths into libraries. | |
13071 | hardcode_into_libs=$hardcode_into_libs | |
13072 | ||
13073 | # Flag to hardcode \$libdir into a binary during linking. | |
13074 | # This must work even if \$libdir does not exist. | |
13075 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13076 | ||
13077 | # If ld is used when linking, flag to hardcode \$libdir into | |
13078 | # a binary during linking. This must work even if \$libdir does | |
13079 | # not exist. | |
13080 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13081 | ||
13082 | # Whether we need a single -rpath flag with a separated argument. | |
13083 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13084 | ||
13085 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13086 | # resulting binary. | |
13087 | hardcode_direct=$hardcode_direct_CXX | |
13088 | ||
13089 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13090 | # resulting binary. | |
13091 | hardcode_minus_L=$hardcode_minus_L_CXX | |
13092 | ||
13093 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13094 | # the resulting binary. | |
13095 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13096 | ||
13097 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13098 | # and all subsequent libraries and executables linked against it. | |
13099 | hardcode_automatic=$hardcode_automatic_CXX | |
13100 | ||
13101 | # Variables whose values should be saved in libtool wrapper scripts and | |
13102 | # restored at relink time. | |
13103 | variables_saved_for_relink="$variables_saved_for_relink" | |
13104 | ||
13105 | # Whether libtool must link a program against all its dependency libraries. | |
13106 | link_all_deplibs=$link_all_deplibs_CXX | |
13107 | ||
13108 | # Compile-time system search path for libraries | |
13109 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
13110 | ||
13111 | # Run-time system search path for libraries | |
13112 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13113 | ||
13114 | # Fix the shell variable \$srcfile for the compiler. | |
13115 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
13116 | ||
13117 | # Set to yes if exported symbols are required. | |
13118 | always_export_symbols=$always_export_symbols_CXX | |
13119 | ||
13120 | # The commands to list exported symbols. | |
13121 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13122 | ||
13123 | # The commands to extract the exported symbol list from a shared archive. | |
13124 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13125 | ||
13126 | # Symbols that should not be listed in the preloaded symbols. | |
13127 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
13128 | ||
13129 | # Symbols that must always be exported. | |
13130 | include_expsyms=$lt_include_expsyms_CXX | |
13131 | ||
13132 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13133 | ||
13134 | __EOF__ | |
13135 | ||
13136 | ||
13137 | else | |
13138 | # If there is no Makefile yet, we rely on a make rule to execute | |
13139 | # `config.status --recheck' to rerun these tests and create the | |
13140 | # libtool script then. | |
13141 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13142 | if test -f "$ltmain_in"; then | |
13143 | test -f Makefile && make "$ltmain" | |
13144 | fi | |
13145 | fi | |
13146 | ||
13147 | ||
13148 | ac_ext=c | |
13149 | ac_cpp='$CPP $CPPFLAGS' | |
13150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13153 | ||
13154 | CC=$lt_save_CC | |
13155 | LDCXX=$LD | |
13156 | LD=$lt_save_LD | |
13157 | GCC=$lt_save_GCC | |
13158 | with_gnu_ldcxx=$with_gnu_ld | |
13159 | with_gnu_ld=$lt_save_with_gnu_ld | |
13160 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13161 | lt_cv_path_LD=$lt_save_path_LD | |
13162 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13163 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13164 | ||
13165 | else | |
13166 | tagname="" | |
13167 | fi | |
13168 | ;; | |
13169 | ||
13170 | F77) | |
13171 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
13172 | ||
13173 | ac_ext=f | |
13174 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13175 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13176 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13177 | ||
13178 | ||
13179 | archive_cmds_need_lc_F77=no | |
13180 | allow_undefined_flag_F77= | |
13181 | always_export_symbols_F77=no | |
13182 | archive_expsym_cmds_F77= | |
13183 | export_dynamic_flag_spec_F77= | |
13184 | hardcode_direct_F77=no | |
13185 | hardcode_libdir_flag_spec_F77= | |
13186 | hardcode_libdir_flag_spec_ld_F77= | |
13187 | hardcode_libdir_separator_F77= | |
13188 | hardcode_minus_L_F77=no | |
13189 | hardcode_automatic_F77=no | |
13190 | module_cmds_F77= | |
13191 | module_expsym_cmds_F77= | |
13192 | link_all_deplibs_F77=unknown | |
13193 | old_archive_cmds_F77=$old_archive_cmds | |
13194 | no_undefined_flag_F77= | |
13195 | whole_archive_flag_spec_F77= | |
13196 | enable_shared_with_static_runtimes_F77=no | |
13197 | ||
13198 | # Source file extension for f77 test sources. | |
13199 | ac_ext=f | |
13200 | ||
13201 | # Object file extension for compiled f77 test sources. | |
13202 | objext=o | |
13203 | objext_F77=$objext | |
13204 | ||
13205 | # Code to be used in simple compile tests | |
13206 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13207 | ||
13208 | # Code to be used in simple link tests | |
13209 | lt_simple_link_test_code=" program t\n end\n" | |
13210 | ||
13211 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13212 | ||
13213 | # If no C compiler was specified, use CC. | |
13214 | LTCC=${LTCC-"$CC"} | |
13215 | ||
13216 | # If no C compiler flags were specified, use CFLAGS. | |
13217 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13218 | ||
13219 | # Allow CC to be a program name with arguments. | |
13220 | compiler=$CC | |
13221 | ||
13222 | ||
13223 | # save warnings/boilerplate of simple test code | |
13224 | ac_outfile=conftest.$ac_objext | |
13225 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13226 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13227 | _lt_compiler_boilerplate=`cat conftest.err` | |
13228 | $rm conftest* | |
13229 | ||
13230 | ac_outfile=conftest.$ac_objext | |
13231 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
13232 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13233 | _lt_linker_boilerplate=`cat conftest.err` | |
13234 | $rm conftest* | |
13235 | ||
13236 | ||
13237 | # Allow CC to be a program name with arguments. | |
13238 | lt_save_CC="$CC" | |
13239 | CC=${F77-"f77"} | |
13240 | compiler=$CC | |
13241 | compiler_F77=$CC | |
13242 | for cc_temp in $compiler""; do | |
13243 | case $cc_temp in | |
13244 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13245 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13246 | \-*) ;; | |
13247 | *) break;; | |
13248 | esac | |
13249 | done | |
13250 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13251 | ||
13252 | ||
13253 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13254 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13255 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13256 | echo "${ECHO_T}$can_build_shared" >&6 | |
13257 | ||
13258 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13259 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13260 | test "$can_build_shared" = "no" && enable_shared=no | |
13261 | ||
13262 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13263 | # are all built from PIC. | |
13264 | case $host_os in | |
13265 | aix3*) | |
13266 | test "$enable_shared" = yes && enable_static=no | |
13267 | if test -n "$RANLIB"; then | |
13268 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13269 | postinstall_cmds='$RANLIB $lib' | |
13270 | fi | |
13271 | ;; | |
13272 | aix4* | aix5*) | |
13273 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13274 | test "$enable_shared" = yes && enable_static=no | |
13275 | fi | |
13276 | ;; | |
13277 | esac | |
13278 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13279 | echo "${ECHO_T}$enable_shared" >&6 | |
13280 | ||
13281 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13282 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13283 | # Make sure either enable_shared or enable_static is yes. | |
13284 | test "$enable_shared" = yes || enable_static=yes | |
13285 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13286 | echo "${ECHO_T}$enable_static" >&6 | |
13287 | ||
13288 | GCC_F77="$G77" | |
13289 | LD_F77="$LD" | |
13290 | ||
13291 | lt_prog_compiler_wl_F77= | |
13292 | lt_prog_compiler_pic_F77= | |
13293 | lt_prog_compiler_static_F77= | |
13294 | ||
13295 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13296 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13297 | ||
13298 | if test "$GCC" = yes; then | |
13299 | lt_prog_compiler_wl_F77='-Wl,' | |
13300 | lt_prog_compiler_static_F77='-static' | |
13301 | ||
13302 | case $host_os in | |
13303 | aix*) | |
13304 | # All AIX code is PIC. | |
13305 | if test "$host_cpu" = ia64; then | |
13306 | # AIX 5 now supports IA64 processor | |
13307 | lt_prog_compiler_static_F77='-Bstatic' | |
13308 | fi | |
13309 | ;; | |
13310 | ||
13311 | amigaos*) | |
13312 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13313 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13314 | # like `-m68040'. | |
13315 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13316 | ;; | |
13317 | ||
13318 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13319 | # PIC is the default for these OSes. | |
13320 | ;; | |
13321 | ||
13322 | mingw* | pw32* | os2*) | |
13323 | # This hack is so that the source file can tell whether it is being | |
13324 | # built for inclusion in a dll (and should export symbols for example). | |
13325 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13326 | ;; | |
13327 | ||
13328 | darwin* | rhapsody*) | |
13329 | # PIC is the default on this platform | |
13330 | # Common symbols not allowed in MH_DYLIB files | |
13331 | lt_prog_compiler_pic_F77='-fno-common' | |
13332 | ;; | |
13333 | ||
13334 | interix3*) | |
13335 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13336 | # Instead, we relocate shared libraries at runtime. | |
13337 | ;; | |
13338 | ||
13339 | msdosdjgpp*) | |
13340 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13341 | # on systems that don't support them. | |
13342 | lt_prog_compiler_can_build_shared_F77=no | |
13343 | enable_shared=no | |
13344 | ;; | |
13345 | ||
13346 | sysv4*MP*) | |
13347 | if test -d /usr/nec; then | |
13348 | lt_prog_compiler_pic_F77=-Kconform_pic | |
13349 | fi | |
13350 | ;; | |
13351 | ||
13352 | hpux*) | |
13353 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13354 | # not for PA HP-UX. | |
13355 | case $host_cpu in | |
13356 | hppa*64*|ia64*) | |
13357 | # +Z the default | |
13358 | ;; | |
13359 | *) | |
13360 | lt_prog_compiler_pic_F77='-fPIC' | |
13361 | ;; | |
13362 | esac | |
13363 | ;; | |
13364 | ||
13365 | *) | |
13366 | lt_prog_compiler_pic_F77='-fPIC' | |
13367 | ;; | |
13368 | esac | |
13369 | else | |
13370 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13371 | case $host_os in | |
13372 | aix*) | |
13373 | lt_prog_compiler_wl_F77='-Wl,' | |
13374 | if test "$host_cpu" = ia64; then | |
13375 | # AIX 5 now supports IA64 processor | |
13376 | lt_prog_compiler_static_F77='-Bstatic' | |
13377 | else | |
13378 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13379 | fi | |
13380 | ;; | |
13381 | darwin*) | |
13382 | # PIC is the default on this platform | |
13383 | # Common symbols not allowed in MH_DYLIB files | |
13384 | case $cc_basename in | |
13385 | xlc*) | |
13386 | lt_prog_compiler_pic_F77='-qnocommon' | |
13387 | lt_prog_compiler_wl_F77='-Wl,' | |
13388 | ;; | |
13389 | esac | |
13390 | ;; | |
13391 | ||
13392 | mingw* | pw32* | os2*) | |
13393 | # This hack is so that the source file can tell whether it is being | |
13394 | # built for inclusion in a dll (and should export symbols for example). | |
13395 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13396 | ;; | |
13397 | ||
13398 | hpux9* | hpux10* | hpux11*) | |
13399 | lt_prog_compiler_wl_F77='-Wl,' | |
13400 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13401 | # not for PA HP-UX. | |
13402 | case $host_cpu in | |
13403 | hppa*64*|ia64*) | |
13404 | # +Z the default | |
13405 | ;; | |
13406 | *) | |
13407 | lt_prog_compiler_pic_F77='+Z' | |
13408 | ;; | |
13409 | esac | |
13410 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13411 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13412 | ;; | |
13413 | ||
13414 | irix5* | irix6* | nonstopux*) | |
13415 | lt_prog_compiler_wl_F77='-Wl,' | |
13416 | # PIC (with -KPIC) is the default. | |
13417 | lt_prog_compiler_static_F77='-non_shared' | |
13418 | ;; | |
13419 | ||
13420 | newsos6) | |
13421 | lt_prog_compiler_pic_F77='-KPIC' | |
13422 | lt_prog_compiler_static_F77='-Bstatic' | |
13423 | ;; | |
13424 | ||
13425 | linux*) | |
13426 | case $cc_basename in | |
13427 | icc* | ecc*) | |
13428 | lt_prog_compiler_wl_F77='-Wl,' | |
13429 | lt_prog_compiler_pic_F77='-KPIC' | |
13430 | lt_prog_compiler_static_F77='-static' | |
13431 | ;; | |
13432 | pgcc* | pgf77* | pgf90* | pgf95*) | |
13433 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
13434 | # which looks to be a dead project) | |
13435 | lt_prog_compiler_wl_F77='-Wl,' | |
13436 | lt_prog_compiler_pic_F77='-fpic' | |
13437 | lt_prog_compiler_static_F77='-Bstatic' | |
13438 | ;; | |
13439 | ccc*) | |
13440 | lt_prog_compiler_wl_F77='-Wl,' | |
13441 | # All Alpha code is PIC. | |
13442 | lt_prog_compiler_static_F77='-non_shared' | |
13443 | ;; | |
13444 | esac | |
13445 | ;; | |
13446 | ||
13447 | osf3* | osf4* | osf5*) | |
13448 | lt_prog_compiler_wl_F77='-Wl,' | |
13449 | # All OSF/1 code is PIC. | |
13450 | lt_prog_compiler_static_F77='-non_shared' | |
13451 | ;; | |
13452 | ||
13453 | solaris*) | |
13454 | lt_prog_compiler_pic_F77='-KPIC' | |
13455 | lt_prog_compiler_static_F77='-Bstatic' | |
13456 | case $cc_basename in | |
13457 | f77* | f90* | f95*) | |
13458 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13459 | *) | |
13460 | lt_prog_compiler_wl_F77='-Wl,';; | |
13461 | esac | |
13462 | ;; | |
13463 | ||
13464 | sunos4*) | |
13465 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
13466 | lt_prog_compiler_pic_F77='-PIC' | |
13467 | lt_prog_compiler_static_F77='-Bstatic' | |
13468 | ;; | |
13469 | ||
13470 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13471 | lt_prog_compiler_wl_F77='-Wl,' | |
13472 | lt_prog_compiler_pic_F77='-KPIC' | |
13473 | lt_prog_compiler_static_F77='-Bstatic' | |
13474 | ;; | |
13475 | ||
13476 | sysv4*MP*) | |
13477 | if test -d /usr/nec ;then | |
13478 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
13479 | lt_prog_compiler_static_F77='-Bstatic' | |
13480 | fi | |
13481 | ;; | |
13482 | ||
13483 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13484 | lt_prog_compiler_wl_F77='-Wl,' | |
13485 | lt_prog_compiler_pic_F77='-KPIC' | |
13486 | lt_prog_compiler_static_F77='-Bstatic' | |
13487 | ;; | |
13488 | ||
13489 | unicos*) | |
13490 | lt_prog_compiler_wl_F77='-Wl,' | |
13491 | lt_prog_compiler_can_build_shared_F77=no | |
13492 | ;; | |
13493 | ||
13494 | uts4*) | |
13495 | lt_prog_compiler_pic_F77='-pic' | |
13496 | lt_prog_compiler_static_F77='-Bstatic' | |
13497 | ;; | |
13498 | ||
13499 | *) | |
13500 | lt_prog_compiler_can_build_shared_F77=no | |
13501 | ;; | |
13502 | esac | |
13503 | fi | |
13504 | ||
13505 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13506 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13507 | ||
13508 | # | |
13509 | # Check to make sure the PIC flag actually works. | |
13510 | # | |
13511 | if test -n "$lt_prog_compiler_pic_F77"; then | |
13512 | ||
13513 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13514 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13515 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13517 | else | |
13518 | lt_prog_compiler_pic_works_F77=no | |
13519 | ac_outfile=conftest.$ac_objext | |
13520 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13521 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13522 | # Insert the option either (1) after the last *FLAGS variable, or | |
13523 | # (2) before a word containing "conftest.", or (3) at the end. | |
13524 | # Note that $ac_compile itself does not contain backslashes and begins | |
13525 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13526 | # The option is referenced via a variable to avoid confusing sed. | |
13527 | lt_compile=`echo "$ac_compile" | $SED \ | |
13528 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13529 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13530 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 13531 | (eval echo "\"\$as_me:13531: $lt_compile\"" >&5) |
bf9f3bac | 13532 | (eval "$lt_compile" 2>conftest.err) |
13533 | ac_status=$? | |
13534 | cat conftest.err >&5 | |
86933a6e | 13535 | echo "$as_me:13535: \$? = $ac_status" >&5 |
bf9f3bac | 13536 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13537 | # The compiler can only warn and ignore the option if not recognized | |
13538 | # So say no if there are warnings other than the usual output. | |
13539 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13540 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13541 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13542 | lt_prog_compiler_pic_works_F77=yes | |
13543 | fi | |
13544 | fi | |
13545 | $rm conftest* | |
13546 | ||
13547 | fi | |
13548 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13549 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13550 | ||
13551 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13552 | case $lt_prog_compiler_pic_F77 in | |
13553 | "" | " "*) ;; | |
13554 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13555 | esac | |
13556 | else | |
13557 | lt_prog_compiler_pic_F77= | |
13558 | lt_prog_compiler_can_build_shared_F77=no | |
13559 | fi | |
13560 | ||
13561 | fi | |
13562 | case $host_os in | |
13563 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13564 | *djgpp*) | |
13565 | lt_prog_compiler_pic_F77= | |
13566 | ;; | |
13567 | *) | |
13568 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13569 | ;; | |
13570 | esac | |
13571 | ||
13572 | # | |
13573 | # Check to make sure the static flag actually works. | |
13574 | # | |
13575 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
13576 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13577 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
13578 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
13579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13580 | else | |
13581 | lt_prog_compiler_static_works_F77=no | |
13582 | save_LDFLAGS="$LDFLAGS" | |
13583 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13584 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
13585 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13586 | # The linker can only warn and ignore the option if not recognized | |
13587 | # So say no if there are warnings | |
13588 | if test -s conftest.err; then | |
13589 | # Append any errors to the config.log. | |
13590 | cat conftest.err 1>&5 | |
13591 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13592 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13593 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13594 | lt_prog_compiler_static_works_F77=yes | |
13595 | fi | |
13596 | else | |
13597 | lt_prog_compiler_static_works_F77=yes | |
13598 | fi | |
13599 | fi | |
13600 | $rm conftest* | |
13601 | LDFLAGS="$save_LDFLAGS" | |
13602 | ||
13603 | fi | |
13604 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
13605 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | |
13606 | ||
13607 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
13608 | : | |
13609 | else | |
13610 | lt_prog_compiler_static_F77= | |
13611 | fi | |
13612 | ||
13613 | ||
13614 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13615 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13616 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13618 | else | |
13619 | lt_cv_prog_compiler_c_o_F77=no | |
13620 | $rm -r conftest 2>/dev/null | |
13621 | mkdir conftest | |
13622 | cd conftest | |
13623 | mkdir out | |
13624 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13625 | ||
13626 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13627 | # Insert the option either (1) after the last *FLAGS variable, or | |
13628 | # (2) before a word containing "conftest.", or (3) at the end. | |
13629 | # Note that $ac_compile itself does not contain backslashes and begins | |
13630 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13631 | lt_compile=`echo "$ac_compile" | $SED \ | |
13632 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13633 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13634 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 13635 | (eval echo "\"\$as_me:13635: $lt_compile\"" >&5) |
bf9f3bac | 13636 | (eval "$lt_compile" 2>out/conftest.err) |
13637 | ac_status=$? | |
13638 | cat out/conftest.err >&5 | |
86933a6e | 13639 | echo "$as_me:13639: \$? = $ac_status" >&5 |
bf9f3bac | 13640 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13641 | then | |
13642 | # The compiler can only warn and ignore the option if not recognized | |
13643 | # So say no if there are warnings | |
13644 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13645 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13646 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13647 | lt_cv_prog_compiler_c_o_F77=yes | |
13648 | fi | |
13649 | fi | |
13650 | chmod u+w . 2>&5 | |
13651 | $rm conftest* | |
13652 | # SGI C++ compiler will create directory out/ii_files/ for | |
13653 | # template instantiation | |
13654 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13655 | $rm out/* && rmdir out | |
13656 | cd .. | |
13657 | rmdir conftest | |
13658 | $rm conftest* | |
13659 | ||
13660 | fi | |
13661 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13662 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13663 | ||
13664 | ||
13665 | hard_links="nottested" | |
13666 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13667 | # do not overwrite the value of need_locks provided by the user | |
13668 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13669 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13670 | hard_links=yes | |
13671 | $rm conftest* | |
13672 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13673 | touch conftest.a | |
13674 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13675 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13676 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13677 | echo "${ECHO_T}$hard_links" >&6 | |
13678 | if test "$hard_links" = no; then | |
13679 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13680 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13681 | need_locks=warn | |
13682 | fi | |
13683 | else | |
13684 | need_locks=no | |
13685 | fi | |
13686 | ||
13687 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13688 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13689 | ||
13690 | runpath_var= | |
13691 | allow_undefined_flag_F77= | |
13692 | enable_shared_with_static_runtimes_F77=no | |
13693 | archive_cmds_F77= | |
13694 | archive_expsym_cmds_F77= | |
13695 | old_archive_From_new_cmds_F77= | |
13696 | old_archive_from_expsyms_cmds_F77= | |
13697 | export_dynamic_flag_spec_F77= | |
13698 | whole_archive_flag_spec_F77= | |
13699 | thread_safe_flag_spec_F77= | |
13700 | hardcode_libdir_flag_spec_F77= | |
13701 | hardcode_libdir_flag_spec_ld_F77= | |
13702 | hardcode_libdir_separator_F77= | |
13703 | hardcode_direct_F77=no | |
13704 | hardcode_minus_L_F77=no | |
13705 | hardcode_shlibpath_var_F77=unsupported | |
13706 | link_all_deplibs_F77=unknown | |
13707 | hardcode_automatic_F77=no | |
13708 | module_cmds_F77= | |
13709 | module_expsym_cmds_F77= | |
13710 | always_export_symbols_F77=no | |
13711 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13712 | # include_expsyms should be a list of space-separated symbols to be *always* | |
13713 | # included in the symbol list | |
13714 | include_expsyms_F77= | |
13715 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
13716 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13717 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13718 | # as well as any symbol that contains `d'. | |
13719 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13720 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13721 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
13722 | # the symbol is explicitly referenced. Since portable code cannot | |
13723 | # rely on this symbol name, it's probably fine to never include it in | |
13724 | # preloaded symbol tables. | |
13725 | extract_expsyms_cmds= | |
13726 | # Just being paranoid about ensuring that cc_basename is set. | |
13727 | for cc_temp in $compiler""; do | |
13728 | case $cc_temp in | |
13729 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13730 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13731 | \-*) ;; | |
13732 | *) break;; | |
13733 | esac | |
13734 | done | |
13735 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13736 | ||
13737 | case $host_os in | |
13738 | cygwin* | mingw* | pw32*) | |
13739 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13740 | # When not using gcc, we currently assume that we are using | |
13741 | # Microsoft Visual C++. | |
13742 | if test "$GCC" != yes; then | |
13743 | with_gnu_ld=no | |
13744 | fi | |
13745 | ;; | |
13746 | interix*) | |
13747 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13748 | with_gnu_ld=yes | |
13749 | ;; | |
13750 | openbsd*) | |
13751 | with_gnu_ld=no | |
13752 | ;; | |
13753 | esac | |
13754 | ||
13755 | ld_shlibs_F77=yes | |
13756 | if test "$with_gnu_ld" = yes; then | |
13757 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13758 | wlarc='${wl}' | |
13759 | ||
13760 | # Set some defaults for GNU ld with shared library support. These | |
13761 | # are reset later if shared libraries are not supported. Putting them | |
13762 | # here allows them to be overridden if necessary. | |
13763 | runpath_var=LD_RUN_PATH | |
13764 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13765 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13766 | # ancient GNU ld didn't support --whole-archive et. al. | |
13767 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13768 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13769 | else | |
13770 | whole_archive_flag_spec_F77= | |
13771 | fi | |
13772 | supports_anon_versioning=no | |
13773 | case `$LD -v 2>/dev/null` in | |
13774 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13775 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13776 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13777 | *\ 2.11.*) ;; # other 2.11 versions | |
13778 | *) supports_anon_versioning=yes ;; | |
13779 | esac | |
13780 | ||
13781 | # See if GNU ld supports shared libraries. | |
13782 | case $host_os in | |
13783 | aix3* | aix4* | aix5*) | |
13784 | # On AIX/PPC, the GNU linker is very broken | |
13785 | if test "$host_cpu" != ia64; then | |
13786 | ld_shlibs_F77=no | |
13787 | cat <<EOF 1>&2 | |
13788 | ||
13789 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13790 | *** to be unable to reliably create shared libraries on AIX. | |
13791 | *** Therefore, libtool is disabling shared libraries support. If you | |
13792 | *** really care for shared libraries, you may want to modify your PATH | |
13793 | *** so that a non-GNU linker is found, and then restart. | |
13794 | ||
13795 | EOF | |
13796 | fi | |
13797 | ;; | |
13798 | ||
13799 | amigaos*) | |
13800 | archive_cmds_F77='$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)' | |
13801 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13802 | hardcode_minus_L_F77=yes | |
13803 | ||
13804 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13805 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
13806 | # to version 4, is to share data among multiple programs linked | |
13807 | # with the same dynamic library. Since this doesn't match the | |
13808 | # behavior of shared libraries on other platforms, we can't use | |
13809 | # them. | |
13810 | ld_shlibs_F77=no | |
13811 | ;; | |
13812 | ||
13813 | beos*) | |
13814 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13815 | allow_undefined_flag_F77=unsupported | |
13816 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13817 | # support --undefined. This deserves some investigation. FIXME | |
13818 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13819 | else | |
13820 | ld_shlibs_F77=no | |
13821 | fi | |
13822 | ;; | |
13823 | ||
13824 | cygwin* | mingw* | pw32*) | |
13825 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13826 | # as there is no search path for DLLs. | |
13827 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13828 | allow_undefined_flag_F77=unsupported | |
13829 | always_export_symbols_F77=no | |
13830 | enable_shared_with_static_runtimes_F77=yes | |
13831 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
13832 | ||
13833 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13834 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13835 | # If the export-symbols file already is a .def file (1st line | |
13836 | # is EXPORTS), use it as is; otherwise, prepend... | |
13837 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13838 | cp $export_symbols $output_objdir/$soname.def; | |
13839 | else | |
13840 | echo EXPORTS > $output_objdir/$soname.def; | |
13841 | cat $export_symbols >> $output_objdir/$soname.def; | |
13842 | fi~ | |
13843 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13844 | else | |
13845 | ld_shlibs_F77=no | |
13846 | fi | |
13847 | ;; | |
13848 | ||
13849 | interix3*) | |
13850 | hardcode_direct_F77=no | |
13851 | hardcode_shlibpath_var_F77=no | |
13852 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
13853 | export_dynamic_flag_spec_F77='${wl}-E' | |
13854 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13855 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13856 | # default) and relocated if they conflict, which is a slow very memory | |
13857 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13858 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13859 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13860 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13861 | archive_expsym_cmds_F77='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' | |
13862 | ;; | |
13863 | ||
13864 | linux*) | |
13865 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13866 | tmp_addflag= | |
13867 | case $cc_basename,$host_cpu in | |
13868 | pgcc*) # Portland Group C compiler | |
13869 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13870 | tmp_addflag=' $pic_flag' | |
13871 | ;; | |
13872 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
13873 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13874 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
13875 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13876 | tmp_addflag=' -i_dynamic' ;; | |
13877 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13878 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13879 | ifc* | ifort*) # Intel Fortran compiler | |
13880 | tmp_addflag=' -nofor_main' ;; | |
13881 | esac | |
13882 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13883 | ||
13884 | if test $supports_anon_versioning = yes; then | |
13885 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13886 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13887 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13888 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13889 | fi | |
13890 | else | |
13891 | ld_shlibs_F77=no | |
13892 | fi | |
13893 | ;; | |
13894 | ||
13895 | netbsd*) | |
13896 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13897 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13898 | wlarc= | |
13899 | else | |
13900 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13901 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13902 | fi | |
13903 | ;; | |
13904 | ||
13905 | solaris*) | |
13906 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
13907 | ld_shlibs_F77=no | |
13908 | cat <<EOF 1>&2 | |
13909 | ||
13910 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13911 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13912 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13913 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13914 | *** your PATH or compiler configuration so that the native linker is | |
13915 | *** used, and then restart. | |
13916 | ||
13917 | EOF | |
13918 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13919 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13920 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13921 | else | |
13922 | ld_shlibs_F77=no | |
13923 | fi | |
13924 | ;; | |
13925 | ||
13926 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13927 | case `$LD -v 2>&1` in | |
13928 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13929 | ld_shlibs_F77=no | |
13930 | cat <<_LT_EOF 1>&2 | |
13931 | ||
13932 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13933 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13934 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13935 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13936 | *** your PATH or compiler configuration so that the native linker is | |
13937 | *** used, and then restart. | |
13938 | ||
13939 | _LT_EOF | |
13940 | ;; | |
13941 | *) | |
13942 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13943 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
13944 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
13945 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
13946 | else | |
13947 | ld_shlibs_F77=no | |
13948 | fi | |
13949 | ;; | |
13950 | esac | |
13951 | ;; | |
13952 | ||
13953 | sunos4*) | |
13954 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13955 | wlarc= | |
13956 | hardcode_direct_F77=yes | |
13957 | hardcode_shlibpath_var_F77=no | |
13958 | ;; | |
13959 | ||
13960 | *) | |
13961 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13962 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13963 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13964 | else | |
13965 | ld_shlibs_F77=no | |
13966 | fi | |
13967 | ;; | |
13968 | esac | |
13969 | ||
13970 | if test "$ld_shlibs_F77" = no; then | |
13971 | runpath_var= | |
13972 | hardcode_libdir_flag_spec_F77= | |
13973 | export_dynamic_flag_spec_F77= | |
13974 | whole_archive_flag_spec_F77= | |
13975 | fi | |
13976 | else | |
13977 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13978 | case $host_os in | |
13979 | aix3*) | |
13980 | allow_undefined_flag_F77=unsupported | |
13981 | always_export_symbols_F77=yes | |
13982 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
13983 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13984 | # are no directories specified by -L. | |
13985 | hardcode_minus_L_F77=yes | |
13986 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13987 | # Neither direct hardcoding nor static linking is supported with a | |
13988 | # broken collect2. | |
13989 | hardcode_direct_F77=unsupported | |
13990 | fi | |
13991 | ;; | |
13992 | ||
13993 | aix4* | aix5*) | |
13994 | if test "$host_cpu" = ia64; then | |
13995 | # On IA64, the linker does run time linking by default, so we don't | |
13996 | # have to do anything special. | |
13997 | aix_use_runtimelinking=no | |
13998 | exp_sym_flag='-Bexport' | |
13999 | no_entry_flag="" | |
14000 | else | |
14001 | # If we're using GNU nm, then we don't want the "-C" option. | |
14002 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14003 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14004 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14005 | else | |
14006 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14007 | fi | |
14008 | aix_use_runtimelinking=no | |
14009 | ||
14010 | # Test if we are trying to use run time linking or normal | |
14011 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14012 | # need to do runtime linking. | |
14013 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14014 | for ld_flag in $LDFLAGS; do | |
14015 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14016 | aix_use_runtimelinking=yes | |
14017 | break | |
14018 | fi | |
14019 | done | |
14020 | ;; | |
14021 | esac | |
14022 | ||
14023 | exp_sym_flag='-bexport' | |
14024 | no_entry_flag='-bnoentry' | |
14025 | fi | |
14026 | ||
14027 | # When large executables or shared objects are built, AIX ld can | |
14028 | # have problems creating the table of contents. If linking a library | |
14029 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14030 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14031 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14032 | ||
14033 | archive_cmds_F77='' | |
14034 | hardcode_direct_F77=yes | |
14035 | hardcode_libdir_separator_F77=':' | |
14036 | link_all_deplibs_F77=yes | |
14037 | ||
14038 | if test "$GCC" = yes; then | |
14039 | case $host_os in aix4.[012]|aix4.[012].*) | |
14040 | # We only want to do this on AIX 4.2 and lower, the check | |
14041 | # below for broken collect2 doesn't work under 4.3+ | |
14042 | collect2name=`${CC} -print-prog-name=collect2` | |
14043 | if test -f "$collect2name" && \ | |
14044 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14045 | then | |
14046 | # We have reworked collect2 | |
14047 | hardcode_direct_F77=yes | |
14048 | else | |
14049 | # We have old collect2 | |
14050 | hardcode_direct_F77=unsupported | |
14051 | # It fails to find uninstalled libraries when the uninstalled | |
14052 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14053 | # to unsupported forces relinking | |
14054 | hardcode_minus_L_F77=yes | |
14055 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14056 | hardcode_libdir_separator_F77= | |
14057 | fi | |
14058 | ;; | |
14059 | esac | |
14060 | shared_flag='-shared' | |
14061 | if test "$aix_use_runtimelinking" = yes; then | |
14062 | shared_flag="$shared_flag "'${wl}-G' | |
14063 | fi | |
14064 | else | |
14065 | # not using gcc | |
14066 | if test "$host_cpu" = ia64; then | |
14067 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14068 | # chokes on -Wl,-G. The following line is correct: | |
14069 | shared_flag='-G' | |
14070 | else | |
14071 | if test "$aix_use_runtimelinking" = yes; then | |
14072 | shared_flag='${wl}-G' | |
14073 | else | |
14074 | shared_flag='${wl}-bM:SRE' | |
14075 | fi | |
14076 | fi | |
14077 | fi | |
14078 | ||
14079 | # It seems that -bexpall does not export symbols beginning with | |
14080 | # underscore (_), so it is better to generate a list of symbols to export. | |
14081 | always_export_symbols_F77=yes | |
14082 | if test "$aix_use_runtimelinking" = yes; then | |
14083 | # Warning - without using the other runtime loading flags (-brtl), | |
14084 | # -berok will link without error, but may produce a broken library. | |
14085 | allow_undefined_flag_F77='-berok' | |
14086 | # Determine the default libpath from the value encoded in an empty executable. | |
14087 | cat >conftest.$ac_ext <<_ACEOF | |
14088 | program main | |
14089 | ||
14090 | end | |
14091 | _ACEOF | |
14092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14094 | (eval $ac_link) 2>conftest.er1 | |
14095 | ac_status=$? | |
14096 | grep -v '^ *+' conftest.er1 >conftest.err | |
14097 | rm -f conftest.er1 | |
14098 | cat conftest.err >&5 | |
14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14100 | (exit $ac_status); } && | |
14101 | { ac_try='test -z "$ac_f77_werror_flag" | |
14102 | || test ! -s conftest.err' | |
14103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14104 | (eval $ac_try) 2>&5 | |
14105 | ac_status=$? | |
14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14107 | (exit $ac_status); }; } && | |
14108 | { ac_try='test -s conftest$ac_exeext' | |
14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14110 | (eval $ac_try) 2>&5 | |
14111 | ac_status=$? | |
14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14113 | (exit $ac_status); }; }; then | |
14114 | ||
14115 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14116 | }'` | |
14117 | # Check for a 64-bit object if we didn't find anything. | |
14118 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14119 | }'`; fi | |
14120 | else | |
14121 | echo "$as_me: failed program was:" >&5 | |
14122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14123 | ||
14124 | fi | |
14125 | rm -f conftest.err conftest.$ac_objext \ | |
14126 | conftest$ac_exeext conftest.$ac_ext | |
14127 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14128 | ||
14129 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14130 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
14131 | else | |
14132 | if test "$host_cpu" = ia64; then | |
14133 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14134 | allow_undefined_flag_F77="-z nodefs" | |
14135 | archive_expsym_cmds_F77="\$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" | |
14136 | else | |
14137 | # Determine the default libpath from the value encoded in an empty executable. | |
14138 | cat >conftest.$ac_ext <<_ACEOF | |
14139 | program main | |
14140 | ||
14141 | end | |
14142 | _ACEOF | |
14143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14145 | (eval $ac_link) 2>conftest.er1 | |
14146 | ac_status=$? | |
14147 | grep -v '^ *+' conftest.er1 >conftest.err | |
14148 | rm -f conftest.er1 | |
14149 | cat conftest.err >&5 | |
14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14151 | (exit $ac_status); } && | |
14152 | { ac_try='test -z "$ac_f77_werror_flag" | |
14153 | || test ! -s conftest.err' | |
14154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14155 | (eval $ac_try) 2>&5 | |
14156 | ac_status=$? | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); }; } && | |
14159 | { ac_try='test -s conftest$ac_exeext' | |
14160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14161 | (eval $ac_try) 2>&5 | |
14162 | ac_status=$? | |
14163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14164 | (exit $ac_status); }; }; then | |
14165 | ||
14166 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14167 | }'` | |
14168 | # Check for a 64-bit object if we didn't find anything. | |
14169 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14170 | }'`; fi | |
14171 | else | |
14172 | echo "$as_me: failed program was:" >&5 | |
14173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14174 | ||
14175 | fi | |
14176 | rm -f conftest.err conftest.$ac_objext \ | |
14177 | conftest$ac_exeext conftest.$ac_ext | |
14178 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14179 | ||
14180 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14181 | # Warning - without using the other run time loading flags, | |
14182 | # -berok will link without error, but may produce a broken library. | |
14183 | no_undefined_flag_F77=' ${wl}-bernotok' | |
14184 | allow_undefined_flag_F77=' ${wl}-berok' | |
14185 | # Exported symbols can be pulled into shared objects from archives | |
14186 | whole_archive_flag_spec_F77='$convenience' | |
14187 | archive_cmds_need_lc_F77=yes | |
14188 | # This is similar to how AIX traditionally builds its shared libraries. | |
14189 | archive_expsym_cmds_F77="\$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' | |
14190 | fi | |
14191 | fi | |
14192 | ;; | |
14193 | ||
14194 | amigaos*) | |
14195 | archive_cmds_F77='$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)' | |
14196 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14197 | hardcode_minus_L_F77=yes | |
14198 | # see comment about different semantics on the GNU ld section | |
14199 | ld_shlibs_F77=no | |
14200 | ;; | |
14201 | ||
14202 | bsdi[45]*) | |
14203 | export_dynamic_flag_spec_F77=-rdynamic | |
14204 | ;; | |
14205 | ||
14206 | cygwin* | mingw* | pw32*) | |
14207 | # When not using gcc, we currently assume that we are using | |
14208 | # Microsoft Visual C++. | |
14209 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14210 | # no search path for DLLs. | |
14211 | hardcode_libdir_flag_spec_F77=' ' | |
14212 | allow_undefined_flag_F77=unsupported | |
14213 | # Tell ltmain to make .lib files, not .a files. | |
14214 | libext=lib | |
14215 | # Tell ltmain to make .dll files, not .so files. | |
14216 | shrext_cmds=".dll" | |
14217 | # FIXME: Setting linknames here is a bad hack. | |
14218 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14219 | # The linker will automatically build a .lib file if we build a DLL. | |
14220 | old_archive_From_new_cmds_F77='true' | |
14221 | # FIXME: Should let the user specify the lib program. | |
14222 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
14223 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
14224 | enable_shared_with_static_runtimes_F77=yes | |
14225 | ;; | |
14226 | ||
14227 | darwin* | rhapsody*) | |
14228 | case $host_os in | |
14229 | rhapsody* | darwin1.[012]) | |
14230 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14231 | ;; | |
14232 | *) # Darwin 1.3 on | |
14233 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14234 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14235 | else | |
14236 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
14237 | 10.[012]) | |
14238 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14239 | ;; | |
14240 | 10.*) | |
14241 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14242 | ;; | |
14243 | esac | |
14244 | fi | |
14245 | ;; | |
14246 | esac | |
14247 | archive_cmds_need_lc_F77=no | |
14248 | hardcode_direct_F77=no | |
14249 | hardcode_automatic_F77=yes | |
14250 | hardcode_shlibpath_var_F77=unsupported | |
14251 | whole_archive_flag_spec_F77='' | |
14252 | link_all_deplibs_F77=yes | |
14253 | if test "$GCC" = yes ; then | |
14254 | output_verbose_link_cmd='echo' | |
14255 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14256 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14257 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14258 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14259 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14260 | else | |
14261 | case $cc_basename in | |
14262 | xlc*) | |
14263 | output_verbose_link_cmd='echo' | |
14264 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14265 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14266 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14267 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14268 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14269 | ;; | |
14270 | *) | |
14271 | ld_shlibs_F77=no | |
14272 | ;; | |
14273 | esac | |
14274 | fi | |
14275 | ;; | |
14276 | ||
14277 | dgux*) | |
14278 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14279 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14280 | hardcode_shlibpath_var_F77=no | |
14281 | ;; | |
14282 | ||
14283 | freebsd1*) | |
14284 | ld_shlibs_F77=no | |
14285 | ;; | |
14286 | ||
14287 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14288 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14289 | # does not break anything, and helps significantly (at the cost of a little | |
14290 | # extra space). | |
14291 | freebsd2.2*) | |
14292 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14293 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14294 | hardcode_direct_F77=yes | |
14295 | hardcode_shlibpath_var_F77=no | |
14296 | ;; | |
14297 | ||
14298 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14299 | freebsd2*) | |
14300 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14301 | hardcode_direct_F77=yes | |
14302 | hardcode_minus_L_F77=yes | |
14303 | hardcode_shlibpath_var_F77=no | |
14304 | ;; | |
14305 | ||
14306 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14307 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
14308 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14309 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14310 | hardcode_direct_F77=yes | |
14311 | hardcode_shlibpath_var_F77=no | |
14312 | ;; | |
14313 | ||
14314 | hpux9*) | |
14315 | if test "$GCC" = yes; then | |
14316 | archive_cmds_F77='$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' | |
14317 | else | |
14318 | archive_cmds_F77='$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' | |
14319 | fi | |
14320 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14321 | hardcode_libdir_separator_F77=: | |
14322 | hardcode_direct_F77=yes | |
14323 | ||
14324 | # hardcode_minus_L: Not really in the search PATH, | |
14325 | # but as the default location of the library. | |
14326 | hardcode_minus_L_F77=yes | |
14327 | export_dynamic_flag_spec_F77='${wl}-E' | |
14328 | ;; | |
14329 | ||
14330 | hpux10*) | |
14331 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14332 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14333 | else | |
14334 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14335 | fi | |
14336 | if test "$with_gnu_ld" = no; then | |
14337 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14338 | hardcode_libdir_separator_F77=: | |
14339 | ||
14340 | hardcode_direct_F77=yes | |
14341 | export_dynamic_flag_spec_F77='${wl}-E' | |
14342 | ||
14343 | # hardcode_minus_L: Not really in the search PATH, | |
14344 | # but as the default location of the library. | |
14345 | hardcode_minus_L_F77=yes | |
14346 | fi | |
14347 | ;; | |
14348 | ||
14349 | hpux11*) | |
14350 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14351 | case $host_cpu in | |
14352 | hppa*64*) | |
14353 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14354 | ;; | |
14355 | ia64*) | |
14356 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14357 | ;; | |
14358 | *) | |
14359 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14360 | ;; | |
14361 | esac | |
14362 | else | |
14363 | case $host_cpu in | |
14364 | hppa*64*) | |
14365 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14366 | ;; | |
14367 | ia64*) | |
14368 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14369 | ;; | |
14370 | *) | |
14371 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14372 | ;; | |
14373 | esac | |
14374 | fi | |
14375 | if test "$with_gnu_ld" = no; then | |
14376 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14377 | hardcode_libdir_separator_F77=: | |
14378 | ||
14379 | case $host_cpu in | |
14380 | hppa*64*|ia64*) | |
14381 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14382 | hardcode_direct_F77=no | |
14383 | hardcode_shlibpath_var_F77=no | |
14384 | ;; | |
14385 | *) | |
14386 | hardcode_direct_F77=yes | |
14387 | export_dynamic_flag_spec_F77='${wl}-E' | |
14388 | ||
14389 | # hardcode_minus_L: Not really in the search PATH, | |
14390 | # but as the default location of the library. | |
14391 | hardcode_minus_L_F77=yes | |
14392 | ;; | |
14393 | esac | |
14394 | fi | |
14395 | ;; | |
14396 | ||
14397 | irix5* | irix6* | nonstopux*) | |
14398 | if test "$GCC" = yes; then | |
14399 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14400 | else | |
14401 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14402 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14403 | fi | |
14404 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14405 | hardcode_libdir_separator_F77=: | |
14406 | link_all_deplibs_F77=yes | |
14407 | ;; | |
14408 | ||
14409 | netbsd*) | |
14410 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14411 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14412 | else | |
14413 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14414 | fi | |
14415 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14416 | hardcode_direct_F77=yes | |
14417 | hardcode_shlibpath_var_F77=no | |
14418 | ;; | |
14419 | ||
14420 | newsos6) | |
14421 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14422 | hardcode_direct_F77=yes | |
14423 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14424 | hardcode_libdir_separator_F77=: | |
14425 | hardcode_shlibpath_var_F77=no | |
14426 | ;; | |
14427 | ||
14428 | openbsd*) | |
14429 | hardcode_direct_F77=yes | |
14430 | hardcode_shlibpath_var_F77=no | |
14431 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14432 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14433 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14434 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14435 | export_dynamic_flag_spec_F77='${wl}-E' | |
14436 | else | |
14437 | case $host_os in | |
14438 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14439 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14440 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14441 | ;; | |
14442 | *) | |
14443 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14444 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14445 | ;; | |
14446 | esac | |
14447 | fi | |
14448 | ;; | |
14449 | ||
14450 | os2*) | |
14451 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14452 | hardcode_minus_L_F77=yes | |
14453 | allow_undefined_flag_F77=unsupported | |
14454 | archive_cmds_F77='$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' | |
14455 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14456 | ;; | |
14457 | ||
14458 | osf3*) | |
14459 | if test "$GCC" = yes; then | |
14460 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14461 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14462 | else | |
14463 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14464 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14465 | fi | |
14466 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14467 | hardcode_libdir_separator_F77=: | |
14468 | ;; | |
14469 | ||
14470 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14471 | if test "$GCC" = yes; then | |
14472 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14473 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14474 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14475 | else | |
14476 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14477 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14478 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
14479 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
14480 | ||
14481 | # Both c and cxx compiler support -rpath directly | |
14482 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14483 | fi | |
14484 | hardcode_libdir_separator_F77=: | |
14485 | ;; | |
14486 | ||
14487 | solaris*) | |
14488 | no_undefined_flag_F77=' -z text' | |
14489 | if test "$GCC" = yes; then | |
14490 | wlarc='${wl}' | |
14491 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14492 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14493 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14494 | else | |
14495 | wlarc='' | |
14496 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14497 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14498 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14499 | fi | |
14500 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14501 | hardcode_shlibpath_var_F77=no | |
14502 | case $host_os in | |
14503 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14504 | *) | |
14505 | # The compiler driver will combine linker options so we | |
14506 | # cannot just pass the convience library names through | |
14507 | # without $wl, iff we do not link with $LD. | |
14508 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14509 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14510 | case $wlarc in | |
14511 | '') | |
14512 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14513 | *) | |
14514 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14515 | esac ;; | |
14516 | esac | |
14517 | link_all_deplibs_F77=yes | |
14518 | ;; | |
14519 | ||
14520 | sunos4*) | |
14521 | if test "x$host_vendor" = xsequent; then | |
14522 | # Use $CC to link under sequent, because it throws in some extra .o | |
14523 | # files that make .init and .fini sections work. | |
14524 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14525 | else | |
14526 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14527 | fi | |
14528 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14529 | hardcode_direct_F77=yes | |
14530 | hardcode_minus_L_F77=yes | |
14531 | hardcode_shlibpath_var_F77=no | |
14532 | ;; | |
14533 | ||
14534 | sysv4) | |
14535 | case $host_vendor in | |
14536 | sni) | |
14537 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14538 | hardcode_direct_F77=yes # is this really true??? | |
14539 | ;; | |
14540 | siemens) | |
14541 | ## LD is ld it makes a PLAMLIB | |
14542 | ## CC just makes a GrossModule. | |
14543 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14544 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14545 | hardcode_direct_F77=no | |
14546 | ;; | |
14547 | motorola) | |
14548 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14549 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14550 | ;; | |
14551 | esac | |
14552 | runpath_var='LD_RUN_PATH' | |
14553 | hardcode_shlibpath_var_F77=no | |
14554 | ;; | |
14555 | ||
14556 | sysv4.3*) | |
14557 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14558 | hardcode_shlibpath_var_F77=no | |
14559 | export_dynamic_flag_spec_F77='-Bexport' | |
14560 | ;; | |
14561 | ||
14562 | sysv4*MP*) | |
14563 | if test -d /usr/nec; then | |
14564 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14565 | hardcode_shlibpath_var_F77=no | |
14566 | runpath_var=LD_RUN_PATH | |
14567 | hardcode_runpath_var=yes | |
14568 | ld_shlibs_F77=yes | |
14569 | fi | |
14570 | ;; | |
14571 | ||
14572 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
14573 | no_undefined_flag_F77='${wl}-z,text' | |
14574 | archive_cmds_need_lc_F77=no | |
14575 | hardcode_shlibpath_var_F77=no | |
14576 | runpath_var='LD_RUN_PATH' | |
14577 | ||
14578 | if test "$GCC" = yes; then | |
14579 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14580 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14581 | else | |
14582 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14583 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14584 | fi | |
14585 | ;; | |
14586 | ||
14587 | sysv5* | sco3.2v5* | sco5v6*) | |
14588 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14589 | # link with -lc, and that would cause any symbols used from libc to | |
14590 | # always be unresolved, which means just about no library would | |
14591 | # ever link correctly. If we're not using GNU ld we use -z text | |
14592 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14593 | # as -z defs. | |
14594 | no_undefined_flag_F77='${wl}-z,text' | |
14595 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
14596 | archive_cmds_need_lc_F77=no | |
14597 | hardcode_shlibpath_var_F77=no | |
14598 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
14599 | hardcode_libdir_separator_F77=':' | |
14600 | link_all_deplibs_F77=yes | |
14601 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14602 | runpath_var='LD_RUN_PATH' | |
14603 | ||
14604 | if test "$GCC" = yes; then | |
14605 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14606 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14607 | else | |
14608 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14609 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14610 | fi | |
14611 | ;; | |
14612 | ||
14613 | uts4*) | |
14614 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14615 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14616 | hardcode_shlibpath_var_F77=no | |
14617 | ;; | |
14618 | ||
14619 | *) | |
14620 | ld_shlibs_F77=no | |
14621 | ;; | |
14622 | esac | |
14623 | fi | |
14624 | ||
14625 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14626 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14627 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
14628 | ||
14629 | # | |
14630 | # Do we need to explicitly link libc? | |
14631 | # | |
14632 | case "x$archive_cmds_need_lc_F77" in | |
14633 | x|xyes) | |
14634 | # Assume -lc should be added | |
14635 | archive_cmds_need_lc_F77=yes | |
14636 | ||
14637 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14638 | case $archive_cmds_F77 in | |
14639 | *'~'*) | |
14640 | # FIXME: we may have to deal with multi-command sequences. | |
14641 | ;; | |
14642 | '$CC '*) | |
14643 | # Test whether the compiler implicitly links with -lc since on some | |
14644 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14645 | # to ld, don't add -lc before -lgcc. | |
14646 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14647 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14648 | $rm conftest* | |
14649 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14650 | ||
14651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14652 | (eval $ac_compile) 2>&5 | |
14653 | ac_status=$? | |
14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14655 | (exit $ac_status); } 2>conftest.err; then | |
14656 | soname=conftest | |
14657 | lib=conftest | |
14658 | libobjs=conftest.$ac_objext | |
14659 | deplibs= | |
14660 | wl=$lt_prog_compiler_wl_F77 | |
14661 | pic_flag=$lt_prog_compiler_pic_F77 | |
14662 | compiler_flags=-v | |
14663 | linker_flags=-v | |
14664 | verstring= | |
14665 | output_objdir=. | |
14666 | libname=conftest | |
14667 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14668 | allow_undefined_flag_F77= | |
14669 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14670 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14671 | ac_status=$? | |
14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14673 | (exit $ac_status); } | |
14674 | then | |
14675 | archive_cmds_need_lc_F77=no | |
14676 | else | |
14677 | archive_cmds_need_lc_F77=yes | |
14678 | fi | |
14679 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14680 | else | |
14681 | cat conftest.err 1>&5 | |
14682 | fi | |
14683 | $rm conftest* | |
14684 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14685 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14686 | ;; | |
14687 | esac | |
14688 | fi | |
14689 | ;; | |
14690 | esac | |
14691 | ||
14692 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14693 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14694 | library_names_spec= | |
14695 | libname_spec='lib$name' | |
14696 | soname_spec= | |
14697 | shrext_cmds=".so" | |
14698 | postinstall_cmds= | |
14699 | postuninstall_cmds= | |
14700 | finish_cmds= | |
14701 | finish_eval= | |
14702 | shlibpath_var= | |
14703 | shlibpath_overrides_runpath=unknown | |
14704 | version_type=none | |
14705 | dynamic_linker="$host_os ld.so" | |
14706 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14707 | if test "$GCC" = yes; then | |
14708 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14709 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14710 | # if the path contains ";" then we assume it to be the separator | |
14711 | # otherwise default to the standard path separator (i.e. ":") - it is | |
14712 | # assumed that no part of a normal pathname contains ";" but that should | |
14713 | # okay in the real world where ";" in dirpaths is itself problematic. | |
14714 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14715 | else | |
14716 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14717 | fi | |
14718 | else | |
14719 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14720 | fi | |
14721 | need_lib_prefix=unknown | |
14722 | hardcode_into_libs=no | |
14723 | ||
14724 | # when you set need_version to no, make sure it does not cause -set_version | |
14725 | # flags to be left without arguments | |
14726 | need_version=unknown | |
14727 | ||
14728 | case $host_os in | |
14729 | aix3*) | |
14730 | version_type=linux | |
14731 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14732 | shlibpath_var=LIBPATH | |
14733 | ||
14734 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14735 | soname_spec='${libname}${release}${shared_ext}$major' | |
14736 | ;; | |
14737 | ||
14738 | aix4* | aix5*) | |
14739 | version_type=linux | |
14740 | need_lib_prefix=no | |
14741 | need_version=no | |
14742 | hardcode_into_libs=yes | |
14743 | if test "$host_cpu" = ia64; then | |
14744 | # AIX 5 supports IA64 | |
14745 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14746 | shlibpath_var=LD_LIBRARY_PATH | |
14747 | else | |
14748 | # With GCC up to 2.95.x, collect2 would create an import file | |
14749 | # for dependence libraries. The import file would start with | |
14750 | # the line `#! .'. This would cause the generated library to | |
14751 | # depend on `.', always an invalid library. This was fixed in | |
14752 | # development snapshots of GCC prior to 3.0. | |
14753 | case $host_os in | |
14754 | aix4 | aix4.[01] | aix4.[01].*) | |
14755 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14756 | echo ' yes ' | |
14757 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14758 | : | |
14759 | else | |
14760 | can_build_shared=no | |
14761 | fi | |
14762 | ;; | |
14763 | esac | |
14764 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14765 | # soname into executable. Probably we can add versioning support to | |
14766 | # collect2, so additional links can be useful in future. | |
14767 | if test "$aix_use_runtimelinking" = yes; then | |
14768 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14769 | # instead of lib<name>.a to let people know that these are not | |
14770 | # typical AIX shared libraries. | |
14771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14772 | else | |
14773 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14774 | # and later when we are not doing run time linking. | |
14775 | library_names_spec='${libname}${release}.a $libname.a' | |
14776 | soname_spec='${libname}${release}${shared_ext}$major' | |
14777 | fi | |
14778 | shlibpath_var=LIBPATH | |
14779 | fi | |
14780 | ;; | |
14781 | ||
14782 | amigaos*) | |
14783 | library_names_spec='$libname.ixlibrary $libname.a' | |
14784 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14785 | 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' | |
14786 | ;; | |
14787 | ||
14788 | beos*) | |
14789 | library_names_spec='${libname}${shared_ext}' | |
14790 | dynamic_linker="$host_os ld.so" | |
14791 | shlibpath_var=LIBRARY_PATH | |
14792 | ;; | |
14793 | ||
14794 | bsdi[45]*) | |
14795 | version_type=linux | |
14796 | need_version=no | |
14797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14798 | soname_spec='${libname}${release}${shared_ext}$major' | |
14799 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14800 | shlibpath_var=LD_LIBRARY_PATH | |
14801 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14802 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14803 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14804 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14805 | # libtool to hard-code these into programs | |
14806 | ;; | |
14807 | ||
14808 | cygwin* | mingw* | pw32*) | |
14809 | version_type=windows | |
14810 | shrext_cmds=".dll" | |
14811 | need_version=no | |
14812 | need_lib_prefix=no | |
14813 | ||
14814 | case $GCC,$host_os in | |
14815 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14816 | library_names_spec='$libname.dll.a' | |
14817 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14818 | postinstall_cmds='base_file=`basename \${file}`~ | |
14819 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14820 | dldir=$destdir/`dirname \$dlpath`~ | |
14821 | test -d \$dldir || mkdir -p \$dldir~ | |
14822 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14823 | chmod a+x \$dldir/$dlname' | |
14824 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14825 | dlpath=$dir/\$dldll~ | |
14826 | $rm \$dlpath' | |
14827 | shlibpath_overrides_runpath=yes | |
14828 | ||
14829 | case $host_os in | |
14830 | cygwin*) | |
14831 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14832 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14833 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14834 | ;; | |
14835 | mingw*) | |
14836 | # MinGW DLLs use traditional 'lib' prefix | |
14837 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14838 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14839 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14840 | # It is most probably a Windows format PATH printed by | |
14841 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14842 | # path with ; separators, and with drive letters. We can handle the | |
14843 | # drive letters (cygwin fileutils understands them), so leave them, | |
14844 | # especially as we might pass files found there to a mingw objdump, | |
14845 | # which wouldn't understand a cygwinified path. Ahh. | |
14846 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14847 | else | |
14848 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14849 | fi | |
14850 | ;; | |
14851 | pw32*) | |
14852 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14853 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14854 | ;; | |
14855 | esac | |
14856 | ;; | |
14857 | ||
14858 | *) | |
14859 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14860 | ;; | |
14861 | esac | |
14862 | dynamic_linker='Win32 ld.exe' | |
14863 | # FIXME: first we should search . and the directory the executable is in | |
14864 | shlibpath_var=PATH | |
14865 | ;; | |
14866 | ||
14867 | darwin* | rhapsody*) | |
14868 | dynamic_linker="$host_os dyld" | |
14869 | version_type=darwin | |
14870 | need_lib_prefix=no | |
14871 | need_version=no | |
14872 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14873 | soname_spec='${libname}${release}${major}$shared_ext' | |
14874 | shlibpath_overrides_runpath=yes | |
14875 | shlibpath_var=DYLD_LIBRARY_PATH | |
14876 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14877 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14878 | if test "$GCC" = yes; then | |
14879 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
14880 | else | |
14881 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14882 | fi | |
14883 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14884 | ;; | |
14885 | ||
14886 | dgux*) | |
14887 | version_type=linux | |
14888 | need_lib_prefix=no | |
14889 | need_version=no | |
14890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14891 | soname_spec='${libname}${release}${shared_ext}$major' | |
14892 | shlibpath_var=LD_LIBRARY_PATH | |
14893 | ;; | |
14894 | ||
14895 | freebsd1*) | |
14896 | dynamic_linker=no | |
14897 | ;; | |
14898 | ||
14899 | kfreebsd*-gnu) | |
14900 | version_type=linux | |
14901 | need_lib_prefix=no | |
14902 | need_version=no | |
14903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14904 | soname_spec='${libname}${release}${shared_ext}$major' | |
14905 | shlibpath_var=LD_LIBRARY_PATH | |
14906 | shlibpath_overrides_runpath=no | |
14907 | hardcode_into_libs=yes | |
14908 | dynamic_linker='GNU ld.so' | |
14909 | ;; | |
14910 | ||
14911 | freebsd* | dragonfly*) | |
14912 | # DragonFly does not have aout. When/if they implement a new | |
14913 | # versioning mechanism, adjust this. | |
14914 | if test -x /usr/bin/objformat; then | |
14915 | objformat=`/usr/bin/objformat` | |
14916 | else | |
14917 | case $host_os in | |
14918 | freebsd[123]*) objformat=aout ;; | |
14919 | *) objformat=elf ;; | |
14920 | esac | |
14921 | fi | |
14922 | version_type=freebsd-$objformat | |
14923 | case $version_type in | |
14924 | freebsd-elf*) | |
14925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14926 | need_version=no | |
14927 | need_lib_prefix=no | |
14928 | ;; | |
14929 | freebsd-*) | |
14930 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14931 | need_version=yes | |
14932 | ;; | |
14933 | esac | |
14934 | shlibpath_var=LD_LIBRARY_PATH | |
14935 | case $host_os in | |
14936 | freebsd2*) | |
14937 | shlibpath_overrides_runpath=yes | |
14938 | ;; | |
14939 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14940 | shlibpath_overrides_runpath=yes | |
14941 | hardcode_into_libs=yes | |
14942 | ;; | |
14943 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14944 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14945 | shlibpath_overrides_runpath=no | |
14946 | hardcode_into_libs=yes | |
14947 | ;; | |
14948 | freebsd*) # from 4.6 on | |
14949 | shlibpath_overrides_runpath=yes | |
14950 | hardcode_into_libs=yes | |
14951 | ;; | |
14952 | esac | |
14953 | ;; | |
14954 | ||
14955 | gnu*) | |
14956 | version_type=linux | |
14957 | need_lib_prefix=no | |
14958 | need_version=no | |
14959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14960 | soname_spec='${libname}${release}${shared_ext}$major' | |
14961 | shlibpath_var=LD_LIBRARY_PATH | |
14962 | hardcode_into_libs=yes | |
14963 | ;; | |
14964 | ||
14965 | hpux9* | hpux10* | hpux11*) | |
14966 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14967 | # link against other versions. | |
14968 | version_type=sunos | |
14969 | need_lib_prefix=no | |
14970 | need_version=no | |
14971 | case $host_cpu in | |
14972 | ia64*) | |
14973 | shrext_cmds='.so' | |
14974 | hardcode_into_libs=yes | |
14975 | dynamic_linker="$host_os dld.so" | |
14976 | shlibpath_var=LD_LIBRARY_PATH | |
14977 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14979 | soname_spec='${libname}${release}${shared_ext}$major' | |
14980 | if test "X$HPUX_IA64_MODE" = X32; then | |
14981 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14982 | else | |
14983 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14984 | fi | |
14985 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14986 | ;; | |
14987 | hppa*64*) | |
14988 | shrext_cmds='.sl' | |
14989 | hardcode_into_libs=yes | |
14990 | dynamic_linker="$host_os dld.sl" | |
14991 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14992 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14994 | soname_spec='${libname}${release}${shared_ext}$major' | |
14995 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14996 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14997 | ;; | |
14998 | *) | |
14999 | shrext_cmds='.sl' | |
15000 | dynamic_linker="$host_os dld.sl" | |
15001 | shlibpath_var=SHLIB_PATH | |
15002 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15004 | soname_spec='${libname}${release}${shared_ext}$major' | |
15005 | ;; | |
15006 | esac | |
15007 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15008 | postinstall_cmds='chmod 555 $lib' | |
15009 | ;; | |
15010 | ||
15011 | interix3*) | |
15012 | version_type=linux | |
15013 | need_lib_prefix=no | |
15014 | need_version=no | |
15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15016 | soname_spec='${libname}${release}${shared_ext}$major' | |
15017 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15018 | shlibpath_var=LD_LIBRARY_PATH | |
15019 | shlibpath_overrides_runpath=no | |
15020 | hardcode_into_libs=yes | |
15021 | ;; | |
15022 | ||
15023 | irix5* | irix6* | nonstopux*) | |
15024 | case $host_os in | |
15025 | nonstopux*) version_type=nonstopux ;; | |
15026 | *) | |
15027 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15028 | version_type=linux | |
15029 | else | |
15030 | version_type=irix | |
15031 | fi ;; | |
15032 | esac | |
15033 | need_lib_prefix=no | |
15034 | need_version=no | |
15035 | soname_spec='${libname}${release}${shared_ext}$major' | |
15036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15037 | case $host_os in | |
15038 | irix5* | nonstopux*) | |
15039 | libsuff= shlibsuff= | |
15040 | ;; | |
15041 | *) | |
15042 | case $LD in # libtool.m4 will add one of these switches to LD | |
15043 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15044 | libsuff= shlibsuff= libmagic=32-bit;; | |
15045 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15046 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15047 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15048 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15049 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15050 | esac | |
15051 | ;; | |
15052 | esac | |
15053 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15054 | shlibpath_overrides_runpath=no | |
15055 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15056 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15057 | hardcode_into_libs=yes | |
15058 | ;; | |
15059 | ||
15060 | # No shared lib support for Linux oldld, aout, or coff. | |
15061 | linux*oldld* | linux*aout* | linux*coff*) | |
15062 | dynamic_linker=no | |
15063 | ;; | |
15064 | ||
15065 | # This must be Linux ELF. | |
15066 | linux*) | |
15067 | version_type=linux | |
15068 | need_lib_prefix=no | |
15069 | need_version=no | |
15070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15071 | soname_spec='${libname}${release}${shared_ext}$major' | |
15072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15073 | shlibpath_var=LD_LIBRARY_PATH | |
15074 | shlibpath_overrides_runpath=no | |
15075 | # This implies no fast_install, which is unacceptable. | |
15076 | # Some rework will be needed to allow for fast_install | |
15077 | # before this can be enabled. | |
15078 | hardcode_into_libs=yes | |
15079 | ||
15080 | # find out which ABI we are using | |
15081 | libsuff= | |
15082 | case "$host_cpu" in | |
15083 | x86_64*|s390x*|powerpc64*) | |
86933a6e | 15084 | echo '#line 15084 "configure"' > conftest.$ac_ext |
bf9f3bac | 15085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15086 | (eval $ac_compile) 2>&5 | |
15087 | ac_status=$? | |
15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15089 | (exit $ac_status); }; then | |
15090 | case `/usr/bin/file conftest.$ac_objext` in | |
15091 | *64-bit*) | |
15092 | libsuff=64 | |
15093 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
15094 | ;; | |
15095 | esac | |
15096 | fi | |
15097 | rm -rf conftest* | |
15098 | ;; | |
15099 | esac | |
15100 | ||
15101 | # Append ld.so.conf contents to the search path | |
15102 | if test -f /etc/ld.so.conf; then | |
15103 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
15104 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
15105 | fi | |
15106 | ||
15107 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15108 | # powerpc, because MkLinux only supported shared libraries with the | |
15109 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15110 | # most powerpc-linux boxes support dynamic linking these days and | |
15111 | # people can always --disable-shared, the test was removed, and we | |
15112 | # assume the GNU/Linux dynamic linker is in use. | |
15113 | dynamic_linker='GNU/Linux ld.so' | |
15114 | ;; | |
15115 | ||
15116 | knetbsd*-gnu) | |
15117 | version_type=linux | |
15118 | need_lib_prefix=no | |
15119 | need_version=no | |
15120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15121 | soname_spec='${libname}${release}${shared_ext}$major' | |
15122 | shlibpath_var=LD_LIBRARY_PATH | |
15123 | shlibpath_overrides_runpath=no | |
15124 | hardcode_into_libs=yes | |
15125 | dynamic_linker='GNU ld.so' | |
15126 | ;; | |
15127 | ||
15128 | netbsd*) | |
15129 | version_type=sunos | |
15130 | need_lib_prefix=no | |
15131 | need_version=no | |
15132 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15135 | dynamic_linker='NetBSD (a.out) ld.so' | |
15136 | else | |
15137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15138 | soname_spec='${libname}${release}${shared_ext}$major' | |
15139 | dynamic_linker='NetBSD ld.elf_so' | |
15140 | fi | |
15141 | shlibpath_var=LD_LIBRARY_PATH | |
15142 | shlibpath_overrides_runpath=yes | |
15143 | hardcode_into_libs=yes | |
15144 | ;; | |
15145 | ||
15146 | newsos6) | |
15147 | version_type=linux | |
15148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15149 | shlibpath_var=LD_LIBRARY_PATH | |
15150 | shlibpath_overrides_runpath=yes | |
15151 | ;; | |
15152 | ||
15153 | nto-qnx*) | |
15154 | version_type=linux | |
15155 | need_lib_prefix=no | |
15156 | need_version=no | |
15157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15158 | soname_spec='${libname}${release}${shared_ext}$major' | |
15159 | shlibpath_var=LD_LIBRARY_PATH | |
15160 | shlibpath_overrides_runpath=yes | |
15161 | ;; | |
15162 | ||
15163 | openbsd*) | |
15164 | version_type=sunos | |
15165 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15166 | need_lib_prefix=no | |
15167 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15168 | case $host_os in | |
15169 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15170 | *) need_version=no ;; | |
15171 | esac | |
15172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15173 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15174 | shlibpath_var=LD_LIBRARY_PATH | |
15175 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15176 | case $host_os in | |
15177 | openbsd2.[89] | openbsd2.[89].*) | |
15178 | shlibpath_overrides_runpath=no | |
15179 | ;; | |
15180 | *) | |
15181 | shlibpath_overrides_runpath=yes | |
15182 | ;; | |
15183 | esac | |
15184 | else | |
15185 | shlibpath_overrides_runpath=yes | |
15186 | fi | |
15187 | ;; | |
15188 | ||
15189 | os2*) | |
15190 | libname_spec='$name' | |
15191 | shrext_cmds=".dll" | |
15192 | need_lib_prefix=no | |
15193 | library_names_spec='$libname${shared_ext} $libname.a' | |
15194 | dynamic_linker='OS/2 ld.exe' | |
15195 | shlibpath_var=LIBPATH | |
15196 | ;; | |
15197 | ||
15198 | osf3* | osf4* | osf5*) | |
15199 | version_type=osf | |
15200 | need_lib_prefix=no | |
15201 | need_version=no | |
15202 | soname_spec='${libname}${release}${shared_ext}$major' | |
15203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15204 | shlibpath_var=LD_LIBRARY_PATH | |
15205 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15206 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15207 | ;; | |
15208 | ||
15209 | solaris*) | |
15210 | version_type=linux | |
15211 | need_lib_prefix=no | |
15212 | need_version=no | |
15213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15214 | soname_spec='${libname}${release}${shared_ext}$major' | |
15215 | shlibpath_var=LD_LIBRARY_PATH | |
15216 | shlibpath_overrides_runpath=yes | |
15217 | hardcode_into_libs=yes | |
15218 | # ldd complains unless libraries are executable | |
15219 | postinstall_cmds='chmod +x $lib' | |
15220 | ;; | |
15221 | ||
15222 | sunos4*) | |
15223 | version_type=sunos | |
15224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15225 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15226 | shlibpath_var=LD_LIBRARY_PATH | |
15227 | shlibpath_overrides_runpath=yes | |
15228 | if test "$with_gnu_ld" = yes; then | |
15229 | need_lib_prefix=no | |
15230 | fi | |
15231 | need_version=yes | |
15232 | ;; | |
15233 | ||
15234 | sysv4 | sysv4.3*) | |
15235 | version_type=linux | |
15236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15237 | soname_spec='${libname}${release}${shared_ext}$major' | |
15238 | shlibpath_var=LD_LIBRARY_PATH | |
15239 | case $host_vendor in | |
15240 | sni) | |
15241 | shlibpath_overrides_runpath=no | |
15242 | need_lib_prefix=no | |
15243 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15244 | runpath_var=LD_RUN_PATH | |
15245 | ;; | |
15246 | siemens) | |
15247 | need_lib_prefix=no | |
15248 | ;; | |
15249 | motorola) | |
15250 | need_lib_prefix=no | |
15251 | need_version=no | |
15252 | shlibpath_overrides_runpath=no | |
15253 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15254 | ;; | |
15255 | esac | |
15256 | ;; | |
15257 | ||
15258 | sysv4*MP*) | |
15259 | if test -d /usr/nec ;then | |
15260 | version_type=linux | |
15261 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15262 | soname_spec='$libname${shared_ext}.$major' | |
15263 | shlibpath_var=LD_LIBRARY_PATH | |
15264 | fi | |
15265 | ;; | |
15266 | ||
15267 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15268 | version_type=freebsd-elf | |
15269 | need_lib_prefix=no | |
15270 | need_version=no | |
15271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15272 | soname_spec='${libname}${release}${shared_ext}$major' | |
15273 | shlibpath_var=LD_LIBRARY_PATH | |
15274 | hardcode_into_libs=yes | |
15275 | if test "$with_gnu_ld" = yes; then | |
15276 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15277 | shlibpath_overrides_runpath=no | |
15278 | else | |
15279 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15280 | shlibpath_overrides_runpath=yes | |
15281 | case $host_os in | |
15282 | sco3.2v5*) | |
15283 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15284 | ;; | |
15285 | esac | |
15286 | fi | |
15287 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15288 | ;; | |
15289 | ||
15290 | uts4*) | |
15291 | version_type=linux | |
15292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15293 | soname_spec='${libname}${release}${shared_ext}$major' | |
15294 | shlibpath_var=LD_LIBRARY_PATH | |
15295 | ;; | |
15296 | ||
15297 | *) | |
15298 | dynamic_linker=no | |
15299 | ;; | |
15300 | esac | |
15301 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15302 | echo "${ECHO_T}$dynamic_linker" >&6 | |
15303 | test "$dynamic_linker" = no && can_build_shared=no | |
15304 | ||
15305 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15306 | if test "$GCC" = yes; then | |
15307 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15308 | fi | |
15309 | ||
15310 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15311 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
15312 | hardcode_action_F77= | |
15313 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
15314 | test -n "$runpath_var_F77" || \ | |
15315 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
15316 | ||
15317 | # We can hardcode non-existant directories. | |
15318 | if test "$hardcode_direct_F77" != no && | |
15319 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15320 | # have to relink, otherwise we might link with an installed library | |
15321 | # when we should be linking with a yet-to-be-installed one | |
15322 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15323 | test "$hardcode_minus_L_F77" != no; then | |
15324 | # Linking always hardcodes the temporary library directory. | |
15325 | hardcode_action_F77=relink | |
15326 | else | |
15327 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15328 | hardcode_action_F77=immediate | |
15329 | fi | |
15330 | else | |
15331 | # We cannot hardcode anything, or else we can only hardcode existing | |
15332 | # directories. | |
15333 | hardcode_action_F77=unsupported | |
15334 | fi | |
15335 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15336 | echo "${ECHO_T}$hardcode_action_F77" >&6 | |
15337 | ||
15338 | if test "$hardcode_action_F77" = relink; then | |
15339 | # Fast installation is not supported | |
15340 | enable_fast_install=no | |
15341 | elif test "$shlibpath_overrides_runpath" = yes || | |
15342 | test "$enable_shared" = no; then | |
15343 | # Fast installation is not necessary | |
15344 | enable_fast_install=needless | |
15345 | fi | |
15346 | ||
15347 | ||
15348 | # The else clause should only fire when bootstrapping the | |
15349 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15350 | # with your package, and you will get complaints that there are | |
15351 | # no rules to generate ltmain.sh. | |
15352 | if test -f "$ltmain"; then | |
15353 | # See if we are running on zsh, and set the options which allow our commands through | |
15354 | # without removal of \ escapes. | |
15355 | if test -n "${ZSH_VERSION+set}" ; then | |
15356 | setopt NO_GLOB_SUBST | |
15357 | fi | |
15358 | # Now quote all the things that may contain metacharacters while being | |
15359 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15360 | # variables and quote the copies for generation of the libtool script. | |
15361 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15362 | SED SHELL STRIP \ | |
15363 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15364 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15365 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
15366 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15367 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15368 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15369 | old_postinstall_cmds old_postuninstall_cmds \ | |
15370 | compiler_F77 \ | |
15371 | CC_F77 \ | |
15372 | LD_F77 \ | |
15373 | lt_prog_compiler_wl_F77 \ | |
15374 | lt_prog_compiler_pic_F77 \ | |
15375 | lt_prog_compiler_static_F77 \ | |
15376 | lt_prog_compiler_no_builtin_flag_F77 \ | |
15377 | export_dynamic_flag_spec_F77 \ | |
15378 | thread_safe_flag_spec_F77 \ | |
15379 | whole_archive_flag_spec_F77 \ | |
15380 | enable_shared_with_static_runtimes_F77 \ | |
15381 | old_archive_cmds_F77 \ | |
15382 | old_archive_from_new_cmds_F77 \ | |
15383 | predep_objects_F77 \ | |
15384 | postdep_objects_F77 \ | |
15385 | predeps_F77 \ | |
15386 | postdeps_F77 \ | |
15387 | compiler_lib_search_path_F77 \ | |
15388 | archive_cmds_F77 \ | |
15389 | archive_expsym_cmds_F77 \ | |
15390 | postinstall_cmds_F77 \ | |
15391 | postuninstall_cmds_F77 \ | |
15392 | old_archive_from_expsyms_cmds_F77 \ | |
15393 | allow_undefined_flag_F77 \ | |
15394 | no_undefined_flag_F77 \ | |
15395 | export_symbols_cmds_F77 \ | |
15396 | hardcode_libdir_flag_spec_F77 \ | |
15397 | hardcode_libdir_flag_spec_ld_F77 \ | |
15398 | hardcode_libdir_separator_F77 \ | |
15399 | hardcode_automatic_F77 \ | |
15400 | module_cmds_F77 \ | |
15401 | module_expsym_cmds_F77 \ | |
15402 | lt_cv_prog_compiler_c_o_F77 \ | |
15403 | exclude_expsyms_F77 \ | |
15404 | include_expsyms_F77; do | |
15405 | ||
15406 | case $var in | |
15407 | old_archive_cmds_F77 | \ | |
15408 | old_archive_from_new_cmds_F77 | \ | |
15409 | archive_cmds_F77 | \ | |
15410 | archive_expsym_cmds_F77 | \ | |
15411 | module_cmds_F77 | \ | |
15412 | module_expsym_cmds_F77 | \ | |
15413 | old_archive_from_expsyms_cmds_F77 | \ | |
15414 | export_symbols_cmds_F77 | \ | |
15415 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15416 | postinstall_cmds | postuninstall_cmds | \ | |
15417 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
15418 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15419 | # Double-quote double-evaled strings. | |
15420 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15421 | ;; | |
15422 | *) | |
15423 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15424 | ;; | |
15425 | esac | |
15426 | done | |
15427 | ||
15428 | case $lt_echo in | |
15429 | *'\$0 --fallback-echo"') | |
15430 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15431 | ;; | |
15432 | esac | |
15433 | ||
15434 | cfgfile="$ofile" | |
15435 | ||
15436 | cat <<__EOF__ >> "$cfgfile" | |
15437 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15438 | ||
15439 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15440 | ||
15441 | # Shell to use when invoking shell scripts. | |
15442 | SHELL=$lt_SHELL | |
15443 | ||
15444 | # Whether or not to build shared libraries. | |
15445 | build_libtool_libs=$enable_shared | |
15446 | ||
15447 | # Whether or not to build static libraries. | |
15448 | build_old_libs=$enable_static | |
15449 | ||
15450 | # Whether or not to add -lc for building shared libraries. | |
15451 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15452 | ||
15453 | # Whether or not to disallow shared libs when runtime libs are static | |
15454 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15455 | ||
15456 | # Whether or not to optimize for fast installation. | |
15457 | fast_install=$enable_fast_install | |
15458 | ||
15459 | # The host system. | |
15460 | host_alias=$host_alias | |
15461 | host=$host | |
15462 | host_os=$host_os | |
15463 | ||
15464 | # The build system. | |
15465 | build_alias=$build_alias | |
15466 | build=$build | |
15467 | build_os=$build_os | |
15468 | ||
15469 | # An echo program that does not interpret backslashes. | |
15470 | echo=$lt_echo | |
15471 | ||
15472 | # The archiver. | |
15473 | AR=$lt_AR | |
15474 | AR_FLAGS=$lt_AR_FLAGS | |
15475 | ||
15476 | # A C compiler. | |
15477 | LTCC=$lt_LTCC | |
15478 | ||
15479 | # LTCC compiler flags. | |
15480 | LTCFLAGS=$lt_LTCFLAGS | |
15481 | ||
15482 | # A language-specific compiler. | |
15483 | CC=$lt_compiler_F77 | |
15484 | ||
15485 | # Is the compiler the GNU C compiler? | |
15486 | with_gcc=$GCC_F77 | |
15487 | ||
15488 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
15489 | gcc_ver=\`gcc -dumpversion\` | |
15490 | ||
15491 | # An ERE matcher. | |
15492 | EGREP=$lt_EGREP | |
15493 | ||
15494 | # The linker used to build libraries. | |
15495 | LD=$lt_LD_F77 | |
15496 | ||
15497 | # Whether we need hard or soft links. | |
15498 | LN_S=$lt_LN_S | |
15499 | ||
15500 | # A BSD-compatible nm program. | |
15501 | NM=$lt_NM | |
15502 | ||
15503 | # A symbol stripping program | |
15504 | STRIP=$lt_STRIP | |
15505 | ||
15506 | # Used to examine libraries when file_magic_cmd begins "file" | |
15507 | MAGIC_CMD=$MAGIC_CMD | |
15508 | ||
15509 | # Used on cygwin: DLL creation program. | |
15510 | DLLTOOL="$DLLTOOL" | |
15511 | ||
15512 | # Used on cygwin: object dumper. | |
15513 | OBJDUMP="$OBJDUMP" | |
15514 | ||
15515 | # Used on cygwin: assembler. | |
15516 | AS="$AS" | |
15517 | ||
15518 | # The name of the directory that contains temporary libtool files. | |
15519 | objdir=$objdir | |
15520 | ||
15521 | # How to create reloadable object files. | |
15522 | reload_flag=$lt_reload_flag | |
15523 | reload_cmds=$lt_reload_cmds | |
15524 | ||
15525 | # How to pass a linker flag through the compiler. | |
15526 | wl=$lt_lt_prog_compiler_wl_F77 | |
15527 | ||
15528 | # Object file suffix (normally "o"). | |
15529 | objext="$ac_objext" | |
15530 | ||
15531 | # Old archive suffix (normally "a"). | |
15532 | libext="$libext" | |
15533 | ||
15534 | # Shared library suffix (normally ".so"). | |
15535 | shrext_cmds='$shrext_cmds' | |
15536 | ||
15537 | # Executable file suffix (normally ""). | |
15538 | exeext="$exeext" | |
15539 | ||
15540 | # Additional compiler flags for building library objects. | |
15541 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15542 | pic_mode=$pic_mode | |
15543 | ||
15544 | # What is the maximum length of a command? | |
15545 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
15546 | ||
15547 | # Does compiler simultaneously support -c and -o options? | |
15548 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15549 | ||
15550 | # Must we lock files when doing compilation? | |
15551 | need_locks=$lt_need_locks | |
15552 | ||
15553 | # Do we need the lib prefix for modules? | |
15554 | need_lib_prefix=$need_lib_prefix | |
15555 | ||
15556 | # Do we need a version for libraries? | |
15557 | need_version=$need_version | |
15558 | ||
15559 | # Whether dlopen is supported. | |
15560 | dlopen_support=$enable_dlopen | |
15561 | ||
15562 | # Whether dlopen of programs is supported. | |
15563 | dlopen_self=$enable_dlopen_self | |
15564 | ||
15565 | # Whether dlopen of statically linked programs is supported. | |
15566 | dlopen_self_static=$enable_dlopen_self_static | |
15567 | ||
15568 | # Compiler flag to prevent dynamic linking. | |
15569 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15570 | ||
15571 | # Compiler flag to turn off builtin functions. | |
15572 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15573 | ||
15574 | # Compiler flag to allow reflexive dlopens. | |
15575 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15576 | ||
15577 | # Compiler flag to generate shared objects directly from archives. | |
15578 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15579 | ||
15580 | # Compiler flag to generate thread-safe objects. | |
15581 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15582 | ||
15583 | # Library versioning type. | |
15584 | version_type=$version_type | |
15585 | ||
15586 | # Format of library name prefix. | |
15587 | libname_spec=$lt_libname_spec | |
15588 | ||
15589 | # List of archive names. First name is the real one, the rest are links. | |
15590 | # The last name is the one that the linker finds with -lNAME. | |
15591 | library_names_spec=$lt_library_names_spec | |
15592 | ||
15593 | # The coded name of the library, if different from the real name. | |
15594 | soname_spec=$lt_soname_spec | |
15595 | ||
15596 | # Commands used to build and install an old-style archive. | |
15597 | RANLIB=$lt_RANLIB | |
15598 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
15599 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15600 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15601 | ||
15602 | # Create an old-style archive from a shared archive. | |
15603 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15604 | ||
15605 | # Create a temporary old-style archive to link instead of a shared archive. | |
15606 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15607 | ||
15608 | # Commands used to build and install a shared archive. | |
15609 | archive_cmds=$lt_archive_cmds_F77 | |
15610 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15611 | postinstall_cmds=$lt_postinstall_cmds | |
15612 | postuninstall_cmds=$lt_postuninstall_cmds | |
15613 | ||
15614 | # Commands used to build a loadable module (assumed same as above if empty) | |
15615 | module_cmds=$lt_module_cmds_F77 | |
15616 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15617 | ||
15618 | # Commands to strip libraries. | |
15619 | old_striplib=$lt_old_striplib | |
15620 | striplib=$lt_striplib | |
15621 | ||
15622 | # Dependencies to place before the objects being linked to create a | |
15623 | # shared library. | |
15624 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15625 | ||
15626 | # Dependencies to place after the objects being linked to create a | |
15627 | # shared library. | |
15628 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15629 | ||
15630 | # Dependencies to place before the objects being linked to create a | |
15631 | # shared library. | |
15632 | predeps=$lt_predeps_F77 | |
15633 | ||
15634 | # Dependencies to place after the objects being linked to create a | |
15635 | # shared library. | |
15636 | postdeps=$lt_postdeps_F77 | |
15637 | ||
15638 | # The library search path used internally by the compiler when linking | |
15639 | # a shared library. | |
15640 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15641 | ||
15642 | # Method to check whether dependent libraries are shared objects. | |
15643 | deplibs_check_method=$lt_deplibs_check_method | |
15644 | ||
15645 | # Command to use when deplibs_check_method == file_magic. | |
15646 | file_magic_cmd=$lt_file_magic_cmd | |
15647 | ||
15648 | # Flag that allows shared libraries with undefined symbols to be built. | |
15649 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15650 | ||
15651 | # Flag that forces no undefined symbols. | |
15652 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
15653 | ||
15654 | # Commands used to finish a libtool library installation in a directory. | |
15655 | finish_cmds=$lt_finish_cmds | |
15656 | ||
15657 | # Same as above, but a single script fragment to be evaled but not shown. | |
15658 | finish_eval=$lt_finish_eval | |
15659 | ||
15660 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15661 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15662 | ||
15663 | # Transform the output of nm in a proper C declaration | |
15664 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15665 | ||
15666 | # Transform the output of nm in a C name address pair | |
15667 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15668 | ||
15669 | # This is the shared library runtime path variable. | |
15670 | runpath_var=$runpath_var | |
15671 | ||
15672 | # This is the shared library path variable. | |
15673 | shlibpath_var=$shlibpath_var | |
15674 | ||
15675 | # Is shlibpath searched before the hard-coded library search path? | |
15676 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15677 | ||
15678 | # How to hardcode a shared library path into an executable. | |
15679 | hardcode_action=$hardcode_action_F77 | |
15680 | ||
15681 | # Whether we should hardcode library paths into libraries. | |
15682 | hardcode_into_libs=$hardcode_into_libs | |
15683 | ||
15684 | # Flag to hardcode \$libdir into a binary during linking. | |
15685 | # This must work even if \$libdir does not exist. | |
15686 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15687 | ||
15688 | # If ld is used when linking, flag to hardcode \$libdir into | |
15689 | # a binary during linking. This must work even if \$libdir does | |
15690 | # not exist. | |
15691 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15692 | ||
15693 | # Whether we need a single -rpath flag with a separated argument. | |
15694 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15695 | ||
15696 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15697 | # resulting binary. | |
15698 | hardcode_direct=$hardcode_direct_F77 | |
15699 | ||
15700 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15701 | # resulting binary. | |
15702 | hardcode_minus_L=$hardcode_minus_L_F77 | |
15703 | ||
15704 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15705 | # the resulting binary. | |
15706 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15707 | ||
15708 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15709 | # and all subsequent libraries and executables linked against it. | |
15710 | hardcode_automatic=$hardcode_automatic_F77 | |
15711 | ||
15712 | # Variables whose values should be saved in libtool wrapper scripts and | |
15713 | # restored at relink time. | |
15714 | variables_saved_for_relink="$variables_saved_for_relink" | |
15715 | ||
15716 | # Whether libtool must link a program against all its dependency libraries. | |
15717 | link_all_deplibs=$link_all_deplibs_F77 | |
15718 | ||
15719 | # Compile-time system search path for libraries | |
15720 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
15721 | ||
15722 | # Run-time system search path for libraries | |
15723 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15724 | ||
15725 | # Fix the shell variable \$srcfile for the compiler. | |
15726 | fix_srcfile_path="$fix_srcfile_path_F77" | |
15727 | ||
15728 | # Set to yes if exported symbols are required. | |
15729 | always_export_symbols=$always_export_symbols_F77 | |
15730 | ||
15731 | # The commands to list exported symbols. | |
15732 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15733 | ||
15734 | # The commands to extract the exported symbol list from a shared archive. | |
15735 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15736 | ||
15737 | # Symbols that should not be listed in the preloaded symbols. | |
15738 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
15739 | ||
15740 | # Symbols that must always be exported. | |
15741 | include_expsyms=$lt_include_expsyms_F77 | |
15742 | ||
15743 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15744 | ||
15745 | __EOF__ | |
15746 | ||
15747 | ||
15748 | else | |
15749 | # If there is no Makefile yet, we rely on a make rule to execute | |
15750 | # `config.status --recheck' to rerun these tests and create the | |
15751 | # libtool script then. | |
15752 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15753 | if test -f "$ltmain_in"; then | |
15754 | test -f Makefile && make "$ltmain" | |
15755 | fi | |
15756 | fi | |
15757 | ||
15758 | ||
15759 | ac_ext=c | |
15760 | ac_cpp='$CPP $CPPFLAGS' | |
15761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15764 | ||
15765 | CC="$lt_save_CC" | |
15766 | ||
15767 | else | |
15768 | tagname="" | |
15769 | fi | |
15770 | ;; | |
15771 | ||
15772 | GCJ) | |
15773 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15774 | ||
15775 | ||
15776 | ||
15777 | # Source file extension for Java test sources. | |
15778 | ac_ext=java | |
15779 | ||
15780 | # Object file extension for compiled Java test sources. | |
15781 | objext=o | |
15782 | objext_GCJ=$objext | |
15783 | ||
15784 | # Code to be used in simple compile tests | |
15785 | lt_simple_compile_test_code="class foo {}\n" | |
15786 | ||
15787 | # Code to be used in simple link tests | |
15788 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
15789 | ||
15790 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15791 | ||
15792 | # If no C compiler was specified, use CC. | |
15793 | LTCC=${LTCC-"$CC"} | |
15794 | ||
15795 | # If no C compiler flags were specified, use CFLAGS. | |
15796 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15797 | ||
15798 | # Allow CC to be a program name with arguments. | |
15799 | compiler=$CC | |
15800 | ||
15801 | ||
15802 | # save warnings/boilerplate of simple test code | |
15803 | ac_outfile=conftest.$ac_objext | |
15804 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15805 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15806 | _lt_compiler_boilerplate=`cat conftest.err` | |
15807 | $rm conftest* | |
15808 | ||
15809 | ac_outfile=conftest.$ac_objext | |
15810 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
15811 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15812 | _lt_linker_boilerplate=`cat conftest.err` | |
15813 | $rm conftest* | |
15814 | ||
15815 | ||
15816 | # Allow CC to be a program name with arguments. | |
15817 | lt_save_CC="$CC" | |
15818 | CC=${GCJ-"gcj"} | |
15819 | compiler=$CC | |
15820 | compiler_GCJ=$CC | |
15821 | for cc_temp in $compiler""; do | |
15822 | case $cc_temp in | |
15823 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15824 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15825 | \-*) ;; | |
15826 | *) break;; | |
15827 | esac | |
15828 | done | |
15829 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15830 | ||
15831 | ||
15832 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15833 | archive_cmds_need_lc_GCJ=no | |
15834 | ||
15835 | old_archive_cmds_GCJ=$old_archive_cmds | |
15836 | ||
15837 | ||
15838 | lt_prog_compiler_no_builtin_flag_GCJ= | |
15839 | ||
15840 | if test "$GCC" = yes; then | |
15841 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15842 | ||
15843 | ||
15844 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15845 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15846 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15848 | else | |
15849 | lt_cv_prog_compiler_rtti_exceptions=no | |
15850 | ac_outfile=conftest.$ac_objext | |
15851 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15852 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15853 | # Insert the option either (1) after the last *FLAGS variable, or | |
15854 | # (2) before a word containing "conftest.", or (3) at the end. | |
15855 | # Note that $ac_compile itself does not contain backslashes and begins | |
15856 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15857 | # The option is referenced via a variable to avoid confusing sed. | |
15858 | lt_compile=`echo "$ac_compile" | $SED \ | |
15859 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15860 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15861 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 15862 | (eval echo "\"\$as_me:15862: $lt_compile\"" >&5) |
bf9f3bac | 15863 | (eval "$lt_compile" 2>conftest.err) |
15864 | ac_status=$? | |
15865 | cat conftest.err >&5 | |
86933a6e | 15866 | echo "$as_me:15866: \$? = $ac_status" >&5 |
bf9f3bac | 15867 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15868 | # The compiler can only warn and ignore the option if not recognized | |
15869 | # So say no if there are warnings other than the usual output. | |
15870 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15871 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15872 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15873 | lt_cv_prog_compiler_rtti_exceptions=yes | |
15874 | fi | |
15875 | fi | |
15876 | $rm conftest* | |
15877 | ||
15878 | fi | |
15879 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15880 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15881 | ||
15882 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15883 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15884 | else | |
15885 | : | |
15886 | fi | |
15887 | ||
15888 | fi | |
15889 | ||
15890 | lt_prog_compiler_wl_GCJ= | |
15891 | lt_prog_compiler_pic_GCJ= | |
15892 | lt_prog_compiler_static_GCJ= | |
15893 | ||
15894 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15895 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15896 | ||
15897 | if test "$GCC" = yes; then | |
15898 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15899 | lt_prog_compiler_static_GCJ='-static' | |
15900 | ||
15901 | case $host_os in | |
15902 | aix*) | |
15903 | # All AIX code is PIC. | |
15904 | if test "$host_cpu" = ia64; then | |
15905 | # AIX 5 now supports IA64 processor | |
15906 | lt_prog_compiler_static_GCJ='-Bstatic' | |
15907 | fi | |
15908 | ;; | |
15909 | ||
15910 | amigaos*) | |
15911 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15912 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15913 | # like `-m68040'. | |
15914 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15915 | ;; | |
15916 | ||
15917 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15918 | # PIC is the default for these OSes. | |
15919 | ;; | |
15920 | ||
15921 | mingw* | pw32* | os2*) | |
15922 | # This hack is so that the source file can tell whether it is being | |
15923 | # built for inclusion in a dll (and should export symbols for example). | |
15924 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15925 | ;; | |
15926 | ||
15927 | darwin* | rhapsody*) | |
15928 | # PIC is the default on this platform | |
15929 | # Common symbols not allowed in MH_DYLIB files | |
15930 | lt_prog_compiler_pic_GCJ='-fno-common' | |
15931 | ;; | |
15932 | ||
15933 | interix3*) | |
15934 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15935 | # Instead, we relocate shared libraries at runtime. | |
15936 | ;; | |
15937 | ||
15938 | msdosdjgpp*) | |
15939 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15940 | # on systems that don't support them. | |
15941 | lt_prog_compiler_can_build_shared_GCJ=no | |
15942 | enable_shared=no | |
15943 | ;; | |
15944 | ||
15945 | sysv4*MP*) | |
15946 | if test -d /usr/nec; then | |
15947 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15948 | fi | |
15949 | ;; | |
15950 | ||
15951 | hpux*) | |
15952 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15953 | # not for PA HP-UX. | |
15954 | case $host_cpu in | |
15955 | hppa*64*|ia64*) | |
15956 | # +Z the default | |
15957 | ;; | |
15958 | *) | |
15959 | lt_prog_compiler_pic_GCJ='-fPIC' | |
15960 | ;; | |
15961 | esac | |
15962 | ;; | |
15963 | ||
15964 | *) | |
15965 | lt_prog_compiler_pic_GCJ='-fPIC' | |
15966 | ;; | |
15967 | esac | |
15968 | else | |
15969 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15970 | case $host_os in | |
15971 | aix*) | |
15972 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15973 | if test "$host_cpu" = ia64; then | |
15974 | # AIX 5 now supports IA64 processor | |
15975 | lt_prog_compiler_static_GCJ='-Bstatic' | |
15976 | else | |
15977 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
15978 | fi | |
15979 | ;; | |
15980 | darwin*) | |
15981 | # PIC is the default on this platform | |
15982 | # Common symbols not allowed in MH_DYLIB files | |
15983 | case $cc_basename in | |
15984 | xlc*) | |
15985 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
15986 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15987 | ;; | |
15988 | esac | |
15989 | ;; | |
15990 | ||
15991 | mingw* | pw32* | os2*) | |
15992 | # This hack is so that the source file can tell whether it is being | |
15993 | # built for inclusion in a dll (and should export symbols for example). | |
15994 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15995 | ;; | |
15996 | ||
15997 | hpux9* | hpux10* | hpux11*) | |
15998 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15999 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16000 | # not for PA HP-UX. | |
16001 | case $host_cpu in | |
16002 | hppa*64*|ia64*) | |
16003 | # +Z the default | |
16004 | ;; | |
16005 | *) | |
16006 | lt_prog_compiler_pic_GCJ='+Z' | |
16007 | ;; | |
16008 | esac | |
16009 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16010 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16011 | ;; | |
16012 | ||
16013 | irix5* | irix6* | nonstopux*) | |
16014 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16015 | # PIC (with -KPIC) is the default. | |
16016 | lt_prog_compiler_static_GCJ='-non_shared' | |
16017 | ;; | |
16018 | ||
16019 | newsos6) | |
16020 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16021 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16022 | ;; | |
16023 | ||
16024 | linux*) | |
16025 | case $cc_basename in | |
16026 | icc* | ecc*) | |
16027 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16028 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16029 | lt_prog_compiler_static_GCJ='-static' | |
16030 | ;; | |
16031 | pgcc* | pgf77* | pgf90* | pgf95*) | |
16032 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
16033 | # which looks to be a dead project) | |
16034 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16035 | lt_prog_compiler_pic_GCJ='-fpic' | |
16036 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16037 | ;; | |
16038 | ccc*) | |
16039 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16040 | # All Alpha code is PIC. | |
16041 | lt_prog_compiler_static_GCJ='-non_shared' | |
16042 | ;; | |
16043 | esac | |
16044 | ;; | |
16045 | ||
16046 | osf3* | osf4* | osf5*) | |
16047 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16048 | # All OSF/1 code is PIC. | |
16049 | lt_prog_compiler_static_GCJ='-non_shared' | |
16050 | ;; | |
16051 | ||
16052 | solaris*) | |
16053 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16054 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16055 | case $cc_basename in | |
16056 | f77* | f90* | f95*) | |
16057 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16058 | *) | |
16059 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
16060 | esac | |
16061 | ;; | |
16062 | ||
16063 | sunos4*) | |
16064 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16065 | lt_prog_compiler_pic_GCJ='-PIC' | |
16066 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16067 | ;; | |
16068 | ||
16069 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
16070 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16071 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16072 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16073 | ;; | |
16074 | ||
16075 | sysv4*MP*) | |
16076 | if test -d /usr/nec ;then | |
16077 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16078 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16079 | fi | |
16080 | ;; | |
16081 | ||
16082 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16083 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16084 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16085 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16086 | ;; | |
16087 | ||
16088 | unicos*) | |
16089 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16090 | lt_prog_compiler_can_build_shared_GCJ=no | |
16091 | ;; | |
16092 | ||
16093 | uts4*) | |
16094 | lt_prog_compiler_pic_GCJ='-pic' | |
16095 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16096 | ;; | |
16097 | ||
16098 | *) | |
16099 | lt_prog_compiler_can_build_shared_GCJ=no | |
16100 | ;; | |
16101 | esac | |
16102 | fi | |
16103 | ||
16104 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16105 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
16106 | ||
16107 | # | |
16108 | # Check to make sure the PIC flag actually works. | |
16109 | # | |
16110 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16111 | ||
16112 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16113 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
16114 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16116 | else | |
16117 | lt_prog_compiler_pic_works_GCJ=no | |
16118 | ac_outfile=conftest.$ac_objext | |
16119 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16120 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16121 | # Insert the option either (1) after the last *FLAGS variable, or | |
16122 | # (2) before a word containing "conftest.", or (3) at the end. | |
16123 | # Note that $ac_compile itself does not contain backslashes and begins | |
16124 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16125 | # The option is referenced via a variable to avoid confusing sed. | |
16126 | lt_compile=`echo "$ac_compile" | $SED \ | |
16127 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16129 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 16130 | (eval echo "\"\$as_me:16130: $lt_compile\"" >&5) |
bf9f3bac | 16131 | (eval "$lt_compile" 2>conftest.err) |
16132 | ac_status=$? | |
16133 | cat conftest.err >&5 | |
86933a6e | 16134 | echo "$as_me:16134: \$? = $ac_status" >&5 |
bf9f3bac | 16135 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16136 | # The compiler can only warn and ignore the option if not recognized | |
16137 | # So say no if there are warnings other than the usual output. | |
16138 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16139 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16140 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16141 | lt_prog_compiler_pic_works_GCJ=yes | |
16142 | fi | |
16143 | fi | |
16144 | $rm conftest* | |
16145 | ||
16146 | fi | |
16147 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16148 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
16149 | ||
16150 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16151 | case $lt_prog_compiler_pic_GCJ in | |
16152 | "" | " "*) ;; | |
16153 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16154 | esac | |
16155 | else | |
16156 | lt_prog_compiler_pic_GCJ= | |
16157 | lt_prog_compiler_can_build_shared_GCJ=no | |
16158 | fi | |
16159 | ||
16160 | fi | |
16161 | case $host_os in | |
16162 | # For platforms which do not support PIC, -DPIC is meaningless: | |
16163 | *djgpp*) | |
16164 | lt_prog_compiler_pic_GCJ= | |
16165 | ;; | |
16166 | *) | |
16167 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16168 | ;; | |
16169 | esac | |
16170 | ||
16171 | # | |
16172 | # Check to make sure the static flag actually works. | |
16173 | # | |
16174 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16175 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16176 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
16177 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16179 | else | |
16180 | lt_prog_compiler_static_works_GCJ=no | |
16181 | save_LDFLAGS="$LDFLAGS" | |
16182 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16183 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16184 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16185 | # The linker can only warn and ignore the option if not recognized | |
16186 | # So say no if there are warnings | |
16187 | if test -s conftest.err; then | |
16188 | # Append any errors to the config.log. | |
16189 | cat conftest.err 1>&5 | |
16190 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16191 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16192 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16193 | lt_prog_compiler_static_works_GCJ=yes | |
16194 | fi | |
16195 | else | |
16196 | lt_prog_compiler_static_works_GCJ=yes | |
16197 | fi | |
16198 | fi | |
16199 | $rm conftest* | |
16200 | LDFLAGS="$save_LDFLAGS" | |
16201 | ||
16202 | fi | |
16203 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16204 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | |
16205 | ||
16206 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16207 | : | |
16208 | else | |
16209 | lt_prog_compiler_static_GCJ= | |
16210 | fi | |
16211 | ||
16212 | ||
16213 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16214 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
16215 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16217 | else | |
16218 | lt_cv_prog_compiler_c_o_GCJ=no | |
16219 | $rm -r conftest 2>/dev/null | |
16220 | mkdir conftest | |
16221 | cd conftest | |
16222 | mkdir out | |
16223 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16224 | ||
16225 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16226 | # Insert the option either (1) after the last *FLAGS variable, or | |
16227 | # (2) before a word containing "conftest.", or (3) at the end. | |
16228 | # Note that $ac_compile itself does not contain backslashes and begins | |
16229 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16230 | lt_compile=`echo "$ac_compile" | $SED \ | |
16231 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16232 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16233 | -e 's:$: $lt_compiler_flag:'` | |
86933a6e | 16234 | (eval echo "\"\$as_me:16234: $lt_compile\"" >&5) |
bf9f3bac | 16235 | (eval "$lt_compile" 2>out/conftest.err) |
16236 | ac_status=$? | |
16237 | cat out/conftest.err >&5 | |
86933a6e | 16238 | echo "$as_me:16238: \$? = $ac_status" >&5 |
bf9f3bac | 16239 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16240 | then | |
16241 | # The compiler can only warn and ignore the option if not recognized | |
16242 | # So say no if there are warnings | |
16243 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16244 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16245 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16246 | lt_cv_prog_compiler_c_o_GCJ=yes | |
16247 | fi | |
16248 | fi | |
16249 | chmod u+w . 2>&5 | |
16250 | $rm conftest* | |
16251 | # SGI C++ compiler will create directory out/ii_files/ for | |
16252 | # template instantiation | |
16253 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16254 | $rm out/* && rmdir out | |
16255 | cd .. | |
16256 | rmdir conftest | |
16257 | $rm conftest* | |
16258 | ||
16259 | fi | |
16260 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16261 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
16262 | ||
16263 | ||
16264 | hard_links="nottested" | |
16265 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16266 | # do not overwrite the value of need_locks provided by the user | |
16267 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16268 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
16269 | hard_links=yes | |
16270 | $rm conftest* | |
16271 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16272 | touch conftest.a | |
16273 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16274 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16275 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16276 | echo "${ECHO_T}$hard_links" >&6 | |
16277 | if test "$hard_links" = no; then | |
16278 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16279 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16280 | need_locks=warn | |
16281 | fi | |
16282 | else | |
16283 | need_locks=no | |
16284 | fi | |
16285 | ||
16286 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16287 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
16288 | ||
16289 | runpath_var= | |
16290 | allow_undefined_flag_GCJ= | |
16291 | enable_shared_with_static_runtimes_GCJ=no | |
16292 | archive_cmds_GCJ= | |
16293 | archive_expsym_cmds_GCJ= | |
16294 | old_archive_From_new_cmds_GCJ= | |
16295 | old_archive_from_expsyms_cmds_GCJ= | |
16296 | export_dynamic_flag_spec_GCJ= | |
16297 | whole_archive_flag_spec_GCJ= | |
16298 | thread_safe_flag_spec_GCJ= | |
16299 | hardcode_libdir_flag_spec_GCJ= | |
16300 | hardcode_libdir_flag_spec_ld_GCJ= | |
16301 | hardcode_libdir_separator_GCJ= | |
16302 | hardcode_direct_GCJ=no | |
16303 | hardcode_minus_L_GCJ=no | |
16304 | hardcode_shlibpath_var_GCJ=unsupported | |
16305 | link_all_deplibs_GCJ=unknown | |
16306 | hardcode_automatic_GCJ=no | |
16307 | module_cmds_GCJ= | |
16308 | module_expsym_cmds_GCJ= | |
16309 | always_export_symbols_GCJ=no | |
16310 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16311 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16312 | # included in the symbol list | |
16313 | include_expsyms_GCJ= | |
16314 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
16315 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16316 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16317 | # as well as any symbol that contains `d'. | |
16318 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16319 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16320 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16321 | # the symbol is explicitly referenced. Since portable code cannot | |
16322 | # rely on this symbol name, it's probably fine to never include it in | |
16323 | # preloaded symbol tables. | |
16324 | extract_expsyms_cmds= | |
16325 | # Just being paranoid about ensuring that cc_basename is set. | |
16326 | for cc_temp in $compiler""; do | |
16327 | case $cc_temp in | |
16328 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16329 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16330 | \-*) ;; | |
16331 | *) break;; | |
16332 | esac | |
16333 | done | |
16334 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16335 | ||
16336 | case $host_os in | |
16337 | cygwin* | mingw* | pw32*) | |
16338 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16339 | # When not using gcc, we currently assume that we are using | |
16340 | # Microsoft Visual C++. | |
16341 | if test "$GCC" != yes; then | |
16342 | with_gnu_ld=no | |
16343 | fi | |
16344 | ;; | |
16345 | interix*) | |
16346 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16347 | with_gnu_ld=yes | |
16348 | ;; | |
16349 | openbsd*) | |
16350 | with_gnu_ld=no | |
16351 | ;; | |
16352 | esac | |
16353 | ||
16354 | ld_shlibs_GCJ=yes | |
16355 | if test "$with_gnu_ld" = yes; then | |
16356 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16357 | wlarc='${wl}' | |
16358 | ||
16359 | # Set some defaults for GNU ld with shared library support. These | |
16360 | # are reset later if shared libraries are not supported. Putting them | |
16361 | # here allows them to be overridden if necessary. | |
16362 | runpath_var=LD_RUN_PATH | |
16363 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16364 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16365 | # ancient GNU ld didn't support --whole-archive et. al. | |
16366 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16367 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16368 | else | |
16369 | whole_archive_flag_spec_GCJ= | |
16370 | fi | |
16371 | supports_anon_versioning=no | |
16372 | case `$LD -v 2>/dev/null` in | |
16373 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16374 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16375 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16376 | *\ 2.11.*) ;; # other 2.11 versions | |
16377 | *) supports_anon_versioning=yes ;; | |
16378 | esac | |
16379 | ||
16380 | # See if GNU ld supports shared libraries. | |
16381 | case $host_os in | |
16382 | aix3* | aix4* | aix5*) | |
16383 | # On AIX/PPC, the GNU linker is very broken | |
16384 | if test "$host_cpu" != ia64; then | |
16385 | ld_shlibs_GCJ=no | |
16386 | cat <<EOF 1>&2 | |
16387 | ||
16388 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16389 | *** to be unable to reliably create shared libraries on AIX. | |
16390 | *** Therefore, libtool is disabling shared libraries support. If you | |
16391 | *** really care for shared libraries, you may want to modify your PATH | |
16392 | *** so that a non-GNU linker is found, and then restart. | |
16393 | ||
16394 | EOF | |
16395 | fi | |
16396 | ;; | |
16397 | ||
16398 | amigaos*) | |
16399 | archive_cmds_GCJ='$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)' | |
16400 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16401 | hardcode_minus_L_GCJ=yes | |
16402 | ||
16403 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16404 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16405 | # to version 4, is to share data among multiple programs linked | |
16406 | # with the same dynamic library. Since this doesn't match the | |
16407 | # behavior of shared libraries on other platforms, we can't use | |
16408 | # them. | |
16409 | ld_shlibs_GCJ=no | |
16410 | ;; | |
16411 | ||
16412 | beos*) | |
16413 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16414 | allow_undefined_flag_GCJ=unsupported | |
16415 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16416 | # support --undefined. This deserves some investigation. FIXME | |
16417 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16418 | else | |
16419 | ld_shlibs_GCJ=no | |
16420 | fi | |
16421 | ;; | |
16422 | ||
16423 | cygwin* | mingw* | pw32*) | |
16424 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16425 | # as there is no search path for DLLs. | |
16426 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16427 | allow_undefined_flag_GCJ=unsupported | |
16428 | always_export_symbols_GCJ=no | |
16429 | enable_shared_with_static_runtimes_GCJ=yes | |
16430 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16431 | ||
16432 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16433 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16434 | # If the export-symbols file already is a .def file (1st line | |
16435 | # is EXPORTS), use it as is; otherwise, prepend... | |
16436 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16437 | cp $export_symbols $output_objdir/$soname.def; | |
16438 | else | |
16439 | echo EXPORTS > $output_objdir/$soname.def; | |
16440 | cat $export_symbols >> $output_objdir/$soname.def; | |
16441 | fi~ | |
16442 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16443 | else | |
16444 | ld_shlibs_GCJ=no | |
16445 | fi | |
16446 | ;; | |
16447 | ||
16448 | interix3*) | |
16449 | hardcode_direct_GCJ=no | |
16450 | hardcode_shlibpath_var_GCJ=no | |
16451 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16452 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16453 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16454 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16455 | # default) and relocated if they conflict, which is a slow very memory | |
16456 | # consuming and fragmenting process. To avoid this, we pick a random, | |
16457 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16458 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16459 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16460 | archive_expsym_cmds_GCJ='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' | |
16461 | ;; | |
16462 | ||
16463 | linux*) | |
16464 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16465 | tmp_addflag= | |
16466 | case $cc_basename,$host_cpu in | |
16467 | pgcc*) # Portland Group C compiler | |
16468 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16469 | tmp_addflag=' $pic_flag' | |
16470 | ;; | |
16471 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16472 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16473 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
16474 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16475 | tmp_addflag=' -i_dynamic' ;; | |
16476 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16477 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16478 | ifc* | ifort*) # Intel Fortran compiler | |
16479 | tmp_addflag=' -nofor_main' ;; | |
16480 | esac | |
16481 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16482 | ||
16483 | if test $supports_anon_versioning = yes; then | |
16484 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16485 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16486 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16487 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16488 | fi | |
16489 | else | |
16490 | ld_shlibs_GCJ=no | |
16491 | fi | |
16492 | ;; | |
16493 | ||
16494 | netbsd*) | |
16495 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16496 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16497 | wlarc= | |
16498 | else | |
16499 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16500 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16501 | fi | |
16502 | ;; | |
16503 | ||
16504 | solaris*) | |
16505 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16506 | ld_shlibs_GCJ=no | |
16507 | cat <<EOF 1>&2 | |
16508 | ||
16509 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16510 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16511 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16512 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16513 | *** your PATH or compiler configuration so that the native linker is | |
16514 | *** used, and then restart. | |
16515 | ||
16516 | EOF | |
16517 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16518 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16519 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16520 | else | |
16521 | ld_shlibs_GCJ=no | |
16522 | fi | |
16523 | ;; | |
16524 | ||
16525 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16526 | case `$LD -v 2>&1` in | |
16527 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16528 | ld_shlibs_GCJ=no | |
16529 | cat <<_LT_EOF 1>&2 | |
16530 | ||
16531 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16532 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16533 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16534 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16535 | *** your PATH or compiler configuration so that the native linker is | |
16536 | *** used, and then restart. | |
16537 | ||
16538 | _LT_EOF | |
16539 | ;; | |
16540 | *) | |
16541 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16542 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16543 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16544 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16545 | else | |
16546 | ld_shlibs_GCJ=no | |
16547 | fi | |
16548 | ;; | |
16549 | esac | |
16550 | ;; | |
16551 | ||
16552 | sunos4*) | |
16553 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16554 | wlarc= | |
16555 | hardcode_direct_GCJ=yes | |
16556 | hardcode_shlibpath_var_GCJ=no | |
16557 | ;; | |
16558 | ||
16559 | *) | |
16560 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16561 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16562 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16563 | else | |
16564 | ld_shlibs_GCJ=no | |
16565 | fi | |
16566 | ;; | |
16567 | esac | |
16568 | ||
16569 | if test "$ld_shlibs_GCJ" = no; then | |
16570 | runpath_var= | |
16571 | hardcode_libdir_flag_spec_GCJ= | |
16572 | export_dynamic_flag_spec_GCJ= | |
16573 | whole_archive_flag_spec_GCJ= | |
16574 | fi | |
16575 | else | |
16576 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16577 | case $host_os in | |
16578 | aix3*) | |
16579 | allow_undefined_flag_GCJ=unsupported | |
16580 | always_export_symbols_GCJ=yes | |
16581 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16582 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16583 | # are no directories specified by -L. | |
16584 | hardcode_minus_L_GCJ=yes | |
16585 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16586 | # Neither direct hardcoding nor static linking is supported with a | |
16587 | # broken collect2. | |
16588 | hardcode_direct_GCJ=unsupported | |
16589 | fi | |
16590 | ;; | |
16591 | ||
16592 | aix4* | aix5*) | |
16593 | if test "$host_cpu" = ia64; then | |
16594 | # On IA64, the linker does run time linking by default, so we don't | |
16595 | # have to do anything special. | |
16596 | aix_use_runtimelinking=no | |
16597 | exp_sym_flag='-Bexport' | |
16598 | no_entry_flag="" | |
16599 | else | |
16600 | # If we're using GNU nm, then we don't want the "-C" option. | |
16601 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16602 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16603 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16604 | else | |
16605 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16606 | fi | |
16607 | aix_use_runtimelinking=no | |
16608 | ||
16609 | # Test if we are trying to use run time linking or normal | |
16610 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16611 | # need to do runtime linking. | |
16612 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16613 | for ld_flag in $LDFLAGS; do | |
16614 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16615 | aix_use_runtimelinking=yes | |
16616 | break | |
16617 | fi | |
16618 | done | |
16619 | ;; | |
16620 | esac | |
16621 | ||
16622 | exp_sym_flag='-bexport' | |
16623 | no_entry_flag='-bnoentry' | |
16624 | fi | |
16625 | ||
16626 | # When large executables or shared objects are built, AIX ld can | |
16627 | # have problems creating the table of contents. If linking a library | |
16628 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16629 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16630 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16631 | ||
16632 | archive_cmds_GCJ='' | |
16633 | hardcode_direct_GCJ=yes | |
16634 | hardcode_libdir_separator_GCJ=':' | |
16635 | link_all_deplibs_GCJ=yes | |
16636 | ||
16637 | if test "$GCC" = yes; then | |
16638 | case $host_os in aix4.[012]|aix4.[012].*) | |
16639 | # We only want to do this on AIX 4.2 and lower, the check | |
16640 | # below for broken collect2 doesn't work under 4.3+ | |
16641 | collect2name=`${CC} -print-prog-name=collect2` | |
16642 | if test -f "$collect2name" && \ | |
16643 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16644 | then | |
16645 | # We have reworked collect2 | |
16646 | hardcode_direct_GCJ=yes | |
16647 | else | |
16648 | # We have old collect2 | |
16649 | hardcode_direct_GCJ=unsupported | |
16650 | # It fails to find uninstalled libraries when the uninstalled | |
16651 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16652 | # to unsupported forces relinking | |
16653 | hardcode_minus_L_GCJ=yes | |
16654 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16655 | hardcode_libdir_separator_GCJ= | |
16656 | fi | |
16657 | ;; | |
16658 | esac | |
16659 | shared_flag='-shared' | |
16660 | if test "$aix_use_runtimelinking" = yes; then | |
16661 | shared_flag="$shared_flag "'${wl}-G' | |
16662 | fi | |
16663 | else | |
16664 | # not using gcc | |
16665 | if test "$host_cpu" = ia64; then | |
16666 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16667 | # chokes on -Wl,-G. The following line is correct: | |
16668 | shared_flag='-G' | |
16669 | else | |
16670 | if test "$aix_use_runtimelinking" = yes; then | |
16671 | shared_flag='${wl}-G' | |
16672 | else | |
16673 | shared_flag='${wl}-bM:SRE' | |
16674 | fi | |
16675 | fi | |
16676 | fi | |
16677 | ||
16678 | # It seems that -bexpall does not export symbols beginning with | |
16679 | # underscore (_), so it is better to generate a list of symbols to export. | |
16680 | always_export_symbols_GCJ=yes | |
16681 | if test "$aix_use_runtimelinking" = yes; then | |
16682 | # Warning - without using the other runtime loading flags (-brtl), | |
16683 | # -berok will link without error, but may produce a broken library. | |
16684 | allow_undefined_flag_GCJ='-berok' | |
16685 | # Determine the default libpath from the value encoded in an empty executable. | |
16686 | cat >conftest.$ac_ext <<_ACEOF | |
16687 | /* confdefs.h. */ | |
16688 | _ACEOF | |
16689 | cat confdefs.h >>conftest.$ac_ext | |
16690 | cat >>conftest.$ac_ext <<_ACEOF | |
16691 | /* end confdefs.h. */ | |
16692 | ||
16693 | int | |
16694 | main () | |
16695 | { | |
16696 | ||
16697 | ; | |
16698 | return 0; | |
16699 | } | |
16700 | _ACEOF | |
16701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16703 | (eval $ac_link) 2>conftest.er1 | |
16704 | ac_status=$? | |
16705 | grep -v '^ *+' conftest.er1 >conftest.err | |
16706 | rm -f conftest.er1 | |
16707 | cat conftest.err >&5 | |
16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16709 | (exit $ac_status); } && | |
16710 | { ac_try='test -z "$ac_c_werror_flag" | |
16711 | || test ! -s conftest.err' | |
16712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16713 | (eval $ac_try) 2>&5 | |
16714 | ac_status=$? | |
16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16716 | (exit $ac_status); }; } && | |
16717 | { ac_try='test -s conftest$ac_exeext' | |
16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16719 | (eval $ac_try) 2>&5 | |
16720 | ac_status=$? | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); }; }; then | |
16723 | ||
16724 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16725 | }'` | |
16726 | # Check for a 64-bit object if we didn't find anything. | |
16727 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16728 | }'`; fi | |
16729 | else | |
16730 | echo "$as_me: failed program was:" >&5 | |
16731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16732 | ||
16733 | fi | |
16734 | rm -f conftest.err conftest.$ac_objext \ | |
16735 | conftest$ac_exeext conftest.$ac_ext | |
16736 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16737 | ||
16738 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16739 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16740 | else | |
16741 | if test "$host_cpu" = ia64; then | |
16742 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16743 | allow_undefined_flag_GCJ="-z nodefs" | |
16744 | archive_expsym_cmds_GCJ="\$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" | |
16745 | else | |
16746 | # Determine the default libpath from the value encoded in an empty executable. | |
16747 | cat >conftest.$ac_ext <<_ACEOF | |
16748 | /* confdefs.h. */ | |
16749 | _ACEOF | |
16750 | cat confdefs.h >>conftest.$ac_ext | |
16751 | cat >>conftest.$ac_ext <<_ACEOF | |
16752 | /* end confdefs.h. */ | |
16753 | ||
16754 | int | |
16755 | main () | |
16756 | { | |
16757 | ||
16758 | ; | |
16759 | return 0; | |
16760 | } | |
16761 | _ACEOF | |
16762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16764 | (eval $ac_link) 2>conftest.er1 | |
16765 | ac_status=$? | |
16766 | grep -v '^ *+' conftest.er1 >conftest.err | |
16767 | rm -f conftest.er1 | |
16768 | cat conftest.err >&5 | |
16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16770 | (exit $ac_status); } && | |
16771 | { ac_try='test -z "$ac_c_werror_flag" | |
16772 | || test ! -s conftest.err' | |
16773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16774 | (eval $ac_try) 2>&5 | |
16775 | ac_status=$? | |
16776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16777 | (exit $ac_status); }; } && | |
16778 | { ac_try='test -s conftest$ac_exeext' | |
16779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16780 | (eval $ac_try) 2>&5 | |
16781 | ac_status=$? | |
16782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16783 | (exit $ac_status); }; }; then | |
16784 | ||
16785 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16786 | }'` | |
16787 | # Check for a 64-bit object if we didn't find anything. | |
16788 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16789 | }'`; fi | |
16790 | else | |
16791 | echo "$as_me: failed program was:" >&5 | |
16792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16793 | ||
16794 | fi | |
16795 | rm -f conftest.err conftest.$ac_objext \ | |
16796 | conftest$ac_exeext conftest.$ac_ext | |
16797 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16798 | ||
16799 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16800 | # Warning - without using the other run time loading flags, | |
16801 | # -berok will link without error, but may produce a broken library. | |
16802 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16803 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
16804 | # Exported symbols can be pulled into shared objects from archives | |
16805 | whole_archive_flag_spec_GCJ='$convenience' | |
16806 | archive_cmds_need_lc_GCJ=yes | |
16807 | # This is similar to how AIX traditionally builds its shared libraries. | |
16808 | archive_expsym_cmds_GCJ="\$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' | |
16809 | fi | |
16810 | fi | |
16811 | ;; | |
16812 | ||
16813 | amigaos*) | |
16814 | archive_cmds_GCJ='$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)' | |
16815 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16816 | hardcode_minus_L_GCJ=yes | |
16817 | # see comment about different semantics on the GNU ld section | |
16818 | ld_shlibs_GCJ=no | |
16819 | ;; | |
16820 | ||
16821 | bsdi[45]*) | |
16822 | export_dynamic_flag_spec_GCJ=-rdynamic | |
16823 | ;; | |
16824 | ||
16825 | cygwin* | mingw* | pw32*) | |
16826 | # When not using gcc, we currently assume that we are using | |
16827 | # Microsoft Visual C++. | |
16828 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16829 | # no search path for DLLs. | |
16830 | hardcode_libdir_flag_spec_GCJ=' ' | |
16831 | allow_undefined_flag_GCJ=unsupported | |
16832 | # Tell ltmain to make .lib files, not .a files. | |
16833 | libext=lib | |
16834 | # Tell ltmain to make .dll files, not .so files. | |
16835 | shrext_cmds=".dll" | |
16836 | # FIXME: Setting linknames here is a bad hack. | |
16837 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16838 | # The linker will automatically build a .lib file if we build a DLL. | |
16839 | old_archive_From_new_cmds_GCJ='true' | |
16840 | # FIXME: Should let the user specify the lib program. | |
16841 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16842 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
16843 | enable_shared_with_static_runtimes_GCJ=yes | |
16844 | ;; | |
16845 | ||
16846 | darwin* | rhapsody*) | |
16847 | case $host_os in | |
16848 | rhapsody* | darwin1.[012]) | |
16849 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
16850 | ;; | |
16851 | *) # Darwin 1.3 on | |
16852 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16853 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16854 | else | |
16855 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16856 | 10.[012]) | |
16857 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16858 | ;; | |
16859 | 10.*) | |
16860 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
16861 | ;; | |
16862 | esac | |
16863 | fi | |
16864 | ;; | |
16865 | esac | |
16866 | archive_cmds_need_lc_GCJ=no | |
16867 | hardcode_direct_GCJ=no | |
16868 | hardcode_automatic_GCJ=yes | |
16869 | hardcode_shlibpath_var_GCJ=unsupported | |
16870 | whole_archive_flag_spec_GCJ='' | |
16871 | link_all_deplibs_GCJ=yes | |
16872 | if test "$GCC" = yes ; then | |
16873 | output_verbose_link_cmd='echo' | |
16874 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16875 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16876 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16877 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16878 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16879 | else | |
16880 | case $cc_basename in | |
16881 | xlc*) | |
16882 | output_verbose_link_cmd='echo' | |
16883 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
16884 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16885 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16886 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16887 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16888 | ;; | |
16889 | *) | |
16890 | ld_shlibs_GCJ=no | |
16891 | ;; | |
16892 | esac | |
16893 | fi | |
16894 | ;; | |
16895 | ||
16896 | dgux*) | |
16897 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16898 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16899 | hardcode_shlibpath_var_GCJ=no | |
16900 | ;; | |
16901 | ||
16902 | freebsd1*) | |
16903 | ld_shlibs_GCJ=no | |
16904 | ;; | |
16905 | ||
16906 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16907 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16908 | # does not break anything, and helps significantly (at the cost of a little | |
16909 | # extra space). | |
16910 | freebsd2.2*) | |
16911 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16912 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16913 | hardcode_direct_GCJ=yes | |
16914 | hardcode_shlibpath_var_GCJ=no | |
16915 | ;; | |
16916 | ||
16917 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16918 | freebsd2*) | |
16919 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16920 | hardcode_direct_GCJ=yes | |
16921 | hardcode_minus_L_GCJ=yes | |
16922 | hardcode_shlibpath_var_GCJ=no | |
16923 | ;; | |
16924 | ||
16925 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16926 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
16927 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16928 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16929 | hardcode_direct_GCJ=yes | |
16930 | hardcode_shlibpath_var_GCJ=no | |
16931 | ;; | |
16932 | ||
16933 | hpux9*) | |
16934 | if test "$GCC" = yes; then | |
16935 | archive_cmds_GCJ='$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' | |
16936 | else | |
16937 | archive_cmds_GCJ='$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' | |
16938 | fi | |
16939 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16940 | hardcode_libdir_separator_GCJ=: | |
16941 | hardcode_direct_GCJ=yes | |
16942 | ||
16943 | # hardcode_minus_L: Not really in the search PATH, | |
16944 | # but as the default location of the library. | |
16945 | hardcode_minus_L_GCJ=yes | |
16946 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16947 | ;; | |
16948 | ||
16949 | hpux10*) | |
16950 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16951 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16952 | else | |
16953 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16954 | fi | |
16955 | if test "$with_gnu_ld" = no; then | |
16956 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16957 | hardcode_libdir_separator_GCJ=: | |
16958 | ||
16959 | hardcode_direct_GCJ=yes | |
16960 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16961 | ||
16962 | # hardcode_minus_L: Not really in the search PATH, | |
16963 | # but as the default location of the library. | |
16964 | hardcode_minus_L_GCJ=yes | |
16965 | fi | |
16966 | ;; | |
16967 | ||
16968 | hpux11*) | |
16969 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16970 | case $host_cpu in | |
16971 | hppa*64*) | |
16972 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16973 | ;; | |
16974 | ia64*) | |
16975 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16976 | ;; | |
16977 | *) | |
16978 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16979 | ;; | |
16980 | esac | |
16981 | else | |
16982 | case $host_cpu in | |
16983 | hppa*64*) | |
16984 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16985 | ;; | |
16986 | ia64*) | |
16987 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16988 | ;; | |
16989 | *) | |
16990 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16991 | ;; | |
16992 | esac | |
16993 | fi | |
16994 | if test "$with_gnu_ld" = no; then | |
16995 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16996 | hardcode_libdir_separator_GCJ=: | |
16997 | ||
16998 | case $host_cpu in | |
16999 | hppa*64*|ia64*) | |
17000 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
17001 | hardcode_direct_GCJ=no | |
17002 | hardcode_shlibpath_var_GCJ=no | |
17003 | ;; | |
17004 | *) | |
17005 | hardcode_direct_GCJ=yes | |
17006 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17007 | ||
17008 | # hardcode_minus_L: Not really in the search PATH, | |
17009 | # but as the default location of the library. | |
17010 | hardcode_minus_L_GCJ=yes | |
17011 | ;; | |
17012 | esac | |
17013 | fi | |
17014 | ;; | |
17015 | ||
17016 | irix5* | irix6* | nonstopux*) | |
17017 | if test "$GCC" = yes; then | |
17018 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17019 | else | |
17020 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17021 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17022 | fi | |
17023 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17024 | hardcode_libdir_separator_GCJ=: | |
17025 | link_all_deplibs_GCJ=yes | |
17026 | ;; | |
17027 | ||
17028 | netbsd*) | |
17029 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17030 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17031 | else | |
17032 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17033 | fi | |
17034 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17035 | hardcode_direct_GCJ=yes | |
17036 | hardcode_shlibpath_var_GCJ=no | |
17037 | ;; | |
17038 | ||
17039 | newsos6) | |
17040 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17041 | hardcode_direct_GCJ=yes | |
17042 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17043 | hardcode_libdir_separator_GCJ=: | |
17044 | hardcode_shlibpath_var_GCJ=no | |
17045 | ;; | |
17046 | ||
17047 | openbsd*) | |
17048 | hardcode_direct_GCJ=yes | |
17049 | hardcode_shlibpath_var_GCJ=no | |
17050 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17051 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17052 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17053 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17054 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17055 | else | |
17056 | case $host_os in | |
17057 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17058 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17059 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17060 | ;; | |
17061 | *) | |
17062 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17063 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17064 | ;; | |
17065 | esac | |
17066 | fi | |
17067 | ;; | |
17068 | ||
17069 | os2*) | |
17070 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17071 | hardcode_minus_L_GCJ=yes | |
17072 | allow_undefined_flag_GCJ=unsupported | |
17073 | archive_cmds_GCJ='$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' | |
17074 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17075 | ;; | |
17076 | ||
17077 | osf3*) | |
17078 | if test "$GCC" = yes; then | |
17079 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17080 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17081 | else | |
17082 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17083 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17084 | fi | |
17085 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17086 | hardcode_libdir_separator_GCJ=: | |
17087 | ;; | |
17088 | ||
17089 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17090 | if test "$GCC" = yes; then | |
17091 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17092 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17093 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17094 | else | |
17095 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17096 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17097 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
17098 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
17099 | ||
17100 | # Both c and cxx compiler support -rpath directly | |
17101 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17102 | fi | |
17103 | hardcode_libdir_separator_GCJ=: | |
17104 | ;; | |
17105 | ||
17106 | solaris*) | |
17107 | no_undefined_flag_GCJ=' -z text' | |
17108 | if test "$GCC" = yes; then | |
17109 | wlarc='${wl}' | |
17110 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17111 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17112 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17113 | else | |
17114 | wlarc='' | |
17115 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17116 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17117 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17118 | fi | |
17119 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17120 | hardcode_shlibpath_var_GCJ=no | |
17121 | case $host_os in | |
17122 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17123 | *) | |
17124 | # The compiler driver will combine linker options so we | |
17125 | # cannot just pass the convience library names through | |
17126 | # without $wl, iff we do not link with $LD. | |
17127 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17128 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17129 | case $wlarc in | |
17130 | '') | |
17131 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17132 | *) | |
17133 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17134 | esac ;; | |
17135 | esac | |
17136 | link_all_deplibs_GCJ=yes | |
17137 | ;; | |
17138 | ||
17139 | sunos4*) | |
17140 | if test "x$host_vendor" = xsequent; then | |
17141 | # Use $CC to link under sequent, because it throws in some extra .o | |
17142 | # files that make .init and .fini sections work. | |
17143 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17144 | else | |
17145 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17146 | fi | |
17147 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17148 | hardcode_direct_GCJ=yes | |
17149 | hardcode_minus_L_GCJ=yes | |
17150 | hardcode_shlibpath_var_GCJ=no | |
17151 | ;; | |
17152 | ||
17153 | sysv4) | |
17154 | case $host_vendor in | |
17155 | sni) | |
17156 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17157 | hardcode_direct_GCJ=yes # is this really true??? | |
17158 | ;; | |
17159 | siemens) | |
17160 | ## LD is ld it makes a PLAMLIB | |
17161 | ## CC just makes a GrossModule. | |
17162 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17163 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17164 | hardcode_direct_GCJ=no | |
17165 | ;; | |
17166 | motorola) | |
17167 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17168 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17169 | ;; | |
17170 | esac | |
17171 | runpath_var='LD_RUN_PATH' | |
17172 | hardcode_shlibpath_var_GCJ=no | |
17173 | ;; | |
17174 | ||
17175 | sysv4.3*) | |
17176 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17177 | hardcode_shlibpath_var_GCJ=no | |
17178 | export_dynamic_flag_spec_GCJ='-Bexport' | |
17179 | ;; | |
17180 | ||
17181 | sysv4*MP*) | |
17182 | if test -d /usr/nec; then | |
17183 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17184 | hardcode_shlibpath_var_GCJ=no | |
17185 | runpath_var=LD_RUN_PATH | |
17186 | hardcode_runpath_var=yes | |
17187 | ld_shlibs_GCJ=yes | |
17188 | fi | |
17189 | ;; | |
17190 | ||
17191 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
17192 | no_undefined_flag_GCJ='${wl}-z,text' | |
17193 | archive_cmds_need_lc_GCJ=no | |
17194 | hardcode_shlibpath_var_GCJ=no | |
17195 | runpath_var='LD_RUN_PATH' | |
17196 | ||
17197 | if test "$GCC" = yes; then | |
17198 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17199 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17200 | else | |
17201 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17202 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17203 | fi | |
17204 | ;; | |
17205 | ||
17206 | sysv5* | sco3.2v5* | sco5v6*) | |
17207 | # Note: We can NOT use -z defs as we might desire, because we do not | |
17208 | # link with -lc, and that would cause any symbols used from libc to | |
17209 | # always be unresolved, which means just about no library would | |
17210 | # ever link correctly. If we're not using GNU ld we use -z text | |
17211 | # though, which does catch some bad symbols but isn't as heavy-handed | |
17212 | # as -z defs. | |
17213 | no_undefined_flag_GCJ='${wl}-z,text' | |
17214 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
17215 | archive_cmds_need_lc_GCJ=no | |
17216 | hardcode_shlibpath_var_GCJ=no | |
17217 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
17218 | hardcode_libdir_separator_GCJ=':' | |
17219 | link_all_deplibs_GCJ=yes | |
17220 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
17221 | runpath_var='LD_RUN_PATH' | |
17222 | ||
17223 | if test "$GCC" = yes; then | |
17224 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17225 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17226 | else | |
17227 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17228 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17229 | fi | |
17230 | ;; | |
17231 | ||
17232 | uts4*) | |
17233 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17234 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17235 | hardcode_shlibpath_var_GCJ=no | |
17236 | ;; | |
17237 | ||
17238 | *) | |
17239 | ld_shlibs_GCJ=no | |
17240 | ;; | |
17241 | esac | |
17242 | fi | |
17243 | ||
17244 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17245 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
17246 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17247 | ||
17248 | # | |
17249 | # Do we need to explicitly link libc? | |
17250 | # | |
17251 | case "x$archive_cmds_need_lc_GCJ" in | |
17252 | x|xyes) | |
17253 | # Assume -lc should be added | |
17254 | archive_cmds_need_lc_GCJ=yes | |
17255 | ||
17256 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17257 | case $archive_cmds_GCJ in | |
17258 | *'~'*) | |
17259 | # FIXME: we may have to deal with multi-command sequences. | |
17260 | ;; | |
17261 | '$CC '*) | |
17262 | # Test whether the compiler implicitly links with -lc since on some | |
17263 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17264 | # to ld, don't add -lc before -lgcc. | |
17265 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17266 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
17267 | $rm conftest* | |
17268 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17269 | ||
17270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17271 | (eval $ac_compile) 2>&5 | |
17272 | ac_status=$? | |
17273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17274 | (exit $ac_status); } 2>conftest.err; then | |
17275 | soname=conftest | |
17276 | lib=conftest | |
17277 | libobjs=conftest.$ac_objext | |
17278 | deplibs= | |
17279 | wl=$lt_prog_compiler_wl_GCJ | |
17280 | pic_flag=$lt_prog_compiler_pic_GCJ | |
17281 | compiler_flags=-v | |
17282 | linker_flags=-v | |
17283 | verstring= | |
17284 | output_objdir=. | |
17285 | libname=conftest | |
17286 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17287 | allow_undefined_flag_GCJ= | |
17288 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17289 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17290 | ac_status=$? | |
17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17292 | (exit $ac_status); } | |
17293 | then | |
17294 | archive_cmds_need_lc_GCJ=no | |
17295 | else | |
17296 | archive_cmds_need_lc_GCJ=yes | |
17297 | fi | |
17298 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17299 | else | |
17300 | cat conftest.err 1>&5 | |
17301 | fi | |
17302 | $rm conftest* | |
17303 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17304 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
17305 | ;; | |
17306 | esac | |
17307 | fi | |
17308 | ;; | |
17309 | esac | |
17310 | ||
17311 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17312 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
17313 | library_names_spec= | |
17314 | libname_spec='lib$name' | |
17315 | soname_spec= | |
17316 | shrext_cmds=".so" | |
17317 | postinstall_cmds= | |
17318 | postuninstall_cmds= | |
17319 | finish_cmds= | |
17320 | finish_eval= | |
17321 | shlibpath_var= | |
17322 | shlibpath_overrides_runpath=unknown | |
17323 | version_type=none | |
17324 | dynamic_linker="$host_os ld.so" | |
17325 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17326 | if test "$GCC" = yes; then | |
17327 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17328 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17329 | # if the path contains ";" then we assume it to be the separator | |
17330 | # otherwise default to the standard path separator (i.e. ":") - it is | |
17331 | # assumed that no part of a normal pathname contains ";" but that should | |
17332 | # okay in the real world where ";" in dirpaths is itself problematic. | |
17333 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17334 | else | |
17335 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17336 | fi | |
17337 | else | |
17338 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17339 | fi | |
17340 | need_lib_prefix=unknown | |
17341 | hardcode_into_libs=no | |
17342 | ||
17343 | # when you set need_version to no, make sure it does not cause -set_version | |
17344 | # flags to be left without arguments | |
17345 | need_version=unknown | |
17346 | ||
17347 | case $host_os in | |
17348 | aix3*) | |
17349 | version_type=linux | |
17350 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17351 | shlibpath_var=LIBPATH | |
17352 | ||
17353 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17354 | soname_spec='${libname}${release}${shared_ext}$major' | |
17355 | ;; | |
17356 | ||
17357 | aix4* | aix5*) | |
17358 | version_type=linux | |
17359 | need_lib_prefix=no | |
17360 | need_version=no | |
17361 | hardcode_into_libs=yes | |
17362 | if test "$host_cpu" = ia64; then | |
17363 | # AIX 5 supports IA64 | |
17364 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17365 | shlibpath_var=LD_LIBRARY_PATH | |
17366 | else | |
17367 | # With GCC up to 2.95.x, collect2 would create an import file | |
17368 | # for dependence libraries. The import file would start with | |
17369 | # the line `#! .'. This would cause the generated library to | |
17370 | # depend on `.', always an invalid library. This was fixed in | |
17371 | # development snapshots of GCC prior to 3.0. | |
17372 | case $host_os in | |
17373 | aix4 | aix4.[01] | aix4.[01].*) | |
17374 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17375 | echo ' yes ' | |
17376 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17377 | : | |
17378 | else | |
17379 | can_build_shared=no | |
17380 | fi | |
17381 | ;; | |
17382 | esac | |
17383 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17384 | # soname into executable. Probably we can add versioning support to | |
17385 | # collect2, so additional links can be useful in future. | |
17386 | if test "$aix_use_runtimelinking" = yes; then | |
17387 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17388 | # instead of lib<name>.a to let people know that these are not | |
17389 | # typical AIX shared libraries. | |
17390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17391 | else | |
17392 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17393 | # and later when we are not doing run time linking. | |
17394 | library_names_spec='${libname}${release}.a $libname.a' | |
17395 | soname_spec='${libname}${release}${shared_ext}$major' | |
17396 | fi | |
17397 | shlibpath_var=LIBPATH | |
17398 | fi | |
17399 | ;; | |
17400 | ||
17401 | amigaos*) | |
17402 | library_names_spec='$libname.ixlibrary $libname.a' | |
17403 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17404 | 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' | |
17405 | ;; | |
17406 | ||
17407 | beos*) | |
17408 | library_names_spec='${libname}${shared_ext}' | |
17409 | dynamic_linker="$host_os ld.so" | |
17410 | shlibpath_var=LIBRARY_PATH | |
17411 | ;; | |
17412 | ||
17413 | bsdi[45]*) | |
17414 | version_type=linux | |
17415 | need_version=no | |
17416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17417 | soname_spec='${libname}${release}${shared_ext}$major' | |
17418 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17419 | shlibpath_var=LD_LIBRARY_PATH | |
17420 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17421 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17422 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17423 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17424 | # libtool to hard-code these into programs | |
17425 | ;; | |
17426 | ||
17427 | cygwin* | mingw* | pw32*) | |
17428 | version_type=windows | |
17429 | shrext_cmds=".dll" | |
17430 | need_version=no | |
17431 | need_lib_prefix=no | |
17432 | ||
17433 | case $GCC,$host_os in | |
17434 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
17435 | library_names_spec='$libname.dll.a' | |
17436 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17437 | postinstall_cmds='base_file=`basename \${file}`~ | |
17438 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17439 | dldir=$destdir/`dirname \$dlpath`~ | |
17440 | test -d \$dldir || mkdir -p \$dldir~ | |
17441 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17442 | chmod a+x \$dldir/$dlname' | |
17443 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17444 | dlpath=$dir/\$dldll~ | |
17445 | $rm \$dlpath' | |
17446 | shlibpath_overrides_runpath=yes | |
17447 | ||
17448 | case $host_os in | |
17449 | cygwin*) | |
17450 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17451 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17452 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17453 | ;; | |
17454 | mingw*) | |
17455 | # MinGW DLLs use traditional 'lib' prefix | |
17456 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17457 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17458 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17459 | # It is most probably a Windows format PATH printed by | |
17460 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17461 | # path with ; separators, and with drive letters. We can handle the | |
17462 | # drive letters (cygwin fileutils understands them), so leave them, | |
17463 | # especially as we might pass files found there to a mingw objdump, | |
17464 | # which wouldn't understand a cygwinified path. Ahh. | |
17465 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17466 | else | |
17467 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17468 | fi | |
17469 | ;; | |
17470 | pw32*) | |
17471 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17472 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17473 | ;; | |
17474 | esac | |
17475 | ;; | |
17476 | ||
17477 | *) | |
17478 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17479 | ;; | |
17480 | esac | |
17481 | dynamic_linker='Win32 ld.exe' | |
17482 | # FIXME: first we should search . and the directory the executable is in | |
17483 | shlibpath_var=PATH | |
17484 | ;; | |
17485 | ||
17486 | darwin* | rhapsody*) | |
17487 | dynamic_linker="$host_os dyld" | |
17488 | version_type=darwin | |
17489 | need_lib_prefix=no | |
17490 | need_version=no | |
17491 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17492 | soname_spec='${libname}${release}${major}$shared_ext' | |
17493 | shlibpath_overrides_runpath=yes | |
17494 | shlibpath_var=DYLD_LIBRARY_PATH | |
17495 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17496 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17497 | if test "$GCC" = yes; then | |
17498 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
17499 | else | |
17500 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17501 | fi | |
17502 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17503 | ;; | |
17504 | ||
17505 | dgux*) | |
17506 | version_type=linux | |
17507 | need_lib_prefix=no | |
17508 | need_version=no | |
17509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17510 | soname_spec='${libname}${release}${shared_ext}$major' | |
17511 | shlibpath_var=LD_LIBRARY_PATH | |
17512 | ;; | |
17513 | ||
17514 | freebsd1*) | |
17515 | dynamic_linker=no | |
17516 | ;; | |
17517 | ||
17518 | kfreebsd*-gnu) | |
17519 | version_type=linux | |
17520 | need_lib_prefix=no | |
17521 | need_version=no | |
17522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17523 | soname_spec='${libname}${release}${shared_ext}$major' | |
17524 | shlibpath_var=LD_LIBRARY_PATH | |
17525 | shlibpath_overrides_runpath=no | |
17526 | hardcode_into_libs=yes | |
17527 | dynamic_linker='GNU ld.so' | |
17528 | ;; | |
17529 | ||
17530 | freebsd* | dragonfly*) | |
17531 | # DragonFly does not have aout. When/if they implement a new | |
17532 | # versioning mechanism, adjust this. | |
17533 | if test -x /usr/bin/objformat; then | |
17534 | objformat=`/usr/bin/objformat` | |
17535 | else | |
17536 | case $host_os in | |
17537 | freebsd[123]*) objformat=aout ;; | |
17538 | *) objformat=elf ;; | |
17539 | esac | |
17540 | fi | |
17541 | version_type=freebsd-$objformat | |
17542 | case $version_type in | |
17543 | freebsd-elf*) | |
17544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17545 | need_version=no | |
17546 | need_lib_prefix=no | |
17547 | ;; | |
17548 | freebsd-*) | |
17549 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17550 | need_version=yes | |
17551 | ;; | |
17552 | esac | |
17553 | shlibpath_var=LD_LIBRARY_PATH | |
17554 | case $host_os in | |
17555 | freebsd2*) | |
17556 | shlibpath_overrides_runpath=yes | |
17557 | ;; | |
17558 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17559 | shlibpath_overrides_runpath=yes | |
17560 | hardcode_into_libs=yes | |
17561 | ;; | |
17562 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17563 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17564 | shlibpath_overrides_runpath=no | |
17565 | hardcode_into_libs=yes | |
17566 | ;; | |
17567 | freebsd*) # from 4.6 on | |
17568 | shlibpath_overrides_runpath=yes | |
17569 | hardcode_into_libs=yes | |
17570 | ;; | |
17571 | esac | |
17572 | ;; | |
17573 | ||
17574 | gnu*) | |
17575 | version_type=linux | |
17576 | need_lib_prefix=no | |
17577 | need_version=no | |
17578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17579 | soname_spec='${libname}${release}${shared_ext}$major' | |
17580 | shlibpath_var=LD_LIBRARY_PATH | |
17581 | hardcode_into_libs=yes | |
17582 | ;; | |
17583 | ||
17584 | hpux9* | hpux10* | hpux11*) | |
17585 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17586 | # link against other versions. | |
17587 | version_type=sunos | |
17588 | need_lib_prefix=no | |
17589 | need_version=no | |
17590 | case $host_cpu in | |
17591 | ia64*) | |
17592 | shrext_cmds='.so' | |
17593 | hardcode_into_libs=yes | |
17594 | dynamic_linker="$host_os dld.so" | |
17595 | shlibpath_var=LD_LIBRARY_PATH | |
17596 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17598 | soname_spec='${libname}${release}${shared_ext}$major' | |
17599 | if test "X$HPUX_IA64_MODE" = X32; then | |
17600 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17601 | else | |
17602 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17603 | fi | |
17604 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17605 | ;; | |
17606 | hppa*64*) | |
17607 | shrext_cmds='.sl' | |
17608 | hardcode_into_libs=yes | |
17609 | dynamic_linker="$host_os dld.sl" | |
17610 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17611 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17613 | soname_spec='${libname}${release}${shared_ext}$major' | |
17614 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17615 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17616 | ;; | |
17617 | *) | |
17618 | shrext_cmds='.sl' | |
17619 | dynamic_linker="$host_os dld.sl" | |
17620 | shlibpath_var=SHLIB_PATH | |
17621 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17623 | soname_spec='${libname}${release}${shared_ext}$major' | |
17624 | ;; | |
17625 | esac | |
17626 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17627 | postinstall_cmds='chmod 555 $lib' | |
17628 | ;; | |
17629 | ||
17630 | interix3*) | |
17631 | version_type=linux | |
17632 | need_lib_prefix=no | |
17633 | need_version=no | |
17634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17635 | soname_spec='${libname}${release}${shared_ext}$major' | |
17636 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17637 | shlibpath_var=LD_LIBRARY_PATH | |
17638 | shlibpath_overrides_runpath=no | |
17639 | hardcode_into_libs=yes | |
17640 | ;; | |
17641 | ||
17642 | irix5* | irix6* | nonstopux*) | |
17643 | case $host_os in | |
17644 | nonstopux*) version_type=nonstopux ;; | |
17645 | *) | |
17646 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17647 | version_type=linux | |
17648 | else | |
17649 | version_type=irix | |
17650 | fi ;; | |
17651 | esac | |
17652 | need_lib_prefix=no | |
17653 | need_version=no | |
17654 | soname_spec='${libname}${release}${shared_ext}$major' | |
17655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17656 | case $host_os in | |
17657 | irix5* | nonstopux*) | |
17658 | libsuff= shlibsuff= | |
17659 | ;; | |
17660 | *) | |
17661 | case $LD in # libtool.m4 will add one of these switches to LD | |
17662 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17663 | libsuff= shlibsuff= libmagic=32-bit;; | |
17664 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17665 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17666 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17667 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17668 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17669 | esac | |
17670 | ;; | |
17671 | esac | |
17672 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17673 | shlibpath_overrides_runpath=no | |
17674 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17675 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17676 | hardcode_into_libs=yes | |
17677 | ;; | |
17678 | ||
17679 | # No shared lib support for Linux oldld, aout, or coff. | |
17680 | linux*oldld* | linux*aout* | linux*coff*) | |
17681 | dynamic_linker=no | |
17682 | ;; | |
17683 | ||
17684 | # This must be Linux ELF. | |
17685 | linux*) | |
17686 | version_type=linux | |
17687 | need_lib_prefix=no | |
17688 | need_version=no | |
17689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17690 | soname_spec='${libname}${release}${shared_ext}$major' | |
17691 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17692 | shlibpath_var=LD_LIBRARY_PATH | |
17693 | shlibpath_overrides_runpath=no | |
17694 | # This implies no fast_install, which is unacceptable. | |
17695 | # Some rework will be needed to allow for fast_install | |
17696 | # before this can be enabled. | |
17697 | hardcode_into_libs=yes | |
17698 | ||
17699 | # find out which ABI we are using | |
17700 | libsuff= | |
17701 | case "$host_cpu" in | |
17702 | x86_64*|s390x*|powerpc64*) | |
86933a6e | 17703 | echo '#line 17703 "configure"' > conftest.$ac_ext |
bf9f3bac | 17704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17705 | (eval $ac_compile) 2>&5 | |
17706 | ac_status=$? | |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17708 | (exit $ac_status); }; then | |
17709 | case `/usr/bin/file conftest.$ac_objext` in | |
17710 | *64-bit*) | |
17711 | libsuff=64 | |
17712 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
17713 | ;; | |
17714 | esac | |
17715 | fi | |
17716 | rm -rf conftest* | |
17717 | ;; | |
17718 | esac | |
17719 | ||
17720 | # Append ld.so.conf contents to the search path | |
17721 | if test -f /etc/ld.so.conf; then | |
17722 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17723 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | |
17724 | fi | |
17725 | ||
17726 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17727 | # powerpc, because MkLinux only supported shared libraries with the | |
17728 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17729 | # most powerpc-linux boxes support dynamic linking these days and | |
17730 | # people can always --disable-shared, the test was removed, and we | |
17731 | # assume the GNU/Linux dynamic linker is in use. | |
17732 | dynamic_linker='GNU/Linux ld.so' | |
17733 | ;; | |
17734 | ||
17735 | knetbsd*-gnu) | |
17736 | version_type=linux | |
17737 | need_lib_prefix=no | |
17738 | need_version=no | |
17739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17740 | soname_spec='${libname}${release}${shared_ext}$major' | |
17741 | shlibpath_var=LD_LIBRARY_PATH | |
17742 | shlibpath_overrides_runpath=no | |
17743 | hardcode_into_libs=yes | |
17744 | dynamic_linker='GNU ld.so' | |
17745 | ;; | |
17746 | ||
17747 | netbsd*) | |
17748 | version_type=sunos | |
17749 | need_lib_prefix=no | |
17750 | need_version=no | |
17751 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17753 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17754 | dynamic_linker='NetBSD (a.out) ld.so' | |
17755 | else | |
17756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17757 | soname_spec='${libname}${release}${shared_ext}$major' | |
17758 | dynamic_linker='NetBSD ld.elf_so' | |
17759 | fi | |
17760 | shlibpath_var=LD_LIBRARY_PATH | |
17761 | shlibpath_overrides_runpath=yes | |
17762 | hardcode_into_libs=yes | |
17763 | ;; | |
17764 | ||
17765 | newsos6) | |
17766 | version_type=linux | |
17767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17768 | shlibpath_var=LD_LIBRARY_PATH | |
17769 | shlibpath_overrides_runpath=yes | |
17770 | ;; | |
17771 | ||
17772 | nto-qnx*) | |
17773 | version_type=linux | |
17774 | need_lib_prefix=no | |
17775 | need_version=no | |
17776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17777 | soname_spec='${libname}${release}${shared_ext}$major' | |
17778 | shlibpath_var=LD_LIBRARY_PATH | |
17779 | shlibpath_overrides_runpath=yes | |
17780 | ;; | |
17781 | ||
17782 | openbsd*) | |
17783 | version_type=sunos | |
17784 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17785 | need_lib_prefix=no | |
17786 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17787 | case $host_os in | |
17788 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17789 | *) need_version=no ;; | |
17790 | esac | |
17791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17792 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17793 | shlibpath_var=LD_LIBRARY_PATH | |
17794 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17795 | case $host_os in | |
17796 | openbsd2.[89] | openbsd2.[89].*) | |
17797 | shlibpath_overrides_runpath=no | |
17798 | ;; | |
17799 | *) | |
17800 | shlibpath_overrides_runpath=yes | |
17801 | ;; | |
17802 | esac | |
17803 | else | |
17804 | shlibpath_overrides_runpath=yes | |
17805 | fi | |
17806 | ;; | |
17807 | ||
17808 | os2*) | |
17809 | libname_spec='$name' | |
17810 | shrext_cmds=".dll" | |
17811 | need_lib_prefix=no | |
17812 | library_names_spec='$libname${shared_ext} $libname.a' | |
17813 | dynamic_linker='OS/2 ld.exe' | |
17814 | shlibpath_var=LIBPATH | |
17815 | ;; | |
17816 | ||
17817 | osf3* | osf4* | osf5*) | |
17818 | version_type=osf | |
17819 | need_lib_prefix=no | |
17820 | need_version=no | |
17821 | soname_spec='${libname}${release}${shared_ext}$major' | |
17822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17823 | shlibpath_var=LD_LIBRARY_PATH | |
17824 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17825 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17826 | ;; | |
17827 | ||
17828 | solaris*) | |
17829 | version_type=linux | |
17830 | need_lib_prefix=no | |
17831 | need_version=no | |
17832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17833 | soname_spec='${libname}${release}${shared_ext}$major' | |
17834 | shlibpath_var=LD_LIBRARY_PATH | |
17835 | shlibpath_overrides_runpath=yes | |
17836 | hardcode_into_libs=yes | |
17837 | # ldd complains unless libraries are executable | |
17838 | postinstall_cmds='chmod +x $lib' | |
17839 | ;; | |
17840 | ||
17841 | sunos4*) | |
17842 | version_type=sunos | |
17843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17844 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17845 | shlibpath_var=LD_LIBRARY_PATH | |
17846 | shlibpath_overrides_runpath=yes | |
17847 | if test "$with_gnu_ld" = yes; then | |
17848 | need_lib_prefix=no | |
17849 | fi | |
17850 | need_version=yes | |
17851 | ;; | |
17852 | ||
17853 | sysv4 | sysv4.3*) | |
17854 | version_type=linux | |
17855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17856 | soname_spec='${libname}${release}${shared_ext}$major' | |
17857 | shlibpath_var=LD_LIBRARY_PATH | |
17858 | case $host_vendor in | |
17859 | sni) | |
17860 | shlibpath_overrides_runpath=no | |
17861 | need_lib_prefix=no | |
17862 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17863 | runpath_var=LD_RUN_PATH | |
17864 | ;; | |
17865 | siemens) | |
17866 | need_lib_prefix=no | |
17867 | ;; | |
17868 | motorola) | |
17869 | need_lib_prefix=no | |
17870 | need_version=no | |
17871 | shlibpath_overrides_runpath=no | |
17872 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17873 | ;; | |
17874 | esac | |
17875 | ;; | |
17876 | ||
17877 | sysv4*MP*) | |
17878 | if test -d /usr/nec ;then | |
17879 | version_type=linux | |
17880 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17881 | soname_spec='$libname${shared_ext}.$major' | |
17882 | shlibpath_var=LD_LIBRARY_PATH | |
17883 | fi | |
17884 | ;; | |
17885 | ||
17886 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17887 | version_type=freebsd-elf | |
17888 | need_lib_prefix=no | |
17889 | need_version=no | |
17890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17891 | soname_spec='${libname}${release}${shared_ext}$major' | |
17892 | shlibpath_var=LD_LIBRARY_PATH | |
17893 | hardcode_into_libs=yes | |
17894 | if test "$with_gnu_ld" = yes; then | |
17895 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17896 | shlibpath_overrides_runpath=no | |
17897 | else | |
17898 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17899 | shlibpath_overrides_runpath=yes | |
17900 | case $host_os in | |
17901 | sco3.2v5*) | |
17902 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17903 | ;; | |
17904 | esac | |
17905 | fi | |
17906 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17907 | ;; | |
17908 | ||
17909 | uts4*) | |
17910 | version_type=linux | |
17911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17912 | soname_spec='${libname}${release}${shared_ext}$major' | |
17913 | shlibpath_var=LD_LIBRARY_PATH | |
17914 | ;; | |
17915 | ||
17916 | *) | |
17917 | dynamic_linker=no | |
17918 | ;; | |
17919 | esac | |
17920 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17921 | echo "${ECHO_T}$dynamic_linker" >&6 | |
17922 | test "$dynamic_linker" = no && can_build_shared=no | |
17923 | ||
17924 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
17925 | if test "$GCC" = yes; then | |
17926 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17927 | fi | |
17928 | ||
17929 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17930 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17931 | hardcode_action_GCJ= | |
17932 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17933 | test -n "$runpath_var_GCJ" || \ | |
17934 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
17935 | ||
17936 | # We can hardcode non-existant directories. | |
17937 | if test "$hardcode_direct_GCJ" != no && | |
17938 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17939 | # have to relink, otherwise we might link with an installed library | |
17940 | # when we should be linking with a yet-to-be-installed one | |
17941 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17942 | test "$hardcode_minus_L_GCJ" != no; then | |
17943 | # Linking always hardcodes the temporary library directory. | |
17944 | hardcode_action_GCJ=relink | |
17945 | else | |
17946 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17947 | hardcode_action_GCJ=immediate | |
17948 | fi | |
17949 | else | |
17950 | # We cannot hardcode anything, or else we can only hardcode existing | |
17951 | # directories. | |
17952 | hardcode_action_GCJ=unsupported | |
17953 | fi | |
17954 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17955 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17956 | ||
17957 | if test "$hardcode_action_GCJ" = relink; then | |
17958 | # Fast installation is not supported | |
17959 | enable_fast_install=no | |
17960 | elif test "$shlibpath_overrides_runpath" = yes || | |
17961 | test "$enable_shared" = no; then | |
17962 | # Fast installation is not necessary | |
17963 | enable_fast_install=needless | |
17964 | fi | |
17965 | ||
17966 | ||
17967 | # The else clause should only fire when bootstrapping the | |
17968 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17969 | # with your package, and you will get complaints that there are | |
17970 | # no rules to generate ltmain.sh. | |
17971 | if test -f "$ltmain"; then | |
17972 | # See if we are running on zsh, and set the options which allow our commands through | |
17973 | # without removal of \ escapes. | |
17974 | if test -n "${ZSH_VERSION+set}" ; then | |
17975 | setopt NO_GLOB_SUBST | |
17976 | fi | |
17977 | # Now quote all the things that may contain metacharacters while being | |
17978 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17979 | # variables and quote the copies for generation of the libtool script. | |
17980 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
17981 | SED SHELL STRIP \ | |
17982 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17983 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17984 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17985 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17986 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17987 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17988 | old_postinstall_cmds old_postuninstall_cmds \ | |
17989 | compiler_GCJ \ | |
17990 | CC_GCJ \ | |
17991 | LD_GCJ \ | |
17992 | lt_prog_compiler_wl_GCJ \ | |
17993 | lt_prog_compiler_pic_GCJ \ | |
17994 | lt_prog_compiler_static_GCJ \ | |
17995 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
17996 | export_dynamic_flag_spec_GCJ \ | |
17997 | thread_safe_flag_spec_GCJ \ | |
17998 | whole_archive_flag_spec_GCJ \ | |
17999 | enable_shared_with_static_runtimes_GCJ \ | |
18000 | old_archive_cmds_GCJ \ | |
18001 | old_archive_from_new_cmds_GCJ \ | |
18002 | predep_objects_GCJ \ | |
18003 | postdep_objects_GCJ \ | |
18004 | predeps_GCJ \ | |
18005 | postdeps_GCJ \ | |
18006 | compiler_lib_search_path_GCJ \ | |
18007 | archive_cmds_GCJ \ | |
18008 | archive_expsym_cmds_GCJ \ | |
18009 | postinstall_cmds_GCJ \ | |
18010 | postuninstall_cmds_GCJ \ | |
18011 | old_archive_from_expsyms_cmds_GCJ \ | |
18012 | allow_undefined_flag_GCJ \ | |
18013 | no_undefined_flag_GCJ \ | |
18014 | export_symbols_cmds_GCJ \ | |
18015 | hardcode_libdir_flag_spec_GCJ \ | |
18016 | hardcode_libdir_flag_spec_ld_GCJ \ | |
18017 | hardcode_libdir_separator_GCJ \ | |
18018 | hardcode_automatic_GCJ \ | |
18019 | module_cmds_GCJ \ | |
18020 | module_expsym_cmds_GCJ \ | |
18021 | lt_cv_prog_compiler_c_o_GCJ \ | |
18022 | exclude_expsyms_GCJ \ | |
18023 | include_expsyms_GCJ; do | |
18024 | ||
18025 | case $var in | |
18026 | old_archive_cmds_GCJ | \ | |
18027 | old_archive_from_new_cmds_GCJ | \ | |
18028 | archive_cmds_GCJ | \ | |
18029 | archive_expsym_cmds_GCJ | \ | |
18030 | module_cmds_GCJ | \ | |
18031 | module_expsym_cmds_GCJ | \ | |
18032 | old_archive_from_expsyms_cmds_GCJ | \ | |
18033 | export_symbols_cmds_GCJ | \ | |
18034 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18035 | postinstall_cmds | postuninstall_cmds | \ | |
18036 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18037 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18038 | # Double-quote double-evaled strings. | |
18039 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18040 | ;; | |
18041 | *) | |
18042 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18043 | ;; | |
18044 | esac | |
18045 | done | |
18046 | ||
18047 | case $lt_echo in | |
18048 | *'\$0 --fallback-echo"') | |
18049 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18050 | ;; | |
18051 | esac | |
18052 | ||
18053 | cfgfile="$ofile" | |
18054 | ||
18055 | cat <<__EOF__ >> "$cfgfile" | |
18056 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18057 | ||
18058 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18059 | ||
18060 | # Shell to use when invoking shell scripts. | |
18061 | SHELL=$lt_SHELL | |
18062 | ||
18063 | # Whether or not to build shared libraries. | |
18064 | build_libtool_libs=$enable_shared | |
18065 | ||
18066 | # Whether or not to build static libraries. | |
18067 | build_old_libs=$enable_static | |
18068 | ||
18069 | # Whether or not to add -lc for building shared libraries. | |
18070 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18071 | ||
18072 | # Whether or not to disallow shared libs when runtime libs are static | |
18073 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18074 | ||
18075 | # Whether or not to optimize for fast installation. | |
18076 | fast_install=$enable_fast_install | |
18077 | ||
18078 | # The host system. | |
18079 | host_alias=$host_alias | |
18080 | host=$host | |
18081 | host_os=$host_os | |
18082 | ||
18083 | # The build system. | |
18084 | build_alias=$build_alias | |
18085 | build=$build | |
18086 | build_os=$build_os | |
18087 | ||
18088 | # An echo program that does not interpret backslashes. | |
18089 | echo=$lt_echo | |
18090 | ||
18091 | # The archiver. | |
18092 | AR=$lt_AR | |
18093 | AR_FLAGS=$lt_AR_FLAGS | |
18094 | ||
18095 | # A C compiler. | |
18096 | LTCC=$lt_LTCC | |
18097 | ||
18098 | # LTCC compiler flags. | |
18099 | LTCFLAGS=$lt_LTCFLAGS | |
18100 | ||
18101 | # A language-specific compiler. | |
18102 | CC=$lt_compiler_GCJ | |
18103 | ||
18104 | # Is the compiler the GNU C compiler? | |
18105 | with_gcc=$GCC_GCJ | |
18106 | ||
18107 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
18108 | gcc_ver=\`gcc -dumpversion\` | |
18109 | ||
18110 | # An ERE matcher. | |
18111 | EGREP=$lt_EGREP | |
18112 | ||
18113 | # The linker used to build libraries. | |
18114 | LD=$lt_LD_GCJ | |
18115 | ||
18116 | # Whether we need hard or soft links. | |
18117 | LN_S=$lt_LN_S | |
18118 | ||
18119 | # A BSD-compatible nm program. | |
18120 | NM=$lt_NM | |
18121 | ||
18122 | # A symbol stripping program | |
18123 | STRIP=$lt_STRIP | |
18124 | ||
18125 | # Used to examine libraries when file_magic_cmd begins "file" | |
18126 | MAGIC_CMD=$MAGIC_CMD | |
18127 | ||
18128 | # Used on cygwin: DLL creation program. | |
18129 | DLLTOOL="$DLLTOOL" | |
18130 | ||
18131 | # Used on cygwin: object dumper. | |
18132 | OBJDUMP="$OBJDUMP" | |
18133 | ||
18134 | # Used on cygwin: assembler. | |
18135 | AS="$AS" | |
18136 | ||
18137 | # The name of the directory that contains temporary libtool files. | |
18138 | objdir=$objdir | |
18139 | ||
18140 | # How to create reloadable object files. | |
18141 | reload_flag=$lt_reload_flag | |
18142 | reload_cmds=$lt_reload_cmds | |
18143 | ||
18144 | # How to pass a linker flag through the compiler. | |
18145 | wl=$lt_lt_prog_compiler_wl_GCJ | |
18146 | ||
18147 | # Object file suffix (normally "o"). | |
18148 | objext="$ac_objext" | |
18149 | ||
18150 | # Old archive suffix (normally "a"). | |
18151 | libext="$libext" | |
18152 | ||
18153 | # Shared library suffix (normally ".so"). | |
18154 | shrext_cmds='$shrext_cmds' | |
18155 | ||
18156 | # Executable file suffix (normally ""). | |
18157 | exeext="$exeext" | |
18158 | ||
18159 | # Additional compiler flags for building library objects. | |
18160 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18161 | pic_mode=$pic_mode | |
18162 | ||
18163 | # What is the maximum length of a command? | |
18164 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18165 | ||
18166 | # Does compiler simultaneously support -c and -o options? | |
18167 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18168 | ||
18169 | # Must we lock files when doing compilation? | |
18170 | need_locks=$lt_need_locks | |
18171 | ||
18172 | # Do we need the lib prefix for modules? | |
18173 | need_lib_prefix=$need_lib_prefix | |
18174 | ||
18175 | # Do we need a version for libraries? | |
18176 | need_version=$need_version | |
18177 | ||
18178 | # Whether dlopen is supported. | |
18179 | dlopen_support=$enable_dlopen | |
18180 | ||
18181 | # Whether dlopen of programs is supported. | |
18182 | dlopen_self=$enable_dlopen_self | |
18183 | ||
18184 | # Whether dlopen of statically linked programs is supported. | |
18185 | dlopen_self_static=$enable_dlopen_self_static | |
18186 | ||
18187 | # Compiler flag to prevent dynamic linking. | |
18188 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18189 | ||
18190 | # Compiler flag to turn off builtin functions. | |
18191 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18192 | ||
18193 | # Compiler flag to allow reflexive dlopens. | |
18194 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18195 | ||
18196 | # Compiler flag to generate shared objects directly from archives. | |
18197 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18198 | ||
18199 | # Compiler flag to generate thread-safe objects. | |
18200 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18201 | ||
18202 | # Library versioning type. | |
18203 | version_type=$version_type | |
18204 | ||
18205 | # Format of library name prefix. | |
18206 | libname_spec=$lt_libname_spec | |
18207 | ||
18208 | # List of archive names. First name is the real one, the rest are links. | |
18209 | # The last name is the one that the linker finds with -lNAME. | |
18210 | library_names_spec=$lt_library_names_spec | |
18211 | ||
18212 | # The coded name of the library, if different from the real name. | |
18213 | soname_spec=$lt_soname_spec | |
18214 | ||
18215 | # Commands used to build and install an old-style archive. | |
18216 | RANLIB=$lt_RANLIB | |
18217 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18218 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18219 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18220 | ||
18221 | # Create an old-style archive from a shared archive. | |
18222 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18223 | ||
18224 | # Create a temporary old-style archive to link instead of a shared archive. | |
18225 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18226 | ||
18227 | # Commands used to build and install a shared archive. | |
18228 | archive_cmds=$lt_archive_cmds_GCJ | |
18229 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18230 | postinstall_cmds=$lt_postinstall_cmds | |
18231 | postuninstall_cmds=$lt_postuninstall_cmds | |
18232 | ||
18233 | # Commands used to build a loadable module (assumed same as above if empty) | |
18234 | module_cmds=$lt_module_cmds_GCJ | |
18235 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18236 | ||
18237 | # Commands to strip libraries. | |
18238 | old_striplib=$lt_old_striplib | |
18239 | striplib=$lt_striplib | |
18240 | ||
18241 | # Dependencies to place before the objects being linked to create a | |
18242 | # shared library. | |
18243 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18244 | ||
18245 | # Dependencies to place after the objects being linked to create a | |
18246 | # shared library. | |
18247 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18248 | ||
18249 | # Dependencies to place before the objects being linked to create a | |
18250 | # shared library. | |
18251 | predeps=$lt_predeps_GCJ | |
18252 | ||
18253 | # Dependencies to place after the objects being linked to create a | |
18254 | # shared library. | |
18255 | postdeps=$lt_postdeps_GCJ | |
18256 | ||
18257 | # The library search path used internally by the compiler when linking | |
18258 | # a shared library. | |
18259 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18260 | ||
18261 | # Method to check whether dependent libraries are shared objects. | |
18262 | deplibs_check_method=$lt_deplibs_check_method | |
18263 | ||
18264 | # Command to use when deplibs_check_method == file_magic. | |
18265 | file_magic_cmd=$lt_file_magic_cmd | |
18266 | ||
18267 | # Flag that allows shared libraries with undefined symbols to be built. | |
18268 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18269 | ||
18270 | # Flag that forces no undefined symbols. | |
18271 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18272 | ||
18273 | # Commands used to finish a libtool library installation in a directory. | |
18274 | finish_cmds=$lt_finish_cmds | |
18275 | ||
18276 | # Same as above, but a single script fragment to be evaled but not shown. | |
18277 | finish_eval=$lt_finish_eval | |
18278 | ||
18279 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18280 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18281 | ||
18282 | # Transform the output of nm in a proper C declaration | |
18283 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18284 | ||
18285 | # Transform the output of nm in a C name address pair | |
18286 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18287 | ||
18288 | # This is the shared library runtime path variable. | |
18289 | runpath_var=$runpath_var | |
18290 | ||
18291 | # This is the shared library path variable. | |
18292 | shlibpath_var=$shlibpath_var | |
18293 | ||
18294 | # Is shlibpath searched before the hard-coded library search path? | |
18295 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18296 | ||
18297 | # How to hardcode a shared library path into an executable. | |
18298 | hardcode_action=$hardcode_action_GCJ | |
18299 | ||
18300 | # Whether we should hardcode library paths into libraries. | |
18301 | hardcode_into_libs=$hardcode_into_libs | |
18302 | ||
18303 | # Flag to hardcode \$libdir into a binary during linking. | |
18304 | # This must work even if \$libdir does not exist. | |
18305 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18306 | ||
18307 | # If ld is used when linking, flag to hardcode \$libdir into | |
18308 | # a binary during linking. This must work even if \$libdir does | |
18309 | # not exist. | |
18310 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18311 | ||
18312 | # Whether we need a single -rpath flag with a separated argument. | |
18313 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18314 | ||
18315 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18316 | # resulting binary. | |
18317 | hardcode_direct=$hardcode_direct_GCJ | |
18318 | ||
18319 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18320 | # resulting binary. | |
18321 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
18322 | ||
18323 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18324 | # the resulting binary. | |
18325 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18326 | ||
18327 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18328 | # and all subsequent libraries and executables linked against it. | |
18329 | hardcode_automatic=$hardcode_automatic_GCJ | |
18330 | ||
18331 | # Variables whose values should be saved in libtool wrapper scripts and | |
18332 | # restored at relink time. | |
18333 | variables_saved_for_relink="$variables_saved_for_relink" | |
18334 | ||
18335 | # Whether libtool must link a program against all its dependency libraries. | |
18336 | link_all_deplibs=$link_all_deplibs_GCJ | |
18337 | ||
18338 | # Compile-time system search path for libraries | |
18339 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18340 | ||
18341 | # Run-time system search path for libraries | |
18342 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18343 | ||
18344 | # Fix the shell variable \$srcfile for the compiler. | |
18345 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18346 | ||
18347 | # Set to yes if exported symbols are required. | |
18348 | always_export_symbols=$always_export_symbols_GCJ | |
18349 | ||
18350 | # The commands to list exported symbols. | |
18351 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18352 | ||
18353 | # The commands to extract the exported symbol list from a shared archive. | |
18354 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18355 | ||
18356 | # Symbols that should not be listed in the preloaded symbols. | |
18357 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18358 | ||
18359 | # Symbols that must always be exported. | |
18360 | include_expsyms=$lt_include_expsyms_GCJ | |
18361 | ||
18362 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18363 | ||
18364 | __EOF__ | |
18365 | ||
18366 | ||
18367 | else | |
18368 | # If there is no Makefile yet, we rely on a make rule to execute | |
18369 | # `config.status --recheck' to rerun these tests and create the | |
18370 | # libtool script then. | |
18371 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18372 | if test -f "$ltmain_in"; then | |
18373 | test -f Makefile && make "$ltmain" | |
18374 | fi | |
18375 | fi | |
18376 | ||
18377 | ||
18378 | ac_ext=c | |
18379 | ac_cpp='$CPP $CPPFLAGS' | |
18380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18383 | ||
18384 | CC="$lt_save_CC" | |
18385 | ||
18386 | else | |
18387 | tagname="" | |
18388 | fi | |
18389 | ;; | |
18390 | ||
18391 | RC) | |
18392 | ||
18393 | ||
18394 | ||
18395 | # Source file extension for RC test sources. | |
18396 | ac_ext=rc | |
18397 | ||
18398 | # Object file extension for compiled RC test sources. | |
18399 | objext=o | |
18400 | objext_RC=$objext | |
18401 | ||
18402 | # Code to be used in simple compile tests | |
18403 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18404 | ||
18405 | # Code to be used in simple link tests | |
18406 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18407 | ||
18408 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18409 | ||
18410 | # If no C compiler was specified, use CC. | |
18411 | LTCC=${LTCC-"$CC"} | |
18412 | ||
18413 | # If no C compiler flags were specified, use CFLAGS. | |
18414 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18415 | ||
18416 | # Allow CC to be a program name with arguments. | |
18417 | compiler=$CC | |
18418 | ||
18419 | ||
18420 | # save warnings/boilerplate of simple test code | |
18421 | ac_outfile=conftest.$ac_objext | |
18422 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18423 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18424 | _lt_compiler_boilerplate=`cat conftest.err` | |
18425 | $rm conftest* | |
18426 | ||
18427 | ac_outfile=conftest.$ac_objext | |
18428 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18429 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18430 | _lt_linker_boilerplate=`cat conftest.err` | |
18431 | $rm conftest* | |
18432 | ||
18433 | ||
18434 | # Allow CC to be a program name with arguments. | |
18435 | lt_save_CC="$CC" | |
18436 | CC=${RC-"windres"} | |
18437 | compiler=$CC | |
18438 | compiler_RC=$CC | |
18439 | for cc_temp in $compiler""; do | |
18440 | case $cc_temp in | |
18441 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18442 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18443 | \-*) ;; | |
18444 | *) break;; | |
18445 | esac | |
18446 | done | |
18447 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18448 | ||
18449 | lt_cv_prog_compiler_c_o_RC=yes | |
18450 | ||
18451 | # The else clause should only fire when bootstrapping the | |
18452 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18453 | # with your package, and you will get complaints that there are | |
18454 | # no rules to generate ltmain.sh. | |
18455 | if test -f "$ltmain"; then | |
18456 | # See if we are running on zsh, and set the options which allow our commands through | |
18457 | # without removal of \ escapes. | |
18458 | if test -n "${ZSH_VERSION+set}" ; then | |
18459 | setopt NO_GLOB_SUBST | |
18460 | fi | |
18461 | # Now quote all the things that may contain metacharacters while being | |
18462 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18463 | # variables and quote the copies for generation of the libtool script. | |
18464 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18465 | SED SHELL STRIP \ | |
18466 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18467 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18468 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18469 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18470 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18471 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18472 | old_postinstall_cmds old_postuninstall_cmds \ | |
18473 | compiler_RC \ | |
18474 | CC_RC \ | |
18475 | LD_RC \ | |
18476 | lt_prog_compiler_wl_RC \ | |
18477 | lt_prog_compiler_pic_RC \ | |
18478 | lt_prog_compiler_static_RC \ | |
18479 | lt_prog_compiler_no_builtin_flag_RC \ | |
18480 | export_dynamic_flag_spec_RC \ | |
18481 | thread_safe_flag_spec_RC \ | |
18482 | whole_archive_flag_spec_RC \ | |
18483 | enable_shared_with_static_runtimes_RC \ | |
18484 | old_archive_cmds_RC \ | |
18485 | old_archive_from_new_cmds_RC \ | |
18486 | predep_objects_RC \ | |
18487 | postdep_objects_RC \ | |
18488 | predeps_RC \ | |
18489 | postdeps_RC \ | |
18490 | compiler_lib_search_path_RC \ | |
18491 | archive_cmds_RC \ | |
18492 | archive_expsym_cmds_RC \ | |
18493 | postinstall_cmds_RC \ | |
18494 | postuninstall_cmds_RC \ | |
18495 | old_archive_from_expsyms_cmds_RC \ | |
18496 | allow_undefined_flag_RC \ | |
18497 | no_undefined_flag_RC \ | |
18498 | export_symbols_cmds_RC \ | |
18499 | hardcode_libdir_flag_spec_RC \ | |
18500 | hardcode_libdir_flag_spec_ld_RC \ | |
18501 | hardcode_libdir_separator_RC \ | |
18502 | hardcode_automatic_RC \ | |
18503 | module_cmds_RC \ | |
18504 | module_expsym_cmds_RC \ | |
18505 | lt_cv_prog_compiler_c_o_RC \ | |
18506 | exclude_expsyms_RC \ | |
18507 | include_expsyms_RC; do | |
18508 | ||
18509 | case $var in | |
18510 | old_archive_cmds_RC | \ | |
18511 | old_archive_from_new_cmds_RC | \ | |
18512 | archive_cmds_RC | \ | |
18513 | archive_expsym_cmds_RC | \ | |
18514 | module_cmds_RC | \ | |
18515 | module_expsym_cmds_RC | \ | |
18516 | old_archive_from_expsyms_cmds_RC | \ | |
18517 | export_symbols_cmds_RC | \ | |
18518 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18519 | postinstall_cmds | postuninstall_cmds | \ | |
18520 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18521 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18522 | # Double-quote double-evaled strings. | |
18523 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18524 | ;; | |
18525 | *) | |
18526 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18527 | ;; | |
18528 | esac | |
18529 | done | |
18530 | ||
18531 | case $lt_echo in | |
18532 | *'\$0 --fallback-echo"') | |
18533 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18534 | ;; | |
18535 | esac | |
18536 | ||
18537 | cfgfile="$ofile" | |
18538 | ||
18539 | cat <<__EOF__ >> "$cfgfile" | |
18540 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18541 | ||
18542 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18543 | ||
18544 | # Shell to use when invoking shell scripts. | |
18545 | SHELL=$lt_SHELL | |
18546 | ||
18547 | # Whether or not to build shared libraries. | |
18548 | build_libtool_libs=$enable_shared | |
18549 | ||
18550 | # Whether or not to build static libraries. | |
18551 | build_old_libs=$enable_static | |
18552 | ||
18553 | # Whether or not to add -lc for building shared libraries. | |
18554 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18555 | ||
18556 | # Whether or not to disallow shared libs when runtime libs are static | |
18557 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18558 | ||
18559 | # Whether or not to optimize for fast installation. | |
18560 | fast_install=$enable_fast_install | |
18561 | ||
18562 | # The host system. | |
18563 | host_alias=$host_alias | |
18564 | host=$host | |
18565 | host_os=$host_os | |
18566 | ||
18567 | # The build system. | |
18568 | build_alias=$build_alias | |
18569 | build=$build | |
18570 | build_os=$build_os | |
18571 | ||
18572 | # An echo program that does not interpret backslashes. | |
18573 | echo=$lt_echo | |
18574 | ||
18575 | # The archiver. | |
18576 | AR=$lt_AR | |
18577 | AR_FLAGS=$lt_AR_FLAGS | |
18578 | ||
18579 | # A C compiler. | |
18580 | LTCC=$lt_LTCC | |
18581 | ||
18582 | # LTCC compiler flags. | |
18583 | LTCFLAGS=$lt_LTCFLAGS | |
18584 | ||
18585 | # A language-specific compiler. | |
18586 | CC=$lt_compiler_RC | |
18587 | ||
18588 | # Is the compiler the GNU C compiler? | |
18589 | with_gcc=$GCC_RC | |
18590 | ||
18591 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` | |
18592 | gcc_ver=\`gcc -dumpversion\` | |
18593 | ||
18594 | # An ERE matcher. | |
18595 | EGREP=$lt_EGREP | |
18596 | ||
18597 | # The linker used to build libraries. | |
18598 | LD=$lt_LD_RC | |
18599 | ||
18600 | # Whether we need hard or soft links. | |
18601 | LN_S=$lt_LN_S | |
18602 | ||
18603 | # A BSD-compatible nm program. | |
18604 | NM=$lt_NM | |
18605 | ||
18606 | # A symbol stripping program | |
18607 | STRIP=$lt_STRIP | |
18608 | ||
18609 | # Used to examine libraries when file_magic_cmd begins "file" | |
18610 | MAGIC_CMD=$MAGIC_CMD | |
18611 | ||
18612 | # Used on cygwin: DLL creation program. | |
18613 | DLLTOOL="$DLLTOOL" | |
18614 | ||
18615 | # Used on cygwin: object dumper. | |
18616 | OBJDUMP="$OBJDUMP" | |
18617 | ||
18618 | # Used on cygwin: assembler. | |
18619 | AS="$AS" | |
18620 | ||
18621 | # The name of the directory that contains temporary libtool files. | |
18622 | objdir=$objdir | |
18623 | ||
18624 | # How to create reloadable object files. | |
18625 | reload_flag=$lt_reload_flag | |
18626 | reload_cmds=$lt_reload_cmds | |
18627 | ||
18628 | # How to pass a linker flag through the compiler. | |
18629 | wl=$lt_lt_prog_compiler_wl_RC | |
18630 | ||
18631 | # Object file suffix (normally "o"). | |
18632 | objext="$ac_objext" | |
18633 | ||
18634 | # Old archive suffix (normally "a"). | |
18635 | libext="$libext" | |
18636 | ||
18637 | # Shared library suffix (normally ".so"). | |
18638 | shrext_cmds='$shrext_cmds' | |
18639 | ||
18640 | # Executable file suffix (normally ""). | |
18641 | exeext="$exeext" | |
18642 | ||
18643 | # Additional compiler flags for building library objects. | |
18644 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
18645 | pic_mode=$pic_mode | |
18646 | ||
18647 | # What is the maximum length of a command? | |
18648 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18649 | ||
18650 | # Does compiler simultaneously support -c and -o options? | |
18651 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18652 | ||
18653 | # Must we lock files when doing compilation? | |
18654 | need_locks=$lt_need_locks | |
18655 | ||
18656 | # Do we need the lib prefix for modules? | |
18657 | need_lib_prefix=$need_lib_prefix | |
18658 | ||
18659 | # Do we need a version for libraries? | |
18660 | need_version=$need_version | |
18661 | ||
18662 | # Whether dlopen is supported. | |
18663 | dlopen_support=$enable_dlopen | |
18664 | ||
18665 | # Whether dlopen of programs is supported. | |
18666 | dlopen_self=$enable_dlopen_self | |
18667 | ||
18668 | # Whether dlopen of statically linked programs is supported. | |
18669 | dlopen_self_static=$enable_dlopen_self_static | |
18670 | ||
18671 | # Compiler flag to prevent dynamic linking. | |
18672 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
18673 | ||
18674 | # Compiler flag to turn off builtin functions. | |
18675 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18676 | ||
18677 | # Compiler flag to allow reflexive dlopens. | |
18678 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18679 | ||
18680 | # Compiler flag to generate shared objects directly from archives. | |
18681 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18682 | ||
18683 | # Compiler flag to generate thread-safe objects. | |
18684 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18685 | ||
18686 | # Library versioning type. | |
18687 | version_type=$version_type | |
18688 | ||
18689 | # Format of library name prefix. | |
18690 | libname_spec=$lt_libname_spec | |
18691 | ||
18692 | # List of archive names. First name is the real one, the rest are links. | |
18693 | # The last name is the one that the linker finds with -lNAME. | |
18694 | library_names_spec=$lt_library_names_spec | |
18695 | ||
18696 | # The coded name of the library, if different from the real name. | |
18697 | soname_spec=$lt_soname_spec | |
18698 | ||
18699 | # Commands used to build and install an old-style archive. | |
18700 | RANLIB=$lt_RANLIB | |
18701 | old_archive_cmds=$lt_old_archive_cmds_RC | |
18702 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18703 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18704 | ||
18705 | # Create an old-style archive from a shared archive. | |
18706 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18707 | ||
18708 | # Create a temporary old-style archive to link instead of a shared archive. | |
18709 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18710 | ||
18711 | # Commands used to build and install a shared archive. | |
18712 | archive_cmds=$lt_archive_cmds_RC | |
18713 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18714 | postinstall_cmds=$lt_postinstall_cmds | |
18715 | postuninstall_cmds=$lt_postuninstall_cmds | |
18716 | ||
18717 | # Commands used to build a loadable module (assumed same as above if empty) | |
18718 | module_cmds=$lt_module_cmds_RC | |
18719 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18720 | ||
18721 | # Commands to strip libraries. | |
18722 | old_striplib=$lt_old_striplib | |
18723 | striplib=$lt_striplib | |
18724 | ||
18725 | # Dependencies to place before the objects being linked to create a | |
18726 | # shared library. | |
18727 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18728 | ||
18729 | # Dependencies to place after the objects being linked to create a | |
18730 | # shared library. | |
18731 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18732 | ||
18733 | # Dependencies to place before the objects being linked to create a | |
18734 | # shared library. | |
18735 | predeps=$lt_predeps_RC | |
18736 | ||
18737 | # Dependencies to place after the objects being linked to create a | |
18738 | # shared library. | |
18739 | postdeps=$lt_postdeps_RC | |
18740 | ||
18741 | # The library search path used internally by the compiler when linking | |
18742 | # a shared library. | |
18743 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18744 | ||
18745 | # Method to check whether dependent libraries are shared objects. | |
18746 | deplibs_check_method=$lt_deplibs_check_method | |
18747 | ||
18748 | # Command to use when deplibs_check_method == file_magic. | |
18749 | file_magic_cmd=$lt_file_magic_cmd | |
18750 | ||
18751 | # Flag that allows shared libraries with undefined symbols to be built. | |
18752 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18753 | ||
18754 | # Flag that forces no undefined symbols. | |
18755 | no_undefined_flag=$lt_no_undefined_flag_RC | |
18756 | ||
18757 | # Commands used to finish a libtool library installation in a directory. | |
18758 | finish_cmds=$lt_finish_cmds | |
18759 | ||
18760 | # Same as above, but a single script fragment to be evaled but not shown. | |
18761 | finish_eval=$lt_finish_eval | |
18762 | ||
18763 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18764 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18765 | ||
18766 | # Transform the output of nm in a proper C declaration | |
18767 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18768 | ||
18769 | # Transform the output of nm in a C name address pair | |
18770 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18771 | ||
18772 | # This is the shared library runtime path variable. | |
18773 | runpath_var=$runpath_var | |
18774 | ||
18775 | # This is the shared library path variable. | |
18776 | shlibpath_var=$shlibpath_var | |
18777 | ||
18778 | # Is shlibpath searched before the hard-coded library search path? | |
18779 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18780 | ||
18781 | # How to hardcode a shared library path into an executable. | |
18782 | hardcode_action=$hardcode_action_RC | |
18783 | ||
18784 | # Whether we should hardcode library paths into libraries. | |
18785 | hardcode_into_libs=$hardcode_into_libs | |
18786 | ||
18787 | # Flag to hardcode \$libdir into a binary during linking. | |
18788 | # This must work even if \$libdir does not exist. | |
18789 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18790 | ||
18791 | # If ld is used when linking, flag to hardcode \$libdir into | |
18792 | # a binary during linking. This must work even if \$libdir does | |
18793 | # not exist. | |
18794 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18795 | ||
18796 | # Whether we need a single -rpath flag with a separated argument. | |
18797 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18798 | ||
18799 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18800 | # resulting binary. | |
18801 | hardcode_direct=$hardcode_direct_RC | |
18802 | ||
18803 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18804 | # resulting binary. | |
18805 | hardcode_minus_L=$hardcode_minus_L_RC | |
18806 | ||
18807 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18808 | # the resulting binary. | |
18809 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18810 | ||
18811 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18812 | # and all subsequent libraries and executables linked against it. | |
18813 | hardcode_automatic=$hardcode_automatic_RC | |
18814 | ||
18815 | # Variables whose values should be saved in libtool wrapper scripts and | |
18816 | # restored at relink time. | |
18817 | variables_saved_for_relink="$variables_saved_for_relink" | |
18818 | ||
18819 | # Whether libtool must link a program against all its dependency libraries. | |
18820 | link_all_deplibs=$link_all_deplibs_RC | |
18821 | ||
18822 | # Compile-time system search path for libraries | |
18823 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` | |
18824 | ||
18825 | # Run-time system search path for libraries | |
18826 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18827 | ||
18828 | # Fix the shell variable \$srcfile for the compiler. | |
18829 | fix_srcfile_path="$fix_srcfile_path_RC" | |
18830 | ||
18831 | # Set to yes if exported symbols are required. | |
18832 | always_export_symbols=$always_export_symbols_RC | |
18833 | ||
18834 | # The commands to list exported symbols. | |
18835 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18836 | ||
18837 | # The commands to extract the exported symbol list from a shared archive. | |
18838 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18839 | ||
18840 | # Symbols that should not be listed in the preloaded symbols. | |
18841 | exclude_expsyms=$lt_exclude_expsyms_RC | |
18842 | ||
18843 | # Symbols that must always be exported. | |
18844 | include_expsyms=$lt_include_expsyms_RC | |
18845 | ||
18846 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18847 | ||
18848 | __EOF__ | |
18849 | ||
18850 | ||
18851 | else | |
18852 | # If there is no Makefile yet, we rely on a make rule to execute | |
18853 | # `config.status --recheck' to rerun these tests and create the | |
18854 | # libtool script then. | |
18855 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18856 | if test -f "$ltmain_in"; then | |
18857 | test -f Makefile && make "$ltmain" | |
18858 | fi | |
18859 | fi | |
18860 | ||
18861 | ||
18862 | ac_ext=c | |
18863 | ac_cpp='$CPP $CPPFLAGS' | |
18864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18867 | ||
18868 | CC="$lt_save_CC" | |
18869 | ||
18870 | ;; | |
18871 | ||
18872 | *) | |
18873 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18874 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18875 | { (exit 1); exit 1; }; } | |
18876 | ;; | |
18877 | esac | |
18878 | ||
18879 | # Append the new tag name to the list of available tags. | |
18880 | if test -n "$tagname" ; then | |
18881 | available_tags="$available_tags $tagname" | |
18882 | fi | |
18883 | fi | |
18884 | done | |
18885 | IFS="$lt_save_ifs" | |
18886 | ||
18887 | # Now substitute the updated list of available tags. | |
18888 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
18889 | mv "${ofile}T" "$ofile" | |
18890 | chmod +x "$ofile" | |
18891 | else | |
18892 | rm -f "${ofile}T" | |
18893 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
18894 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
18895 | { (exit 1); exit 1; }; } | |
18896 | fi | |
18897 | fi | |
18898 | ||
18899 | ||
18900 | ||
18901 | # This can be used to rebuild libtool when needed | |
18902 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
18903 | ||
18904 | # Always use our own libtool. | |
18905 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
18906 | ||
18907 | # Prevent multiple expansion | |
18908 | ||
18909 | ||
18910 | ||
18911 | ||
18912 | ||
18913 | ||
18914 | ||
18915 | ||
18916 | ||
18917 | ||
18918 | ||
18919 | ||
18920 | ||
18921 | ||
18922 | ||
18923 | ||
18924 | ||
18925 | ||
18926 | ||
18927 | ||
bf9f3bac | 18928 | |
86933a6e BB |
18929 | |
18930 | echo "$as_me:$LINENO: checking spl license" >&5 | |
18931 | echo $ECHO_N "checking spl license... $ECHO_C" >&6 | |
18932 | LICENSE=GPL | |
18933 | echo "$as_me:$LINENO: result: $LICENSE" >&5 | |
18934 | echo "${ECHO_T}$LICENSE" >&6 | |
18935 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS" | |
18936 | ||
18937 | ||
18938 | ||
18939 | SPL_CONFIG=all | |
18940 | ||
18941 | # Check whether --with-config or --without-config was given. | |
18942 | if test "${with_config+set}" = set; then | |
18943 | withval="$with_config" | |
18944 | SPL_CONFIG="$withval" | |
18945 | fi; | |
18946 | ||
18947 | echo "$as_me:$LINENO: checking spl config" >&5 | |
18948 | echo $ECHO_N "checking spl config... $ECHO_C" >&6 | |
18949 | echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5 | |
18950 | echo "${ECHO_T}$SPL_CONFIG" >&6; | |
18951 | ||
18952 | ||
18953 | case "$SPL_CONFIG" in | |
18954 | kernel) | |
18955 | ||
18956 | ||
18957 | # Check whether --with-linux or --without-linux was given. | |
18958 | if test "${with_linux+set}" = set; then | |
18959 | withval="$with_linux" | |
18960 | kernelsrc="$withval" | |
18961 | fi; | |
18962 | ||
18963 | ||
18964 | # Check whether --with-linux-obj or --without-linux-obj was given. | |
18965 | if test "${with_linux_obj+set}" = set; then | |
18966 | withval="$with_linux_obj" | |
18967 | kernelbuild="$withval" | |
18968 | fi; | |
18969 | ||
18970 | echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
18971 | echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6 | |
18972 | if test -z "$kernelsrc"; then | |
18973 | sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \ | |
18974 | 2>/dev/null | grep -v obj | tail -1` | |
18975 | ||
18976 | if test -e ${sourcelink}; then | |
18977 | kernelsrc=`readlink -f ${sourcelink}` | |
18978 | else | |
18979 | echo "$as_me:$LINENO: result: Not found" >&5 | |
18980 | echo "${ECHO_T}Not found" >&6 | |
18981 | { { echo "$as_me:$LINENO: error: | |
18982 | *** Please specify the location of the kernel source | |
18983 | *** with the '--with-linux=PATH' option" >&5 | |
18984 | echo "$as_me: error: | |
18985 | *** Please specify the location of the kernel source | |
18986 | *** with the '--with-linux=PATH' option" >&2;} | |
18987 | { (exit 1); exit 1; }; } | |
18988 | fi | |
18989 | else | |
18990 | if test "$kernelsrc" = "NONE"; then | |
18991 | kernsrcver=NONE | |
18992 | fi | |
18993 | fi | |
18994 | ||
18995 | echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
18996 | echo "${ECHO_T}$kernelsrc" >&6 | |
18997 | echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
18998 | echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6 | |
18999 | if test -z "$kernelbuild"; then | |
749e5eb1 | 19000 | if test -d ${kernelsrc}-obj/`arch`/`arch`; then |
86933a6e | 19001 | kernelbuild=${kernelsrc}-obj/`arch`/`arch` |
749e5eb1 BB |
19002 | elif test -d ${kernelsrc}-obj/`arch`/default; then |
19003 | kernelbuild=${kernelsrc}-obj/`arch`/default | |
86933a6e BB |
19004 | elif test -d `dirname ${kernelsrc}`/build-`arch`; then |
19005 | kernelbuild=`dirname ${kernelsrc}`/build-`arch` | |
19006 | else | |
19007 | kernelbuild=${kernelsrc} | |
19008 | fi | |
19009 | fi | |
19010 | echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
19011 | echo "${ECHO_T}$kernelbuild" >&6 | |
19012 | ||
19013 | echo "$as_me:$LINENO: checking kernel source version" >&5 | |
19014 | echo $ECHO_N "checking kernel source version... $ECHO_C" >&6 | |
19015 | if test -r $kernelbuild/include/linux/version.h && | |
19016 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then | |
19017 | ||
19018 | kernsrcver=`(echo "#include <linux/version.h>"; | |
19019 | echo "kernsrcver=UTS_RELEASE") | | |
19020 | cpp -I $kernelbuild/include | | |
19021 | grep "^kernsrcver=" | cut -d \" -f 2` | |
19022 | ||
19023 | elif test -r $kernelbuild/include/linux/utsrelease.h && | |
19024 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then | |
19025 | ||
19026 | kernsrcver=`(echo "#include <linux/utsrelease.h>"; | |
19027 | echo "kernsrcver=UTS_RELEASE") | | |
19028 | cpp -I $kernelbuild/include | | |
19029 | grep "^kernsrcver=" | cut -d \" -f 2` | |
19030 | fi | |
19031 | ||
19032 | if test -z "$kernsrcver"; then | |
19033 | echo "$as_me:$LINENO: result: Not found" >&5 | |
19034 | echo "${ECHO_T}Not found" >&6 | |
19035 | { { echo "$as_me:$LINENO: error: | |
19036 | *** Cannot determine the version of the linux kernel source. | |
19037 | *** Please prepare the kernel before running this script" >&5 | |
19038 | echo "$as_me: error: | |
19039 | *** Cannot determine the version of the linux kernel source. | |
19040 | *** Please prepare the kernel before running this script" >&2;} | |
19041 | { (exit 1); exit 1; }; } | |
19042 | fi | |
19043 | ||
19044 | echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
19045 | echo "${ECHO_T}$kernsrcver" >&6 | |
19046 | ||
19047 | LINUX=${kernelsrc} | |
19048 | LINUX_OBJ=${kernelbuild} | |
19049 | LINUX_VERSION=${kernsrcver} | |
19050 | ||
19051 | ||
19052 | ||
19053 | ||
19054 | ||
19055 | ||
bb339d06 | 19056 | modpost=$LINUX/scripts/Makefile.modpost |
86933a6e BB |
19057 | echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
19058 | echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6 | |
bb339d06 BB |
19059 | if test -f "$modpost"; then |
19060 | if grep -q Modules.symvers $modpost; then | |
19061 | LINUX_SYMBOLS=Modules.symvers | |
19062 | else | |
19063 | LINUX_SYMBOLS=Module.symvers | |
19064 | fi | |
86933a6e | 19065 | else |
bb339d06 | 19066 | LINUX_SYMBOLS=NONE |
86933a6e BB |
19067 | fi |
19068 | echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
19069 | echo "${ECHO_T}$LINUX_SYMBOLS" >&6 | |
19070 | ||
19071 | ||
19072 | ||
19073 | ||
19074 | KERNELMAKE_PARAMS="V=1" | |
19075 | ||
19076 | abs_srcdir=`readlink -f ${srcdir}` | |
19077 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror" | |
19078 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include" | |
19079 | ||
19080 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
19081 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
19082 | fi | |
19083 | ||
19084 | ||
19085 | ||
19086 | ||
19087 | ||
19088 | echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 | |
19089 | echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6 | |
19090 | # Check whether --enable-debug or --disable-debug was given. | |
19091 | if test "${enable_debug+set}" = set; then | |
19092 | enableval="$enable_debug" | |
19093 | case "$enableval" in | |
19094 | yes) spl_ac_debug=yes ;; | |
19095 | no) spl_ac_debug=no ;; | |
19096 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
19097 | echo "${ECHO_T}Error!" >&6 | |
19098 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5 | |
19099 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;} | |
19100 | { (exit 1); exit 1; }; } ;; | |
19101 | esac | |
19102 | ||
19103 | fi; | |
19104 | if test "$spl_ac_debug" = yes; then | |
19105 | echo "$as_me:$LINENO: result: yes" >&5 | |
19106 | echo "${ECHO_T}yes" >&6 | |
19107 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG" | |
19108 | else | |
19109 | echo "$as_me:$LINENO: result: no" >&5 | |
19110 | echo "${ECHO_T}no" >&6 | |
19111 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
19112 | fi | |
19113 | ||
19114 | ||
19115 | echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5 | |
19116 | echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6 | |
19117 | # Check whether --enable-debug-kmem or --disable-debug-kmem was given. | |
19118 | if test "${enable_debug_kmem+set}" = set; then | |
19119 | enableval="$enable_debug_kmem" | |
19120 | case "$enableval" in | |
19121 | yes) spl_ac_debug_kmem=yes ;; | |
19122 | no) spl_ac_debug_kmem=no ;; | |
19123 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
19124 | echo "${ECHO_T}Error!" >&6 | |
19125 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5 | |
19126 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;} | |
19127 | { (exit 1); exit 1; }; } ;; | |
19128 | esac | |
19129 | ||
19130 | fi; | |
19131 | if test "$spl_ac_debug_kmem" = yes; then | |
19132 | echo "$as_me:$LINENO: result: yes" >&5 | |
19133 | echo "${ECHO_T}yes" >&6 | |
19134 | ||
19135 | cat >>confdefs.h <<\_ACEOF | |
19136 | #define DEBUG_KMEM 1 | |
19137 | _ACEOF | |
19138 | ||
19139 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
19140 | else | |
19141 | echo "$as_me:$LINENO: result: no" >&5 | |
19142 | echo "${ECHO_T}no" >&6 | |
19143 | fi | |
19144 | ||
19145 | ||
19146 | echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5 | |
19147 | echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6 | |
19148 | # Check whether --enable-debug-mutex or --disable-debug-mutex was given. | |
19149 | if test "${enable_debug_mutex+set}" = set; then | |
19150 | enableval="$enable_debug_mutex" | |
19151 | case "$enableval" in | |
19152 | yes) spl_ac_debug_mutex=yes ;; | |
19153 | no) spl_ac_debug_mutex=no ;; | |
19154 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
19155 | echo "${ECHO_T}Error!" >&6 | |
19156 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5 | |
19157 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;} | |
19158 | { (exit 1); exit 1; }; } ;; | |
19159 | esac | |
19160 | ||
19161 | fi; | |
19162 | if test "$spl_ac_debug_mutex" = yes; then | |
19163 | echo "$as_me:$LINENO: result: yes" >&5 | |
19164 | echo "${ECHO_T}yes" >&6 | |
19165 | ||
19166 | cat >>confdefs.h <<\_ACEOF | |
19167 | #define DEBUG_MUTEX 1 | |
19168 | _ACEOF | |
19169 | ||
19170 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX" | |
19171 | else | |
19172 | echo "$as_me:$LINENO: result: no" >&5 | |
19173 | echo "${ECHO_T}no" >&6 | |
19174 | fi | |
19175 | ||
19176 | ||
19177 | echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5 | |
19178 | echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6 | |
19179 | # Check whether --enable-debug-kstat or --disable-debug-kstat was given. | |
19180 | if test "${enable_debug_kstat+set}" = set; then | |
19181 | enableval="$enable_debug_kstat" | |
19182 | case "$enableval" in | |
19183 | yes) spl_ac_debug_kstat=yes ;; | |
19184 | no) spl_ac_debug_kstat=no ;; | |
19185 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
19186 | echo "${ECHO_T}Error!" >&6 | |
19187 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5 | |
19188 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;} | |
19189 | { (exit 1); exit 1; }; } ;; | |
19190 | esac | |
19191 | ||
19192 | fi; | |
19193 | if test "$spl_ac_debug_kstat" = yes; then | |
19194 | echo "$as_me:$LINENO: result: yes" >&5 | |
19195 | echo "${ECHO_T}yes" >&6 | |
19196 | ||
19197 | cat >>confdefs.h <<\_ACEOF | |
19198 | #define DEBUG_KSTAT 1 | |
19199 | _ACEOF | |
19200 | ||
19201 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT" | |
19202 | else | |
19203 | echo "$as_me:$LINENO: result: no" >&5 | |
19204 | echo "${ECHO_T}no" >&6 | |
19205 | fi | |
19206 | ||
19207 | ||
19208 | echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5 | |
19209 | echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6 | |
19210 | # Check whether --enable-debug-callb or --disable-debug-callb was given. | |
19211 | if test "${enable_debug_callb+set}" = set; then | |
19212 | enableval="$enable_debug_callb" | |
19213 | case "$enableval" in | |
19214 | yes) spl_ac_debug_callb=yes ;; | |
19215 | no) spl_ac_debug_callb=no ;; | |
19216 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
19217 | echo "${ECHO_T}Error!" >&6 | |
19218 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5 | |
19219 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;} | |
19220 | { (exit 1); exit 1; }; } ;; | |
19221 | esac | |
19222 | ||
19223 | fi; | |
19224 | if test "$spl_ac_debug_callb" = yes; then | |
19225 | echo "$as_me:$LINENO: result: yes" >&5 | |
19226 | echo "${ECHO_T}yes" >&6 | |
19227 | ||
19228 | cat >>confdefs.h <<\_ACEOF | |
19229 | #define DEBUG_CALLB 1 | |
19230 | _ACEOF | |
19231 | ||
19232 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB" | |
19233 | else | |
19234 | echo "$as_me:$LINENO: result: no" >&5 | |
19235 | echo "${ECHO_T}no" >&6 | |
19236 | fi | |
19237 | ||
19238 | echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 | |
19239 | echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6 | |
19240 | ||
19241 | ||
19242 | cat >conftest.c <<_ACEOF | |
19243 | /* confdefs.h. */ | |
19244 | _ACEOF | |
19245 | cat confdefs.h >>conftest.$ac_ext | |
19246 | cat >>conftest.$ac_ext <<_ACEOF | |
19247 | /* end confdefs.h. */ | |
19248 | ||
19249 | ||
19250 | #include <linux/types.h> | |
19251 | ||
19252 | int | |
19253 | main (void) | |
19254 | { | |
19255 | ||
19256 | uintptr_t *ptr; | |
19257 | ||
19258 | ; | |
19259 | return 0; | |
19260 | } | |
19261 | ||
19262 | _ACEOF | |
19263 | ||
19264 | ||
19265 | rm -Rf build && mkdir -p build | |
19266 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19267 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19269 | (eval $ac_try) 2>&5 | |
19270 | ac_status=$? | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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 | ||
19279 | echo "$as_me:$LINENO: result: yes" >&5 | |
19280 | echo "${ECHO_T}yes" >&6 | |
19281 | ||
19282 | cat >>confdefs.h <<\_ACEOF | |
19283 | #define HAVE_UINTPTR_T 1 | |
19284 | _ACEOF | |
19285 | ||
19286 | ||
19287 | else | |
19288 | echo "$as_me: failed program was:" >&5 | |
19289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19290 | ||
19291 | echo "$as_me:$LINENO: result: no" >&5 | |
19292 | echo "${ECHO_T}no" >&6 | |
19293 | ||
19294 | ||
19295 | ||
19296 | fi | |
19297 | ||
19298 | rm -Rf build | |
19299 | ||
19300 | ||
19301 | ||
19302 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 | |
19303 | echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6 | |
19304 | ||
19305 | ||
19306 | cat >conftest.c <<_ACEOF | |
19307 | /* confdefs.h. */ | |
19308 | _ACEOF | |
19309 | cat confdefs.h >>conftest.$ac_ext | |
19310 | cat >>conftest.$ac_ext <<_ACEOF | |
19311 | /* end confdefs.h. */ | |
19312 | ||
19313 | ||
19314 | #include <asm/atomic.h> | |
19315 | ||
19316 | int | |
19317 | main (void) | |
19318 | { | |
19319 | ||
19320 | atomic64_t *ptr; | |
19321 | ||
19322 | ; | |
19323 | return 0; | |
19324 | } | |
19325 | ||
19326 | _ACEOF | |
19327 | ||
19328 | ||
19329 | rm -Rf build && mkdir -p build | |
19330 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19331 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19333 | (eval $ac_try) 2>&5 | |
19334 | ac_status=$? | |
19335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19336 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19338 | (eval $ac_try) 2>&5 | |
19339 | ac_status=$? | |
19340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19341 | (exit $ac_status); }; }; then | |
19342 | ||
19343 | echo "$as_me:$LINENO: result: yes" >&5 | |
19344 | echo "${ECHO_T}yes" >&6 | |
19345 | ||
19346 | cat >>confdefs.h <<\_ACEOF | |
19347 | #define HAVE_ATOMIC64_T 1 | |
19348 | _ACEOF | |
19349 | ||
19350 | ||
19351 | else | |
19352 | echo "$as_me: failed program was:" >&5 | |
19353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19354 | ||
19355 | echo "$as_me:$LINENO: result: no" >&5 | |
19356 | echo "${ECHO_T}no" >&6 | |
19357 | ||
19358 | ||
19359 | ||
19360 | fi | |
19361 | ||
19362 | rm -Rf build | |
19363 | ||
19364 | ||
19365 | ||
19366 | echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 | |
19367 | echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6 | |
19368 | ||
19369 | ||
19370 | cat >conftest.c <<_ACEOF | |
19371 | /* confdefs.h. */ | |
19372 | _ACEOF | |
19373 | cat confdefs.h >>conftest.$ac_ext | |
19374 | cat >>conftest.$ac_ext <<_ACEOF | |
19375 | /* end confdefs.h. */ | |
19376 | ||
19377 | ||
19378 | #include <linux/workqueue.h> | |
19379 | ||
19380 | int | |
19381 | main (void) | |
19382 | { | |
19383 | ||
19384 | struct work_struct work; | |
19385 | INIT_WORK(&work, NULL, NULL); | |
19386 | ||
19387 | ; | |
19388 | return 0; | |
19389 | } | |
19390 | ||
19391 | _ACEOF | |
19392 | ||
19393 | ||
19394 | rm -Rf build && mkdir -p build | |
19395 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19396 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19398 | (eval $ac_try) 2>&5 | |
19399 | ac_status=$? | |
19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19401 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19403 | (eval $ac_try) 2>&5 | |
19404 | ac_status=$? | |
19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19406 | (exit $ac_status); }; }; then | |
19407 | ||
19408 | echo "$as_me:$LINENO: result: yes" >&5 | |
19409 | echo "${ECHO_T}yes" >&6 | |
19410 | ||
19411 | cat >>confdefs.h <<\_ACEOF | |
19412 | #define HAVE_3ARGS_INIT_WORK 1 | |
19413 | _ACEOF | |
19414 | ||
19415 | ||
19416 | else | |
19417 | echo "$as_me: failed program was:" >&5 | |
19418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19419 | ||
19420 | echo "$as_me:$LINENO: result: no" >&5 | |
19421 | echo "${ECHO_T}no" >&6 | |
19422 | ||
19423 | ||
19424 | ||
19425 | fi | |
19426 | ||
19427 | rm -Rf build | |
19428 | ||
19429 | ||
19430 | ||
19431 | echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 | |
19432 | echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6 | |
19433 | ||
19434 | ||
19435 | cat >conftest.c <<_ACEOF | |
19436 | /* confdefs.h. */ | |
19437 | _ACEOF | |
19438 | cat confdefs.h >>conftest.$ac_ext | |
19439 | cat >>conftest.$ac_ext <<_ACEOF | |
19440 | /* end confdefs.h. */ | |
19441 | ||
19442 | ||
19443 | #include <linux/sysctl.h> | |
19444 | ||
19445 | int | |
19446 | main (void) | |
19447 | { | |
19448 | ||
19449 | return register_sysctl_table(NULL,0); | |
19450 | ||
19451 | ; | |
19452 | return 0; | |
19453 | } | |
19454 | ||
19455 | _ACEOF | |
19456 | ||
19457 | ||
19458 | rm -Rf build && mkdir -p build | |
19459 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19460 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19462 | (eval $ac_try) 2>&5 | |
19463 | ac_status=$? | |
19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19465 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19467 | (eval $ac_try) 2>&5 | |
19468 | ac_status=$? | |
19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19470 | (exit $ac_status); }; }; then | |
19471 | ||
19472 | echo "$as_me:$LINENO: result: yes" >&5 | |
19473 | echo "${ECHO_T}yes" >&6 | |
19474 | ||
19475 | cat >>confdefs.h <<\_ACEOF | |
19476 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
19477 | _ACEOF | |
19478 | ||
19479 | ||
19480 | else | |
19481 | echo "$as_me: failed program was:" >&5 | |
19482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19483 | ||
19484 | echo "$as_me:$LINENO: result: no" >&5 | |
19485 | echo "${ECHO_T}no" >&6 | |
19486 | ||
19487 | ||
19488 | ||
19489 | fi | |
19490 | ||
19491 | rm -Rf build | |
19492 | ||
19493 | ||
19494 | ||
19495 | ||
19496 | echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 | |
19497 | echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6 | |
19498 | ||
19499 | ||
19500 | cat >conftest.c <<_ACEOF | |
19501 | /* confdefs.h. */ | |
19502 | _ACEOF | |
19503 | cat confdefs.h >>conftest.$ac_ext | |
19504 | cat >>conftest.$ac_ext <<_ACEOF | |
19505 | /* end confdefs.h. */ | |
19506 | ||
19507 | ||
19508 | #include <linux/mm.h> | |
19509 | ||
19510 | int | |
19511 | main (void) | |
19512 | { | |
19513 | ||
19514 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
19515 | ||
19516 | ; | |
19517 | return 0; | |
19518 | } | |
19519 | ||
19520 | _ACEOF | |
19521 | ||
19522 | ||
19523 | rm -Rf build && mkdir -p build | |
19524 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19525 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19532 | (eval $ac_try) 2>&5 | |
19533 | ac_status=$? | |
19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19535 | (exit $ac_status); }; }; then | |
19536 | ||
19537 | echo "$as_me:$LINENO: result: yes" >&5 | |
19538 | echo "${ECHO_T}yes" >&6 | |
19539 | ||
19540 | cat >>confdefs.h <<\_ACEOF | |
19541 | #define HAVE_SET_SHRINKER 1 | |
19542 | _ACEOF | |
19543 | ||
19544 | ||
19545 | else | |
19546 | echo "$as_me: failed program was:" >&5 | |
19547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19548 | ||
19549 | echo "$as_me:$LINENO: result: no" >&5 | |
19550 | echo "${ECHO_T}no" >&6 | |
19551 | ||
19552 | ||
19553 | ||
19554 | fi | |
19555 | ||
19556 | rm -Rf build | |
19557 | ||
19558 | ||
19559 | ||
19560 | echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 | |
19561 | echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6 | |
19562 | ||
19563 | ||
19564 | cat >conftest.c <<_ACEOF | |
19565 | /* confdefs.h. */ | |
19566 | _ACEOF | |
19567 | cat confdefs.h >>conftest.$ac_ext | |
19568 | cat >>conftest.$ac_ext <<_ACEOF | |
19569 | /* end confdefs.h. */ | |
19570 | ||
19571 | ||
19572 | #include <linux/namei.h> | |
19573 | ||
19574 | int | |
19575 | main (void) | |
19576 | { | |
19577 | ||
19578 | struct nameidata nd; | |
19579 | ||
19580 | nd.path.mnt = NULL; | |
19581 | nd.path.dentry = NULL; | |
19582 | ||
19583 | ; | |
19584 | return 0; | |
19585 | } | |
19586 | ||
19587 | _ACEOF | |
19588 | ||
19589 | ||
19590 | rm -Rf build && mkdir -p build | |
19591 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19592 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19594 | (eval $ac_try) 2>&5 | |
19595 | ac_status=$? | |
19596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19597 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19599 | (eval $ac_try) 2>&5 | |
19600 | ac_status=$? | |
19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19602 | (exit $ac_status); }; }; then | |
19603 | ||
19604 | echo "$as_me:$LINENO: result: yes" >&5 | |
19605 | echo "${ECHO_T}yes" >&6 | |
19606 | ||
19607 | cat >>confdefs.h <<\_ACEOF | |
19608 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
19609 | _ACEOF | |
19610 | ||
19611 | ||
19612 | else | |
19613 | echo "$as_me: failed program was:" >&5 | |
19614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19615 | ||
19616 | echo "$as_me:$LINENO: result: no" >&5 | |
19617 | echo "${ECHO_T}no" >&6 | |
19618 | ||
19619 | ||
19620 | ||
19621 | fi | |
19622 | ||
19623 | rm -Rf build | |
19624 | ||
19625 | ||
19626 | ||
19627 | ||
19628 | echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 | |
19629 | echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6 | |
19630 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ | |
19631 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19632 | rc=$? | |
19633 | if test $rc -ne 0; then | |
19634 | export=0 | |
19635 | for file in kernel/sched.c; do | |
19636 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ | |
19637 | "$LINUX_OBJ/$file" 2>/dev/null | |
19638 | rc=$? | |
19639 | if test $rc -eq 0; then | |
19640 | export=1 | |
19641 | break; | |
19642 | fi | |
19643 | done | |
19644 | if test $export -eq 0; then | |
19645 | echo "$as_me:$LINENO: result: no" >&5 | |
19646 | echo "${ECHO_T}no" >&6 | |
19647 | ||
19648 | else | |
19649 | echo "$as_me:$LINENO: result: yes" >&5 | |
19650 | echo "${ECHO_T}yes" >&6 | |
19651 | ||
19652 | cat >>confdefs.h <<\_ACEOF | |
19653 | #define HAVE_TASK_CURR 1 | |
19654 | _ACEOF | |
19655 | ||
19656 | fi | |
19657 | else | |
19658 | echo "$as_me:$LINENO: result: yes" >&5 | |
19659 | echo "${ECHO_T}yes" >&6 | |
19660 | ||
19661 | cat >>confdefs.h <<\_ACEOF | |
19662 | #define HAVE_TASK_CURR 1 | |
19663 | _ACEOF | |
19664 | ||
19665 | fi | |
19666 | ||
19667 | ||
19668 | echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 | |
19669 | echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6 | |
19670 | ||
19671 | ||
19672 | cat >conftest.c <<_ACEOF | |
19673 | /* confdefs.h. */ | |
19674 | _ACEOF | |
19675 | cat confdefs.h >>conftest.$ac_ext | |
19676 | cat >>conftest.$ac_ext <<_ACEOF | |
19677 | /* end confdefs.h. */ | |
19678 | ||
19679 | ||
19680 | #include <linux/sysctl.h> | |
19681 | ||
19682 | int | |
19683 | main (void) | |
19684 | { | |
19685 | ||
19686 | #ifndef CTL_UNNUMBERED | |
19687 | #error CTL_UNNUMBERED undefined | |
19688 | #endif | |
19689 | ||
19690 | ; | |
19691 | return 0; | |
19692 | } | |
19693 | ||
19694 | _ACEOF | |
19695 | ||
19696 | ||
19697 | rm -Rf build && mkdir -p build | |
19698 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19699 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19701 | (eval $ac_try) 2>&5 | |
19702 | ac_status=$? | |
19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19704 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19706 | (eval $ac_try) 2>&5 | |
19707 | ac_status=$? | |
19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19709 | (exit $ac_status); }; }; then | |
19710 | ||
19711 | echo "$as_me:$LINENO: result: yes" >&5 | |
19712 | echo "${ECHO_T}yes" >&6 | |
19713 | ||
19714 | cat >>confdefs.h <<\_ACEOF | |
19715 | #define HAVE_CTL_UNNUMBERED 1 | |
19716 | _ACEOF | |
19717 | ||
19718 | ||
19719 | else | |
19720 | echo "$as_me: failed program was:" >&5 | |
19721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19722 | ||
19723 | echo "$as_me:$LINENO: result: no" >&5 | |
19724 | echo "${ECHO_T}no" >&6 | |
19725 | ||
19726 | ||
19727 | ||
19728 | fi | |
19729 | ||
19730 | rm -Rf build | |
19731 | ||
19732 | ||
19733 | ||
19734 | echo "$as_me:$LINENO: checking whether fls64() is available" >&5 | |
19735 | echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6 | |
19736 | ||
19737 | ||
19738 | cat >conftest.c <<_ACEOF | |
19739 | /* confdefs.h. */ | |
19740 | _ACEOF | |
19741 | cat confdefs.h >>conftest.$ac_ext | |
19742 | cat >>conftest.$ac_ext <<_ACEOF | |
19743 | /* end confdefs.h. */ | |
19744 | ||
19745 | ||
19746 | #include <linux/bitops.h> | |
19747 | ||
19748 | int | |
19749 | main (void) | |
19750 | { | |
19751 | ||
19752 | return fls64(0); | |
19753 | ||
19754 | ; | |
19755 | return 0; | |
19756 | } | |
19757 | ||
19758 | _ACEOF | |
19759 | ||
19760 | ||
19761 | rm -Rf build && mkdir -p build | |
19762 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19763 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19765 | (eval $ac_try) 2>&5 | |
19766 | ac_status=$? | |
19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19768 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19770 | (eval $ac_try) 2>&5 | |
19771 | ac_status=$? | |
19772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19773 | (exit $ac_status); }; }; then | |
19774 | ||
19775 | echo "$as_me:$LINENO: result: yes" >&5 | |
19776 | echo "${ECHO_T}yes" >&6 | |
19777 | ||
19778 | cat >>confdefs.h <<\_ACEOF | |
19779 | #define HAVE_FLS64 1 | |
19780 | _ACEOF | |
19781 | ||
19782 | ||
19783 | else | |
19784 | echo "$as_me: failed program was:" >&5 | |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19786 | ||
19787 | echo "$as_me:$LINENO: result: no" >&5 | |
19788 | echo "${ECHO_T}no" >&6 | |
19789 | ||
19790 | ||
19791 | ||
19792 | fi | |
19793 | ||
19794 | rm -Rf build | |
19795 | ||
19796 | ||
19797 | ||
19798 | ||
19799 | echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 | |
19800 | echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6 | |
19801 | grep -q -E '[[:space:]]device_create[[:space:]]' \ | |
19802 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19803 | rc=$? | |
19804 | if test $rc -ne 0; then | |
19805 | export=0 | |
19806 | for file in drivers/base/core.c; do | |
19807 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ | |
19808 | "$LINUX_OBJ/$file" 2>/dev/null | |
19809 | rc=$? | |
19810 | if test $rc -eq 0; then | |
19811 | export=1 | |
19812 | break; | |
19813 | fi | |
19814 | done | |
19815 | if test $export -eq 0; then | |
19816 | echo "$as_me:$LINENO: result: no" >&5 | |
19817 | echo "${ECHO_T}no" >&6 | |
19818 | ||
19819 | else | |
19820 | echo "$as_me:$LINENO: result: yes" >&5 | |
19821 | echo "${ECHO_T}yes" >&6 | |
19822 | ||
19823 | cat >>confdefs.h <<\_ACEOF | |
19824 | #define HAVE_DEVICE_CREATE 1 | |
19825 | _ACEOF | |
19826 | ||
19827 | fi | |
19828 | else | |
19829 | echo "$as_me:$LINENO: result: yes" >&5 | |
19830 | echo "${ECHO_T}yes" >&6 | |
19831 | ||
19832 | cat >>confdefs.h <<\_ACEOF | |
19833 | #define HAVE_DEVICE_CREATE 1 | |
19834 | _ACEOF | |
19835 | ||
19836 | fi | |
19837 | ||
19838 | ||
19839 | ||
19840 | echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 | |
19841 | echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6 | |
19842 | tmp_flags="$EXTRA_KCFLAGS" | |
19843 | EXTRA_KCFLAGS="-Werror" | |
19844 | ||
19845 | ||
19846 | cat >conftest.c <<_ACEOF | |
19847 | /* confdefs.h. */ | |
19848 | _ACEOF | |
19849 | cat confdefs.h >>conftest.$ac_ext | |
19850 | cat >>conftest.$ac_ext <<_ACEOF | |
19851 | /* end confdefs.h. */ | |
19852 | ||
19853 | ||
19854 | #include <linux/device.h> | |
19855 | ||
19856 | int | |
19857 | main (void) | |
19858 | { | |
19859 | ||
19860 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
19861 | ||
19862 | ; | |
19863 | return 0; | |
19864 | } | |
19865 | ||
19866 | _ACEOF | |
19867 | ||
19868 | ||
19869 | rm -Rf build && mkdir -p build | |
19870 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 19871 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19878 | (eval $ac_try) 2>&5 | |
19879 | ac_status=$? | |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19881 | (exit $ac_status); }; }; then | |
19882 | ||
19883 | echo "$as_me:$LINENO: result: yes" >&5 | |
19884 | echo "${ECHO_T}yes" >&6 | |
19885 | ||
19886 | cat >>confdefs.h <<\_ACEOF | |
19887 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
19888 | _ACEOF | |
19889 | ||
19890 | ||
19891 | else | |
19892 | echo "$as_me: failed program was:" >&5 | |
19893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19894 | ||
19895 | echo "$as_me:$LINENO: result: no" >&5 | |
19896 | echo "${ECHO_T}no" >&6 | |
19897 | ||
19898 | ||
19899 | ||
19900 | fi | |
19901 | ||
19902 | rm -Rf build | |
19903 | ||
19904 | ||
19905 | EXTRA_KCFLAGS="$tmp_flags" | |
19906 | ||
19907 | ||
19908 | echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 | |
19909 | echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6 | |
19910 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ | |
19911 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19912 | rc=$? | |
19913 | if test $rc -ne 0; then | |
19914 | export=0 | |
19915 | for file in drivers/base/class.c; do | |
19916 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ | |
19917 | "$LINUX_OBJ/$file" 2>/dev/null | |
19918 | rc=$? | |
19919 | if test $rc -eq 0; then | |
19920 | export=1 | |
19921 | break; | |
19922 | fi | |
19923 | done | |
19924 | if test $export -eq 0; then | |
19925 | echo "$as_me:$LINENO: result: no" >&5 | |
19926 | echo "${ECHO_T}no" >&6 | |
19927 | ||
19928 | else | |
19929 | echo "$as_me:$LINENO: result: yes" >&5 | |
19930 | echo "${ECHO_T}yes" >&6 | |
19931 | ||
19932 | cat >>confdefs.h <<\_ACEOF | |
19933 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
19934 | _ACEOF | |
19935 | ||
19936 | fi | |
19937 | else | |
19938 | echo "$as_me:$LINENO: result: yes" >&5 | |
19939 | echo "${ECHO_T}yes" >&6 | |
19940 | ||
19941 | cat >>confdefs.h <<\_ACEOF | |
19942 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
19943 | _ACEOF | |
19944 | ||
19945 | fi | |
19946 | ||
19947 | ||
19948 | ||
19949 | echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 | |
19950 | echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6 | |
19951 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ | |
19952 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19953 | rc=$? | |
19954 | if test $rc -ne 0; then | |
19955 | export=0 | |
19956 | for file in kernel/time.c; do | |
19957 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ | |
19958 | "$LINUX_OBJ/$file" 2>/dev/null | |
19959 | rc=$? | |
19960 | if test $rc -eq 0; then | |
19961 | export=1 | |
19962 | break; | |
19963 | fi | |
19964 | done | |
19965 | if test $export -eq 0; then | |
19966 | echo "$as_me:$LINENO: result: no" >&5 | |
19967 | echo "${ECHO_T}no" >&6 | |
19968 | ||
19969 | else | |
19970 | echo "$as_me:$LINENO: result: yes" >&5 | |
19971 | echo "${ECHO_T}yes" >&6 | |
19972 | ||
19973 | cat >>confdefs.h <<\_ACEOF | |
19974 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
19975 | _ACEOF | |
19976 | ||
19977 | fi | |
19978 | else | |
19979 | echo "$as_me:$LINENO: result: yes" >&5 | |
19980 | echo "${ECHO_T}yes" >&6 | |
19981 | ||
19982 | cat >>confdefs.h <<\_ACEOF | |
19983 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
19984 | _ACEOF | |
19985 | ||
19986 | fi | |
19987 | ||
19988 | ||
19989 | ||
19990 | echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 | |
19991 | echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6 | |
19992 | ||
19993 | ||
19994 | cat >conftest.c <<_ACEOF | |
19995 | /* confdefs.h. */ | |
19996 | _ACEOF | |
19997 | cat confdefs.h >>conftest.$ac_ext | |
19998 | cat >>conftest.$ac_ext <<_ACEOF | |
19999 | /* end confdefs.h. */ | |
20000 | ||
20001 | ||
20002 | #include <linux/time.h> | |
20003 | void set_normalized_timespec(struct timespec *ts, | |
20004 | time_t sec, long nsec) { } | |
20005 | ||
20006 | int | |
20007 | main (void) | |
20008 | { | |
20009 | ||
20010 | ; | |
20011 | return 0; | |
20012 | } | |
20013 | ||
20014 | _ACEOF | |
20015 | ||
20016 | ||
20017 | rm -Rf build && mkdir -p build | |
20018 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20019 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
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); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20026 | (eval $ac_try) 2>&5 | |
20027 | ac_status=$? | |
20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20029 | (exit $ac_status); }; }; then | |
20030 | ||
20031 | echo "$as_me:$LINENO: result: no" >&5 | |
20032 | echo "${ECHO_T}no" >&6 | |
20033 | ||
20034 | else | |
20035 | echo "$as_me: failed program was:" >&5 | |
20036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20037 | ||
20038 | echo "$as_me:$LINENO: result: yes" >&5 | |
20039 | echo "${ECHO_T}yes" >&6 | |
20040 | ||
20041 | cat >>confdefs.h <<\_ACEOF | |
20042 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
20043 | _ACEOF | |
20044 | ||
20045 | ||
20046 | ||
20047 | ||
20048 | fi | |
20049 | ||
20050 | rm -Rf build | |
20051 | ||
20052 | ||
20053 | ||
20054 | ||
20055 | echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 | |
20056 | echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6 | |
20057 | ||
20058 | ||
20059 | cat >conftest.c <<_ACEOF | |
20060 | /* confdefs.h. */ | |
20061 | _ACEOF | |
20062 | cat confdefs.h >>conftest.$ac_ext | |
20063 | cat >>conftest.$ac_ext <<_ACEOF | |
20064 | /* end confdefs.h. */ | |
20065 | ||
20066 | ||
20067 | #include <linux/time.h> | |
20068 | ||
20069 | int | |
20070 | main (void) | |
20071 | { | |
20072 | ||
20073 | struct timespec a, b, c = { 0 }; | |
20074 | c = timespec_sub(a, b); | |
20075 | ||
20076 | ; | |
20077 | return 0; | |
20078 | } | |
20079 | ||
20080 | _ACEOF | |
20081 | ||
20082 | ||
20083 | rm -Rf build && mkdir -p build | |
20084 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20085 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20087 | (eval $ac_try) 2>&5 | |
20088 | ac_status=$? | |
20089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20090 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20092 | (eval $ac_try) 2>&5 | |
20093 | ac_status=$? | |
20094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20095 | (exit $ac_status); }; }; then | |
20096 | ||
20097 | echo "$as_me:$LINENO: result: yes" >&5 | |
20098 | echo "${ECHO_T}yes" >&6 | |
20099 | ||
20100 | cat >>confdefs.h <<\_ACEOF | |
20101 | #define HAVE_TIMESPEC_SUB 1 | |
20102 | _ACEOF | |
20103 | ||
20104 | ||
20105 | else | |
20106 | echo "$as_me: failed program was:" >&5 | |
20107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20108 | ||
20109 | echo "$as_me:$LINENO: result: no" >&5 | |
20110 | echo "${ECHO_T}no" >&6 | |
20111 | ||
20112 | ||
20113 | ||
20114 | fi | |
20115 | ||
20116 | rm -Rf build | |
20117 | ||
20118 | ||
20119 | ||
20120 | ||
20121 | echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 | |
20122 | echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6 | |
20123 | ||
20124 | ||
20125 | cat >conftest.c <<_ACEOF | |
20126 | /* confdefs.h. */ | |
20127 | _ACEOF | |
20128 | cat confdefs.h >>conftest.$ac_ext | |
20129 | cat >>conftest.$ac_ext <<_ACEOF | |
20130 | /* end confdefs.h. */ | |
20131 | ||
20132 | ||
20133 | #include <linux/utsname.h> | |
20134 | ||
20135 | int | |
20136 | main (void) | |
20137 | { | |
20138 | ||
20139 | struct new_utsname *a = init_utsname(); | |
20140 | ||
20141 | ; | |
20142 | return 0; | |
20143 | } | |
20144 | ||
20145 | _ACEOF | |
20146 | ||
20147 | ||
20148 | rm -Rf build && mkdir -p build | |
20149 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20150 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20152 | (eval $ac_try) 2>&5 | |
20153 | ac_status=$? | |
20154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20155 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20157 | (eval $ac_try) 2>&5 | |
20158 | ac_status=$? | |
20159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20160 | (exit $ac_status); }; }; then | |
20161 | ||
20162 | echo "$as_me:$LINENO: result: yes" >&5 | |
20163 | echo "${ECHO_T}yes" >&6 | |
20164 | ||
20165 | cat >>confdefs.h <<\_ACEOF | |
20166 | #define HAVE_INIT_UTSNAME 1 | |
20167 | _ACEOF | |
20168 | ||
20169 | ||
20170 | else | |
20171 | echo "$as_me: failed program was:" >&5 | |
20172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20173 | ||
20174 | echo "$as_me:$LINENO: result: no" >&5 | |
20175 | echo "${ECHO_T}no" >&6 | |
20176 | ||
20177 | ||
20178 | ||
20179 | fi | |
20180 | ||
20181 | rm -Rf build | |
20182 | ||
20183 | ||
20184 | ||
20185 | ||
20186 | echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 | |
20187 | echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6 | |
20188 | ||
20189 | ||
20190 | cat >conftest.c <<_ACEOF | |
20191 | /* confdefs.h. */ | |
20192 | _ACEOF | |
20193 | cat confdefs.h >>conftest.$ac_ext | |
20194 | cat >>conftest.$ac_ext <<_ACEOF | |
20195 | /* end confdefs.h. */ | |
20196 | ||
20197 | ||
20198 | #include <linux/fdtable.h> | |
20199 | ||
20200 | int | |
20201 | main (void) | |
20202 | { | |
20203 | ||
20204 | return 0; | |
20205 | ||
20206 | ; | |
20207 | return 0; | |
20208 | } | |
20209 | ||
20210 | _ACEOF | |
20211 | ||
20212 | ||
20213 | rm -Rf build && mkdir -p build | |
20214 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20215 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20217 | (eval $ac_try) 2>&5 | |
20218 | ac_status=$? | |
20219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20220 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20222 | (eval $ac_try) 2>&5 | |
20223 | ac_status=$? | |
20224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20225 | (exit $ac_status); }; }; then | |
20226 | ||
20227 | ||
20228 | cat >>confdefs.h <<\_ACEOF | |
20229 | #define HAVE_FDTABLE_HEADER 1 | |
20230 | _ACEOF | |
20231 | ||
20232 | echo "$as_me:$LINENO: result: yes" >&5 | |
20233 | echo "${ECHO_T}yes" >&6 | |
20234 | ||
20235 | ||
20236 | else | |
20237 | echo "$as_me: failed program was:" >&5 | |
20238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20239 | ||
20240 | echo "$as_me:$LINENO: result: no" >&5 | |
20241 | echo "${ECHO_T}no" >&6 | |
20242 | ||
20243 | ||
20244 | ||
20245 | ||
20246 | fi | |
20247 | ||
20248 | rm -Rf build | |
20249 | ||
20250 | ||
20251 | ||
20252 | ||
20253 | ||
20254 | echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 | |
20255 | echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6 | |
20256 | ||
20257 | ||
20258 | cat >conftest.c <<_ACEOF | |
20259 | /* confdefs.h. */ | |
20260 | _ACEOF | |
20261 | cat confdefs.h >>conftest.$ac_ext | |
20262 | cat >>conftest.$ac_ext <<_ACEOF | |
20263 | /* end confdefs.h. */ | |
20264 | ||
20265 | ||
20266 | #include <linux/sched.h> | |
20267 | #include <linux/file.h> | |
20268 | #ifdef HAVE_FDTABLE_HEADER | |
20269 | #include <linux/fdtable.h> | |
20270 | #endif | |
20271 | ||
20272 | int | |
20273 | main (void) | |
20274 | { | |
20275 | ||
20276 | struct files_struct *files = current->files; | |
20277 | struct fdtable *fdt = files_fdtable(files); | |
20278 | ||
20279 | ; | |
20280 | return 0; | |
20281 | } | |
20282 | ||
20283 | _ACEOF | |
20284 | ||
20285 | ||
20286 | rm -Rf build && mkdir -p build | |
20287 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20288 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20290 | (eval $ac_try) 2>&5 | |
20291 | ac_status=$? | |
20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20293 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20295 | (eval $ac_try) 2>&5 | |
20296 | ac_status=$? | |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20298 | (exit $ac_status); }; }; then | |
20299 | ||
20300 | echo "$as_me:$LINENO: result: yes" >&5 | |
20301 | echo "${ECHO_T}yes" >&6 | |
20302 | ||
20303 | cat >>confdefs.h <<\_ACEOF | |
20304 | #define HAVE_FILES_FDTABLE 1 | |
20305 | _ACEOF | |
20306 | ||
20307 | ||
20308 | else | |
20309 | echo "$as_me: failed program was:" >&5 | |
20310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20311 | ||
20312 | echo "$as_me:$LINENO: result: no" >&5 | |
20313 | echo "${ECHO_T}no" >&6 | |
20314 | ||
20315 | ||
20316 | ||
20317 | fi | |
20318 | ||
20319 | rm -Rf build | |
20320 | ||
20321 | ||
20322 | ||
20323 | ||
20324 | echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 | |
20325 | echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6 | |
20326 | ||
20327 | ||
20328 | cat >conftest.c <<_ACEOF | |
20329 | /* confdefs.h. */ | |
20330 | _ACEOF | |
20331 | cat confdefs.h >>conftest.$ac_ext | |
20332 | cat >>conftest.$ac_ext <<_ACEOF | |
20333 | /* end confdefs.h. */ | |
20334 | ||
20335 | ||
20336 | #include <linux/uaccess.h> | |
20337 | ||
20338 | int | |
20339 | main (void) | |
20340 | { | |
20341 | ||
20342 | return 0; | |
20343 | ||
20344 | ; | |
20345 | return 0; | |
20346 | } | |
20347 | ||
20348 | _ACEOF | |
20349 | ||
20350 | ||
20351 | rm -Rf build && mkdir -p build | |
20352 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20353 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
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); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; }; then | |
20364 | ||
20365 | ||
20366 | cat >>confdefs.h <<\_ACEOF | |
20367 | #define HAVE_UACCESS_HEADER 1 | |
20368 | _ACEOF | |
20369 | ||
20370 | echo "$as_me:$LINENO: result: yes" >&5 | |
20371 | echo "${ECHO_T}yes" >&6 | |
20372 | ||
20373 | ||
20374 | else | |
20375 | echo "$as_me: failed program was:" >&5 | |
20376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20377 | ||
20378 | echo "$as_me:$LINENO: result: no" >&5 | |
20379 | echo "${ECHO_T}no" >&6 | |
20380 | ||
20381 | ||
20382 | ||
20383 | ||
20384 | fi | |
20385 | ||
20386 | rm -Rf build | |
20387 | ||
20388 | ||
20389 | ||
20390 | ||
20391 | ||
20392 | echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 | |
20393 | echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6 | |
20394 | ||
20395 | ||
20396 | cat >conftest.c <<_ACEOF | |
20397 | /* confdefs.h. */ | |
20398 | _ACEOF | |
20399 | cat confdefs.h >>conftest.$ac_ext | |
20400 | cat >>conftest.$ac_ext <<_ACEOF | |
20401 | /* end confdefs.h. */ | |
20402 | ||
20403 | ||
20404 | #include <linux/slab.h> | |
20405 | ||
20406 | int | |
20407 | main (void) | |
20408 | { | |
20409 | ||
20410 | void *a = kmalloc_node(1, GFP_KERNEL, 0); | |
20411 | ||
20412 | ; | |
20413 | return 0; | |
20414 | } | |
20415 | ||
20416 | _ACEOF | |
20417 | ||
20418 | ||
20419 | rm -Rf build && mkdir -p build | |
20420 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20421 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20423 | (eval $ac_try) 2>&5 | |
20424 | ac_status=$? | |
20425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20426 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20428 | (eval $ac_try) 2>&5 | |
20429 | ac_status=$? | |
20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20431 | (exit $ac_status); }; }; then | |
20432 | ||
20433 | echo "$as_me:$LINENO: result: yes" >&5 | |
20434 | echo "${ECHO_T}yes" >&6 | |
20435 | ||
20436 | cat >>confdefs.h <<\_ACEOF | |
20437 | #define HAVE_KMALLOC_NODE 1 | |
20438 | _ACEOF | |
20439 | ||
20440 | ||
20441 | else | |
20442 | echo "$as_me: failed program was:" >&5 | |
20443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20444 | ||
20445 | echo "$as_me:$LINENO: result: no" >&5 | |
20446 | echo "${ECHO_T}no" >&6 | |
20447 | ||
20448 | ||
20449 | ||
20450 | fi | |
20451 | ||
20452 | rm -Rf build | |
20453 | ||
20454 | ||
20455 | ||
20456 | ||
20457 | echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 | |
20458 | echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6 | |
20459 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
20460 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20461 | rc=$? | |
20462 | if test $rc -ne 0; then | |
20463 | export=0 | |
20464 | for file in ; do | |
20465 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
20466 | "$LINUX_OBJ/$file" 2>/dev/null | |
20467 | rc=$? | |
20468 | if test $rc -eq 0; then | |
20469 | export=1 | |
20470 | break; | |
20471 | fi | |
20472 | done | |
20473 | if test $export -eq 0; then | |
20474 | echo "$as_me:$LINENO: result: no" >&5 | |
20475 | echo "${ECHO_T}no" >&6 | |
20476 | ||
20477 | else | |
20478 | echo "$as_me:$LINENO: result: yes" >&5 | |
20479 | echo "${ECHO_T}yes" >&6 | |
20480 | ||
20481 | cat >>confdefs.h <<\_ACEOF | |
20482 | #define HAVE_MONOTONIC_CLOCK 1 | |
20483 | _ACEOF | |
20484 | ||
20485 | fi | |
20486 | else | |
20487 | echo "$as_me:$LINENO: result: yes" >&5 | |
20488 | echo "${ECHO_T}yes" >&6 | |
20489 | ||
20490 | cat >>confdefs.h <<\_ACEOF | |
20491 | #define HAVE_MONOTONIC_CLOCK 1 | |
20492 | _ACEOF | |
20493 | ||
20494 | fi | |
20495 | ||
20496 | ||
20497 | ||
20498 | echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
20499 | echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6 | |
20500 | ||
20501 | ||
20502 | cat >conftest.c <<_ACEOF | |
20503 | /* confdefs.h. */ | |
20504 | _ACEOF | |
20505 | cat confdefs.h >>conftest.$ac_ext | |
20506 | cat >>conftest.$ac_ext <<_ACEOF | |
20507 | /* end confdefs.h. */ | |
20508 | ||
20509 | ||
20510 | #include <linux/fs.h> | |
20511 | #include <linux/mutex.h> | |
20512 | ||
20513 | int | |
20514 | main (void) | |
20515 | { | |
20516 | ||
20517 | struct inode i; | |
20518 | mutex_init(&i.i_mutex); | |
20519 | ||
20520 | ; | |
20521 | return 0; | |
20522 | } | |
20523 | ||
20524 | _ACEOF | |
20525 | ||
20526 | ||
20527 | rm -Rf build && mkdir -p build | |
20528 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20529 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20531 | (eval $ac_try) 2>&5 | |
20532 | ac_status=$? | |
20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20534 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20536 | (eval $ac_try) 2>&5 | |
20537 | ac_status=$? | |
20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20539 | (exit $ac_status); }; }; then | |
20540 | ||
20541 | echo "$as_me:$LINENO: result: yes" >&5 | |
20542 | echo "${ECHO_T}yes" >&6 | |
20543 | ||
20544 | cat >>confdefs.h <<\_ACEOF | |
20545 | #define HAVE_INODE_I_MUTEX 1 | |
20546 | _ACEOF | |
20547 | ||
20548 | ||
20549 | else | |
20550 | echo "$as_me: failed program was:" >&5 | |
20551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20552 | ||
20553 | echo "$as_me:$LINENO: result: no" >&5 | |
20554 | echo "${ECHO_T}no" >&6 | |
20555 | ||
20556 | ||
20557 | ||
20558 | fi | |
20559 | ||
20560 | rm -Rf build | |
20561 | ||
20562 | ||
20563 | ||
20564 | ||
20565 | echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 | |
20566 | echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6 | |
20567 | ||
20568 | ||
20569 | cat >conftest.c <<_ACEOF | |
20570 | /* confdefs.h. */ | |
20571 | _ACEOF | |
20572 | cat confdefs.h >>conftest.$ac_ext | |
20573 | cat >>conftest.$ac_ext <<_ACEOF | |
20574 | /* end confdefs.h. */ | |
20575 | ||
20576 | ||
20577 | #include <linux/mutex.h> | |
20578 | ||
20579 | int | |
20580 | main (void) | |
20581 | { | |
20582 | ||
20583 | struct mutex mutex; | |
20584 | mutex_init(&mutex); | |
20585 | mutex_lock_nested(&mutex, 0); | |
20586 | ||
20587 | ; | |
20588 | return 0; | |
20589 | } | |
20590 | ||
20591 | _ACEOF | |
20592 | ||
20593 | ||
20594 | rm -Rf build && mkdir -p build | |
20595 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20596 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20598 | (eval $ac_try) 2>&5 | |
20599 | ac_status=$? | |
20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20601 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20603 | (eval $ac_try) 2>&5 | |
20604 | ac_status=$? | |
20605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20606 | (exit $ac_status); }; }; then | |
20607 | ||
20608 | echo "$as_me:$LINENO: result: yes" >&5 | |
20609 | echo "${ECHO_T}yes" >&6 | |
20610 | ||
20611 | cat >>confdefs.h <<\_ACEOF | |
20612 | #define HAVE_MUTEX_LOCK_NESTED 1 | |
20613 | _ACEOF | |
20614 | ||
20615 | ||
20616 | else | |
20617 | echo "$as_me: failed program was:" >&5 | |
20618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20619 | ||
20620 | echo "$as_me:$LINENO: result: no" >&5 | |
20621 | echo "${ECHO_T}no" >&6 | |
20622 | ||
20623 | ||
20624 | ||
20625 | fi | |
20626 | ||
20627 | rm -Rf build | |
20628 | ||
20629 | ||
20630 | ||
20631 | ||
20632 | echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5 | |
20633 | echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6 | |
20634 | grep -q -E '[[:space:]]div64_64[[:space:]]' \ | |
20635 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20636 | rc=$? | |
20637 | if test $rc -ne 0; then | |
20638 | export=0 | |
20639 | for file in ; do | |
20640 | grep -q -E "EXPORT_SYMBOL.*(div64_64)" \ | |
20641 | "$LINUX_OBJ/$file" 2>/dev/null | |
20642 | rc=$? | |
20643 | if test $rc -eq 0; then | |
20644 | export=1 | |
20645 | break; | |
20646 | fi | |
20647 | done | |
20648 | if test $export -eq 0; then | |
20649 | echo "$as_me:$LINENO: result: no" >&5 | |
20650 | echo "${ECHO_T}no" >&6 | |
20651 | ||
20652 | else | |
20653 | echo "$as_me:$LINENO: result: yes" >&5 | |
20654 | echo "${ECHO_T}yes" >&6 | |
20655 | ||
20656 | cat >>confdefs.h <<\_ACEOF | |
20657 | #define HAVE_DIV64_64 1 | |
20658 | _ACEOF | |
20659 | ||
20660 | fi | |
20661 | else | |
20662 | echo "$as_me:$LINENO: result: yes" >&5 | |
20663 | echo "${ECHO_T}yes" >&6 | |
20664 | ||
20665 | cat >>confdefs.h <<\_ACEOF | |
20666 | #define HAVE_DIV64_64 1 | |
20667 | _ACEOF | |
20668 | ||
20669 | fi | |
20670 | ||
20671 | ||
20672 | ||
20673 | echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5 | |
20674 | echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6 | |
20675 | grep -q -E '[[:space:]]div64_u64[[:space:]]' \ | |
20676 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20677 | rc=$? | |
20678 | if test $rc -ne 0; then | |
20679 | export=0 | |
20680 | for file in ; do | |
20681 | grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \ | |
20682 | "$LINUX_OBJ/$file" 2>/dev/null | |
20683 | rc=$? | |
20684 | if test $rc -eq 0; then | |
20685 | export=1 | |
20686 | break; | |
20687 | fi | |
20688 | done | |
20689 | if test $export -eq 0; then | |
20690 | echo "$as_me:$LINENO: result: no" >&5 | |
20691 | echo "${ECHO_T}no" >&6 | |
20692 | ||
20693 | else | |
20694 | echo "$as_me:$LINENO: result: yes" >&5 | |
20695 | echo "${ECHO_T}yes" >&6 | |
20696 | ||
20697 | cat >>confdefs.h <<\_ACEOF | |
20698 | #define HAVE_DIV64_U64 1 | |
20699 | _ACEOF | |
20700 | ||
20701 | fi | |
20702 | else | |
20703 | echo "$as_me:$LINENO: result: yes" >&5 | |
20704 | echo "${ECHO_T}yes" >&6 | |
20705 | ||
20706 | cat >>confdefs.h <<\_ACEOF | |
20707 | #define HAVE_DIV64_U64 1 | |
20708 | _ACEOF | |
20709 | ||
20710 | fi | |
20711 | ||
20712 | ||
20713 | ||
20714 | echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 | |
20715 | echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6 | |
20716 | ||
20717 | ||
20718 | cat >conftest.c <<_ACEOF | |
20719 | /* confdefs.h. */ | |
20720 | _ACEOF | |
20721 | cat confdefs.h >>conftest.$ac_ext | |
20722 | cat >>conftest.$ac_ext <<_ACEOF | |
20723 | /* end confdefs.h. */ | |
20724 | ||
20725 | ||
20726 | #include <linux/smp.h> | |
20727 | ||
20728 | int | |
20729 | main (void) | |
20730 | { | |
20731 | ||
20732 | on_each_cpu(NULL, NULL, 0); | |
20733 | ||
20734 | ; | |
20735 | return 0; | |
20736 | } | |
20737 | ||
20738 | _ACEOF | |
20739 | ||
20740 | ||
20741 | rm -Rf build && mkdir -p build | |
20742 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 20743 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
20744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20745 | (eval $ac_try) 2>&5 | |
20746 | ac_status=$? | |
20747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20748 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20750 | (eval $ac_try) 2>&5 | |
20751 | ac_status=$? | |
20752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20753 | (exit $ac_status); }; }; then | |
20754 | ||
20755 | echo "$as_me:$LINENO: result: yes" >&5 | |
20756 | echo "${ECHO_T}yes" >&6 | |
20757 | ||
20758 | cat >>confdefs.h <<\_ACEOF | |
20759 | #define HAVE_3ARGS_ON_EACH_CPU 1 | |
20760 | _ACEOF | |
20761 | ||
20762 | ||
20763 | else | |
20764 | echo "$as_me: failed program was:" >&5 | |
20765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20766 | ||
20767 | echo "$as_me:$LINENO: result: no" >&5 | |
20768 | echo "${ECHO_T}no" >&6 | |
20769 | ||
20770 | ||
20771 | ||
20772 | fi | |
20773 | ||
20774 | rm -Rf build | |
20775 | ||
20776 | ||
20777 | ||
20778 | ||
20779 | echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 | |
20780 | echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6 | |
20781 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
20782 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20783 | rc=$? | |
20784 | if test $rc -ne 0; then | |
20785 | export=0 | |
20786 | for file in ; do | |
20787 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
20788 | "$LINUX_OBJ/$file" 2>/dev/null | |
20789 | rc=$? | |
20790 | if test $rc -eq 0; then | |
20791 | export=1 | |
20792 | break; | |
20793 | fi | |
20794 | done | |
20795 | if test $export -eq 0; then | |
20796 | echo "$as_me:$LINENO: result: no" >&5 | |
20797 | echo "${ECHO_T}no" >&6 | |
20798 | ||
20799 | else | |
20800 | echo "$as_me:$LINENO: result: yes" >&5 | |
20801 | echo "${ECHO_T}yes" >&6 | |
20802 | ||
20803 | cat >>confdefs.h <<\_ACEOF | |
20804 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
20805 | _ACEOF | |
20806 | ||
20807 | fi | |
20808 | else | |
20809 | echo "$as_me:$LINENO: result: yes" >&5 | |
20810 | echo "${ECHO_T}yes" >&6 | |
20811 | ||
20812 | cat >>confdefs.h <<\_ACEOF | |
20813 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
20814 | _ACEOF | |
20815 | ||
20816 | fi | |
20817 | ||
20818 | ||
20819 | ||
20820 | echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 | |
20821 | echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6 | |
20822 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ | |
20823 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20824 | rc=$? | |
20825 | if test $rc -ne 0; then | |
20826 | export=0 | |
20827 | for file in ; do | |
20828 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
20829 | "$LINUX_OBJ/$file" 2>/dev/null | |
20830 | rc=$? | |
20831 | if test $rc -eq 0; then | |
20832 | export=1 | |
20833 | break; | |
20834 | fi | |
20835 | done | |
20836 | if test $export -eq 0; then | |
20837 | echo "$as_me:$LINENO: result: no" >&5 | |
20838 | echo "${ECHO_T}no" >&6 | |
20839 | ||
20840 | else | |
20841 | echo "$as_me:$LINENO: result: yes" >&5 | |
20842 | echo "${ECHO_T}yes" >&6 | |
20843 | ||
20844 | cat >>confdefs.h <<\_ACEOF | |
20845 | #define HAVE_GET_VMALLOC_INFO 1 | |
20846 | _ACEOF | |
20847 | ||
20848 | fi | |
20849 | else | |
20850 | echo "$as_me:$LINENO: result: yes" >&5 | |
20851 | echo "${ECHO_T}yes" >&6 | |
20852 | ||
20853 | cat >>confdefs.h <<\_ACEOF | |
20854 | #define HAVE_GET_VMALLOC_INFO 1 | |
20855 | _ACEOF | |
20856 | ||
20857 | fi | |
20858 | ||
20859 | ||
20860 | ||
20861 | echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 | |
20862 | echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6 | |
20863 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
20864 | rc=$? | |
20865 | if test $rc -eq 0; then | |
20866 | echo "$as_me:$LINENO: result: yes" >&5 | |
20867 | echo "${ECHO_T}yes" >&6 | |
20868 | ||
20869 | cat >>confdefs.h <<\_ACEOF | |
20870 | #define HAVE_PGDAT_HELPERS 1 | |
20871 | _ACEOF | |
20872 | ||
20873 | else | |
20874 | echo "$as_me:$LINENO: result: no" >&5 | |
20875 | echo "${ECHO_T}no" >&6 | |
20876 | fi | |
20877 | ||
20878 | ||
20879 | echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 | |
20880 | echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6 | |
20881 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
20882 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20883 | rc=$? | |
20884 | if test $rc -ne 0; then | |
20885 | export=0 | |
20886 | for file in ; do | |
20887 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
20888 | "$LINUX_OBJ/$file" 2>/dev/null | |
20889 | rc=$? | |
20890 | if test $rc -eq 0; then | |
20891 | export=1 | |
20892 | break; | |
20893 | fi | |
20894 | done | |
20895 | if test $export -eq 0; then | |
20896 | echo "$as_me:$LINENO: result: no" >&5 | |
20897 | echo "${ECHO_T}no" >&6 | |
20898 | ||
20899 | else | |
20900 | echo "$as_me:$LINENO: result: yes" >&5 | |
20901 | echo "${ECHO_T}yes" >&6 | |
20902 | ||
20903 | cat >>confdefs.h <<\_ACEOF | |
20904 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
20905 | _ACEOF | |
20906 | ||
20907 | fi | |
20908 | else | |
20909 | echo "$as_me:$LINENO: result: yes" >&5 | |
20910 | echo "${ECHO_T}yes" >&6 | |
20911 | ||
20912 | cat >>confdefs.h <<\_ACEOF | |
20913 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
20914 | _ACEOF | |
20915 | ||
20916 | fi | |
20917 | ||
20918 | ||
20919 | ||
20920 | echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 | |
20921 | echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6 | |
20922 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
20923 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20924 | rc=$? | |
20925 | if test $rc -ne 0; then | |
20926 | export=0 | |
20927 | for file in ; do | |
20928 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
20929 | "$LINUX_OBJ/$file" 2>/dev/null | |
20930 | rc=$? | |
20931 | if test $rc -eq 0; then | |
20932 | export=1 | |
20933 | break; | |
20934 | fi | |
20935 | done | |
20936 | if test $export -eq 0; then | |
20937 | echo "$as_me:$LINENO: result: no" >&5 | |
20938 | echo "${ECHO_T}no" >&6 | |
20939 | ||
20940 | else | |
20941 | echo "$as_me:$LINENO: result: yes" >&5 | |
20942 | echo "${ECHO_T}yes" >&6 | |
20943 | ||
20944 | cat >>confdefs.h <<\_ACEOF | |
20945 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
20946 | _ACEOF | |
20947 | ||
20948 | fi | |
20949 | else | |
20950 | echo "$as_me:$LINENO: result: yes" >&5 | |
20951 | echo "${ECHO_T}yes" >&6 | |
20952 | ||
20953 | cat >>confdefs.h <<\_ACEOF | |
20954 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
20955 | _ACEOF | |
20956 | ||
20957 | fi | |
20958 | ||
20959 | ||
20960 | ||
20961 | echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 | |
20962 | echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6 | |
20963 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
20964 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20965 | rc=$? | |
20966 | if test $rc -ne 0; then | |
20967 | export=0 | |
20968 | for file in ; do | |
20969 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
20970 | "$LINUX_OBJ/$file" 2>/dev/null | |
20971 | rc=$? | |
20972 | if test $rc -eq 0; then | |
20973 | export=1 | |
20974 | break; | |
20975 | fi | |
20976 | done | |
20977 | if test $export -eq 0; then | |
20978 | echo "$as_me:$LINENO: result: no" >&5 | |
20979 | echo "${ECHO_T}no" >&6 | |
20980 | ||
20981 | else | |
20982 | echo "$as_me:$LINENO: result: yes" >&5 | |
20983 | echo "${ECHO_T}yes" >&6 | |
20984 | ||
20985 | cat >>confdefs.h <<\_ACEOF | |
20986 | #define HAVE_NEXT_ZONE 1 | |
20987 | _ACEOF | |
20988 | ||
20989 | fi | |
20990 | else | |
20991 | echo "$as_me:$LINENO: result: yes" >&5 | |
20992 | echo "${ECHO_T}yes" >&6 | |
20993 | ||
20994 | cat >>confdefs.h <<\_ACEOF | |
20995 | #define HAVE_NEXT_ZONE 1 | |
20996 | _ACEOF | |
20997 | ||
20998 | fi | |
20999 | ||
21000 | ||
21001 | ||
21002 | echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 | |
21003 | echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6 | |
21004 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ | |
21005 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21006 | rc=$? | |
21007 | if test $rc -ne 0; then | |
21008 | export=0 | |
21009 | for file in ; do | |
21010 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
21011 | "$LINUX_OBJ/$file" 2>/dev/null | |
21012 | rc=$? | |
21013 | if test $rc -eq 0; then | |
21014 | export=1 | |
21015 | break; | |
21016 | fi | |
21017 | done | |
21018 | if test $export -eq 0; then | |
21019 | echo "$as_me:$LINENO: result: no" >&5 | |
21020 | echo "${ECHO_T}no" >&6 | |
21021 | ||
21022 | else | |
21023 | echo "$as_me:$LINENO: result: yes" >&5 | |
21024 | echo "${ECHO_T}yes" >&6 | |
21025 | ||
21026 | cat >>confdefs.h <<\_ACEOF | |
21027 | #define HAVE_PGDAT_LIST 1 | |
21028 | _ACEOF | |
21029 | ||
21030 | fi | |
21031 | else | |
21032 | echo "$as_me:$LINENO: result: yes" >&5 | |
21033 | echo "${ECHO_T}yes" >&6 | |
21034 | ||
21035 | cat >>confdefs.h <<\_ACEOF | |
21036 | #define HAVE_PGDAT_LIST 1 | |
21037 | _ACEOF | |
21038 | ||
21039 | fi | |
21040 | ||
21041 | ||
21042 | ||
6ae7fef5 BB |
21043 | echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 |
21044 | echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6 | |
86933a6e | 21045 | |
86933a6e | 21046 | |
6ae7fef5 BB |
21047 | cat >conftest.c <<_ACEOF |
21048 | /* confdefs.h. */ | |
86933a6e | 21049 | _ACEOF |
6ae7fef5 BB |
21050 | cat confdefs.h >>conftest.$ac_ext |
21051 | cat >>conftest.$ac_ext <<_ACEOF | |
21052 | /* end confdefs.h. */ | |
21053 | ||
21054 | ||
21055 | #include <linux/mm.h> | |
21056 | ||
21057 | int | |
21058 | main (void) | |
21059 | { | |
21060 | ||
21061 | unsigned long state; | |
21062 | state = global_page_state(0); | |
21063 | ||
21064 | ; | |
21065 | return 0; | |
21066 | } | |
21067 | ||
21068 | _ACEOF | |
21069 | ||
21070 | ||
21071 | rm -Rf build && mkdir -p build | |
21072 | echo "obj-m := conftest.o" >build/Makefile | |
21073 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21075 | (eval $ac_try) 2>&5 | |
21076 | ac_status=$? | |
21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21078 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21080 | (eval $ac_try) 2>&5 | |
21081 | ac_status=$? | |
21082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21083 | (exit $ac_status); }; }; then | |
86933a6e | 21084 | |
86933a6e BB |
21085 | echo "$as_me:$LINENO: result: yes" >&5 |
21086 | echo "${ECHO_T}yes" >&6 | |
21087 | ||
21088 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21089 | #define HAVE_GLOBAL_PAGE_STATE 1 |
86933a6e BB |
21090 | _ACEOF |
21091 | ||
6ae7fef5 BB |
21092 | |
21093 | else | |
21094 | echo "$as_me: failed program was:" >&5 | |
21095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21096 | ||
21097 | echo "$as_me:$LINENO: result: no" >&5 | |
21098 | echo "${ECHO_T}no" >&6 | |
21099 | ||
21100 | ||
21101 | ||
21102 | fi | |
21103 | ||
21104 | rm -Rf build | |
86933a6e BB |
21105 | |
21106 | ||
21107 | ||
6ae7fef5 BB |
21108 | |
21109 | echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 | |
21110 | echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6 | |
86933a6e BB |
21111 | |
21112 | ||
21113 | cat >conftest.c <<_ACEOF | |
21114 | /* confdefs.h. */ | |
21115 | _ACEOF | |
21116 | cat confdefs.h >>conftest.$ac_ext | |
21117 | cat >>conftest.$ac_ext <<_ACEOF | |
21118 | /* end confdefs.h. */ | |
21119 | ||
21120 | ||
6ae7fef5 | 21121 | #include <linux/mm.h> |
86933a6e BB |
21122 | |
21123 | int | |
21124 | main (void) | |
21125 | { | |
21126 | ||
6ae7fef5 BB |
21127 | enum zone_stat_item zsi; |
21128 | zsi = NR_FREE_PAGES; | |
86933a6e BB |
21129 | |
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | ||
21134 | _ACEOF | |
21135 | ||
21136 | ||
21137 | rm -Rf build && mkdir -p build | |
21138 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21139 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21141 | (eval $ac_try) 2>&5 | |
21142 | ac_status=$? | |
21143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21144 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21146 | (eval $ac_try) 2>&5 | |
21147 | ac_status=$? | |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21149 | (exit $ac_status); }; }; then | |
21150 | ||
21151 | echo "$as_me:$LINENO: result: yes" >&5 | |
21152 | echo "${ECHO_T}yes" >&6 | |
21153 | ||
21154 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21155 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
86933a6e BB |
21156 | _ACEOF |
21157 | ||
21158 | ||
21159 | else | |
21160 | echo "$as_me: failed program was:" >&5 | |
21161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21162 | ||
21163 | echo "$as_me:$LINENO: result: no" >&5 | |
21164 | echo "${ECHO_T}no" >&6 | |
21165 | ||
21166 | ||
21167 | ||
21168 | fi | |
21169 | ||
21170 | rm -Rf build | |
21171 | ||
21172 | ||
21173 | ||
21174 | ||
6ae7fef5 BB |
21175 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
21176 | echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6 | |
86933a6e BB |
21177 | |
21178 | ||
21179 | cat >conftest.c <<_ACEOF | |
21180 | /* confdefs.h. */ | |
21181 | _ACEOF | |
21182 | cat confdefs.h >>conftest.$ac_ext | |
21183 | cat >>conftest.$ac_ext <<_ACEOF | |
21184 | /* end confdefs.h. */ | |
21185 | ||
21186 | ||
6ae7fef5 | 21187 | #include <linux/mm.h> |
86933a6e BB |
21188 | |
21189 | int | |
21190 | main (void) | |
21191 | { | |
21192 | ||
6ae7fef5 BB |
21193 | enum zone_stat_item zsi; |
21194 | zsi = NR_INACTIVE; | |
86933a6e BB |
21195 | |
21196 | ; | |
21197 | return 0; | |
21198 | } | |
21199 | ||
21200 | _ACEOF | |
21201 | ||
21202 | ||
21203 | rm -Rf build && mkdir -p build | |
21204 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21205 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21207 | (eval $ac_try) 2>&5 | |
21208 | ac_status=$? | |
21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21210 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21212 | (eval $ac_try) 2>&5 | |
21213 | ac_status=$? | |
21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21215 | (exit $ac_status); }; }; then | |
21216 | ||
21217 | echo "$as_me:$LINENO: result: yes" >&5 | |
21218 | echo "${ECHO_T}yes" >&6 | |
21219 | ||
21220 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21221 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
86933a6e BB |
21222 | _ACEOF |
21223 | ||
21224 | ||
21225 | else | |
21226 | echo "$as_me: failed program was:" >&5 | |
21227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21228 | ||
21229 | echo "$as_me:$LINENO: result: no" >&5 | |
21230 | echo "${ECHO_T}no" >&6 | |
21231 | ||
21232 | ||
21233 | ||
21234 | fi | |
21235 | ||
21236 | rm -Rf build | |
21237 | ||
21238 | ||
21239 | ||
6ae7fef5 BB |
21240 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 |
21241 | echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6 | |
86933a6e BB |
21242 | |
21243 | ||
21244 | cat >conftest.c <<_ACEOF | |
21245 | /* confdefs.h. */ | |
21246 | _ACEOF | |
21247 | cat confdefs.h >>conftest.$ac_ext | |
21248 | cat >>conftest.$ac_ext <<_ACEOF | |
21249 | /* end confdefs.h. */ | |
21250 | ||
21251 | ||
6ae7fef5 | 21252 | #include <linux/mm.h> |
86933a6e BB |
21253 | |
21254 | int | |
21255 | main (void) | |
21256 | { | |
21257 | ||
6ae7fef5 BB |
21258 | enum zone_stat_item zsi; |
21259 | zsi = NR_INACTIVE_ANON; | |
86933a6e BB |
21260 | |
21261 | ; | |
21262 | return 0; | |
21263 | } | |
21264 | ||
21265 | _ACEOF | |
21266 | ||
21267 | ||
21268 | rm -Rf build && mkdir -p build | |
21269 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21270 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21272 | (eval $ac_try) 2>&5 | |
21273 | ac_status=$? | |
21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21275 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21277 | (eval $ac_try) 2>&5 | |
21278 | ac_status=$? | |
21279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21280 | (exit $ac_status); }; }; then | |
21281 | ||
21282 | echo "$as_me:$LINENO: result: yes" >&5 | |
21283 | echo "${ECHO_T}yes" >&6 | |
21284 | ||
21285 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21286 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
86933a6e BB |
21287 | _ACEOF |
21288 | ||
21289 | ||
21290 | else | |
21291 | echo "$as_me: failed program was:" >&5 | |
21292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21293 | ||
21294 | echo "$as_me:$LINENO: result: no" >&5 | |
21295 | echo "${ECHO_T}no" >&6 | |
21296 | ||
21297 | ||
21298 | ||
21299 | fi | |
21300 | ||
21301 | rm -Rf build | |
21302 | ||
21303 | ||
21304 | ||
6ae7fef5 BB |
21305 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
21306 | echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6 | |
86933a6e BB |
21307 | |
21308 | ||
21309 | cat >conftest.c <<_ACEOF | |
21310 | /* confdefs.h. */ | |
21311 | _ACEOF | |
21312 | cat confdefs.h >>conftest.$ac_ext | |
21313 | cat >>conftest.$ac_ext <<_ACEOF | |
21314 | /* end confdefs.h. */ | |
21315 | ||
21316 | ||
6ae7fef5 | 21317 | #include <linux/mm.h> |
86933a6e BB |
21318 | |
21319 | int | |
21320 | main (void) | |
21321 | { | |
21322 | ||
6ae7fef5 BB |
21323 | enum zone_stat_item zsi; |
21324 | zsi = NR_INACTIVE_FILE; | |
86933a6e BB |
21325 | |
21326 | ; | |
21327 | return 0; | |
21328 | } | |
21329 | ||
21330 | _ACEOF | |
21331 | ||
21332 | ||
21333 | rm -Rf build && mkdir -p build | |
21334 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 21335 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
21336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21337 | (eval $ac_try) 2>&5 | |
21338 | ac_status=$? | |
21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21340 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21342 | (eval $ac_try) 2>&5 | |
21343 | ac_status=$? | |
21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21345 | (exit $ac_status); }; }; then | |
21346 | ||
21347 | echo "$as_me:$LINENO: result: yes" >&5 | |
21348 | echo "${ECHO_T}yes" >&6 | |
21349 | ||
21350 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21351 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
86933a6e BB |
21352 | _ACEOF |
21353 | ||
21354 | ||
21355 | else | |
21356 | echo "$as_me: failed program was:" >&5 | |
21357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21358 | ||
21359 | echo "$as_me:$LINENO: result: no" >&5 | |
21360 | echo "${ECHO_T}no" >&6 | |
21361 | ||
21362 | ||
21363 | ||
21364 | fi | |
21365 | ||
21366 | rm -Rf build | |
21367 | ||
21368 | ||
21369 | ||
ec7d53e9 | 21370 | |
6ae7fef5 BB |
21371 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
21372 | echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6 | |
ec7d53e9 BB |
21373 | |
21374 | ||
21375 | cat >conftest.c <<_ACEOF | |
21376 | /* confdefs.h. */ | |
21377 | _ACEOF | |
21378 | cat confdefs.h >>conftest.$ac_ext | |
21379 | cat >>conftest.$ac_ext <<_ACEOF | |
21380 | /* end confdefs.h. */ | |
21381 | ||
21382 | ||
6ae7fef5 | 21383 | #include <linux/mm.h> |
ec7d53e9 BB |
21384 | |
21385 | int | |
21386 | main (void) | |
21387 | { | |
21388 | ||
6ae7fef5 BB |
21389 | enum zone_stat_item zsi; |
21390 | zsi = NR_ACTIVE; | |
ec7d53e9 BB |
21391 | |
21392 | ; | |
21393 | return 0; | |
21394 | } | |
21395 | ||
21396 | _ACEOF | |
21397 | ||
21398 | ||
21399 | rm -Rf build && mkdir -p build | |
21400 | echo "obj-m := conftest.o" >build/Makefile | |
21401 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21403 | (eval $ac_try) 2>&5 | |
21404 | ac_status=$? | |
21405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21406 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21408 | (eval $ac_try) 2>&5 | |
21409 | ac_status=$? | |
21410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21411 | (exit $ac_status); }; }; then | |
21412 | ||
21413 | echo "$as_me:$LINENO: result: yes" >&5 | |
21414 | echo "${ECHO_T}yes" >&6 | |
21415 | ||
21416 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21417 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
ec7d53e9 BB |
21418 | _ACEOF |
21419 | ||
21420 | ||
21421 | else | |
21422 | echo "$as_me: failed program was:" >&5 | |
21423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21424 | ||
21425 | echo "$as_me:$LINENO: result: no" >&5 | |
21426 | echo "${ECHO_T}no" >&6 | |
21427 | ||
21428 | ||
21429 | ||
21430 | fi | |
21431 | ||
21432 | rm -Rf build | |
21433 | ||
21434 | ||
21435 | ||
6ae7fef5 BB |
21436 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 |
21437 | echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6 | |
ec7d53e9 | 21438 | |
ec7d53e9 | 21439 | |
6ae7fef5 BB |
21440 | cat >conftest.c <<_ACEOF |
21441 | /* confdefs.h. */ | |
21442 | _ACEOF | |
21443 | cat confdefs.h >>conftest.$ac_ext | |
21444 | cat >>conftest.$ac_ext <<_ACEOF | |
21445 | /* end confdefs.h. */ | |
21446 | ||
21447 | ||
21448 | #include <linux/mm.h> | |
21449 | ||
21450 | int | |
21451 | main (void) | |
21452 | { | |
21453 | ||
21454 | enum zone_stat_item zsi; | |
21455 | zsi = NR_ACTIVE_ANON; | |
21456 | ||
21457 | ; | |
21458 | return 0; | |
21459 | } | |
ec7d53e9 | 21460 | |
ec7d53e9 BB |
21461 | _ACEOF |
21462 | ||
6ae7fef5 BB |
21463 | |
21464 | rm -Rf build && mkdir -p build | |
21465 | echo "obj-m := conftest.o" >build/Makefile | |
21466 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21468 | (eval $ac_try) 2>&5 | |
21469 | ac_status=$? | |
21470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21471 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21473 | (eval $ac_try) 2>&5 | |
21474 | ac_status=$? | |
21475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21476 | (exit $ac_status); }; }; then | |
21477 | ||
ec7d53e9 BB |
21478 | echo "$as_me:$LINENO: result: yes" >&5 |
21479 | echo "${ECHO_T}yes" >&6 | |
21480 | ||
21481 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 21482 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
ec7d53e9 BB |
21483 | _ACEOF |
21484 | ||
ec7d53e9 | 21485 | |
6ae7fef5 BB |
21486 | else |
21487 | echo "$as_me: failed program was:" >&5 | |
21488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ec7d53e9 | 21489 | |
6ae7fef5 BB |
21490 | echo "$as_me:$LINENO: result: no" >&5 |
21491 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 21492 | |
bf9f3bac | 21493 | |
bf9f3bac | 21494 | |
6ae7fef5 | 21495 | fi |
bf9f3bac | 21496 | |
6ae7fef5 | 21497 | rm -Rf build |
bf9f3bac | 21498 | |
bf9f3bac | 21499 | |
bf9f3bac | 21500 | |
6ae7fef5 BB |
21501 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
21502 | echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6 | |
bf9f3bac | 21503 | |
bf9f3bac | 21504 | |
6ae7fef5 BB |
21505 | cat >conftest.c <<_ACEOF |
21506 | /* confdefs.h. */ | |
21507 | _ACEOF | |
21508 | cat confdefs.h >>conftest.$ac_ext | |
21509 | cat >>conftest.$ac_ext <<_ACEOF | |
21510 | /* end confdefs.h. */ | |
bf9f3bac | 21511 | |
bf9f3bac | 21512 | |
6ae7fef5 | 21513 | #include <linux/mm.h> |
bf9f3bac | 21514 | |
6ae7fef5 BB |
21515 | int |
21516 | main (void) | |
21517 | { | |
21518 | ||
21519 | enum zone_stat_item zsi; | |
21520 | zsi = NR_ACTIVE_FILE; | |
21521 | ||
21522 | ; | |
21523 | return 0; | |
21524 | } | |
21525 | ||
21526 | _ACEOF | |
21527 | ||
21528 | ||
21529 | rm -Rf build && mkdir -p build | |
21530 | echo "obj-m := conftest.o" >build/Makefile | |
21531 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21533 | (eval $ac_try) 2>&5 | |
21534 | ac_status=$? | |
21535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21536 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21538 | (eval $ac_try) 2>&5 | |
21539 | ac_status=$? | |
21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21541 | (exit $ac_status); }; }; then | |
21542 | ||
21543 | echo "$as_me:$LINENO: result: yes" >&5 | |
21544 | echo "${ECHO_T}yes" >&6 | |
21545 | ||
21546 | cat >>confdefs.h <<\_ACEOF | |
21547 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 | |
21548 | _ACEOF | |
21549 | ||
21550 | ||
21551 | else | |
21552 | echo "$as_me: failed program was:" >&5 | |
21553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21554 | ||
21555 | echo "$as_me:$LINENO: result: no" >&5 | |
21556 | echo "${ECHO_T}no" >&6 | |
21557 | ||
21558 | ||
21559 | ||
21560 | fi | |
21561 | ||
21562 | rm -Rf build | |
21563 | ||
21564 | ||
21565 | ||
21566 | ||
21567 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 | |
21568 | echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6 | |
21569 | ||
21570 | ||
21571 | cat >conftest.c <<_ACEOF | |
21572 | /* confdefs.h. */ | |
21573 | _ACEOF | |
21574 | cat confdefs.h >>conftest.$ac_ext | |
21575 | cat >>conftest.$ac_ext <<_ACEOF | |
21576 | /* end confdefs.h. */ | |
21577 | ||
21578 | ||
21579 | ||
21580 | int | |
21581 | main (void) | |
21582 | { | |
21583 | ||
21584 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) | |
21585 | #error "global_page_state needs NR_FREE_PAGES" | |
21586 | #endif | |
21587 | ||
21588 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
21589 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
21590 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
21591 | #error "global_page_state needs NR_ACTIVE*" | |
21592 | #endif | |
21593 | ||
21594 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
21595 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
21596 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
21597 | #error "global_page_state needs NR_INACTIVE*" | |
21598 | #endif | |
21599 | ||
21600 | ; | |
21601 | return 0; | |
21602 | } | |
21603 | ||
21604 | _ACEOF | |
21605 | ||
21606 | ||
21607 | rm -Rf build && mkdir -p build | |
21608 | echo "obj-m := conftest.o" >build/Makefile | |
21609 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21611 | (eval $ac_try) 2>&5 | |
21612 | ac_status=$? | |
21613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21614 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21616 | (eval $ac_try) 2>&5 | |
21617 | ac_status=$? | |
21618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21619 | (exit $ac_status); }; }; then | |
21620 | ||
21621 | echo "$as_me:$LINENO: result: no" >&5 | |
21622 | echo "${ECHO_T}no" >&6 | |
21623 | ||
21624 | else | |
21625 | echo "$as_me: failed program was:" >&5 | |
21626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21627 | ||
21628 | echo "$as_me:$LINENO: result: yes" >&5 | |
21629 | echo "${ECHO_T}yes" >&6 | |
21630 | ||
21631 | cat >>confdefs.h <<\_ACEOF | |
21632 | #define NEED_GET_ZONE_COUNTS 1 | |
21633 | _ACEOF | |
21634 | ||
21635 | ||
21636 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 | |
21637 | echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6 | |
21638 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
21639 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21640 | rc=$? | |
21641 | if test $rc -ne 0; then | |
21642 | export=0 | |
21643 | for file in ; do | |
21644 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
21645 | "$LINUX_OBJ/$file" 2>/dev/null | |
21646 | rc=$? | |
21647 | if test $rc -eq 0; then | |
21648 | export=1 | |
21649 | break; | |
21650 | fi | |
21651 | done | |
21652 | if test $export -eq 0; then | |
21653 | echo "$as_me:$LINENO: result: no" >&5 | |
21654 | echo "${ECHO_T}no" >&6 | |
21655 | ||
21656 | else | |
21657 | echo "$as_me:$LINENO: result: yes" >&5 | |
21658 | echo "${ECHO_T}yes" >&6 | |
21659 | ||
21660 | cat >>confdefs.h <<\_ACEOF | |
21661 | #define HAVE_GET_ZONE_COUNTS 1 | |
21662 | _ACEOF | |
21663 | ||
21664 | fi | |
21665 | else | |
21666 | echo "$as_me:$LINENO: result: yes" >&5 | |
21667 | echo "${ECHO_T}yes" >&6 | |
21668 | ||
21669 | cat >>confdefs.h <<\_ACEOF | |
21670 | #define HAVE_GET_ZONE_COUNTS 1 | |
21671 | _ACEOF | |
21672 | ||
21673 | fi | |
21674 | ||
21675 | ||
21676 | ||
21677 | ||
21678 | fi | |
21679 | ||
21680 | rm -Rf build | |
21681 | ||
21682 | ||
21683 | ||
21684 | echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 | |
21685 | echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6 | |
21686 | ||
21687 | ||
21688 | cat >conftest.c <<_ACEOF | |
21689 | /* confdefs.h. */ | |
21690 | _ACEOF | |
21691 | cat confdefs.h >>conftest.$ac_ext | |
21692 | cat >>conftest.$ac_ext <<_ACEOF | |
21693 | /* end confdefs.h. */ | |
21694 | ||
21695 | ||
21696 | #include <linux/fs.h> | |
21697 | ||
21698 | int | |
21699 | main (void) | |
21700 | { | |
21701 | ||
21702 | vfs_unlink(NULL, NULL); | |
21703 | ||
21704 | ; | |
21705 | return 0; | |
21706 | } | |
21707 | ||
21708 | _ACEOF | |
21709 | ||
21710 | ||
21711 | rm -Rf build && mkdir -p build | |
21712 | echo "obj-m := conftest.o" >build/Makefile | |
21713 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21715 | (eval $ac_try) 2>&5 | |
21716 | ac_status=$? | |
21717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21718 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21720 | (eval $ac_try) 2>&5 | |
21721 | ac_status=$? | |
21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21723 | (exit $ac_status); }; }; then | |
21724 | ||
21725 | echo "$as_me:$LINENO: result: yes" >&5 | |
21726 | echo "${ECHO_T}yes" >&6 | |
21727 | ||
21728 | cat >>confdefs.h <<\_ACEOF | |
21729 | #define HAVE_2ARGS_VFS_UNLINK 1 | |
21730 | _ACEOF | |
21731 | ||
21732 | ||
21733 | else | |
21734 | echo "$as_me: failed program was:" >&5 | |
21735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21736 | ||
21737 | echo "$as_me:$LINENO: result: no" >&5 | |
21738 | echo "${ECHO_T}no" >&6 | |
21739 | ||
21740 | ||
21741 | ||
21742 | fi | |
21743 | ||
21744 | rm -Rf build | |
21745 | ||
21746 | ||
21747 | ||
21748 | echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 | |
21749 | echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6 | |
21750 | ||
21751 | ||
21752 | cat >conftest.c <<_ACEOF | |
21753 | /* confdefs.h. */ | |
21754 | _ACEOF | |
21755 | cat confdefs.h >>conftest.$ac_ext | |
21756 | cat >>conftest.$ac_ext <<_ACEOF | |
21757 | /* end confdefs.h. */ | |
21758 | ||
21759 | ||
21760 | #include <linux/fs.h> | |
21761 | ||
21762 | int | |
21763 | main (void) | |
21764 | { | |
21765 | ||
21766 | vfs_rename(NULL, NULL, NULL, NULL); | |
21767 | ||
21768 | ; | |
21769 | return 0; | |
21770 | } | |
21771 | ||
21772 | _ACEOF | |
21773 | ||
21774 | ||
21775 | rm -Rf build && mkdir -p build | |
21776 | echo "obj-m := conftest.o" >build/Makefile | |
21777 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21779 | (eval $ac_try) 2>&5 | |
21780 | ac_status=$? | |
21781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21782 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21784 | (eval $ac_try) 2>&5 | |
21785 | ac_status=$? | |
21786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21787 | (exit $ac_status); }; }; then | |
21788 | ||
21789 | echo "$as_me:$LINENO: result: yes" >&5 | |
21790 | echo "${ECHO_T}yes" >&6 | |
21791 | ||
21792 | cat >>confdefs.h <<\_ACEOF | |
21793 | #define HAVE_4ARGS_VFS_RENAME 1 | |
21794 | _ACEOF | |
21795 | ||
21796 | ||
21797 | else | |
21798 | echo "$as_me: failed program was:" >&5 | |
21799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21800 | ||
21801 | echo "$as_me:$LINENO: result: no" >&5 | |
21802 | echo "${ECHO_T}no" >&6 | |
21803 | ||
21804 | ||
21805 | ||
21806 | fi | |
21807 | ||
21808 | rm -Rf build | |
21809 | ||
21810 | ||
21811 | ||
21812 | ||
21813 | echo "$as_me:$LINENO: checking whether struct cred exists" >&5 | |
21814 | echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6 | |
21815 | ||
21816 | ||
21817 | cat >conftest.c <<_ACEOF | |
21818 | /* confdefs.h. */ | |
21819 | _ACEOF | |
21820 | cat confdefs.h >>conftest.$ac_ext | |
21821 | cat >>conftest.$ac_ext <<_ACEOF | |
21822 | /* end confdefs.h. */ | |
21823 | ||
21824 | ||
21825 | #include <linux/cred.h> | |
21826 | ||
21827 | int | |
21828 | main (void) | |
21829 | { | |
21830 | ||
21831 | struct cred *cr; | |
21832 | cr = NULL; | |
21833 | ||
21834 | ; | |
21835 | return 0; | |
21836 | } | |
21837 | ||
21838 | _ACEOF | |
21839 | ||
21840 | ||
21841 | rm -Rf build && mkdir -p build | |
21842 | echo "obj-m := conftest.o" >build/Makefile | |
21843 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
21844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21845 | (eval $ac_try) 2>&5 | |
21846 | ac_status=$? | |
21847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21848 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21850 | (eval $ac_try) 2>&5 | |
21851 | ac_status=$? | |
21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21853 | (exit $ac_status); }; }; then | |
21854 | ||
21855 | echo "$as_me:$LINENO: result: yes" >&5 | |
21856 | echo "${ECHO_T}yes" >&6 | |
21857 | ||
21858 | cat >>confdefs.h <<\_ACEOF | |
21859 | #define HAVE_CRED_STRUCT 1 | |
21860 | _ACEOF | |
21861 | ||
21862 | ||
21863 | else | |
21864 | echo "$as_me: failed program was:" >&5 | |
21865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21866 | ||
21867 | echo "$as_me:$LINENO: result: no" >&5 | |
21868 | echo "${ECHO_T}no" >&6 | |
21869 | ||
21870 | ||
21871 | ||
21872 | fi | |
21873 | ||
21874 | rm -Rf build | |
21875 | ||
21876 | ||
21877 | ||
21878 | ||
21879 | echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 | |
21880 | echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6 | |
21881 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ | |
21882 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21883 | rc=$? | |
21884 | if test $rc -ne 0; then | |
21885 | export=0 | |
21886 | for file in ; do | |
21887 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
21888 | "$LINUX_OBJ/$file" 2>/dev/null | |
21889 | rc=$? | |
21890 | if test $rc -eq 0; then | |
21891 | export=1 | |
21892 | break; | |
21893 | fi | |
21894 | done | |
21895 | if test $export -eq 0; then | |
21896 | echo "$as_me:$LINENO: result: no" >&5 | |
21897 | echo "${ECHO_T}no" >&6 | |
21898 | ||
21899 | else | |
21900 | echo "$as_me:$LINENO: result: yes" >&5 | |
21901 | echo "${ECHO_T}yes" >&6 | |
21902 | ||
21903 | cat >>confdefs.h <<\_ACEOF | |
21904 | #define HAVE_GROUPS_SEARCH 1 | |
21905 | _ACEOF | |
21906 | ||
21907 | fi | |
21908 | else | |
21909 | echo "$as_me:$LINENO: result: yes" >&5 | |
21910 | echo "${ECHO_T}yes" >&6 | |
21911 | ||
21912 | cat >>confdefs.h <<\_ACEOF | |
21913 | #define HAVE_GROUPS_SEARCH 1 | |
21914 | _ACEOF | |
21915 | ||
21916 | fi | |
21917 | ||
21918 | ||
e811949a BB |
21919 | |
21920 | echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 | |
21921 | echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6 | |
21922 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
21923 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21924 | rc=$? | |
21925 | if test $rc -ne 0; then | |
21926 | export=0 | |
21927 | for file in ; do | |
21928 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
21929 | "$LINUX_OBJ/$file" 2>/dev/null | |
21930 | rc=$? | |
21931 | if test $rc -eq 0; then | |
21932 | export=1 | |
21933 | break; | |
21934 | fi | |
21935 | done | |
21936 | if test $export -eq 0; then | |
21937 | echo "$as_me:$LINENO: result: no" >&5 | |
21938 | echo "${ECHO_T}no" >&6 | |
21939 | ||
21940 | else | |
21941 | echo "$as_me:$LINENO: result: yes" >&5 | |
21942 | echo "${ECHO_T}yes" >&6 | |
21943 | ||
21944 | cat >>confdefs.h <<\_ACEOF | |
21945 | #define HAVE_PUT_TASK_STRUCT 1 | |
21946 | _ACEOF | |
21947 | ||
21948 | fi | |
21949 | else | |
21950 | echo "$as_me:$LINENO: result: yes" >&5 | |
21951 | echo "${ECHO_T}yes" >&6 | |
21952 | ||
21953 | cat >>confdefs.h <<\_ACEOF | |
21954 | #define HAVE_PUT_TASK_STRUCT 1 | |
21955 | _ACEOF | |
21956 | ||
21957 | fi | |
21958 | ||
21959 | ||
6ae7fef5 BB |
21960 | ;; |
21961 | user) ;; | |
21962 | all) | |
21963 | ||
21964 | ||
21965 | # Check whether --with-linux or --without-linux was given. | |
21966 | if test "${with_linux+set}" = set; then | |
21967 | withval="$with_linux" | |
21968 | kernelsrc="$withval" | |
21969 | fi; | |
21970 | ||
21971 | ||
21972 | # Check whether --with-linux-obj or --without-linux-obj was given. | |
21973 | if test "${with_linux_obj+set}" = set; then | |
21974 | withval="$with_linux_obj" | |
21975 | kernelbuild="$withval" | |
21976 | fi; | |
21977 | ||
21978 | echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
21979 | echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6 | |
21980 | if test -z "$kernelsrc"; then | |
21981 | sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \ | |
21982 | 2>/dev/null | grep -v obj | tail -1` | |
21983 | ||
21984 | if test -e ${sourcelink}; then | |
21985 | kernelsrc=`readlink -f ${sourcelink}` | |
21986 | else | |
21987 | echo "$as_me:$LINENO: result: Not found" >&5 | |
21988 | echo "${ECHO_T}Not found" >&6 | |
21989 | { { echo "$as_me:$LINENO: error: | |
21990 | *** Please specify the location of the kernel source | |
21991 | *** with the '--with-linux=PATH' option" >&5 | |
21992 | echo "$as_me: error: | |
21993 | *** Please specify the location of the kernel source | |
21994 | *** with the '--with-linux=PATH' option" >&2;} | |
21995 | { (exit 1); exit 1; }; } | |
21996 | fi | |
21997 | else | |
21998 | if test "$kernelsrc" = "NONE"; then | |
21999 | kernsrcver=NONE | |
22000 | fi | |
22001 | fi | |
22002 | ||
22003 | echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
22004 | echo "${ECHO_T}$kernelsrc" >&6 | |
22005 | echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
22006 | echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6 | |
22007 | if test -z "$kernelbuild"; then | |
22008 | if test -d ${kernelsrc}-obj/`arch`/`arch`; then | |
22009 | kernelbuild=${kernelsrc}-obj/`arch`/`arch` | |
22010 | elif test -d ${kernelsrc}-obj/`arch`/default; then | |
22011 | kernelbuild=${kernelsrc}-obj/`arch`/default | |
22012 | elif test -d `dirname ${kernelsrc}`/build-`arch`; then | |
22013 | kernelbuild=`dirname ${kernelsrc}`/build-`arch` | |
22014 | else | |
22015 | kernelbuild=${kernelsrc} | |
22016 | fi | |
22017 | fi | |
22018 | echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
22019 | echo "${ECHO_T}$kernelbuild" >&6 | |
22020 | ||
22021 | echo "$as_me:$LINENO: checking kernel source version" >&5 | |
22022 | echo $ECHO_N "checking kernel source version... $ECHO_C" >&6 | |
22023 | if test -r $kernelbuild/include/linux/version.h && | |
22024 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then | |
22025 | ||
22026 | kernsrcver=`(echo "#include <linux/version.h>"; | |
22027 | echo "kernsrcver=UTS_RELEASE") | | |
22028 | cpp -I $kernelbuild/include | | |
22029 | grep "^kernsrcver=" | cut -d \" -f 2` | |
22030 | ||
22031 | elif test -r $kernelbuild/include/linux/utsrelease.h && | |
22032 | fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then | |
22033 | ||
22034 | kernsrcver=`(echo "#include <linux/utsrelease.h>"; | |
22035 | echo "kernsrcver=UTS_RELEASE") | | |
22036 | cpp -I $kernelbuild/include | | |
22037 | grep "^kernsrcver=" | cut -d \" -f 2` | |
22038 | fi | |
22039 | ||
22040 | if test -z "$kernsrcver"; then | |
22041 | echo "$as_me:$LINENO: result: Not found" >&5 | |
22042 | echo "${ECHO_T}Not found" >&6 | |
22043 | { { echo "$as_me:$LINENO: error: | |
22044 | *** Cannot determine the version of the linux kernel source. | |
22045 | *** Please prepare the kernel before running this script" >&5 | |
22046 | echo "$as_me: error: | |
22047 | *** Cannot determine the version of the linux kernel source. | |
22048 | *** Please prepare the kernel before running this script" >&2;} | |
bf9f3bac | 22049 | { (exit 1); exit 1; }; } |
22050 | fi | |
22051 | ||
22052 | echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
22053 | echo "${ECHO_T}$kernsrcver" >&6 | |
22054 | ||
bf9f3bac | 22055 | LINUX=${kernelsrc} |
22056 | LINUX_OBJ=${kernelbuild} | |
c5f70460 BB |
22057 | LINUX_VERSION=${kernsrcver} |
22058 | ||
bf9f3bac | 22059 | |
22060 | ||
22061 | ||
22062 | ||
22063 | ||
bb339d06 | 22064 | modpost=$LINUX/scripts/Makefile.modpost |
2e0e7e69 BB |
22065 | echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
22066 | echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6 | |
bb339d06 BB |
22067 | if test -f "$modpost"; then |
22068 | if grep -q Modules.symvers $modpost; then | |
22069 | LINUX_SYMBOLS=Modules.symvers | |
22070 | else | |
22071 | LINUX_SYMBOLS=Module.symvers | |
22072 | fi | |
2e0e7e69 | 22073 | else |
bb339d06 | 22074 | LINUX_SYMBOLS=NONE |
2e0e7e69 BB |
22075 | fi |
22076 | echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
22077 | echo "${ECHO_T}$LINUX_SYMBOLS" >&6 | |
22078 | ||
22079 | ||
22080 | ||
86933a6e BB |
22081 | |
22082 | KERNELMAKE_PARAMS="V=1" | |
22083 | ||
22084 | abs_srcdir=`readlink -f ${srcdir}` | |
22085 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror" | |
22086 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include" | |
22087 | ||
22088 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
22089 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
22090 | fi | |
22091 | ||
22092 | ||
22093 | ||
bf9f3bac | 22094 | |
22095 | ||
22096 | echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 | |
22097 | echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6 | |
22098 | # Check whether --enable-debug or --disable-debug was given. | |
22099 | if test "${enable_debug+set}" = set; then | |
22100 | enableval="$enable_debug" | |
22101 | case "$enableval" in | |
22102 | yes) spl_ac_debug=yes ;; | |
22103 | no) spl_ac_debug=no ;; | |
22104 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
22105 | echo "${ECHO_T}Error!" >&6 | |
22106 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5 | |
22107 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;} | |
22108 | { (exit 1); exit 1; }; } ;; | |
22109 | esac | |
22110 | ||
22111 | fi; | |
22112 | if test "$spl_ac_debug" = yes; then | |
22113 | echo "$as_me:$LINENO: result: yes" >&5 | |
22114 | echo "${ECHO_T}yes" >&6 | |
22115 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG" | |
22116 | else | |
22117 | echo "$as_me:$LINENO: result: no" >&5 | |
22118 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 22119 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" |
22120 | fi | |
22121 | ||
22122 | ||
22123 | echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5 | |
22124 | echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6 | |
22125 | # Check whether --enable-debug-kmem or --disable-debug-kmem was given. | |
22126 | if test "${enable_debug_kmem+set}" = set; then | |
22127 | enableval="$enable_debug_kmem" | |
22128 | case "$enableval" in | |
22129 | yes) spl_ac_debug_kmem=yes ;; | |
22130 | no) spl_ac_debug_kmem=no ;; | |
22131 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
22132 | echo "${ECHO_T}Error!" >&6 | |
22133 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5 | |
22134 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;} | |
22135 | { (exit 1); exit 1; }; } ;; | |
22136 | esac | |
22137 | ||
22138 | fi; | |
22139 | if test "$spl_ac_debug_kmem" = yes; then | |
22140 | echo "$as_me:$LINENO: result: yes" >&5 | |
22141 | echo "${ECHO_T}yes" >&6 | |
22142 | ||
22143 | cat >>confdefs.h <<\_ACEOF | |
22144 | #define DEBUG_KMEM 1 | |
22145 | _ACEOF | |
22146 | ||
22147 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
22148 | else | |
22149 | echo "$as_me:$LINENO: result: no" >&5 | |
22150 | echo "${ECHO_T}no" >&6 | |
22151 | fi | |
22152 | ||
22153 | ||
22154 | echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5 | |
22155 | echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6 | |
22156 | # Check whether --enable-debug-mutex or --disable-debug-mutex was given. | |
22157 | if test "${enable_debug_mutex+set}" = set; then | |
22158 | enableval="$enable_debug_mutex" | |
22159 | case "$enableval" in | |
22160 | yes) spl_ac_debug_mutex=yes ;; | |
22161 | no) spl_ac_debug_mutex=no ;; | |
22162 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
22163 | echo "${ECHO_T}Error!" >&6 | |
22164 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5 | |
22165 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;} | |
22166 | { (exit 1); exit 1; }; } ;; | |
22167 | esac | |
22168 | ||
22169 | fi; | |
22170 | if test "$spl_ac_debug_mutex" = yes; then | |
22171 | echo "$as_me:$LINENO: result: yes" >&5 | |
22172 | echo "${ECHO_T}yes" >&6 | |
22173 | ||
22174 | cat >>confdefs.h <<\_ACEOF | |
22175 | #define DEBUG_MUTEX 1 | |
22176 | _ACEOF | |
22177 | ||
22178 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX" | |
22179 | else | |
22180 | echo "$as_me:$LINENO: result: no" >&5 | |
22181 | echo "${ECHO_T}no" >&6 | |
22182 | fi | |
22183 | ||
22184 | ||
22185 | echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5 | |
22186 | echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6 | |
22187 | # Check whether --enable-debug-kstat or --disable-debug-kstat was given. | |
22188 | if test "${enable_debug_kstat+set}" = set; then | |
22189 | enableval="$enable_debug_kstat" | |
22190 | case "$enableval" in | |
22191 | yes) spl_ac_debug_kstat=yes ;; | |
22192 | no) spl_ac_debug_kstat=no ;; | |
22193 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
22194 | echo "${ECHO_T}Error!" >&6 | |
22195 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5 | |
22196 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;} | |
22197 | { (exit 1); exit 1; }; } ;; | |
22198 | esac | |
22199 | ||
22200 | fi; | |
22201 | if test "$spl_ac_debug_kstat" = yes; then | |
22202 | echo "$as_me:$LINENO: result: yes" >&5 | |
22203 | echo "${ECHO_T}yes" >&6 | |
22204 | ||
22205 | cat >>confdefs.h <<\_ACEOF | |
22206 | #define DEBUG_KSTAT 1 | |
22207 | _ACEOF | |
22208 | ||
22209 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT" | |
22210 | else | |
22211 | echo "$as_me:$LINENO: result: no" >&5 | |
22212 | echo "${ECHO_T}no" >&6 | |
22213 | fi | |
22214 | ||
22215 | ||
22216 | echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5 | |
22217 | echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6 | |
22218 | # Check whether --enable-debug-callb or --disable-debug-callb was given. | |
22219 | if test "${enable_debug_callb+set}" = set; then | |
22220 | enableval="$enable_debug_callb" | |
22221 | case "$enableval" in | |
22222 | yes) spl_ac_debug_callb=yes ;; | |
22223 | no) spl_ac_debug_callb=no ;; | |
22224 | *) echo "$as_me:$LINENO: result: Error!" >&5 | |
22225 | echo "${ECHO_T}Error!" >&6 | |
22226 | { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5 | |
22227 | echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;} | |
22228 | { (exit 1); exit 1; }; } ;; | |
22229 | esac | |
22230 | ||
22231 | fi; | |
22232 | if test "$spl_ac_debug_callb" = yes; then | |
22233 | echo "$as_me:$LINENO: result: yes" >&5 | |
22234 | echo "${ECHO_T}yes" >&6 | |
22235 | ||
22236 | cat >>confdefs.h <<\_ACEOF | |
22237 | #define DEBUG_CALLB 1 | |
22238 | _ACEOF | |
22239 | ||
22240 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB" | |
22241 | else | |
22242 | echo "$as_me:$LINENO: result: no" >&5 | |
22243 | echo "${ECHO_T}no" >&6 | |
22244 | fi | |
22245 | ||
86933a6e | 22246 | echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
bf9f3bac | 22247 | echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6 |
22248 | ||
22249 | ||
22250 | cat >conftest.c <<_ACEOF | |
22251 | /* confdefs.h. */ | |
22252 | _ACEOF | |
22253 | cat confdefs.h >>conftest.$ac_ext | |
22254 | cat >>conftest.$ac_ext <<_ACEOF | |
22255 | /* end confdefs.h. */ | |
22256 | ||
22257 | ||
22258 | #include <linux/types.h> | |
22259 | ||
22260 | int | |
22261 | main (void) | |
22262 | { | |
22263 | ||
22264 | uintptr_t *ptr; | |
22265 | ||
22266 | ; | |
22267 | return 0; | |
22268 | } | |
22269 | ||
22270 | _ACEOF | |
22271 | ||
c5f70460 BB |
22272 | |
22273 | rm -Rf build && mkdir -p build | |
22274 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22275 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22277 | (eval $ac_try) 2>&5 | |
22278 | ac_status=$? | |
22279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22280 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22282 | (eval $ac_try) 2>&5 | |
22283 | ac_status=$? | |
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22285 | (exit $ac_status); }; }; then | |
22286 | ||
22287 | echo "$as_me:$LINENO: result: yes" >&5 | |
22288 | echo "${ECHO_T}yes" >&6 | |
22289 | ||
22290 | cat >>confdefs.h <<\_ACEOF | |
22291 | #define HAVE_UINTPTR_T 1 | |
22292 | _ACEOF | |
22293 | ||
22294 | ||
22295 | else | |
22296 | echo "$as_me: failed program was:" >&5 | |
22297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22298 | ||
bf9f3bac | 22299 | echo "$as_me:$LINENO: result: no" >&5 |
22300 | echo "${ECHO_T}no" >&6 | |
22301 | ||
c5f70460 BB |
22302 | |
22303 | ||
bf9f3bac | 22304 | fi |
c5f70460 BB |
22305 | |
22306 | rm -Rf build | |
22307 | ||
bf9f3bac | 22308 | |
22309 | ||
86933a6e | 22310 | echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
bf9f3bac | 22311 | echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6 |
22312 | ||
22313 | ||
22314 | cat >conftest.c <<_ACEOF | |
22315 | /* confdefs.h. */ | |
22316 | _ACEOF | |
22317 | cat confdefs.h >>conftest.$ac_ext | |
22318 | cat >>conftest.$ac_ext <<_ACEOF | |
22319 | /* end confdefs.h. */ | |
22320 | ||
22321 | ||
22322 | #include <asm/atomic.h> | |
22323 | ||
22324 | int | |
22325 | main (void) | |
22326 | { | |
22327 | ||
22328 | atomic64_t *ptr; | |
22329 | ||
22330 | ; | |
22331 | return 0; | |
22332 | } | |
22333 | ||
22334 | _ACEOF | |
22335 | ||
c5f70460 BB |
22336 | |
22337 | rm -Rf build && mkdir -p build | |
22338 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22339 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22341 | (eval $ac_try) 2>&5 | |
22342 | ac_status=$? | |
22343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22344 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22346 | (eval $ac_try) 2>&5 | |
22347 | ac_status=$? | |
22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22349 | (exit $ac_status); }; }; then | |
22350 | ||
22351 | echo "$as_me:$LINENO: result: yes" >&5 | |
22352 | echo "${ECHO_T}yes" >&6 | |
22353 | ||
22354 | cat >>confdefs.h <<\_ACEOF | |
22355 | #define HAVE_ATOMIC64_T 1 | |
22356 | _ACEOF | |
22357 | ||
22358 | ||
22359 | else | |
22360 | echo "$as_me: failed program was:" >&5 | |
22361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22362 | ||
bf9f3bac | 22363 | echo "$as_me:$LINENO: result: no" >&5 |
22364 | echo "${ECHO_T}no" >&6 | |
22365 | ||
c5f70460 BB |
22366 | |
22367 | ||
bf9f3bac | 22368 | fi |
c5f70460 BB |
22369 | |
22370 | rm -Rf build | |
22371 | ||
bf9f3bac | 22372 | |
22373 | ||
86933a6e | 22374 | echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 |
bf9f3bac | 22375 | echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6 |
22376 | ||
22377 | ||
22378 | cat >conftest.c <<_ACEOF | |
22379 | /* confdefs.h. */ | |
22380 | _ACEOF | |
22381 | cat confdefs.h >>conftest.$ac_ext | |
22382 | cat >>conftest.$ac_ext <<_ACEOF | |
22383 | /* end confdefs.h. */ | |
22384 | ||
22385 | ||
22386 | #include <linux/workqueue.h> | |
22387 | ||
22388 | int | |
22389 | main (void) | |
22390 | { | |
22391 | ||
22392 | struct work_struct work; | |
22393 | INIT_WORK(&work, NULL, NULL); | |
22394 | ||
22395 | ; | |
22396 | return 0; | |
22397 | } | |
22398 | ||
22399 | _ACEOF | |
22400 | ||
c5f70460 BB |
22401 | |
22402 | rm -Rf build && mkdir -p build | |
22403 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22404 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22406 | (eval $ac_try) 2>&5 | |
22407 | ac_status=$? | |
22408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22409 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22411 | (eval $ac_try) 2>&5 | |
22412 | ac_status=$? | |
22413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22414 | (exit $ac_status); }; }; then | |
22415 | ||
22416 | echo "$as_me:$LINENO: result: yes" >&5 | |
22417 | echo "${ECHO_T}yes" >&6 | |
22418 | ||
22419 | cat >>confdefs.h <<\_ACEOF | |
22420 | #define HAVE_3ARGS_INIT_WORK 1 | |
22421 | _ACEOF | |
22422 | ||
22423 | ||
22424 | else | |
22425 | echo "$as_me: failed program was:" >&5 | |
22426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22427 | ||
bf9f3bac | 22428 | echo "$as_me:$LINENO: result: no" >&5 |
22429 | echo "${ECHO_T}no" >&6 | |
22430 | ||
c5f70460 BB |
22431 | |
22432 | ||
bf9f3bac | 22433 | fi |
c5f70460 BB |
22434 | |
22435 | rm -Rf build | |
22436 | ||
bf9f3bac | 22437 | |
22438 | ||
86933a6e | 22439 | echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 |
bf9f3bac | 22440 | echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6 |
22441 | ||
22442 | ||
22443 | cat >conftest.c <<_ACEOF | |
22444 | /* confdefs.h. */ | |
22445 | _ACEOF | |
22446 | cat confdefs.h >>conftest.$ac_ext | |
22447 | cat >>conftest.$ac_ext <<_ACEOF | |
22448 | /* end confdefs.h. */ | |
22449 | ||
22450 | ||
22451 | #include <linux/sysctl.h> | |
22452 | ||
22453 | int | |
22454 | main (void) | |
22455 | { | |
22456 | ||
22457 | return register_sysctl_table(NULL,0); | |
22458 | ||
22459 | ; | |
22460 | return 0; | |
22461 | } | |
22462 | ||
22463 | _ACEOF | |
22464 | ||
c5f70460 BB |
22465 | |
22466 | rm -Rf build && mkdir -p build | |
22467 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22468 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22470 | (eval $ac_try) 2>&5 | |
22471 | ac_status=$? | |
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22473 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22475 | (eval $ac_try) 2>&5 | |
22476 | ac_status=$? | |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22478 | (exit $ac_status); }; }; then | |
22479 | ||
22480 | echo "$as_me:$LINENO: result: yes" >&5 | |
22481 | echo "${ECHO_T}yes" >&6 | |
22482 | ||
22483 | cat >>confdefs.h <<\_ACEOF | |
22484 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
22485 | _ACEOF | |
22486 | ||
22487 | ||
22488 | else | |
22489 | echo "$as_me: failed program was:" >&5 | |
22490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22491 | ||
bf9f3bac | 22492 | echo "$as_me:$LINENO: result: no" >&5 |
22493 | echo "${ECHO_T}no" >&6 | |
22494 | ||
c5f70460 BB |
22495 | |
22496 | ||
bf9f3bac | 22497 | fi |
c5f70460 BB |
22498 | |
22499 | rm -Rf build | |
22500 | ||
bf9f3bac | 22501 | |
22502 | ||
22503 | ||
22504 | echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 | |
22505 | echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6 | |
22506 | ||
22507 | ||
22508 | cat >conftest.c <<_ACEOF | |
22509 | /* confdefs.h. */ | |
22510 | _ACEOF | |
22511 | cat confdefs.h >>conftest.$ac_ext | |
22512 | cat >>conftest.$ac_ext <<_ACEOF | |
22513 | /* end confdefs.h. */ | |
22514 | ||
22515 | ||
22516 | #include <linux/mm.h> | |
22517 | ||
22518 | int | |
22519 | main (void) | |
22520 | { | |
22521 | ||
22522 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
22523 | ||
22524 | ; | |
22525 | return 0; | |
22526 | } | |
22527 | ||
22528 | _ACEOF | |
22529 | ||
c5f70460 BB |
22530 | |
22531 | rm -Rf build && mkdir -p build | |
22532 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22533 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22535 | (eval $ac_try) 2>&5 | |
22536 | ac_status=$? | |
22537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22538 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22540 | (eval $ac_try) 2>&5 | |
22541 | ac_status=$? | |
22542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22543 | (exit $ac_status); }; }; then | |
22544 | ||
22545 | echo "$as_me:$LINENO: result: yes" >&5 | |
22546 | echo "${ECHO_T}yes" >&6 | |
22547 | ||
22548 | cat >>confdefs.h <<\_ACEOF | |
22549 | #define HAVE_SET_SHRINKER 1 | |
22550 | _ACEOF | |
22551 | ||
22552 | ||
22553 | else | |
22554 | echo "$as_me: failed program was:" >&5 | |
22555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22556 | ||
bf9f3bac | 22557 | echo "$as_me:$LINENO: result: no" >&5 |
22558 | echo "${ECHO_T}no" >&6 | |
22559 | ||
c5f70460 BB |
22560 | |
22561 | ||
bf9f3bac | 22562 | fi |
c5f70460 BB |
22563 | |
22564 | rm -Rf build | |
22565 | ||
bf9f3bac | 22566 | |
22567 | ||
86933a6e | 22568 | echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 |
bf9f3bac | 22569 | echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6 |
22570 | ||
22571 | ||
22572 | cat >conftest.c <<_ACEOF | |
22573 | /* confdefs.h. */ | |
22574 | _ACEOF | |
22575 | cat confdefs.h >>conftest.$ac_ext | |
22576 | cat >>conftest.$ac_ext <<_ACEOF | |
22577 | /* end confdefs.h. */ | |
22578 | ||
22579 | ||
22580 | #include <linux/namei.h> | |
22581 | ||
22582 | int | |
22583 | main (void) | |
22584 | { | |
22585 | ||
22586 | struct nameidata nd; | |
22587 | ||
22588 | nd.path.mnt = NULL; | |
22589 | nd.path.dentry = NULL; | |
22590 | ||
22591 | ; | |
22592 | return 0; | |
22593 | } | |
22594 | ||
22595 | _ACEOF | |
22596 | ||
c5f70460 BB |
22597 | |
22598 | rm -Rf build && mkdir -p build | |
22599 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22600 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22602 | (eval $ac_try) 2>&5 | |
22603 | ac_status=$? | |
22604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22605 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22607 | (eval $ac_try) 2>&5 | |
22608 | ac_status=$? | |
22609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22610 | (exit $ac_status); }; }; then | |
22611 | ||
22612 | echo "$as_me:$LINENO: result: yes" >&5 | |
22613 | echo "${ECHO_T}yes" >&6 | |
22614 | ||
22615 | cat >>confdefs.h <<\_ACEOF | |
22616 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
22617 | _ACEOF | |
22618 | ||
22619 | ||
22620 | else | |
22621 | echo "$as_me: failed program was:" >&5 | |
22622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22623 | ||
bf9f3bac | 22624 | echo "$as_me:$LINENO: result: no" >&5 |
22625 | echo "${ECHO_T}no" >&6 | |
22626 | ||
c5f70460 BB |
22627 | |
22628 | ||
bf9f3bac | 22629 | fi |
c5f70460 BB |
22630 | |
22631 | rm -Rf build | |
22632 | ||
bf9f3bac | 22633 | |
22634 | ||
22635 | ||
22636 | echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 | |
22637 | echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
22638 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ |
22639 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 22640 | rc=$? |
22641 | if test $rc -ne 0; then | |
22642 | export=0 | |
22643 | for file in kernel/sched.c; do | |
2e0e7e69 BB |
22644 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ |
22645 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 22646 | rc=$? |
22647 | if test $rc -eq 0; then | |
22648 | export=1 | |
22649 | break; | |
22650 | fi | |
22651 | done | |
22652 | if test $export -eq 0; then | |
22653 | echo "$as_me:$LINENO: result: no" >&5 | |
22654 | echo "${ECHO_T}no" >&6 | |
22655 | ||
22656 | else | |
22657 | echo "$as_me:$LINENO: result: yes" >&5 | |
22658 | echo "${ECHO_T}yes" >&6 | |
22659 | ||
22660 | cat >>confdefs.h <<\_ACEOF | |
22661 | #define HAVE_TASK_CURR 1 | |
22662 | _ACEOF | |
22663 | ||
22664 | fi | |
22665 | else | |
22666 | echo "$as_me:$LINENO: result: yes" >&5 | |
22667 | echo "${ECHO_T}yes" >&6 | |
22668 | ||
22669 | cat >>confdefs.h <<\_ACEOF | |
22670 | #define HAVE_TASK_CURR 1 | |
22671 | _ACEOF | |
22672 | ||
22673 | fi | |
22674 | ||
22675 | ||
86933a6e | 22676 | echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 |
bf9f3bac | 22677 | echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6 |
22678 | ||
22679 | ||
22680 | cat >conftest.c <<_ACEOF | |
22681 | /* confdefs.h. */ | |
22682 | _ACEOF | |
22683 | cat confdefs.h >>conftest.$ac_ext | |
22684 | cat >>conftest.$ac_ext <<_ACEOF | |
22685 | /* end confdefs.h. */ | |
22686 | ||
22687 | ||
22688 | #include <linux/sysctl.h> | |
22689 | ||
22690 | int | |
22691 | main (void) | |
22692 | { | |
22693 | ||
22694 | #ifndef CTL_UNNUMBERED | |
22695 | #error CTL_UNNUMBERED undefined | |
22696 | #endif | |
22697 | ||
22698 | ; | |
22699 | return 0; | |
22700 | } | |
22701 | ||
22702 | _ACEOF | |
22703 | ||
c5f70460 BB |
22704 | |
22705 | rm -Rf build && mkdir -p build | |
22706 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22707 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22709 | (eval $ac_try) 2>&5 | |
22710 | ac_status=$? | |
22711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22712 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22714 | (eval $ac_try) 2>&5 | |
22715 | ac_status=$? | |
22716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22717 | (exit $ac_status); }; }; then | |
22718 | ||
22719 | echo "$as_me:$LINENO: result: yes" >&5 | |
22720 | echo "${ECHO_T}yes" >&6 | |
22721 | ||
22722 | cat >>confdefs.h <<\_ACEOF | |
22723 | #define HAVE_CTL_UNNUMBERED 1 | |
22724 | _ACEOF | |
22725 | ||
22726 | ||
22727 | else | |
22728 | echo "$as_me: failed program was:" >&5 | |
22729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22730 | ||
bf9f3bac | 22731 | echo "$as_me:$LINENO: result: no" >&5 |
22732 | echo "${ECHO_T}no" >&6 | |
22733 | ||
c5f70460 BB |
22734 | |
22735 | ||
bf9f3bac | 22736 | fi |
c5f70460 BB |
22737 | |
22738 | rm -Rf build | |
22739 | ||
bf9f3bac | 22740 | |
22741 | ||
86933a6e | 22742 | echo "$as_me:$LINENO: checking whether fls64() is available" >&5 |
bf9f3bac | 22743 | echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6 |
22744 | ||
22745 | ||
22746 | cat >conftest.c <<_ACEOF | |
22747 | /* confdefs.h. */ | |
22748 | _ACEOF | |
22749 | cat confdefs.h >>conftest.$ac_ext | |
22750 | cat >>conftest.$ac_ext <<_ACEOF | |
22751 | /* end confdefs.h. */ | |
22752 | ||
22753 | ||
22754 | #include <linux/bitops.h> | |
22755 | ||
22756 | int | |
22757 | main (void) | |
22758 | { | |
22759 | ||
22760 | return fls64(0); | |
22761 | ||
22762 | ; | |
22763 | return 0; | |
22764 | } | |
22765 | ||
22766 | _ACEOF | |
22767 | ||
c5f70460 BB |
22768 | |
22769 | rm -Rf build && mkdir -p build | |
22770 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22771 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 22772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22773 | (eval $ac_try) 2>&5 | |
22774 | ac_status=$? | |
22775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22776 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22778 | (eval $ac_try) 2>&5 | |
22779 | ac_status=$? | |
22780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22781 | (exit $ac_status); }; }; then | |
22782 | ||
22783 | echo "$as_me:$LINENO: result: yes" >&5 | |
22784 | echo "${ECHO_T}yes" >&6 | |
22785 | ||
22786 | cat >>confdefs.h <<\_ACEOF | |
22787 | #define HAVE_FLS64 1 | |
22788 | _ACEOF | |
22789 | ||
22790 | ||
22791 | else | |
22792 | echo "$as_me: failed program was:" >&5 | |
22793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22794 | ||
bf9f3bac | 22795 | echo "$as_me:$LINENO: result: no" >&5 |
22796 | echo "${ECHO_T}no" >&6 | |
22797 | ||
c5f70460 BB |
22798 | |
22799 | ||
bf9f3bac | 22800 | fi |
c5f70460 BB |
22801 | |
22802 | rm -Rf build | |
22803 | ||
bf9f3bac | 22804 | |
22805 | ||
22806 | ||
22807 | echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 | |
22808 | echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
22809 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
22810 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 22811 | rc=$? |
22812 | if test $rc -ne 0; then | |
22813 | export=0 | |
22814 | for file in drivers/base/core.c; do | |
2e0e7e69 BB |
22815 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ |
22816 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 22817 | rc=$? |
22818 | if test $rc -eq 0; then | |
22819 | export=1 | |
22820 | break; | |
22821 | fi | |
22822 | done | |
22823 | if test $export -eq 0; then | |
22824 | echo "$as_me:$LINENO: result: no" >&5 | |
22825 | echo "${ECHO_T}no" >&6 | |
22826 | ||
22827 | else | |
22828 | echo "$as_me:$LINENO: result: yes" >&5 | |
22829 | echo "${ECHO_T}yes" >&6 | |
22830 | ||
22831 | cat >>confdefs.h <<\_ACEOF | |
22832 | #define HAVE_DEVICE_CREATE 1 | |
22833 | _ACEOF | |
22834 | ||
22835 | fi | |
22836 | else | |
22837 | echo "$as_me:$LINENO: result: yes" >&5 | |
22838 | echo "${ECHO_T}yes" >&6 | |
22839 | ||
22840 | cat >>confdefs.h <<\_ACEOF | |
22841 | #define HAVE_DEVICE_CREATE 1 | |
22842 | _ACEOF | |
22843 | ||
22844 | fi | |
22845 | ||
22846 | ||
22847 | ||
8123ac4f BB |
22848 | echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
22849 | echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6 | |
22850 | tmp_flags="$EXTRA_KCFLAGS" | |
22851 | EXTRA_KCFLAGS="-Werror" | |
22852 | ||
22853 | ||
22854 | cat >conftest.c <<_ACEOF | |
22855 | /* confdefs.h. */ | |
22856 | _ACEOF | |
22857 | cat confdefs.h >>conftest.$ac_ext | |
22858 | cat >>conftest.$ac_ext <<_ACEOF | |
22859 | /* end confdefs.h. */ | |
22860 | ||
22861 | ||
22862 | #include <linux/device.h> | |
22863 | ||
22864 | int | |
22865 | main (void) | |
22866 | { | |
22867 | ||
22868 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
22869 | ||
22870 | ; | |
22871 | return 0; | |
22872 | } | |
22873 | ||
22874 | _ACEOF | |
22875 | ||
22876 | ||
22877 | rm -Rf build && mkdir -p build | |
22878 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 22879 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
8123ac4f BB |
22880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22881 | (eval $ac_try) 2>&5 | |
22882 | ac_status=$? | |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22884 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22886 | (eval $ac_try) 2>&5 | |
22887 | ac_status=$? | |
22888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22889 | (exit $ac_status); }; }; then | |
22890 | ||
22891 | echo "$as_me:$LINENO: result: yes" >&5 | |
22892 | echo "${ECHO_T}yes" >&6 | |
22893 | ||
22894 | cat >>confdefs.h <<\_ACEOF | |
22895 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
22896 | _ACEOF | |
22897 | ||
22898 | ||
22899 | else | |
22900 | echo "$as_me: failed program was:" >&5 | |
22901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22902 | ||
22903 | echo "$as_me:$LINENO: result: no" >&5 | |
22904 | echo "${ECHO_T}no" >&6 | |
22905 | ||
22906 | ||
22907 | ||
22908 | fi | |
22909 | ||
22910 | rm -Rf build | |
22911 | ||
22912 | ||
22913 | EXTRA_KCFLAGS="$tmp_flags" | |
22914 | ||
22915 | ||
bf9f3bac | 22916 | echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 |
22917 | echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
22918 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
22919 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 22920 | rc=$? |
22921 | if test $rc -ne 0; then | |
22922 | export=0 | |
22923 | for file in drivers/base/class.c; do | |
2e0e7e69 BB |
22924 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ |
22925 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 22926 | rc=$? |
22927 | if test $rc -eq 0; then | |
22928 | export=1 | |
22929 | break; | |
22930 | fi | |
22931 | done | |
22932 | if test $export -eq 0; then | |
22933 | echo "$as_me:$LINENO: result: no" >&5 | |
22934 | echo "${ECHO_T}no" >&6 | |
22935 | ||
22936 | else | |
22937 | echo "$as_me:$LINENO: result: yes" >&5 | |
22938 | echo "${ECHO_T}yes" >&6 | |
22939 | ||
22940 | cat >>confdefs.h <<\_ACEOF | |
22941 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
22942 | _ACEOF | |
22943 | ||
22944 | fi | |
22945 | else | |
22946 | echo "$as_me:$LINENO: result: yes" >&5 | |
22947 | echo "${ECHO_T}yes" >&6 | |
22948 | ||
22949 | cat >>confdefs.h <<\_ACEOF | |
22950 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
22951 | _ACEOF | |
22952 | ||
22953 | fi | |
22954 | ||
22955 | ||
22956 | ||
22957 | echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 | |
22958 | echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6 | |
2e0e7e69 BB |
22959 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
22960 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac | 22961 | rc=$? |
22962 | if test $rc -ne 0; then | |
22963 | export=0 | |
22964 | for file in kernel/time.c; do | |
2e0e7e69 BB |
22965 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ |
22966 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac | 22967 | rc=$? |
22968 | if test $rc -eq 0; then | |
22969 | export=1 | |
22970 | break; | |
22971 | fi | |
22972 | done | |
22973 | if test $export -eq 0; then | |
22974 | echo "$as_me:$LINENO: result: no" >&5 | |
22975 | echo "${ECHO_T}no" >&6 | |
22976 | ||
6ae7fef5 BB |
22977 | else |
22978 | echo "$as_me:$LINENO: result: yes" >&5 | |
22979 | echo "${ECHO_T}yes" >&6 | |
22980 | ||
22981 | cat >>confdefs.h <<\_ACEOF | |
22982 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
22983 | _ACEOF | |
22984 | ||
22985 | fi | |
22986 | else | |
22987 | echo "$as_me:$LINENO: result: yes" >&5 | |
22988 | echo "${ECHO_T}yes" >&6 | |
22989 | ||
22990 | cat >>confdefs.h <<\_ACEOF | |
22991 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
22992 | _ACEOF | |
22993 | ||
22994 | fi | |
22995 | ||
22996 | ||
22997 | ||
22998 | echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 | |
22999 | echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6 | |
23000 | ||
23001 | ||
23002 | cat >conftest.c <<_ACEOF | |
23003 | /* confdefs.h. */ | |
23004 | _ACEOF | |
23005 | cat confdefs.h >>conftest.$ac_ext | |
23006 | cat >>conftest.$ac_ext <<_ACEOF | |
23007 | /* end confdefs.h. */ | |
23008 | ||
23009 | ||
23010 | #include <linux/time.h> | |
23011 | void set_normalized_timespec(struct timespec *ts, | |
23012 | time_t sec, long nsec) { } | |
23013 | ||
23014 | int | |
23015 | main (void) | |
23016 | { | |
23017 | ||
23018 | ; | |
23019 | return 0; | |
23020 | } | |
23021 | ||
23022 | _ACEOF | |
23023 | ||
23024 | ||
23025 | rm -Rf build && mkdir -p build | |
23026 | echo "obj-m := conftest.o" >build/Makefile | |
23027 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23029 | (eval $ac_try) 2>&5 | |
23030 | ac_status=$? | |
23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23032 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23034 | (eval $ac_try) 2>&5 | |
23035 | ac_status=$? | |
23036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23037 | (exit $ac_status); }; }; then | |
23038 | ||
23039 | echo "$as_me:$LINENO: result: no" >&5 | |
23040 | echo "${ECHO_T}no" >&6 | |
23041 | ||
23042 | else | |
23043 | echo "$as_me: failed program was:" >&5 | |
23044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23045 | ||
23046 | echo "$as_me:$LINENO: result: yes" >&5 | |
23047 | echo "${ECHO_T}yes" >&6 | |
23048 | ||
23049 | cat >>confdefs.h <<\_ACEOF | |
23050 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
23051 | _ACEOF | |
23052 | ||
23053 | ||
23054 | ||
23055 | ||
23056 | fi | |
23057 | ||
23058 | rm -Rf build | |
23059 | ||
23060 | ||
23061 | ||
23062 | ||
23063 | echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 | |
23064 | echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6 | |
23065 | ||
23066 | ||
23067 | cat >conftest.c <<_ACEOF | |
23068 | /* confdefs.h. */ | |
23069 | _ACEOF | |
23070 | cat confdefs.h >>conftest.$ac_ext | |
23071 | cat >>conftest.$ac_ext <<_ACEOF | |
23072 | /* end confdefs.h. */ | |
23073 | ||
23074 | ||
23075 | #include <linux/time.h> | |
23076 | ||
23077 | int | |
23078 | main (void) | |
23079 | { | |
23080 | ||
23081 | struct timespec a, b, c = { 0 }; | |
23082 | c = timespec_sub(a, b); | |
23083 | ||
23084 | ; | |
23085 | return 0; | |
23086 | } | |
23087 | ||
23088 | _ACEOF | |
23089 | ||
23090 | ||
23091 | rm -Rf build && mkdir -p build | |
23092 | echo "obj-m := conftest.o" >build/Makefile | |
23093 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23095 | (eval $ac_try) 2>&5 | |
23096 | ac_status=$? | |
23097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23098 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23100 | (eval $ac_try) 2>&5 | |
23101 | ac_status=$? | |
23102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23103 | (exit $ac_status); }; }; then | |
23104 | ||
23105 | echo "$as_me:$LINENO: result: yes" >&5 | |
23106 | echo "${ECHO_T}yes" >&6 | |
23107 | ||
23108 | cat >>confdefs.h <<\_ACEOF | |
23109 | #define HAVE_TIMESPEC_SUB 1 | |
23110 | _ACEOF | |
23111 | ||
23112 | ||
23113 | else | |
23114 | echo "$as_me: failed program was:" >&5 | |
23115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23116 | ||
23117 | echo "$as_me:$LINENO: result: no" >&5 | |
23118 | echo "${ECHO_T}no" >&6 | |
23119 | ||
23120 | ||
23121 | ||
23122 | fi | |
23123 | ||
23124 | rm -Rf build | |
23125 | ||
23126 | ||
23127 | ||
23128 | ||
23129 | echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 | |
23130 | echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6 | |
23131 | ||
23132 | ||
23133 | cat >conftest.c <<_ACEOF | |
23134 | /* confdefs.h. */ | |
23135 | _ACEOF | |
23136 | cat confdefs.h >>conftest.$ac_ext | |
23137 | cat >>conftest.$ac_ext <<_ACEOF | |
23138 | /* end confdefs.h. */ | |
23139 | ||
23140 | ||
23141 | #include <linux/utsname.h> | |
23142 | ||
23143 | int | |
23144 | main (void) | |
23145 | { | |
23146 | ||
23147 | struct new_utsname *a = init_utsname(); | |
23148 | ||
23149 | ; | |
23150 | return 0; | |
23151 | } | |
23152 | ||
23153 | _ACEOF | |
23154 | ||
23155 | ||
23156 | rm -Rf build && mkdir -p build | |
23157 | echo "obj-m := conftest.o" >build/Makefile | |
23158 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23160 | (eval $ac_try) 2>&5 | |
23161 | ac_status=$? | |
23162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23163 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23165 | (eval $ac_try) 2>&5 | |
23166 | ac_status=$? | |
23167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23168 | (exit $ac_status); }; }; then | |
23169 | ||
23170 | echo "$as_me:$LINENO: result: yes" >&5 | |
23171 | echo "${ECHO_T}yes" >&6 | |
23172 | ||
23173 | cat >>confdefs.h <<\_ACEOF | |
23174 | #define HAVE_INIT_UTSNAME 1 | |
23175 | _ACEOF | |
23176 | ||
23177 | ||
23178 | else | |
23179 | echo "$as_me: failed program was:" >&5 | |
23180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23181 | ||
23182 | echo "$as_me:$LINENO: result: no" >&5 | |
23183 | echo "${ECHO_T}no" >&6 | |
23184 | ||
23185 | ||
23186 | ||
23187 | fi | |
23188 | ||
23189 | rm -Rf build | |
23190 | ||
23191 | ||
23192 | ||
23193 | ||
23194 | echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 | |
23195 | echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6 | |
23196 | ||
23197 | ||
23198 | cat >conftest.c <<_ACEOF | |
23199 | /* confdefs.h. */ | |
23200 | _ACEOF | |
23201 | cat confdefs.h >>conftest.$ac_ext | |
23202 | cat >>conftest.$ac_ext <<_ACEOF | |
23203 | /* end confdefs.h. */ | |
23204 | ||
23205 | ||
23206 | #include <linux/fdtable.h> | |
23207 | ||
23208 | int | |
23209 | main (void) | |
23210 | { | |
23211 | ||
23212 | return 0; | |
23213 | ||
23214 | ; | |
23215 | return 0; | |
23216 | } | |
23217 | ||
23218 | _ACEOF | |
23219 | ||
23220 | ||
23221 | rm -Rf build && mkdir -p build | |
23222 | echo "obj-m := conftest.o" >build/Makefile | |
23223 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
23224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23225 | (eval $ac_try) 2>&5 | |
23226 | ac_status=$? | |
23227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23228 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23230 | (eval $ac_try) 2>&5 | |
23231 | ac_status=$? | |
23232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23233 | (exit $ac_status); }; }; then | |
23234 | ||
bf9f3bac | 23235 | |
23236 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23237 | #define HAVE_FDTABLE_HEADER 1 |
bf9f3bac | 23238 | _ACEOF |
23239 | ||
bf9f3bac | 23240 | echo "$as_me:$LINENO: result: yes" >&5 |
23241 | echo "${ECHO_T}yes" >&6 | |
23242 | ||
bf9f3bac | 23243 | |
6ae7fef5 BB |
23244 | else |
23245 | echo "$as_me: failed program was:" >&5 | |
23246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23247 | ||
23248 | echo "$as_me:$LINENO: result: no" >&5 | |
23249 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 23250 | |
23251 | ||
23252 | ||
6ae7fef5 BB |
23253 | |
23254 | fi | |
23255 | ||
23256 | rm -Rf build | |
23257 | ||
23258 | ||
23259 | ||
23260 | ||
23261 | ||
23262 | echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 | |
23263 | echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6 | |
bf9f3bac | 23264 | |
23265 | ||
23266 | cat >conftest.c <<_ACEOF | |
23267 | /* confdefs.h. */ | |
23268 | _ACEOF | |
23269 | cat confdefs.h >>conftest.$ac_ext | |
23270 | cat >>conftest.$ac_ext <<_ACEOF | |
23271 | /* end confdefs.h. */ | |
23272 | ||
23273 | ||
6ae7fef5 BB |
23274 | #include <linux/sched.h> |
23275 | #include <linux/file.h> | |
23276 | #ifdef HAVE_FDTABLE_HEADER | |
23277 | #include <linux/fdtable.h> | |
23278 | #endif | |
bf9f3bac | 23279 | |
23280 | int | |
23281 | main (void) | |
23282 | { | |
23283 | ||
6ae7fef5 BB |
23284 | struct files_struct *files = current->files; |
23285 | struct fdtable *fdt = files_fdtable(files); | |
23286 | ||
bf9f3bac | 23287 | ; |
23288 | return 0; | |
23289 | } | |
23290 | ||
23291 | _ACEOF | |
23292 | ||
c5f70460 BB |
23293 | |
23294 | rm -Rf build && mkdir -p build | |
23295 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23296 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23298 | (eval $ac_try) 2>&5 | |
23299 | ac_status=$? | |
23300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23301 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23303 | (eval $ac_try) 2>&5 | |
23304 | ac_status=$? | |
23305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23306 | (exit $ac_status); }; }; then | |
23307 | ||
bf9f3bac | 23308 | echo "$as_me:$LINENO: result: yes" >&5 |
23309 | echo "${ECHO_T}yes" >&6 | |
23310 | ||
23311 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23312 | #define HAVE_FILES_FDTABLE 1 |
bf9f3bac | 23313 | _ACEOF |
23314 | ||
23315 | ||
6ae7fef5 BB |
23316 | else |
23317 | echo "$as_me: failed program was:" >&5 | |
23318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23319 | ||
23320 | echo "$as_me:$LINENO: result: no" >&5 | |
23321 | echo "${ECHO_T}no" >&6 | |
23322 | ||
c5f70460 BB |
23323 | |
23324 | ||
bf9f3bac | 23325 | fi |
c5f70460 BB |
23326 | |
23327 | rm -Rf build | |
23328 | ||
bf9f3bac | 23329 | |
23330 | ||
23331 | ||
6ae7fef5 BB |
23332 | echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 |
23333 | echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6 | |
bf9f3bac | 23334 | |
23335 | ||
23336 | cat >conftest.c <<_ACEOF | |
23337 | /* confdefs.h. */ | |
23338 | _ACEOF | |
23339 | cat confdefs.h >>conftest.$ac_ext | |
23340 | cat >>conftest.$ac_ext <<_ACEOF | |
23341 | /* end confdefs.h. */ | |
23342 | ||
23343 | ||
6ae7fef5 | 23344 | #include <linux/uaccess.h> |
bf9f3bac | 23345 | |
23346 | int | |
23347 | main (void) | |
23348 | { | |
23349 | ||
6ae7fef5 | 23350 | return 0; |
bf9f3bac | 23351 | |
23352 | ; | |
23353 | return 0; | |
23354 | } | |
23355 | ||
23356 | _ACEOF | |
23357 | ||
c5f70460 BB |
23358 | |
23359 | rm -Rf build && mkdir -p build | |
23360 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23361 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23363 | (eval $ac_try) 2>&5 | |
23364 | ac_status=$? | |
23365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23366 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23368 | (eval $ac_try) 2>&5 | |
23369 | ac_status=$? | |
23370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23371 | (exit $ac_status); }; }; then | |
23372 | ||
bf9f3bac | 23373 | |
23374 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23375 | #define HAVE_UACCESS_HEADER 1 |
bf9f3bac | 23376 | _ACEOF |
23377 | ||
6ae7fef5 BB |
23378 | echo "$as_me:$LINENO: result: yes" >&5 |
23379 | echo "${ECHO_T}yes" >&6 | |
23380 | ||
bf9f3bac | 23381 | |
23382 | else | |
23383 | echo "$as_me: failed program was:" >&5 | |
23384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23385 | ||
bf9f3bac | 23386 | echo "$as_me:$LINENO: result: no" >&5 |
23387 | echo "${ECHO_T}no" >&6 | |
23388 | ||
c5f70460 BB |
23389 | |
23390 | ||
6ae7fef5 | 23391 | |
bf9f3bac | 23392 | fi |
c5f70460 BB |
23393 | |
23394 | rm -Rf build | |
23395 | ||
bf9f3bac | 23396 | |
23397 | ||
23398 | ||
6ae7fef5 BB |
23399 | |
23400 | echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 | |
23401 | echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6 | |
bf9f3bac | 23402 | |
23403 | ||
23404 | cat >conftest.c <<_ACEOF | |
23405 | /* confdefs.h. */ | |
23406 | _ACEOF | |
23407 | cat confdefs.h >>conftest.$ac_ext | |
23408 | cat >>conftest.$ac_ext <<_ACEOF | |
23409 | /* end confdefs.h. */ | |
23410 | ||
23411 | ||
6ae7fef5 | 23412 | #include <linux/slab.h> |
bf9f3bac | 23413 | |
23414 | int | |
23415 | main (void) | |
23416 | { | |
23417 | ||
6ae7fef5 | 23418 | void *a = kmalloc_node(1, GFP_KERNEL, 0); |
bf9f3bac | 23419 | |
23420 | ; | |
23421 | return 0; | |
23422 | } | |
23423 | ||
23424 | _ACEOF | |
23425 | ||
c5f70460 BB |
23426 | |
23427 | rm -Rf build && mkdir -p build | |
23428 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23429 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23431 | (eval $ac_try) 2>&5 | |
23432 | ac_status=$? | |
23433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23434 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23436 | (eval $ac_try) 2>&5 | |
23437 | ac_status=$? | |
23438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23439 | (exit $ac_status); }; }; then | |
23440 | ||
23441 | echo "$as_me:$LINENO: result: yes" >&5 | |
23442 | echo "${ECHO_T}yes" >&6 | |
23443 | ||
23444 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23445 | #define HAVE_KMALLOC_NODE 1 |
bf9f3bac | 23446 | _ACEOF |
23447 | ||
23448 | ||
23449 | else | |
23450 | echo "$as_me: failed program was:" >&5 | |
23451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23452 | ||
bf9f3bac | 23453 | echo "$as_me:$LINENO: result: no" >&5 |
23454 | echo "${ECHO_T}no" >&6 | |
23455 | ||
c5f70460 BB |
23456 | |
23457 | ||
bf9f3bac | 23458 | fi |
c5f70460 BB |
23459 | |
23460 | rm -Rf build | |
23461 | ||
bf9f3bac | 23462 | |
23463 | ||
23464 | ||
6ae7fef5 BB |
23465 | echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 |
23466 | echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6 | |
23467 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
23468 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23469 | rc=$? | |
23470 | if test $rc -ne 0; then | |
23471 | export=0 | |
23472 | for file in ; do | |
23473 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
23474 | "$LINUX_OBJ/$file" 2>/dev/null | |
23475 | rc=$? | |
23476 | if test $rc -eq 0; then | |
23477 | export=1 | |
23478 | break; | |
23479 | fi | |
23480 | done | |
23481 | if test $export -eq 0; then | |
23482 | echo "$as_me:$LINENO: result: no" >&5 | |
23483 | echo "${ECHO_T}no" >&6 | |
23484 | ||
23485 | else | |
23486 | echo "$as_me:$LINENO: result: yes" >&5 | |
23487 | echo "${ECHO_T}yes" >&6 | |
23488 | ||
23489 | cat >>confdefs.h <<\_ACEOF | |
23490 | #define HAVE_MONOTONIC_CLOCK 1 | |
23491 | _ACEOF | |
23492 | ||
23493 | fi | |
23494 | else | |
23495 | echo "$as_me:$LINENO: result: yes" >&5 | |
23496 | echo "${ECHO_T}yes" >&6 | |
23497 | ||
23498 | cat >>confdefs.h <<\_ACEOF | |
23499 | #define HAVE_MONOTONIC_CLOCK 1 | |
23500 | _ACEOF | |
23501 | ||
23502 | fi | |
23503 | ||
23504 | ||
23505 | ||
23506 | echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
23507 | echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6 | |
bf9f3bac | 23508 | |
23509 | ||
23510 | cat >conftest.c <<_ACEOF | |
23511 | /* confdefs.h. */ | |
23512 | _ACEOF | |
23513 | cat confdefs.h >>conftest.$ac_ext | |
23514 | cat >>conftest.$ac_ext <<_ACEOF | |
23515 | /* end confdefs.h. */ | |
23516 | ||
23517 | ||
6ae7fef5 BB |
23518 | #include <linux/fs.h> |
23519 | #include <linux/mutex.h> | |
bf9f3bac | 23520 | |
23521 | int | |
23522 | main (void) | |
23523 | { | |
23524 | ||
6ae7fef5 BB |
23525 | struct inode i; |
23526 | mutex_init(&i.i_mutex); | |
bf9f3bac | 23527 | |
23528 | ; | |
23529 | return 0; | |
23530 | } | |
23531 | ||
23532 | _ACEOF | |
23533 | ||
c5f70460 BB |
23534 | |
23535 | rm -Rf build && mkdir -p build | |
23536 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23537 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23539 | (eval $ac_try) 2>&5 | |
23540 | ac_status=$? | |
23541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23542 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23544 | (eval $ac_try) 2>&5 | |
23545 | ac_status=$? | |
23546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23547 | (exit $ac_status); }; }; then | |
23548 | ||
6ae7fef5 BB |
23549 | echo "$as_me:$LINENO: result: yes" >&5 |
23550 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 23551 | |
23552 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23553 | #define HAVE_INODE_I_MUTEX 1 |
bf9f3bac | 23554 | _ACEOF |
23555 | ||
bf9f3bac | 23556 | |
23557 | else | |
23558 | echo "$as_me: failed program was:" >&5 | |
23559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23560 | ||
bf9f3bac | 23561 | echo "$as_me:$LINENO: result: no" >&5 |
23562 | echo "${ECHO_T}no" >&6 | |
23563 | ||
23564 | ||
c5f70460 | 23565 | |
bf9f3bac | 23566 | fi |
c5f70460 BB |
23567 | |
23568 | rm -Rf build | |
23569 | ||
bf9f3bac | 23570 | |
23571 | ||
23572 | ||
6ae7fef5 BB |
23573 | echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
23574 | echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6 | |
bf9f3bac | 23575 | |
23576 | ||
23577 | cat >conftest.c <<_ACEOF | |
23578 | /* confdefs.h. */ | |
23579 | _ACEOF | |
23580 | cat confdefs.h >>conftest.$ac_ext | |
23581 | cat >>conftest.$ac_ext <<_ACEOF | |
23582 | /* end confdefs.h. */ | |
23583 | ||
23584 | ||
6ae7fef5 | 23585 | #include <linux/mutex.h> |
bf9f3bac | 23586 | |
23587 | int | |
23588 | main (void) | |
23589 | { | |
23590 | ||
6ae7fef5 BB |
23591 | struct mutex mutex; |
23592 | mutex_init(&mutex); | |
23593 | mutex_lock_nested(&mutex, 0); | |
bf9f3bac | 23594 | |
23595 | ; | |
23596 | return 0; | |
23597 | } | |
23598 | ||
23599 | _ACEOF | |
23600 | ||
c5f70460 BB |
23601 | |
23602 | rm -Rf build && mkdir -p build | |
23603 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23604 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23606 | (eval $ac_try) 2>&5 | |
23607 | ac_status=$? | |
23608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23609 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23611 | (eval $ac_try) 2>&5 | |
23612 | ac_status=$? | |
23613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23614 | (exit $ac_status); }; }; then | |
23615 | ||
23616 | echo "$as_me:$LINENO: result: yes" >&5 | |
23617 | echo "${ECHO_T}yes" >&6 | |
23618 | ||
23619 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23620 | #define HAVE_MUTEX_LOCK_NESTED 1 |
bf9f3bac | 23621 | _ACEOF |
23622 | ||
23623 | ||
23624 | else | |
23625 | echo "$as_me: failed program was:" >&5 | |
23626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23627 | ||
bf9f3bac | 23628 | echo "$as_me:$LINENO: result: no" >&5 |
23629 | echo "${ECHO_T}no" >&6 | |
23630 | ||
c5f70460 BB |
23631 | |
23632 | ||
bf9f3bac | 23633 | fi |
c5f70460 BB |
23634 | |
23635 | rm -Rf build | |
23636 | ||
bf9f3bac | 23637 | |
23638 | ||
23639 | ||
6ae7fef5 BB |
23640 | echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5 |
23641 | echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6 | |
23642 | grep -q -E '[[:space:]]div64_64[[:space:]]' \ | |
23643 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23644 | rc=$? | |
23645 | if test $rc -ne 0; then | |
23646 | export=0 | |
23647 | for file in ; do | |
23648 | grep -q -E "EXPORT_SYMBOL.*(div64_64)" \ | |
23649 | "$LINUX_OBJ/$file" 2>/dev/null | |
23650 | rc=$? | |
23651 | if test $rc -eq 0; then | |
23652 | export=1 | |
23653 | break; | |
23654 | fi | |
23655 | done | |
23656 | if test $export -eq 0; then | |
23657 | echo "$as_me:$LINENO: result: no" >&5 | |
23658 | echo "${ECHO_T}no" >&6 | |
23659 | ||
23660 | else | |
23661 | echo "$as_me:$LINENO: result: yes" >&5 | |
23662 | echo "${ECHO_T}yes" >&6 | |
23663 | ||
23664 | cat >>confdefs.h <<\_ACEOF | |
23665 | #define HAVE_DIV64_64 1 | |
23666 | _ACEOF | |
23667 | ||
23668 | fi | |
23669 | else | |
23670 | echo "$as_me:$LINENO: result: yes" >&5 | |
23671 | echo "${ECHO_T}yes" >&6 | |
23672 | ||
23673 | cat >>confdefs.h <<\_ACEOF | |
23674 | #define HAVE_DIV64_64 1 | |
23675 | _ACEOF | |
23676 | ||
23677 | fi | |
23678 | ||
23679 | ||
23680 | ||
23681 | echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5 | |
23682 | echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6 | |
23683 | grep -q -E '[[:space:]]div64_u64[[:space:]]' \ | |
23684 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23685 | rc=$? | |
23686 | if test $rc -ne 0; then | |
23687 | export=0 | |
23688 | for file in ; do | |
23689 | grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \ | |
23690 | "$LINUX_OBJ/$file" 2>/dev/null | |
23691 | rc=$? | |
23692 | if test $rc -eq 0; then | |
23693 | export=1 | |
23694 | break; | |
23695 | fi | |
23696 | done | |
23697 | if test $export -eq 0; then | |
23698 | echo "$as_me:$LINENO: result: no" >&5 | |
23699 | echo "${ECHO_T}no" >&6 | |
23700 | ||
23701 | else | |
23702 | echo "$as_me:$LINENO: result: yes" >&5 | |
23703 | echo "${ECHO_T}yes" >&6 | |
23704 | ||
23705 | cat >>confdefs.h <<\_ACEOF | |
23706 | #define HAVE_DIV64_U64 1 | |
23707 | _ACEOF | |
23708 | ||
23709 | fi | |
23710 | else | |
23711 | echo "$as_me:$LINENO: result: yes" >&5 | |
23712 | echo "${ECHO_T}yes" >&6 | |
23713 | ||
23714 | cat >>confdefs.h <<\_ACEOF | |
23715 | #define HAVE_DIV64_U64 1 | |
23716 | _ACEOF | |
23717 | ||
23718 | fi | |
23719 | ||
23720 | ||
23721 | ||
23722 | echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 | |
23723 | echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6 | |
bf9f3bac | 23724 | |
23725 | ||
23726 | cat >conftest.c <<_ACEOF | |
23727 | /* confdefs.h. */ | |
23728 | _ACEOF | |
23729 | cat confdefs.h >>conftest.$ac_ext | |
23730 | cat >>conftest.$ac_ext <<_ACEOF | |
23731 | /* end confdefs.h. */ | |
23732 | ||
23733 | ||
6ae7fef5 | 23734 | #include <linux/smp.h> |
bf9f3bac | 23735 | |
23736 | int | |
23737 | main (void) | |
23738 | { | |
23739 | ||
6ae7fef5 | 23740 | on_each_cpu(NULL, NULL, 0); |
bf9f3bac | 23741 | |
23742 | ; | |
23743 | return 0; | |
23744 | } | |
23745 | ||
23746 | _ACEOF | |
23747 | ||
c5f70460 BB |
23748 | |
23749 | rm -Rf build && mkdir -p build | |
23750 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 23751 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 23752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23753 | (eval $ac_try) 2>&5 | |
23754 | ac_status=$? | |
23755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23756 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23758 | (eval $ac_try) 2>&5 | |
23759 | ac_status=$? | |
23760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23761 | (exit $ac_status); }; }; then | |
23762 | ||
6ae7fef5 BB |
23763 | echo "$as_me:$LINENO: result: yes" >&5 |
23764 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 23765 | |
23766 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23767 | #define HAVE_3ARGS_ON_EACH_CPU 1 |
bf9f3bac | 23768 | _ACEOF |
23769 | ||
bf9f3bac | 23770 | |
23771 | else | |
23772 | echo "$as_me: failed program was:" >&5 | |
23773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23774 | ||
bf9f3bac | 23775 | echo "$as_me:$LINENO: result: no" >&5 |
23776 | echo "${ECHO_T}no" >&6 | |
23777 | ||
23778 | ||
c5f70460 | 23779 | |
bf9f3bac | 23780 | fi |
c5f70460 BB |
23781 | |
23782 | rm -Rf build | |
23783 | ||
bf9f3bac | 23784 | |
23785 | ||
23786 | ||
6ae7fef5 BB |
23787 | echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 |
23788 | echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6 | |
23789 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
23790 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23791 | rc=$? | |
23792 | if test $rc -ne 0; then | |
23793 | export=0 | |
23794 | for file in ; do | |
23795 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
23796 | "$LINUX_OBJ/$file" 2>/dev/null | |
23797 | rc=$? | |
23798 | if test $rc -eq 0; then | |
23799 | export=1 | |
23800 | break; | |
23801 | fi | |
23802 | done | |
23803 | if test $export -eq 0; then | |
23804 | echo "$as_me:$LINENO: result: no" >&5 | |
23805 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 23806 | |
6ae7fef5 BB |
23807 | else |
23808 | echo "$as_me:$LINENO: result: yes" >&5 | |
23809 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 23810 | |
6ae7fef5 BB |
23811 | cat >>confdefs.h <<\_ACEOF |
23812 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
23813 | _ACEOF | |
bf9f3bac | 23814 | |
6ae7fef5 BB |
23815 | fi |
23816 | else | |
23817 | echo "$as_me:$LINENO: result: yes" >&5 | |
23818 | echo "${ECHO_T}yes" >&6 | |
23819 | ||
23820 | cat >>confdefs.h <<\_ACEOF | |
23821 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
bf9f3bac | 23822 | _ACEOF |
bf9f3bac | 23823 | |
6ae7fef5 | 23824 | fi |
bf9f3bac | 23825 | |
bf9f3bac | 23826 | |
bf9f3bac | 23827 | |
6ae7fef5 BB |
23828 | echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 |
23829 | echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6 | |
23830 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ | |
23831 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23832 | rc=$? | |
23833 | if test $rc -ne 0; then | |
23834 | export=0 | |
23835 | for file in ; do | |
23836 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
23837 | "$LINUX_OBJ/$file" 2>/dev/null | |
23838 | rc=$? | |
23839 | if test $rc -eq 0; then | |
23840 | export=1 | |
23841 | break; | |
23842 | fi | |
23843 | done | |
23844 | if test $export -eq 0; then | |
23845 | echo "$as_me:$LINENO: result: no" >&5 | |
23846 | echo "${ECHO_T}no" >&6 | |
bf9f3bac | 23847 | |
6ae7fef5 BB |
23848 | else |
23849 | echo "$as_me:$LINENO: result: yes" >&5 | |
23850 | echo "${ECHO_T}yes" >&6 | |
bf9f3bac | 23851 | |
6ae7fef5 BB |
23852 | cat >>confdefs.h <<\_ACEOF |
23853 | #define HAVE_GET_VMALLOC_INFO 1 | |
bf9f3bac | 23854 | _ACEOF |
23855 | ||
6ae7fef5 BB |
23856 | fi |
23857 | else | |
23858 | echo "$as_me:$LINENO: result: yes" >&5 | |
23859 | echo "${ECHO_T}yes" >&6 | |
23860 | ||
23861 | cat >>confdefs.h <<\_ACEOF | |
23862 | #define HAVE_GET_VMALLOC_INFO 1 | |
23863 | _ACEOF | |
23864 | ||
23865 | fi | |
23866 | ||
c5f70460 | 23867 | |
bf9f3bac | 23868 | |
6ae7fef5 BB |
23869 | echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
23870 | echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6 | |
23871 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
23872 | rc=$? | |
23873 | if test $rc -eq 0; then | |
bf9f3bac | 23874 | echo "$as_me:$LINENO: result: yes" >&5 |
23875 | echo "${ECHO_T}yes" >&6 | |
23876 | ||
23877 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23878 | #define HAVE_PGDAT_HELPERS 1 |
bf9f3bac | 23879 | _ACEOF |
23880 | ||
6ae7fef5 BB |
23881 | else |
23882 | echo "$as_me:$LINENO: result: no" >&5 | |
23883 | echo "${ECHO_T}no" >&6 | |
23884 | fi | |
bf9f3bac | 23885 | |
bf9f3bac | 23886 | |
6ae7fef5 BB |
23887 | echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 |
23888 | echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6 | |
23889 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
23890 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23891 | rc=$? | |
23892 | if test $rc -ne 0; then | |
23893 | export=0 | |
23894 | for file in ; do | |
23895 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
23896 | "$LINUX_OBJ/$file" 2>/dev/null | |
23897 | rc=$? | |
23898 | if test $rc -eq 0; then | |
23899 | export=1 | |
23900 | break; | |
23901 | fi | |
23902 | done | |
23903 | if test $export -eq 0; then | |
23904 | echo "$as_me:$LINENO: result: no" >&5 | |
bf9f3bac | 23905 | echo "${ECHO_T}no" >&6 |
23906 | ||
6ae7fef5 BB |
23907 | else |
23908 | echo "$as_me:$LINENO: result: yes" >&5 | |
23909 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 23910 | |
6ae7fef5 BB |
23911 | cat >>confdefs.h <<\_ACEOF |
23912 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
23913 | _ACEOF | |
c5f70460 | 23914 | |
6ae7fef5 BB |
23915 | fi |
23916 | else | |
23917 | echo "$as_me:$LINENO: result: yes" >&5 | |
23918 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 23919 | |
6ae7fef5 BB |
23920 | cat >>confdefs.h <<\_ACEOF |
23921 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
23922 | _ACEOF | |
c5f70460 | 23923 | |
6ae7fef5 | 23924 | fi |
bf9f3bac | 23925 | |
23926 | ||
23927 | ||
6ae7fef5 BB |
23928 | echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 |
23929 | echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6 | |
23930 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
2e0e7e69 | 23931 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
bf9f3bac | 23932 | rc=$? |
23933 | if test $rc -ne 0; then | |
23934 | export=0 | |
23935 | for file in ; do | |
6ae7fef5 | 23936 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ |
2e0e7e69 | 23937 | "$LINUX_OBJ/$file" 2>/dev/null |
bf9f3bac | 23938 | rc=$? |
23939 | if test $rc -eq 0; then | |
23940 | export=1 | |
23941 | break; | |
23942 | fi | |
23943 | done | |
23944 | if test $export -eq 0; then | |
23945 | echo "$as_me:$LINENO: result: no" >&5 | |
23946 | echo "${ECHO_T}no" >&6 | |
23947 | ||
23948 | else | |
23949 | echo "$as_me:$LINENO: result: yes" >&5 | |
23950 | echo "${ECHO_T}yes" >&6 | |
23951 | ||
23952 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23953 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
bf9f3bac | 23954 | _ACEOF |
23955 | ||
23956 | fi | |
23957 | else | |
23958 | echo "$as_me:$LINENO: result: yes" >&5 | |
23959 | echo "${ECHO_T}yes" >&6 | |
23960 | ||
23961 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 23962 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
bf9f3bac | 23963 | _ACEOF |
23964 | ||
23965 | fi | |
23966 | ||
23967 | ||
23968 | ||
6ae7fef5 BB |
23969 | echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 |
23970 | echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6 | |
23971 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
23972 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23973 | rc=$? | |
23974 | if test $rc -ne 0; then | |
23975 | export=0 | |
23976 | for file in ; do | |
23977 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
23978 | "$LINUX_OBJ/$file" 2>/dev/null | |
23979 | rc=$? | |
23980 | if test $rc -eq 0; then | |
23981 | export=1 | |
23982 | break; | |
23983 | fi | |
23984 | done | |
23985 | if test $export -eq 0; then | |
23986 | echo "$as_me:$LINENO: result: no" >&5 | |
23987 | echo "${ECHO_T}no" >&6 | |
23988 | ||
23989 | else | |
23990 | echo "$as_me:$LINENO: result: yes" >&5 | |
23991 | echo "${ECHO_T}yes" >&6 | |
23992 | ||
23993 | cat >>confdefs.h <<\_ACEOF | |
23994 | #define HAVE_NEXT_ZONE 1 | |
23995 | _ACEOF | |
23996 | ||
23997 | fi | |
23998 | else | |
23999 | echo "$as_me:$LINENO: result: yes" >&5 | |
24000 | echo "${ECHO_T}yes" >&6 | |
24001 | ||
24002 | cat >>confdefs.h <<\_ACEOF | |
24003 | #define HAVE_NEXT_ZONE 1 | |
24004 | _ACEOF | |
24005 | ||
24006 | fi | |
24007 | ||
24008 | ||
24009 | ||
24010 | echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 | |
24011 | echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6 | |
24012 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ | |
24013 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24014 | rc=$? | |
24015 | if test $rc -ne 0; then | |
24016 | export=0 | |
24017 | for file in ; do | |
24018 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
24019 | "$LINUX_OBJ/$file" 2>/dev/null | |
24020 | rc=$? | |
24021 | if test $rc -eq 0; then | |
24022 | export=1 | |
24023 | break; | |
24024 | fi | |
24025 | done | |
24026 | if test $export -eq 0; then | |
24027 | echo "$as_me:$LINENO: result: no" >&5 | |
24028 | echo "${ECHO_T}no" >&6 | |
24029 | ||
24030 | else | |
24031 | echo "$as_me:$LINENO: result: yes" >&5 | |
24032 | echo "${ECHO_T}yes" >&6 | |
24033 | ||
24034 | cat >>confdefs.h <<\_ACEOF | |
24035 | #define HAVE_PGDAT_LIST 1 | |
24036 | _ACEOF | |
24037 | ||
24038 | fi | |
24039 | else | |
24040 | echo "$as_me:$LINENO: result: yes" >&5 | |
24041 | echo "${ECHO_T}yes" >&6 | |
24042 | ||
24043 | cat >>confdefs.h <<\_ACEOF | |
24044 | #define HAVE_PGDAT_LIST 1 | |
24045 | _ACEOF | |
24046 | ||
24047 | fi | |
24048 | ||
24049 | ||
24050 | ||
24051 | echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 | |
24052 | echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6 | |
bf9f3bac | 24053 | |
24054 | ||
24055 | cat >conftest.c <<_ACEOF | |
24056 | /* confdefs.h. */ | |
24057 | _ACEOF | |
24058 | cat confdefs.h >>conftest.$ac_ext | |
24059 | cat >>conftest.$ac_ext <<_ACEOF | |
24060 | /* end confdefs.h. */ | |
24061 | ||
24062 | ||
6ae7fef5 | 24063 | #include <linux/mm.h> |
bf9f3bac | 24064 | |
24065 | int | |
24066 | main (void) | |
24067 | { | |
24068 | ||
6ae7fef5 BB |
24069 | unsigned long state; |
24070 | state = global_page_state(0); | |
bf9f3bac | 24071 | |
24072 | ; | |
24073 | return 0; | |
24074 | } | |
24075 | ||
24076 | _ACEOF | |
24077 | ||
c5f70460 BB |
24078 | |
24079 | rm -Rf build && mkdir -p build | |
24080 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24081 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac | 24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24083 | (eval $ac_try) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24088 | (eval $ac_try) 2>&5 | |
24089 | ac_status=$? | |
24090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24091 | (exit $ac_status); }; }; then | |
24092 | ||
24093 | echo "$as_me:$LINENO: result: yes" >&5 | |
24094 | echo "${ECHO_T}yes" >&6 | |
24095 | ||
24096 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24097 | #define HAVE_GLOBAL_PAGE_STATE 1 |
bf9f3bac | 24098 | _ACEOF |
24099 | ||
24100 | ||
24101 | else | |
24102 | echo "$as_me: failed program was:" >&5 | |
24103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24104 | ||
bf9f3bac | 24105 | echo "$as_me:$LINENO: result: no" >&5 |
24106 | echo "${ECHO_T}no" >&6 | |
24107 | ||
c5f70460 BB |
24108 | |
24109 | ||
bf9f3bac | 24110 | fi |
c5f70460 BB |
24111 | |
24112 | rm -Rf build | |
24113 | ||
bf9f3bac | 24114 | |
24115 | ||
24116 | ||
6ae7fef5 BB |
24117 | echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
24118 | echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6 | |
6c9433c1 BB |
24119 | |
24120 | ||
24121 | cat >conftest.c <<_ACEOF | |
24122 | /* confdefs.h. */ | |
24123 | _ACEOF | |
24124 | cat confdefs.h >>conftest.$ac_ext | |
24125 | cat >>conftest.$ac_ext <<_ACEOF | |
24126 | /* end confdefs.h. */ | |
24127 | ||
24128 | ||
6ae7fef5 | 24129 | #include <linux/mm.h> |
6c9433c1 BB |
24130 | |
24131 | int | |
24132 | main (void) | |
24133 | { | |
24134 | ||
6ae7fef5 BB |
24135 | enum zone_stat_item zsi; |
24136 | zsi = NR_FREE_PAGES; | |
6c9433c1 BB |
24137 | |
24138 | ; | |
24139 | return 0; | |
24140 | } | |
24141 | ||
24142 | _ACEOF | |
24143 | ||
24144 | ||
24145 | rm -Rf build && mkdir -p build | |
24146 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24147 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
6c9433c1 BB |
24148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24149 | (eval $ac_try) 2>&5 | |
24150 | ac_status=$? | |
24151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24152 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24154 | (eval $ac_try) 2>&5 | |
24155 | ac_status=$? | |
24156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24157 | (exit $ac_status); }; }; then | |
24158 | ||
24159 | echo "$as_me:$LINENO: result: yes" >&5 | |
24160 | echo "${ECHO_T}yes" >&6 | |
24161 | ||
24162 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24163 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
6c9433c1 BB |
24164 | _ACEOF |
24165 | ||
24166 | ||
24167 | else | |
24168 | echo "$as_me: failed program was:" >&5 | |
24169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24170 | ||
24171 | echo "$as_me:$LINENO: result: no" >&5 | |
24172 | echo "${ECHO_T}no" >&6 | |
24173 | ||
24174 | ||
24175 | ||
24176 | fi | |
24177 | ||
24178 | rm -Rf build | |
24179 | ||
24180 | ||
24181 | ||
24182 | ||
6ae7fef5 BB |
24183 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
24184 | echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6 | |
bf9f3bac | 24185 | |
bf9f3bac | 24186 | |
6ae7fef5 BB |
24187 | cat >conftest.c <<_ACEOF |
24188 | /* confdefs.h. */ | |
bf9f3bac | 24189 | _ACEOF |
6ae7fef5 BB |
24190 | cat confdefs.h >>conftest.$ac_ext |
24191 | cat >>conftest.$ac_ext <<_ACEOF | |
24192 | /* end confdefs.h. */ | |
bf9f3bac | 24193 | |
bf9f3bac | 24194 | |
6ae7fef5 | 24195 | #include <linux/mm.h> |
bf9f3bac | 24196 | |
6ae7fef5 BB |
24197 | int |
24198 | main (void) | |
24199 | { | |
96dded38 | 24200 | |
6ae7fef5 BB |
24201 | enum zone_stat_item zsi; |
24202 | zsi = NR_INACTIVE; | |
bf9f3bac | 24203 | |
6ae7fef5 BB |
24204 | ; |
24205 | return 0; | |
24206 | } | |
31a033ec | 24207 | |
6ae7fef5 | 24208 | _ACEOF |
31a033ec | 24209 | |
c5f70460 | 24210 | |
6ae7fef5 BB |
24211 | rm -Rf build && mkdir -p build |
24212 | echo "obj-m := conftest.o" >build/Makefile | |
24213 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24215 | (eval $ac_try) 2>&5 | |
24216 | ac_status=$? | |
24217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24218 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24220 | (eval $ac_try) 2>&5 | |
24221 | ac_status=$? | |
24222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24223 | (exit $ac_status); }; }; then | |
c5f70460 | 24224 | |
96dded38 BB |
24225 | echo "$as_me:$LINENO: result: yes" >&5 |
24226 | echo "${ECHO_T}yes" >&6 | |
c5f70460 | 24227 | |
96dded38 | 24228 | cat >>confdefs.h <<\_ACEOF |
6ae7fef5 | 24229 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
96dded38 | 24230 | _ACEOF |
c5f70460 | 24231 | |
31a033ec | 24232 | |
6ae7fef5 BB |
24233 | else |
24234 | echo "$as_me: failed program was:" >&5 | |
24235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24236 | ||
24237 | echo "$as_me:$LINENO: result: no" >&5 | |
24238 | echo "${ECHO_T}no" >&6 | |
24239 | ||
24240 | ||
24241 | ||
24242 | fi | |
24243 | ||
24244 | rm -Rf build | |
31a033ec BB |
24245 | |
24246 | ||
6ae7fef5 BB |
24247 | |
24248 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 | |
24249 | echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6 | |
31a033ec BB |
24250 | |
24251 | ||
24252 | cat >conftest.c <<_ACEOF | |
24253 | /* confdefs.h. */ | |
24254 | _ACEOF | |
24255 | cat confdefs.h >>conftest.$ac_ext | |
24256 | cat >>conftest.$ac_ext <<_ACEOF | |
24257 | /* end confdefs.h. */ | |
24258 | ||
24259 | ||
6ae7fef5 | 24260 | #include <linux/mm.h> |
31a033ec BB |
24261 | |
24262 | int | |
24263 | main (void) | |
24264 | { | |
24265 | ||
6ae7fef5 BB |
24266 | enum zone_stat_item zsi; |
24267 | zsi = NR_INACTIVE_ANON; | |
31a033ec BB |
24268 | |
24269 | ; | |
24270 | return 0; | |
24271 | } | |
24272 | ||
24273 | _ACEOF | |
24274 | ||
c5f70460 BB |
24275 | |
24276 | rm -Rf build && mkdir -p build | |
24277 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24278 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
31a033ec BB |
24279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24280 | (eval $ac_try) 2>&5 | |
24281 | ac_status=$? | |
24282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24283 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24285 | (eval $ac_try) 2>&5 | |
24286 | ac_status=$? | |
24287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24288 | (exit $ac_status); }; }; then | |
24289 | ||
24290 | echo "$as_me:$LINENO: result: yes" >&5 | |
24291 | echo "${ECHO_T}yes" >&6 | |
24292 | ||
24293 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24294 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
31a033ec BB |
24295 | _ACEOF |
24296 | ||
24297 | ||
bf9f3bac | 24298 | else |
24299 | echo "$as_me: failed program was:" >&5 | |
24300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24301 | ||
bf9f3bac | 24302 | echo "$as_me:$LINENO: result: no" >&5 |
24303 | echo "${ECHO_T}no" >&6 | |
24304 | ||
c5f70460 BB |
24305 | |
24306 | ||
bf9f3bac | 24307 | fi |
c5f70460 BB |
24308 | |
24309 | rm -Rf build | |
24310 | ||
bf9f3bac | 24311 | |
24312 | ||
6ae7fef5 BB |
24313 | echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
24314 | echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6 | |
bf9f3bac | 24315 | |
d1ff2312 | 24316 | |
6ae7fef5 BB |
24317 | cat >conftest.c <<_ACEOF |
24318 | /* confdefs.h. */ | |
d1ff2312 | 24319 | _ACEOF |
6ae7fef5 BB |
24320 | cat confdefs.h >>conftest.$ac_ext |
24321 | cat >>conftest.$ac_ext <<_ACEOF | |
24322 | /* end confdefs.h. */ | |
d1ff2312 | 24323 | |
d1ff2312 | 24324 | |
6ae7fef5 | 24325 | #include <linux/mm.h> |
d1ff2312 | 24326 | |
6ae7fef5 BB |
24327 | int |
24328 | main (void) | |
24329 | { | |
d1ff2312 | 24330 | |
6ae7fef5 BB |
24331 | enum zone_stat_item zsi; |
24332 | zsi = NR_INACTIVE_FILE; | |
d1ff2312 | 24333 | |
6ae7fef5 BB |
24334 | ; |
24335 | return 0; | |
24336 | } | |
d1ff2312 | 24337 | |
6ae7fef5 | 24338 | _ACEOF |
d1ff2312 | 24339 | |
d1ff2312 | 24340 | |
6ae7fef5 BB |
24341 | rm -Rf build && mkdir -p build |
24342 | echo "obj-m := conftest.o" >build/Makefile | |
24343 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24345 | (eval $ac_try) 2>&5 | |
24346 | ac_status=$? | |
24347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24348 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24350 | (eval $ac_try) 2>&5 | |
24351 | ac_status=$? | |
24352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24353 | (exit $ac_status); }; }; then | |
d1ff2312 | 24354 | |
d1ff2312 BB |
24355 | echo "$as_me:$LINENO: result: yes" >&5 |
24356 | echo "${ECHO_T}yes" >&6 | |
24357 | ||
24358 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24359 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
d1ff2312 BB |
24360 | _ACEOF |
24361 | ||
5232d256 | 24362 | |
6ae7fef5 BB |
24363 | else |
24364 | echo "$as_me: failed program was:" >&5 | |
24365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5232d256 | 24366 | |
5232d256 BB |
24367 | echo "$as_me:$LINENO: result: no" >&5 |
24368 | echo "${ECHO_T}no" >&6 | |
5232d256 BB |
24369 | |
24370 | ||
36b313da | 24371 | |
6ae7fef5 BB |
24372 | fi |
24373 | ||
24374 | rm -Rf build | |
24375 | ||
36b313da | 24376 | |
36b313da | 24377 | |
36b313da | 24378 | |
6ae7fef5 BB |
24379 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
24380 | echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6 | |
24381 | ||
24382 | ||
24383 | cat >conftest.c <<_ACEOF | |
24384 | /* confdefs.h. */ | |
36b313da | 24385 | _ACEOF |
6ae7fef5 BB |
24386 | cat confdefs.h >>conftest.$ac_ext |
24387 | cat >>conftest.$ac_ext <<_ACEOF | |
24388 | /* end confdefs.h. */ | |
36b313da | 24389 | |
36b313da | 24390 | |
6ae7fef5 | 24391 | #include <linux/mm.h> |
36b313da | 24392 | |
6ae7fef5 BB |
24393 | int |
24394 | main (void) | |
24395 | { | |
36b313da | 24396 | |
6ae7fef5 BB |
24397 | enum zone_stat_item zsi; |
24398 | zsi = NR_ACTIVE; | |
36b313da | 24399 | |
6ae7fef5 BB |
24400 | ; |
24401 | return 0; | |
24402 | } | |
36b313da | 24403 | |
36b313da BB |
24404 | _ACEOF |
24405 | ||
6ae7fef5 BB |
24406 | |
24407 | rm -Rf build && mkdir -p build | |
24408 | echo "obj-m := conftest.o" >build/Makefile | |
24409 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24411 | (eval $ac_try) 2>&5 | |
24412 | ac_status=$? | |
24413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24414 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24416 | (eval $ac_try) 2>&5 | |
24417 | ac_status=$? | |
24418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24419 | (exit $ac_status); }; }; then | |
24420 | ||
36b313da BB |
24421 | echo "$as_me:$LINENO: result: yes" >&5 |
24422 | echo "${ECHO_T}yes" >&6 | |
24423 | ||
24424 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24425 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
36b313da BB |
24426 | _ACEOF |
24427 | ||
36b313da | 24428 | |
6ae7fef5 BB |
24429 | else |
24430 | echo "$as_me: failed program was:" >&5 | |
24431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36b313da | 24432 | |
6ae7fef5 | 24433 | echo "$as_me:$LINENO: result: no" >&5 |
36b313da BB |
24434 | echo "${ECHO_T}no" >&6 |
24435 | ||
36b313da | 24436 | |
36b313da | 24437 | |
6ae7fef5 | 24438 | fi |
36b313da | 24439 | |
6ae7fef5 BB |
24440 | rm -Rf build |
24441 | ||
24442 | ||
24443 | ||
24444 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 | |
24445 | echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6 | |
24446 | ||
24447 | ||
24448 | cat >conftest.c <<_ACEOF | |
24449 | /* confdefs.h. */ | |
36b313da | 24450 | _ACEOF |
6ae7fef5 BB |
24451 | cat confdefs.h >>conftest.$ac_ext |
24452 | cat >>conftest.$ac_ext <<_ACEOF | |
24453 | /* end confdefs.h. */ | |
36b313da | 24454 | |
36b313da | 24455 | |
6ae7fef5 | 24456 | #include <linux/mm.h> |
36b313da | 24457 | |
6ae7fef5 BB |
24458 | int |
24459 | main (void) | |
24460 | { | |
36b313da | 24461 | |
6ae7fef5 BB |
24462 | enum zone_stat_item zsi; |
24463 | zsi = NR_ACTIVE_ANON; | |
5232d256 | 24464 | |
6ae7fef5 BB |
24465 | ; |
24466 | return 0; | |
24467 | } | |
5232d256 | 24468 | |
5232d256 BB |
24469 | _ACEOF |
24470 | ||
6ae7fef5 BB |
24471 | |
24472 | rm -Rf build && mkdir -p build | |
24473 | echo "obj-m := conftest.o" >build/Makefile | |
24474 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24476 | (eval $ac_try) 2>&5 | |
24477 | ac_status=$? | |
24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24479 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24481 | (eval $ac_try) 2>&5 | |
24482 | ac_status=$? | |
24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24484 | (exit $ac_status); }; }; then | |
24485 | ||
5232d256 BB |
24486 | echo "$as_me:$LINENO: result: yes" >&5 |
24487 | echo "${ECHO_T}yes" >&6 | |
24488 | ||
24489 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24490 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
5232d256 BB |
24491 | _ACEOF |
24492 | ||
5232d256 | 24493 | |
6ae7fef5 BB |
24494 | else |
24495 | echo "$as_me: failed program was:" >&5 | |
24496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5232d256 | 24497 | |
6ae7fef5 | 24498 | echo "$as_me:$LINENO: result: no" >&5 |
4ab13d3b BB |
24499 | echo "${ECHO_T}no" >&6 |
24500 | ||
4ab13d3b | 24501 | |
4ab13d3b | 24502 | |
6ae7fef5 | 24503 | fi |
4ab13d3b | 24504 | |
6ae7fef5 | 24505 | rm -Rf build |
96dded38 BB |
24506 | |
24507 | ||
24508 | ||
6ae7fef5 BB |
24509 | echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
24510 | echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6 | |
96dded38 BB |
24511 | |
24512 | ||
24513 | cat >conftest.c <<_ACEOF | |
24514 | /* confdefs.h. */ | |
24515 | _ACEOF | |
24516 | cat confdefs.h >>conftest.$ac_ext | |
24517 | cat >>conftest.$ac_ext <<_ACEOF | |
24518 | /* end confdefs.h. */ | |
24519 | ||
24520 | ||
6ae7fef5 | 24521 | #include <linux/mm.h> |
96dded38 BB |
24522 | |
24523 | int | |
24524 | main (void) | |
24525 | { | |
24526 | ||
6ae7fef5 BB |
24527 | enum zone_stat_item zsi; |
24528 | zsi = NR_ACTIVE_FILE; | |
96dded38 BB |
24529 | |
24530 | ; | |
24531 | return 0; | |
24532 | } | |
24533 | ||
24534 | _ACEOF | |
24535 | ||
24536 | ||
24537 | rm -Rf build && mkdir -p build | |
24538 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24539 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
96dded38 BB |
24540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24541 | (eval $ac_try) 2>&5 | |
24542 | ac_status=$? | |
24543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24544 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24546 | (eval $ac_try) 2>&5 | |
24547 | ac_status=$? | |
24548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24549 | (exit $ac_status); }; }; then | |
24550 | ||
24551 | echo "$as_me:$LINENO: result: yes" >&5 | |
24552 | echo "${ECHO_T}yes" >&6 | |
24553 | ||
24554 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24555 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 |
96dded38 BB |
24556 | _ACEOF |
24557 | ||
24558 | ||
24559 | else | |
24560 | echo "$as_me: failed program was:" >&5 | |
24561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24562 | ||
24563 | echo "$as_me:$LINENO: result: no" >&5 | |
24564 | echo "${ECHO_T}no" >&6 | |
24565 | ||
24566 | ||
24567 | ||
24568 | fi | |
24569 | ||
24570 | rm -Rf build | |
24571 | ||
4ab13d3b BB |
24572 | |
24573 | ||
24574 | ||
6ae7fef5 BB |
24575 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 |
24576 | echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6 | |
e11d6c5f BB |
24577 | |
24578 | ||
24579 | cat >conftest.c <<_ACEOF | |
24580 | /* confdefs.h. */ | |
24581 | _ACEOF | |
24582 | cat confdefs.h >>conftest.$ac_ext | |
24583 | cat >>conftest.$ac_ext <<_ACEOF | |
24584 | /* end confdefs.h. */ | |
24585 | ||
24586 | ||
e11d6c5f BB |
24587 | |
24588 | int | |
24589 | main (void) | |
24590 | { | |
24591 | ||
6ae7fef5 BB |
24592 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) |
24593 | #error "global_page_state needs NR_FREE_PAGES" | |
24594 | #endif | |
24595 | ||
24596 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
24597 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
24598 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
24599 | #error "global_page_state needs NR_ACTIVE*" | |
24600 | #endif | |
24601 | ||
24602 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
24603 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
24604 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
24605 | #error "global_page_state needs NR_INACTIVE*" | |
24606 | #endif | |
e11d6c5f BB |
24607 | |
24608 | ; | |
24609 | return 0; | |
24610 | } | |
24611 | ||
24612 | _ACEOF | |
24613 | ||
24614 | ||
24615 | rm -Rf build && mkdir -p build | |
24616 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24617 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
e11d6c5f BB |
24618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24619 | (eval $ac_try) 2>&5 | |
24620 | ac_status=$? | |
24621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24622 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24624 | (eval $ac_try) 2>&5 | |
24625 | ac_status=$? | |
24626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24627 | (exit $ac_status); }; }; then | |
24628 | ||
6ae7fef5 BB |
24629 | echo "$as_me:$LINENO: result: no" >&5 |
24630 | echo "${ECHO_T}no" >&6 | |
24631 | ||
24632 | else | |
24633 | echo "$as_me: failed program was:" >&5 | |
24634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24635 | ||
e11d6c5f BB |
24636 | echo "$as_me:$LINENO: result: yes" >&5 |
24637 | echo "${ECHO_T}yes" >&6 | |
24638 | ||
24639 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 24640 | #define NEED_GET_ZONE_COUNTS 1 |
e11d6c5f BB |
24641 | _ACEOF |
24642 | ||
24643 | ||
6ae7fef5 BB |
24644 | echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 |
24645 | echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6 | |
24646 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
24647 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24648 | rc=$? | |
24649 | if test $rc -ne 0; then | |
24650 | export=0 | |
24651 | for file in ; do | |
24652 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
24653 | "$LINUX_OBJ/$file" 2>/dev/null | |
24654 | rc=$? | |
24655 | if test $rc -eq 0; then | |
24656 | export=1 | |
24657 | break; | |
24658 | fi | |
24659 | done | |
24660 | if test $export -eq 0; then | |
24661 | echo "$as_me:$LINENO: result: no" >&5 | |
e11d6c5f BB |
24662 | echo "${ECHO_T}no" >&6 |
24663 | ||
6ae7fef5 BB |
24664 | else |
24665 | echo "$as_me:$LINENO: result: yes" >&5 | |
24666 | echo "${ECHO_T}yes" >&6 | |
24667 | ||
24668 | cat >>confdefs.h <<\_ACEOF | |
24669 | #define HAVE_GET_ZONE_COUNTS 1 | |
24670 | _ACEOF | |
24671 | ||
24672 | fi | |
24673 | else | |
24674 | echo "$as_me:$LINENO: result: yes" >&5 | |
24675 | echo "${ECHO_T}yes" >&6 | |
24676 | ||
24677 | cat >>confdefs.h <<\_ACEOF | |
24678 | #define HAVE_GET_ZONE_COUNTS 1 | |
24679 | _ACEOF | |
24680 | ||
24681 | fi | |
24682 | ||
24683 | ||
e11d6c5f BB |
24684 | |
24685 | ||
a093c6a4 BB |
24686 | fi |
24687 | ||
24688 | rm -Rf build | |
24689 | ||
24690 | ||
24691 | ||
86933a6e | 24692 | echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
a093c6a4 BB |
24693 | echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6 |
24694 | ||
24695 | ||
24696 | cat >conftest.c <<_ACEOF | |
24697 | /* confdefs.h. */ | |
24698 | _ACEOF | |
24699 | cat confdefs.h >>conftest.$ac_ext | |
24700 | cat >>conftest.$ac_ext <<_ACEOF | |
24701 | /* end confdefs.h. */ | |
24702 | ||
24703 | ||
24704 | #include <linux/fs.h> | |
24705 | ||
24706 | int | |
24707 | main (void) | |
24708 | { | |
24709 | ||
24710 | vfs_unlink(NULL, NULL); | |
24711 | ||
24712 | ; | |
24713 | return 0; | |
24714 | } | |
24715 | ||
24716 | _ACEOF | |
24717 | ||
24718 | ||
24719 | rm -Rf build && mkdir -p build | |
24720 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24721 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
a093c6a4 BB |
24722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24723 | (eval $ac_try) 2>&5 | |
24724 | ac_status=$? | |
24725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24726 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24728 | (eval $ac_try) 2>&5 | |
24729 | ac_status=$? | |
24730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24731 | (exit $ac_status); }; }; then | |
24732 | ||
24733 | echo "$as_me:$LINENO: result: yes" >&5 | |
24734 | echo "${ECHO_T}yes" >&6 | |
24735 | ||
24736 | cat >>confdefs.h <<\_ACEOF | |
24737 | #define HAVE_2ARGS_VFS_UNLINK 1 | |
24738 | _ACEOF | |
24739 | ||
24740 | ||
24741 | else | |
24742 | echo "$as_me: failed program was:" >&5 | |
24743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24744 | ||
24745 | echo "$as_me:$LINENO: result: no" >&5 | |
24746 | echo "${ECHO_T}no" >&6 | |
24747 | ||
24748 | ||
24749 | ||
24750 | fi | |
24751 | ||
24752 | rm -Rf build | |
24753 | ||
24754 | ||
24755 | ||
86933a6e | 24756 | echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
a093c6a4 BB |
24757 | echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6 |
24758 | ||
24759 | ||
24760 | cat >conftest.c <<_ACEOF | |
24761 | /* confdefs.h. */ | |
24762 | _ACEOF | |
24763 | cat confdefs.h >>conftest.$ac_ext | |
24764 | cat >>conftest.$ac_ext <<_ACEOF | |
24765 | /* end confdefs.h. */ | |
24766 | ||
24767 | ||
24768 | #include <linux/fs.h> | |
24769 | ||
24770 | int | |
24771 | main (void) | |
24772 | { | |
24773 | ||
24774 | vfs_rename(NULL, NULL, NULL, NULL); | |
24775 | ||
24776 | ; | |
24777 | return 0; | |
24778 | } | |
24779 | ||
24780 | _ACEOF | |
24781 | ||
24782 | ||
24783 | rm -Rf build && mkdir -p build | |
24784 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 24785 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
a093c6a4 BB |
24786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24787 | (eval $ac_try) 2>&5 | |
24788 | ac_status=$? | |
24789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24790 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24792 | (eval $ac_try) 2>&5 | |
24793 | ac_status=$? | |
24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24795 | (exit $ac_status); }; }; then | |
24796 | ||
24797 | echo "$as_me:$LINENO: result: yes" >&5 | |
24798 | echo "${ECHO_T}yes" >&6 | |
24799 | ||
24800 | cat >>confdefs.h <<\_ACEOF | |
24801 | #define HAVE_4ARGS_VFS_RENAME 1 | |
24802 | _ACEOF | |
24803 | ||
24804 | ||
24805 | else | |
24806 | echo "$as_me: failed program was:" >&5 | |
24807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24808 | ||
24809 | echo "$as_me:$LINENO: result: no" >&5 | |
24810 | echo "${ECHO_T}no" >&6 | |
24811 | ||
24812 | ||
24813 | ||
e11d6c5f BB |
24814 | fi |
24815 | ||
24816 | rm -Rf build | |
24817 | ||
24818 | ||
24819 | ||
24820 | ||
ec7d53e9 BB |
24821 | echo "$as_me:$LINENO: checking whether struct cred exists" >&5 |
24822 | echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6 | |
24823 | ||
24824 | ||
24825 | cat >conftest.c <<_ACEOF | |
24826 | /* confdefs.h. */ | |
24827 | _ACEOF | |
24828 | cat confdefs.h >>conftest.$ac_ext | |
24829 | cat >>conftest.$ac_ext <<_ACEOF | |
24830 | /* end confdefs.h. */ | |
24831 | ||
24832 | ||
24833 | #include <linux/cred.h> | |
24834 | ||
24835 | int | |
24836 | main (void) | |
24837 | { | |
24838 | ||
24839 | struct cred *cr; | |
24840 | cr = NULL; | |
24841 | ||
24842 | ; | |
24843 | return 0; | |
24844 | } | |
24845 | ||
24846 | _ACEOF | |
24847 | ||
24848 | ||
24849 | rm -Rf build && mkdir -p build | |
24850 | echo "obj-m := conftest.o" >build/Makefile | |
24851 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
24852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24853 | (eval $ac_try) 2>&5 | |
24854 | ac_status=$? | |
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24856 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24858 | (eval $ac_try) 2>&5 | |
24859 | ac_status=$? | |
24860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24861 | (exit $ac_status); }; }; then | |
24862 | ||
24863 | echo "$as_me:$LINENO: result: yes" >&5 | |
24864 | echo "${ECHO_T}yes" >&6 | |
24865 | ||
24866 | cat >>confdefs.h <<\_ACEOF | |
24867 | #define HAVE_CRED_STRUCT 1 | |
24868 | _ACEOF | |
24869 | ||
24870 | ||
24871 | else | |
24872 | echo "$as_me: failed program was:" >&5 | |
24873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24874 | ||
24875 | echo "$as_me:$LINENO: result: no" >&5 | |
24876 | echo "${ECHO_T}no" >&6 | |
24877 | ||
24878 | ||
24879 | ||
24880 | fi | |
24881 | ||
24882 | rm -Rf build | |
24883 | ||
24884 | ||
24885 | ||
24886 | ||
24887 | echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 | |
24888 | echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6 | |
24889 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ | |
24890 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24891 | rc=$? | |
24892 | if test $rc -ne 0; then | |
24893 | export=0 | |
24894 | for file in ; do | |
24895 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
24896 | "$LINUX_OBJ/$file" 2>/dev/null | |
24897 | rc=$? | |
24898 | if test $rc -eq 0; then | |
24899 | export=1 | |
24900 | break; | |
24901 | fi | |
24902 | done | |
24903 | if test $export -eq 0; then | |
24904 | echo "$as_me:$LINENO: result: no" >&5 | |
24905 | echo "${ECHO_T}no" >&6 | |
24906 | ||
24907 | else | |
24908 | echo "$as_me:$LINENO: result: yes" >&5 | |
24909 | echo "${ECHO_T}yes" >&6 | |
24910 | ||
24911 | cat >>confdefs.h <<\_ACEOF | |
24912 | #define HAVE_GROUPS_SEARCH 1 | |
24913 | _ACEOF | |
24914 | ||
24915 | fi | |
24916 | else | |
24917 | echo "$as_me:$LINENO: result: yes" >&5 | |
24918 | echo "${ECHO_T}yes" >&6 | |
24919 | ||
24920 | cat >>confdefs.h <<\_ACEOF | |
24921 | #define HAVE_GROUPS_SEARCH 1 | |
24922 | _ACEOF | |
24923 | ||
24924 | fi | |
24925 | ||
24926 | ||
24927 | ||
e811949a BB |
24928 | echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 |
24929 | echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6 | |
24930 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
24931 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
24932 | rc=$? | |
24933 | if test $rc -ne 0; then | |
24934 | export=0 | |
24935 | for file in ; do | |
24936 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
24937 | "$LINUX_OBJ/$file" 2>/dev/null | |
24938 | rc=$? | |
24939 | if test $rc -eq 0; then | |
24940 | export=1 | |
24941 | break; | |
24942 | fi | |
24943 | done | |
24944 | if test $export -eq 0; then | |
24945 | echo "$as_me:$LINENO: result: no" >&5 | |
24946 | echo "${ECHO_T}no" >&6 | |
24947 | ||
24948 | else | |
24949 | echo "$as_me:$LINENO: result: yes" >&5 | |
24950 | echo "${ECHO_T}yes" >&6 | |
24951 | ||
24952 | cat >>confdefs.h <<\_ACEOF | |
24953 | #define HAVE_PUT_TASK_STRUCT 1 | |
24954 | _ACEOF | |
24955 | ||
24956 | fi | |
24957 | else | |
24958 | echo "$as_me:$LINENO: result: yes" >&5 | |
24959 | echo "${ECHO_T}yes" >&6 | |
24960 | ||
24961 | cat >>confdefs.h <<\_ACEOF | |
24962 | #define HAVE_PUT_TASK_STRUCT 1 | |
24963 | _ACEOF | |
24964 | ||
24965 | fi | |
24966 | ||
24967 | ||
24968 | ||
86933a6e BB |
24969 | ;; |
24970 | *) | |
24971 | echo "$as_me:$LINENO: result: Error!" >&5 | |
24972 | echo "${ECHO_T}Error!" >&6 | |
24973 | { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config, | |
24974 | user kernel|user|all" >&5 | |
24975 | echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config, | |
24976 | user kernel|user|all" >&2;} | |
24977 | { (exit 1); exit 1; }; } ;; | |
24978 | esac | |
24979 | ||
24980 | ||
24981 | ||
24982 | if test "$SPL_CONFIG" = user || | |
24983 | test "$SPL_CONFIG" = all; then | |
24984 | CONFIG_USER_TRUE= | |
24985 | CONFIG_USER_FALSE='#' | |
24986 | else | |
24987 | CONFIG_USER_TRUE='#' | |
24988 | CONFIG_USER_FALSE= | |
24989 | fi | |
24990 | ||
24991 | ||
24992 | ||
24993 | if test "$SPL_CONFIG" = kernel || | |
24994 | test "$SPL_CONFIG" = all; then | |
24995 | CONFIG_KERNEL_TRUE= | |
24996 | CONFIG_KERNEL_FALSE='#' | |
24997 | else | |
24998 | CONFIG_KERNEL_TRUE='#' | |
24999 | CONFIG_KERNEL_FALSE= | |
25000 | fi | |
25001 | ||
25002 | ||
25003 | ||
25004 | ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec" | |
bf9f3bac | 25005 | |
25006 | ||
25007 | cat >confcache <<\_ACEOF | |
25008 | # This file is a shell script that caches the results of configure | |
25009 | # tests run on this system so they can be shared between configure | |
25010 | # scripts and configure runs, see configure's option --config-cache. | |
25011 | # It is not useful on other systems. If it contains results you don't | |
25012 | # want to keep, you may remove or edit it. | |
25013 | # | |
25014 | # config.status only pays attention to the cache file if you give it | |
25015 | # the --recheck option to rerun configure. | |
25016 | # | |
25017 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25018 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25019 | # following values. | |
25020 | ||
25021 | _ACEOF | |
25022 | ||
25023 | # The following way of writing the cache mishandles newlines in values, | |
25024 | # but we know of no workaround that is simple, portable, and efficient. | |
25025 | # So, don't put newlines in cache variables' values. | |
25026 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
25027 | # and sets the high bit in the cache file unless we assign to the vars. | |
25028 | { | |
25029 | (set) 2>&1 | | |
25030 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
25031 | *ac_space=\ *) | |
25032 | # `set' does not quote correctly, so add quotes (double-quote | |
25033 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25034 | sed -n \ | |
25035 | "s/'/'\\\\''/g; | |
25036 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
25037 | ;; | |
25038 | *) | |
25039 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
25040 | sed -n \ | |
25041 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
25042 | ;; | |
25043 | esac; | |
25044 | } | | |
25045 | sed ' | |
25046 | t clear | |
25047 | : clear | |
25048 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
25049 | t end | |
25050 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
25051 | : end' >>confcache | |
25052 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
25053 | if test -w $cache_file; then | |
25054 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
25055 | cat confcache >$cache_file | |
25056 | else | |
25057 | echo "not updating unwritable cache $cache_file" | |
25058 | fi | |
25059 | fi | |
25060 | rm -f confcache | |
25061 | ||
25062 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25063 | # Let make expand exec_prefix. | |
25064 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25065 | ||
25066 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
25067 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25068 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25069 | # (actually we leave an empty line to preserve line numbers). | |
25070 | if test "x$srcdir" = x.; then | |
25071 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25072 | s/:*\$(srcdir):*/:/; | |
25073 | s/:*\${srcdir}:*/:/; | |
25074 | s/:*@srcdir@:*/:/; | |
25075 | s/^\([^=]*=[ ]*\):*/\1/; | |
25076 | s/:*$//; | |
25077 | s/^[^=]*=[ ]*$//; | |
25078 | }' | |
25079 | fi | |
25080 | ||
25081 | DEFS=-DHAVE_CONFIG_H | |
25082 | ||
25083 | ac_libobjs= | |
25084 | ac_ltlibobjs= | |
25085 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25086 | # 1. Remove the extension, and $U if already installed. | |
25087 | ac_i=`echo "$ac_i" | | |
25088 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
25089 | # 2. Add them. | |
25090 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
25091 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
25092 | done | |
25093 | LIBOBJS=$ac_libobjs | |
25094 | ||
25095 | LTLIBOBJS=$ac_ltlibobjs | |
25096 | ||
25097 | ||
25098 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
25099 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25100 | Usually this means the macro was only invoked conditionally." >&5 | |
25101 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25102 | Usually this means the macro was only invoked conditionally." >&2;} | |
25103 | { (exit 1); exit 1; }; } | |
25104 | fi | |
25105 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
25106 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
25107 | Usually this means the macro was only invoked conditionally." >&5 | |
25108 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
25109 | Usually this means the macro was only invoked conditionally." >&2;} | |
25110 | { (exit 1); exit 1; }; } | |
25111 | fi | |
25112 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
25113 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
25114 | Usually this means the macro was only invoked conditionally." >&5 | |
25115 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
25116 | Usually this means the macro was only invoked conditionally." >&2;} | |
25117 | { (exit 1); exit 1; }; } | |
25118 | fi | |
25119 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
25120 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
25121 | Usually this means the macro was only invoked conditionally." >&5 | |
25122 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
25123 | Usually this means the macro was only invoked conditionally." >&2;} | |
25124 | { (exit 1); exit 1; }; } | |
25125 | fi | |
86933a6e BB |
25126 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then |
25127 | { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined. | |
25128 | Usually this means the macro was only invoked conditionally." >&5 | |
25129 | echo "$as_me: error: conditional \"CONFIG_USER\" was never defined. | |
25130 | Usually this means the macro was only invoked conditionally." >&2;} | |
25131 | { (exit 1); exit 1; }; } | |
25132 | fi | |
25133 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
25134 | { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined. | |
25135 | Usually this means the macro was only invoked conditionally." >&5 | |
25136 | echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined. | |
25137 | Usually this means the macro was only invoked conditionally." >&2;} | |
25138 | { (exit 1); exit 1; }; } | |
25139 | fi | |
bf9f3bac | 25140 | |
25141 | : ${CONFIG_STATUS=./config.status} | |
25142 | ac_clean_files_save=$ac_clean_files | |
25143 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25144 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25145 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25146 | cat >$CONFIG_STATUS <<_ACEOF | |
25147 | #! $SHELL | |
25148 | # Generated by $as_me. | |
25149 | # Run this file to recreate the current configuration. | |
25150 | # Compiler output produced by configure, useful for debugging | |
25151 | # configure, is in config.log if it exists. | |
25152 | ||
25153 | debug=false | |
25154 | ac_cs_recheck=false | |
25155 | ac_cs_silent=false | |
25156 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25157 | _ACEOF | |
25158 | ||
25159 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25160 | ## --------------------- ## | |
25161 | ## M4sh Initialization. ## | |
25162 | ## --------------------- ## | |
25163 | ||
25164 | # Be Bourne compatible | |
25165 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25166 | emulate sh | |
25167 | NULLCMD=: | |
25168 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
25169 | # is contrary to our usage. Disable this feature. | |
25170 | alias -g '${1+"$@"}'='"$@"' | |
25171 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
25172 | set -o posix | |
25173 | fi | |
25174 | DUALCASE=1; export DUALCASE # for MKS sh | |
25175 | ||
25176 | # Support unset when possible. | |
25177 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
25178 | as_unset=unset | |
25179 | else | |
25180 | as_unset=false | |
25181 | fi | |
25182 | ||
25183 | ||
25184 | # Work around bugs in pre-3.0 UWIN ksh. | |
25185 | $as_unset ENV MAIL MAILPATH | |
25186 | PS1='$ ' | |
25187 | PS2='> ' | |
25188 | PS4='+ ' | |
25189 | ||
25190 | # NLS nuisances. | |
25191 | for as_var in \ | |
25192 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
25193 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
25194 | LC_TELEPHONE LC_TIME | |
25195 | do | |
25196 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
25197 | eval $as_var=C; export $as_var | |
25198 | else | |
25199 | $as_unset $as_var | |
25200 | fi | |
25201 | done | |
25202 | ||
25203 | # Required to use basename. | |
25204 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25205 | as_expr=expr | |
25206 | else | |
25207 | as_expr=false | |
25208 | fi | |
25209 | ||
25210 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
25211 | as_basename=basename | |
25212 | else | |
25213 | as_basename=false | |
25214 | fi | |
25215 | ||
25216 | ||
25217 | # Name of the executable. | |
25218 | as_me=`$as_basename "$0" || | |
25219 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
25220 | X"$0" : 'X\(//\)$' \| \ | |
25221 | X"$0" : 'X\(/\)$' \| \ | |
25222 | . : '\(.\)' 2>/dev/null || | |
25223 | echo X/"$0" | | |
25224 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
25225 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
25226 | /^X\/\(\/\).*/{ s//\1/; q; } | |
25227 | s/.*/./; q'` | |
25228 | ||
25229 | ||
25230 | # PATH needs CR, and LINENO needs CR and PATH. | |
25231 | # Avoid depending upon Character Ranges. | |
25232 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25233 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25234 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25235 | as_cr_digits='0123456789' | |
25236 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25237 | ||
25238 | # The user is always right. | |
25239 | if test "${PATH_SEPARATOR+set}" != set; then | |
25240 | echo "#! /bin/sh" >conf$$.sh | |
25241 | echo "exit 0" >>conf$$.sh | |
25242 | chmod +x conf$$.sh | |
25243 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
25244 | PATH_SEPARATOR=';' | |
25245 | else | |
25246 | PATH_SEPARATOR=: | |
25247 | fi | |
25248 | rm -f conf$$.sh | |
25249 | fi | |
25250 | ||
25251 | ||
25252 | as_lineno_1=$LINENO | |
25253 | as_lineno_2=$LINENO | |
25254 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25255 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25256 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
25257 | # Find who we are. Look in the path if we contain no path at all | |
25258 | # relative or not. | |
25259 | case $0 in | |
25260 | *[\\/]* ) as_myself=$0 ;; | |
25261 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25262 | for as_dir in $PATH | |
25263 | do | |
25264 | IFS=$as_save_IFS | |
25265 | test -z "$as_dir" && as_dir=. | |
25266 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25267 | done | |
25268 | ||
25269 | ;; | |
25270 | esac | |
25271 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25272 | # in which case we are not to be found in the path. | |
25273 | if test "x$as_myself" = x; then | |
25274 | as_myself=$0 | |
25275 | fi | |
25276 | if test ! -f "$as_myself"; then | |
25277 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
25278 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
25279 | { (exit 1); exit 1; }; } | |
25280 | fi | |
25281 | case $CONFIG_SHELL in | |
25282 | '') | |
25283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25284 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25285 | do | |
25286 | IFS=$as_save_IFS | |
25287 | test -z "$as_dir" && as_dir=. | |
25288 | for as_base in sh bash ksh sh5; do | |
25289 | case $as_dir in | |
25290 | /*) | |
25291 | if ("$as_dir/$as_base" -c ' | |
25292 | as_lineno_1=$LINENO | |
25293 | as_lineno_2=$LINENO | |
25294 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
25295 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
25296 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
25297 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
25298 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
25299 | CONFIG_SHELL=$as_dir/$as_base | |
25300 | export CONFIG_SHELL | |
25301 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
25302 | fi;; | |
25303 | esac | |
25304 | done | |
25305 | done | |
25306 | ;; | |
25307 | esac | |
25308 | ||
25309 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25310 | # uniformly replaced by the line number. The first 'sed' inserts a | |
25311 | # line-number line before each line; the second 'sed' does the real | |
25312 | # work. The second script uses 'N' to pair each line-number line | |
25313 | # with the numbered line, and appends trailing '-' during | |
25314 | # substitution so that $LINENO is not a special case at line end. | |
25315 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
25316 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
25317 | sed '=' <$as_myself | | |
25318 | sed ' | |
25319 | N | |
25320 | s,$,-, | |
25321 | : loop | |
25322 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
25323 | t loop | |
25324 | s,-$,, | |
25325 | s,^['$as_cr_digits']*\n,, | |
25326 | ' >$as_me.lineno && | |
25327 | chmod +x $as_me.lineno || | |
25328 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
25329 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
25330 | { (exit 1); exit 1; }; } | |
25331 | ||
25332 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25333 | # (the dirname of $[0] is not the place where we might find the | |
25334 | # original and so on. Autoconf is especially sensible to this). | |
25335 | . ./$as_me.lineno | |
25336 | # Exit status is that of the last command. | |
25337 | exit | |
25338 | } | |
25339 | ||
25340 | ||
25341 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
25342 | *c*,-n*) ECHO_N= ECHO_C=' | |
25343 | ' ECHO_T=' ' ;; | |
25344 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
25345 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
25346 | esac | |
25347 | ||
25348 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25349 | as_expr=expr | |
25350 | else | |
25351 | as_expr=false | |
25352 | fi | |
25353 | ||
25354 | rm -f conf$$ conf$$.exe conf$$.file | |
25355 | echo >conf$$.file | |
25356 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
25357 | # We could just check for DJGPP; but this test a) works b) is more generic | |
25358 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
25359 | if test -f conf$$.exe; then | |
25360 | # Don't use ln at all; we don't have any links | |
25361 | as_ln_s='cp -p' | |
25362 | else | |
25363 | as_ln_s='ln -s' | |
25364 | fi | |
25365 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25366 | as_ln_s=ln | |
25367 | else | |
25368 | as_ln_s='cp -p' | |
25369 | fi | |
25370 | rm -f conf$$ conf$$.exe conf$$.file | |
25371 | ||
25372 | if mkdir -p . 2>/dev/null; then | |
25373 | as_mkdir_p=: | |
25374 | else | |
25375 | test -d ./-p && rmdir ./-p | |
25376 | as_mkdir_p=false | |
25377 | fi | |
25378 | ||
25379 | as_executable_p="test -f" | |
25380 | ||
25381 | # Sed expression to map a string onto a valid CPP name. | |
25382 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25383 | ||
25384 | # Sed expression to map a string onto a valid variable name. | |
25385 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25386 | ||
25387 | ||
25388 | # IFS | |
25389 | # We need space, tab and new line, in precisely that order. | |
25390 | as_nl=' | |
25391 | ' | |
25392 | IFS=" $as_nl" | |
25393 | ||
25394 | # CDPATH. | |
25395 | $as_unset CDPATH | |
25396 | ||
25397 | exec 6>&1 | |
25398 | ||
25399 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
25400 | # report actual input values of CONFIG_FILES etc. instead of their | |
25401 | # values after options handling. Logging --version etc. is OK. | |
25402 | exec 5>>config.log | |
25403 | { | |
25404 | echo | |
25405 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25406 | ## Running $as_me. ## | |
25407 | _ASBOX | |
25408 | } >&5 | |
25409 | cat >&5 <<_CSEOF | |
25410 | ||
25411 | This file was extended by $as_me, which was | |
25412 | generated by GNU Autoconf 2.59. Invocation command line was | |
25413 | ||
25414 | CONFIG_FILES = $CONFIG_FILES | |
25415 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25416 | CONFIG_LINKS = $CONFIG_LINKS | |
25417 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25418 | $ $0 $@ | |
25419 | ||
25420 | _CSEOF | |
25421 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
25422 | echo >&5 | |
25423 | _ACEOF | |
25424 | ||
25425 | # Files that config.status was made for. | |
25426 | if test -n "$ac_config_files"; then | |
25427 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
25428 | fi | |
25429 | ||
25430 | if test -n "$ac_config_headers"; then | |
25431 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
25432 | fi | |
25433 | ||
25434 | if test -n "$ac_config_links"; then | |
25435 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
25436 | fi | |
25437 | ||
25438 | if test -n "$ac_config_commands"; then | |
25439 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
25440 | fi | |
25441 | ||
25442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25443 | ||
25444 | ac_cs_usage="\ | |
25445 | \`$as_me' instantiates files from templates according to the | |
25446 | current configuration. | |
25447 | ||
25448 | Usage: $0 [OPTIONS] [FILE]... | |
25449 | ||
25450 | -h, --help print this help, then exit | |
25451 | -V, --version print version number, then exit | |
25452 | -q, --quiet do not print progress messages | |
25453 | -d, --debug don't remove temporary files | |
25454 | --recheck update $as_me by reconfiguring in the same conditions | |
25455 | --file=FILE[:TEMPLATE] | |
25456 | instantiate the configuration file FILE | |
25457 | --header=FILE[:TEMPLATE] | |
25458 | instantiate the configuration header FILE | |
25459 | ||
25460 | Configuration files: | |
25461 | $config_files | |
25462 | ||
25463 | Configuration headers: | |
25464 | $config_headers | |
25465 | ||
25466 | Configuration commands: | |
25467 | $config_commands | |
25468 | ||
25469 | Report bugs to <bug-autoconf@gnu.org>." | |
25470 | _ACEOF | |
25471 | ||
25472 | cat >>$CONFIG_STATUS <<_ACEOF | |
25473 | ac_cs_version="\\ | |
25474 | config.status | |
25475 | configured by $0, generated by GNU Autoconf 2.59, | |
25476 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
25477 | ||
25478 | Copyright (C) 2003 Free Software Foundation, Inc. | |
25479 | This config.status script is free software; the Free Software Foundation | |
25480 | gives unlimited permission to copy, distribute and modify it." | |
25481 | srcdir=$srcdir | |
25482 | INSTALL="$INSTALL" | |
25483 | _ACEOF | |
25484 | ||
25485 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25486 | # If no file are specified by the user, then we need to provide default | |
25487 | # value. By we need to know if files were specified by the user. | |
25488 | ac_need_defaults=: | |
25489 | while test $# != 0 | |
25490 | do | |
25491 | case $1 in | |
25492 | --*=*) | |
25493 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
25494 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
25495 | ac_shift=: | |
25496 | ;; | |
25497 | -*) | |
25498 | ac_option=$1 | |
25499 | ac_optarg=$2 | |
25500 | ac_shift=shift | |
25501 | ;; | |
25502 | *) # This is not an option, so the user has probably given explicit | |
25503 | # arguments. | |
25504 | ac_option=$1 | |
25505 | ac_need_defaults=false;; | |
25506 | esac | |
25507 | ||
25508 | case $ac_option in | |
25509 | # Handling of the options. | |
25510 | _ACEOF | |
25511 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25512 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
25513 | ac_cs_recheck=: ;; | |
25514 | --version | --vers* | -V ) | |
25515 | echo "$ac_cs_version"; exit 0 ;; | |
25516 | --he | --h) | |
25517 | # Conflict between --help and --header | |
25518 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
25519 | Try \`$0 --help' for more information." >&5 | |
25520 | echo "$as_me: error: ambiguous option: $1 | |
25521 | Try \`$0 --help' for more information." >&2;} | |
25522 | { (exit 1); exit 1; }; };; | |
25523 | --help | --hel | -h ) | |
25524 | echo "$ac_cs_usage"; exit 0 ;; | |
25525 | --debug | --d* | -d ) | |
25526 | debug=: ;; | |
25527 | --file | --fil | --fi | --f ) | |
25528 | $ac_shift | |
25529 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
25530 | ac_need_defaults=false;; | |
25531 | --header | --heade | --head | --hea ) | |
25532 | $ac_shift | |
25533 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
25534 | ac_need_defaults=false;; | |
25535 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
25536 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
25537 | ac_cs_silent=: ;; | |
25538 | ||
25539 | # This is an error. | |
25540 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
25541 | Try \`$0 --help' for more information." >&5 | |
25542 | echo "$as_me: error: unrecognized option: $1 | |
25543 | Try \`$0 --help' for more information." >&2;} | |
25544 | { (exit 1); exit 1; }; } ;; | |
25545 | ||
25546 | *) ac_config_targets="$ac_config_targets $1" ;; | |
25547 | ||
25548 | esac | |
25549 | shift | |
25550 | done | |
25551 | ||
25552 | ac_configure_extra_args= | |
25553 | ||
25554 | if $ac_cs_silent; then | |
25555 | exec 6>/dev/null | |
25556 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
25557 | fi | |
25558 | ||
25559 | _ACEOF | |
25560 | cat >>$CONFIG_STATUS <<_ACEOF | |
25561 | if \$ac_cs_recheck; then | |
25562 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
25563 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
25564 | fi | |
25565 | ||
25566 | _ACEOF | |
25567 | ||
25568 | cat >>$CONFIG_STATUS <<_ACEOF | |
25569 | # | |
25570 | # INIT-COMMANDS section. | |
25571 | # | |
25572 | ||
25573 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
25574 | ||
25575 | _ACEOF | |
25576 | ||
25577 | ||
25578 | ||
25579 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25580 | for ac_config_target in $ac_config_targets | |
25581 | do | |
25582 | case "$ac_config_target" in | |
25583 | # Handling of arguments. | |
25584 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
25585 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
25586 | "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
617d5a67 BB |
25587 | "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
25588 | "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
25589 | "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
bf9f3bac | 25590 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
bf9f3bac | 25591 | "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
c5f70460 | 25592 | "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;; |
86933a6e | 25593 | "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;; |
bf9f3bac | 25594 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
25595 | "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
25596 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
25597 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25598 | { (exit 1); exit 1; }; };; | |
25599 | esac | |
25600 | done | |
25601 | ||
25602 | # If the user did not use the arguments to specify the items to instantiate, | |
25603 | # then the envvar interface is used. Set only those that are not. | |
25604 | # We use the long form for the default assignment because of an extremely | |
25605 | # bizarre bug on SunOS 4.1.3. | |
25606 | if $ac_need_defaults; then | |
25607 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25608 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25609 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
25610 | fi | |
25611 | ||
25612 | # Have a temporary directory for convenience. Make it in the build tree | |
25613 | # simply because there is no reason to put it here, and in addition, | |
25614 | # creating and moving files from /tmp can sometimes cause problems. | |
25615 | # Create a temporary directory, and hook for its removal unless debugging. | |
25616 | $debug || | |
25617 | { | |
25618 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
25619 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
25620 | } | |
25621 | ||
25622 | # Create a (secure) tmp directory for tmp files. | |
25623 | ||
25624 | { | |
25625 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
25626 | test -n "$tmp" && test -d "$tmp" | |
25627 | } || | |
25628 | { | |
25629 | tmp=./confstat$$-$RANDOM | |
25630 | (umask 077 && mkdir $tmp) | |
25631 | } || | |
25632 | { | |
25633 | echo "$me: cannot create a temporary directory in ." >&2 | |
25634 | { (exit 1); exit 1; } | |
25635 | } | |
25636 | ||
25637 | _ACEOF | |
25638 | ||
25639 | cat >>$CONFIG_STATUS <<_ACEOF | |
25640 | ||
25641 | # | |
25642 | # CONFIG_FILES section. | |
25643 | # | |
25644 | ||
25645 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25646 | # This happens for instance when ./config.status config.h | |
25647 | if test -n "\$CONFIG_FILES"; then | |
25648 | # Protect against being on the right side of a sed subst in config.status. | |
25649 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
25650 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
25651 | s,@SHELL@,$SHELL,;t t | |
25652 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
25653 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
25654 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
25655 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
25656 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
25657 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
25658 | s,@exec_prefix@,$exec_prefix,;t t | |
25659 | s,@prefix@,$prefix,;t t | |
25660 | s,@program_transform_name@,$program_transform_name,;t t | |
25661 | s,@bindir@,$bindir,;t t | |
25662 | s,@sbindir@,$sbindir,;t t | |
25663 | s,@libexecdir@,$libexecdir,;t t | |
25664 | s,@datadir@,$datadir,;t t | |
25665 | s,@sysconfdir@,$sysconfdir,;t t | |
25666 | s,@sharedstatedir@,$sharedstatedir,;t t | |
25667 | s,@localstatedir@,$localstatedir,;t t | |
25668 | s,@libdir@,$libdir,;t t | |
25669 | s,@includedir@,$includedir,;t t | |
25670 | s,@oldincludedir@,$oldincludedir,;t t | |
25671 | s,@infodir@,$infodir,;t t | |
25672 | s,@mandir@,$mandir,;t t | |
25673 | s,@build_alias@,$build_alias,;t t | |
25674 | s,@host_alias@,$host_alias,;t t | |
25675 | s,@target_alias@,$target_alias,;t t | |
25676 | s,@DEFS@,$DEFS,;t t | |
25677 | s,@ECHO_C@,$ECHO_C,;t t | |
25678 | s,@ECHO_N@,$ECHO_N,;t t | |
25679 | s,@ECHO_T@,$ECHO_T,;t t | |
25680 | s,@LIBS@,$LIBS,;t t | |
abc3ca14 BB |
25681 | s,@SPL_META_NAME@,$SPL_META_NAME,;t t |
25682 | s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t | |
25683 | s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t | |
72e7de60 | 25684 | s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t |
abc3ca14 BB |
25685 | s,@SPL_META_DATA@,$SPL_META_DATA,;t t |
25686 | s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t | |
25687 | s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t | |
25688 | s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t | |
25689 | s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t | |
bf9f3bac | 25690 | s,@build@,$build,;t t |
25691 | s,@build_cpu@,$build_cpu,;t t | |
25692 | s,@build_vendor@,$build_vendor,;t t | |
25693 | s,@build_os@,$build_os,;t t | |
25694 | s,@host@,$host,;t t | |
25695 | s,@host_cpu@,$host_cpu,;t t | |
25696 | s,@host_vendor@,$host_vendor,;t t | |
25697 | s,@host_os@,$host_os,;t t | |
25698 | s,@target@,$target,;t t | |
25699 | s,@target_cpu@,$target_cpu,;t t | |
25700 | s,@target_vendor@,$target_vendor,;t t | |
25701 | s,@target_os@,$target_os,;t t | |
25702 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
25703 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
25704 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
25705 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
25706 | s,@PACKAGE@,$PACKAGE,;t t | |
25707 | s,@VERSION@,$VERSION,;t t | |
25708 | s,@ACLOCAL@,$ACLOCAL,;t t | |
25709 | s,@AUTOCONF@,$AUTOCONF,;t t | |
25710 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
25711 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
25712 | s,@MAKEINFO@,$MAKEINFO,;t t | |
25713 | s,@install_sh@,$install_sh,;t t | |
25714 | s,@STRIP@,$STRIP,;t t | |
25715 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
25716 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
25717 | s,@mkdir_p@,$mkdir_p,;t t | |
25718 | s,@AWK@,$AWK,;t t | |
25719 | s,@SET_MAKE@,$SET_MAKE,;t t | |
25720 | s,@am__leading_dot@,$am__leading_dot,;t t | |
25721 | s,@AMTAR@,$AMTAR,;t t | |
25722 | s,@am__tar@,$am__tar,;t t | |
25723 | s,@am__untar@,$am__untar,;t t | |
25724 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
25725 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
25726 | s,@MAINT@,$MAINT,;t t | |
25727 | s,@CC@,$CC,;t t | |
25728 | s,@CFLAGS@,$CFLAGS,;t t | |
25729 | s,@LDFLAGS@,$LDFLAGS,;t t | |
25730 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
25731 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
25732 | s,@EXEEXT@,$EXEEXT,;t t | |
25733 | s,@OBJEXT@,$OBJEXT,;t t | |
25734 | s,@DEPDIR@,$DEPDIR,;t t | |
25735 | s,@am__include@,$am__include,;t t | |
25736 | s,@am__quote@,$am__quote,;t t | |
25737 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
25738 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
25739 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
25740 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
25741 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
25742 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
25743 | s,@SED@,$SED,;t t | |
25744 | s,@EGREP@,$EGREP,;t t | |
25745 | s,@LN_S@,$LN_S,;t t | |
25746 | s,@ECHO@,$ECHO,;t t | |
25747 | s,@AR@,$AR,;t t | |
25748 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
25749 | s,@RANLIB@,$RANLIB,;t t | |
25750 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
25751 | s,@CPP@,$CPP,;t t | |
25752 | s,@CXX@,$CXX,;t t | |
25753 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
25754 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
25755 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
25756 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
25757 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
25758 | s,@CXXCPP@,$CXXCPP,;t t | |
25759 | s,@F77@,$F77,;t t | |
25760 | s,@FFLAGS@,$FFLAGS,;t t | |
25761 | s,@ac_ct_F77@,$ac_ct_F77,;t t | |
25762 | s,@LIBTOOL@,$LIBTOOL,;t t | |
86933a6e BB |
25763 | s,@LICENSE@,$LICENSE,;t t |
25764 | s,@SPL_CONFIG@,$SPL_CONFIG,;t t | |
bf9f3bac | 25765 | s,@LINUX@,$LINUX,;t t |
25766 | s,@LINUX_OBJ@,$LINUX_OBJ,;t t | |
c5f70460 | 25767 | s,@LINUX_VERSION@,$LINUX_VERSION,;t t |
86933a6e | 25768 | s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t |
bf9f3bac | 25769 | s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t |
25770 | s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t | |
86933a6e BB |
25771 | s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t |
25772 | s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t | |
25773 | s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t | |
25774 | s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t | |
bf9f3bac | 25775 | s,@LIBOBJS@,$LIBOBJS,;t t |
25776 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
25777 | CEOF | |
25778 | ||
25779 | _ACEOF | |
25780 | ||
25781 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25782 | # Split the substitutions into bite-sized pieces for seds with | |
25783 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
25784 | ac_max_sed_lines=48 | |
25785 | ac_sed_frag=1 # Number of current file. | |
25786 | ac_beg=1 # First line for current file. | |
25787 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
25788 | ac_more_lines=: | |
25789 | ac_sed_cmds= | |
25790 | while $ac_more_lines; do | |
25791 | if test $ac_beg -gt 1; then | |
25792 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25793 | else | |
25794 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25795 | fi | |
25796 | if test ! -s $tmp/subs.frag; then | |
25797 | ac_more_lines=false | |
25798 | else | |
25799 | # The purpose of the label and of the branching condition is to | |
25800 | # speed up the sed processing (if there are no `@' at all, there | |
25801 | # is no need to browse any of the substitutions). | |
25802 | # These are the two extra sed commands mentioned above. | |
25803 | (echo ':t | |
25804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
25805 | if test -z "$ac_sed_cmds"; then | |
25806 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
25807 | else | |
25808 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
25809 | fi | |
25810 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
25811 | ac_beg=$ac_end | |
25812 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25813 | fi | |
25814 | done | |
25815 | if test -z "$ac_sed_cmds"; then | |
25816 | ac_sed_cmds=cat | |
25817 | fi | |
25818 | fi # test -n "$CONFIG_FILES" | |
25819 | ||
25820 | _ACEOF | |
25821 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25822 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25823 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25824 | case $ac_file in | |
25825 | - | *:- | *:-:* ) # input from stdin | |
25826 | cat >$tmp/stdin | |
25827 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25828 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25829 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25830 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25831 | * ) ac_file_in=$ac_file.in ;; | |
25832 | esac | |
25833 | ||
25834 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
25835 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25836 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25837 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25838 | X"$ac_file" : 'X\(//\)$' \| \ | |
25839 | X"$ac_file" : 'X\(/\)' \| \ | |
25840 | . : '\(.\)' 2>/dev/null || | |
25841 | echo X"$ac_file" | | |
25842 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25843 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25844 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25845 | /^X\(\/\).*/{ s//\1/; q; } | |
25846 | s/.*/./; q'` | |
25847 | { if $as_mkdir_p; then | |
25848 | mkdir -p "$ac_dir" | |
25849 | else | |
25850 | as_dir="$ac_dir" | |
25851 | as_dirs= | |
25852 | while test ! -d "$as_dir"; do | |
25853 | as_dirs="$as_dir $as_dirs" | |
25854 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25855 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25856 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25857 | X"$as_dir" : 'X\(//\)$' \| \ | |
25858 | X"$as_dir" : 'X\(/\)' \| \ | |
25859 | . : '\(.\)' 2>/dev/null || | |
25860 | echo X"$as_dir" | | |
25861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25863 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25864 | /^X\(\/\).*/{ s//\1/; q; } | |
25865 | s/.*/./; q'` | |
25866 | done | |
25867 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25868 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25869 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25870 | { (exit 1); exit 1; }; }; } | |
25871 | ||
25872 | ac_builddir=. | |
25873 | ||
25874 | if test "$ac_dir" != .; then | |
25875 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25876 | # A "../" for each directory in $ac_dir_suffix. | |
25877 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25878 | else | |
25879 | ac_dir_suffix= ac_top_builddir= | |
25880 | fi | |
25881 | ||
25882 | case $srcdir in | |
25883 | .) # No --srcdir option. We are building in place. | |
25884 | ac_srcdir=. | |
25885 | if test -z "$ac_top_builddir"; then | |
25886 | ac_top_srcdir=. | |
25887 | else | |
25888 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25889 | fi ;; | |
25890 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25891 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25892 | ac_top_srcdir=$srcdir ;; | |
25893 | *) # Relative path. | |
25894 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25895 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25896 | esac | |
25897 | ||
25898 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25899 | # the directories may not exist. | |
25900 | case `pwd` in | |
25901 | .) ac_abs_builddir="$ac_dir";; | |
25902 | *) | |
25903 | case "$ac_dir" in | |
25904 | .) ac_abs_builddir=`pwd`;; | |
25905 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25906 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25907 | esac;; | |
25908 | esac | |
25909 | case $ac_abs_builddir in | |
25910 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25911 | *) | |
25912 | case ${ac_top_builddir}. in | |
25913 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25914 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25915 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25916 | esac;; | |
25917 | esac | |
25918 | case $ac_abs_builddir in | |
25919 | .) ac_abs_srcdir=$ac_srcdir;; | |
25920 | *) | |
25921 | case $ac_srcdir in | |
25922 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25923 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25924 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25925 | esac;; | |
25926 | esac | |
25927 | case $ac_abs_builddir in | |
25928 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25929 | *) | |
25930 | case $ac_top_srcdir in | |
25931 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25932 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25933 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25934 | esac;; | |
25935 | esac | |
25936 | ||
25937 | ||
25938 | case $INSTALL in | |
25939 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25940 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
25941 | esac | |
25942 | ||
25943 | if test x"$ac_file" != x-; then | |
25944 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25945 | echo "$as_me: creating $ac_file" >&6;} | |
25946 | rm -f "$ac_file" | |
25947 | fi | |
25948 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25949 | # use $as_me), people would be surprised to read: | |
25950 | # /* config.h. Generated by config.status. */ | |
25951 | if test x"$ac_file" = x-; then | |
25952 | configure_input= | |
25953 | else | |
25954 | configure_input="$ac_file. " | |
25955 | fi | |
25956 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
25957 | sed 's,.*/,,'` by configure." | |
25958 | ||
25959 | # First look for the input files in the build tree, otherwise in the | |
25960 | # src tree. | |
25961 | ac_file_inputs=`IFS=: | |
25962 | for f in $ac_file_in; do | |
25963 | case $f in | |
25964 | -) echo $tmp/stdin ;; | |
25965 | [\\/$]*) | |
25966 | # Absolute (can't be DOS-style, as IFS=:) | |
25967 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25968 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25969 | { (exit 1); exit 1; }; } | |
25970 | echo "$f";; | |
25971 | *) # Relative | |
25972 | if test -f "$f"; then | |
25973 | # Build tree | |
25974 | echo "$f" | |
25975 | elif test -f "$srcdir/$f"; then | |
25976 | # Source tree | |
25977 | echo "$srcdir/$f" | |
25978 | else | |
25979 | # /dev/null tree | |
25980 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25981 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25982 | { (exit 1); exit 1; }; } | |
25983 | fi;; | |
25984 | esac | |
25985 | done` || { (exit 1); exit 1; } | |
25986 | _ACEOF | |
25987 | cat >>$CONFIG_STATUS <<_ACEOF | |
25988 | sed "$ac_vpsub | |
25989 | $extrasub | |
25990 | _ACEOF | |
25991 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25992 | :t | |
25993 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25994 | s,@configure_input@,$configure_input,;t t | |
25995 | s,@srcdir@,$ac_srcdir,;t t | |
25996 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
25997 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
25998 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
25999 | s,@builddir@,$ac_builddir,;t t | |
26000 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
26001 | s,@top_builddir@,$ac_top_builddir,;t t | |
26002 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
26003 | s,@INSTALL@,$ac_INSTALL,;t t | |
26004 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
26005 | rm -f $tmp/stdin | |
26006 | if test x"$ac_file" != x-; then | |
26007 | mv $tmp/out $ac_file | |
26008 | else | |
26009 | cat $tmp/out | |
26010 | rm -f $tmp/out | |
26011 | fi | |
26012 | ||
26013 | done | |
26014 | _ACEOF | |
26015 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26016 | ||
26017 | # | |
26018 | # CONFIG_HEADER section. | |
26019 | # | |
26020 | ||
26021 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
26022 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
26023 | # | |
26024 | # ac_d sets the value in "#define NAME VALUE" lines. | |
26025 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
26026 | ac_dB='[ ].*$,\1#\2' | |
26027 | ac_dC=' ' | |
26028 | ac_dD=',;t' | |
26029 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
26030 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
26031 | ac_uB='$,\1#\2define\3' | |
26032 | ac_uC=' ' | |
26033 | ac_uD=',;t' | |
26034 | ||
26035 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
26036 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
26037 | case $ac_file in | |
26038 | - | *:- | *:-:* ) # input from stdin | |
26039 | cat >$tmp/stdin | |
26040 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26041 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26042 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26043 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
26044 | * ) ac_file_in=$ac_file.in ;; | |
26045 | esac | |
26046 | ||
26047 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26048 | echo "$as_me: creating $ac_file" >&6;} | |
26049 | ||
26050 | # First look for the input files in the build tree, otherwise in the | |
26051 | # src tree. | |
26052 | ac_file_inputs=`IFS=: | |
26053 | for f in $ac_file_in; do | |
26054 | case $f in | |
26055 | -) echo $tmp/stdin ;; | |
26056 | [\\/$]*) | |
26057 | # Absolute (can't be DOS-style, as IFS=:) | |
26058 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26059 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26060 | { (exit 1); exit 1; }; } | |
26061 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
26062 | echo "$f";; | |
26063 | *) # Relative | |
26064 | if test -f "$f"; then | |
26065 | # Build tree | |
26066 | echo "$f" | |
26067 | elif test -f "$srcdir/$f"; then | |
26068 | # Source tree | |
26069 | echo "$srcdir/$f" | |
26070 | else | |
26071 | # /dev/null tree | |
26072 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
26073 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
26074 | { (exit 1); exit 1; }; } | |
26075 | fi;; | |
26076 | esac | |
26077 | done` || { (exit 1); exit 1; } | |
26078 | # Remove the trailing spaces. | |
26079 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
26080 | ||
26081 | _ACEOF | |
26082 | ||
26083 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
26084 | # `conftest.undefs', that substitutes the proper values into | |
26085 | # config.h.in to produce config.h. The first handles `#define' | |
26086 | # templates, and the second `#undef' templates. | |
26087 | # And first: Protect against being on the right side of a sed subst in | |
26088 | # config.status. Protect against being in an unquoted here document | |
26089 | # in config.status. | |
26090 | rm -f conftest.defines conftest.undefs | |
26091 | # Using a here document instead of a string reduces the quoting nightmare. | |
26092 | # Putting comments in sed scripts is not portable. | |
26093 | # | |
26094 | # `end' is used to avoid that the second main sed command (meant for | |
26095 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
26096 | # See the Autoconf documentation for `clear'. | |
26097 | cat >confdef2sed.sed <<\_ACEOF | |
26098 | s/[\\&,]/\\&/g | |
26099 | s,[\\$`],\\&,g | |
26100 | t clear | |
26101 | : clear | |
26102 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
26103 | t end | |
26104 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
26105 | : end | |
26106 | _ACEOF | |
26107 | # If some macros were called several times there might be several times | |
26108 | # the same #defines, which is useless. Nevertheless, we may not want to | |
26109 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
26110 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
26111 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
26112 | rm -f confdef2sed.sed | |
26113 | ||
26114 | # This sed command replaces #undef with comments. This is necessary, for | |
26115 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
26116 | # on some systems where configure will not decide to define it. | |
26117 | cat >>conftest.undefs <<\_ACEOF | |
26118 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
26119 | _ACEOF | |
26120 | ||
26121 | # Break up conftest.defines because some shells have a limit on the size | |
26122 | # of here documents, and old seds have small limits too (100 cmds). | |
26123 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
26124 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
26125 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
26126 | echo ' :' >>$CONFIG_STATUS | |
26127 | rm -f conftest.tail | |
26128 | while grep . conftest.defines >/dev/null | |
26129 | do | |
26130 | # Write a limited-size here document to $tmp/defines.sed. | |
26131 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
26132 | # Speed up: don't consider the non `#define' lines. | |
26133 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
26134 | # Work around the forget-to-reset-the-flag bug. | |
26135 | echo 't clr' >>$CONFIG_STATUS | |
26136 | echo ': clr' >>$CONFIG_STATUS | |
26137 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
26138 | echo 'CEOF | |
26139 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
26140 | rm -f $tmp/in | |
26141 | mv $tmp/out $tmp/in | |
26142 | ' >>$CONFIG_STATUS | |
26143 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
26144 | rm -f conftest.defines | |
26145 | mv conftest.tail conftest.defines | |
26146 | done | |
26147 | rm -f conftest.defines | |
26148 | echo ' fi # grep' >>$CONFIG_STATUS | |
26149 | echo >>$CONFIG_STATUS | |
26150 | ||
26151 | # Break up conftest.undefs because some shells have a limit on the size | |
26152 | # of here documents, and old seds have small limits too (100 cmds). | |
26153 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
26154 | rm -f conftest.tail | |
26155 | while grep . conftest.undefs >/dev/null | |
26156 | do | |
26157 | # Write a limited-size here document to $tmp/undefs.sed. | |
26158 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
26159 | # Speed up: don't consider the non `#undef' | |
26160 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
26161 | # Work around the forget-to-reset-the-flag bug. | |
26162 | echo 't clr' >>$CONFIG_STATUS | |
26163 | echo ': clr' >>$CONFIG_STATUS | |
26164 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
26165 | echo 'CEOF | |
26166 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
26167 | rm -f $tmp/in | |
26168 | mv $tmp/out $tmp/in | |
26169 | ' >>$CONFIG_STATUS | |
26170 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
26171 | rm -f conftest.undefs | |
26172 | mv conftest.tail conftest.undefs | |
26173 | done | |
26174 | rm -f conftest.undefs | |
26175 | ||
26176 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26177 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26178 | # use $as_me), people would be surprised to read: | |
26179 | # /* config.h. Generated by config.status. */ | |
26180 | if test x"$ac_file" = x-; then | |
26181 | echo "/* Generated by configure. */" >$tmp/config.h | |
26182 | else | |
26183 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
26184 | fi | |
26185 | cat $tmp/in >>$tmp/config.h | |
26186 | rm -f $tmp/in | |
26187 | if test x"$ac_file" != x-; then | |
26188 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
26189 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
26190 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26191 | else | |
26192 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
26193 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26194 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26195 | X"$ac_file" : 'X\(//\)$' \| \ | |
26196 | X"$ac_file" : 'X\(/\)' \| \ | |
26197 | . : '\(.\)' 2>/dev/null || | |
26198 | echo X"$ac_file" | | |
26199 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26200 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26201 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26202 | /^X\(\/\).*/{ s//\1/; q; } | |
26203 | s/.*/./; q'` | |
26204 | { if $as_mkdir_p; then | |
26205 | mkdir -p "$ac_dir" | |
26206 | else | |
26207 | as_dir="$ac_dir" | |
26208 | as_dirs= | |
26209 | while test ! -d "$as_dir"; do | |
26210 | as_dirs="$as_dir $as_dirs" | |
26211 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26212 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26213 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26214 | X"$as_dir" : 'X\(//\)$' \| \ | |
26215 | X"$as_dir" : 'X\(/\)' \| \ | |
26216 | . : '\(.\)' 2>/dev/null || | |
26217 | echo X"$as_dir" | | |
26218 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26219 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26220 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26221 | /^X\(\/\).*/{ s//\1/; q; } | |
26222 | s/.*/./; q'` | |
26223 | done | |
26224 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26225 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26226 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26227 | { (exit 1); exit 1; }; }; } | |
26228 | ||
26229 | rm -f $ac_file | |
26230 | mv $tmp/config.h $ac_file | |
26231 | fi | |
26232 | else | |
26233 | cat $tmp/config.h | |
26234 | rm -f $tmp/config.h | |
26235 | fi | |
26236 | # Compute $ac_file's index in $config_headers. | |
26237 | _am_stamp_count=1 | |
26238 | for _am_header in $config_headers :; do | |
26239 | case $_am_header in | |
26240 | $ac_file | $ac_file:* ) | |
26241 | break ;; | |
26242 | * ) | |
26243 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
26244 | esac | |
26245 | done | |
26246 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
26247 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26248 | X$ac_file : 'X\(//\)[^/]' \| \ | |
26249 | X$ac_file : 'X\(//\)$' \| \ | |
26250 | X$ac_file : 'X\(/\)' \| \ | |
26251 | . : '\(.\)' 2>/dev/null || | |
26252 | echo X$ac_file | | |
26253 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26254 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26255 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26256 | /^X\(\/\).*/{ s//\1/; q; } | |
26257 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
26258 | done | |
26259 | _ACEOF | |
26260 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26261 | ||
26262 | # | |
26263 | # CONFIG_COMMANDS section. | |
26264 | # | |
26265 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
26266 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
26267 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
26268 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
26269 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26270 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
26271 | X"$ac_dest" : 'X\(//\)$' \| \ | |
26272 | X"$ac_dest" : 'X\(/\)' \| \ | |
26273 | . : '\(.\)' 2>/dev/null || | |
26274 | echo X"$ac_dest" | | |
26275 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26276 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26277 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26278 | /^X\(\/\).*/{ s//\1/; q; } | |
26279 | s/.*/./; q'` | |
26280 | { if $as_mkdir_p; then | |
26281 | mkdir -p "$ac_dir" | |
26282 | else | |
26283 | as_dir="$ac_dir" | |
26284 | as_dirs= | |
26285 | while test ! -d "$as_dir"; do | |
26286 | as_dirs="$as_dir $as_dirs" | |
26287 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26288 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26289 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26290 | X"$as_dir" : 'X\(//\)$' \| \ | |
26291 | X"$as_dir" : 'X\(/\)' \| \ | |
26292 | . : '\(.\)' 2>/dev/null || | |
26293 | echo X"$as_dir" | | |
26294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26295 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26296 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26297 | /^X\(\/\).*/{ s//\1/; q; } | |
26298 | s/.*/./; q'` | |
26299 | done | |
26300 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26301 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26302 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
26303 | { (exit 1); exit 1; }; }; } | |
26304 | ||
26305 | ac_builddir=. | |
26306 | ||
26307 | if test "$ac_dir" != .; then | |
26308 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
26309 | # A "../" for each directory in $ac_dir_suffix. | |
26310 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26311 | else | |
26312 | ac_dir_suffix= ac_top_builddir= | |
26313 | fi | |
26314 | ||
26315 | case $srcdir in | |
26316 | .) # No --srcdir option. We are building in place. | |
26317 | ac_srcdir=. | |
26318 | if test -z "$ac_top_builddir"; then | |
26319 | ac_top_srcdir=. | |
26320 | else | |
26321 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26322 | fi ;; | |
26323 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
26324 | ac_srcdir=$srcdir$ac_dir_suffix; | |
26325 | ac_top_srcdir=$srcdir ;; | |
26326 | *) # Relative path. | |
26327 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26328 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26329 | esac | |
26330 | ||
26331 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
26332 | # the directories may not exist. | |
26333 | case `pwd` in | |
26334 | .) ac_abs_builddir="$ac_dir";; | |
26335 | *) | |
26336 | case "$ac_dir" in | |
26337 | .) ac_abs_builddir=`pwd`;; | |
26338 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
26339 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
26340 | esac;; | |
26341 | esac | |
26342 | case $ac_abs_builddir in | |
26343 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26344 | *) | |
26345 | case ${ac_top_builddir}. in | |
26346 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26347 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26348 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26349 | esac;; | |
26350 | esac | |
26351 | case $ac_abs_builddir in | |
26352 | .) ac_abs_srcdir=$ac_srcdir;; | |
26353 | *) | |
26354 | case $ac_srcdir in | |
26355 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26356 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26357 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26358 | esac;; | |
26359 | esac | |
26360 | case $ac_abs_builddir in | |
26361 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26362 | *) | |
26363 | case $ac_top_srcdir in | |
26364 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
26365 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26366 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
26367 | esac;; | |
26368 | esac | |
26369 | ||
26370 | ||
26371 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
26372 | echo "$as_me: executing $ac_dest commands" >&6;} | |
26373 | case $ac_dest in | |
26374 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
26375 | # Strip MF so we end up with the name of the file. | |
26376 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
26377 | # Check whether this is an Automake generated Makefile or not. | |
26378 | # We used to match only the files named `Makefile.in', but | |
26379 | # some people rename them; so instead we look at the file content. | |
26380 | # Grep'ing the first line is not enough: some people post-process | |
26381 | # each Makefile.in and add a new line on top of each file to say so. | |
26382 | # So let's grep whole file. | |
26383 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
26384 | dirpart=`(dirname "$mf") 2>/dev/null || | |
26385 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26386 | X"$mf" : 'X\(//\)[^/]' \| \ | |
26387 | X"$mf" : 'X\(//\)$' \| \ | |
26388 | X"$mf" : 'X\(/\)' \| \ | |
26389 | . : '\(.\)' 2>/dev/null || | |
26390 | echo X"$mf" | | |
26391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26393 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26394 | /^X\(\/\).*/{ s//\1/; q; } | |
26395 | s/.*/./; q'` | |
26396 | else | |
26397 | continue | |
26398 | fi | |
26399 | # Extract the definition of DEPDIR, am__include, and am__quote | |
26400 | # from the Makefile without running `make'. | |
26401 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
26402 | test -z "$DEPDIR" && continue | |
26403 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
26404 | test -z "am__include" && continue | |
26405 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
26406 | # When using ansi2knr, U may be empty or an underscore; expand it | |
26407 | U=`sed -n 's/^U = //p' < "$mf"` | |
26408 | # Find all dependency output files, they are included files with | |
26409 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
26410 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
26411 | # expansion. | |
26412 | for file in `sed -n " | |
26413 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
26414 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
26415 | # Make sure the directory exists. | |
26416 | test -f "$dirpart/$file" && continue | |
26417 | fdir=`(dirname "$file") 2>/dev/null || | |
26418 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26419 | X"$file" : 'X\(//\)[^/]' \| \ | |
26420 | X"$file" : 'X\(//\)$' \| \ | |
26421 | X"$file" : 'X\(/\)' \| \ | |
26422 | . : '\(.\)' 2>/dev/null || | |
26423 | echo X"$file" | | |
26424 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26425 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26426 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26427 | /^X\(\/\).*/{ s//\1/; q; } | |
26428 | s/.*/./; q'` | |
26429 | { if $as_mkdir_p; then | |
26430 | mkdir -p $dirpart/$fdir | |
26431 | else | |
26432 | as_dir=$dirpart/$fdir | |
26433 | as_dirs= | |
26434 | while test ! -d "$as_dir"; do | |
26435 | as_dirs="$as_dir $as_dirs" | |
26436 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
26437 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26438 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26439 | X"$as_dir" : 'X\(//\)$' \| \ | |
26440 | X"$as_dir" : 'X\(/\)' \| \ | |
26441 | . : '\(.\)' 2>/dev/null || | |
26442 | echo X"$as_dir" | | |
26443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
26444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26445 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26446 | /^X\(\/\).*/{ s//\1/; q; } | |
26447 | s/.*/./; q'` | |
26448 | done | |
26449 | test ! -n "$as_dirs" || mkdir $as_dirs | |
26450 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
26451 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
26452 | { (exit 1); exit 1; }; }; } | |
26453 | ||
26454 | # echo "creating $dirpart/$file" | |
26455 | echo '# dummy' > "$dirpart/$file" | |
26456 | done | |
26457 | done | |
26458 | ;; | |
26459 | esac | |
26460 | done | |
26461 | _ACEOF | |
26462 | ||
26463 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26464 | ||
26465 | { (exit 0); exit 0; } | |
26466 | _ACEOF | |
26467 | chmod +x $CONFIG_STATUS | |
26468 | ac_clean_files=$ac_clean_files_save | |
26469 | ||
26470 | ||
26471 | # configure is writing to config.log, and then calls config.status. | |
26472 | # config.status does its own redirection, appending to config.log. | |
26473 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26474 | # by configure, so config.status won't be able to write to it; its | |
26475 | # output is simply discarded. So we exec the FD to /dev/null, | |
26476 | # effectively closing config.log, so it can be properly (re)opened and | |
26477 | # appended to by config.status. When coming back to configure, we | |
26478 | # need to make the FD available again. | |
26479 | if test "$no_create" != yes; then | |
26480 | ac_cs_success=: | |
26481 | ac_config_status_args= | |
26482 | test "$silent" = yes && | |
26483 | ac_config_status_args="$ac_config_status_args --quiet" | |
26484 | exec 5>/dev/null | |
26485 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26486 | exec 5>>config.log | |
26487 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26488 | # would make configure fail if this is the last instruction. | |
26489 | $ac_cs_success || { (exit 1); exit 1; } | |
26490 | fi | |
26491 |