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 | ac_unique_file="libxslt/xslt.c"
|
---|
429 | # Factoring default headers for most tests.
|
---|
430 | ac_includes_default="\
|
---|
431 | #include <stdio.h>
|
---|
432 | #if HAVE_SYS_TYPES_H
|
---|
433 | # include <sys/types.h>
|
---|
434 | #endif
|
---|
435 | #if HAVE_SYS_STAT_H
|
---|
436 | # include <sys/stat.h>
|
---|
437 | #endif
|
---|
438 | #if STDC_HEADERS
|
---|
439 | # include <stdlib.h>
|
---|
440 | # include <stddef.h>
|
---|
441 | #else
|
---|
442 | # if HAVE_STDLIB_H
|
---|
443 | # include <stdlib.h>
|
---|
444 | # endif
|
---|
445 | #endif
|
---|
446 | #if HAVE_STRING_H
|
---|
447 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
448 | # include <memory.h>
|
---|
449 | # endif
|
---|
450 | # include <string.h>
|
---|
451 | #endif
|
---|
452 | #if HAVE_STRINGS_H
|
---|
453 | # include <strings.h>
|
---|
454 | #endif
|
---|
455 | #if HAVE_INTTYPES_H
|
---|
456 | # include <inttypes.h>
|
---|
457 | #else
|
---|
458 | # if HAVE_STDINT_H
|
---|
459 | # include <stdint.h>
|
---|
460 | # endif
|
---|
461 | #endif
|
---|
462 | #if HAVE_UNISTD_H
|
---|
463 | # include <unistd.h>
|
---|
464 | #endif"
|
---|
465 |
|
---|
466 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBXSLT_MAJOR_VERSION LIBXSLT_MINOR_VERSION LIBXSLT_MICRO_VERSION LIBXSLT_VERSION LIBXSLT_VERSION_INFO LIBXSLT_VERSION_NUMBER LIBXSLT_VERSION_EXTRA LIBXSLT_MAJOR_MINOR_VERSION LIBEXSLT_MAJOR_VERSION LIBEXSLT_MINOR_VERSION LIBEXSLT_MICRO_VERSION LIBEXSLT_VERSION LIBEXSLT_VERSION_INFO LIBEXSLT_VERSION_NUMBER LIBEXSLT_VERSION_EXTRA 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 HTML_DIR 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 CPP RM MV TAR EGREP SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WITH_TRIO PERL WITH_PERL_TRUE WITH_PERL_FALSE PYTHON WITH_PYTHON_TRUE WITH_PYTHON_FALSE pythondir PYTHON_SUBDIR LIBGCRYPT_CONFIG WITH_CRYPTO LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS STATIC_BINARIES WITH_XSLT_DEBUG WITH_MEM_DEBUG WITH_DEBUGGER LIBXML_SRC LIBXML_REQUIRED_VERSION WITH_MODULES WITH_MODULES_TRUE WITH_MODULES_FALSE LIBXSLT_DEFAULT_PLUGINS_PATH WIN32_EXTRA_LIBADD WIN32_EXTRA_LDFLAGS XSLTPROCDV PYTHONSODV XML_CONFIG LIBXML_LIBS LIBXML_CFLAGS PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES XSLT_LIBDIR XSLT_INCLUDEDIR XSLT_LIBS EXSLT_LIBDIR EXSLT_INCLUDEDIR EXSLT_LIBS EXTRA_LIBS M_LIBS RELDATE LIBOBJS LTLIBOBJS'
|
---|
467 | ac_subst_files=''
|
---|
468 |
|
---|
469 | # Initialize some variables set by options.
|
---|
470 | ac_init_help=
|
---|
471 | ac_init_version=false
|
---|
472 | # The variables have the same names as the options, with
|
---|
473 | # dashes changed to underlines.
|
---|
474 | cache_file=/dev/null
|
---|
475 | exec_prefix=NONE
|
---|
476 | no_create=
|
---|
477 | no_recursion=
|
---|
478 | prefix=NONE
|
---|
479 | program_prefix=NONE
|
---|
480 | program_suffix=NONE
|
---|
481 | program_transform_name=s,x,x,
|
---|
482 | silent=
|
---|
483 | site=
|
---|
484 | srcdir=
|
---|
485 | verbose=
|
---|
486 | x_includes=NONE
|
---|
487 | x_libraries=NONE
|
---|
488 |
|
---|
489 | # Installation directory options.
|
---|
490 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
491 | # and all the variables that are supposed to be based on exec_prefix
|
---|
492 | # by default will actually change.
|
---|
493 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
494 | bindir='${exec_prefix}/bin'
|
---|
495 | sbindir='${exec_prefix}/sbin'
|
---|
496 | libexecdir='${exec_prefix}/libexec'
|
---|
497 | datadir='${prefix}/share'
|
---|
498 | sysconfdir='${prefix}/etc'
|
---|
499 | sharedstatedir='${prefix}/com'
|
---|
500 | localstatedir='${prefix}/var'
|
---|
501 | libdir='${exec_prefix}/lib'
|
---|
502 | includedir='${prefix}/include'
|
---|
503 | oldincludedir='/usr/include'
|
---|
504 | infodir='${prefix}/info'
|
---|
505 | mandir='${prefix}/man'
|
---|
506 |
|
---|
507 | ac_prev=
|
---|
508 | for ac_option
|
---|
509 | do
|
---|
510 | # If the previous option needs an argument, assign it.
|
---|
511 | if test -n "$ac_prev"; then
|
---|
512 | eval "$ac_prev=\$ac_option"
|
---|
513 | ac_prev=
|
---|
514 | continue
|
---|
515 | fi
|
---|
516 |
|
---|
517 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
518 |
|
---|
519 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
520 |
|
---|
521 | case $ac_option in
|
---|
522 |
|
---|
523 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
524 | ac_prev=bindir ;;
|
---|
525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
526 | bindir=$ac_optarg ;;
|
---|
527 |
|
---|
528 | -build | --build | --buil | --bui | --bu)
|
---|
529 | ac_prev=build_alias ;;
|
---|
530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
531 | build_alias=$ac_optarg ;;
|
---|
532 |
|
---|
533 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
535 | ac_prev=cache_file ;;
|
---|
536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
538 | cache_file=$ac_optarg ;;
|
---|
539 |
|
---|
540 | --config-cache | -C)
|
---|
541 | cache_file=config.cache ;;
|
---|
542 |
|
---|
543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
544 | ac_prev=datadir ;;
|
---|
545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
546 | | --da=*)
|
---|
547 | datadir=$ac_optarg ;;
|
---|
548 |
|
---|
549 | -disable-* | --disable-*)
|
---|
550 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
551 | # Reject names that are not valid shell variable names.
|
---|
552 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
553 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
554 | { (exit 1); exit 1; }; }
|
---|
555 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
556 | eval "enable_$ac_feature=no" ;;
|
---|
557 |
|
---|
558 | -enable-* | --enable-*)
|
---|
559 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
560 | # Reject names that are not valid shell variable names.
|
---|
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
563 | { (exit 1); exit 1; }; }
|
---|
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
565 | case $ac_option in
|
---|
566 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
567 | *) ac_optarg=yes ;;
|
---|
568 | esac
|
---|
569 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
570 |
|
---|
571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
573 | | --exec | --exe | --ex)
|
---|
574 | ac_prev=exec_prefix ;;
|
---|
575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
577 | | --exec=* | --exe=* | --ex=*)
|
---|
578 | exec_prefix=$ac_optarg ;;
|
---|
579 |
|
---|
580 | -gas | --gas | --ga | --g)
|
---|
581 | # Obsolete; use --with-gas.
|
---|
582 | with_gas=yes ;;
|
---|
583 |
|
---|
584 | -help | --help | --hel | --he | -h)
|
---|
585 | ac_init_help=long ;;
|
---|
586 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
587 | ac_init_help=recursive ;;
|
---|
588 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
589 | ac_init_help=short ;;
|
---|
590 |
|
---|
591 | -host | --host | --hos | --ho)
|
---|
592 | ac_prev=host_alias ;;
|
---|
593 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
594 | host_alias=$ac_optarg ;;
|
---|
595 |
|
---|
596 | -includedir | --includedir | --includedi | --included | --include \
|
---|
597 | | --includ | --inclu | --incl | --inc)
|
---|
598 | ac_prev=includedir ;;
|
---|
599 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
600 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
601 | includedir=$ac_optarg ;;
|
---|
602 |
|
---|
603 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
604 | ac_prev=infodir ;;
|
---|
605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
606 | infodir=$ac_optarg ;;
|
---|
607 |
|
---|
608 | -libdir | --libdir | --libdi | --libd)
|
---|
609 | ac_prev=libdir ;;
|
---|
610 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
611 | libdir=$ac_optarg ;;
|
---|
612 |
|
---|
613 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
614 | | --libexe | --libex | --libe)
|
---|
615 | ac_prev=libexecdir ;;
|
---|
616 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
617 | | --libexe=* | --libex=* | --libe=*)
|
---|
618 | libexecdir=$ac_optarg ;;
|
---|
619 |
|
---|
620 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
621 | | --localstate | --localstat | --localsta | --localst \
|
---|
622 | | --locals | --local | --loca | --loc | --lo)
|
---|
623 | ac_prev=localstatedir ;;
|
---|
624 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
625 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
626 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
627 | localstatedir=$ac_optarg ;;
|
---|
628 |
|
---|
629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
630 | ac_prev=mandir ;;
|
---|
631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
632 | mandir=$ac_optarg ;;
|
---|
633 |
|
---|
634 | -nfp | --nfp | --nf)
|
---|
635 | # Obsolete; use --without-fp.
|
---|
636 | with_fp=no ;;
|
---|
637 |
|
---|
638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
639 | | --no-cr | --no-c | -n)
|
---|
640 | no_create=yes ;;
|
---|
641 |
|
---|
642 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
643 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
644 | no_recursion=yes ;;
|
---|
645 |
|
---|
646 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
647 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
648 | | --oldin | --oldi | --old | --ol | --o)
|
---|
649 | ac_prev=oldincludedir ;;
|
---|
650 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
651 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
652 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
653 | oldincludedir=$ac_optarg ;;
|
---|
654 |
|
---|
655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
656 | ac_prev=prefix ;;
|
---|
657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
658 | prefix=$ac_optarg ;;
|
---|
659 |
|
---|
660 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
661 | | --program-pre | --program-pr | --program-p)
|
---|
662 | ac_prev=program_prefix ;;
|
---|
663 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
664 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
665 | program_prefix=$ac_optarg ;;
|
---|
666 |
|
---|
667 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
668 | | --program-suf | --program-su | --program-s)
|
---|
669 | ac_prev=program_suffix ;;
|
---|
670 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
671 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
672 | program_suffix=$ac_optarg ;;
|
---|
673 |
|
---|
674 | -program-transform-name | --program-transform-name \
|
---|
675 | | --program-transform-nam | --program-transform-na \
|
---|
676 | | --program-transform-n | --program-transform- \
|
---|
677 | | --program-transform | --program-transfor \
|
---|
678 | | --program-transfo | --program-transf \
|
---|
679 | | --program-trans | --program-tran \
|
---|
680 | | --progr-tra | --program-tr | --program-t)
|
---|
681 | ac_prev=program_transform_name ;;
|
---|
682 | -program-transform-name=* | --program-transform-name=* \
|
---|
683 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
684 | | --program-transform-n=* | --program-transform-=* \
|
---|
685 | | --program-transform=* | --program-transfor=* \
|
---|
686 | | --program-transfo=* | --program-transf=* \
|
---|
687 | | --program-trans=* | --program-tran=* \
|
---|
688 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
689 | program_transform_name=$ac_optarg ;;
|
---|
690 |
|
---|
691 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
692 | | -silent | --silent | --silen | --sile | --sil)
|
---|
693 | silent=yes ;;
|
---|
694 |
|
---|
695 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
696 | ac_prev=sbindir ;;
|
---|
697 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
698 | | --sbi=* | --sb=*)
|
---|
699 | sbindir=$ac_optarg ;;
|
---|
700 |
|
---|
701 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
702 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
703 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
704 | | --sha | --sh)
|
---|
705 | ac_prev=sharedstatedir ;;
|
---|
706 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
707 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
708 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
709 | | --sha=* | --sh=*)
|
---|
710 | sharedstatedir=$ac_optarg ;;
|
---|
711 |
|
---|
712 | -site | --site | --sit)
|
---|
713 | ac_prev=site ;;
|
---|
714 | -site=* | --site=* | --sit=*)
|
---|
715 | site=$ac_optarg ;;
|
---|
716 |
|
---|
717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
718 | ac_prev=srcdir ;;
|
---|
719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
720 | srcdir=$ac_optarg ;;
|
---|
721 |
|
---|
722 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
723 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
724 | ac_prev=sysconfdir ;;
|
---|
725 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
726 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
727 | sysconfdir=$ac_optarg ;;
|
---|
728 |
|
---|
729 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
730 | ac_prev=target_alias ;;
|
---|
731 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
732 | target_alias=$ac_optarg ;;
|
---|
733 |
|
---|
734 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
735 | verbose=yes ;;
|
---|
736 |
|
---|
737 | -version | --version | --versio | --versi | --vers | -V)
|
---|
738 | ac_init_version=: ;;
|
---|
739 |
|
---|
740 | -with-* | --with-*)
|
---|
741 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
742 | # Reject names that are not valid shell variable names.
|
---|
743 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
744 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
745 | { (exit 1); exit 1; }; }
|
---|
746 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
747 | case $ac_option in
|
---|
748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
749 | *) ac_optarg=yes ;;
|
---|
750 | esac
|
---|
751 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
752 |
|
---|
753 | -without-* | --without-*)
|
---|
754 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
755 | # Reject names that are not valid shell variable names.
|
---|
756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
757 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
758 | { (exit 1); exit 1; }; }
|
---|
759 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
760 | eval "with_$ac_package=no" ;;
|
---|
761 |
|
---|
762 | --x)
|
---|
763 | # Obsolete; use --with-x.
|
---|
764 | with_x=yes ;;
|
---|
765 |
|
---|
766 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
767 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
768 | ac_prev=x_includes ;;
|
---|
769 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
770 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
771 | x_includes=$ac_optarg ;;
|
---|
772 |
|
---|
773 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
774 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
775 | ac_prev=x_libraries ;;
|
---|
776 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
777 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
778 | x_libraries=$ac_optarg ;;
|
---|
779 |
|
---|
780 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
781 | Try \`$0 --help' for more information." >&2
|
---|
782 | { (exit 1); exit 1; }; }
|
---|
783 | ;;
|
---|
784 |
|
---|
785 | *=*)
|
---|
786 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
787 | # Reject names that are not valid shell variable names.
|
---|
788 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
789 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
790 | { (exit 1); exit 1; }; }
|
---|
791 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
792 | eval "$ac_envvar='$ac_optarg'"
|
---|
793 | export $ac_envvar ;;
|
---|
794 |
|
---|
795 | *)
|
---|
796 | # FIXME: should be removed in autoconf 3.0.
|
---|
797 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
798 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
799 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
800 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
801 | ;;
|
---|
802 |
|
---|
803 | esac
|
---|
804 | done
|
---|
805 |
|
---|
806 | if test -n "$ac_prev"; then
|
---|
807 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
808 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
809 | { (exit 1); exit 1; }; }
|
---|
810 | fi
|
---|
811 |
|
---|
812 | # Be sure to have absolute paths.
|
---|
813 | for ac_var in exec_prefix prefix
|
---|
814 | do
|
---|
815 | eval ac_val=$`echo $ac_var`
|
---|
816 | case $ac_val in
|
---|
817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
819 | { (exit 1); exit 1; }; };;
|
---|
820 | esac
|
---|
821 | done
|
---|
822 |
|
---|
823 | # Be sure to have absolute paths.
|
---|
824 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
825 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
826 | do
|
---|
827 | eval ac_val=$`echo $ac_var`
|
---|
828 | case $ac_val in
|
---|
829 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
830 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
831 | { (exit 1); exit 1; }; };;
|
---|
832 | esac
|
---|
833 | done
|
---|
834 |
|
---|
835 | # There might be people who depend on the old broken behavior: `$host'
|
---|
836 | # used to hold the argument of --host etc.
|
---|
837 | # FIXME: To remove some day.
|
---|
838 | build=$build_alias
|
---|
839 | host=$host_alias
|
---|
840 | target=$target_alias
|
---|
841 |
|
---|
842 | # FIXME: To remove some day.
|
---|
843 | if test "x$host_alias" != x; then
|
---|
844 | if test "x$build_alias" = x; then
|
---|
845 | cross_compiling=maybe
|
---|
846 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
847 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
848 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
849 | cross_compiling=yes
|
---|
850 | fi
|
---|
851 | fi
|
---|
852 |
|
---|
853 | ac_tool_prefix=
|
---|
854 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
855 |
|
---|
856 | test "$silent" = yes && exec 6>/dev/null
|
---|
857 |
|
---|
858 |
|
---|
859 | # Find the source files, if location was not specified.
|
---|
860 | if test -z "$srcdir"; then
|
---|
861 | ac_srcdir_defaulted=yes
|
---|
862 | # Try the directory containing this script, then its parent.
|
---|
863 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
865 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
866 | X"$0" : 'X\(//\)$' \| \
|
---|
867 | X"$0" : 'X\(/\)' \| \
|
---|
868 | . : '\(.\)' 2>/dev/null ||
|
---|
869 | echo X"$0" |
|
---|
870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
872 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
873 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
874 | s/.*/./; q'`
|
---|
875 | srcdir=$ac_confdir
|
---|
876 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
877 | srcdir=..
|
---|
878 | fi
|
---|
879 | else
|
---|
880 | ac_srcdir_defaulted=no
|
---|
881 | fi
|
---|
882 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
883 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
884 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
885 | { (exit 1); exit 1; }; }
|
---|
886 | else
|
---|
887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
888 | { (exit 1); exit 1; }; }
|
---|
889 | fi
|
---|
890 | fi
|
---|
891 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
892 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
893 | { (exit 1); exit 1; }; }
|
---|
894 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
895 | ac_env_build_alias_set=${build_alias+set}
|
---|
896 | ac_env_build_alias_value=$build_alias
|
---|
897 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
898 | ac_cv_env_build_alias_value=$build_alias
|
---|
899 | ac_env_host_alias_set=${host_alias+set}
|
---|
900 | ac_env_host_alias_value=$host_alias
|
---|
901 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
902 | ac_cv_env_host_alias_value=$host_alias
|
---|
903 | ac_env_target_alias_set=${target_alias+set}
|
---|
904 | ac_env_target_alias_value=$target_alias
|
---|
905 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
906 | ac_cv_env_target_alias_value=$target_alias
|
---|
907 | ac_env_CC_set=${CC+set}
|
---|
908 | ac_env_CC_value=$CC
|
---|
909 | ac_cv_env_CC_set=${CC+set}
|
---|
910 | ac_cv_env_CC_value=$CC
|
---|
911 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
912 | ac_env_CFLAGS_value=$CFLAGS
|
---|
913 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
914 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
915 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
916 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
917 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
918 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
919 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
920 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
923 | ac_env_CPP_set=${CPP+set}
|
---|
924 | ac_env_CPP_value=$CPP
|
---|
925 | ac_cv_env_CPP_set=${CPP+set}
|
---|
926 | ac_cv_env_CPP_value=$CPP
|
---|
927 | ac_env_CXX_set=${CXX+set}
|
---|
928 | ac_env_CXX_value=$CXX
|
---|
929 | ac_cv_env_CXX_set=${CXX+set}
|
---|
930 | ac_cv_env_CXX_value=$CXX
|
---|
931 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
932 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
933 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
935 | ac_env_CXXCPP_set=${CXXCPP+set}
|
---|
936 | ac_env_CXXCPP_value=$CXXCPP
|
---|
937 | ac_cv_env_CXXCPP_set=${CXXCPP+set}
|
---|
938 | ac_cv_env_CXXCPP_value=$CXXCPP
|
---|
939 | ac_env_F77_set=${F77+set}
|
---|
940 | ac_env_F77_value=$F77
|
---|
941 | ac_cv_env_F77_set=${F77+set}
|
---|
942 | ac_cv_env_F77_value=$F77
|
---|
943 | ac_env_FFLAGS_set=${FFLAGS+set}
|
---|
944 | ac_env_FFLAGS_value=$FFLAGS
|
---|
945 | ac_cv_env_FFLAGS_set=${FFLAGS+set}
|
---|
946 | ac_cv_env_FFLAGS_value=$FFLAGS
|
---|
947 |
|
---|
948 | #
|
---|
949 | # Report the --help message.
|
---|
950 | #
|
---|
951 | if test "$ac_init_help" = "long"; then
|
---|
952 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
953 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
954 | cat <<_ACEOF
|
---|
955 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
956 |
|
---|
957 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
958 |
|
---|
959 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
960 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
961 |
|
---|
962 | Defaults for the options are specified in brackets.
|
---|
963 |
|
---|
964 | Configuration:
|
---|
965 | -h, --help display this help and exit
|
---|
966 | --help=short display options specific to this package
|
---|
967 | --help=recursive display the short help of all the included packages
|
---|
968 | -V, --version display version information and exit
|
---|
969 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
970 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
971 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
972 | -n, --no-create do not create output files
|
---|
973 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
974 |
|
---|
975 | _ACEOF
|
---|
976 |
|
---|
977 | cat <<_ACEOF
|
---|
978 | Installation directories:
|
---|
979 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
980 | [$ac_default_prefix]
|
---|
981 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
982 | [PREFIX]
|
---|
983 |
|
---|
984 | By default, \`make install' will install all the files in
|
---|
985 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
986 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
987 | for instance \`--prefix=\$HOME'.
|
---|
988 |
|
---|
989 | For better control, use the options below.
|
---|
990 |
|
---|
991 | Fine tuning of the installation directories:
|
---|
992 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
993 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
994 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
995 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
996 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
997 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
998 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
999 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1000 | --includedir=DIR C header files [PREFIX/include]
|
---|
1001 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1002 | --infodir=DIR info documentation [PREFIX/info]
|
---|
1003 | --mandir=DIR man documentation [PREFIX/man]
|
---|
1004 | _ACEOF
|
---|
1005 |
|
---|
1006 | cat <<\_ACEOF
|
---|
1007 |
|
---|
1008 | Program names:
|
---|
1009 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1010 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1011 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1012 |
|
---|
1013 | System types:
|
---|
1014 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1015 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
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 | --disable-dependency-tracking speeds up one-time build
|
---|
1027 | --enable-dependency-tracking do not reject slow dependency extractors
|
---|
1028 | --enable-shared[=PKGS]
|
---|
1029 | build shared libraries [default=yes]
|
---|
1030 | --enable-static[=PKGS]
|
---|
1031 | build static libraries [default=yes]
|
---|
1032 | --enable-fast-install[=PKGS]
|
---|
1033 | optimize for fast installation [default=yes]
|
---|
1034 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1035 |
|
---|
1036 | Optional Packages:
|
---|
1037 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1038 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1039 | --with-html-dir=PATH path to installed docs
|
---|
1040 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1041 | --with-pic try to use only PIC/non-PIC objects [default=use
|
---|
1042 | both]
|
---|
1043 | --with-tags[=TAGS]
|
---|
1044 | include additional configurations [automatic]
|
---|
1045 | --with-python=DIR Build Python bindings if found
|
---|
1046 | --with-crypto Add crypto support to exslt (on)
|
---|
1047 | --with-debug Add the debugging code (on)
|
---|
1048 | --with-mem-debug Add the memory debugging module (off)
|
---|
1049 | --with-debugger Add the debugging support (on)
|
---|
1050 | --with-libxml-prefix=PFX Specify location of libxml config
|
---|
1051 | --with-libxml-include-prefix=PFX Specify location of libxml headers
|
---|
1052 | --with-libxml-libs-prefix=PFX Specify location of libxml libs
|
---|
1053 | --with-libxml-src=DIR For libxml thats not installed yet (sets all three above)
|
---|
1054 | --with-plugins Add plugin extension support (on)
|
---|
1055 |
|
---|
1056 | Some influential environment variables:
|
---|
1057 | CC C compiler command
|
---|
1058 | CFLAGS C compiler flags
|
---|
1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1060 | nonstandard directory <lib dir>
|
---|
1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
1062 | headers in a nonstandard directory <include dir>
|
---|
1063 | CPP C preprocessor
|
---|
1064 | CXX C++ compiler command
|
---|
1065 | CXXFLAGS C++ compiler flags
|
---|
1066 | CXXCPP C++ preprocessor
|
---|
1067 | F77 Fortran 77 compiler command
|
---|
1068 | FFLAGS Fortran 77 compiler flags
|
---|
1069 |
|
---|
1070 | Use these variables to override the choices made by `configure' or to help
|
---|
1071 | it to find libraries and programs with nonstandard names/locations.
|
---|
1072 |
|
---|
1073 | _ACEOF
|
---|
1074 | fi
|
---|
1075 |
|
---|
1076 | if test "$ac_init_help" = "recursive"; then
|
---|
1077 | # If there are subdirs, report their specific --help.
|
---|
1078 | ac_popdir=`pwd`
|
---|
1079 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1080 | test -d $ac_dir || continue
|
---|
1081 | ac_builddir=.
|
---|
1082 |
|
---|
1083 | if test "$ac_dir" != .; then
|
---|
1084 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
1085 | # A "../" for each directory in $ac_dir_suffix.
|
---|
1086 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
1087 | else
|
---|
1088 | ac_dir_suffix= ac_top_builddir=
|
---|
1089 | fi
|
---|
1090 |
|
---|
1091 | case $srcdir in
|
---|
1092 | .) # No --srcdir option. We are building in place.
|
---|
1093 | ac_srcdir=.
|
---|
1094 | if test -z "$ac_top_builddir"; then
|
---|
1095 | ac_top_srcdir=.
|
---|
1096 | else
|
---|
1097 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
1098 | fi ;;
|
---|
1099 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
1100 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1101 | ac_top_srcdir=$srcdir ;;
|
---|
1102 | *) # Relative path.
|
---|
1103 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
1104 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
1105 | esac
|
---|
1106 |
|
---|
1107 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
1108 | # the directories may not exist.
|
---|
1109 | case `pwd` in
|
---|
1110 | .) ac_abs_builddir="$ac_dir";;
|
---|
1111 | *)
|
---|
1112 | case "$ac_dir" in
|
---|
1113 | .) ac_abs_builddir=`pwd`;;
|
---|
1114 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
1115 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
1116 | esac;;
|
---|
1117 | esac
|
---|
1118 | case $ac_abs_builddir in
|
---|
1119 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
1120 | *)
|
---|
1121 | case ${ac_top_builddir}. in
|
---|
1122 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
1123 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
1124 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
1125 | esac;;
|
---|
1126 | esac
|
---|
1127 | case $ac_abs_builddir in
|
---|
1128 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
1129 | *)
|
---|
1130 | case $ac_srcdir in
|
---|
1131 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
1132 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
1133 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
1134 | esac;;
|
---|
1135 | esac
|
---|
1136 | case $ac_abs_builddir in
|
---|
1137 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
1138 | *)
|
---|
1139 | case $ac_top_srcdir in
|
---|
1140 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
1141 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
1142 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
1143 | esac;;
|
---|
1144 | esac
|
---|
1145 |
|
---|
1146 | cd $ac_dir
|
---|
1147 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
1148 | if test -f $ac_srcdir/configure.gnu; then
|
---|
1149 | echo
|
---|
1150 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
1151 | elif test -f $ac_srcdir/configure; then
|
---|
1152 | echo
|
---|
1153 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
1154 | elif test -f $ac_srcdir/configure.ac ||
|
---|
1155 | test -f $ac_srcdir/configure.in; then
|
---|
1156 | echo
|
---|
1157 | $ac_configure --help
|
---|
1158 | else
|
---|
1159 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1160 | fi
|
---|
1161 | cd $ac_popdir
|
---|
1162 | done
|
---|
1163 | fi
|
---|
1164 |
|
---|
1165 | test -n "$ac_init_help" && exit 0
|
---|
1166 | if $ac_init_version; then
|
---|
1167 | cat <<\_ACEOF
|
---|
1168 |
|
---|
1169 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
1170 | This configure script is free software; the Free Software Foundation
|
---|
1171 | gives unlimited permission to copy, distribute and modify it.
|
---|
1172 | _ACEOF
|
---|
1173 | exit 0
|
---|
1174 | fi
|
---|
1175 | exec 5>config.log
|
---|
1176 | cat >&5 <<_ACEOF
|
---|
1177 | This file contains any messages produced by compilers while
|
---|
1178 | running configure, to aid debugging if configure makes a mistake.
|
---|
1179 |
|
---|
1180 | It was created by $as_me, which was
|
---|
1181 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
1182 |
|
---|
1183 | $ $0 $@
|
---|
1184 |
|
---|
1185 | _ACEOF
|
---|
1186 | {
|
---|
1187 | cat <<_ASUNAME
|
---|
1188 | ## --------- ##
|
---|
1189 | ## Platform. ##
|
---|
1190 | ## --------- ##
|
---|
1191 |
|
---|
1192 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1193 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1194 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1195 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1196 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1197 |
|
---|
1198 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1199 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1200 |
|
---|
1201 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1202 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1203 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1204 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1205 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1206 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1207 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1208 |
|
---|
1209 | _ASUNAME
|
---|
1210 |
|
---|
1211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1212 | for as_dir in $PATH
|
---|
1213 | do
|
---|
1214 | IFS=$as_save_IFS
|
---|
1215 | test -z "$as_dir" && as_dir=.
|
---|
1216 | echo "PATH: $as_dir"
|
---|
1217 | done
|
---|
1218 |
|
---|
1219 | } >&5
|
---|
1220 |
|
---|
1221 | cat >&5 <<_ACEOF
|
---|
1222 |
|
---|
1223 |
|
---|
1224 | ## ----------- ##
|
---|
1225 | ## Core tests. ##
|
---|
1226 | ## ----------- ##
|
---|
1227 |
|
---|
1228 | _ACEOF
|
---|
1229 |
|
---|
1230 |
|
---|
1231 | # Keep a trace of the command line.
|
---|
1232 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1233 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1234 | # Also quote any args containing shell meta-characters.
|
---|
1235 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1236 | ac_configure_args=
|
---|
1237 | ac_configure_args0=
|
---|
1238 | ac_configure_args1=
|
---|
1239 | ac_sep=
|
---|
1240 | ac_must_keep_next=false
|
---|
1241 | for ac_pass in 1 2
|
---|
1242 | do
|
---|
1243 | for ac_arg
|
---|
1244 | do
|
---|
1245 | case $ac_arg in
|
---|
1246 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1247 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1248 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1249 | continue ;;
|
---|
1250 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1251 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1252 | esac
|
---|
1253 | case $ac_pass in
|
---|
1254 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1255 | 2)
|
---|
1256 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1257 | if test $ac_must_keep_next = true; then
|
---|
1258 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1259 | else
|
---|
1260 | case $ac_arg in
|
---|
1261 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1262 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1263 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1264 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1265 | case "$ac_configure_args0 " in
|
---|
1266 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1267 | esac
|
---|
1268 | ;;
|
---|
1269 | -* ) ac_must_keep_next=true ;;
|
---|
1270 | esac
|
---|
1271 | fi
|
---|
1272 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1273 | # Get rid of the leading space.
|
---|
1274 | ac_sep=" "
|
---|
1275 | ;;
|
---|
1276 | esac
|
---|
1277 | done
|
---|
1278 | done
|
---|
1279 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1280 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1281 |
|
---|
1282 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1283 | # config.log. We remove comments because anyway the quotes in there
|
---|
1284 | # would cause problems or look ugly.
|
---|
1285 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1286 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1287 | trap 'exit_status=$?
|
---|
1288 | # Save into config.log some information that might help in debugging.
|
---|
1289 | {
|
---|
1290 | echo
|
---|
1291 |
|
---|
1292 | cat <<\_ASBOX
|
---|
1293 | ## ---------------- ##
|
---|
1294 | ## Cache variables. ##
|
---|
1295 | ## ---------------- ##
|
---|
1296 | _ASBOX
|
---|
1297 | echo
|
---|
1298 | # The following way of writing the cache mishandles newlines in values,
|
---|
1299 | {
|
---|
1300 | (set) 2>&1 |
|
---|
1301 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1302 | *ac_space=\ *)
|
---|
1303 | sed -n \
|
---|
1304 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1305 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1306 | ;;
|
---|
1307 | *)
|
---|
1308 | sed -n \
|
---|
1309 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1310 | ;;
|
---|
1311 | esac;
|
---|
1312 | }
|
---|
1313 | echo
|
---|
1314 |
|
---|
1315 | cat <<\_ASBOX
|
---|
1316 | ## ----------------- ##
|
---|
1317 | ## Output variables. ##
|
---|
1318 | ## ----------------- ##
|
---|
1319 | _ASBOX
|
---|
1320 | echo
|
---|
1321 | for ac_var in $ac_subst_vars
|
---|
1322 | do
|
---|
1323 | eval ac_val=$`echo $ac_var`
|
---|
1324 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1325 | done | sort
|
---|
1326 | echo
|
---|
1327 |
|
---|
1328 | if test -n "$ac_subst_files"; then
|
---|
1329 | cat <<\_ASBOX
|
---|
1330 | ## ------------- ##
|
---|
1331 | ## Output files. ##
|
---|
1332 | ## ------------- ##
|
---|
1333 | _ASBOX
|
---|
1334 | echo
|
---|
1335 | for ac_var in $ac_subst_files
|
---|
1336 | do
|
---|
1337 | eval ac_val=$`echo $ac_var`
|
---|
1338 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1339 | done | sort
|
---|
1340 | echo
|
---|
1341 | fi
|
---|
1342 |
|
---|
1343 | if test -s confdefs.h; then
|
---|
1344 | cat <<\_ASBOX
|
---|
1345 | ## ----------- ##
|
---|
1346 | ## confdefs.h. ##
|
---|
1347 | ## ----------- ##
|
---|
1348 | _ASBOX
|
---|
1349 | echo
|
---|
1350 | sed "/^$/d" confdefs.h | sort
|
---|
1351 | echo
|
---|
1352 | fi
|
---|
1353 | test "$ac_signal" != 0 &&
|
---|
1354 | echo "$as_me: caught signal $ac_signal"
|
---|
1355 | echo "$as_me: exit $exit_status"
|
---|
1356 | } >&5
|
---|
1357 | rm -f core *.core &&
|
---|
1358 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1359 | exit $exit_status
|
---|
1360 | ' 0
|
---|
1361 | for ac_signal in 1 2 13 15; do
|
---|
1362 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1363 | done
|
---|
1364 | ac_signal=0
|
---|
1365 |
|
---|
1366 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1367 | rm -rf conftest* confdefs.h
|
---|
1368 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1369 | echo >confdefs.h
|
---|
1370 |
|
---|
1371 | # Predefined preprocessor variables.
|
---|
1372 |
|
---|
1373 | cat >>confdefs.h <<_ACEOF
|
---|
1374 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1375 | _ACEOF
|
---|
1376 |
|
---|
1377 |
|
---|
1378 | cat >>confdefs.h <<_ACEOF
|
---|
1379 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1380 | _ACEOF
|
---|
1381 |
|
---|
1382 |
|
---|
1383 | cat >>confdefs.h <<_ACEOF
|
---|
1384 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1385 | _ACEOF
|
---|
1386 |
|
---|
1387 |
|
---|
1388 | cat >>confdefs.h <<_ACEOF
|
---|
1389 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1390 | _ACEOF
|
---|
1391 |
|
---|
1392 |
|
---|
1393 | cat >>confdefs.h <<_ACEOF
|
---|
1394 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1395 | _ACEOF
|
---|
1396 |
|
---|
1397 |
|
---|
1398 | # Let the site file select an alternate cache file if it wants to.
|
---|
1399 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1400 | if test -z "$CONFIG_SITE"; then
|
---|
1401 | if test "x$prefix" != xNONE; then
|
---|
1402 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1403 | else
|
---|
1404 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1405 | fi
|
---|
1406 | fi
|
---|
1407 | for ac_site_file in $CONFIG_SITE; do
|
---|
1408 | if test -r "$ac_site_file"; then
|
---|
1409 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1410 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1411 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1412 | . "$ac_site_file"
|
---|
1413 | fi
|
---|
1414 | done
|
---|
1415 |
|
---|
1416 | if test -r "$cache_file"; then
|
---|
1417 | # Some versions of bash will fail to source /dev/null (special
|
---|
1418 | # files actually), so we avoid doing that.
|
---|
1419 | if test -f "$cache_file"; then
|
---|
1420 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1421 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1422 | case $cache_file in
|
---|
1423 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1424 | *) . ./$cache_file;;
|
---|
1425 | esac
|
---|
1426 | fi
|
---|
1427 | else
|
---|
1428 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1429 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1430 | >$cache_file
|
---|
1431 | fi
|
---|
1432 |
|
---|
1433 | # Check that the precious variables saved in the cache have kept the same
|
---|
1434 | # value.
|
---|
1435 | ac_cache_corrupted=false
|
---|
1436 | for ac_var in `(set) 2>&1 |
|
---|
1437 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1438 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1439 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1440 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1441 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1442 | case $ac_old_set,$ac_new_set in
|
---|
1443 | set,)
|
---|
1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1445 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1446 | ac_cache_corrupted=: ;;
|
---|
1447 | ,set)
|
---|
1448 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1449 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1450 | ac_cache_corrupted=: ;;
|
---|
1451 | ,);;
|
---|
1452 | *)
|
---|
1453 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1454 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1455 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1456 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1457 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1458 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1459 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1460 | ac_cache_corrupted=:
|
---|
1461 | fi;;
|
---|
1462 | esac
|
---|
1463 | # Pass precious variables to config.status.
|
---|
1464 | if test "$ac_new_set" = set; then
|
---|
1465 | case $ac_new_val in
|
---|
1466 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1467 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1468 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1469 | esac
|
---|
1470 | case " $ac_configure_args " in
|
---|
1471 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1472 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1473 | esac
|
---|
1474 | fi
|
---|
1475 | done
|
---|
1476 | if $ac_cache_corrupted; then
|
---|
1477 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1478 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1479 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1480 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1481 | { (exit 1); exit 1; }; }
|
---|
1482 | fi
|
---|
1483 |
|
---|
1484 | ac_ext=c
|
---|
1485 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1489 |
|
---|
1490 |
|
---|
1491 |
|
---|
1492 |
|
---|
1493 |
|
---|
1494 |
|
---|
1495 |
|
---|
1496 |
|
---|
1497 |
|
---|
1498 |
|
---|
1499 |
|
---|
1500 |
|
---|
1501 |
|
---|
1502 |
|
---|
1503 |
|
---|
1504 |
|
---|
1505 |
|
---|
1506 |
|
---|
1507 |
|
---|
1508 | ac_config_headers="$ac_config_headers config.h"
|
---|
1509 |
|
---|
1510 | ac_aux_dir=
|
---|
1511 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
1512 | if test -f $ac_dir/install-sh; then
|
---|
1513 | ac_aux_dir=$ac_dir
|
---|
1514 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1515 | break
|
---|
1516 | elif test -f $ac_dir/install.sh; then
|
---|
1517 | ac_aux_dir=$ac_dir
|
---|
1518 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1519 | break
|
---|
1520 | elif test -f $ac_dir/shtool; then
|
---|
1521 | ac_aux_dir=$ac_dir
|
---|
1522 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
1523 | break
|
---|
1524 | fi
|
---|
1525 | done
|
---|
1526 | if test -z "$ac_aux_dir"; then
|
---|
1527 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
1528 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
1529 | { (exit 1); exit 1; }; }
|
---|
1530 | fi
|
---|
1531 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
1532 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
1533 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
1534 |
|
---|
1535 | # Make sure we can run config.sub.
|
---|
1536 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
1537 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
1538 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
1539 | { (exit 1); exit 1; }; }
|
---|
1540 |
|
---|
1541 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
1542 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
1543 | if test "${ac_cv_build+set}" = set; then
|
---|
1544 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1545 | else
|
---|
1546 | ac_cv_build_alias=$build_alias
|
---|
1547 | test -z "$ac_cv_build_alias" &&
|
---|
1548 | ac_cv_build_alias=`$ac_config_guess`
|
---|
1549 | test -z "$ac_cv_build_alias" &&
|
---|
1550 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
1551 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
1552 | { (exit 1); exit 1; }; }
|
---|
1553 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
1554 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
1555 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
1556 | { (exit 1); exit 1; }; }
|
---|
1557 |
|
---|
1558 | fi
|
---|
1559 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
1560 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
1561 | build=$ac_cv_build
|
---|
1562 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1563 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1564 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1565 |
|
---|
1566 |
|
---|
1567 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
1568 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
1569 | if test "${ac_cv_host+set}" = set; then
|
---|
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1571 | else
|
---|
1572 | ac_cv_host_alias=$host_alias
|
---|
1573 | test -z "$ac_cv_host_alias" &&
|
---|
1574 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
1575 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
1576 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
1577 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
1578 | { (exit 1); exit 1; }; }
|
---|
1579 |
|
---|
1580 | fi
|
---|
1581 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
1582 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
1583 | host=$ac_cv_host
|
---|
1584 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1585 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1586 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1587 |
|
---|
1588 |
|
---|
1589 |
|
---|
1590 | LIBXSLT_MAJOR_VERSION=1
|
---|
1591 | LIBXSLT_MINOR_VERSION=1
|
---|
1592 | LIBXSLT_MICRO_VERSION=22
|
---|
1593 | PACKAGE=libxslt
|
---|
1594 | LIBEXSLT_MAJOR_VERSION=0
|
---|
1595 | LIBEXSLT_MINOR_VERSION=8
|
---|
1596 | LIBEXSLT_MICRO_VERSION=13
|
---|
1597 | LIBXML_REQUIRED_VERSION=2.6.27
|
---|
1598 |
|
---|
1599 |
|
---|
1600 | LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION
|
---|
1601 | LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIBXSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION
|
---|
1602 |
|
---|
1603 | LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VERSION \* 100 + $LIBXSLT_MICRO_VERSION`
|
---|
1604 | LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION
|
---|
1605 |
|
---|
1606 | if test -f CVS/Entries; then
|
---|
1607 | extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
|
---|
1608 | echo extra=$extra
|
---|
1609 | if test "$extra" != ""
|
---|
1610 | then
|
---|
1611 | LIBXSLT_VERSION_EXTRA="-CVS$extra"
|
---|
1612 | fi
|
---|
1613 | else if test -d .svn ; then
|
---|
1614 | extra=`svn info | grep Revision | sed 's+Revision: ++'`
|
---|
1615 | echo extra=$extra
|
---|
1616 | if test "$extra" != ""
|
---|
1617 | then
|
---|
1618 | LIBXSLT_VERSION_EXTRA="-SVN$extra"
|
---|
1619 | fi
|
---|
1620 | fi
|
---|
1621 | fi
|
---|
1622 |
|
---|
1623 |
|
---|
1624 |
|
---|
1625 |
|
---|
1626 |
|
---|
1627 |
|
---|
1628 |
|
---|
1629 |
|
---|
1630 |
|
---|
1631 |
|
---|
1632 |
|
---|
1633 | LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO_VERSION
|
---|
1634 | LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION
|
---|
1635 |
|
---|
1636 | LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION`
|
---|
1637 |
|
---|
1638 | if test -f CVS/Entries; then
|
---|
1639 | LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
|
---|
1640 | fi
|
---|
1641 |
|
---|
1642 |
|
---|
1643 |
|
---|
1644 |
|
---|
1645 |
|
---|
1646 |
|
---|
1647 |
|
---|
1648 |
|
---|
1649 |
|
---|
1650 | VERSION=${LIBXSLT_VERSION}
|
---|
1651 |
|
---|
1652 | am__api_version="1.9"
|
---|
1653 | # Find a good install program. We prefer a C program (faster),
|
---|
1654 | # so one script is as good as another. But avoid the broken or
|
---|
1655 | # incompatible versions:
|
---|
1656 | # SysV /etc/install, /usr/sbin/install
|
---|
1657 | # SunOS /usr/etc/install
|
---|
1658 | # IRIX /sbin/install
|
---|
1659 | # AIX /bin/install
|
---|
1660 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
1661 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1662 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1663 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1664 | # OS/2's system install, which has a completely different semantic
|
---|
1665 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1666 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
1667 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
1668 | if test -z "$INSTALL"; then
|
---|
1669 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1670 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1671 | else
|
---|
1672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1673 | for as_dir in $PATH
|
---|
1674 | do
|
---|
1675 | IFS=$as_save_IFS
|
---|
1676 | test -z "$as_dir" && as_dir=.
|
---|
1677 | # Account for people who put trailing slashes in PATH elements.
|
---|
1678 | case $as_dir/ in
|
---|
1679 | ./ | .// | /cC/* | \
|
---|
1680 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
1681 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
1682 | /usr/ucb/* ) ;;
|
---|
1683 | *)
|
---|
1684 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1685 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1686 | # by default.
|
---|
1687 | for ac_prog in ginstall scoinst install; do
|
---|
1688 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1689 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
1690 | if test $ac_prog = install &&
|
---|
1691 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1692 | # AIX install. It has an incompatible calling convention.
|
---|
1693 | :
|
---|
1694 | elif test $ac_prog = install &&
|
---|
1695 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1696 | # program-specific install script used by HP pwplus--don't use.
|
---|
1697 | :
|
---|
1698 | else
|
---|
1699 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
1700 | break 3
|
---|
1701 | fi
|
---|
1702 | fi
|
---|
1703 | done
|
---|
1704 | done
|
---|
1705 | ;;
|
---|
1706 | esac
|
---|
1707 | done
|
---|
1708 |
|
---|
1709 |
|
---|
1710 | fi
|
---|
1711 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1712 | INSTALL=$ac_cv_path_install
|
---|
1713 | else
|
---|
1714 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1715 | # path for INSTALL within a source directory, because that will
|
---|
1716 | # break other packages using the cache if that directory is
|
---|
1717 | # removed, or if the path is relative.
|
---|
1718 | INSTALL=$ac_install_sh
|
---|
1719 | fi
|
---|
1720 | fi
|
---|
1721 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
1722 | echo "${ECHO_T}$INSTALL" >&6
|
---|
1723 |
|
---|
1724 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1725 | # It thinks the first close brace ends the variable substitution.
|
---|
1726 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1727 |
|
---|
1728 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
1729 |
|
---|
1730 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1731 |
|
---|
1732 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
---|
1733 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
---|
1734 | # Just in case
|
---|
1735 | sleep 1
|
---|
1736 | echo timestamp > conftest.file
|
---|
1737 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1738 | # arguments. Must try -L first in case configure is actually a
|
---|
1739 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1740 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1741 | # directory).
|
---|
1742 | if (
|
---|
1743 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
---|
1744 | if test "$*" = "X"; then
|
---|
1745 | # -L didn't work.
|
---|
1746 | set X `ls -t $srcdir/configure conftest.file`
|
---|
1747 | fi
|
---|
1748 | rm -f conftest.file
|
---|
1749 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
1750 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
1751 |
|
---|
1752 | # If neither matched, then we have a broken ls. This can happen
|
---|
1753 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1754 | # broken ls alias from the environment. This has actually
|
---|
1755 | # happened. Such a system could not be considered "sane".
|
---|
1756 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1757 | alias in your environment" >&5
|
---|
1758 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1759 | alias in your environment" >&2;}
|
---|
1760 | { (exit 1); exit 1; }; }
|
---|
1761 | fi
|
---|
1762 |
|
---|
1763 | test "$2" = conftest.file
|
---|
1764 | )
|
---|
1765 | then
|
---|
1766 | # Ok.
|
---|
1767 | :
|
---|
1768 | else
|
---|
1769 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
---|
1770 | Check your system clock" >&5
|
---|
1771 | echo "$as_me: error: newly created file is older than distributed files!
|
---|
1772 | Check your system clock" >&2;}
|
---|
1773 | { (exit 1); exit 1; }; }
|
---|
1774 | fi
|
---|
1775 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1776 | echo "${ECHO_T}yes" >&6
|
---|
1777 | test "$program_prefix" != NONE &&
|
---|
1778 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
1779 | # Use a double $ so make ignores it.
|
---|
1780 | test "$program_suffix" != NONE &&
|
---|
1781 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
1782 | # Double any \ or $. echo might interpret backslashes.
|
---|
1783 | # By default was `s,x,x', remove it if useless.
|
---|
1784 | cat <<\_ACEOF >conftest.sed
|
---|
1785 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
1786 | _ACEOF
|
---|
1787 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
1788 | rm conftest.sed
|
---|
1789 |
|
---|
1790 | # expand $ac_aux_dir to an absolute path
|
---|
1791 | am_aux_dir=`cd $ac_aux_dir && pwd`
|
---|
1792 |
|
---|
1793 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
---|
1794 | # Use eval to expand $SHELL
|
---|
1795 | if eval "$MISSING --run true"; then
|
---|
1796 | am_missing_run="$MISSING --run "
|
---|
1797 | else
|
---|
1798 | am_missing_run=
|
---|
1799 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
---|
1800 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
---|
1801 | fi
|
---|
1802 |
|
---|
1803 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
---|
1804 | # We used to keeping the `.' as first argument, in order to
|
---|
1805 | # allow $(mkdir_p) to be used without argument. As in
|
---|
1806 | # $(mkdir_p) $(somedir)
|
---|
1807 | # where $(somedir) is conditionally defined. However this is wrong
|
---|
1808 | # for two reasons:
|
---|
1809 | # 1. if the package is installed by a user who cannot write `.'
|
---|
1810 | # make install will fail,
|
---|
1811 | # 2. the above comment should most certainly read
|
---|
1812 | # $(mkdir_p) $(DESTDIR)$(somedir)
|
---|
1813 | # so it does not work when $(somedir) is undefined and
|
---|
1814 | # $(DESTDIR) is not.
|
---|
1815 | # To support the latter case, we have to write
|
---|
1816 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
---|
1817 | # so the `.' trick is pointless.
|
---|
1818 | mkdir_p='mkdir -p --'
|
---|
1819 | else
|
---|
1820 | # On NextStep and OpenStep, the `mkdir' command does not
|
---|
1821 | # recognize any option. It will interpret all options as
|
---|
1822 | # directories to create, and then abort because `.' already
|
---|
1823 | # exists.
|
---|
1824 | for d in ./-p ./--version;
|
---|
1825 | do
|
---|
1826 | test -d $d && rmdir $d
|
---|
1827 | done
|
---|
1828 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
---|
1829 | if test -f "$ac_aux_dir/mkinstalldirs"; then
|
---|
1830 | mkdir_p='$(mkinstalldirs)'
|
---|
1831 | else
|
---|
1832 | mkdir_p='$(install_sh) -d'
|
---|
1833 | fi
|
---|
1834 | fi
|
---|
1835 |
|
---|
1836 | for ac_prog in gawk mawk nawk awk
|
---|
1837 | do
|
---|
1838 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1839 | set dummy $ac_prog; ac_word=$2
|
---|
1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1842 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
1843 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1844 | else
|
---|
1845 | if test -n "$AWK"; then
|
---|
1846 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
1847 | else
|
---|
1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1849 | for as_dir in $PATH
|
---|
1850 | do
|
---|
1851 | IFS=$as_save_IFS
|
---|
1852 | test -z "$as_dir" && as_dir=.
|
---|
1853 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1855 | ac_cv_prog_AWK="$ac_prog"
|
---|
1856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1857 | break 2
|
---|
1858 | fi
|
---|
1859 | done
|
---|
1860 | done
|
---|
1861 |
|
---|
1862 | fi
|
---|
1863 | fi
|
---|
1864 | AWK=$ac_cv_prog_AWK
|
---|
1865 | if test -n "$AWK"; then
|
---|
1866 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
1867 | echo "${ECHO_T}$AWK" >&6
|
---|
1868 | else
|
---|
1869 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1870 | echo "${ECHO_T}no" >&6
|
---|
1871 | fi
|
---|
1872 |
|
---|
1873 | test -n "$AWK" && break
|
---|
1874 | done
|
---|
1875 |
|
---|
1876 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
1877 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
1878 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
1879 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
1880 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1881 | else
|
---|
1882 | cat >conftest.make <<\_ACEOF
|
---|
1883 | all:
|
---|
1884 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
1885 | _ACEOF
|
---|
1886 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1887 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
1888 | if test -n "$ac_maketemp"; then
|
---|
1889 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1890 | else
|
---|
1891 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1892 | fi
|
---|
1893 | rm -f conftest.make
|
---|
1894 | fi
|
---|
1895 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1896 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1897 | echo "${ECHO_T}yes" >&6
|
---|
1898 | SET_MAKE=
|
---|
1899 | else
|
---|
1900 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1901 | echo "${ECHO_T}no" >&6
|
---|
1902 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1903 | fi
|
---|
1904 |
|
---|
1905 | rm -rf .tst 2>/dev/null
|
---|
1906 | mkdir .tst 2>/dev/null
|
---|
1907 | if test -d .tst; then
|
---|
1908 | am__leading_dot=.
|
---|
1909 | else
|
---|
1910 | am__leading_dot=_
|
---|
1911 | fi
|
---|
1912 | rmdir .tst 2>/dev/null
|
---|
1913 |
|
---|
1914 | # test to see if srcdir already configured
|
---|
1915 | if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
---|
1916 | test -f $srcdir/config.status; then
|
---|
1917 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
---|
1918 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
---|
1919 | { (exit 1); exit 1; }; }
|
---|
1920 | fi
|
---|
1921 |
|
---|
1922 | # test whether we have cygpath
|
---|
1923 | if test -z "$CYGPATH_W"; then
|
---|
1924 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
1925 | CYGPATH_W='cygpath -w'
|
---|
1926 | else
|
---|
1927 | CYGPATH_W=echo
|
---|
1928 | fi
|
---|
1929 | fi
|
---|
1930 |
|
---|
1931 |
|
---|
1932 | # Define the identity of the package.
|
---|
1933 | PACKAGE=$PACKAGE
|
---|
1934 | VERSION=$VERSION
|
---|
1935 |
|
---|
1936 |
|
---|
1937 | cat >>confdefs.h <<_ACEOF
|
---|
1938 | #define PACKAGE "$PACKAGE"
|
---|
1939 | _ACEOF
|
---|
1940 |
|
---|
1941 |
|
---|
1942 | cat >>confdefs.h <<_ACEOF
|
---|
1943 | #define VERSION "$VERSION"
|
---|
1944 | _ACEOF
|
---|
1945 |
|
---|
1946 | # Some tools Automake needs.
|
---|
1947 |
|
---|
1948 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
1949 |
|
---|
1950 |
|
---|
1951 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
1952 |
|
---|
1953 |
|
---|
1954 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
1955 |
|
---|
1956 |
|
---|
1957 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
1958 |
|
---|
1959 |
|
---|
1960 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
1961 |
|
---|
1962 | install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
---|
1963 |
|
---|
1964 | # Installed binaries are usually stripped using `strip' when the user
|
---|
1965 | # run `make install-strip'. However `strip' might not be the right
|
---|
1966 | # tool to use in cross-compilation environments, therefore Automake
|
---|
1967 | # will honor the `STRIP' environment variable to overrule this program.
|
---|
1968 | if test "$cross_compiling" != no; then
|
---|
1969 | if test -n "$ac_tool_prefix"; then
|
---|
1970 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1971 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1972 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1974 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
1975 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1976 | else
|
---|
1977 | if test -n "$STRIP"; then
|
---|
1978 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1979 | else
|
---|
1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1981 | for as_dir in $PATH
|
---|
1982 | do
|
---|
1983 | IFS=$as_save_IFS
|
---|
1984 | test -z "$as_dir" && as_dir=.
|
---|
1985 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1987 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1989 | break 2
|
---|
1990 | fi
|
---|
1991 | done
|
---|
1992 | done
|
---|
1993 |
|
---|
1994 | fi
|
---|
1995 | fi
|
---|
1996 | STRIP=$ac_cv_prog_STRIP
|
---|
1997 | if test -n "$STRIP"; then
|
---|
1998 | echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
1999 | echo "${ECHO_T}$STRIP" >&6
|
---|
2000 | else
|
---|
2001 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2002 | echo "${ECHO_T}no" >&6
|
---|
2003 | fi
|
---|
2004 |
|
---|
2005 | fi
|
---|
2006 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2007 | ac_ct_STRIP=$STRIP
|
---|
2008 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2009 | set dummy strip; ac_word=$2
|
---|
2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2012 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2014 | else
|
---|
2015 | if test -n "$ac_ct_STRIP"; then
|
---|
2016 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
2017 | else
|
---|
2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2019 | for as_dir in $PATH
|
---|
2020 | do
|
---|
2021 | IFS=$as_save_IFS
|
---|
2022 | test -z "$as_dir" && as_dir=.
|
---|
2023 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2025 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2027 | break 2
|
---|
2028 | fi
|
---|
2029 | done
|
---|
2030 | done
|
---|
2031 |
|
---|
2032 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
---|
2033 | fi
|
---|
2034 | fi
|
---|
2035 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
2036 | if test -n "$ac_ct_STRIP"; then
|
---|
2037 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
2038 | echo "${ECHO_T}$ac_ct_STRIP" >&6
|
---|
2039 | else
|
---|
2040 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2041 | echo "${ECHO_T}no" >&6
|
---|
2042 | fi
|
---|
2043 |
|
---|
2044 | STRIP=$ac_ct_STRIP
|
---|
2045 | else
|
---|
2046 | STRIP="$ac_cv_prog_STRIP"
|
---|
2047 | fi
|
---|
2048 |
|
---|
2049 | fi
|
---|
2050 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
---|
2051 |
|
---|
2052 | # We need awk for the "check" target. The system "awk" is bad on
|
---|
2053 | # some platforms.
|
---|
2054 | # Always define AMTAR for backward compatibility.
|
---|
2055 |
|
---|
2056 | AMTAR=${AMTAR-"${am_missing_run}tar"}
|
---|
2057 |
|
---|
2058 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
---|
2059 |
|
---|
2060 |
|
---|
2061 |
|
---|
2062 |
|
---|
2063 |
|
---|
2064 |
|
---|
2065 | # AM_MAINTAINER_MODE
|
---|
2066 |
|
---|
2067 |
|
---|
2068 | # Check whether --with-html-dir or --without-html-dir was given.
|
---|
2069 | if test "${with_html_dir+set}" = set; then
|
---|
2070 | withval="$with_html_dir"
|
---|
2071 |
|
---|
2072 | fi;
|
---|
2073 |
|
---|
2074 |
|
---|
2075 | if test "x$with_html_dir" = "x" ; then
|
---|
2076 | HTML_DIR='$(prefix)/doc'
|
---|
2077 | else
|
---|
2078 | HTML_DIR=$with_html_dir
|
---|
2079 | fi
|
---|
2080 |
|
---|
2081 |
|
---|
2082 |
|
---|
2083 | DEPDIR="${am__leading_dot}deps"
|
---|
2084 |
|
---|
2085 | ac_config_commands="$ac_config_commands depfiles"
|
---|
2086 |
|
---|
2087 |
|
---|
2088 | am_make=${MAKE-make}
|
---|
2089 | cat > confinc << 'END'
|
---|
2090 | am__doit:
|
---|
2091 | @echo done
|
---|
2092 | .PHONY: am__doit
|
---|
2093 | END
|
---|
2094 | # If we don't find an include directive, just comment out the code.
|
---|
2095 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
---|
2096 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
---|
2097 | am__include="#"
|
---|
2098 | am__quote=
|
---|
2099 | _am_result=none
|
---|
2100 | # First try GNU make style include.
|
---|
2101 | echo "include confinc" > confmf
|
---|
2102 | # We grep out `Entering directory' and `Leaving directory'
|
---|
2103 | # messages which can occur if `w' ends up in MAKEFLAGS.
|
---|
2104 | # In particular we don't look at `^make:' because GNU make might
|
---|
2105 | # be invoked under some other name (usually "gmake"), in which
|
---|
2106 | # case it prints its new name instead of `make'.
|
---|
2107 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
---|
2108 | am__include=include
|
---|
2109 | am__quote=
|
---|
2110 | _am_result=GNU
|
---|
2111 | fi
|
---|
2112 | # Now try BSD make style include.
|
---|
2113 | if test "$am__include" = "#"; then
|
---|
2114 | echo '.include "confinc"' > confmf
|
---|
2115 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
---|
2116 | am__include=.include
|
---|
2117 | am__quote="\""
|
---|
2118 | _am_result=BSD
|
---|
2119 | fi
|
---|
2120 | fi
|
---|
2121 |
|
---|
2122 |
|
---|
2123 | echo "$as_me:$LINENO: result: $_am_result" >&5
|
---|
2124 | echo "${ECHO_T}$_am_result" >&6
|
---|
2125 | rm -f confinc confmf
|
---|
2126 |
|
---|
2127 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
|
---|
2128 | if test "${enable_dependency_tracking+set}" = set; then
|
---|
2129 | enableval="$enable_dependency_tracking"
|
---|
2130 |
|
---|
2131 | fi;
|
---|
2132 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2133 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
2134 | AMDEPBACKSLASH='\'
|
---|
2135 | fi
|
---|
2136 |
|
---|
2137 |
|
---|
2138 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2139 | AMDEP_TRUE=
|
---|
2140 | AMDEP_FALSE='#'
|
---|
2141 | else
|
---|
2142 | AMDEP_TRUE='#'
|
---|
2143 | AMDEP_FALSE=
|
---|
2144 | fi
|
---|
2145 |
|
---|
2146 |
|
---|
2147 |
|
---|
2148 | ac_ext=c
|
---|
2149 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2153 | if test -n "$ac_tool_prefix"; then
|
---|
2154 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2155 | set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
|
---|
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2160 | else
|
---|
2161 | if test -n "$CC"; then
|
---|
2162 | ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
|
---|
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 | fi
|
---|
2179 | fi
|
---|
2180 | CC=$ac_cv_prog_CC
|
---|
2181 | if test -n "$CC"; then
|
---|
2182 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2183 | echo "${ECHO_T}$CC" >&6
|
---|
2184 | else
|
---|
2185 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2186 | echo "${ECHO_T}no" >&6
|
---|
2187 | fi
|
---|
2188 |
|
---|
2189 | fi
|
---|
2190 | if test -z "$ac_cv_prog_CC"; then
|
---|
2191 | ac_ct_CC=$CC
|
---|
2192 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2193 | set dummy gcc; ac_word=$2
|
---|
2194 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2196 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2197 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2198 | else
|
---|
2199 | if test -n "$ac_ct_CC"; then
|
---|
2200 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2201 | else
|
---|
2202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2203 | for as_dir in $PATH
|
---|
2204 | do
|
---|
2205 | IFS=$as_save_IFS
|
---|
2206 | test -z "$as_dir" && as_dir=.
|
---|
2207 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2209 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2211 | break 2
|
---|
2212 | fi
|
---|
2213 | done
|
---|
2214 | done
|
---|
2215 |
|
---|
2216 | fi
|
---|
2217 | fi
|
---|
2218 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2219 | if test -n "$ac_ct_CC"; then
|
---|
2220 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2221 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2222 | else
|
---|
2223 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2224 | echo "${ECHO_T}no" >&6
|
---|
2225 | fi
|
---|
2226 |
|
---|
2227 | CC=$ac_ct_CC
|
---|
2228 | else
|
---|
2229 | CC="$ac_cv_prog_CC"
|
---|
2230 | fi
|
---|
2231 |
|
---|
2232 | if test -z "$CC"; then
|
---|
2233 | if test -n "$ac_tool_prefix"; then
|
---|
2234 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2235 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2236 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2238 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2239 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2240 | else
|
---|
2241 | if test -n "$CC"; then
|
---|
2242 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2243 | else
|
---|
2244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2245 | for as_dir in $PATH
|
---|
2246 | do
|
---|
2247 | IFS=$as_save_IFS
|
---|
2248 | test -z "$as_dir" && as_dir=.
|
---|
2249 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2251 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2253 | break 2
|
---|
2254 | fi
|
---|
2255 | done
|
---|
2256 | done
|
---|
2257 |
|
---|
2258 | fi
|
---|
2259 | fi
|
---|
2260 | CC=$ac_cv_prog_CC
|
---|
2261 | if test -n "$CC"; then
|
---|
2262 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2263 | echo "${ECHO_T}$CC" >&6
|
---|
2264 | else
|
---|
2265 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2266 | echo "${ECHO_T}no" >&6
|
---|
2267 | fi
|
---|
2268 |
|
---|
2269 | fi
|
---|
2270 | if test -z "$ac_cv_prog_CC"; then
|
---|
2271 | ac_ct_CC=$CC
|
---|
2272 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2273 | set dummy cc; ac_word=$2
|
---|
2274 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2277 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2278 | else
|
---|
2279 | if test -n "$ac_ct_CC"; then
|
---|
2280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2281 | else
|
---|
2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2283 | for as_dir in $PATH
|
---|
2284 | do
|
---|
2285 | IFS=$as_save_IFS
|
---|
2286 | test -z "$as_dir" && as_dir=.
|
---|
2287 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2289 | ac_cv_prog_ac_ct_CC="cc"
|
---|
2290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2291 | break 2
|
---|
2292 | fi
|
---|
2293 | done
|
---|
2294 | done
|
---|
2295 |
|
---|
2296 | fi
|
---|
2297 | fi
|
---|
2298 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2299 | if test -n "$ac_ct_CC"; then
|
---|
2300 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2301 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2302 | else
|
---|
2303 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2304 | echo "${ECHO_T}no" >&6
|
---|
2305 | fi
|
---|
2306 |
|
---|
2307 | CC=$ac_ct_CC
|
---|
2308 | else
|
---|
2309 | CC="$ac_cv_prog_CC"
|
---|
2310 | fi
|
---|
2311 |
|
---|
2312 | fi
|
---|
2313 | if test -z "$CC"; then
|
---|
2314 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2315 | set dummy cc; ac_word=$2
|
---|
2316 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2318 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2320 | else
|
---|
2321 | if test -n "$CC"; then
|
---|
2322 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2323 | else
|
---|
2324 | ac_prog_rejected=no
|
---|
2325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2326 | for as_dir in $PATH
|
---|
2327 | do
|
---|
2328 | IFS=$as_save_IFS
|
---|
2329 | test -z "$as_dir" && as_dir=.
|
---|
2330 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2331 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2332 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2333 | ac_prog_rejected=yes
|
---|
2334 | continue
|
---|
2335 | fi
|
---|
2336 | ac_cv_prog_CC="cc"
|
---|
2337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2338 | break 2
|
---|
2339 | fi
|
---|
2340 | done
|
---|
2341 | done
|
---|
2342 |
|
---|
2343 | if test $ac_prog_rejected = yes; then
|
---|
2344 | # We found a bogon in the path, so make sure we never use it.
|
---|
2345 | set dummy $ac_cv_prog_CC
|
---|
2346 | shift
|
---|
2347 | if test $# != 0; then
|
---|
2348 | # We chose a different compiler from the bogus one.
|
---|
2349 | # However, it has the same basename, so the bogon will be chosen
|
---|
2350 | # first if we set CC to just the basename; use the full file name.
|
---|
2351 | shift
|
---|
2352 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2353 | fi
|
---|
2354 | fi
|
---|
2355 | fi
|
---|
2356 | fi
|
---|
2357 | CC=$ac_cv_prog_CC
|
---|
2358 | if test -n "$CC"; then
|
---|
2359 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2360 | echo "${ECHO_T}$CC" >&6
|
---|
2361 | else
|
---|
2362 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2363 | echo "${ECHO_T}no" >&6
|
---|
2364 | fi
|
---|
2365 |
|
---|
2366 | fi
|
---|
2367 | if test -z "$CC"; then
|
---|
2368 | if test -n "$ac_tool_prefix"; then
|
---|
2369 | for ac_prog in cl
|
---|
2370 | do
|
---|
2371 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2372 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2373 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2375 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2376 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2377 | else
|
---|
2378 | if test -n "$CC"; then
|
---|
2379 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2380 | else
|
---|
2381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2382 | for as_dir in $PATH
|
---|
2383 | do
|
---|
2384 | IFS=$as_save_IFS
|
---|
2385 | test -z "$as_dir" && as_dir=.
|
---|
2386 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2388 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2390 | break 2
|
---|
2391 | fi
|
---|
2392 | done
|
---|
2393 | done
|
---|
2394 |
|
---|
2395 | fi
|
---|
2396 | fi
|
---|
2397 | CC=$ac_cv_prog_CC
|
---|
2398 | if test -n "$CC"; then
|
---|
2399 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2400 | echo "${ECHO_T}$CC" >&6
|
---|
2401 | else
|
---|
2402 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2403 | echo "${ECHO_T}no" >&6
|
---|
2404 | fi
|
---|
2405 |
|
---|
2406 | test -n "$CC" && break
|
---|
2407 | done
|
---|
2408 | fi
|
---|
2409 | if test -z "$CC"; then
|
---|
2410 | ac_ct_CC=$CC
|
---|
2411 | for ac_prog in cl
|
---|
2412 | do
|
---|
2413 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2414 | set dummy $ac_prog; ac_word=$2
|
---|
2415 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2417 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2418 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2419 | else
|
---|
2420 | if test -n "$ac_ct_CC"; then
|
---|
2421 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2422 | else
|
---|
2423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2424 | for as_dir in $PATH
|
---|
2425 | do
|
---|
2426 | IFS=$as_save_IFS
|
---|
2427 | test -z "$as_dir" && as_dir=.
|
---|
2428 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2430 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2432 | break 2
|
---|
2433 | fi
|
---|
2434 | done
|
---|
2435 | done
|
---|
2436 |
|
---|
2437 | fi
|
---|
2438 | fi
|
---|
2439 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2440 | if test -n "$ac_ct_CC"; then
|
---|
2441 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2442 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2443 | else
|
---|
2444 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2445 | echo "${ECHO_T}no" >&6
|
---|
2446 | fi
|
---|
2447 |
|
---|
2448 | test -n "$ac_ct_CC" && break
|
---|
2449 | done
|
---|
2450 |
|
---|
2451 | CC=$ac_ct_CC
|
---|
2452 | fi
|
---|
2453 |
|
---|
2454 | fi
|
---|
2455 |
|
---|
2456 |
|
---|
2457 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2458 | See \`config.log' for more details." >&5
|
---|
2459 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2460 | See \`config.log' for more details." >&2;}
|
---|
2461 | { (exit 1); exit 1; }; }
|
---|
2462 |
|
---|
2463 | # Provide some information about the compiler.
|
---|
2464 | echo "$as_me:$LINENO:" \
|
---|
2465 | "checking for C compiler version" >&5
|
---|
2466 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2467 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2468 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2469 | ac_status=$?
|
---|
2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2471 | (exit $ac_status); }
|
---|
2472 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2473 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2474 | ac_status=$?
|
---|
2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2476 | (exit $ac_status); }
|
---|
2477 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2478 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2479 | ac_status=$?
|
---|
2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2481 | (exit $ac_status); }
|
---|
2482 |
|
---|
2483 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2484 | /* confdefs.h. */
|
---|
2485 | _ACEOF
|
---|
2486 | cat confdefs.h >>conftest.$ac_ext
|
---|
2487 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2488 | /* end confdefs.h. */
|
---|
2489 |
|
---|
2490 | int
|
---|
2491 | main ()
|
---|
2492 | {
|
---|
2493 |
|
---|
2494 | ;
|
---|
2495 | return 0;
|
---|
2496 | }
|
---|
2497 | _ACEOF
|
---|
2498 | ac_clean_files_save=$ac_clean_files
|
---|
2499 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2500 | # Try to create an executable without -o first, disregard a.out.
|
---|
2501 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2502 | # of exeext.
|
---|
2503 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
2504 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
2505 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2506 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
2507 | (eval $ac_link_default) 2>&5
|
---|
2508 | ac_status=$?
|
---|
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2510 | (exit $ac_status); }; then
|
---|
2511 | # Find the output, starting from the most likely. This scheme is
|
---|
2512 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
2513 | # resort.
|
---|
2514 |
|
---|
2515 | # Be careful to initialize this variable, since it used to be cached.
|
---|
2516 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
2517 | ac_cv_exeext=
|
---|
2518 | # b.out is created by i960 compilers.
|
---|
2519 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
2520 | do
|
---|
2521 | test -f "$ac_file" || continue
|
---|
2522 | case $ac_file in
|
---|
2523 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
2524 | ;;
|
---|
2525 | conftest.$ac_ext )
|
---|
2526 | # This is the source file.
|
---|
2527 | ;;
|
---|
2528 | [ab].out )
|
---|
2529 | # We found the default executable, but exeext='' is most
|
---|
2530 | # certainly right.
|
---|
2531 | break;;
|
---|
2532 | *.* )
|
---|
2533 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2534 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
2535 | # but it would be cool to find out if it's true. Does anybody
|
---|
2536 | # maintain Libtool? --akim.
|
---|
2537 | export ac_cv_exeext
|
---|
2538 | break;;
|
---|
2539 | * )
|
---|
2540 | break;;
|
---|
2541 | esac
|
---|
2542 | done
|
---|
2543 | else
|
---|
2544 | echo "$as_me: failed program was:" >&5
|
---|
2545 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2546 |
|
---|
2547 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2548 | See \`config.log' for more details." >&5
|
---|
2549 | echo "$as_me: error: C compiler cannot create executables
|
---|
2550 | See \`config.log' for more details." >&2;}
|
---|
2551 | { (exit 77); exit 77; }; }
|
---|
2552 | fi
|
---|
2553 |
|
---|
2554 | ac_exeext=$ac_cv_exeext
|
---|
2555 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2556 | echo "${ECHO_T}$ac_file" >&6
|
---|
2557 |
|
---|
2558 | # Check the compiler produces executables we can run. If not, either
|
---|
2559 | # the compiler is broken, or we cross compile.
|
---|
2560 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2561 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
2562 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2563 | # If not cross compiling, check that we can run a simple program.
|
---|
2564 | if test "$cross_compiling" != yes; then
|
---|
2565 | if { ac_try='./$ac_file'
|
---|
2566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2567 | (eval $ac_try) 2>&5
|
---|
2568 | ac_status=$?
|
---|
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2570 | (exit $ac_status); }; }; then
|
---|
2571 | cross_compiling=no
|
---|
2572 | else
|
---|
2573 | if test "$cross_compiling" = maybe; then
|
---|
2574 | cross_compiling=yes
|
---|
2575 | else
|
---|
2576 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2577 | If you meant to cross compile, use \`--host'.
|
---|
2578 | See \`config.log' for more details." >&5
|
---|
2579 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2580 | If you meant to cross compile, use \`--host'.
|
---|
2581 | See \`config.log' for more details." >&2;}
|
---|
2582 | { (exit 1); exit 1; }; }
|
---|
2583 | fi
|
---|
2584 | fi
|
---|
2585 | fi
|
---|
2586 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2587 | echo "${ECHO_T}yes" >&6
|
---|
2588 |
|
---|
2589 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2590 | ac_clean_files=$ac_clean_files_save
|
---|
2591 | # Check the compiler produces executables we can run. If not, either
|
---|
2592 | # the compiler is broken, or we cross compile.
|
---|
2593 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2594 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
2595 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2596 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
2597 |
|
---|
2598 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2599 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
2600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2601 | (eval $ac_link) 2>&5
|
---|
2602 | ac_status=$?
|
---|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2604 | (exit $ac_status); }; then
|
---|
2605 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2606 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2607 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2608 | # `rm'.
|
---|
2609 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2610 | test -f "$ac_file" || continue
|
---|
2611 | case $ac_file in
|
---|
2612 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
2613 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2614 | export ac_cv_exeext
|
---|
2615 | break;;
|
---|
2616 | * ) break;;
|
---|
2617 | esac
|
---|
2618 | done
|
---|
2619 | else
|
---|
2620 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2621 | See \`config.log' for more details." >&5
|
---|
2622 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2623 | See \`config.log' for more details." >&2;}
|
---|
2624 | { (exit 1); exit 1; }; }
|
---|
2625 | fi
|
---|
2626 |
|
---|
2627 | rm -f conftest$ac_cv_exeext
|
---|
2628 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2629 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
2630 |
|
---|
2631 | rm -f conftest.$ac_ext
|
---|
2632 | EXEEXT=$ac_cv_exeext
|
---|
2633 | ac_exeext=$EXEEXT
|
---|
2634 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2635 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
2636 | if test "${ac_cv_objext+set}" = set; then
|
---|
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2638 | else
|
---|
2639 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2640 | /* confdefs.h. */
|
---|
2641 | _ACEOF
|
---|
2642 | cat confdefs.h >>conftest.$ac_ext
|
---|
2643 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2644 | /* end confdefs.h. */
|
---|
2645 |
|
---|
2646 | int
|
---|
2647 | main ()
|
---|
2648 | {
|
---|
2649 |
|
---|
2650 | ;
|
---|
2651 | return 0;
|
---|
2652 | }
|
---|
2653 | _ACEOF
|
---|
2654 | rm -f conftest.o conftest.obj
|
---|
2655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2656 | (eval $ac_compile) 2>&5
|
---|
2657 | ac_status=$?
|
---|
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2659 | (exit $ac_status); }; then
|
---|
2660 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
2661 | case $ac_file in
|
---|
2662 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
2663 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2664 | break;;
|
---|
2665 | esac
|
---|
2666 | done
|
---|
2667 | else
|
---|
2668 | echo "$as_me: failed program was:" >&5
|
---|
2669 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2670 |
|
---|
2671 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2672 | See \`config.log' for more details." >&5
|
---|
2673 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2674 | See \`config.log' for more details." >&2;}
|
---|
2675 | { (exit 1); exit 1; }; }
|
---|
2676 | fi
|
---|
2677 |
|
---|
2678 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2679 | fi
|
---|
2680 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2681 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
2682 | OBJEXT=$ac_cv_objext
|
---|
2683 | ac_objext=$OBJEXT
|
---|
2684 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2685 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2686 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2687 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2688 | else
|
---|
2689 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2690 | /* confdefs.h. */
|
---|
2691 | _ACEOF
|
---|
2692 | cat confdefs.h >>conftest.$ac_ext
|
---|
2693 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2694 | /* end confdefs.h. */
|
---|
2695 |
|
---|
2696 | int
|
---|
2697 | main ()
|
---|
2698 | {
|
---|
2699 | #ifndef __GNUC__
|
---|
2700 | choke me
|
---|
2701 | #endif
|
---|
2702 |
|
---|
2703 | ;
|
---|
2704 | return 0;
|
---|
2705 | }
|
---|
2706 | _ACEOF
|
---|
2707 | rm -f conftest.$ac_objext
|
---|
2708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2709 | (eval $ac_compile) 2>conftest.er1
|
---|
2710 | ac_status=$?
|
---|
2711 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2712 | rm -f conftest.er1
|
---|
2713 | cat conftest.err >&5
|
---|
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2715 | (exit $ac_status); } &&
|
---|
2716 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2717 | || test ! -s conftest.err'
|
---|
2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2719 | (eval $ac_try) 2>&5
|
---|
2720 | ac_status=$?
|
---|
2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2722 | (exit $ac_status); }; } &&
|
---|
2723 | { ac_try='test -s conftest.$ac_objext'
|
---|
2724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2725 | (eval $ac_try) 2>&5
|
---|
2726 | ac_status=$?
|
---|
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2728 | (exit $ac_status); }; }; then
|
---|
2729 | ac_compiler_gnu=yes
|
---|
2730 | else
|
---|
2731 | echo "$as_me: failed program was:" >&5
|
---|
2732 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2733 |
|
---|
2734 | ac_compiler_gnu=no
|
---|
2735 | fi
|
---|
2736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2737 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2738 |
|
---|
2739 | fi
|
---|
2740 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2741 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2742 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2743 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2744 | ac_save_CFLAGS=$CFLAGS
|
---|
2745 | CFLAGS="-g"
|
---|
2746 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2747 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2748 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2749 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2750 | else
|
---|
2751 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2752 | /* confdefs.h. */
|
---|
2753 | _ACEOF
|
---|
2754 | cat confdefs.h >>conftest.$ac_ext
|
---|
2755 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2756 | /* end confdefs.h. */
|
---|
2757 |
|
---|
2758 | int
|
---|
2759 | main ()
|
---|
2760 | {
|
---|
2761 |
|
---|
2762 | ;
|
---|
2763 | return 0;
|
---|
2764 | }
|
---|
2765 | _ACEOF
|
---|
2766 | rm -f conftest.$ac_objext
|
---|
2767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2768 | (eval $ac_compile) 2>conftest.er1
|
---|
2769 | ac_status=$?
|
---|
2770 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2771 | rm -f conftest.er1
|
---|
2772 | cat conftest.err >&5
|
---|
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2774 | (exit $ac_status); } &&
|
---|
2775 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2776 | || test ! -s conftest.err'
|
---|
2777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2778 | (eval $ac_try) 2>&5
|
---|
2779 | ac_status=$?
|
---|
2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2781 | (exit $ac_status); }; } &&
|
---|
2782 | { ac_try='test -s conftest.$ac_objext'
|
---|
2783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2784 | (eval $ac_try) 2>&5
|
---|
2785 | ac_status=$?
|
---|
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2787 | (exit $ac_status); }; }; then
|
---|
2788 | ac_cv_prog_cc_g=yes
|
---|
2789 | else
|
---|
2790 | echo "$as_me: failed program was:" >&5
|
---|
2791 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2792 |
|
---|
2793 | ac_cv_prog_cc_g=no
|
---|
2794 | fi
|
---|
2795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2796 | fi
|
---|
2797 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2798 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2799 | if test "$ac_test_CFLAGS" = set; then
|
---|
2800 | CFLAGS=$ac_save_CFLAGS
|
---|
2801 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2802 | if test "$GCC" = yes; then
|
---|
2803 | CFLAGS="-g -O2"
|
---|
2804 | else
|
---|
2805 | CFLAGS="-g"
|
---|
2806 | fi
|
---|
2807 | else
|
---|
2808 | if test "$GCC" = yes; then
|
---|
2809 | CFLAGS="-O2"
|
---|
2810 | else
|
---|
2811 | CFLAGS=
|
---|
2812 | fi
|
---|
2813 | fi
|
---|
2814 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2815 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2816 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2817 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2818 | else
|
---|
2819 | ac_cv_prog_cc_stdc=no
|
---|
2820 | ac_save_CC=$CC
|
---|
2821 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2822 | /* confdefs.h. */
|
---|
2823 | _ACEOF
|
---|
2824 | cat confdefs.h >>conftest.$ac_ext
|
---|
2825 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2826 | /* end confdefs.h. */
|
---|
2827 | #include <stdarg.h>
|
---|
2828 | #include <stdio.h>
|
---|
2829 | #include <sys/types.h>
|
---|
2830 | #include <sys/stat.h>
|
---|
2831 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2832 | struct buf { int x; };
|
---|
2833 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2834 | static char *e (p, i)
|
---|
2835 | char **p;
|
---|
2836 | int i;
|
---|
2837 | {
|
---|
2838 | return p[i];
|
---|
2839 | }
|
---|
2840 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2841 | {
|
---|
2842 | char *s;
|
---|
2843 | va_list v;
|
---|
2844 | va_start (v,p);
|
---|
2845 | s = g (p, va_arg (v,int));
|
---|
2846 | va_end (v);
|
---|
2847 | return s;
|
---|
2848 | }
|
---|
2849 |
|
---|
2850 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2851 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2852 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2853 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2854 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2855 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2856 | that's true only with -std1. */
|
---|
2857 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2858 |
|
---|
2859 | int test (int i, double x);
|
---|
2860 | struct s1 {int (*f) (int a);};
|
---|
2861 | struct s2 {int (*f) (double a);};
|
---|
2862 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2863 | int argc;
|
---|
2864 | char **argv;
|
---|
2865 | int
|
---|
2866 | main ()
|
---|
2867 | {
|
---|
2868 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2869 | ;
|
---|
2870 | return 0;
|
---|
2871 | }
|
---|
2872 | _ACEOF
|
---|
2873 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2874 | # breaks some systems' header files.
|
---|
2875 | # AIX -qlanglvl=ansi
|
---|
2876 | # Ultrix and OSF/1 -std1
|
---|
2877 | # HP-UX 10.20 and later -Ae
|
---|
2878 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2879 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2880 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2881 | do
|
---|
2882 | CC="$ac_save_CC $ac_arg"
|
---|
2883 | rm -f conftest.$ac_objext
|
---|
2884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2885 | (eval $ac_compile) 2>conftest.er1
|
---|
2886 | ac_status=$?
|
---|
2887 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2888 | rm -f conftest.er1
|
---|
2889 | cat conftest.err >&5
|
---|
2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2891 | (exit $ac_status); } &&
|
---|
2892 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2893 | || test ! -s conftest.err'
|
---|
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); }; } &&
|
---|
2899 | { ac_try='test -s conftest.$ac_objext'
|
---|
2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2901 | (eval $ac_try) 2>&5
|
---|
2902 | ac_status=$?
|
---|
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2904 | (exit $ac_status); }; }; then
|
---|
2905 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2906 | break
|
---|
2907 | else
|
---|
2908 | echo "$as_me: failed program was:" >&5
|
---|
2909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2910 |
|
---|
2911 | fi
|
---|
2912 | rm -f conftest.err conftest.$ac_objext
|
---|
2913 | done
|
---|
2914 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2915 | CC=$ac_save_CC
|
---|
2916 |
|
---|
2917 | fi
|
---|
2918 |
|
---|
2919 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2920 | x|xno)
|
---|
2921 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2922 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2923 | *)
|
---|
2924 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2925 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2926 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2927 | esac
|
---|
2928 |
|
---|
2929 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2930 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2931 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2932 | # the declaration of exit, since it's the most demanding environment.
|
---|
2933 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2934 | #ifndef __cplusplus
|
---|
2935 | choke me
|
---|
2936 | #endif
|
---|
2937 | _ACEOF
|
---|
2938 | rm -f conftest.$ac_objext
|
---|
2939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2940 | (eval $ac_compile) 2>conftest.er1
|
---|
2941 | ac_status=$?
|
---|
2942 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2943 | rm -f conftest.er1
|
---|
2944 | cat conftest.err >&5
|
---|
2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2946 | (exit $ac_status); } &&
|
---|
2947 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2948 | || test ! -s conftest.err'
|
---|
2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2950 | (eval $ac_try) 2>&5
|
---|
2951 | ac_status=$?
|
---|
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2953 | (exit $ac_status); }; } &&
|
---|
2954 | { ac_try='test -s conftest.$ac_objext'
|
---|
2955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2956 | (eval $ac_try) 2>&5
|
---|
2957 | ac_status=$?
|
---|
2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2959 | (exit $ac_status); }; }; then
|
---|
2960 | for ac_declaration in \
|
---|
2961 | '' \
|
---|
2962 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2963 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2964 | 'extern "C" void exit (int) throw ();' \
|
---|
2965 | 'extern "C" void exit (int);' \
|
---|
2966 | 'void exit (int);'
|
---|
2967 | do
|
---|
2968 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2969 | /* confdefs.h. */
|
---|
2970 | _ACEOF
|
---|
2971 | cat confdefs.h >>conftest.$ac_ext
|
---|
2972 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2973 | /* end confdefs.h. */
|
---|
2974 | $ac_declaration
|
---|
2975 | #include <stdlib.h>
|
---|
2976 | int
|
---|
2977 | main ()
|
---|
2978 | {
|
---|
2979 | exit (42);
|
---|
2980 | ;
|
---|
2981 | return 0;
|
---|
2982 | }
|
---|
2983 | _ACEOF
|
---|
2984 | rm -f conftest.$ac_objext
|
---|
2985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2986 | (eval $ac_compile) 2>conftest.er1
|
---|
2987 | ac_status=$?
|
---|
2988 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2989 | rm -f conftest.er1
|
---|
2990 | cat conftest.err >&5
|
---|
2991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2992 | (exit $ac_status); } &&
|
---|
2993 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2994 | || test ! -s conftest.err'
|
---|
2995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2996 | (eval $ac_try) 2>&5
|
---|
2997 | ac_status=$?
|
---|
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2999 | (exit $ac_status); }; } &&
|
---|
3000 | { ac_try='test -s conftest.$ac_objext'
|
---|
3001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3002 | (eval $ac_try) 2>&5
|
---|
3003 | ac_status=$?
|
---|
3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3005 | (exit $ac_status); }; }; then
|
---|
3006 | :
|
---|
3007 | else
|
---|
3008 | echo "$as_me: failed program was:" >&5
|
---|
3009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3010 |
|
---|
3011 | continue
|
---|
3012 | fi
|
---|
3013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3014 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3015 | /* confdefs.h. */
|
---|
3016 | _ACEOF
|
---|
3017 | cat confdefs.h >>conftest.$ac_ext
|
---|
3018 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3019 | /* end confdefs.h. */
|
---|
3020 | $ac_declaration
|
---|
3021 | int
|
---|
3022 | main ()
|
---|
3023 | {
|
---|
3024 | exit (42);
|
---|
3025 | ;
|
---|
3026 | return 0;
|
---|
3027 | }
|
---|
3028 | _ACEOF
|
---|
3029 | rm -f conftest.$ac_objext
|
---|
3030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3031 | (eval $ac_compile) 2>conftest.er1
|
---|
3032 | ac_status=$?
|
---|
3033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3034 | rm -f conftest.er1
|
---|
3035 | cat conftest.err >&5
|
---|
3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3037 | (exit $ac_status); } &&
|
---|
3038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3039 | || test ! -s conftest.err'
|
---|
3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3041 | (eval $ac_try) 2>&5
|
---|
3042 | ac_status=$?
|
---|
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3044 | (exit $ac_status); }; } &&
|
---|
3045 | { ac_try='test -s conftest.$ac_objext'
|
---|
3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3047 | (eval $ac_try) 2>&5
|
---|
3048 | ac_status=$?
|
---|
3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3050 | (exit $ac_status); }; }; then
|
---|
3051 | break
|
---|
3052 | else
|
---|
3053 | echo "$as_me: failed program was:" >&5
|
---|
3054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3055 |
|
---|
3056 | fi
|
---|
3057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3058 | done
|
---|
3059 | rm -f conftest*
|
---|
3060 | if test -n "$ac_declaration"; then
|
---|
3061 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
3062 | echo $ac_declaration >>confdefs.h
|
---|
3063 | echo '#endif' >>confdefs.h
|
---|
3064 | fi
|
---|
3065 |
|
---|
3066 | else
|
---|
3067 | echo "$as_me: failed program was:" >&5
|
---|
3068 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3069 |
|
---|
3070 | fi
|
---|
3071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3072 | ac_ext=c
|
---|
3073 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3077 |
|
---|
3078 | depcc="$CC" am_compiler_list=
|
---|
3079 |
|
---|
3080 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
3081 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
3082 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
---|
3083 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3084 | else
|
---|
3085 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
3086 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
3087 | # making bogus files that we don't know about and never remove. For
|
---|
3088 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
3089 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
3090 | # in D'.
|
---|
3091 | mkdir conftest.dir
|
---|
3092 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
3093 | # using a relative directory.
|
---|
3094 | cp "$am_depcomp" conftest.dir
|
---|
3095 | cd conftest.dir
|
---|
3096 | # We will build objects and dependencies in a subdirectory because
|
---|
3097 | # it helps to detect inapplicable dependency modes. For instance
|
---|
3098 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
3099 | # side effect of compilation, but ICC will put the dependencies in
|
---|
3100 | # the current directory while Tru64 will put them in the object
|
---|
3101 | # directory.
|
---|
3102 | mkdir sub
|
---|
3103 |
|
---|
3104 | am_cv_CC_dependencies_compiler_type=none
|
---|
3105 | if test "$am_compiler_list" = ""; then
|
---|
3106 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
3107 | fi
|
---|
3108 | for depmode in $am_compiler_list; do
|
---|
3109 | # Setup a source with many dependencies, because some compilers
|
---|
3110 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
3111 | # we should not choose a depcomp mode which is confused by this.
|
---|
3112 | #
|
---|
3113 | # We need to recreate these files for each test, as the compiler may
|
---|
3114 | # overwrite some of them when testing with obscure command lines.
|
---|
3115 | # This happens at least with the AIX C compiler.
|
---|
3116 | : > sub/conftest.c
|
---|
3117 | for i in 1 2 3 4 5 6; do
|
---|
3118 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
3119 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
---|
3120 | # Solaris 8's {/usr,}/bin/sh.
|
---|
3121 | touch sub/conftst$i.h
|
---|
3122 | done
|
---|
3123 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
3124 |
|
---|
3125 | case $depmode in
|
---|
3126 | nosideeffect)
|
---|
3127 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
3128 | # only be used when explicitly requested
|
---|
3129 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
3130 | continue
|
---|
3131 | else
|
---|
3132 | break
|
---|
3133 | fi
|
---|
3134 | ;;
|
---|
3135 | none) break ;;
|
---|
3136 | esac
|
---|
3137 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
3138 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
3139 | # handle `-M -o', and we need to detect this.
|
---|
3140 | if depmode=$depmode \
|
---|
3141 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
---|
3142 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
3143 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
---|
3144 | >/dev/null 2>conftest.err &&
|
---|
3145 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
3146 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
---|
3147 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
3148 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
3149 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
3150 | # that says an option was ignored or not supported.
|
---|
3151 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
3152 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
3153 | # The diagnosis changed in icc 8.0:
|
---|
3154 | # icc: Command line remark: option '-MP' not supported
|
---|
3155 | if (grep 'ignoring option' conftest.err ||
|
---|
3156 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
3157 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
3158 | break
|
---|
3159 | fi
|
---|
3160 | fi
|
---|
3161 | done
|
---|
3162 |
|
---|
3163 | cd ..
|
---|
3164 | rm -rf conftest.dir
|
---|
3165 | else
|
---|
3166 | am_cv_CC_dependencies_compiler_type=none
|
---|
3167 | fi
|
---|
3168 |
|
---|
3169 | fi
|
---|
3170 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
3171 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
---|
3172 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
3173 |
|
---|
3174 |
|
---|
3175 |
|
---|
3176 | if
|
---|
3177 | test "x$enable_dependency_tracking" != xno \
|
---|
3178 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
3179 | am__fastdepCC_TRUE=
|
---|
3180 | am__fastdepCC_FALSE='#'
|
---|
3181 | else
|
---|
3182 | am__fastdepCC_TRUE='#'
|
---|
3183 | am__fastdepCC_FALSE=
|
---|
3184 | fi
|
---|
3185 |
|
---|
3186 |
|
---|
3187 |
|
---|
3188 |
|
---|
3189 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
|
---|
3190 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
|
---|
3191 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then
|
---|
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3193 | else
|
---|
3194 | ac_check_lib_save_LIBS=$LIBS
|
---|
3195 | LIBS="-lcposix $LIBS"
|
---|
3196 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3197 | /* confdefs.h. */
|
---|
3198 | _ACEOF
|
---|
3199 | cat confdefs.h >>conftest.$ac_ext
|
---|
3200 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3201 | /* end confdefs.h. */
|
---|
3202 |
|
---|
3203 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3204 | #ifdef __cplusplus
|
---|
3205 | extern "C"
|
---|
3206 | #endif
|
---|
3207 | /* We use char because int might match the return type of a gcc2
|
---|
3208 | builtin and then its argument prototype would still apply. */
|
---|
3209 | char strerror ();
|
---|
3210 | int
|
---|
3211 | main ()
|
---|
3212 | {
|
---|
3213 | strerror ();
|
---|
3214 | ;
|
---|
3215 | return 0;
|
---|
3216 | }
|
---|
3217 | _ACEOF
|
---|
3218 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3220 | (eval $ac_link) 2>conftest.er1
|
---|
3221 | ac_status=$?
|
---|
3222 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3223 | rm -f conftest.er1
|
---|
3224 | cat conftest.err >&5
|
---|
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3226 | (exit $ac_status); } &&
|
---|
3227 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3228 | || test ! -s conftest.err'
|
---|
3229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3230 | (eval $ac_try) 2>&5
|
---|
3231 | ac_status=$?
|
---|
3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3233 | (exit $ac_status); }; } &&
|
---|
3234 | { ac_try='test -s conftest$ac_exeext'
|
---|
3235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3236 | (eval $ac_try) 2>&5
|
---|
3237 | ac_status=$?
|
---|
3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3239 | (exit $ac_status); }; }; then
|
---|
3240 | ac_cv_lib_cposix_strerror=yes
|
---|
3241 | else
|
---|
3242 | echo "$as_me: failed program was:" >&5
|
---|
3243 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3244 |
|
---|
3245 | ac_cv_lib_cposix_strerror=no
|
---|
3246 | fi
|
---|
3247 | rm -f conftest.err conftest.$ac_objext \
|
---|
3248 | conftest$ac_exeext conftest.$ac_ext
|
---|
3249 | LIBS=$ac_check_lib_save_LIBS
|
---|
3250 | fi
|
---|
3251 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
|
---|
3252 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
|
---|
3253 | if test $ac_cv_lib_cposix_strerror = yes; then
|
---|
3254 | LIBS="$LIBS -lcposix"
|
---|
3255 | fi
|
---|
3256 |
|
---|
3257 |
|
---|
3258 |
|
---|
3259 | ac_ext=c
|
---|
3260 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3264 | if test -n "$ac_tool_prefix"; then
|
---|
3265 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3266 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3267 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3269 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3270 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3271 | else
|
---|
3272 | if test -n "$CC"; then
|
---|
3273 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3274 | else
|
---|
3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3276 | for as_dir in $PATH
|
---|
3277 | do
|
---|
3278 | IFS=$as_save_IFS
|
---|
3279 | test -z "$as_dir" && as_dir=.
|
---|
3280 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3282 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3284 | break 2
|
---|
3285 | fi
|
---|
3286 | done
|
---|
3287 | done
|
---|
3288 |
|
---|
3289 | fi
|
---|
3290 | fi
|
---|
3291 | CC=$ac_cv_prog_CC
|
---|
3292 | if test -n "$CC"; then
|
---|
3293 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3294 | echo "${ECHO_T}$CC" >&6
|
---|
3295 | else
|
---|
3296 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3297 | echo "${ECHO_T}no" >&6
|
---|
3298 | fi
|
---|
3299 |
|
---|
3300 | fi
|
---|
3301 | if test -z "$ac_cv_prog_CC"; then
|
---|
3302 | ac_ct_CC=$CC
|
---|
3303 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3304 | set dummy gcc; ac_word=$2
|
---|
3305 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3309 | else
|
---|
3310 | if test -n "$ac_ct_CC"; then
|
---|
3311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3312 | else
|
---|
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3314 | for as_dir in $PATH
|
---|
3315 | do
|
---|
3316 | IFS=$as_save_IFS
|
---|
3317 | test -z "$as_dir" && as_dir=.
|
---|
3318 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3320 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3322 | break 2
|
---|
3323 | fi
|
---|
3324 | done
|
---|
3325 | done
|
---|
3326 |
|
---|
3327 | fi
|
---|
3328 | fi
|
---|
3329 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3330 | if test -n "$ac_ct_CC"; then
|
---|
3331 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
3332 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
3333 | else
|
---|
3334 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3335 | echo "${ECHO_T}no" >&6
|
---|
3336 | fi
|
---|
3337 |
|
---|
3338 | CC=$ac_ct_CC
|
---|
3339 | else
|
---|
3340 | CC="$ac_cv_prog_CC"
|
---|
3341 | fi
|
---|
3342 |
|
---|
3343 | if test -z "$CC"; then
|
---|
3344 | if test -n "$ac_tool_prefix"; then
|
---|
3345 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3346 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3347 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3349 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3350 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3351 | else
|
---|
3352 | if test -n "$CC"; then
|
---|
3353 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3354 | else
|
---|
3355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3356 | for as_dir in $PATH
|
---|
3357 | do
|
---|
3358 | IFS=$as_save_IFS
|
---|
3359 | test -z "$as_dir" && as_dir=.
|
---|
3360 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3362 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3364 | break 2
|
---|
3365 | fi
|
---|
3366 | done
|
---|
3367 | done
|
---|
3368 |
|
---|
3369 | fi
|
---|
3370 | fi
|
---|
3371 | CC=$ac_cv_prog_CC
|
---|
3372 | if test -n "$CC"; then
|
---|
3373 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3374 | echo "${ECHO_T}$CC" >&6
|
---|
3375 | else
|
---|
3376 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3377 | echo "${ECHO_T}no" >&6
|
---|
3378 | fi
|
---|
3379 |
|
---|
3380 | fi
|
---|
3381 | if test -z "$ac_cv_prog_CC"; then
|
---|
3382 | ac_ct_CC=$CC
|
---|
3383 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3384 | set dummy cc; ac_word=$2
|
---|
3385 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3387 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3389 | else
|
---|
3390 | if test -n "$ac_ct_CC"; then
|
---|
3391 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3392 | else
|
---|
3393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3394 | for as_dir in $PATH
|
---|
3395 | do
|
---|
3396 | IFS=$as_save_IFS
|
---|
3397 | test -z "$as_dir" && as_dir=.
|
---|
3398 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3400 | ac_cv_prog_ac_ct_CC="cc"
|
---|
3401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3402 | break 2
|
---|
3403 | fi
|
---|
3404 | done
|
---|
3405 | done
|
---|
3406 |
|
---|
3407 | fi
|
---|
3408 | fi
|
---|
3409 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3410 | if test -n "$ac_ct_CC"; then
|
---|
3411 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
3412 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
3413 | else
|
---|
3414 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3415 | echo "${ECHO_T}no" >&6
|
---|
3416 | fi
|
---|
3417 |
|
---|
3418 | CC=$ac_ct_CC
|
---|
3419 | else
|
---|
3420 | CC="$ac_cv_prog_CC"
|
---|
3421 | fi
|
---|
3422 |
|
---|
3423 | fi
|
---|
3424 | if test -z "$CC"; then
|
---|
3425 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3426 | set dummy cc; ac_word=$2
|
---|
3427 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3429 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3430 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3431 | else
|
---|
3432 | if test -n "$CC"; then
|
---|
3433 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3434 | else
|
---|
3435 | ac_prog_rejected=no
|
---|
3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3437 | for as_dir in $PATH
|
---|
3438 | do
|
---|
3439 | IFS=$as_save_IFS
|
---|
3440 | test -z "$as_dir" && as_dir=.
|
---|
3441 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3443 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3444 | ac_prog_rejected=yes
|
---|
3445 | continue
|
---|
3446 | fi
|
---|
3447 | ac_cv_prog_CC="cc"
|
---|
3448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3449 | break 2
|
---|
3450 | fi
|
---|
3451 | done
|
---|
3452 | done
|
---|
3453 |
|
---|
3454 | if test $ac_prog_rejected = yes; then
|
---|
3455 | # We found a bogon in the path, so make sure we never use it.
|
---|
3456 | set dummy $ac_cv_prog_CC
|
---|
3457 | shift
|
---|
3458 | if test $# != 0; then
|
---|
3459 | # We chose a different compiler from the bogus one.
|
---|
3460 | # However, it has the same basename, so the bogon will be chosen
|
---|
3461 | # first if we set CC to just the basename; use the full file name.
|
---|
3462 | shift
|
---|
3463 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3464 | fi
|
---|
3465 | fi
|
---|
3466 | fi
|
---|
3467 | fi
|
---|
3468 | CC=$ac_cv_prog_CC
|
---|
3469 | if test -n "$CC"; then
|
---|
3470 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3471 | echo "${ECHO_T}$CC" >&6
|
---|
3472 | else
|
---|
3473 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3474 | echo "${ECHO_T}no" >&6
|
---|
3475 | fi
|
---|
3476 |
|
---|
3477 | fi
|
---|
3478 | if test -z "$CC"; then
|
---|
3479 | if test -n "$ac_tool_prefix"; then
|
---|
3480 | for ac_prog in cl
|
---|
3481 | do
|
---|
3482 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3483 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3484 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3486 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3488 | else
|
---|
3489 | if test -n "$CC"; then
|
---|
3490 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3491 | else
|
---|
3492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3493 | for as_dir in $PATH
|
---|
3494 | do
|
---|
3495 | IFS=$as_save_IFS
|
---|
3496 | test -z "$as_dir" && as_dir=.
|
---|
3497 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3499 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3501 | break 2
|
---|
3502 | fi
|
---|
3503 | done
|
---|
3504 | done
|
---|
3505 |
|
---|
3506 | fi
|
---|
3507 | fi
|
---|
3508 | CC=$ac_cv_prog_CC
|
---|
3509 | if test -n "$CC"; then
|
---|
3510 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3511 | echo "${ECHO_T}$CC" >&6
|
---|
3512 | else
|
---|
3513 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3514 | echo "${ECHO_T}no" >&6
|
---|
3515 | fi
|
---|
3516 |
|
---|
3517 | test -n "$CC" && break
|
---|
3518 | done
|
---|
3519 | fi
|
---|
3520 | if test -z "$CC"; then
|
---|
3521 | ac_ct_CC=$CC
|
---|
3522 | for ac_prog in cl
|
---|
3523 | do
|
---|
3524 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3525 | set dummy $ac_prog; ac_word=$2
|
---|
3526 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3528 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
3529 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3530 | else
|
---|
3531 | if test -n "$ac_ct_CC"; then
|
---|
3532 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3533 | else
|
---|
3534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3535 | for as_dir in $PATH
|
---|
3536 | do
|
---|
3537 | IFS=$as_save_IFS
|
---|
3538 | test -z "$as_dir" && as_dir=.
|
---|
3539 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3541 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3543 | break 2
|
---|
3544 | fi
|
---|
3545 | done
|
---|
3546 | done
|
---|
3547 |
|
---|
3548 | fi
|
---|
3549 | fi
|
---|
3550 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3551 | if test -n "$ac_ct_CC"; then
|
---|
3552 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
3553 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
3554 | else
|
---|
3555 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3556 | echo "${ECHO_T}no" >&6
|
---|
3557 | fi
|
---|
3558 |
|
---|
3559 | test -n "$ac_ct_CC" && break
|
---|
3560 | done
|
---|
3561 |
|
---|
3562 | CC=$ac_ct_CC
|
---|
3563 | fi
|
---|
3564 |
|
---|
3565 | fi
|
---|
3566 |
|
---|
3567 |
|
---|
3568 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
3569 | See \`config.log' for more details." >&5
|
---|
3570 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
3571 | See \`config.log' for more details." >&2;}
|
---|
3572 | { (exit 1); exit 1; }; }
|
---|
3573 |
|
---|
3574 | # Provide some information about the compiler.
|
---|
3575 | echo "$as_me:$LINENO:" \
|
---|
3576 | "checking for C compiler version" >&5
|
---|
3577 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
3578 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
3579 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
3580 | ac_status=$?
|
---|
3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3582 | (exit $ac_status); }
|
---|
3583 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
3584 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
3585 | ac_status=$?
|
---|
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3587 | (exit $ac_status); }
|
---|
3588 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
3589 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
3590 | ac_status=$?
|
---|
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3592 | (exit $ac_status); }
|
---|
3593 |
|
---|
3594 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
3595 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
3596 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
3597 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3598 | else
|
---|
3599 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3600 | /* confdefs.h. */
|
---|
3601 | _ACEOF
|
---|
3602 | cat confdefs.h >>conftest.$ac_ext
|
---|
3603 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3604 | /* end confdefs.h. */
|
---|
3605 |
|
---|
3606 | int
|
---|
3607 | main ()
|
---|
3608 | {
|
---|
3609 | #ifndef __GNUC__
|
---|
3610 | choke me
|
---|
3611 | #endif
|
---|
3612 |
|
---|
3613 | ;
|
---|
3614 | return 0;
|
---|
3615 | }
|
---|
3616 | _ACEOF
|
---|
3617 | rm -f conftest.$ac_objext
|
---|
3618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3619 | (eval $ac_compile) 2>conftest.er1
|
---|
3620 | ac_status=$?
|
---|
3621 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3622 | rm -f conftest.er1
|
---|
3623 | cat conftest.err >&5
|
---|
3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3625 | (exit $ac_status); } &&
|
---|
3626 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3627 | || test ! -s conftest.err'
|
---|
3628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3629 | (eval $ac_try) 2>&5
|
---|
3630 | ac_status=$?
|
---|
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3632 | (exit $ac_status); }; } &&
|
---|
3633 | { ac_try='test -s conftest.$ac_objext'
|
---|
3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3635 | (eval $ac_try) 2>&5
|
---|
3636 | ac_status=$?
|
---|
3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3638 | (exit $ac_status); }; }; then
|
---|
3639 | ac_compiler_gnu=yes
|
---|
3640 | else
|
---|
3641 | echo "$as_me: failed program was:" >&5
|
---|
3642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3643 |
|
---|
3644 | ac_compiler_gnu=no
|
---|
3645 | fi
|
---|
3646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3647 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3648 |
|
---|
3649 | fi
|
---|
3650 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3651 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
3652 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
3653 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3654 | ac_save_CFLAGS=$CFLAGS
|
---|
3655 | CFLAGS="-g"
|
---|
3656 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
3657 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
3658 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
3659 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3660 | else
|
---|
3661 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3662 | /* confdefs.h. */
|
---|
3663 | _ACEOF
|
---|
3664 | cat confdefs.h >>conftest.$ac_ext
|
---|
3665 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3666 | /* end confdefs.h. */
|
---|
3667 |
|
---|
3668 | int
|
---|
3669 | main ()
|
---|
3670 | {
|
---|
3671 |
|
---|
3672 | ;
|
---|
3673 | return 0;
|
---|
3674 | }
|
---|
3675 | _ACEOF
|
---|
3676 | rm -f conftest.$ac_objext
|
---|
3677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3678 | (eval $ac_compile) 2>conftest.er1
|
---|
3679 | ac_status=$?
|
---|
3680 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3681 | rm -f conftest.er1
|
---|
3682 | cat conftest.err >&5
|
---|
3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3684 | (exit $ac_status); } &&
|
---|
3685 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3686 | || test ! -s conftest.err'
|
---|
3687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3688 | (eval $ac_try) 2>&5
|
---|
3689 | ac_status=$?
|
---|
3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3691 | (exit $ac_status); }; } &&
|
---|
3692 | { ac_try='test -s conftest.$ac_objext'
|
---|
3693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3694 | (eval $ac_try) 2>&5
|
---|
3695 | ac_status=$?
|
---|
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3697 | (exit $ac_status); }; }; then
|
---|
3698 | ac_cv_prog_cc_g=yes
|
---|
3699 | else
|
---|
3700 | echo "$as_me: failed program was:" >&5
|
---|
3701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3702 |
|
---|
3703 | ac_cv_prog_cc_g=no
|
---|
3704 | fi
|
---|
3705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3706 | fi
|
---|
3707 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
3708 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
3709 | if test "$ac_test_CFLAGS" = set; then
|
---|
3710 | CFLAGS=$ac_save_CFLAGS
|
---|
3711 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3712 | if test "$GCC" = yes; then
|
---|
3713 | CFLAGS="-g -O2"
|
---|
3714 | else
|
---|
3715 | CFLAGS="-g"
|
---|
3716 | fi
|
---|
3717 | else
|
---|
3718 | if test "$GCC" = yes; then
|
---|
3719 | CFLAGS="-O2"
|
---|
3720 | else
|
---|
3721 | CFLAGS=
|
---|
3722 | fi
|
---|
3723 | fi
|
---|
3724 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
3725 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
3726 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
3727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3728 | else
|
---|
3729 | ac_cv_prog_cc_stdc=no
|
---|
3730 | ac_save_CC=$CC
|
---|
3731 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3732 | /* confdefs.h. */
|
---|
3733 | _ACEOF
|
---|
3734 | cat confdefs.h >>conftest.$ac_ext
|
---|
3735 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3736 | /* end confdefs.h. */
|
---|
3737 | #include <stdarg.h>
|
---|
3738 | #include <stdio.h>
|
---|
3739 | #include <sys/types.h>
|
---|
3740 | #include <sys/stat.h>
|
---|
3741 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3742 | struct buf { int x; };
|
---|
3743 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3744 | static char *e (p, i)
|
---|
3745 | char **p;
|
---|
3746 | int i;
|
---|
3747 | {
|
---|
3748 | return p[i];
|
---|
3749 | }
|
---|
3750 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3751 | {
|
---|
3752 | char *s;
|
---|
3753 | va_list v;
|
---|
3754 | va_start (v,p);
|
---|
3755 | s = g (p, va_arg (v,int));
|
---|
3756 | va_end (v);
|
---|
3757 | return s;
|
---|
3758 | }
|
---|
3759 |
|
---|
3760 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3761 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3762 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3763 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
3764 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3765 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3766 | that's true only with -std1. */
|
---|
3767 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3768 |
|
---|
3769 | int test (int i, double x);
|
---|
3770 | struct s1 {int (*f) (int a);};
|
---|
3771 | struct s2 {int (*f) (double a);};
|
---|
3772 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3773 | int argc;
|
---|
3774 | char **argv;
|
---|
3775 | int
|
---|
3776 | main ()
|
---|
3777 | {
|
---|
3778 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3779 | ;
|
---|
3780 | return 0;
|
---|
3781 | }
|
---|
3782 | _ACEOF
|
---|
3783 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
3784 | # breaks some systems' header files.
|
---|
3785 | # AIX -qlanglvl=ansi
|
---|
3786 | # Ultrix and OSF/1 -std1
|
---|
3787 | # HP-UX 10.20 and later -Ae
|
---|
3788 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
3789 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
3790 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3791 | do
|
---|
3792 | CC="$ac_save_CC $ac_arg"
|
---|
3793 | rm -f conftest.$ac_objext
|
---|
3794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3795 | (eval $ac_compile) 2>conftest.er1
|
---|
3796 | ac_status=$?
|
---|
3797 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3798 | rm -f conftest.er1
|
---|
3799 | cat conftest.err >&5
|
---|
3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3801 | (exit $ac_status); } &&
|
---|
3802 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3803 | || test ! -s conftest.err'
|
---|
3804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3805 | (eval $ac_try) 2>&5
|
---|
3806 | ac_status=$?
|
---|
3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3808 | (exit $ac_status); }; } &&
|
---|
3809 | { ac_try='test -s conftest.$ac_objext'
|
---|
3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3811 | (eval $ac_try) 2>&5
|
---|
3812 | ac_status=$?
|
---|
3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3814 | (exit $ac_status); }; }; then
|
---|
3815 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
3816 | break
|
---|
3817 | else
|
---|
3818 | echo "$as_me: failed program was:" >&5
|
---|
3819 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3820 |
|
---|
3821 | fi
|
---|
3822 | rm -f conftest.err conftest.$ac_objext
|
---|
3823 | done
|
---|
3824 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
3825 | CC=$ac_save_CC
|
---|
3826 |
|
---|
3827 | fi
|
---|
3828 |
|
---|
3829 | case "x$ac_cv_prog_cc_stdc" in
|
---|
3830 | x|xno)
|
---|
3831 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
3832 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
3833 | *)
|
---|
3834 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
3835 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
3836 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
3837 | esac
|
---|
3838 |
|
---|
3839 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
3840 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
3841 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
3842 | # the declaration of exit, since it's the most demanding environment.
|
---|
3843 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3844 | #ifndef __cplusplus
|
---|
3845 | choke me
|
---|
3846 | #endif
|
---|
3847 | _ACEOF
|
---|
3848 | rm -f conftest.$ac_objext
|
---|
3849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3850 | (eval $ac_compile) 2>conftest.er1
|
---|
3851 | ac_status=$?
|
---|
3852 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3853 | rm -f conftest.er1
|
---|
3854 | cat conftest.err >&5
|
---|
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3856 | (exit $ac_status); } &&
|
---|
3857 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3858 | || test ! -s conftest.err'
|
---|
3859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3860 | (eval $ac_try) 2>&5
|
---|
3861 | ac_status=$?
|
---|
3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3863 | (exit $ac_status); }; } &&
|
---|
3864 | { ac_try='test -s conftest.$ac_objext'
|
---|
3865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3866 | (eval $ac_try) 2>&5
|
---|
3867 | ac_status=$?
|
---|
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3869 | (exit $ac_status); }; }; then
|
---|
3870 | for ac_declaration in \
|
---|
3871 | '' \
|
---|
3872 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
3873 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
3874 | 'extern "C" void exit (int) throw ();' \
|
---|
3875 | 'extern "C" void exit (int);' \
|
---|
3876 | 'void exit (int);'
|
---|
3877 | do
|
---|
3878 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3879 | /* confdefs.h. */
|
---|
3880 | _ACEOF
|
---|
3881 | cat confdefs.h >>conftest.$ac_ext
|
---|
3882 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3883 | /* end confdefs.h. */
|
---|
3884 | $ac_declaration
|
---|
3885 | #include <stdlib.h>
|
---|
3886 | int
|
---|
3887 | main ()
|
---|
3888 | {
|
---|
3889 | exit (42);
|
---|
3890 | ;
|
---|
3891 | return 0;
|
---|
3892 | }
|
---|
3893 | _ACEOF
|
---|
3894 | rm -f conftest.$ac_objext
|
---|
3895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3896 | (eval $ac_compile) 2>conftest.er1
|
---|
3897 | ac_status=$?
|
---|
3898 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3899 | rm -f conftest.er1
|
---|
3900 | cat conftest.err >&5
|
---|
3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3902 | (exit $ac_status); } &&
|
---|
3903 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3904 | || test ! -s conftest.err'
|
---|
3905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3906 | (eval $ac_try) 2>&5
|
---|
3907 | ac_status=$?
|
---|
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3909 | (exit $ac_status); }; } &&
|
---|
3910 | { ac_try='test -s conftest.$ac_objext'
|
---|
3911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3912 | (eval $ac_try) 2>&5
|
---|
3913 | ac_status=$?
|
---|
3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3915 | (exit $ac_status); }; }; then
|
---|
3916 | :
|
---|
3917 | else
|
---|
3918 | echo "$as_me: failed program was:" >&5
|
---|
3919 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3920 |
|
---|
3921 | continue
|
---|
3922 | fi
|
---|
3923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3924 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3925 | /* confdefs.h. */
|
---|
3926 | _ACEOF
|
---|
3927 | cat confdefs.h >>conftest.$ac_ext
|
---|
3928 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3929 | /* end confdefs.h. */
|
---|
3930 | $ac_declaration
|
---|
3931 | int
|
---|
3932 | main ()
|
---|
3933 | {
|
---|
3934 | exit (42);
|
---|
3935 | ;
|
---|
3936 | return 0;
|
---|
3937 | }
|
---|
3938 | _ACEOF
|
---|
3939 | rm -f conftest.$ac_objext
|
---|
3940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3941 | (eval $ac_compile) 2>conftest.er1
|
---|
3942 | ac_status=$?
|
---|
3943 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3944 | rm -f conftest.er1
|
---|
3945 | cat conftest.err >&5
|
---|
3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3947 | (exit $ac_status); } &&
|
---|
3948 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3949 | || test ! -s conftest.err'
|
---|
3950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3951 | (eval $ac_try) 2>&5
|
---|
3952 | ac_status=$?
|
---|
3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3954 | (exit $ac_status); }; } &&
|
---|
3955 | { ac_try='test -s conftest.$ac_objext'
|
---|
3956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3957 | (eval $ac_try) 2>&5
|
---|
3958 | ac_status=$?
|
---|
3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3960 | (exit $ac_status); }; }; then
|
---|
3961 | break
|
---|
3962 | else
|
---|
3963 | echo "$as_me: failed program was:" >&5
|
---|
3964 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3965 |
|
---|
3966 | fi
|
---|
3967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3968 | done
|
---|
3969 | rm -f conftest*
|
---|
3970 | if test -n "$ac_declaration"; then
|
---|
3971 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
3972 | echo $ac_declaration >>confdefs.h
|
---|
3973 | echo '#endif' >>confdefs.h
|
---|
3974 | fi
|
---|
3975 |
|
---|
3976 | else
|
---|
3977 | echo "$as_me: failed program was:" >&5
|
---|
3978 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3979 |
|
---|
3980 | fi
|
---|
3981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3982 | ac_ext=c
|
---|
3983 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3987 |
|
---|
3988 | depcc="$CC" am_compiler_list=
|
---|
3989 |
|
---|
3990 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
3991 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
3992 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
---|
3993 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3994 | else
|
---|
3995 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
3996 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
3997 | # making bogus files that we don't know about and never remove. For
|
---|
3998 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
3999 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
4000 | # in D'.
|
---|
4001 | mkdir conftest.dir
|
---|
4002 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4003 | # using a relative directory.
|
---|
4004 | cp "$am_depcomp" conftest.dir
|
---|
4005 | cd conftest.dir
|
---|
4006 | # We will build objects and dependencies in a subdirectory because
|
---|
4007 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4008 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4009 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4010 | # the current directory while Tru64 will put them in the object
|
---|
4011 | # directory.
|
---|
4012 | mkdir sub
|
---|
4013 |
|
---|
4014 | am_cv_CC_dependencies_compiler_type=none
|
---|
4015 | if test "$am_compiler_list" = ""; then
|
---|
4016 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4017 | fi
|
---|
4018 | for depmode in $am_compiler_list; do
|
---|
4019 | # Setup a source with many dependencies, because some compilers
|
---|
4020 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4021 | # we should not choose a depcomp mode which is confused by this.
|
---|
4022 | #
|
---|
4023 | # We need to recreate these files for each test, as the compiler may
|
---|
4024 | # overwrite some of them when testing with obscure command lines.
|
---|
4025 | # This happens at least with the AIX C compiler.
|
---|
4026 | : > sub/conftest.c
|
---|
4027 | for i in 1 2 3 4 5 6; do
|
---|
4028 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4029 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
---|
4030 | # Solaris 8's {/usr,}/bin/sh.
|
---|
4031 | touch sub/conftst$i.h
|
---|
4032 | done
|
---|
4033 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4034 |
|
---|
4035 | case $depmode in
|
---|
4036 | nosideeffect)
|
---|
4037 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
4038 | # only be used when explicitly requested
|
---|
4039 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4040 | continue
|
---|
4041 | else
|
---|
4042 | break
|
---|
4043 | fi
|
---|
4044 | ;;
|
---|
4045 | none) break ;;
|
---|
4046 | esac
|
---|
4047 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
4048 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4049 | # handle `-M -o', and we need to detect this.
|
---|
4050 | if depmode=$depmode \
|
---|
4051 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
---|
4052 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4053 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
---|
4054 | >/dev/null 2>conftest.err &&
|
---|
4055 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4056 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4057 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4058 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4059 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4060 | # that says an option was ignored or not supported.
|
---|
4061 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
4062 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4063 | # The diagnosis changed in icc 8.0:
|
---|
4064 | # icc: Command line remark: option '-MP' not supported
|
---|
4065 | if (grep 'ignoring option' conftest.err ||
|
---|
4066 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4067 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
4068 | break
|
---|
4069 | fi
|
---|
4070 | fi
|
---|
4071 | done
|
---|
4072 |
|
---|
4073 | cd ..
|
---|
4074 | rm -rf conftest.dir
|
---|
4075 | else
|
---|
4076 | am_cv_CC_dependencies_compiler_type=none
|
---|
4077 | fi
|
---|
4078 |
|
---|
4079 | fi
|
---|
4080 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
4081 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
---|
4082 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
4083 |
|
---|
4084 |
|
---|
4085 |
|
---|
4086 | if
|
---|
4087 | test "x$enable_dependency_tracking" != xno \
|
---|
4088 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
4089 | am__fastdepCC_TRUE=
|
---|
4090 | am__fastdepCC_FALSE='#'
|
---|
4091 | else
|
---|
4092 | am__fastdepCC_TRUE='#'
|
---|
4093 | am__fastdepCC_FALSE=
|
---|
4094 | fi
|
---|
4095 |
|
---|
4096 |
|
---|
4097 | # Find a good install program. We prefer a C program (faster),
|
---|
4098 | # so one script is as good as another. But avoid the broken or
|
---|
4099 | # incompatible versions:
|
---|
4100 | # SysV /etc/install, /usr/sbin/install
|
---|
4101 | # SunOS /usr/etc/install
|
---|
4102 | # IRIX /sbin/install
|
---|
4103 | # AIX /bin/install
|
---|
4104 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
4105 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4106 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4107 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4108 | # OS/2's system install, which has a completely different semantic
|
---|
4109 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4110 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
4111 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
4112 | if test -z "$INSTALL"; then
|
---|
4113 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4114 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4115 | else
|
---|
4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4117 | for as_dir in $PATH
|
---|
4118 | do
|
---|
4119 | IFS=$as_save_IFS
|
---|
4120 | test -z "$as_dir" && as_dir=.
|
---|
4121 | # Account for people who put trailing slashes in PATH elements.
|
---|
4122 | case $as_dir/ in
|
---|
4123 | ./ | .// | /cC/* | \
|
---|
4124 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
4125 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
4126 | /usr/ucb/* ) ;;
|
---|
4127 | *)
|
---|
4128 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4129 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4130 | # by default.
|
---|
4131 | for ac_prog in ginstall scoinst install; do
|
---|
4132 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4133 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
4134 | if test $ac_prog = install &&
|
---|
4135 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4136 | # AIX install. It has an incompatible calling convention.
|
---|
4137 | :
|
---|
4138 | elif test $ac_prog = install &&
|
---|
4139 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4140 | # program-specific install script used by HP pwplus--don't use.
|
---|
4141 | :
|
---|
4142 | else
|
---|
4143 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
4144 | break 3
|
---|
4145 | fi
|
---|
4146 | fi
|
---|
4147 | done
|
---|
4148 | done
|
---|
4149 | ;;
|
---|
4150 | esac
|
---|
4151 | done
|
---|
4152 |
|
---|
4153 |
|
---|
4154 | fi
|
---|
4155 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4156 | INSTALL=$ac_cv_path_install
|
---|
4157 | else
|
---|
4158 | # As a last resort, use the slow shell script. We don't cache a
|
---|
4159 | # path for INSTALL within a source directory, because that will
|
---|
4160 | # break other packages using the cache if that directory is
|
---|
4161 | # removed, or if the path is relative.
|
---|
4162 | INSTALL=$ac_install_sh
|
---|
4163 | fi
|
---|
4164 | fi
|
---|
4165 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
4166 | echo "${ECHO_T}$INSTALL" >&6
|
---|
4167 |
|
---|
4168 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4169 | # It thinks the first close brace ends the variable substitution.
|
---|
4170 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4171 |
|
---|
4172 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
4173 |
|
---|
4174 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4175 |
|
---|
4176 | ac_ext=c
|
---|
4177 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4181 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
4182 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
4183 | # On Suns, sometimes $CPP names a directory.
|
---|
4184 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4185 | CPP=
|
---|
4186 | fi
|
---|
4187 | if test -z "$CPP"; then
|
---|
4188 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4190 | else
|
---|
4191 | # Double quotes because CPP needs to be expanded
|
---|
4192 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4193 | do
|
---|
4194 | ac_preproc_ok=false
|
---|
4195 | for ac_c_preproc_warn_flag in '' yes
|
---|
4196 | do
|
---|
4197 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4198 | # with a fresh cross-compiler works.
|
---|
4199 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4200 | # <limits.h> exists even on freestanding compilers.
|
---|
4201 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4202 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4203 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4204 | /* confdefs.h. */
|
---|
4205 | _ACEOF
|
---|
4206 | cat confdefs.h >>conftest.$ac_ext
|
---|
4207 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4208 | /* end confdefs.h. */
|
---|
4209 | #ifdef __STDC__
|
---|
4210 | # include <limits.h>
|
---|
4211 | #else
|
---|
4212 | # include <assert.h>
|
---|
4213 | #endif
|
---|
4214 | Syntax error
|
---|
4215 | _ACEOF
|
---|
4216 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4217 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4218 | ac_status=$?
|
---|
4219 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4220 | rm -f conftest.er1
|
---|
4221 | cat conftest.err >&5
|
---|
4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4223 | (exit $ac_status); } >/dev/null; then
|
---|
4224 | if test -s conftest.err; then
|
---|
4225 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4226 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4227 | else
|
---|
4228 | ac_cpp_err=
|
---|
4229 | fi
|
---|
4230 | else
|
---|
4231 | ac_cpp_err=yes
|
---|
4232 | fi
|
---|
4233 | if test -z "$ac_cpp_err"; then
|
---|
4234 | :
|
---|
4235 | else
|
---|
4236 | echo "$as_me: failed program was:" >&5
|
---|
4237 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4238 |
|
---|
4239 | # Broken: fails on valid input.
|
---|
4240 | continue
|
---|
4241 | fi
|
---|
4242 | rm -f conftest.err conftest.$ac_ext
|
---|
4243 |
|
---|
4244 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
4245 | # can be detected and how.
|
---|
4246 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4247 | /* confdefs.h. */
|
---|
4248 | _ACEOF
|
---|
4249 | cat confdefs.h >>conftest.$ac_ext
|
---|
4250 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4251 | /* end confdefs.h. */
|
---|
4252 | #include <ac_nonexistent.h>
|
---|
4253 | _ACEOF
|
---|
4254 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4255 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4256 | ac_status=$?
|
---|
4257 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4258 | rm -f conftest.er1
|
---|
4259 | cat conftest.err >&5
|
---|
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4261 | (exit $ac_status); } >/dev/null; then
|
---|
4262 | if test -s conftest.err; then
|
---|
4263 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4264 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4265 | else
|
---|
4266 | ac_cpp_err=
|
---|
4267 | fi
|
---|
4268 | else
|
---|
4269 | ac_cpp_err=yes
|
---|
4270 | fi
|
---|
4271 | if test -z "$ac_cpp_err"; then
|
---|
4272 | # Broken: success on invalid input.
|
---|
4273 | continue
|
---|
4274 | else
|
---|
4275 | echo "$as_me: failed program was:" >&5
|
---|
4276 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4277 |
|
---|
4278 | # Passes both tests.
|
---|
4279 | ac_preproc_ok=:
|
---|
4280 | break
|
---|
4281 | fi
|
---|
4282 | rm -f conftest.err conftest.$ac_ext
|
---|
4283 |
|
---|
4284 | done
|
---|
4285 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4286 | rm -f conftest.err conftest.$ac_ext
|
---|
4287 | if $ac_preproc_ok; then
|
---|
4288 | break
|
---|
4289 | fi
|
---|
4290 |
|
---|
4291 | done
|
---|
4292 | ac_cv_prog_CPP=$CPP
|
---|
4293 |
|
---|
4294 | fi
|
---|
4295 | CPP=$ac_cv_prog_CPP
|
---|
4296 | else
|
---|
4297 | ac_cv_prog_CPP=$CPP
|
---|
4298 | fi
|
---|
4299 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
4300 | echo "${ECHO_T}$CPP" >&6
|
---|
4301 | ac_preproc_ok=false
|
---|
4302 | for ac_c_preproc_warn_flag in '' yes
|
---|
4303 | do
|
---|
4304 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4305 | # with a fresh cross-compiler works.
|
---|
4306 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4307 | # <limits.h> exists even on freestanding compilers.
|
---|
4308 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4309 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4310 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4311 | /* confdefs.h. */
|
---|
4312 | _ACEOF
|
---|
4313 | cat confdefs.h >>conftest.$ac_ext
|
---|
4314 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4315 | /* end confdefs.h. */
|
---|
4316 | #ifdef __STDC__
|
---|
4317 | # include <limits.h>
|
---|
4318 | #else
|
---|
4319 | # include <assert.h>
|
---|
4320 | #endif
|
---|
4321 | Syntax error
|
---|
4322 | _ACEOF
|
---|
4323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4325 | ac_status=$?
|
---|
4326 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4327 | rm -f conftest.er1
|
---|
4328 | cat conftest.err >&5
|
---|
4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4330 | (exit $ac_status); } >/dev/null; then
|
---|
4331 | if test -s conftest.err; then
|
---|
4332 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4334 | else
|
---|
4335 | ac_cpp_err=
|
---|
4336 | fi
|
---|
4337 | else
|
---|
4338 | ac_cpp_err=yes
|
---|
4339 | fi
|
---|
4340 | if test -z "$ac_cpp_err"; then
|
---|
4341 | :
|
---|
4342 | else
|
---|
4343 | echo "$as_me: failed program was:" >&5
|
---|
4344 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4345 |
|
---|
4346 | # Broken: fails on valid input.
|
---|
4347 | continue
|
---|
4348 | fi
|
---|
4349 | rm -f conftest.err conftest.$ac_ext
|
---|
4350 |
|
---|
4351 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
4352 | # can be detected and how.
|
---|
4353 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4354 | /* confdefs.h. */
|
---|
4355 | _ACEOF
|
---|
4356 | cat confdefs.h >>conftest.$ac_ext
|
---|
4357 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4358 | /* end confdefs.h. */
|
---|
4359 | #include <ac_nonexistent.h>
|
---|
4360 | _ACEOF
|
---|
4361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4363 | ac_status=$?
|
---|
4364 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4365 | rm -f conftest.er1
|
---|
4366 | cat conftest.err >&5
|
---|
4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4368 | (exit $ac_status); } >/dev/null; then
|
---|
4369 | if test -s conftest.err; then
|
---|
4370 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4372 | else
|
---|
4373 | ac_cpp_err=
|
---|
4374 | fi
|
---|
4375 | else
|
---|
4376 | ac_cpp_err=yes
|
---|
4377 | fi
|
---|
4378 | if test -z "$ac_cpp_err"; then
|
---|
4379 | # Broken: success on invalid input.
|
---|
4380 | continue
|
---|
4381 | else
|
---|
4382 | echo "$as_me: failed program was:" >&5
|
---|
4383 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4384 |
|
---|
4385 | # Passes both tests.
|
---|
4386 | ac_preproc_ok=:
|
---|
4387 | break
|
---|
4388 | fi
|
---|
4389 | rm -f conftest.err conftest.$ac_ext
|
---|
4390 |
|
---|
4391 | done
|
---|
4392 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4393 | rm -f conftest.err conftest.$ac_ext
|
---|
4394 | if $ac_preproc_ok; then
|
---|
4395 | :
|
---|
4396 | else
|
---|
4397 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4398 | See \`config.log' for more details." >&5
|
---|
4399 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4400 | See \`config.log' for more details." >&2;}
|
---|
4401 | { (exit 1); exit 1; }; }
|
---|
4402 | fi
|
---|
4403 |
|
---|
4404 | ac_ext=c
|
---|
4405 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4409 |
|
---|
4410 | # Extract the first word of "rm", so it can be a program name with args.
|
---|
4411 | set dummy rm; ac_word=$2
|
---|
4412 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4414 | if test "${ac_cv_path_RM+set}" = set; then
|
---|
4415 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4416 | else
|
---|
4417 | case $RM in
|
---|
4418 | [\\/]* | ?:[\\/]*)
|
---|
4419 | ac_cv_path_RM="$RM" # Let the user override the test with a path.
|
---|
4420 | ;;
|
---|
4421 | *)
|
---|
4422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4423 | for as_dir in $PATH
|
---|
4424 | do
|
---|
4425 | IFS=$as_save_IFS
|
---|
4426 | test -z "$as_dir" && as_dir=.
|
---|
4427 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4429 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
|
---|
4430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4431 | break 2
|
---|
4432 | fi
|
---|
4433 | done
|
---|
4434 | done
|
---|
4435 |
|
---|
4436 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
|
---|
4437 | ;;
|
---|
4438 | esac
|
---|
4439 | fi
|
---|
4440 | RM=$ac_cv_path_RM
|
---|
4441 |
|
---|
4442 | if test -n "$RM"; then
|
---|
4443 | echo "$as_me:$LINENO: result: $RM" >&5
|
---|
4444 | echo "${ECHO_T}$RM" >&6
|
---|
4445 | else
|
---|
4446 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4447 | echo "${ECHO_T}no" >&6
|
---|
4448 | fi
|
---|
4449 |
|
---|
4450 | # Extract the first word of "mv", so it can be a program name with args.
|
---|
4451 | set dummy mv; ac_word=$2
|
---|
4452 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4454 | if test "${ac_cv_path_MV+set}" = set; then
|
---|
4455 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4456 | else
|
---|
4457 | case $MV in
|
---|
4458 | [\\/]* | ?:[\\/]*)
|
---|
4459 | ac_cv_path_MV="$MV" # Let the user override the test with a path.
|
---|
4460 | ;;
|
---|
4461 | *)
|
---|
4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4463 | for as_dir in $PATH
|
---|
4464 | do
|
---|
4465 | IFS=$as_save_IFS
|
---|
4466 | test -z "$as_dir" && as_dir=.
|
---|
4467 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4469 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
|
---|
4470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4471 | break 2
|
---|
4472 | fi
|
---|
4473 | done
|
---|
4474 | done
|
---|
4475 |
|
---|
4476 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
|
---|
4477 | ;;
|
---|
4478 | esac
|
---|
4479 | fi
|
---|
4480 | MV=$ac_cv_path_MV
|
---|
4481 |
|
---|
4482 | if test -n "$MV"; then
|
---|
4483 | echo "$as_me:$LINENO: result: $MV" >&5
|
---|
4484 | echo "${ECHO_T}$MV" >&6
|
---|
4485 | else
|
---|
4486 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4487 | echo "${ECHO_T}no" >&6
|
---|
4488 | fi
|
---|
4489 |
|
---|
4490 | # Extract the first word of "tar", so it can be a program name with args.
|
---|
4491 | set dummy tar; ac_word=$2
|
---|
4492 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
4493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
4494 | if test "${ac_cv_path_TAR+set}" = set; then
|
---|
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4496 | else
|
---|
4497 | case $TAR in
|
---|
4498 | [\\/]* | ?:[\\/]*)
|
---|
4499 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
|
---|
4500 | ;;
|
---|
4501 | *)
|
---|
4502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4503 | for as_dir in $PATH
|
---|
4504 | do
|
---|
4505 | IFS=$as_save_IFS
|
---|
4506 | test -z "$as_dir" && as_dir=.
|
---|
4507 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4509 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
|
---|
4510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4511 | break 2
|
---|
4512 | fi
|
---|
4513 | done
|
---|
4514 | done
|
---|
4515 |
|
---|
4516 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
|
---|
4517 | ;;
|
---|
4518 | esac
|
---|
4519 | fi
|
---|
4520 | TAR=$ac_cv_path_TAR
|
---|
4521 |
|
---|
4522 | if test -n "$TAR"; then
|
---|
4523 | echo "$as_me:$LINENO: result: $TAR" >&5
|
---|
4524 | echo "${ECHO_T}$TAR" >&6
|
---|
4525 | else
|
---|
4526 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4527 | echo "${ECHO_T}no" >&6
|
---|
4528 | fi
|
---|
4529 |
|
---|
4530 |
|
---|
4531 |
|
---|
4532 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
4533 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
4534 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
4535 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4536 | else
|
---|
4537 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
4538 | then ac_cv_prog_egrep='grep -E'
|
---|
4539 | else ac_cv_prog_egrep='egrep'
|
---|
4540 | fi
|
---|
4541 | fi
|
---|
4542 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
4543 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
4544 | EGREP=$ac_cv_prog_egrep
|
---|
4545 |
|
---|
4546 |
|
---|
4547 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
4548 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
4549 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4551 | else
|
---|
4552 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4553 | /* confdefs.h. */
|
---|
4554 | _ACEOF
|
---|
4555 | cat confdefs.h >>conftest.$ac_ext
|
---|
4556 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4557 | /* end confdefs.h. */
|
---|
4558 | #include <stdlib.h>
|
---|
4559 | #include <stdarg.h>
|
---|
4560 | #include <string.h>
|
---|
4561 | #include <float.h>
|
---|
4562 |
|
---|
4563 | int
|
---|
4564 | main ()
|
---|
4565 | {
|
---|
4566 |
|
---|
4567 | ;
|
---|
4568 | return 0;
|
---|
4569 | }
|
---|
4570 | _ACEOF
|
---|
4571 | rm -f conftest.$ac_objext
|
---|
4572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4573 | (eval $ac_compile) 2>conftest.er1
|
---|
4574 | ac_status=$?
|
---|
4575 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4576 | rm -f conftest.er1
|
---|
4577 | cat conftest.err >&5
|
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4579 | (exit $ac_status); } &&
|
---|
4580 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4581 | || test ! -s conftest.err'
|
---|
4582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4583 | (eval $ac_try) 2>&5
|
---|
4584 | ac_status=$?
|
---|
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4586 | (exit $ac_status); }; } &&
|
---|
4587 | { ac_try='test -s conftest.$ac_objext'
|
---|
4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4589 | (eval $ac_try) 2>&5
|
---|
4590 | ac_status=$?
|
---|
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4592 | (exit $ac_status); }; }; then
|
---|
4593 | ac_cv_header_stdc=yes
|
---|
4594 | else
|
---|
4595 | echo "$as_me: failed program was:" >&5
|
---|
4596 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4597 |
|
---|
4598 | ac_cv_header_stdc=no
|
---|
4599 | fi
|
---|
4600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4601 |
|
---|
4602 | if test $ac_cv_header_stdc = yes; then
|
---|
4603 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4605 | /* confdefs.h. */
|
---|
4606 | _ACEOF
|
---|
4607 | cat confdefs.h >>conftest.$ac_ext
|
---|
4608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4609 | /* end confdefs.h. */
|
---|
4610 | #include <string.h>
|
---|
4611 |
|
---|
4612 | _ACEOF
|
---|
4613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4614 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
4615 | :
|
---|
4616 | else
|
---|
4617 | ac_cv_header_stdc=no
|
---|
4618 | fi
|
---|
4619 | rm -f conftest*
|
---|
4620 |
|
---|
4621 | fi
|
---|
4622 |
|
---|
4623 | if test $ac_cv_header_stdc = yes; then
|
---|
4624 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4625 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4626 | /* confdefs.h. */
|
---|
4627 | _ACEOF
|
---|
4628 | cat confdefs.h >>conftest.$ac_ext
|
---|
4629 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4630 | /* end confdefs.h. */
|
---|
4631 | #include <stdlib.h>
|
---|
4632 |
|
---|
4633 | _ACEOF
|
---|
4634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4635 | $EGREP "free" >/dev/null 2>&1; then
|
---|
4636 | :
|
---|
4637 | else
|
---|
4638 | ac_cv_header_stdc=no
|
---|
4639 | fi
|
---|
4640 | rm -f conftest*
|
---|
4641 |
|
---|
4642 | fi
|
---|
4643 |
|
---|
4644 | if test $ac_cv_header_stdc = yes; then
|
---|
4645 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4646 | if test "$cross_compiling" = yes; then
|
---|
4647 | :
|
---|
4648 | else
|
---|
4649 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4650 | /* confdefs.h. */
|
---|
4651 | _ACEOF
|
---|
4652 | cat confdefs.h >>conftest.$ac_ext
|
---|
4653 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4654 | /* end confdefs.h. */
|
---|
4655 | #include <ctype.h>
|
---|
4656 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4657 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4658 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4659 | #else
|
---|
4660 | # define ISLOWER(c) \
|
---|
4661 | (('a' <= (c) && (c) <= 'i') \
|
---|
4662 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4663 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4664 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4665 | #endif
|
---|
4666 |
|
---|
4667 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4668 | int
|
---|
4669 | main ()
|
---|
4670 | {
|
---|
4671 | int i;
|
---|
4672 | for (i = 0; i < 256; i++)
|
---|
4673 | if (XOR (islower (i), ISLOWER (i))
|
---|
4674 | || toupper (i) != TOUPPER (i))
|
---|
4675 | exit(2);
|
---|
4676 | exit (0);
|
---|
4677 | }
|
---|
4678 | _ACEOF
|
---|
4679 | rm -f conftest$ac_exeext
|
---|
4680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4681 | (eval $ac_link) 2>&5
|
---|
4682 | ac_status=$?
|
---|
4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
4685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4686 | (eval $ac_try) 2>&5
|
---|
4687 | ac_status=$?
|
---|
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4689 | (exit $ac_status); }; }; then
|
---|
4690 | :
|
---|
4691 | else
|
---|
4692 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
4693 | echo "$as_me: failed program was:" >&5
|
---|
4694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4695 |
|
---|
4696 | ( exit $ac_status )
|
---|
4697 | ac_cv_header_stdc=no
|
---|
4698 | fi
|
---|
4699 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
4700 | fi
|
---|
4701 | fi
|
---|
4702 | fi
|
---|
4703 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
4704 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
4705 | if test $ac_cv_header_stdc = yes; then
|
---|
4706 |
|
---|
4707 | cat >>confdefs.h <<\_ACEOF
|
---|
4708 | #define STDC_HEADERS 1
|
---|
4709 | _ACEOF
|
---|
4710 |
|
---|
4711 | fi
|
---|
4712 |
|
---|
4713 | # Check whether --enable-shared or --disable-shared was given.
|
---|
4714 | if test "${enable_shared+set}" = set; then
|
---|
4715 | enableval="$enable_shared"
|
---|
4716 | p=${PACKAGE-default}
|
---|
4717 | case $enableval in
|
---|
4718 | yes) enable_shared=yes ;;
|
---|
4719 | no) enable_shared=no ;;
|
---|
4720 | *)
|
---|
4721 | enable_shared=no
|
---|
4722 | # Look at the argument we got. We use all the common list separators.
|
---|
4723 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
---|
4724 | for pkg in $enableval; do
|
---|
4725 | IFS="$lt_save_ifs"
|
---|
4726 | if test "X$pkg" = "X$p"; then
|
---|
4727 | enable_shared=yes
|
---|
4728 | fi
|
---|
4729 | done
|
---|
4730 | IFS="$lt_save_ifs"
|
---|
4731 | ;;
|
---|
4732 | esac
|
---|
4733 | else
|
---|
4734 | enable_shared=yes
|
---|
4735 | fi;
|
---|
4736 |
|
---|
4737 | # Check whether --enable-static or --disable-static was given.
|
---|
4738 | if test "${enable_static+set}" = set; then
|
---|
4739 | enableval="$enable_static"
|
---|
4740 | p=${PACKAGE-default}
|
---|
4741 | case $enableval in
|
---|
4742 | yes) enable_static=yes ;;
|
---|
4743 | no) enable_static=no ;;
|
---|
4744 | *)
|
---|
4745 | enable_static=no
|
---|
4746 | # Look at the argument we got. We use all the common list separators.
|
---|
4747 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
---|
4748 | for pkg in $enableval; do
|
---|
4749 | IFS="$lt_save_ifs"
|
---|
4750 | if test "X$pkg" = "X$p"; then
|
---|
4751 | enable_static=yes
|
---|
4752 | fi
|
---|
4753 | done
|
---|
4754 | IFS="$lt_save_ifs"
|
---|
4755 | ;;
|
---|
4756 | esac
|
---|
4757 | else
|
---|
4758 | enable_static=yes
|
---|
4759 | fi;
|
---|
4760 |
|
---|
4761 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
4762 | if test "${enable_fast_install+set}" = set; then
|
---|
4763 | enableval="$enable_fast_install"
|
---|
4764 | p=${PACKAGE-default}
|
---|
4765 | case $enableval in
|
---|
4766 | yes) enable_fast_install=yes ;;
|
---|
4767 | no) enable_fast_install=no ;;
|
---|
4768 | *)
|
---|
4769 | enable_fast_install=no
|
---|
4770 | # Look at the argument we got. We use all the common list separators.
|
---|
4771 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
---|
4772 | for pkg in $enableval; do
|
---|
4773 | IFS="$lt_save_ifs"
|
---|
4774 | if test "X$pkg" = "X$p"; then
|
---|
4775 | enable_fast_install=yes
|
---|
4776 | fi
|
---|
4777 | done
|
---|
4778 | IFS="$lt_save_ifs"
|
---|
4779 | ;;
|
---|
4780 | esac
|
---|
4781 | else
|
---|
4782 | enable_fast_install=yes
|
---|
4783 | fi;
|
---|
4784 |
|
---|
4785 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
---|
4786 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
|
---|
4787 | if test "${lt_cv_path_SED+set}" = set; then
|
---|
4788 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4789 | else
|
---|
4790 | # Loop through the user's path and test for sed and gsed.
|
---|
4791 | # Then use that list of sed's as ones to test for truncation.
|
---|
4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4793 | for as_dir in $PATH
|
---|
4794 | do
|
---|
4795 | IFS=$as_save_IFS
|
---|
4796 | test -z "$as_dir" && as_dir=.
|
---|
4797 | for lt_ac_prog in sed gsed; do
|
---|
4798 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4799 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
---|
4800 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
---|
4801 | fi
|
---|
4802 | done
|
---|
4803 | done
|
---|
4804 | done
|
---|
4805 | IFS=$as_save_IFS
|
---|
4806 | lt_ac_max=0
|
---|
4807 | lt_ac_count=0
|
---|
4808 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
---|
4809 | # along with /bin/sed that truncates output.
|
---|
4810 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
---|
4811 | test ! -f $lt_ac_sed && continue
|
---|
4812 | cat /dev/null > conftest.in
|
---|
4813 | lt_ac_count=0
|
---|
4814 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
---|
4815 | # Check for GNU sed and select it if it is found.
|
---|
4816 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
---|
4817 | lt_cv_path_SED=$lt_ac_sed
|
---|
4818 | break
|
---|
4819 | fi
|
---|
4820 | while true; do
|
---|
4821 | cat conftest.in conftest.in >conftest.tmp
|
---|
4822 | mv conftest.tmp conftest.in
|
---|
4823 | cp conftest.in conftest.nl
|
---|
4824 | echo >>conftest.nl
|
---|
4825 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
---|
4826 | cmp -s conftest.out conftest.nl || break
|
---|
4827 | # 10000 chars as input seems more than enough
|
---|
4828 | test $lt_ac_count -gt 10 && break
|
---|
4829 | lt_ac_count=`expr $lt_ac_count + 1`
|
---|
4830 | if test $lt_ac_count -gt $lt_ac_max; then
|
---|
4831 | lt_ac_max=$lt_ac_count
|
---|
4832 | lt_cv_path_SED=$lt_ac_sed
|
---|
4833 | fi
|
---|
4834 | done
|
---|
4835 | done
|
---|
4836 |
|
---|
4837 | fi
|
---|
4838 |
|
---|
4839 | SED=$lt_cv_path_SED
|
---|
4840 |
|
---|
4841 | echo "$as_me:$LINENO: result: $SED" >&5
|
---|
4842 | echo "${ECHO_T}$SED" >&6
|
---|
4843 |
|
---|
4844 |
|
---|
4845 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
4846 | if test "${with_gnu_ld+set}" = set; then
|
---|
4847 | withval="$with_gnu_ld"
|
---|
4848 | test "$withval" = no || with_gnu_ld=yes
|
---|
4849 | else
|
---|
4850 | with_gnu_ld=no
|
---|
4851 | fi;
|
---|
4852 | ac_prog=ld
|
---|
4853 | if test "$GCC" = yes; then
|
---|
4854 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
4855 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
---|
4856 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
|
---|
4857 | case $host in
|
---|
4858 | *-*-mingw*)
|
---|
4859 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
4860 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
4861 | *)
|
---|
4862 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
4863 | esac
|
---|
4864 | case $ac_prog in
|
---|
4865 | # Accept absolute paths.
|
---|
4866 | [\\/]* | ?:[\\/]*)
|
---|
4867 | re_direlt='/[^/][^/]*/\.\./'
|
---|
4868 | # Canonicalize the pathname of ld
|
---|
4869 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
---|
4870 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
4871 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
4872 | done
|
---|
4873 | test -z "$LD" && LD="$ac_prog"
|
---|
4874 | ;;
|
---|
4875 | "")
|
---|
4876 | # If it fails, then pretend we aren't using GCC.
|
---|
4877 | ac_prog=ld
|
---|
4878 | ;;
|
---|
4879 | *)
|
---|
4880 | # If it is relative, then search for the first ld in PATH.
|
---|
4881 | with_gnu_ld=unknown
|
---|
4882 | ;;
|
---|
4883 | esac
|
---|
4884 | elif test "$with_gnu_ld" = yes; then
|
---|
4885 | echo "$as_me:$LINENO: checking for GNU ld" >&5
|
---|
4886 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
---|
4887 | else
|
---|
4888 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
---|
4889 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
---|
4890 | fi
|
---|
4891 | if test "${lt_cv_path_LD+set}" = set; then
|
---|
4892 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4893 | else
|
---|
4894 | if test -z "$LD"; then
|
---|
4895 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
---|
4896 | for ac_dir in $PATH; do
|
---|
4897 | IFS="$lt_save_ifs"
|
---|
4898 | test -z "$ac_dir" && ac_dir=.
|
---|
4899 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
4900 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
4901 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
4902 | # but apparently some variants of GNU ld only accept -v.
|
---|
4903 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
4904 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
4905 | *GNU* | *'with BFD'*)
|
---|
4906 | test "$with_gnu_ld" != no && break
|
---|
4907 | ;;
|
---|
4908 | *)
|
---|
4909 | test "$with_gnu_ld" != yes && break
|
---|
4910 | ;;
|
---|
4911 | esac
|
---|
4912 | fi
|
---|
4913 | done
|
---|
4914 | IFS="$lt_save_ifs"
|
---|
4915 | else
|
---|
4916 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
4917 | fi
|
---|
4918 | fi
|
---|
4919 |
|
---|
4920 | LD="$lt_cv_path_LD"
|
---|
4921 | if test -n "$LD"; then
|
---|
4922 | echo "$as_me:$LINENO: result: $LD" >&5
|
---|
4923 | echo "${ECHO_T}$LD" >&6
|
---|
4924 | else
|
---|
4925 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4926 | echo "${ECHO_T}no" >&6
|
---|
4927 | fi
|
---|
4928 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
---|
4929 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
---|
4930 | { (exit 1); exit 1; }; }
|
---|
4931 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
---|
4932 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
---|
4933 | if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
---|
4934 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4935 | else
|
---|
4936 | # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
4937 | case `$LD -v 2>&1 </dev/null` in
|
---|
4938 | *GNU* | *'with BFD'*)
|
---|
4939 | lt_cv_prog_gnu_ld=yes
|
---|
4940 | ;;
|
---|
4941 | *)
|
---|
4942 | lt_cv_prog_gnu_ld=no
|
---|
4943 | ;;
|
---|
4944 | esac
|
---|
4945 | fi
|
---|
4946 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
---|
4947 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
|
---|
4948 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
4949 |
|
---|
4950 |
|
---|
4951 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
---|
4952 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
|
---|
4953 | if test "${lt_cv_ld_reload_flag+set}" = set; then
|
---|
4954 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4955 | else
|
---|
4956 | lt_cv_ld_reload_flag='-r'
|
---|
4957 | fi
|
---|
4958 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
---|
4959 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
|
---|
4960 | reload_flag=$lt_cv_ld_reload_flag
|
---|
4961 | case $reload_flag in
|
---|
4962 | "" | " "*) ;;
|
---|
4963 | *) reload_flag=" $reload_flag" ;;
|
---|
4964 | esac
|
---|
4965 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
4966 | case $host_os in
|
---|
4967 | darwin*)
|
---|
4968 | if test "$GCC" = yes; then
|
---|
4969 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
---|
4970 | else
|
---|
4971 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
4972 | fi
|
---|
4973 | ;;
|
---|
4974 | esac
|
---|
4975 |
|
---|
4976 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
|
---|
4977 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
|
---|
4978 | if test "${lt_cv_path_NM+set}" = set; then
|
---|
4979 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4980 | else
|
---|
4981 | if test -n "$NM"; then
|
---|
4982 | # Let the user override the test.
|
---|
4983 | lt_cv_path_NM="$NM"
|
---|
4984 | else
|
---|
4985 | lt_nm_to_check="${ac_tool_prefix}nm"
|
---|
4986 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
4987 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
4988 | fi
|
---|
4989 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
4990 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
---|
4991 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
4992 | IFS="$lt_save_ifs"
|
---|
4993 | test -z "$ac_dir" && ac_dir=.
|
---|
4994 | tmp_nm="$ac_dir/$lt_tmp_nm"
|
---|
4995 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
---|
4996 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
4997 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
4998 | # nm: unknown option "B" ignored
|
---|
4999 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
5000 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
---|
5001 | */dev/null* | *'Invalid file or object type'*)
|
---|
5002 | lt_cv_path_NM="$tmp_nm -B"
|
---|
5003 | break
|
---|
5004 | ;;
|
---|
5005 | *)
|
---|
5006 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
---|
5007 | */dev/null*)
|
---|
5008 | lt_cv_path_NM="$tmp_nm -p"
|
---|
5009 | break
|
---|
5010 | ;;
|
---|
5011 | *)
|
---|
5012 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
5013 | continue # so that we can try to find one that supports BSD flags
|
---|
5014 | ;;
|
---|
5015 | esac
|
---|
5016 | ;;
|
---|
5017 | esac
|
---|
5018 | fi
|
---|
5019 | done
|
---|
5020 | IFS="$lt_save_ifs"
|
---|
5021 | done
|
---|
5022 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
5023 | fi
|
---|
5024 | fi
|
---|
5025 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
---|
5026 | echo "${ECHO_T}$lt_cv_path_NM" >&6
|
---|
5027 | NM="$lt_cv_path_NM"
|
---|
5028 |
|
---|
5029 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
5030 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
5031 | LN_S=$as_ln_s
|
---|
5032 | if test "$LN_S" = "ln -s"; then
|
---|
5033 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
5034 | echo "${ECHO_T}yes" >&6
|
---|
5035 | else
|
---|
5036 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
5037 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
5038 | fi
|
---|
5039 |
|
---|
5040 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
|
---|
5041 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
|
---|
5042 | if test "${lt_cv_deplibs_check_method+set}" = set; then
|
---|
5043 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5044 | else
|
---|
5045 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
5046 | lt_cv_file_magic_test_file=
|
---|
5047 | lt_cv_deplibs_check_method='unknown'
|
---|
5048 | # Need to set the preceding variable on all platforms that support
|
---|
5049 | # interlibrary dependencies.
|
---|
5050 | # 'none' -- dependencies not supported.
|
---|
5051 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
5052 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
5053 | # 'test_compile' -- check by making test program.
|
---|
5054 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
5055 | # which responds to the $file_magic_cmd with a given extended regex.
|
---|
5056 | # If you have `file' or equivalent on your system and you're not sure
|
---|
5057 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
5058 |
|
---|
5059 | case $host_os in
|
---|
5060 | aix4* | aix5*)
|
---|
5061 | lt_cv_deplibs_check_method=pass_all
|
---|
5062 | ;;
|
---|
5063 |
|
---|
5064 | beos*)
|
---|
5065 | lt_cv_deplibs_check_method=pass_all
|
---|
5066 | ;;
|
---|
5067 |
|
---|
5068 | bsdi[45]*)
|
---|
5069 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
5070 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
5071 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
5072 | ;;
|
---|
5073 |
|
---|
5074 | cygwin*)
|
---|
5075 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
5076 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
5077 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
5078 | ;;
|
---|
5079 |
|
---|
5080 | mingw* | pw32*)
|
---|
5081 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
5082 | # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
---|
5083 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
5084 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
5085 | ;;
|
---|
5086 |
|
---|
5087 | darwin* | rhapsody*)
|
---|
5088 | lt_cv_deplibs_check_method=pass_all
|
---|
5089 | ;;
|
---|
5090 |
|
---|
5091 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
5092 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
5093 | case $host_cpu in
|
---|
5094 | i*86 )
|
---|
5095 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
5096 | # Let's accept both of them until this is cleared up.
|
---|
5097 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
5098 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5099 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
5100 | ;;
|
---|
5101 | esac
|
---|
5102 | else
|
---|
5103 | lt_cv_deplibs_check_method=pass_all
|
---|
5104 | fi
|
---|
5105 | ;;
|
---|
5106 |
|
---|
5107 | gnu*)
|
---|
5108 | lt_cv_deplibs_check_method=pass_all
|
---|
5109 | ;;
|
---|
5110 |
|
---|
5111 | hpux10.20* | hpux11*)
|
---|
5112 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5113 | case $host_cpu in
|
---|
5114 | ia64*)
|
---|
5115 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
5116 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
5117 | ;;
|
---|
5118 | hppa*64*)
|
---|
5119 | 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]'
|
---|
5120 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
5121 | ;;
|
---|
5122 | *)
|
---|
5123 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
5124 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
5125 | ;;
|
---|
5126 | esac
|
---|
5127 | ;;
|
---|
5128 |
|
---|
5129 | interix3*)
|
---|
5130 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
5131 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
5132 | ;;
|
---|
5133 |
|
---|
5134 | irix5* | irix6* | nonstopux*)
|
---|
5135 | case $LD in
|
---|
5136 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
5137 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
5138 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
5139 | *) libmagic=never-match;;
|
---|
5140 | esac
|
---|
5141 | lt_cv_deplibs_check_method=pass_all
|
---|
5142 | ;;
|
---|
5143 |
|
---|
5144 | # This must be Linux ELF.
|
---|
5145 | linux*)
|
---|
5146 | lt_cv_deplibs_check_method=pass_all
|
---|
5147 | ;;
|
---|
5148 |
|
---|
5149 | netbsd*)
|
---|
5150 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
5151 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5152 | else
|
---|
5153 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
5154 | fi
|
---|
5155 | ;;
|
---|
5156 |
|
---|
5157 | newos6*)
|
---|
5158 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
5159 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5160 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
5161 | ;;
|
---|
5162 |
|
---|
5163 | nto-qnx*)
|
---|
5164 | lt_cv_deplibs_check_method=unknown
|
---|
5165 | ;;
|
---|
5166 |
|
---|
5167 | openbsd*)
|
---|
5168 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
5169 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
5170 | else
|
---|
5171 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5172 | fi
|
---|
5173 | ;;
|
---|
5174 |
|
---|
5175 | osf3* | osf4* | osf5*)
|
---|
5176 | lt_cv_deplibs_check_method=pass_all
|
---|
5177 | ;;
|
---|
5178 |
|
---|
5179 | solaris*)
|
---|
5180 | lt_cv_deplibs_check_method=pass_all
|
---|
5181 | ;;
|
---|
5182 |
|
---|
5183 | sysv4 | sysv4.3*)
|
---|
5184 | case $host_vendor in
|
---|
5185 | motorola)
|
---|
5186 | 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]'
|
---|
5187 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
5188 | ;;
|
---|
5189 | ncr)
|
---|
5190 | lt_cv_deplibs_check_method=pass_all
|
---|
5191 | ;;
|
---|
5192 | sequent)
|
---|
5193 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5194 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
5195 | ;;
|
---|
5196 | sni)
|
---|
5197 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5198 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
5199 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
5200 | ;;
|
---|
5201 | siemens)
|
---|
5202 | lt_cv_deplibs_check_method=pass_all
|
---|
5203 | ;;
|
---|
5204 | pc)
|
---|
5205 | lt_cv_deplibs_check_method=pass_all
|
---|
5206 | ;;
|
---|
5207 | esac
|
---|
5208 | ;;
|
---|
5209 |
|
---|
5210 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
5211 | lt_cv_deplibs_check_method=pass_all
|
---|
5212 | ;;
|
---|
5213 | esac
|
---|
5214 |
|
---|
5215 | fi
|
---|
5216 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
---|
5217 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
|
---|
5218 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
5219 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
5220 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
5221 |
|
---|
5222 |
|
---|
5223 |
|
---|
5224 |
|
---|
5225 | # If no C compiler was specified, use CC.
|
---|
5226 | LTCC=${LTCC-"$CC"}
|
---|
5227 |
|
---|
5228 | # If no C compiler flags were specified, use CFLAGS.
|
---|
5229 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
5230 |
|
---|
5231 | # Allow CC to be a program name with arguments.
|
---|
5232 | compiler=$CC
|
---|
5233 |
|
---|
5234 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
5235 | if test "${enable_libtool_lock+set}" = set; then
|
---|
5236 | enableval="$enable_libtool_lock"
|
---|
5237 |
|
---|
5238 | fi;
|
---|
5239 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
---|
5240 |
|
---|
5241 | # Some flags need to be propagated to the compiler or linker for good
|
---|
5242 | # libtool support.
|
---|
5243 | case $host in
|
---|
5244 | ia64-*-hpux*)
|
---|
5245 | # Find out which ABI we are using.
|
---|
5246 | echo 'int i;' > conftest.$ac_ext
|
---|
5247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5248 | (eval $ac_compile) 2>&5
|
---|
5249 | ac_status=$?
|
---|
5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5251 | (exit $ac_status); }; then
|
---|
5252 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5253 | *ELF-32*)
|
---|
5254 | HPUX_IA64_MODE="32"
|
---|
5255 | ;;
|
---|
5256 | *ELF-64*)
|
---|
5257 | HPUX_IA64_MODE="64"
|
---|
5258 | ;;
|
---|
5259 | esac
|
---|
5260 | fi
|
---|
5261 | rm -rf conftest*
|
---|
5262 | ;;
|
---|
5263 | *-*-irix6*)
|
---|
5264 | # Find out which ABI we are using.
|
---|
5265 | echo '#line 5265 "configure"' > conftest.$ac_ext
|
---|
5266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5267 | (eval $ac_compile) 2>&5
|
---|
5268 | ac_status=$?
|
---|
5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5270 | (exit $ac_status); }; then
|
---|
5271 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
5272 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5273 | *32-bit*)
|
---|
5274 | LD="${LD-ld} -melf32bsmip"
|
---|
5275 | ;;
|
---|
5276 | *N32*)
|
---|
5277 | LD="${LD-ld} -melf32bmipn32"
|
---|
5278 | ;;
|
---|
5279 | *64-bit*)
|
---|
5280 | LD="${LD-ld} -melf64bmip"
|
---|
5281 | ;;
|
---|
5282 | esac
|
---|
5283 | else
|
---|
5284 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5285 | *32-bit*)
|
---|
5286 | LD="${LD-ld} -32"
|
---|
5287 | ;;
|
---|
5288 | *N32*)
|
---|
5289 | LD="${LD-ld} -n32"
|
---|
5290 | ;;
|
---|
5291 | *64-bit*)
|
---|
5292 | LD="${LD-ld} -64"
|
---|
5293 | ;;
|
---|
5294 | esac
|
---|
5295 | fi
|
---|
5296 | fi
|
---|
5297 | rm -rf conftest*
|
---|
5298 | ;;
|
---|
5299 |
|
---|
5300 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
---|
5301 | # Find out which ABI we are using.
|
---|
5302 | echo 'int i;' > conftest.$ac_ext
|
---|
5303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5304 | (eval $ac_compile) 2>&5
|
---|
5305 | ac_status=$?
|
---|
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5307 | (exit $ac_status); }; then
|
---|
5308 | case `/usr/bin/file conftest.o` in
|
---|
5309 | *32-bit*)
|
---|
5310 | case $host in
|
---|
5311 | x86_64-*linux*)
|
---|
5312 | LD="${LD-ld} -m elf_i386"
|
---|
5313 | ;;
|
---|
5314 | ppc64-*linux*|powerpc64-*linux*)
|
---|
5315 | LD="${LD-ld} -m elf32ppclinux"
|
---|
5316 | ;;
|
---|
5317 | s390x-*linux*)
|
---|
5318 | LD="${LD-ld} -m elf_s390"
|
---|
5319 | ;;
|
---|
5320 | sparc64-*linux*)
|
---|
5321 | LD="${LD-ld} -m elf32_sparc"
|
---|
5322 | ;;
|
---|
5323 | esac
|
---|
5324 | ;;
|
---|
5325 | *64-bit*)
|
---|
5326 | case $host in
|
---|
5327 | x86_64-*linux*)
|
---|
5328 | LD="${LD-ld} -m elf_x86_64"
|
---|
5329 | ;;
|
---|
5330 | ppc*-*linux*|powerpc*-*linux*)
|
---|
5331 | LD="${LD-ld} -m elf64ppc"
|
---|
5332 | ;;
|
---|
5333 | s390*-*linux*)
|
---|
5334 | LD="${LD-ld} -m elf64_s390"
|
---|
5335 | ;;
|
---|
5336 | sparc*-*linux*)
|
---|
5337 | LD="${LD-ld} -m elf64_sparc"
|
---|
5338 | ;;
|
---|
5339 | esac
|
---|
5340 | ;;
|
---|
5341 | esac
|
---|
5342 | fi
|
---|
5343 | rm -rf conftest*
|
---|
5344 | ;;
|
---|
5345 |
|
---|
5346 | *-*-sco3.2v5*)
|
---|
5347 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
5348 | SAVE_CFLAGS="$CFLAGS"
|
---|
5349 | CFLAGS="$CFLAGS -belf"
|
---|
5350 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
---|
5351 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
|
---|
5352 | if test "${lt_cv_cc_needs_belf+set}" = set; then
|
---|
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5354 | else
|
---|
5355 | ac_ext=c
|
---|
5356 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5360 |
|
---|
5361 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5362 | /* confdefs.h. */
|
---|
5363 | _ACEOF
|
---|
5364 | cat confdefs.h >>conftest.$ac_ext
|
---|
5365 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5366 | /* end confdefs.h. */
|
---|
5367 |
|
---|
5368 | int
|
---|
5369 | main ()
|
---|
5370 | {
|
---|
5371 |
|
---|
5372 | ;
|
---|
5373 | return 0;
|
---|
5374 | }
|
---|
5375 | _ACEOF
|
---|
5376 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5378 | (eval $ac_link) 2>conftest.er1
|
---|
5379 | ac_status=$?
|
---|
5380 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5381 | rm -f conftest.er1
|
---|
5382 | cat conftest.err >&5
|
---|
5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5384 | (exit $ac_status); } &&
|
---|
5385 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5386 | || test ! -s conftest.err'
|
---|
5387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5388 | (eval $ac_try) 2>&5
|
---|
5389 | ac_status=$?
|
---|
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5391 | (exit $ac_status); }; } &&
|
---|
5392 | { ac_try='test -s conftest$ac_exeext'
|
---|
5393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5394 | (eval $ac_try) 2>&5
|
---|
5395 | ac_status=$?
|
---|
5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5397 | (exit $ac_status); }; }; then
|
---|
5398 | lt_cv_cc_needs_belf=yes
|
---|
5399 | else
|
---|
5400 | echo "$as_me: failed program was:" >&5
|
---|
5401 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5402 |
|
---|
5403 | lt_cv_cc_needs_belf=no
|
---|
5404 | fi
|
---|
5405 | rm -f conftest.err conftest.$ac_objext \
|
---|
5406 | conftest$ac_exeext conftest.$ac_ext
|
---|
5407 | ac_ext=c
|
---|
5408 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5412 |
|
---|
5413 | fi
|
---|
5414 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
---|
5415 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
|
---|
5416 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
5417 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
5418 | CFLAGS="$SAVE_CFLAGS"
|
---|
5419 | fi
|
---|
5420 | ;;
|
---|
5421 | sparc*-*solaris*)
|
---|
5422 | # Find out which ABI we are using.
|
---|
5423 | echo 'int i;' > conftest.$ac_ext
|
---|
5424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5425 | (eval $ac_compile) 2>&5
|
---|
5426 | ac_status=$?
|
---|
5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5428 | (exit $ac_status); }; then
|
---|
5429 | case `/usr/bin/file conftest.o` in
|
---|
5430 | *64-bit*)
|
---|
5431 | case $lt_cv_prog_gnu_ld in
|
---|
5432 | yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
---|
5433 | *) LD="${LD-ld} -64" ;;
|
---|
5434 | esac
|
---|
5435 | ;;
|
---|
5436 | esac
|
---|
5437 | fi
|
---|
5438 | rm -rf conftest*
|
---|
5439 | ;;
|
---|
5440 |
|
---|
5441 |
|
---|
5442 | esac
|
---|
5443 |
|
---|
5444 | need_locks="$enable_libtool_lock"
|
---|
5445 |
|
---|
5446 |
|
---|
5447 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
5448 |
|
---|
5449 |
|
---|
5450 |
|
---|
5451 |
|
---|
5452 |
|
---|
5453 |
|
---|
5454 |
|
---|
5455 |
|
---|
5456 |
|
---|
5457 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
5458 | inttypes.h stdint.h unistd.h
|
---|
5459 | do
|
---|
5460 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5461 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5464 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5465 | else
|
---|
5466 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5467 | /* confdefs.h. */
|
---|
5468 | _ACEOF
|
---|
5469 | cat confdefs.h >>conftest.$ac_ext
|
---|
5470 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5471 | /* end confdefs.h. */
|
---|
5472 | $ac_includes_default
|
---|
5473 |
|
---|
5474 | #include <$ac_header>
|
---|
5475 | _ACEOF
|
---|
5476 | rm -f conftest.$ac_objext
|
---|
5477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5478 | (eval $ac_compile) 2>conftest.er1
|
---|
5479 | ac_status=$?
|
---|
5480 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5481 | rm -f conftest.er1
|
---|
5482 | cat conftest.err >&5
|
---|
5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5484 | (exit $ac_status); } &&
|
---|
5485 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5486 | || test ! -s conftest.err'
|
---|
5487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5488 | (eval $ac_try) 2>&5
|
---|
5489 | ac_status=$?
|
---|
5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5491 | (exit $ac_status); }; } &&
|
---|
5492 | { ac_try='test -s conftest.$ac_objext'
|
---|
5493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5494 | (eval $ac_try) 2>&5
|
---|
5495 | ac_status=$?
|
---|
5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5497 | (exit $ac_status); }; }; then
|
---|
5498 | eval "$as_ac_Header=yes"
|
---|
5499 | else
|
---|
5500 | echo "$as_me: failed program was:" >&5
|
---|
5501 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5502 |
|
---|
5503 | eval "$as_ac_Header=no"
|
---|
5504 | fi
|
---|
5505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5506 | fi
|
---|
5507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5508 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5510 | cat >>confdefs.h <<_ACEOF
|
---|
5511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5512 | _ACEOF
|
---|
5513 |
|
---|
5514 | fi
|
---|
5515 |
|
---|
5516 | done
|
---|
5517 |
|
---|
5518 |
|
---|
5519 |
|
---|
5520 | for ac_header in dlfcn.h
|
---|
5521 | do
|
---|
5522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5524 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5527 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5528 | fi
|
---|
5529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5531 | else
|
---|
5532 | # Is the header compilable?
|
---|
5533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5535 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5536 | /* confdefs.h. */
|
---|
5537 | _ACEOF
|
---|
5538 | cat confdefs.h >>conftest.$ac_ext
|
---|
5539 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5540 | /* end confdefs.h. */
|
---|
5541 | $ac_includes_default
|
---|
5542 | #include <$ac_header>
|
---|
5543 | _ACEOF
|
---|
5544 | rm -f conftest.$ac_objext
|
---|
5545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5546 | (eval $ac_compile) 2>conftest.er1
|
---|
5547 | ac_status=$?
|
---|
5548 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5549 | rm -f conftest.er1
|
---|
5550 | cat conftest.err >&5
|
---|
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5552 | (exit $ac_status); } &&
|
---|
5553 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5554 | || test ! -s conftest.err'
|
---|
5555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5556 | (eval $ac_try) 2>&5
|
---|
5557 | ac_status=$?
|
---|
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5559 | (exit $ac_status); }; } &&
|
---|
5560 | { ac_try='test -s conftest.$ac_objext'
|
---|
5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5562 | (eval $ac_try) 2>&5
|
---|
5563 | ac_status=$?
|
---|
5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5565 | (exit $ac_status); }; }; then
|
---|
5566 | ac_header_compiler=yes
|
---|
5567 | else
|
---|
5568 | echo "$as_me: failed program was:" >&5
|
---|
5569 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5570 |
|
---|
5571 | ac_header_compiler=no
|
---|
5572 | fi
|
---|
5573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5575 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5576 |
|
---|
5577 | # Is the header present?
|
---|
5578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5580 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5581 | /* confdefs.h. */
|
---|
5582 | _ACEOF
|
---|
5583 | cat confdefs.h >>conftest.$ac_ext
|
---|
5584 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5585 | /* end confdefs.h. */
|
---|
5586 | #include <$ac_header>
|
---|
5587 | _ACEOF
|
---|
5588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5590 | ac_status=$?
|
---|
5591 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5592 | rm -f conftest.er1
|
---|
5593 | cat conftest.err >&5
|
---|
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5595 | (exit $ac_status); } >/dev/null; then
|
---|
5596 | if test -s conftest.err; then
|
---|
5597 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5599 | else
|
---|
5600 | ac_cpp_err=
|
---|
5601 | fi
|
---|
5602 | else
|
---|
5603 | ac_cpp_err=yes
|
---|
5604 | fi
|
---|
5605 | if test -z "$ac_cpp_err"; then
|
---|
5606 | ac_header_preproc=yes
|
---|
5607 | else
|
---|
5608 | echo "$as_me: failed program was:" >&5
|
---|
5609 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5610 |
|
---|
5611 | ac_header_preproc=no
|
---|
5612 | fi
|
---|
5613 | rm -f conftest.err conftest.$ac_ext
|
---|
5614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5615 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5616 |
|
---|
5617 | # So? What about this header?
|
---|
5618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5619 | yes:no: )
|
---|
5620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5624 | ac_header_preproc=yes
|
---|
5625 | ;;
|
---|
5626 | no:yes:* )
|
---|
5627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5634 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5636 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5638 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5639 | (
|
---|
5640 | cat <<\_ASBOX
|
---|
5641 | ## ------------------------------------------ ##
|
---|
5642 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5643 | ## ------------------------------------------ ##
|
---|
5644 | _ASBOX
|
---|
5645 | ) |
|
---|
5646 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5647 | ;;
|
---|
5648 | esac
|
---|
5649 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5652 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5653 | else
|
---|
5654 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5655 | fi
|
---|
5656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5658 |
|
---|
5659 | fi
|
---|
5660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5661 | cat >>confdefs.h <<_ACEOF
|
---|
5662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5663 | _ACEOF
|
---|
5664 |
|
---|
5665 | fi
|
---|
5666 |
|
---|
5667 | done
|
---|
5668 |
|
---|
5669 | ac_ext=cc
|
---|
5670 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
5671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
5674 | if test -n "$ac_tool_prefix"; then
|
---|
5675 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
5676 | do
|
---|
5677 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5678 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5679 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
5680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
5681 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
5682 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5683 | else
|
---|
5684 | if test -n "$CXX"; then
|
---|
5685 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
5686 | else
|
---|
5687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5688 | for as_dir in $PATH
|
---|
5689 | do
|
---|
5690 | IFS=$as_save_IFS
|
---|
5691 | test -z "$as_dir" && as_dir=.
|
---|
5692 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5694 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
5695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5696 | break 2
|
---|
5697 | fi
|
---|
5698 | done
|
---|
5699 | done
|
---|
5700 |
|
---|
5701 | fi
|
---|
5702 | fi
|
---|
5703 | CXX=$ac_cv_prog_CXX
|
---|
5704 | if test -n "$CXX"; then
|
---|
5705 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
5706 | echo "${ECHO_T}$CXX" >&6
|
---|
5707 | else
|
---|
5708 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5709 | echo "${ECHO_T}no" >&6
|
---|
5710 | fi
|
---|
5711 |
|
---|
5712 | test -n "$CXX" && break
|
---|
5713 | done
|
---|
5714 | fi
|
---|
5715 | if test -z "$CXX"; then
|
---|
5716 | ac_ct_CXX=$CXX
|
---|
5717 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
5718 | do
|
---|
5719 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5720 | set dummy $ac_prog; ac_word=$2
|
---|
5721 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
5722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
5723 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
5724 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5725 | else
|
---|
5726 | if test -n "$ac_ct_CXX"; then
|
---|
5727 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
5728 | else
|
---|
5729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5730 | for as_dir in $PATH
|
---|
5731 | do
|
---|
5732 | IFS=$as_save_IFS
|
---|
5733 | test -z "$as_dir" && as_dir=.
|
---|
5734 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5736 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
5737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5738 | break 2
|
---|
5739 | fi
|
---|
5740 | done
|
---|
5741 | done
|
---|
5742 |
|
---|
5743 | fi
|
---|
5744 | fi
|
---|
5745 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
5746 | if test -n "$ac_ct_CXX"; then
|
---|
5747 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
5748 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
5749 | else
|
---|
5750 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5751 | echo "${ECHO_T}no" >&6
|
---|
5752 | fi
|
---|
5753 |
|
---|
5754 | test -n "$ac_ct_CXX" && break
|
---|
5755 | done
|
---|
5756 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
5757 |
|
---|
5758 | CXX=$ac_ct_CXX
|
---|
5759 | fi
|
---|
5760 |
|
---|
5761 |
|
---|
5762 | # Provide some information about the compiler.
|
---|
5763 | echo "$as_me:$LINENO:" \
|
---|
5764 | "checking for C++ compiler version" >&5
|
---|
5765 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
5766 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
5767 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
5768 | ac_status=$?
|
---|
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5770 | (exit $ac_status); }
|
---|
5771 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
5772 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
5773 | ac_status=$?
|
---|
5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5775 | (exit $ac_status); }
|
---|
5776 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
5777 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
5778 | ac_status=$?
|
---|
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5780 | (exit $ac_status); }
|
---|
5781 |
|
---|
5782 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
5783 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
5784 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
5785 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5786 | else
|
---|
5787 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5788 | /* confdefs.h. */
|
---|
5789 | _ACEOF
|
---|
5790 | cat confdefs.h >>conftest.$ac_ext
|
---|
5791 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5792 | /* end confdefs.h. */
|
---|
5793 |
|
---|
5794 | int
|
---|
5795 | main ()
|
---|
5796 | {
|
---|
5797 | #ifndef __GNUC__
|
---|
5798 | choke me
|
---|
5799 | #endif
|
---|
5800 |
|
---|
5801 | ;
|
---|
5802 | return 0;
|
---|
5803 | }
|
---|
5804 | _ACEOF
|
---|
5805 | rm -f conftest.$ac_objext
|
---|
5806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5807 | (eval $ac_compile) 2>conftest.er1
|
---|
5808 | ac_status=$?
|
---|
5809 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5810 | rm -f conftest.er1
|
---|
5811 | cat conftest.err >&5
|
---|
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5813 | (exit $ac_status); } &&
|
---|
5814 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
5815 | || test ! -s conftest.err'
|
---|
5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5817 | (eval $ac_try) 2>&5
|
---|
5818 | ac_status=$?
|
---|
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5820 | (exit $ac_status); }; } &&
|
---|
5821 | { ac_try='test -s conftest.$ac_objext'
|
---|
5822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5823 | (eval $ac_try) 2>&5
|
---|
5824 | ac_status=$?
|
---|
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5826 | (exit $ac_status); }; }; then
|
---|
5827 | ac_compiler_gnu=yes
|
---|
5828 | else
|
---|
5829 | echo "$as_me: failed program was:" >&5
|
---|
5830 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5831 |
|
---|
5832 | ac_compiler_gnu=no
|
---|
5833 | fi
|
---|
5834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5835 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
5836 |
|
---|
5837 | fi
|
---|
5838 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
5839 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
5840 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
5841 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
5842 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
5843 | CXXFLAGS="-g"
|
---|
5844 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
5845 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
5846 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
5847 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5848 | else
|
---|
5849 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5850 | /* confdefs.h. */
|
---|
5851 | _ACEOF
|
---|
5852 | cat confdefs.h >>conftest.$ac_ext
|
---|
5853 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5854 | /* end confdefs.h. */
|
---|
5855 |
|
---|
5856 | int
|
---|
5857 | main ()
|
---|
5858 | {
|
---|
5859 |
|
---|
5860 | ;
|
---|
5861 | return 0;
|
---|
5862 | }
|
---|
5863 | _ACEOF
|
---|
5864 | rm -f conftest.$ac_objext
|
---|
5865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5866 | (eval $ac_compile) 2>conftest.er1
|
---|
5867 | ac_status=$?
|
---|
5868 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5869 | rm -f conftest.er1
|
---|
5870 | cat conftest.err >&5
|
---|
5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5872 | (exit $ac_status); } &&
|
---|
5873 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
5874 | || test ! -s conftest.err'
|
---|
5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5876 | (eval $ac_try) 2>&5
|
---|
5877 | ac_status=$?
|
---|
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5879 | (exit $ac_status); }; } &&
|
---|
5880 | { ac_try='test -s conftest.$ac_objext'
|
---|
5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5882 | (eval $ac_try) 2>&5
|
---|
5883 | ac_status=$?
|
---|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5885 | (exit $ac_status); }; }; then
|
---|
5886 | ac_cv_prog_cxx_g=yes
|
---|
5887 | else
|
---|
5888 | echo "$as_me: failed program was:" >&5
|
---|
5889 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5890 |
|
---|
5891 | ac_cv_prog_cxx_g=no
|
---|
5892 | fi
|
---|
5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5894 | fi
|
---|
5895 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
5896 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
5897 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
5898 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
5899 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
5900 | if test "$GXX" = yes; then
|
---|
5901 | CXXFLAGS="-g -O2"
|
---|
5902 | else
|
---|
5903 | CXXFLAGS="-g"
|
---|
5904 | fi
|
---|
5905 | else
|
---|
5906 | if test "$GXX" = yes; then
|
---|
5907 | CXXFLAGS="-O2"
|
---|
5908 | else
|
---|
5909 | CXXFLAGS=
|
---|
5910 | fi
|
---|
5911 | fi
|
---|
5912 | for ac_declaration in \
|
---|
5913 | '' \
|
---|
5914 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
5915 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
5916 | 'extern "C" void exit (int) throw ();' \
|
---|
5917 | 'extern "C" void exit (int);' \
|
---|
5918 | 'void exit (int);'
|
---|
5919 | do
|
---|
5920 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5921 | /* confdefs.h. */
|
---|
5922 | _ACEOF
|
---|
5923 | cat confdefs.h >>conftest.$ac_ext
|
---|
5924 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5925 | /* end confdefs.h. */
|
---|
5926 | $ac_declaration
|
---|
5927 | #include <stdlib.h>
|
---|
5928 | int
|
---|
5929 | main ()
|
---|
5930 | {
|
---|
5931 | exit (42);
|
---|
5932 | ;
|
---|
5933 | return 0;
|
---|
5934 | }
|
---|
5935 | _ACEOF
|
---|
5936 | rm -f conftest.$ac_objext
|
---|
5937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5938 | (eval $ac_compile) 2>conftest.er1
|
---|
5939 | ac_status=$?
|
---|
5940 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5941 | rm -f conftest.er1
|
---|
5942 | cat conftest.err >&5
|
---|
5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5944 | (exit $ac_status); } &&
|
---|
5945 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
5946 | || test ! -s conftest.err'
|
---|
5947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5948 | (eval $ac_try) 2>&5
|
---|
5949 | ac_status=$?
|
---|
5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5951 | (exit $ac_status); }; } &&
|
---|
5952 | { ac_try='test -s conftest.$ac_objext'
|
---|
5953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5954 | (eval $ac_try) 2>&5
|
---|
5955 | ac_status=$?
|
---|
5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5957 | (exit $ac_status); }; }; then
|
---|
5958 | :
|
---|
5959 | else
|
---|
5960 | echo "$as_me: failed program was:" >&5
|
---|
5961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5962 |
|
---|
5963 | continue
|
---|
5964 | fi
|
---|
5965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5966 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5967 | /* confdefs.h. */
|
---|
5968 | _ACEOF
|
---|
5969 | cat confdefs.h >>conftest.$ac_ext
|
---|
5970 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5971 | /* end confdefs.h. */
|
---|
5972 | $ac_declaration
|
---|
5973 | int
|
---|
5974 | main ()
|
---|
5975 | {
|
---|
5976 | exit (42);
|
---|
5977 | ;
|
---|
5978 | return 0;
|
---|
5979 | }
|
---|
5980 | _ACEOF
|
---|
5981 | rm -f conftest.$ac_objext
|
---|
5982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5983 | (eval $ac_compile) 2>conftest.er1
|
---|
5984 | ac_status=$?
|
---|
5985 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5986 | rm -f conftest.er1
|
---|
5987 | cat conftest.err >&5
|
---|
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5989 | (exit $ac_status); } &&
|
---|
5990 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
5991 | || test ! -s conftest.err'
|
---|
5992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5993 | (eval $ac_try) 2>&5
|
---|
5994 | ac_status=$?
|
---|
5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5996 | (exit $ac_status); }; } &&
|
---|
5997 | { ac_try='test -s conftest.$ac_objext'
|
---|
5998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5999 | (eval $ac_try) 2>&5
|
---|
6000 | ac_status=$?
|
---|
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6002 | (exit $ac_status); }; }; then
|
---|
6003 | break
|
---|
6004 | else
|
---|
6005 | echo "$as_me: failed program was:" >&5
|
---|
6006 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6007 |
|
---|
6008 | fi
|
---|
6009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6010 | done
|
---|
6011 | rm -f conftest*
|
---|
6012 | if test -n "$ac_declaration"; then
|
---|
6013 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
6014 | echo $ac_declaration >>confdefs.h
|
---|
6015 | echo '#endif' >>confdefs.h
|
---|
6016 | fi
|
---|
6017 |
|
---|
6018 | ac_ext=cc
|
---|
6019 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6023 |
|
---|
6024 | depcc="$CXX" am_compiler_list=
|
---|
6025 |
|
---|
6026 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
6027 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
6028 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
---|
6029 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6030 | else
|
---|
6031 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
6032 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
6033 | # making bogus files that we don't know about and never remove. For
|
---|
6034 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
6035 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
6036 | # in D'.
|
---|
6037 | mkdir conftest.dir
|
---|
6038 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
6039 | # using a relative directory.
|
---|
6040 | cp "$am_depcomp" conftest.dir
|
---|
6041 | cd conftest.dir
|
---|
6042 | # We will build objects and dependencies in a subdirectory because
|
---|
6043 | # it helps to detect inapplicable dependency modes. For instance
|
---|
6044 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
6045 | # side effect of compilation, but ICC will put the dependencies in
|
---|
6046 | # the current directory while Tru64 will put them in the object
|
---|
6047 | # directory.
|
---|
6048 | mkdir sub
|
---|
6049 |
|
---|
6050 | am_cv_CXX_dependencies_compiler_type=none
|
---|
6051 | if test "$am_compiler_list" = ""; then
|
---|
6052 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
6053 | fi
|
---|
6054 | for depmode in $am_compiler_list; do
|
---|
6055 | # Setup a source with many dependencies, because some compilers
|
---|
6056 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
6057 | # we should not choose a depcomp mode which is confused by this.
|
---|
6058 | #
|
---|
6059 | # We need to recreate these files for each test, as the compiler may
|
---|
6060 | # overwrite some of them when testing with obscure command lines.
|
---|
6061 | # This happens at least with the AIX C compiler.
|
---|
6062 | : > sub/conftest.c
|
---|
6063 | for i in 1 2 3 4 5 6; do
|
---|
6064 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
6065 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
---|
6066 | # Solaris 8's {/usr,}/bin/sh.
|
---|
6067 | touch sub/conftst$i.h
|
---|
6068 | done
|
---|
6069 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
6070 |
|
---|
6071 | case $depmode in
|
---|
6072 | nosideeffect)
|
---|
6073 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
6074 | # only be used when explicitly requested
|
---|
6075 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
6076 | continue
|
---|
6077 | else
|
---|
6078 | break
|
---|
6079 | fi
|
---|
6080 | ;;
|
---|
6081 | none) break ;;
|
---|
6082 | esac
|
---|
6083 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
6084 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
6085 | # handle `-M -o', and we need to detect this.
|
---|
6086 | if depmode=$depmode \
|
---|
6087 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
---|
6088 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
6089 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
---|
6090 | >/dev/null 2>conftest.err &&
|
---|
6091 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
6092 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
---|
6093 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
6094 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
6095 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
6096 | # that says an option was ignored or not supported.
|
---|
6097 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
6098 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
6099 | # The diagnosis changed in icc 8.0:
|
---|
6100 | # icc: Command line remark: option '-MP' not supported
|
---|
6101 | if (grep 'ignoring option' conftest.err ||
|
---|
6102 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
6103 | am_cv_CXX_dependencies_compiler_type=$depmode
|
---|
6104 | break
|
---|
6105 | fi
|
---|
6106 | fi
|
---|
6107 | done
|
---|
6108 |
|
---|
6109 | cd ..
|
---|
6110 | rm -rf conftest.dir
|
---|
6111 | else
|
---|
6112 | am_cv_CXX_dependencies_compiler_type=none
|
---|
6113 | fi
|
---|
6114 |
|
---|
6115 | fi
|
---|
6116 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
---|
6117 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
|
---|
6118 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
---|
6119 |
|
---|
6120 |
|
---|
6121 |
|
---|
6122 | if
|
---|
6123 | test "x$enable_dependency_tracking" != xno \
|
---|
6124 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
---|
6125 | am__fastdepCXX_TRUE=
|
---|
6126 | am__fastdepCXX_FALSE='#'
|
---|
6127 | else
|
---|
6128 | am__fastdepCXX_TRUE='#'
|
---|
6129 | am__fastdepCXX_FALSE=
|
---|
6130 | fi
|
---|
6131 |
|
---|
6132 |
|
---|
6133 |
|
---|
6134 |
|
---|
6135 | if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
---|
6136 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
---|
6137 | (test "X$CXX" != "Xg++"))) ; then
|
---|
6138 | ac_ext=cc
|
---|
6139 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6140 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6141 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6142 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6143 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
---|
6144 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
|
---|
6145 | if test -z "$CXXCPP"; then
|
---|
6146 | if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
---|
6147 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6148 | else
|
---|
6149 | # Double quotes because CXXCPP needs to be expanded
|
---|
6150 | for CXXCPP in "$CXX -E" "/lib/cpp"
|
---|
6151 | do
|
---|
6152 | ac_preproc_ok=false
|
---|
6153 | for ac_cxx_preproc_warn_flag in '' yes
|
---|
6154 | do
|
---|
6155 | # Use a header file that comes with gcc, so configuring glibc
|
---|
6156 | # with a fresh cross-compiler works.
|
---|
6157 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6158 | # <limits.h> exists even on freestanding compilers.
|
---|
6159 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
6160 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
6161 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6162 | /* confdefs.h. */
|
---|
6163 | _ACEOF
|
---|
6164 | cat confdefs.h >>conftest.$ac_ext
|
---|
6165 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6166 | /* end confdefs.h. */
|
---|
6167 | #ifdef __STDC__
|
---|
6168 | # include <limits.h>
|
---|
6169 | #else
|
---|
6170 | # include <assert.h>
|
---|
6171 | #endif
|
---|
6172 | Syntax error
|
---|
6173 | _ACEOF
|
---|
6174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6176 | ac_status=$?
|
---|
6177 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6178 | rm -f conftest.er1
|
---|
6179 | cat conftest.err >&5
|
---|
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6181 | (exit $ac_status); } >/dev/null; then
|
---|
6182 | if test -s conftest.err; then
|
---|
6183 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
6184 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
---|
6185 | else
|
---|
6186 | ac_cpp_err=
|
---|
6187 | fi
|
---|
6188 | else
|
---|
6189 | ac_cpp_err=yes
|
---|
6190 | fi
|
---|
6191 | if test -z "$ac_cpp_err"; then
|
---|
6192 | :
|
---|
6193 | else
|
---|
6194 | echo "$as_me: failed program was:" >&5
|
---|
6195 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6196 |
|
---|
6197 | # Broken: fails on valid input.
|
---|
6198 | continue
|
---|
6199 | fi
|
---|
6200 | rm -f conftest.err conftest.$ac_ext
|
---|
6201 |
|
---|
6202 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
6203 | # can be detected and how.
|
---|
6204 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6205 | /* confdefs.h. */
|
---|
6206 | _ACEOF
|
---|
6207 | cat confdefs.h >>conftest.$ac_ext
|
---|
6208 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6209 | /* end confdefs.h. */
|
---|
6210 | #include <ac_nonexistent.h>
|
---|
6211 | _ACEOF
|
---|
6212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6214 | ac_status=$?
|
---|
6215 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6216 | rm -f conftest.er1
|
---|
6217 | cat conftest.err >&5
|
---|
6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6219 | (exit $ac_status); } >/dev/null; then
|
---|
6220 | if test -s conftest.err; then
|
---|
6221 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
6222 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
---|
6223 | else
|
---|
6224 | ac_cpp_err=
|
---|
6225 | fi
|
---|
6226 | else
|
---|
6227 | ac_cpp_err=yes
|
---|
6228 | fi
|
---|
6229 | if test -z "$ac_cpp_err"; then
|
---|
6230 | # Broken: success on invalid input.
|
---|
6231 | continue
|
---|
6232 | else
|
---|
6233 | echo "$as_me: failed program was:" >&5
|
---|
6234 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6235 |
|
---|
6236 | # Passes both tests.
|
---|
6237 | ac_preproc_ok=:
|
---|
6238 | break
|
---|
6239 | fi
|
---|
6240 | rm -f conftest.err conftest.$ac_ext
|
---|
6241 |
|
---|
6242 | done
|
---|
6243 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
6244 | rm -f conftest.err conftest.$ac_ext
|
---|
6245 | if $ac_preproc_ok; then
|
---|
6246 | break
|
---|
6247 | fi
|
---|
6248 |
|
---|
6249 | done
|
---|
6250 | ac_cv_prog_CXXCPP=$CXXCPP
|
---|
6251 |
|
---|
6252 | fi
|
---|
6253 | CXXCPP=$ac_cv_prog_CXXCPP
|
---|
6254 | else
|
---|
6255 | ac_cv_prog_CXXCPP=$CXXCPP
|
---|
6256 | fi
|
---|
6257 | echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
---|
6258 | echo "${ECHO_T}$CXXCPP" >&6
|
---|
6259 | ac_preproc_ok=false
|
---|
6260 | for ac_cxx_preproc_warn_flag in '' yes
|
---|
6261 | do
|
---|
6262 | # Use a header file that comes with gcc, so configuring glibc
|
---|
6263 | # with a fresh cross-compiler works.
|
---|
6264 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6265 | # <limits.h> exists even on freestanding compilers.
|
---|
6266 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
6267 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
6268 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6269 | /* confdefs.h. */
|
---|
6270 | _ACEOF
|
---|
6271 | cat confdefs.h >>conftest.$ac_ext
|
---|
6272 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6273 | /* end confdefs.h. */
|
---|
6274 | #ifdef __STDC__
|
---|
6275 | # include <limits.h>
|
---|
6276 | #else
|
---|
6277 | # include <assert.h>
|
---|
6278 | #endif
|
---|
6279 | Syntax error
|
---|
6280 | _ACEOF
|
---|
6281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6283 | ac_status=$?
|
---|
6284 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6285 | rm -f conftest.er1
|
---|
6286 | cat conftest.err >&5
|
---|
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6288 | (exit $ac_status); } >/dev/null; then
|
---|
6289 | if test -s conftest.err; then
|
---|
6290 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
6291 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
---|
6292 | else
|
---|
6293 | ac_cpp_err=
|
---|
6294 | fi
|
---|
6295 | else
|
---|
6296 | ac_cpp_err=yes
|
---|
6297 | fi
|
---|
6298 | if test -z "$ac_cpp_err"; then
|
---|
6299 | :
|
---|
6300 | else
|
---|
6301 | echo "$as_me: failed program was:" >&5
|
---|
6302 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6303 |
|
---|
6304 | # Broken: fails on valid input.
|
---|
6305 | continue
|
---|
6306 | fi
|
---|
6307 | rm -f conftest.err conftest.$ac_ext
|
---|
6308 |
|
---|
6309 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
6310 | # can be detected and how.
|
---|
6311 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6312 | /* confdefs.h. */
|
---|
6313 | _ACEOF
|
---|
6314 | cat confdefs.h >>conftest.$ac_ext
|
---|
6315 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6316 | /* end confdefs.h. */
|
---|
6317 | #include <ac_nonexistent.h>
|
---|
6318 | _ACEOF
|
---|
6319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6320 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6321 | ac_status=$?
|
---|
6322 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6323 | rm -f conftest.er1
|
---|
6324 | cat conftest.err >&5
|
---|
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6326 | (exit $ac_status); } >/dev/null; then
|
---|
6327 | if test -s conftest.err; then
|
---|
6328 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
6329 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
---|
6330 | else
|
---|
6331 | ac_cpp_err=
|
---|
6332 | fi
|
---|
6333 | else
|
---|
6334 | ac_cpp_err=yes
|
---|
6335 | fi
|
---|
6336 | if test -z "$ac_cpp_err"; then
|
---|
6337 | # Broken: success on invalid input.
|
---|
6338 | continue
|
---|
6339 | else
|
---|
6340 | echo "$as_me: failed program was:" >&5
|
---|
6341 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6342 |
|
---|
6343 | # Passes both tests.
|
---|
6344 | ac_preproc_ok=:
|
---|
6345 | break
|
---|
6346 | fi
|
---|
6347 | rm -f conftest.err conftest.$ac_ext
|
---|
6348 |
|
---|
6349 | done
|
---|
6350 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
6351 | rm -f conftest.err conftest.$ac_ext
|
---|
6352 | if $ac_preproc_ok; then
|
---|
6353 | :
|
---|
6354 | else
|
---|
6355 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
---|
6356 | See \`config.log' for more details." >&5
|
---|
6357 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
---|
6358 | See \`config.log' for more details." >&2;}
|
---|
6359 | { (exit 1); exit 1; }; }
|
---|
6360 | fi
|
---|
6361 |
|
---|
6362 | ac_ext=cc
|
---|
6363 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6364 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6365 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6366 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6367 |
|
---|
6368 | fi
|
---|
6369 |
|
---|
6370 |
|
---|
6371 | ac_ext=f
|
---|
6372 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
---|
6373 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6374 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
---|
6375 | if test -n "$ac_tool_prefix"; then
|
---|
6376 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
|
---|
6377 | do
|
---|
6378 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
6379 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
6380 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
6382 | if test "${ac_cv_prog_F77+set}" = set; then
|
---|
6383 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6384 | else
|
---|
6385 | if test -n "$F77"; then
|
---|
6386 | ac_cv_prog_F77="$F77" # Let the user override the test.
|
---|
6387 | else
|
---|
6388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6389 | for as_dir in $PATH
|
---|
6390 | do
|
---|
6391 | IFS=$as_save_IFS
|
---|
6392 | test -z "$as_dir" && as_dir=.
|
---|
6393 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6395 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
---|
6396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6397 | break 2
|
---|
6398 | fi
|
---|
6399 | done
|
---|
6400 | done
|
---|
6401 |
|
---|
6402 | fi
|
---|
6403 | fi
|
---|
6404 | F77=$ac_cv_prog_F77
|
---|
6405 | if test -n "$F77"; then
|
---|
6406 | echo "$as_me:$LINENO: result: $F77" >&5
|
---|
6407 | echo "${ECHO_T}$F77" >&6
|
---|
6408 | else
|
---|
6409 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6410 | echo "${ECHO_T}no" >&6
|
---|
6411 | fi
|
---|
6412 |
|
---|
6413 | test -n "$F77" && break
|
---|
6414 | done
|
---|
6415 | fi
|
---|
6416 | if test -z "$F77"; then
|
---|
6417 | ac_ct_F77=$F77
|
---|
6418 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
|
---|
6419 | do
|
---|
6420 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
6421 | set dummy $ac_prog; ac_word=$2
|
---|
6422 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
6424 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
|
---|
6425 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6426 | else
|
---|
6427 | if test -n "$ac_ct_F77"; then
|
---|
6428 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
---|
6429 | else
|
---|
6430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6431 | for as_dir in $PATH
|
---|
6432 | do
|
---|
6433 | IFS=$as_save_IFS
|
---|
6434 | test -z "$as_dir" && as_dir=.
|
---|
6435 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6437 | ac_cv_prog_ac_ct_F77="$ac_prog"
|
---|
6438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6439 | break 2
|
---|
6440 | fi
|
---|
6441 | done
|
---|
6442 | done
|
---|
6443 |
|
---|
6444 | fi
|
---|
6445 | fi
|
---|
6446 | ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
---|
6447 | if test -n "$ac_ct_F77"; then
|
---|
6448 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
|
---|
6449 | echo "${ECHO_T}$ac_ct_F77" >&6
|
---|
6450 | else
|
---|
6451 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6452 | echo "${ECHO_T}no" >&6
|
---|
6453 | fi
|
---|
6454 |
|
---|
6455 | test -n "$ac_ct_F77" && break
|
---|
6456 | done
|
---|
6457 |
|
---|
6458 | F77=$ac_ct_F77
|
---|
6459 | fi
|
---|
6460 |
|
---|
6461 |
|
---|
6462 | # Provide some information about the compiler.
|
---|
6463 | echo "$as_me:6463:" \
|
---|
6464 | "checking for Fortran 77 compiler version" >&5
|
---|
6465 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
6466 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
6467 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
6468 | ac_status=$?
|
---|
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6470 | (exit $ac_status); }
|
---|
6471 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
6472 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
6473 | ac_status=$?
|
---|
6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6475 | (exit $ac_status); }
|
---|
6476 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
6477 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
6478 | ac_status=$?
|
---|
6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6480 | (exit $ac_status); }
|
---|
6481 | rm -f a.out
|
---|
6482 |
|
---|
6483 | # If we don't use `.F' as extension, the preprocessor is not run on the
|
---|
6484 | # input file. (Note that this only needs to work for GNU compilers.)
|
---|
6485 | ac_save_ext=$ac_ext
|
---|
6486 | ac_ext=F
|
---|
6487 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
|
---|
6488 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
|
---|
6489 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then
|
---|
6490 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6491 | else
|
---|
6492 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6493 | program main
|
---|
6494 | #ifndef __GNUC__
|
---|
6495 | choke me
|
---|
6496 | #endif
|
---|
6497 |
|
---|
6498 | end
|
---|
6499 | _ACEOF
|
---|
6500 | rm -f conftest.$ac_objext
|
---|
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6502 | (eval $ac_compile) 2>conftest.er1
|
---|
6503 | ac_status=$?
|
---|
6504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6505 | rm -f conftest.er1
|
---|
6506 | cat conftest.err >&5
|
---|
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6508 | (exit $ac_status); } &&
|
---|
6509 | { ac_try='test -z "$ac_f77_werror_flag"
|
---|
6510 | || test ! -s conftest.err'
|
---|
6511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6512 | (eval $ac_try) 2>&5
|
---|
6513 | ac_status=$?
|
---|
6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6515 | (exit $ac_status); }; } &&
|
---|
6516 | { ac_try='test -s conftest.$ac_objext'
|
---|
6517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6518 | (eval $ac_try) 2>&5
|
---|
6519 | ac_status=$?
|
---|
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6521 | (exit $ac_status); }; }; then
|
---|
6522 | ac_compiler_gnu=yes
|
---|
6523 | else
|
---|
6524 | echo "$as_me: failed program was:" >&5
|
---|
6525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6526 |
|
---|
6527 | ac_compiler_gnu=no
|
---|
6528 | fi
|
---|
6529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6530 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
---|
6531 |
|
---|
6532 | fi
|
---|
6533 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
|
---|
6534 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
|
---|
6535 | ac_ext=$ac_save_ext
|
---|
6536 | ac_test_FFLAGS=${FFLAGS+set}
|
---|
6537 | ac_save_FFLAGS=$FFLAGS
|
---|
6538 | FFLAGS=
|
---|
6539 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
|
---|
6540 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
|
---|
6541 | if test "${ac_cv_prog_f77_g+set}" = set; then
|
---|
6542 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6543 | else
|
---|
6544 | FFLAGS=-g
|
---|
6545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6546 | program main
|
---|
6547 |
|
---|
6548 | end
|
---|
6549 | _ACEOF
|
---|
6550 | rm -f conftest.$ac_objext
|
---|
6551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6552 | (eval $ac_compile) 2>conftest.er1
|
---|
6553 | ac_status=$?
|
---|
6554 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6555 | rm -f conftest.er1
|
---|
6556 | cat conftest.err >&5
|
---|
6557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6558 | (exit $ac_status); } &&
|
---|
6559 | { ac_try='test -z "$ac_f77_werror_flag"
|
---|
6560 | || test ! -s conftest.err'
|
---|
6561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6562 | (eval $ac_try) 2>&5
|
---|
6563 | ac_status=$?
|
---|
6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6565 | (exit $ac_status); }; } &&
|
---|
6566 | { ac_try='test -s conftest.$ac_objext'
|
---|
6567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6568 | (eval $ac_try) 2>&5
|
---|
6569 | ac_status=$?
|
---|
6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6571 | (exit $ac_status); }; }; then
|
---|
6572 | ac_cv_prog_f77_g=yes
|
---|
6573 | else
|
---|
6574 | echo "$as_me: failed program was:" >&5
|
---|
6575 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6576 |
|
---|
6577 | ac_cv_prog_f77_g=no
|
---|
6578 | fi
|
---|
6579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6580 |
|
---|
6581 | fi
|
---|
6582 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
|
---|
6583 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
|
---|
6584 | if test "$ac_test_FFLAGS" = set; then
|
---|
6585 | FFLAGS=$ac_save_FFLAGS
|
---|
6586 | elif test $ac_cv_prog_f77_g = yes; then
|
---|
6587 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
---|
6588 | FFLAGS="-g -O2"
|
---|
6589 | else
|
---|
6590 | FFLAGS="-g"
|
---|
6591 | fi
|
---|
6592 | else
|
---|
6593 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
---|
6594 | FFLAGS="-O2"
|
---|
6595 | else
|
---|
6596 | FFLAGS=
|
---|
6597 | fi
|
---|
6598 | fi
|
---|
6599 |
|
---|
6600 | G77=`test $ac_compiler_gnu = yes && echo yes`
|
---|
6601 | ac_ext=c
|
---|
6602 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
6606 |
|
---|
6607 |
|
---|
6608 |
|
---|
6609 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
6610 |
|
---|
6611 | # find the maximum length of command line arguments
|
---|
6612 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
---|
6613 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
|
---|
6614 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
---|
6615 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6616 | else
|
---|
6617 | i=0
|
---|
6618 | teststring="ABCD"
|
---|
6619 |
|
---|
6620 | case $build_os in
|
---|
6621 | msdosdjgpp*)
|
---|
6622 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
6623 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
6624 | # during glob expansion). Even if it were fixed, the result of this
|
---|
6625 | # check would be larger than it should be.
|
---|
6626 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
6627 | ;;
|
---|
6628 |
|
---|
6629 | gnu*)
|
---|
6630 | # Under GNU Hurd, this test is not required because there is
|
---|
6631 | # no limit to the length of command line arguments.
|
---|
6632 | # Libtool will interpret -1 as no limit whatsoever
|
---|
6633 | lt_cv_sys_max_cmd_len=-1;
|
---|
6634 | ;;
|
---|
6635 |
|
---|
6636 | cygwin* | mingw*)
|
---|
6637 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
6638 | # about 5 minutes as the teststring grows exponentially.
|
---|
6639 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
6640 | # you end up with a "frozen" computer, even though with patience
|
---|
6641 | # the test eventually succeeds (with a max line length of 256k).
|
---|
6642 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
6643 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
6644 | lt_cv_sys_max_cmd_len=8192;
|
---|
6645 | ;;
|
---|
6646 |
|
---|
6647 | amigaos*)
|
---|
6648 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
6649 | # So we just punt and use a minimum line length of 8192.
|
---|
6650 | lt_cv_sys_max_cmd_len=8192;
|
---|
6651 | ;;
|
---|
6652 |
|
---|
6653 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
---|
6654 | # This has been around since 386BSD, at least. Likely further.
|
---|
6655 | if test -x /sbin/sysctl; then
|
---|
6656 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
6657 | elif test -x /usr/sbin/sysctl; then
|
---|
6658 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
6659 | else
|
---|
6660 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
6661 | fi
|
---|
6662 | # And add a safety zone
|
---|
6663 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
6664 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
6665 | ;;
|
---|
6666 |
|
---|
6667 | interix*)
|
---|
6668 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
6669 | lt_cv_sys_max_cmd_len=196608
|
---|
6670 | ;;
|
---|
6671 |
|
---|
6672 | osf*)
|
---|
6673 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
6674 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
6675 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
6676 | # First set a reasonable default.
|
---|
6677 | lt_cv_sys_max_cmd_len=16384
|
---|
6678 | #
|
---|
6679 | if test -x /sbin/sysconfig; then
|
---|
6680 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
6681 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
6682 | esac
|
---|
6683 | fi
|
---|
6684 | ;;
|
---|
6685 | sco3.2v5*)
|
---|
6686 | lt_cv_sys_max_cmd_len=102400
|
---|
6687 | ;;
|
---|
6688 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
6689 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
6690 | if test -n "$kargmax"; then
|
---|
6691 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
---|
6692 | else
|
---|
6693 | lt_cv_sys_max_cmd_len=32768
|
---|
6694 | fi
|
---|
6695 | ;;
|
---|
6696 | *)
|
---|
6697 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
6698 | # maximum length that is only half of the actual maximum length, but
|
---|
6699 | # we can't tell.
|
---|
6700 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
6701 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
---|
6702 | = "XX$teststring") >/dev/null 2>&1 &&
|
---|
6703 | new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
---|
6704 | lt_cv_sys_max_cmd_len=$new_result &&
|
---|
6705 | test $i != 17 # 1/2 MB should be enough
|
---|
6706 | do
|
---|
6707 | i=`expr $i + 1`
|
---|
6708 | teststring=$teststring$teststring
|
---|
6709 | done
|
---|
6710 | teststring=
|
---|
6711 | # Add a significant safety factor because C++ compilers can tack on massive
|
---|
6712 | # amounts of additional arguments before passing them to the linker.
|
---|
6713 | # It appears as though 1/2 is a usable value.
|
---|
6714 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
6715 | ;;
|
---|
6716 | esac
|
---|
6717 |
|
---|
6718 | fi
|
---|
6719 |
|
---|
6720 | if test -n $lt_cv_sys_max_cmd_len ; then
|
---|
6721 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
6722 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
|
---|
6723 | else
|
---|
6724 | echo "$as_me:$LINENO: result: none" >&5
|
---|
6725 | echo "${ECHO_T}none" >&6
|
---|
6726 | fi
|
---|
6727 |
|
---|
6728 |
|
---|
6729 |
|
---|
6730 |
|
---|
6731 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
6732 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
---|
6733 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
|
---|
6734 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
---|
6735 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6736 | else
|
---|
6737 |
|
---|
6738 | # These are sane defaults that work on at least a few old systems.
|
---|
6739 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
6740 |
|
---|
6741 | # Character class describing NM global symbol codes.
|
---|
6742 | symcode='[BCDEGRST]'
|
---|
6743 |
|
---|
6744 | # Regexp to match symbols that can be accessed directly from C.
|
---|
6745 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
6746 |
|
---|
6747 | # Transform an extracted symbol line into a proper C declaration
|
---|
6748 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
---|
6749 |
|
---|
6750 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
6751 | 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'"
|
---|
6752 |
|
---|
6753 | # Define system-specific variables.
|
---|
6754 | case $host_os in
|
---|
6755 | aix*)
|
---|
6756 | symcode='[BCDT]'
|
---|
6757 | ;;
|
---|
6758 | cygwin* | mingw* | pw32*)
|
---|
6759 | symcode='[ABCDGISTW]'
|
---|
6760 | ;;
|
---|
6761 | hpux*) # Its linker distinguishes data from code symbols
|
---|
6762 | if test "$host_cpu" = ia64; then
|
---|
6763 | symcode='[ABCDEGRST]'
|
---|
6764 | fi
|
---|
6765 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
6766 | 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'"
|
---|
6767 | ;;
|
---|
6768 | linux*)
|
---|
6769 | if test "$host_cpu" = ia64; then
|
---|
6770 | symcode='[ABCDGIRSTW]'
|
---|
6771 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
6772 | 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'"
|
---|
6773 | fi
|
---|
6774 | ;;
|
---|
6775 | irix* | nonstopux*)
|
---|
6776 | symcode='[BCDEGRST]'
|
---|
6777 | ;;
|
---|
6778 | osf*)
|
---|
6779 | symcode='[BCDEGQRST]'
|
---|
6780 | ;;
|
---|
6781 | solaris*)
|
---|
6782 | symcode='[BDRT]'
|
---|
6783 | ;;
|
---|
6784 | sco3.2v5*)
|
---|
6785 | symcode='[DT]'
|
---|
6786 | ;;
|
---|
6787 | sysv4.2uw2*)
|
---|
6788 | symcode='[DT]'
|
---|
6789 | ;;
|
---|
6790 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
6791 | symcode='[ABDT]'
|
---|
6792 | ;;
|
---|
6793 | sysv4)
|
---|
6794 | symcode='[DFNSTU]'
|
---|
6795 | ;;
|
---|
6796 | esac
|
---|
6797 |
|
---|
6798 | # Handle CRLF in mingw tool chain
|
---|
6799 | opt_cr=
|
---|
6800 | case $build_os in
|
---|
6801 | mingw*)
|
---|
6802 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
6803 | ;;
|
---|
6804 | esac
|
---|
6805 |
|
---|
6806 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
6807 | case `$NM -V 2>&1` in
|
---|
6808 | *GNU* | *'with BFD'*)
|
---|
6809 | symcode='[ABCDGIRSTW]' ;;
|
---|
6810 | esac
|
---|
6811 |
|
---|
6812 | # Try without a prefix undercore, then with it.
|
---|
6813 | for ac_symprfx in "" "_"; do
|
---|
6814 |
|
---|
6815 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
6816 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
6817 |
|
---|
6818 | # Write the raw and C identifiers.
|
---|
6819 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
6820 |
|
---|
6821 | # Check to see that the pipe works correctly.
|
---|
6822 | pipe_works=no
|
---|
6823 |
|
---|
6824 | rm -f conftest*
|
---|
6825 | cat > conftest.$ac_ext <<EOF
|
---|
6826 | #ifdef __cplusplus
|
---|
6827 | extern "C" {
|
---|
6828 | #endif
|
---|
6829 | char nm_test_var;
|
---|
6830 | void nm_test_func(){}
|
---|
6831 | #ifdef __cplusplus
|
---|
6832 | }
|
---|
6833 | #endif
|
---|
6834 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
---|
6835 | EOF
|
---|
6836 |
|
---|
6837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6838 | (eval $ac_compile) 2>&5
|
---|
6839 | ac_status=$?
|
---|
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6841 | (exit $ac_status); }; then
|
---|
6842 | # Now try to grab the symbols.
|
---|
6843 | nlist=conftest.nm
|
---|
6844 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
---|
6845 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
---|
6846 | ac_status=$?
|
---|
6847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6848 | (exit $ac_status); } && test -s "$nlist"; then
|
---|
6849 | # Try sorting and uniquifying the output.
|
---|
6850 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
6851 | mv -f "$nlist"T "$nlist"
|
---|
6852 | else
|
---|
6853 | rm -f "$nlist"T
|
---|
6854 | fi
|
---|
6855 |
|
---|
6856 | # Make sure that we snagged all the symbols we need.
|
---|
6857 | if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
6858 | if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
6859 | cat <<EOF > conftest.$ac_ext
|
---|
6860 | #ifdef __cplusplus
|
---|
6861 | extern "C" {
|
---|
6862 | #endif
|
---|
6863 |
|
---|
6864 | EOF
|
---|
6865 | # Now generate the symbol file.
|
---|
6866 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
---|
6867 |
|
---|
6868 | cat <<EOF >> conftest.$ac_ext
|
---|
6869 | #if defined (__STDC__) && __STDC__
|
---|
6870 | # define lt_ptr_t void *
|
---|
6871 | #else
|
---|
6872 | # define lt_ptr_t char *
|
---|
6873 | # define const
|
---|
6874 | #endif
|
---|
6875 |
|
---|
6876 | /* The mapping between symbol names and symbols. */
|
---|
6877 | const struct {
|
---|
6878 | const char *name;
|
---|
6879 | lt_ptr_t address;
|
---|
6880 | }
|
---|
6881 | lt_preloaded_symbols[] =
|
---|
6882 | {
|
---|
6883 | EOF
|
---|
6884 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
---|
6885 | cat <<\EOF >> conftest.$ac_ext
|
---|
6886 | {0, (lt_ptr_t) 0}
|
---|
6887 | };
|
---|
6888 |
|
---|
6889 | #ifdef __cplusplus
|
---|
6890 | }
|
---|
6891 | #endif
|
---|
6892 | EOF
|
---|
6893 | # Now try linking the two files.
|
---|
6894 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
6895 | lt_save_LIBS="$LIBS"
|
---|
6896 | lt_save_CFLAGS="$CFLAGS"
|
---|
6897 | LIBS="conftstm.$ac_objext"
|
---|
6898 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
6899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6900 | (eval $ac_link) 2>&5
|
---|
6901 | ac_status=$?
|
---|
6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6903 | (exit $ac_status); } && test -s conftest${ac_exeext}; then
|
---|
6904 | pipe_works=yes
|
---|
6905 | fi
|
---|
6906 | LIBS="$lt_save_LIBS"
|
---|
6907 | CFLAGS="$lt_save_CFLAGS"
|
---|
6908 | else
|
---|
6909 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
6910 | fi
|
---|
6911 | else
|
---|
6912 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
6913 | fi
|
---|
6914 | else
|
---|
6915 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
6916 | fi
|
---|
6917 | else
|
---|
6918 | echo "$progname: failed program was:" >&5
|
---|
6919 | cat conftest.$ac_ext >&5
|
---|
6920 | fi
|
---|
6921 | rm -f conftest* conftst*
|
---|
6922 |
|
---|
6923 | # Do not use the global_symbol_pipe unless it works.
|
---|
6924 | if test "$pipe_works" = yes; then
|
---|
6925 | break
|
---|
6926 | else
|
---|
6927 | lt_cv_sys_global_symbol_pipe=
|
---|
6928 | fi
|
---|
6929 | done
|
---|
6930 |
|
---|
6931 | fi
|
---|
6932 |
|
---|
6933 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
6934 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
6935 | fi
|
---|
6936 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
6937 | echo "$as_me:$LINENO: result: failed" >&5
|
---|
6938 | echo "${ECHO_T}failed" >&6
|
---|
6939 | else
|
---|
6940 | echo "$as_me:$LINENO: result: ok" >&5
|
---|
6941 | echo "${ECHO_T}ok" >&6
|
---|
6942 | fi
|
---|
6943 |
|
---|
6944 | echo "$as_me:$LINENO: checking for objdir" >&5
|
---|
6945 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6
|
---|
6946 | if test "${lt_cv_objdir+set}" = set; then
|
---|
6947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6948 | else
|
---|
6949 | rm -f .libs 2>/dev/null
|
---|
6950 | mkdir .libs 2>/dev/null
|
---|
6951 | if test -d .libs; then
|
---|
6952 | lt_cv_objdir=.libs
|
---|
6953 | else
|
---|
6954 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
6955 | lt_cv_objdir=_libs
|
---|
6956 | fi
|
---|
6957 | rmdir .libs 2>/dev/null
|
---|
6958 | fi
|
---|
6959 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
---|
6960 | echo "${ECHO_T}$lt_cv_objdir" >&6
|
---|
6961 | objdir=$lt_cv_objdir
|
---|
6962 |
|
---|
6963 |
|
---|
6964 |
|
---|
6965 |
|
---|
6966 |
|
---|
6967 | case $host_os in
|
---|
6968 | aix3*)
|
---|
6969 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
6970 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
6971 | # vanish in a puff of smoke.
|
---|
6972 | if test "X${COLLECT_NAMES+set}" != Xset; then
|
---|
6973 | COLLECT_NAMES=
|
---|
6974 | export COLLECT_NAMES
|
---|
6975 | fi
|
---|
6976 | ;;
|
---|
6977 | esac
|
---|
6978 |
|
---|
6979 | # Sed substitution that helps us do robust quoting. It backslashifies
|
---|
6980 | # metacharacters that are still active within double-quoted strings.
|
---|
6981 | Xsed='sed -e 1s/^X//'
|
---|
6982 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
|
---|
6983 |
|
---|
6984 | # Same as above, but do not quote variable references.
|
---|
6985 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
|
---|
6986 |
|
---|
6987 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
6988 | # double_quote_subst'ed string.
|
---|
6989 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
6990 |
|
---|
6991 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
6992 | no_glob_subst='s/\*/\\\*/g'
|
---|
6993 |
|
---|
6994 | # Constants:
|
---|
6995 | rm="rm -f"
|
---|
6996 |
|
---|
6997 | # Global variables:
|
---|
6998 | default_ofile=libtool
|
---|
6999 | can_build_shared=yes
|
---|
7000 |
|
---|
7001 | # All known linkers require a `.a' archive for static linking (except MSVC,
|
---|
7002 | # which needs '.lib').
|
---|
7003 | libext=a
|
---|
7004 | ltmain="$ac_aux_dir/ltmain.sh"
|
---|
7005 | ofile="$default_ofile"
|
---|
7006 | with_gnu_ld="$lt_cv_prog_gnu_ld"
|
---|
7007 |
|
---|
7008 | if test -n "$ac_tool_prefix"; then
|
---|
7009 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
7010 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
7011 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7013 | if test "${ac_cv_prog_AR+set}" = set; then
|
---|
7014 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7015 | else
|
---|
7016 | if test -n "$AR"; then
|
---|
7017 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
7018 | else
|
---|
7019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7020 | for as_dir in $PATH
|
---|
7021 | do
|
---|
7022 | IFS=$as_save_IFS
|
---|
7023 | test -z "$as_dir" && as_dir=.
|
---|
7024 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7026 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
7027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7028 | break 2
|
---|
7029 | fi
|
---|
7030 | done
|
---|
7031 | done
|
---|
7032 |
|
---|
7033 | fi
|
---|
7034 | fi
|
---|
7035 | AR=$ac_cv_prog_AR
|
---|
7036 | if test -n "$AR"; then
|
---|
7037 | echo "$as_me:$LINENO: result: $AR" >&5
|
---|
7038 | echo "${ECHO_T}$AR" >&6
|
---|
7039 | else
|
---|
7040 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7041 | echo "${ECHO_T}no" >&6
|
---|
7042 | fi
|
---|
7043 |
|
---|
7044 | fi
|
---|
7045 | if test -z "$ac_cv_prog_AR"; then
|
---|
7046 | ac_ct_AR=$AR
|
---|
7047 | # Extract the first word of "ar", so it can be a program name with args.
|
---|
7048 | set dummy ar; ac_word=$2
|
---|
7049 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7051 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
---|
7052 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7053 | else
|
---|
7054 | if test -n "$ac_ct_AR"; then
|
---|
7055 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
7056 | else
|
---|
7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7058 | for as_dir in $PATH
|
---|
7059 | do
|
---|
7060 | IFS=$as_save_IFS
|
---|
7061 | test -z "$as_dir" && as_dir=.
|
---|
7062 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7064 | ac_cv_prog_ac_ct_AR="ar"
|
---|
7065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7066 | break 2
|
---|
7067 | fi
|
---|
7068 | done
|
---|
7069 | done
|
---|
7070 |
|
---|
7071 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
|
---|
7072 | fi
|
---|
7073 | fi
|
---|
7074 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
7075 | if test -n "$ac_ct_AR"; then
|
---|
7076 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
---|
7077 | echo "${ECHO_T}$ac_ct_AR" >&6
|
---|
7078 | else
|
---|
7079 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7080 | echo "${ECHO_T}no" >&6
|
---|
7081 | fi
|
---|
7082 |
|
---|
7083 | AR=$ac_ct_AR
|
---|
7084 | else
|
---|
7085 | AR="$ac_cv_prog_AR"
|
---|
7086 | fi
|
---|
7087 |
|
---|
7088 | if test -n "$ac_tool_prefix"; then
|
---|
7089 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
7090 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
7091 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7093 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
7094 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7095 | else
|
---|
7096 | if test -n "$RANLIB"; then
|
---|
7097 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
7098 | else
|
---|
7099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7100 | for as_dir in $PATH
|
---|
7101 | do
|
---|
7102 | IFS=$as_save_IFS
|
---|
7103 | test -z "$as_dir" && as_dir=.
|
---|
7104 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7106 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
7107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7108 | break 2
|
---|
7109 | fi
|
---|
7110 | done
|
---|
7111 | done
|
---|
7112 |
|
---|
7113 | fi
|
---|
7114 | fi
|
---|
7115 | RANLIB=$ac_cv_prog_RANLIB
|
---|
7116 | if test -n "$RANLIB"; then
|
---|
7117 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
7118 | echo "${ECHO_T}$RANLIB" >&6
|
---|
7119 | else
|
---|
7120 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7121 | echo "${ECHO_T}no" >&6
|
---|
7122 | fi
|
---|
7123 |
|
---|
7124 | fi
|
---|
7125 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
7126 | ac_ct_RANLIB=$RANLIB
|
---|
7127 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
7128 | set dummy ranlib; ac_word=$2
|
---|
7129 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7131 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
7132 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7133 | else
|
---|
7134 | if test -n "$ac_ct_RANLIB"; then
|
---|
7135 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
7136 | else
|
---|
7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7138 | for as_dir in $PATH
|
---|
7139 | do
|
---|
7140 | IFS=$as_save_IFS
|
---|
7141 | test -z "$as_dir" && as_dir=.
|
---|
7142 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7144 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
7145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7146 | break 2
|
---|
7147 | fi
|
---|
7148 | done
|
---|
7149 | done
|
---|
7150 |
|
---|
7151 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
7152 | fi
|
---|
7153 | fi
|
---|
7154 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
7155 | if test -n "$ac_ct_RANLIB"; then
|
---|
7156 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
7157 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
7158 | else
|
---|
7159 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7160 | echo "${ECHO_T}no" >&6
|
---|
7161 | fi
|
---|
7162 |
|
---|
7163 | RANLIB=$ac_ct_RANLIB
|
---|
7164 | else
|
---|
7165 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
7166 | fi
|
---|
7167 |
|
---|
7168 | if test -n "$ac_tool_prefix"; then
|
---|
7169 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
7170 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
7171 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7173 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
7174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7175 | else
|
---|
7176 | if test -n "$STRIP"; then
|
---|
7177 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
7178 | else
|
---|
7179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7180 | for as_dir in $PATH
|
---|
7181 | do
|
---|
7182 | IFS=$as_save_IFS
|
---|
7183 | test -z "$as_dir" && as_dir=.
|
---|
7184 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7186 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
7187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7188 | break 2
|
---|
7189 | fi
|
---|
7190 | done
|
---|
7191 | done
|
---|
7192 |
|
---|
7193 | fi
|
---|
7194 | fi
|
---|
7195 | STRIP=$ac_cv_prog_STRIP
|
---|
7196 | if test -n "$STRIP"; then
|
---|
7197 | echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
7198 | echo "${ECHO_T}$STRIP" >&6
|
---|
7199 | else
|
---|
7200 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7201 | echo "${ECHO_T}no" >&6
|
---|
7202 | fi
|
---|
7203 |
|
---|
7204 | fi
|
---|
7205 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
7206 | ac_ct_STRIP=$STRIP
|
---|
7207 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
7208 | set dummy strip; ac_word=$2
|
---|
7209 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
7210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
7211 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
7212 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7213 | else
|
---|
7214 | if test -n "$ac_ct_STRIP"; then
|
---|
7215 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
7216 | else
|
---|
7217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7218 | for as_dir in $PATH
|
---|
7219 | do
|
---|
7220 | IFS=$as_save_IFS
|
---|
7221 | test -z "$as_dir" && as_dir=.
|
---|
7222 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7224 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
7225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7226 | break 2
|
---|
7227 | fi
|
---|
7228 | done
|
---|
7229 | done
|
---|
7230 |
|
---|
7231 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
---|
7232 | fi
|
---|
7233 | fi
|
---|
7234 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
7235 | if test -n "$ac_ct_STRIP"; then
|
---|
7236 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
7237 | echo "${ECHO_T}$ac_ct_STRIP" >&6
|
---|
7238 | else
|
---|
7239 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7240 | echo "${ECHO_T}no" >&6
|
---|
7241 | fi
|
---|
7242 |
|
---|
7243 | STRIP=$ac_ct_STRIP
|
---|
7244 | else
|
---|
7245 | STRIP="$ac_cv_prog_STRIP"
|
---|
7246 | fi
|
---|
7247 |
|
---|
7248 |
|
---|
7249 | old_CC="$CC"
|
---|
7250 | old_CFLAGS="$CFLAGS"
|
---|
7251 |
|
---|
7252 | # Set sane defaults for various variables
|
---|
7253 | test -z "$AR" && AR=ar
|
---|
7254 | test -z "$AR_FLAGS" && AR_FLAGS=cru
|
---|
7255 | test -z "$AS" && AS=as
|
---|
7256 | test -z "$CC" && CC=cc
|
---|
7257 | test -z "$LTCC" && LTCC=$CC
|
---|
7258 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
7259 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
7260 | test -z "$LD" && LD=ld
|
---|
7261 | test -z "$LN_S" && LN_S="ln -s"
|
---|
7262 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
7263 | test -z "$NM" && NM=nm
|
---|
7264 | test -z "$SED" && SED=sed
|
---|
7265 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
7266 | test -z "$RANLIB" && RANLIB=:
|
---|
7267 | test -z "$STRIP" && STRIP=:
|
---|
7268 | test -z "$ac_objext" && ac_objext=o
|
---|
7269 |
|
---|
7270 | # Determine commands to create old-style static archives.
|
---|
7271 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
---|
7272 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
7273 | old_postuninstall_cmds=
|
---|
7274 |
|
---|
7275 | if test -n "$RANLIB"; then
|
---|
7276 | case $host_os in
|
---|
7277 | openbsd*)
|
---|
7278 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
---|
7279 | ;;
|
---|
7280 | *)
|
---|
7281 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
---|
7282 | ;;
|
---|
7283 | esac
|
---|
7284 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
---|
7285 | fi
|
---|
7286 |
|
---|
7287 | for cc_temp in $compiler""; do
|
---|
7288 | case $cc_temp in
|
---|
7289 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
7290 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
7291 | \-*) ;;
|
---|
7292 | *) break;;
|
---|
7293 | esac
|
---|
7294 | done
|
---|
7295 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
7296 |
|
---|
7297 |
|
---|
7298 | # Only perform the check for file, if the check method requires it
|
---|
7299 | case $deplibs_check_method in
|
---|
7300 | file_magic*)
|
---|
7301 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
7302 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
---|
7303 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
|
---|
7304 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
---|
7305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7306 | else
|
---|
7307 | case $MAGIC_CMD in
|
---|
7308 | [\\/*] | ?:[\\/]*)
|
---|
7309 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
7310 | ;;
|
---|
7311 | *)
|
---|
7312 | lt_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
7313 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
---|
7314 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
7315 | for ac_dir in $ac_dummy; do
|
---|
7316 | IFS="$lt_save_ifs"
|
---|
7317 | test -z "$ac_dir" && ac_dir=.
|
---|
7318 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
7319 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
7320 | if test -n "$file_magic_test_file"; then
|
---|
7321 | case $deplibs_check_method in
|
---|
7322 | "file_magic "*)
|
---|
7323 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
7324 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
7325 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
7326 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
7327 | :
|
---|
7328 | else
|
---|
7329 | cat <<EOF 1>&2
|
---|
7330 |
|
---|
7331 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
7332 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
7333 | *** The result is that libtool may fail to recognize shared libraries
|
---|
7334 | *** as such. This will affect the creation of libtool libraries that
|
---|
7335 | *** depend on shared libraries, but programs linked with such libtool
|
---|
7336 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
7337 | *** may want to report the problem to your system manager and/or to
|
---|
7338 | *** bug-libtool@gnu.org
|
---|
7339 |
|
---|
7340 | EOF
|
---|
7341 | fi ;;
|
---|
7342 | esac
|
---|
7343 | fi
|
---|
7344 | break
|
---|
7345 | fi
|
---|
7346 | done
|
---|
7347 | IFS="$lt_save_ifs"
|
---|
7348 | MAGIC_CMD="$lt_save_MAGIC_CMD"
|
---|
7349 | ;;
|
---|
7350 | esac
|
---|
7351 | fi
|
---|
7352 |
|
---|
7353 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
7354 | if test -n "$MAGIC_CMD"; then
|
---|
7355 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
---|
7356 | echo "${ECHO_T}$MAGIC_CMD" >&6
|
---|
7357 | else
|
---|
7358 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7359 | echo "${ECHO_T}no" >&6
|
---|
7360 | fi
|
---|
7361 |
|
---|
7362 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
7363 | if test -n "$ac_tool_prefix"; then
|
---|
7364 | echo "$as_me:$LINENO: checking for file" >&5
|
---|
7365 | echo $ECHO_N "checking for file... $ECHO_C" >&6
|
---|
7366 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
---|
7367 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7368 | else
|
---|
7369 | case $MAGIC_CMD in
|
---|
7370 | [\\/*] | ?:[\\/]*)
|
---|
7371 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
7372 | ;;
|
---|
7373 | *)
|
---|
7374 | lt_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
7375 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
---|
7376 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
7377 | for ac_dir in $ac_dummy; do
|
---|
7378 | IFS="$lt_save_ifs"
|
---|
7379 | test -z "$ac_dir" && ac_dir=.
|
---|
7380 | if test -f $ac_dir/file; then
|
---|
7381 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
7382 | if test -n "$file_magic_test_file"; then
|
---|
7383 | case $deplibs_check_method in
|
---|
7384 | "file_magic "*)
|
---|
7385 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
7386 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
7387 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
7388 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
7389 | :
|
---|
7390 | else
|
---|
7391 | cat <<EOF 1>&2
|
---|
7392 |
|
---|
7393 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
7394 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
7395 | *** The result is that libtool may fail to recognize shared libraries
|
---|
7396 | *** as such. This will affect the creation of libtool libraries that
|
---|
7397 | *** depend on shared libraries, but programs linked with such libtool
|
---|
7398 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
7399 | *** may want to report the problem to your system manager and/or to
|
---|
7400 | *** bug-libtool@gnu.org
|
---|
7401 |
|
---|
7402 | EOF
|
---|
7403 | fi ;;
|
---|
7404 | esac
|
---|
7405 | fi
|
---|
7406 | break
|
---|
7407 | fi
|
---|
7408 | done
|
---|
7409 | IFS="$lt_save_ifs"
|
---|
7410 | MAGIC_CMD="$lt_save_MAGIC_CMD"
|
---|
7411 | ;;
|
---|
7412 | esac
|
---|
7413 | fi
|
---|
7414 |
|
---|
7415 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
7416 | if test -n "$MAGIC_CMD"; then
|
---|
7417 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
---|
7418 | echo "${ECHO_T}$MAGIC_CMD" >&6
|
---|
7419 | else
|
---|
7420 | echo "$as_me:$LINENO: result: no" >&5
|
---|
7421 | echo "${ECHO_T}no" >&6
|
---|
7422 | fi
|
---|
7423 |
|
---|
7424 | else
|
---|
7425 | MAGIC_CMD=:
|
---|
7426 | fi
|
---|
7427 | fi
|
---|
7428 |
|
---|
7429 | fi
|
---|
7430 | ;;
|
---|
7431 | esac
|
---|
7432 |
|
---|
7433 | enable_dlopen=no
|
---|
7434 | enable_win32_dll=no
|
---|
7435 |
|
---|
7436 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
7437 | if test "${enable_libtool_lock+set}" = set; then
|
---|
7438 | enableval="$enable_libtool_lock"
|
---|
7439 |
|
---|
7440 | fi;
|
---|
7441 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
---|
7442 |
|
---|
7443 |
|
---|
7444 | # Check whether --with-pic or --without-pic was given.
|
---|
7445 | if test "${with_pic+set}" = set; then
|
---|
7446 | withval="$with_pic"
|
---|
7447 | pic_mode="$withval"
|
---|
7448 | else
|
---|
7449 | pic_mode=default
|
---|
7450 | fi;
|
---|
7451 | test -z "$pic_mode" && pic_mode=default
|
---|
7452 |
|
---|
7453 | # Use C for the default configuration in the libtool script
|
---|
7454 | tagname=
|
---|
7455 | lt_save_CC="$CC"
|
---|
7456 | ac_ext=c
|
---|
7457 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7461 |
|
---|
7462 |
|
---|
7463 | # Source file extension for C test sources.
|
---|
7464 | ac_ext=c
|
---|
7465 |
|
---|
7466 | # Object file extension for compiled C test sources.
|
---|
7467 | objext=o
|
---|
7468 | objext=$objext
|
---|
7469 |
|
---|
7470 | # Code to be used in simple compile tests
|
---|
7471 | lt_simple_compile_test_code="int some_variable = 0;\n"
|
---|
7472 |
|
---|
7473 | # Code to be used in simple link tests
|
---|
7474 | lt_simple_link_test_code='int main(){return(0);}\n'
|
---|
7475 |
|
---|
7476 |
|
---|
7477 | # If no C compiler was specified, use CC.
|
---|
7478 | LTCC=${LTCC-"$CC"}
|
---|
7479 |
|
---|
7480 | # If no C compiler flags were specified, use CFLAGS.
|
---|
7481 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
7482 |
|
---|
7483 | # Allow CC to be a program name with arguments.
|
---|
7484 | compiler=$CC
|
---|
7485 |
|
---|
7486 |
|
---|
7487 | # save warnings/boilerplate of simple test code
|
---|
7488 | ac_outfile=conftest.$ac_objext
|
---|
7489 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
7490 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
7491 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
7492 | $rm conftest*
|
---|
7493 |
|
---|
7494 | ac_outfile=conftest.$ac_objext
|
---|
7495 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
7496 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
7497 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
7498 | $rm conftest*
|
---|
7499 |
|
---|
7500 |
|
---|
7501 |
|
---|
7502 | lt_prog_compiler_no_builtin_flag=
|
---|
7503 |
|
---|
7504 | if test "$GCC" = yes; then
|
---|
7505 | lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
---|
7506 |
|
---|
7507 |
|
---|
7508 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
7509 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
|
---|
7510 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
---|
7511 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7512 | else
|
---|
7513 | lt_cv_prog_compiler_rtti_exceptions=no
|
---|
7514 | ac_outfile=conftest.$ac_objext
|
---|
7515 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
7516 | lt_compiler_flag="-fno-rtti -fno-exceptions"
|
---|
7517 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
7518 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
7519 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
7520 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
7521 | # The option is referenced via a variable to avoid confusing sed.
|
---|
7522 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
7523 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
7524 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
7525 | -e 's:$: $lt_compiler_flag:'`
|
---|
7526 | (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
|
---|
7527 | (eval "$lt_compile" 2>conftest.err)
|
---|
7528 | ac_status=$?
|
---|
7529 | cat conftest.err >&5
|
---|
7530 | echo "$as_me:7530: \$? = $ac_status" >&5
|
---|
7531 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
7532 | # The compiler can only warn and ignore the option if not recognized
|
---|
7533 | # So say no if there are warnings other than the usual output.
|
---|
7534 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
7535 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
7536 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
7537 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
7538 | fi
|
---|
7539 | fi
|
---|
7540 | $rm conftest*
|
---|
7541 |
|
---|
7542 | fi
|
---|
7543 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
7544 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
|
---|
7545 |
|
---|
7546 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
---|
7547 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
7548 | else
|
---|
7549 | :
|
---|
7550 | fi
|
---|
7551 |
|
---|
7552 | fi
|
---|
7553 |
|
---|
7554 | lt_prog_compiler_wl=
|
---|
7555 | lt_prog_compiler_pic=
|
---|
7556 | lt_prog_compiler_static=
|
---|
7557 |
|
---|
7558 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
---|
7559 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
---|
7560 |
|
---|
7561 | if test "$GCC" = yes; then
|
---|
7562 | lt_prog_compiler_wl='-Wl,'
|
---|
7563 | lt_prog_compiler_static='-static'
|
---|
7564 |
|
---|
7565 | case $host_os in
|
---|
7566 | aix*)
|
---|
7567 | # All AIX code is PIC.
|
---|
7568 | if test "$host_cpu" = ia64; then
|
---|
7569 | # AIX 5 now supports IA64 processor
|
---|
7570 | lt_prog_compiler_static='-Bstatic'
|
---|
7571 | fi
|
---|
7572 | ;;
|
---|
7573 |
|
---|
7574 | amigaos*)
|
---|
7575 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
7576 | # adding the `-m68020' flag to GCC prevents building anything better,
|
---|
7577 | # like `-m68040'.
|
---|
7578 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
7579 | ;;
|
---|
7580 |
|
---|
7581 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
7582 | # PIC is the default for these OSes.
|
---|
7583 | ;;
|
---|
7584 |
|
---|
7585 | mingw* | pw32* | os2*)
|
---|
7586 | # This hack is so that the source file can tell whether it is being
|
---|
7587 | # built for inclusion in a dll (and should export symbols for example).
|
---|
7588 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
7589 | ;;
|
---|
7590 |
|
---|
7591 | darwin* | rhapsody*)
|
---|
7592 | # PIC is the default on this platform
|
---|
7593 | # Common symbols not allowed in MH_DYLIB files
|
---|
7594 | lt_prog_compiler_pic='-fno-common'
|
---|
7595 | ;;
|
---|
7596 |
|
---|
7597 | interix3*)
|
---|
7598 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
7599 | # Instead, we relocate shared libraries at runtime.
|
---|
7600 | ;;
|
---|
7601 |
|
---|
7602 | msdosdjgpp*)
|
---|
7603 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
7604 | # on systems that don't support them.
|
---|
7605 | lt_prog_compiler_can_build_shared=no
|
---|
7606 | enable_shared=no
|
---|
7607 | ;;
|
---|
7608 |
|
---|
7609 | sysv4*MP*)
|
---|
7610 | if test -d /usr/nec; then
|
---|
7611 | lt_prog_compiler_pic=-Kconform_pic
|
---|
7612 | fi
|
---|
7613 | ;;
|
---|
7614 |
|
---|
7615 | hpux*)
|
---|
7616 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
7617 | # not for PA HP-UX.
|
---|
7618 | case $host_cpu in
|
---|
7619 | hppa*64*|ia64*)
|
---|
7620 | # +Z the default
|
---|
7621 | ;;
|
---|
7622 | *)
|
---|
7623 | lt_prog_compiler_pic='-fPIC'
|
---|
7624 | ;;
|
---|
7625 | esac
|
---|
7626 | ;;
|
---|
7627 |
|
---|
7628 | *)
|
---|
7629 | lt_prog_compiler_pic='-fPIC'
|
---|
7630 | ;;
|
---|
7631 | esac
|
---|
7632 | else
|
---|
7633 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
7634 | case $host_os in
|
---|
7635 | aix*)
|
---|
7636 | lt_prog_compiler_wl='-Wl,'
|
---|
7637 | if test "$host_cpu" = ia64; then
|
---|
7638 | # AIX 5 now supports IA64 processor
|
---|
7639 | lt_prog_compiler_static='-Bstatic'
|
---|
7640 | else
|
---|
7641 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
7642 | fi
|
---|
7643 | ;;
|
---|
7644 | darwin*)
|
---|
7645 | # PIC is the default on this platform
|
---|
7646 | # Common symbols not allowed in MH_DYLIB files
|
---|
7647 | case $cc_basename in
|
---|
7648 | xlc*)
|
---|
7649 | lt_prog_compiler_pic='-qnocommon'
|
---|
7650 | lt_prog_compiler_wl='-Wl,'
|
---|
7651 | ;;
|
---|
7652 | esac
|
---|
7653 | ;;
|
---|
7654 |
|
---|
7655 | mingw* | pw32* | os2*)
|
---|
7656 | # This hack is so that the source file can tell whether it is being
|
---|
7657 | # built for inclusion in a dll (and should export symbols for example).
|
---|
7658 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
7659 | ;;
|
---|
7660 |
|
---|
7661 | hpux9* | hpux10* | hpux11*)
|
---|
7662 | lt_prog_compiler_wl='-Wl,'
|
---|
7663 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
7664 | # not for PA HP-UX.
|
---|
7665 | case $host_cpu in
|
---|
7666 | hppa*64*|ia64*)
|
---|
7667 | # +Z the default
|
---|
7668 | ;;
|
---|
7669 | *)
|
---|
7670 | lt_prog_compiler_pic='+Z'
|
---|
7671 | ;;
|
---|
7672 | esac
|
---|
7673 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
7674 | lt_prog_compiler_static='${wl}-a ${wl}archive'
|
---|
7675 | ;;
|
---|
7676 |
|
---|
7677 | irix5* | irix6* | nonstopux*)
|
---|
7678 | lt_prog_compiler_wl='-Wl,'
|
---|
7679 | # PIC (with -KPIC) is the default.
|
---|
7680 | lt_prog_compiler_static='-non_shared'
|
---|
7681 | ;;
|
---|
7682 |
|
---|
7683 | newsos6)
|
---|
7684 | lt_prog_compiler_pic='-KPIC'
|
---|
7685 | lt_prog_compiler_static='-Bstatic'
|
---|
7686 | ;;
|
---|
7687 |
|
---|
7688 | linux*)
|
---|
7689 | case $cc_basename in
|
---|
7690 | icc* | ecc*)
|
---|
7691 | lt_prog_compiler_wl='-Wl,'
|
---|
7692 | lt_prog_compiler_pic='-KPIC'
|
---|
7693 | lt_prog_compiler_static='-static'
|
---|
7694 | ;;
|
---|
7695 | pgcc* | pgf77* | pgf90* | pgf95*)
|
---|
7696 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
7697 | # which looks to be a dead project)
|
---|
7698 | lt_prog_compiler_wl='-Wl,'
|
---|
7699 | lt_prog_compiler_pic='-fpic'
|
---|
7700 | lt_prog_compiler_static='-Bstatic'
|
---|
7701 | ;;
|
---|
7702 | ccc*)
|
---|
7703 | lt_prog_compiler_wl='-Wl,'
|
---|
7704 | # All Alpha code is PIC.
|
---|
7705 | lt_prog_compiler_static='-non_shared'
|
---|
7706 | ;;
|
---|
7707 | esac
|
---|
7708 | ;;
|
---|
7709 |
|
---|
7710 | osf3* | osf4* | osf5*)
|
---|
7711 | lt_prog_compiler_wl='-Wl,'
|
---|
7712 | # All OSF/1 code is PIC.
|
---|
7713 | lt_prog_compiler_static='-non_shared'
|
---|
7714 | ;;
|
---|
7715 |
|
---|
7716 | solaris*)
|
---|
7717 | lt_prog_compiler_pic='-KPIC'
|
---|
7718 | lt_prog_compiler_static='-Bstatic'
|
---|
7719 | case $cc_basename in
|
---|
7720 | f77* | f90* | f95*)
|
---|
7721 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
7722 | *)
|
---|
7723 | lt_prog_compiler_wl='-Wl,';;
|
---|
7724 | esac
|
---|
7725 | ;;
|
---|
7726 |
|
---|
7727 | sunos4*)
|
---|
7728 | lt_prog_compiler_wl='-Qoption ld '
|
---|
7729 | lt_prog_compiler_pic='-PIC'
|
---|
7730 | lt_prog_compiler_static='-Bstatic'
|
---|
7731 | ;;
|
---|
7732 |
|
---|
7733 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
7734 | lt_prog_compiler_wl='-Wl,'
|
---|
7735 | lt_prog_compiler_pic='-KPIC'
|
---|
7736 | lt_prog_compiler_static='-Bstatic'
|
---|
7737 | ;;
|
---|
7738 |
|
---|
7739 | sysv4*MP*)
|
---|
7740 | if test -d /usr/nec ;then
|
---|
7741 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
7742 | lt_prog_compiler_static='-Bstatic'
|
---|
7743 | fi
|
---|
7744 | ;;
|
---|
7745 |
|
---|
7746 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
7747 | lt_prog_compiler_wl='-Wl,'
|
---|
7748 | lt_prog_compiler_pic='-KPIC'
|
---|
7749 | lt_prog_compiler_static='-Bstatic'
|
---|
7750 | ;;
|
---|
7751 |
|
---|
7752 | unicos*)
|
---|
7753 | lt_prog_compiler_wl='-Wl,'
|
---|
7754 | lt_prog_compiler_can_build_shared=no
|
---|
7755 | ;;
|
---|
7756 |
|
---|
7757 | uts4*)
|
---|
7758 | lt_prog_compiler_pic='-pic'
|
---|
7759 | lt_prog_compiler_static='-Bstatic'
|
---|
7760 | ;;
|
---|
7761 |
|
---|
7762 | *)
|
---|
7763 | lt_prog_compiler_can_build_shared=no
|
---|
7764 | ;;
|
---|
7765 | esac
|
---|
7766 | fi
|
---|
7767 |
|
---|
7768 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
---|
7769 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6
|
---|
7770 |
|
---|
7771 | #
|
---|
7772 | # Check to make sure the PIC flag actually works.
|
---|
7773 | #
|
---|
7774 | if test -n "$lt_prog_compiler_pic"; then
|
---|
7775 |
|
---|
7776 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
7777 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
|
---|
7778 | if test "${lt_prog_compiler_pic_works+set}" = set; then
|
---|
7779 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7780 | else
|
---|
7781 | lt_prog_compiler_pic_works=no
|
---|
7782 | ac_outfile=conftest.$ac_objext
|
---|
7783 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
7784 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
---|
7785 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
7786 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
7787 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
7788 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
7789 | # The option is referenced via a variable to avoid confusing sed.
|
---|
7790 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
7791 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
7792 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
7793 | -e 's:$: $lt_compiler_flag:'`
|
---|
7794 | (eval echo "\"\$as_me:7794: $lt_compile\"" >&5)
|
---|
7795 | (eval "$lt_compile" 2>conftest.err)
|
---|
7796 | ac_status=$?
|
---|
7797 | cat conftest.err >&5
|
---|
7798 | echo "$as_me:7798: \$? = $ac_status" >&5
|
---|
7799 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
7800 | # The compiler can only warn and ignore the option if not recognized
|
---|
7801 | # So say no if there are warnings other than the usual output.
|
---|
7802 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
7803 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
7804 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
7805 | lt_prog_compiler_pic_works=yes
|
---|
7806 | fi
|
---|
7807 | fi
|
---|
7808 | $rm conftest*
|
---|
7809 |
|
---|
7810 | fi
|
---|
7811 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
|
---|
7812 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
|
---|
7813 |
|
---|
7814 | if test x"$lt_prog_compiler_pic_works" = xyes; then
|
---|
7815 | case $lt_prog_compiler_pic in
|
---|
7816 | "" | " "*) ;;
|
---|
7817 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
7818 | esac
|
---|
7819 | else
|
---|
7820 | lt_prog_compiler_pic=
|
---|
7821 | lt_prog_compiler_can_build_shared=no
|
---|
7822 | fi
|
---|
7823 |
|
---|
7824 | fi
|
---|
7825 | case $host_os in
|
---|
7826 | # For platforms which do not support PIC, -DPIC is meaningless:
|
---|
7827 | *djgpp*)
|
---|
7828 | lt_prog_compiler_pic=
|
---|
7829 | ;;
|
---|
7830 | *)
|
---|
7831 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
7832 | ;;
|
---|
7833 | esac
|
---|
7834 |
|
---|
7835 | #
|
---|
7836 | # Check to make sure the static flag actually works.
|
---|
7837 | #
|
---|
7838 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
7839 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
7840 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
---|
7841 | if test "${lt_prog_compiler_static_works+set}" = set; then
|
---|
7842 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7843 | else
|
---|
7844 | lt_prog_compiler_static_works=no
|
---|
7845 | save_LDFLAGS="$LDFLAGS"
|
---|
7846 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
7847 | printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
7848 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
7849 | # The linker can only warn and ignore the option if not recognized
|
---|
7850 | # So say no if there are warnings
|
---|
7851 | if test -s conftest.err; then
|
---|
7852 | # Append any errors to the config.log.
|
---|
7853 | cat conftest.err 1>&5
|
---|
7854 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
---|
7855 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
7856 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
7857 | lt_prog_compiler_static_works=yes
|
---|
7858 | fi
|
---|
7859 | else
|
---|
7860 | lt_prog_compiler_static_works=yes
|
---|
7861 | fi
|
---|
7862 | fi
|
---|
7863 | $rm conftest*
|
---|
7864 | LDFLAGS="$save_LDFLAGS"
|
---|
7865 |
|
---|
7866 | fi
|
---|
7867 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
---|
7868 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
|
---|
7869 |
|
---|
7870 | if test x"$lt_prog_compiler_static_works" = xyes; then
|
---|
7871 | :
|
---|
7872 | else
|
---|
7873 | lt_prog_compiler_static=
|
---|
7874 | fi
|
---|
7875 |
|
---|
7876 |
|
---|
7877 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
7878 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
---|
7879 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
---|
7880 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7881 | else
|
---|
7882 | lt_cv_prog_compiler_c_o=no
|
---|
7883 | $rm -r conftest 2>/dev/null
|
---|
7884 | mkdir conftest
|
---|
7885 | cd conftest
|
---|
7886 | mkdir out
|
---|
7887 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
7888 |
|
---|
7889 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
7890 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
7891 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
7892 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
7893 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
7894 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
7895 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
7896 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
7897 | -e 's:$: $lt_compiler_flag:'`
|
---|
7898 | (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
|
---|
7899 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
7900 | ac_status=$?
|
---|
7901 | cat out/conftest.err >&5
|
---|
7902 | echo "$as_me:7902: \$? = $ac_status" >&5
|
---|
7903 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
7904 | then
|
---|
7905 | # The compiler can only warn and ignore the option if not recognized
|
---|
7906 | # So say no if there are warnings
|
---|
7907 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
---|
7908 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
7909 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
7910 | lt_cv_prog_compiler_c_o=yes
|
---|
7911 | fi
|
---|
7912 | fi
|
---|
7913 | chmod u+w . 2>&5
|
---|
7914 | $rm conftest*
|
---|
7915 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
7916 | # template instantiation
|
---|
7917 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
---|
7918 | $rm out/* && rmdir out
|
---|
7919 | cd ..
|
---|
7920 | rmdir conftest
|
---|
7921 | $rm conftest*
|
---|
7922 |
|
---|
7923 | fi
|
---|
7924 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
7925 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
|
---|
7926 |
|
---|
7927 |
|
---|
7928 | hard_links="nottested"
|
---|
7929 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
---|
7930 | # do not overwrite the value of need_locks provided by the user
|
---|
7931 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
---|
7932 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
---|
7933 | hard_links=yes
|
---|
7934 | $rm conftest*
|
---|
7935 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
7936 | touch conftest.a
|
---|
7937 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
7938 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
7939 | echo "$as_me:$LINENO: result: $hard_links" >&5
|
---|
7940 | echo "${ECHO_T}$hard_links" >&6
|
---|
7941 | if test "$hard_links" = no; then
|
---|
7942 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
---|
7943 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
---|
7944 | need_locks=warn
|
---|
7945 | fi
|
---|
7946 | else
|
---|
7947 | need_locks=no
|
---|
7948 | fi
|
---|
7949 |
|
---|
7950 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
7951 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
---|
7952 |
|
---|
7953 | runpath_var=
|
---|
7954 | allow_undefined_flag=
|
---|
7955 | enable_shared_with_static_runtimes=no
|
---|
7956 | archive_cmds=
|
---|
7957 | archive_expsym_cmds=
|
---|
7958 | old_archive_From_new_cmds=
|
---|
7959 | old_archive_from_expsyms_cmds=
|
---|
7960 | export_dynamic_flag_spec=
|
---|
7961 | whole_archive_flag_spec=
|
---|
7962 | thread_safe_flag_spec=
|
---|
7963 | hardcode_libdir_flag_spec=
|
---|
7964 | hardcode_libdir_flag_spec_ld=
|
---|
7965 | hardcode_libdir_separator=
|
---|
7966 | hardcode_direct=no
|
---|
7967 | hardcode_minus_L=no
|
---|
7968 | hardcode_shlibpath_var=unsupported
|
---|
7969 | link_all_deplibs=unknown
|
---|
7970 | hardcode_automatic=no
|
---|
7971 | module_cmds=
|
---|
7972 | module_expsym_cmds=
|
---|
7973 | always_export_symbols=no
|
---|
7974 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
7975 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
7976 | # included in the symbol list
|
---|
7977 | include_expsyms=
|
---|
7978 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
7979 | # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
---|
7980 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
---|
7981 | # as well as any symbol that contains `d'.
|
---|
7982 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
---|
7983 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
7984 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
7985 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
7986 | # rely on this symbol name, it's probably fine to never include it in
|
---|
7987 | # preloaded symbol tables.
|
---|
7988 | extract_expsyms_cmds=
|
---|
7989 | # Just being paranoid about ensuring that cc_basename is set.
|
---|
7990 | for cc_temp in $compiler""; do
|
---|
7991 | case $cc_temp in
|
---|
7992 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
7993 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
7994 | \-*) ;;
|
---|
7995 | *) break;;
|
---|
7996 | esac
|
---|
7997 | done
|
---|
7998 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
7999 |
|
---|
8000 | case $host_os in
|
---|
8001 | cygwin* | mingw* | pw32*)
|
---|
8002 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
8003 | # When not using gcc, we currently assume that we are using
|
---|
8004 | # Microsoft Visual C++.
|
---|
8005 | if test "$GCC" != yes; then
|
---|
8006 | with_gnu_ld=no
|
---|
8007 | fi
|
---|
8008 | ;;
|
---|
8009 | interix*)
|
---|
8010 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
8011 | with_gnu_ld=yes
|
---|
8012 | ;;
|
---|
8013 | openbsd*)
|
---|
8014 | with_gnu_ld=no
|
---|
8015 | ;;
|
---|
8016 | esac
|
---|
8017 |
|
---|
8018 | ld_shlibs=yes
|
---|
8019 | if test "$with_gnu_ld" = yes; then
|
---|
8020 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
8021 | wlarc='${wl}'
|
---|
8022 |
|
---|
8023 | # Set some defaults for GNU ld with shared library support. These
|
---|
8024 | # are reset later if shared libraries are not supported. Putting them
|
---|
8025 | # here allows them to be overridden if necessary.
|
---|
8026 | runpath_var=LD_RUN_PATH
|
---|
8027 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
---|
8028 | export_dynamic_flag_spec='${wl}--export-dynamic'
|
---|
8029 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
8030 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
---|
8031 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
---|
8032 | else
|
---|
8033 | whole_archive_flag_spec=
|
---|
8034 | fi
|
---|
8035 | supports_anon_versioning=no
|
---|
8036 | case `$LD -v 2>/dev/null` in
|
---|
8037 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
8038 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
8039 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
8040 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
8041 | *) supports_anon_versioning=yes ;;
|
---|
8042 | esac
|
---|
8043 |
|
---|
8044 | # See if GNU ld supports shared libraries.
|
---|
8045 | case $host_os in
|
---|
8046 | aix3* | aix4* | aix5*)
|
---|
8047 | # On AIX/PPC, the GNU linker is very broken
|
---|
8048 | if test "$host_cpu" != ia64; then
|
---|
8049 | ld_shlibs=no
|
---|
8050 | cat <<EOF 1>&2
|
---|
8051 |
|
---|
8052 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
---|
8053 | *** to be unable to reliably create shared libraries on AIX.
|
---|
8054 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
8055 | *** really care for shared libraries, you may want to modify your PATH
|
---|
8056 | *** so that a non-GNU linker is found, and then restart.
|
---|
8057 |
|
---|
8058 | EOF
|
---|
8059 | fi
|
---|
8060 | ;;
|
---|
8061 |
|
---|
8062 | amigaos*)
|
---|
8063 | 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)'
|
---|
8064 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8065 | hardcode_minus_L=yes
|
---|
8066 |
|
---|
8067 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
---|
8068 | # that the semantics of dynamic libraries on AmigaOS, at least up
|
---|
8069 | # to version 4, is to share data among multiple programs linked
|
---|
8070 | # with the same dynamic library. Since this doesn't match the
|
---|
8071 | # behavior of shared libraries on other platforms, we can't use
|
---|
8072 | # them.
|
---|
8073 | ld_shlibs=no
|
---|
8074 | ;;
|
---|
8075 |
|
---|
8076 | beos*)
|
---|
8077 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
8078 | allow_undefined_flag=unsupported
|
---|
8079 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
8080 | # support --undefined. This deserves some investigation. FIXME
|
---|
8081 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
8082 | else
|
---|
8083 | ld_shlibs=no
|
---|
8084 | fi
|
---|
8085 | ;;
|
---|
8086 |
|
---|
8087 | cygwin* | mingw* | pw32*)
|
---|
8088 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
8089 | # as there is no search path for DLLs.
|
---|
8090 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8091 | allow_undefined_flag=unsupported
|
---|
8092 | always_export_symbols=no
|
---|
8093 | enable_shared_with_static_runtimes=yes
|
---|
8094 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
8095 |
|
---|
8096 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
---|
8097 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
8098 | # If the export-symbols file already is a .def file (1st line
|
---|
8099 | # is EXPORTS), use it as is; otherwise, prepend...
|
---|
8100 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
---|
8101 | cp $export_symbols $output_objdir/$soname.def;
|
---|
8102 | else
|
---|
8103 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
8104 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
8105 | fi~
|
---|
8106 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
8107 | else
|
---|
8108 | ld_shlibs=no
|
---|
8109 | fi
|
---|
8110 | ;;
|
---|
8111 |
|
---|
8112 | interix3*)
|
---|
8113 | hardcode_direct=no
|
---|
8114 | hardcode_shlibpath_var=no
|
---|
8115 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
---|
8116 | export_dynamic_flag_spec='${wl}-E'
|
---|
8117 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
8118 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
8119 | # default) and relocated if they conflict, which is a slow very memory
|
---|
8120 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
8121 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
8122 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
8123 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
8124 | 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'
|
---|
8125 | ;;
|
---|
8126 |
|
---|
8127 | linux*)
|
---|
8128 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
8129 | tmp_addflag=
|
---|
8130 | case $cc_basename,$host_cpu in
|
---|
8131 | pgcc*) # Portland Group C compiler
|
---|
8132 | 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'
|
---|
8133 | tmp_addflag=' $pic_flag'
|
---|
8134 | ;;
|
---|
8135 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
---|
8136 | 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'
|
---|
8137 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
8138 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
8139 | tmp_addflag=' -i_dynamic' ;;
|
---|
8140 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
8141 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
8142 | ifc* | ifort*) # Intel Fortran compiler
|
---|
8143 | tmp_addflag=' -nofor_main' ;;
|
---|
8144 | esac
|
---|
8145 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
8146 |
|
---|
8147 | if test $supports_anon_versioning = yes; then
|
---|
8148 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
---|
8149 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
8150 | $echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
8151 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
---|
8152 | fi
|
---|
8153 | else
|
---|
8154 | ld_shlibs=no
|
---|
8155 | fi
|
---|
8156 | ;;
|
---|
8157 |
|
---|
8158 | netbsd*)
|
---|
8159 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
8160 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
8161 | wlarc=
|
---|
8162 | else
|
---|
8163 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
8164 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8165 | fi
|
---|
8166 | ;;
|
---|
8167 |
|
---|
8168 | solaris*)
|
---|
8169 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
---|
8170 | ld_shlibs=no
|
---|
8171 | cat <<EOF 1>&2
|
---|
8172 |
|
---|
8173 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
8174 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
8175 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
8176 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
8177 | *** your PATH or compiler configuration so that the native linker is
|
---|
8178 | *** used, and then restart.
|
---|
8179 |
|
---|
8180 | EOF
|
---|
8181 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
8182 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
8183 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8184 | else
|
---|
8185 | ld_shlibs=no
|
---|
8186 | fi
|
---|
8187 | ;;
|
---|
8188 |
|
---|
8189 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
8190 | case `$LD -v 2>&1` in
|
---|
8191 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
8192 | ld_shlibs=no
|
---|
8193 | cat <<_LT_EOF 1>&2
|
---|
8194 |
|
---|
8195 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
---|
8196 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
8197 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
8198 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
8199 | *** your PATH or compiler configuration so that the native linker is
|
---|
8200 | *** used, and then restart.
|
---|
8201 |
|
---|
8202 | _LT_EOF
|
---|
8203 | ;;
|
---|
8204 | *)
|
---|
8205 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
8206 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
---|
8207 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
---|
8208 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
---|
8209 | else
|
---|
8210 | ld_shlibs=no
|
---|
8211 | fi
|
---|
8212 | ;;
|
---|
8213 | esac
|
---|
8214 | ;;
|
---|
8215 |
|
---|
8216 | sunos4*)
|
---|
8217 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
8218 | wlarc=
|
---|
8219 | hardcode_direct=yes
|
---|
8220 | hardcode_shlibpath_var=no
|
---|
8221 | ;;
|
---|
8222 |
|
---|
8223 | *)
|
---|
8224 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
8225 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
8226 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8227 | else
|
---|
8228 | ld_shlibs=no
|
---|
8229 | fi
|
---|
8230 | ;;
|
---|
8231 | esac
|
---|
8232 |
|
---|
8233 | if test "$ld_shlibs" = no; then
|
---|
8234 | runpath_var=
|
---|
8235 | hardcode_libdir_flag_spec=
|
---|
8236 | export_dynamic_flag_spec=
|
---|
8237 | whole_archive_flag_spec=
|
---|
8238 | fi
|
---|
8239 | else
|
---|
8240 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
8241 | case $host_os in
|
---|
8242 | aix3*)
|
---|
8243 | allow_undefined_flag=unsupported
|
---|
8244 | always_export_symbols=yes
|
---|
8245 | 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'
|
---|
8246 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
8247 | # are no directories specified by -L.
|
---|
8248 | hardcode_minus_L=yes
|
---|
8249 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
---|
8250 | # Neither direct hardcoding nor static linking is supported with a
|
---|
8251 | # broken collect2.
|
---|
8252 | hardcode_direct=unsupported
|
---|
8253 | fi
|
---|
8254 | ;;
|
---|
8255 |
|
---|
8256 | aix4* | aix5*)
|
---|
8257 | if test "$host_cpu" = ia64; then
|
---|
8258 | # On IA64, the linker does run time linking by default, so we don't
|
---|
8259 | # have to do anything special.
|
---|
8260 | aix_use_runtimelinking=no
|
---|
8261 | exp_sym_flag='-Bexport'
|
---|
8262 | no_entry_flag=""
|
---|
8263 | else
|
---|
8264 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
8265 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
---|
8266 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
---|
8267 | 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'
|
---|
8268 | else
|
---|
8269 | 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'
|
---|
8270 | fi
|
---|
8271 | aix_use_runtimelinking=no
|
---|
8272 |
|
---|
8273 | # Test if we are trying to use run time linking or normal
|
---|
8274 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
8275 | # need to do runtime linking.
|
---|
8276 | case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
---|
8277 | for ld_flag in $LDFLAGS; do
|
---|
8278 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
---|
8279 | aix_use_runtimelinking=yes
|
---|
8280 | break
|
---|
8281 | fi
|
---|
8282 | done
|
---|
8283 | ;;
|
---|
8284 | esac
|
---|
8285 |
|
---|
8286 | exp_sym_flag='-bexport'
|
---|
8287 | no_entry_flag='-bnoentry'
|
---|
8288 | fi
|
---|
8289 |
|
---|
8290 | # When large executables or shared objects are built, AIX ld can
|
---|
8291 | # have problems creating the table of contents. If linking a library
|
---|
8292 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
8293 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
8294 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
8295 |
|
---|
8296 | archive_cmds=''
|
---|
8297 | hardcode_direct=yes
|
---|
8298 | hardcode_libdir_separator=':'
|
---|
8299 | link_all_deplibs=yes
|
---|
8300 |
|
---|
8301 | if test "$GCC" = yes; then
|
---|
8302 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
8303 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
8304 | # below for broken collect2 doesn't work under 4.3+
|
---|
8305 | collect2name=`${CC} -print-prog-name=collect2`
|
---|
8306 | if test -f "$collect2name" && \
|
---|
8307 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
---|
8308 | then
|
---|
8309 | # We have reworked collect2
|
---|
8310 | hardcode_direct=yes
|
---|
8311 | else
|
---|
8312 | # We have old collect2
|
---|
8313 | hardcode_direct=unsupported
|
---|
8314 | # It fails to find uninstalled libraries when the uninstalled
|
---|
8315 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
8316 | # to unsupported forces relinking
|
---|
8317 | hardcode_minus_L=yes
|
---|
8318 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8319 | hardcode_libdir_separator=
|
---|
8320 | fi
|
---|
8321 | ;;
|
---|
8322 | esac
|
---|
8323 | shared_flag='-shared'
|
---|
8324 | if test "$aix_use_runtimelinking" = yes; then
|
---|
8325 | shared_flag="$shared_flag "'${wl}-G'
|
---|
8326 | fi
|
---|
8327 | else
|
---|
8328 | # not using gcc
|
---|
8329 | if test "$host_cpu" = ia64; then
|
---|
8330 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
8331 | # chokes on -Wl,-G. The following line is correct:
|
---|
8332 | shared_flag='-G'
|
---|
8333 | else
|
---|
8334 | if test "$aix_use_runtimelinking" = yes; then
|
---|
8335 | shared_flag='${wl}-G'
|
---|
8336 | else
|
---|
8337 | shared_flag='${wl}-bM:SRE'
|
---|
8338 | fi
|
---|
8339 | fi
|
---|
8340 | fi
|
---|
8341 |
|
---|
8342 | # It seems that -bexpall does not export symbols beginning with
|
---|
8343 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
8344 | always_export_symbols=yes
|
---|
8345 | if test "$aix_use_runtimelinking" = yes; then
|
---|
8346 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
8347 | # -berok will link without error, but may produce a broken library.
|
---|
8348 | allow_undefined_flag='-berok'
|
---|
8349 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
8350 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8351 | /* confdefs.h. */
|
---|
8352 | _ACEOF
|
---|
8353 | cat confdefs.h >>conftest.$ac_ext
|
---|
8354 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8355 | /* end confdefs.h. */
|
---|
8356 |
|
---|
8357 | int
|
---|
8358 | main ()
|
---|
8359 | {
|
---|
8360 |
|
---|
8361 | ;
|
---|
8362 | return 0;
|
---|
8363 | }
|
---|
8364 | _ACEOF
|
---|
8365 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8367 | (eval $ac_link) 2>conftest.er1
|
---|
8368 | ac_status=$?
|
---|
8369 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8370 | rm -f conftest.er1
|
---|
8371 | cat conftest.err >&5
|
---|
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8373 | (exit $ac_status); } &&
|
---|
8374 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8375 | || test ! -s conftest.err'
|
---|
8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8377 | (eval $ac_try) 2>&5
|
---|
8378 | ac_status=$?
|
---|
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8380 | (exit $ac_status); }; } &&
|
---|
8381 | { ac_try='test -s conftest$ac_exeext'
|
---|
8382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8383 | (eval $ac_try) 2>&5
|
---|
8384 | ac_status=$?
|
---|
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8386 | (exit $ac_status); }; }; then
|
---|
8387 |
|
---|
8388 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
8389 | }'`
|
---|
8390 | # Check for a 64-bit object if we didn't find anything.
|
---|
8391 | 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; }
|
---|
8392 | }'`; fi
|
---|
8393 | else
|
---|
8394 | echo "$as_me: failed program was:" >&5
|
---|
8395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8396 |
|
---|
8397 | fi
|
---|
8398 | rm -f conftest.err conftest.$ac_objext \
|
---|
8399 | conftest$ac_exeext conftest.$ac_ext
|
---|
8400 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
8401 |
|
---|
8402 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
8403 | 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"
|
---|
8404 | else
|
---|
8405 | if test "$host_cpu" = ia64; then
|
---|
8406 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
---|
8407 | allow_undefined_flag="-z nodefs"
|
---|
8408 | 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"
|
---|
8409 | else
|
---|
8410 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
8411 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8412 | /* confdefs.h. */
|
---|
8413 | _ACEOF
|
---|
8414 | cat confdefs.h >>conftest.$ac_ext
|
---|
8415 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8416 | /* end confdefs.h. */
|
---|
8417 |
|
---|
8418 | int
|
---|
8419 | main ()
|
---|
8420 | {
|
---|
8421 |
|
---|
8422 | ;
|
---|
8423 | return 0;
|
---|
8424 | }
|
---|
8425 | _ACEOF
|
---|
8426 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8428 | (eval $ac_link) 2>conftest.er1
|
---|
8429 | ac_status=$?
|
---|
8430 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8431 | rm -f conftest.er1
|
---|
8432 | cat conftest.err >&5
|
---|
8433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8434 | (exit $ac_status); } &&
|
---|
8435 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8436 | || test ! -s conftest.err'
|
---|
8437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8438 | (eval $ac_try) 2>&5
|
---|
8439 | ac_status=$?
|
---|
8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8441 | (exit $ac_status); }; } &&
|
---|
8442 | { ac_try='test -s conftest$ac_exeext'
|
---|
8443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8444 | (eval $ac_try) 2>&5
|
---|
8445 | ac_status=$?
|
---|
8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8447 | (exit $ac_status); }; }; then
|
---|
8448 |
|
---|
8449 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
8450 | }'`
|
---|
8451 | # Check for a 64-bit object if we didn't find anything.
|
---|
8452 | 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; }
|
---|
8453 | }'`; fi
|
---|
8454 | else
|
---|
8455 | echo "$as_me: failed program was:" >&5
|
---|
8456 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8457 |
|
---|
8458 | fi
|
---|
8459 | rm -f conftest.err conftest.$ac_objext \
|
---|
8460 | conftest$ac_exeext conftest.$ac_ext
|
---|
8461 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
8462 |
|
---|
8463 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
8464 | # Warning - without using the other run time loading flags,
|
---|
8465 | # -berok will link without error, but may produce a broken library.
|
---|
8466 | no_undefined_flag=' ${wl}-bernotok'
|
---|
8467 | allow_undefined_flag=' ${wl}-berok'
|
---|
8468 | # Exported symbols can be pulled into shared objects from archives
|
---|
8469 | whole_archive_flag_spec='$convenience'
|
---|
8470 | archive_cmds_need_lc=yes
|
---|
8471 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
8472 | 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'
|
---|
8473 | fi
|
---|
8474 | fi
|
---|
8475 | ;;
|
---|
8476 |
|
---|
8477 | amigaos*)
|
---|
8478 | 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)'
|
---|
8479 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8480 | hardcode_minus_L=yes
|
---|
8481 | # see comment about different semantics on the GNU ld section
|
---|
8482 | ld_shlibs=no
|
---|
8483 | ;;
|
---|
8484 |
|
---|
8485 | bsdi[45]*)
|
---|
8486 | export_dynamic_flag_spec=-rdynamic
|
---|
8487 | ;;
|
---|
8488 |
|
---|
8489 | cygwin* | mingw* | pw32*)
|
---|
8490 | # When not using gcc, we currently assume that we are using
|
---|
8491 | # Microsoft Visual C++.
|
---|
8492 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
8493 | # no search path for DLLs.
|
---|
8494 | hardcode_libdir_flag_spec=' '
|
---|
8495 | allow_undefined_flag=unsupported
|
---|
8496 | # Tell ltmain to make .lib files, not .a files.
|
---|
8497 | libext=lib
|
---|
8498 | # Tell ltmain to make .dll files, not .so files.
|
---|
8499 | shrext_cmds=".dll"
|
---|
8500 | # FIXME: Setting linknames here is a bad hack.
|
---|
8501 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
8502 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
8503 | old_archive_From_new_cmds='true'
|
---|
8504 | # FIXME: Should let the user specify the lib program.
|
---|
8505 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
---|
8506 | fix_srcfile_path='`cygpath -w "$srcfile"`'
|
---|
8507 | enable_shared_with_static_runtimes=yes
|
---|
8508 | ;;
|
---|
8509 |
|
---|
8510 | darwin* | rhapsody*)
|
---|
8511 | case $host_os in
|
---|
8512 | rhapsody* | darwin1.[012])
|
---|
8513 | allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
---|
8514 | ;;
|
---|
8515 | *) # Darwin 1.3 on
|
---|
8516 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
---|
8517 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
8518 | else
|
---|
8519 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
---|
8520 | 10.[012])
|
---|
8521 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
8522 | ;;
|
---|
8523 | 10.*)
|
---|
8524 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
---|
8525 | ;;
|
---|
8526 | esac
|
---|
8527 | fi
|
---|
8528 | ;;
|
---|
8529 | esac
|
---|
8530 | archive_cmds_need_lc=no
|
---|
8531 | hardcode_direct=no
|
---|
8532 | hardcode_automatic=yes
|
---|
8533 | hardcode_shlibpath_var=unsupported
|
---|
8534 | whole_archive_flag_spec=''
|
---|
8535 | link_all_deplibs=yes
|
---|
8536 | if test "$GCC" = yes ; then
|
---|
8537 | output_verbose_link_cmd='echo'
|
---|
8538 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
---|
8539 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
8540 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
8541 | 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}'
|
---|
8542 | 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}'
|
---|
8543 | else
|
---|
8544 | case $cc_basename in
|
---|
8545 | xlc*)
|
---|
8546 | output_verbose_link_cmd='echo'
|
---|
8547 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
---|
8548 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
8549 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
8550 | 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}'
|
---|
8551 | 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}'
|
---|
8552 | ;;
|
---|
8553 | *)
|
---|
8554 | ld_shlibs=no
|
---|
8555 | ;;
|
---|
8556 | esac
|
---|
8557 | fi
|
---|
8558 | ;;
|
---|
8559 |
|
---|
8560 | dgux*)
|
---|
8561 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8562 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8563 | hardcode_shlibpath_var=no
|
---|
8564 | ;;
|
---|
8565 |
|
---|
8566 | freebsd1*)
|
---|
8567 | ld_shlibs=no
|
---|
8568 | ;;
|
---|
8569 |
|
---|
8570 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
8571 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
8572 | # does not break anything, and helps significantly (at the cost of a little
|
---|
8573 | # extra space).
|
---|
8574 | freebsd2.2*)
|
---|
8575 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
8576 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
8577 | hardcode_direct=yes
|
---|
8578 | hardcode_shlibpath_var=no
|
---|
8579 | ;;
|
---|
8580 |
|
---|
8581 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
8582 | freebsd2*)
|
---|
8583 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
8584 | hardcode_direct=yes
|
---|
8585 | hardcode_minus_L=yes
|
---|
8586 | hardcode_shlibpath_var=no
|
---|
8587 | ;;
|
---|
8588 |
|
---|
8589 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
8590 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
8591 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8592 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
8593 | hardcode_direct=yes
|
---|
8594 | hardcode_shlibpath_var=no
|
---|
8595 | ;;
|
---|
8596 |
|
---|
8597 | hpux9*)
|
---|
8598 | if test "$GCC" = yes; then
|
---|
8599 | 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'
|
---|
8600 | else
|
---|
8601 | 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'
|
---|
8602 | fi
|
---|
8603 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
---|
8604 | hardcode_libdir_separator=:
|
---|
8605 | hardcode_direct=yes
|
---|
8606 |
|
---|
8607 | # hardcode_minus_L: Not really in the search PATH,
|
---|
8608 | # but as the default location of the library.
|
---|
8609 | hardcode_minus_L=yes
|
---|
8610 | export_dynamic_flag_spec='${wl}-E'
|
---|
8611 | ;;
|
---|
8612 |
|
---|
8613 | hpux10*)
|
---|
8614 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
8615 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8616 | else
|
---|
8617 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
8618 | fi
|
---|
8619 | if test "$with_gnu_ld" = no; then
|
---|
8620 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
---|
8621 | hardcode_libdir_separator=:
|
---|
8622 |
|
---|
8623 | hardcode_direct=yes
|
---|
8624 | export_dynamic_flag_spec='${wl}-E'
|
---|
8625 |
|
---|
8626 | # hardcode_minus_L: Not really in the search PATH,
|
---|
8627 | # but as the default location of the library.
|
---|
8628 | hardcode_minus_L=yes
|
---|
8629 | fi
|
---|
8630 | ;;
|
---|
8631 |
|
---|
8632 | hpux11*)
|
---|
8633 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
8634 | case $host_cpu in
|
---|
8635 | hppa*64*)
|
---|
8636 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8637 | ;;
|
---|
8638 | ia64*)
|
---|
8639 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8640 | ;;
|
---|
8641 | *)
|
---|
8642 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8643 | ;;
|
---|
8644 | esac
|
---|
8645 | else
|
---|
8646 | case $host_cpu in
|
---|
8647 | hppa*64*)
|
---|
8648 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8649 | ;;
|
---|
8650 | ia64*)
|
---|
8651 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8652 | ;;
|
---|
8653 | *)
|
---|
8654 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8655 | ;;
|
---|
8656 | esac
|
---|
8657 | fi
|
---|
8658 | if test "$with_gnu_ld" = no; then
|
---|
8659 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
---|
8660 | hardcode_libdir_separator=:
|
---|
8661 |
|
---|
8662 | case $host_cpu in
|
---|
8663 | hppa*64*|ia64*)
|
---|
8664 | hardcode_libdir_flag_spec_ld='+b $libdir'
|
---|
8665 | hardcode_direct=no
|
---|
8666 | hardcode_shlibpath_var=no
|
---|
8667 | ;;
|
---|
8668 | *)
|
---|
8669 | hardcode_direct=yes
|
---|
8670 | export_dynamic_flag_spec='${wl}-E'
|
---|
8671 |
|
---|
8672 | # hardcode_minus_L: Not really in the search PATH,
|
---|
8673 | # but as the default location of the library.
|
---|
8674 | hardcode_minus_L=yes
|
---|
8675 | ;;
|
---|
8676 | esac
|
---|
8677 | fi
|
---|
8678 | ;;
|
---|
8679 |
|
---|
8680 | irix5* | irix6* | nonstopux*)
|
---|
8681 | if test "$GCC" = yes; then
|
---|
8682 | 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'
|
---|
8683 | else
|
---|
8684 | 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'
|
---|
8685 | hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
---|
8686 | fi
|
---|
8687 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
---|
8688 | hardcode_libdir_separator=:
|
---|
8689 | link_all_deplibs=yes
|
---|
8690 | ;;
|
---|
8691 |
|
---|
8692 | netbsd*)
|
---|
8693 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
8694 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
8695 | else
|
---|
8696 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
8697 | fi
|
---|
8698 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
8699 | hardcode_direct=yes
|
---|
8700 | hardcode_shlibpath_var=no
|
---|
8701 | ;;
|
---|
8702 |
|
---|
8703 | newsos6)
|
---|
8704 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8705 | hardcode_direct=yes
|
---|
8706 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
---|
8707 | hardcode_libdir_separator=:
|
---|
8708 | hardcode_shlibpath_var=no
|
---|
8709 | ;;
|
---|
8710 |
|
---|
8711 | openbsd*)
|
---|
8712 | hardcode_direct=yes
|
---|
8713 | hardcode_shlibpath_var=no
|
---|
8714 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
8715 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8716 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
---|
8717 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
---|
8718 | export_dynamic_flag_spec='${wl}-E'
|
---|
8719 | else
|
---|
8720 | case $host_os in
|
---|
8721 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
---|
8722 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
8723 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
8724 | ;;
|
---|
8725 | *)
|
---|
8726 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8727 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
---|
8728 | ;;
|
---|
8729 | esac
|
---|
8730 | fi
|
---|
8731 | ;;
|
---|
8732 |
|
---|
8733 | os2*)
|
---|
8734 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8735 | hardcode_minus_L=yes
|
---|
8736 | allow_undefined_flag=unsupported
|
---|
8737 | 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'
|
---|
8738 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
---|
8739 | ;;
|
---|
8740 |
|
---|
8741 | osf3*)
|
---|
8742 | if test "$GCC" = yes; then
|
---|
8743 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
---|
8744 | 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'
|
---|
8745 | else
|
---|
8746 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
8747 | 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'
|
---|
8748 | fi
|
---|
8749 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
---|
8750 | hardcode_libdir_separator=:
|
---|
8751 | ;;
|
---|
8752 |
|
---|
8753 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
8754 | if test "$GCC" = yes; then
|
---|
8755 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
---|
8756 | 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'
|
---|
8757 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
---|
8758 | else
|
---|
8759 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
8760 | 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'
|
---|
8761 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
---|
8762 | $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'
|
---|
8763 |
|
---|
8764 | # Both c and cxx compiler support -rpath directly
|
---|
8765 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
8766 | fi
|
---|
8767 | hardcode_libdir_separator=:
|
---|
8768 | ;;
|
---|
8769 |
|
---|
8770 | solaris*)
|
---|
8771 | no_undefined_flag=' -z text'
|
---|
8772 | if test "$GCC" = yes; then
|
---|
8773 | wlarc='${wl}'
|
---|
8774 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8775 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
8776 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
---|
8777 | else
|
---|
8778 | wlarc=''
|
---|
8779 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8780 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
8781 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
---|
8782 | fi
|
---|
8783 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
8784 | hardcode_shlibpath_var=no
|
---|
8785 | case $host_os in
|
---|
8786 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
8787 | *)
|
---|
8788 | # The compiler driver will combine linker options so we
|
---|
8789 | # cannot just pass the convience library names through
|
---|
8790 | # without $wl, iff we do not link with $LD.
|
---|
8791 | # Luckily, gcc supports the same syntax we need for Sun Studio.
|
---|
8792 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
8793 | case $wlarc in
|
---|
8794 | '')
|
---|
8795 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
|
---|
8796 | *)
|
---|
8797 | 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' ;;
|
---|
8798 | esac ;;
|
---|
8799 | esac
|
---|
8800 | link_all_deplibs=yes
|
---|
8801 | ;;
|
---|
8802 |
|
---|
8803 | sunos4*)
|
---|
8804 | if test "x$host_vendor" = xsequent; then
|
---|
8805 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
8806 | # files that make .init and .fini sections work.
|
---|
8807 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8808 | else
|
---|
8809 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
8810 | fi
|
---|
8811 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8812 | hardcode_direct=yes
|
---|
8813 | hardcode_minus_L=yes
|
---|
8814 | hardcode_shlibpath_var=no
|
---|
8815 | ;;
|
---|
8816 |
|
---|
8817 | sysv4)
|
---|
8818 | case $host_vendor in
|
---|
8819 | sni)
|
---|
8820 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8821 | hardcode_direct=yes # is this really true???
|
---|
8822 | ;;
|
---|
8823 | siemens)
|
---|
8824 | ## LD is ld it makes a PLAMLIB
|
---|
8825 | ## CC just makes a GrossModule.
|
---|
8826 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
8827 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
8828 | hardcode_direct=no
|
---|
8829 | ;;
|
---|
8830 | motorola)
|
---|
8831 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8832 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
8833 | ;;
|
---|
8834 | esac
|
---|
8835 | runpath_var='LD_RUN_PATH'
|
---|
8836 | hardcode_shlibpath_var=no
|
---|
8837 | ;;
|
---|
8838 |
|
---|
8839 | sysv4.3*)
|
---|
8840 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8841 | hardcode_shlibpath_var=no
|
---|
8842 | export_dynamic_flag_spec='-Bexport'
|
---|
8843 | ;;
|
---|
8844 |
|
---|
8845 | sysv4*MP*)
|
---|
8846 | if test -d /usr/nec; then
|
---|
8847 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8848 | hardcode_shlibpath_var=no
|
---|
8849 | runpath_var=LD_RUN_PATH
|
---|
8850 | hardcode_runpath_var=yes
|
---|
8851 | ld_shlibs=yes
|
---|
8852 | fi
|
---|
8853 | ;;
|
---|
8854 |
|
---|
8855 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
---|
8856 | no_undefined_flag='${wl}-z,text'
|
---|
8857 | archive_cmds_need_lc=no
|
---|
8858 | hardcode_shlibpath_var=no
|
---|
8859 | runpath_var='LD_RUN_PATH'
|
---|
8860 |
|
---|
8861 | if test "$GCC" = yes; then
|
---|
8862 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8863 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8864 | else
|
---|
8865 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8866 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8867 | fi
|
---|
8868 | ;;
|
---|
8869 |
|
---|
8870 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
8871 | # Note: We can NOT use -z defs as we might desire, because we do not
|
---|
8872 | # link with -lc, and that would cause any symbols used from libc to
|
---|
8873 | # always be unresolved, which means just about no library would
|
---|
8874 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
8875 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
8876 | # as -z defs.
|
---|
8877 | no_undefined_flag='${wl}-z,text'
|
---|
8878 | allow_undefined_flag='${wl}-z,nodefs'
|
---|
8879 | archive_cmds_need_lc=no
|
---|
8880 | hardcode_shlibpath_var=no
|
---|
8881 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
---|
8882 | hardcode_libdir_separator=':'
|
---|
8883 | link_all_deplibs=yes
|
---|
8884 | export_dynamic_flag_spec='${wl}-Bexport'
|
---|
8885 | runpath_var='LD_RUN_PATH'
|
---|
8886 |
|
---|
8887 | if test "$GCC" = yes; then
|
---|
8888 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8889 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8890 | else
|
---|
8891 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8892 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
8893 | fi
|
---|
8894 | ;;
|
---|
8895 |
|
---|
8896 | uts4*)
|
---|
8897 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
8898 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8899 | hardcode_shlibpath_var=no
|
---|
8900 | ;;
|
---|
8901 |
|
---|
8902 | *)
|
---|
8903 | ld_shlibs=no
|
---|
8904 | ;;
|
---|
8905 | esac
|
---|
8906 | fi
|
---|
8907 |
|
---|
8908 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
---|
8909 | echo "${ECHO_T}$ld_shlibs" >&6
|
---|
8910 | test "$ld_shlibs" = no && can_build_shared=no
|
---|
8911 |
|
---|
8912 | #
|
---|
8913 | # Do we need to explicitly link libc?
|
---|
8914 | #
|
---|
8915 | case "x$archive_cmds_need_lc" in
|
---|
8916 | x|xyes)
|
---|
8917 | # Assume -lc should be added
|
---|
8918 | archive_cmds_need_lc=yes
|
---|
8919 |
|
---|
8920 | if test "$enable_shared" = yes && test "$GCC" = yes; then
|
---|
8921 | case $archive_cmds in
|
---|
8922 | *'~'*)
|
---|
8923 | # FIXME: we may have to deal with multi-command sequences.
|
---|
8924 | ;;
|
---|
8925 | '$CC '*)
|
---|
8926 | # Test whether the compiler implicitly links with -lc since on some
|
---|
8927 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
8928 | # to ld, don't add -lc before -lgcc.
|
---|
8929 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
---|
8930 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
---|
8931 | $rm conftest*
|
---|
8932 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8933 |
|
---|
8934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8935 | (eval $ac_compile) 2>&5
|
---|
8936 | ac_status=$?
|
---|
8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8938 | (exit $ac_status); } 2>conftest.err; then
|
---|
8939 | soname=conftest
|
---|
8940 | lib=conftest
|
---|
8941 | libobjs=conftest.$ac_objext
|
---|
8942 | deplibs=
|
---|
8943 | wl=$lt_prog_compiler_wl
|
---|
8944 | pic_flag=$lt_prog_compiler_pic
|
---|
8945 | compiler_flags=-v
|
---|
8946 | linker_flags=-v
|
---|
8947 | verstring=
|
---|
8948 | output_objdir=.
|
---|
8949 | libname=conftest
|
---|
8950 | lt_save_allow_undefined_flag=$allow_undefined_flag
|
---|
8951 | allow_undefined_flag=
|
---|
8952 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
---|
8953 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
8954 | ac_status=$?
|
---|
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8956 | (exit $ac_status); }
|
---|
8957 | then
|
---|
8958 | archive_cmds_need_lc=no
|
---|
8959 | else
|
---|
8960 | archive_cmds_need_lc=yes
|
---|
8961 | fi
|
---|
8962 | allow_undefined_flag=$lt_save_allow_undefined_flag
|
---|
8963 | else
|
---|
8964 | cat conftest.err 1>&5
|
---|
8965 | fi
|
---|
8966 | $rm conftest*
|
---|
8967 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
---|
8968 | echo "${ECHO_T}$archive_cmds_need_lc" >&6
|
---|
8969 | ;;
|
---|
8970 | esac
|
---|
8971 | fi
|
---|
8972 | ;;
|
---|
8973 | esac
|
---|
8974 |
|
---|
8975 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
---|
8976 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
---|
8977 | library_names_spec=
|
---|
8978 | libname_spec='lib$name'
|
---|
8979 | soname_spec=
|
---|
8980 | shrext_cmds=".so"
|
---|
8981 | postinstall_cmds=
|
---|
8982 | postuninstall_cmds=
|
---|
8983 | finish_cmds=
|
---|
8984 | finish_eval=
|
---|
8985 | shlibpath_var=
|
---|
8986 | shlibpath_overrides_runpath=unknown
|
---|
8987 | version_type=none
|
---|
8988 | dynamic_linker="$host_os ld.so"
|
---|
8989 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
8990 | if test "$GCC" = yes; then
|
---|
8991 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
8992 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
---|
8993 | # if the path contains ";" then we assume it to be the separator
|
---|
8994 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
8995 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
8996 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
8997 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
8998 | else
|
---|
8999 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
9000 | fi
|
---|
9001 | else
|
---|
9002 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
9003 | fi
|
---|
9004 | need_lib_prefix=unknown
|
---|
9005 | hardcode_into_libs=no
|
---|
9006 |
|
---|
9007 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
9008 | # flags to be left without arguments
|
---|
9009 | need_version=unknown
|
---|
9010 |
|
---|
9011 | case $host_os in
|
---|
9012 | aix3*)
|
---|
9013 | version_type=linux
|
---|
9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
---|
9015 | shlibpath_var=LIBPATH
|
---|
9016 |
|
---|
9017 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
9018 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9019 | ;;
|
---|
9020 |
|
---|
9021 | aix4* | aix5*)
|
---|
9022 | version_type=linux
|
---|
9023 | need_lib_prefix=no
|
---|
9024 | need_version=no
|
---|
9025 | hardcode_into_libs=yes
|
---|
9026 | if test "$host_cpu" = ia64; then
|
---|
9027 | # AIX 5 supports IA64
|
---|
9028 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
---|
9029 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9030 | else
|
---|
9031 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
9032 | # for dependence libraries. The import file would start with
|
---|
9033 | # the line `#! .'. This would cause the generated library to
|
---|
9034 | # depend on `.', always an invalid library. This was fixed in
|
---|
9035 | # development snapshots of GCC prior to 3.0.
|
---|
9036 | case $host_os in
|
---|
9037 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
9038 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
9039 | echo ' yes '
|
---|
9040 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
---|
9041 | :
|
---|
9042 | else
|
---|
9043 | can_build_shared=no
|
---|
9044 | fi
|
---|
9045 | ;;
|
---|
9046 | esac
|
---|
9047 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
---|
9048 | # soname into executable. Probably we can add versioning support to
|
---|
9049 | # collect2, so additional links can be useful in future.
|
---|
9050 | if test "$aix_use_runtimelinking" = yes; then
|
---|
9051 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
9052 | # instead of lib<name>.a to let people know that these are not
|
---|
9053 | # typical AIX shared libraries.
|
---|
9054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9055 | else
|
---|
9056 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
9057 | # and later when we are not doing run time linking.
|
---|
9058 | library_names_spec='${libname}${release}.a $libname.a'
|
---|
9059 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9060 | fi
|
---|
9061 | shlibpath_var=LIBPATH
|
---|
9062 | fi
|
---|
9063 | ;;
|
---|
9064 |
|
---|
9065 | amigaos*)
|
---|
9066 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
9067 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
9068 | 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'
|
---|
9069 | ;;
|
---|
9070 |
|
---|
9071 | beos*)
|
---|
9072 | library_names_spec='${libname}${shared_ext}'
|
---|
9073 | dynamic_linker="$host_os ld.so"
|
---|
9074 | shlibpath_var=LIBRARY_PATH
|
---|
9075 | ;;
|
---|
9076 |
|
---|
9077 | bsdi[45]*)
|
---|
9078 | version_type=linux
|
---|
9079 | need_version=no
|
---|
9080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9081 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9082 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
9083 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9084 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
9085 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
9086 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
9087 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
9088 | # libtool to hard-code these into programs
|
---|
9089 | ;;
|
---|
9090 |
|
---|
9091 | cygwin* | mingw* | pw32*)
|
---|
9092 | version_type=windows
|
---|
9093 | shrext_cmds=".dll"
|
---|
9094 | need_version=no
|
---|
9095 | need_lib_prefix=no
|
---|
9096 |
|
---|
9097 | case $GCC,$host_os in
|
---|
9098 | yes,cygwin* | yes,mingw* | yes,pw32*)
|
---|
9099 | library_names_spec='$libname.dll.a'
|
---|
9100 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
9101 | postinstall_cmds='base_file=`basename \${file}`~
|
---|
9102 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
---|
9103 | dldir=$destdir/`dirname \$dlpath`~
|
---|
9104 | test -d \$dldir || mkdir -p \$dldir~
|
---|
9105 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
9106 | chmod a+x \$dldir/$dlname'
|
---|
9107 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
9108 | dlpath=$dir/\$dldll~
|
---|
9109 | $rm \$dlpath'
|
---|
9110 | shlibpath_overrides_runpath=yes
|
---|
9111 |
|
---|
9112 | case $host_os in
|
---|
9113 | cygwin*)
|
---|
9114 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
9115 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
9116 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
---|
9117 | ;;
|
---|
9118 | mingw*)
|
---|
9119 | # MinGW DLLs use traditional 'lib' prefix
|
---|
9120 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
9121 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
9122 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
---|
9123 | # It is most probably a Windows format PATH printed by
|
---|
9124 | # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
---|
9125 | # path with ; separators, and with drive letters. We can handle the
|
---|
9126 | # drive letters (cygwin fileutils understands them), so leave them,
|
---|
9127 | # especially as we might pass files found there to a mingw objdump,
|
---|
9128 | # which wouldn't understand a cygwinified path. Ahh.
|
---|
9129 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
9130 | else
|
---|
9131 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
9132 | fi
|
---|
9133 | ;;
|
---|
9134 | pw32*)
|
---|
9135 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
9136 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
9137 | ;;
|
---|
9138 | esac
|
---|
9139 | ;;
|
---|
9140 |
|
---|
9141 | *)
|
---|
9142 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
---|
9143 | ;;
|
---|
9144 | esac
|
---|
9145 | dynamic_linker='Win32 ld.exe'
|
---|
9146 | # FIXME: first we should search . and the directory the executable is in
|
---|
9147 | shlibpath_var=PATH
|
---|
9148 | ;;
|
---|
9149 |
|
---|
9150 | darwin* | rhapsody*)
|
---|
9151 | dynamic_linker="$host_os dyld"
|
---|
9152 | version_type=darwin
|
---|
9153 | need_lib_prefix=no
|
---|
9154 | need_version=no
|
---|
9155 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
---|
9156 | soname_spec='${libname}${release}${major}$shared_ext'
|
---|
9157 | shlibpath_overrides_runpath=yes
|
---|
9158 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
9159 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
9160 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
---|
9161 | if test "$GCC" = yes; then
|
---|
9162 | 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"`
|
---|
9163 | else
|
---|
9164 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
---|
9165 | fi
|
---|
9166 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
9167 | ;;
|
---|
9168 |
|
---|
9169 | dgux*)
|
---|
9170 | version_type=linux
|
---|
9171 | need_lib_prefix=no
|
---|
9172 | need_version=no
|
---|
9173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
---|
9174 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9175 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9176 | ;;
|
---|
9177 |
|
---|
9178 | freebsd1*)
|
---|
9179 | dynamic_linker=no
|
---|
9180 | ;;
|
---|
9181 |
|
---|
9182 | kfreebsd*-gnu)
|
---|
9183 | version_type=linux
|
---|
9184 | need_lib_prefix=no
|
---|
9185 | need_version=no
|
---|
9186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
9187 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9188 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9189 | shlibpath_overrides_runpath=no
|
---|
9190 | hardcode_into_libs=yes
|
---|
9191 | dynamic_linker='GNU ld.so'
|
---|
9192 | ;;
|
---|
9193 |
|
---|
9194 | freebsd* | dragonfly*)
|
---|
9195 | # DragonFly does not have aout. When/if they implement a new
|
---|
9196 | # versioning mechanism, adjust this.
|
---|
9197 | if test -x /usr/bin/objformat; then
|
---|
9198 | objformat=`/usr/bin/objformat`
|
---|
9199 | else
|
---|
9200 | case $host_os in
|
---|
9201 | freebsd[123]*) objformat=aout ;;
|
---|
9202 | *) objformat=elf ;;
|
---|
9203 | esac
|
---|
9204 | fi
|
---|
9205 | version_type=freebsd-$objformat
|
---|
9206 | case $version_type in
|
---|
9207 | freebsd-elf*)
|
---|
9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
9209 | need_version=no
|
---|
9210 | need_lib_prefix=no
|
---|
9211 | ;;
|
---|
9212 | freebsd-*)
|
---|
9213 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
---|
9214 | need_version=yes
|
---|
9215 | ;;
|
---|
9216 | esac
|
---|
9217 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9218 | case $host_os in
|
---|
9219 | freebsd2*)
|
---|
9220 | shlibpath_overrides_runpath=yes
|
---|
9221 | ;;
|
---|
9222 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
9223 | shlibpath_overrides_runpath=yes
|
---|
9224 | hardcode_into_libs=yes
|
---|
9225 | ;;
|
---|
9226 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
9227 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
9228 | shlibpath_overrides_runpath=no
|
---|
9229 | hardcode_into_libs=yes
|
---|
9230 | ;;
|
---|
9231 | freebsd*) # from 4.6 on
|
---|
9232 | shlibpath_overrides_runpath=yes
|
---|
9233 | hardcode_into_libs=yes
|
---|
9234 | ;;
|
---|
9235 | esac
|
---|
9236 | ;;
|
---|
9237 |
|
---|
9238 | gnu*)
|
---|
9239 | version_type=linux
|
---|
9240 | need_lib_prefix=no
|
---|
9241 | need_version=no
|
---|
9242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
---|
9243 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9244 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9245 | hardcode_into_libs=yes
|
---|
9246 | ;;
|
---|
9247 |
|
---|
9248 | hpux9* | hpux10* | hpux11*)
|
---|
9249 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
9250 | # link against other versions.
|
---|
9251 | version_type=sunos
|
---|
9252 | need_lib_prefix=no
|
---|
9253 | need_version=no
|
---|
9254 | case $host_cpu in
|
---|
9255 | ia64*)
|
---|
9256 | shrext_cmds='.so'
|
---|
9257 | hardcode_into_libs=yes
|
---|
9258 | dynamic_linker="$host_os dld.so"
|
---|
9259 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9260 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
9261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9262 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9263 | if test "X$HPUX_IA64_MODE" = X32; then
|
---|
9264 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
9265 | else
|
---|
9266 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
9267 | fi
|
---|
9268 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
9269 | ;;
|
---|
9270 | hppa*64*)
|
---|
9271 | shrext_cmds='.sl'
|
---|
9272 | hardcode_into_libs=yes
|
---|
9273 | dynamic_linker="$host_os dld.sl"
|
---|
9274 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
9275 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
9276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9277 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9278 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
9279 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
9280 | ;;
|
---|
9281 | *)
|
---|
9282 | shrext_cmds='.sl'
|
---|
9283 | dynamic_linker="$host_os dld.sl"
|
---|
9284 | shlibpath_var=SHLIB_PATH
|
---|
9285 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
9286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9287 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9288 | ;;
|
---|
9289 | esac
|
---|
9290 | # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
---|
9291 | postinstall_cmds='chmod 555 $lib'
|
---|
9292 | ;;
|
---|
9293 |
|
---|
9294 | interix3*)
|
---|
9295 | version_type=linux
|
---|
9296 | need_lib_prefix=no
|
---|
9297 | need_version=no
|
---|
9298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
9299 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9300 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
9301 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9302 | shlibpath_overrides_runpath=no
|
---|
9303 | hardcode_into_libs=yes
|
---|
9304 | ;;
|
---|
9305 |
|
---|
9306 | irix5* | irix6* | nonstopux*)
|
---|
9307 | case $host_os in
|
---|
9308 | nonstopux*) version_type=nonstopux ;;
|
---|
9309 | *)
|
---|
9310 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
9311 | version_type=linux
|
---|
9312 | else
|
---|
9313 | version_type=irix
|
---|
9314 | fi ;;
|
---|
9315 | esac
|
---|
9316 | need_lib_prefix=no
|
---|
9317 | need_version=no
|
---|
9318 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
9320 | case $host_os in
|
---|
9321 | irix5* | nonstopux*)
|
---|
9322 | libsuff= shlibsuff=
|
---|
9323 | ;;
|
---|
9324 | *)
|
---|
9325 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
9326 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
9327 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
9328 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
9329 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
9330 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
9331 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
9332 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
9333 | esac
|
---|
9334 | ;;
|
---|
9335 | esac
|
---|
9336 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
9337 | shlibpath_overrides_runpath=no
|
---|
9338 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
---|
9339 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
---|
9340 | hardcode_into_libs=yes
|
---|
9341 | ;;
|
---|
9342 |
|
---|
9343 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
9344 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
9345 | dynamic_linker=no
|
---|
9346 | ;;
|
---|
9347 |
|
---|
9348 | # This must be Linux ELF.
|
---|
9349 | linux*)
|
---|
9350 | version_type=linux
|
---|
9351 | need_lib_prefix=no
|
---|
9352 | need_version=no
|
---|
9353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9354 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
9356 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9357 | shlibpath_overrides_runpath=no
|
---|
9358 | # This implies no fast_install, which is unacceptable.
|
---|
9359 | # Some rework will be needed to allow for fast_install
|
---|
9360 | # before this can be enabled.
|
---|
9361 | hardcode_into_libs=yes
|
---|
9362 |
|
---|
9363 | # find out which ABI we are using
|
---|
9364 | libsuff=
|
---|
9365 | case "$host_cpu" in
|
---|
9366 | x86_64*|s390x*|powerpc64*)
|
---|
9367 | echo '#line 9367 "configure"' > conftest.$ac_ext
|
---|
9368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9369 | (eval $ac_compile) 2>&5
|
---|
9370 | ac_status=$?
|
---|
9371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9372 | (exit $ac_status); }; then
|
---|
9373 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
9374 | *64-bit*)
|
---|
9375 | libsuff=64
|
---|
9376 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
---|
9377 | ;;
|
---|
9378 | esac
|
---|
9379 | fi
|
---|
9380 | rm -rf conftest*
|
---|
9381 | ;;
|
---|
9382 | esac
|
---|
9383 |
|
---|
9384 | # Append ld.so.conf contents to the search path
|
---|
9385 | if test -f /etc/ld.so.conf; then
|
---|
9386 | 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' ' '`
|
---|
9387 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
---|
9388 | fi
|
---|
9389 |
|
---|
9390 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
9391 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
9392 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
9393 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
9394 | # people can always --disable-shared, the test was removed, and we
|
---|
9395 | # assume the GNU/Linux dynamic linker is in use.
|
---|
9396 | dynamic_linker='GNU/Linux ld.so'
|
---|
9397 | ;;
|
---|
9398 |
|
---|
9399 | knetbsd*-gnu)
|
---|
9400 | version_type=linux
|
---|
9401 | need_lib_prefix=no
|
---|
9402 | need_version=no
|
---|
9403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
9404 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9405 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9406 | shlibpath_overrides_runpath=no
|
---|
9407 | hardcode_into_libs=yes
|
---|
9408 | dynamic_linker='GNU ld.so'
|
---|
9409 | ;;
|
---|
9410 |
|
---|
9411 | netbsd*)
|
---|
9412 | version_type=sunos
|
---|
9413 | need_lib_prefix=no
|
---|
9414 | need_version=no
|
---|
9415 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
9416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
9417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
9418 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
9419 | else
|
---|
9420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
9421 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9422 | dynamic_linker='NetBSD ld.elf_so'
|
---|
9423 | fi
|
---|
9424 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9425 | shlibpath_overrides_runpath=yes
|
---|
9426 | hardcode_into_libs=yes
|
---|
9427 | ;;
|
---|
9428 |
|
---|
9429 | newsos6)
|
---|
9430 | version_type=linux
|
---|
9431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9432 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9433 | shlibpath_overrides_runpath=yes
|
---|
9434 | ;;
|
---|
9435 |
|
---|
9436 | nto-qnx*)
|
---|
9437 | version_type=linux
|
---|
9438 | need_lib_prefix=no
|
---|
9439 | need_version=no
|
---|
9440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9441 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9442 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9443 | shlibpath_overrides_runpath=yes
|
---|
9444 | ;;
|
---|
9445 |
|
---|
9446 | openbsd*)
|
---|
9447 | version_type=sunos
|
---|
9448 | sys_lib_dlsearch_path_spec="/usr/lib"
|
---|
9449 | need_lib_prefix=no
|
---|
9450 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
---|
9451 | case $host_os in
|
---|
9452 | openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
---|
9453 | *) need_version=no ;;
|
---|
9454 | esac
|
---|
9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
9456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
9457 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9458 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
9459 | case $host_os in
|
---|
9460 | openbsd2.[89] | openbsd2.[89].*)
|
---|
9461 | shlibpath_overrides_runpath=no
|
---|
9462 | ;;
|
---|
9463 | *)
|
---|
9464 | shlibpath_overrides_runpath=yes
|
---|
9465 | ;;
|
---|
9466 | esac
|
---|
9467 | else
|
---|
9468 | shlibpath_overrides_runpath=yes
|
---|
9469 | fi
|
---|
9470 | ;;
|
---|
9471 |
|
---|
9472 | os2*)
|
---|
9473 | libname_spec='$name'
|
---|
9474 | shrext_cmds=".dll"
|
---|
9475 | need_lib_prefix=no
|
---|
9476 | library_names_spec='$libname${shared_ext} $libname.a'
|
---|
9477 | dynamic_linker='OS/2 ld.exe'
|
---|
9478 | shlibpath_var=LIBPATH
|
---|
9479 | ;;
|
---|
9480 |
|
---|
9481 | osf3* | osf4* | osf5*)
|
---|
9482 | version_type=osf
|
---|
9483 | need_lib_prefix=no
|
---|
9484 | need_version=no
|
---|
9485 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9487 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9488 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
9489 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
---|
9490 | ;;
|
---|
9491 |
|
---|
9492 | solaris*)
|
---|
9493 | version_type=linux
|
---|
9494 | need_lib_prefix=no
|
---|
9495 | need_version=no
|
---|
9496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9497 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9498 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9499 | shlibpath_overrides_runpath=yes
|
---|
9500 | hardcode_into_libs=yes
|
---|
9501 | # ldd complains unless libraries are executable
|
---|
9502 | postinstall_cmds='chmod +x $lib'
|
---|
9503 | ;;
|
---|
9504 |
|
---|
9505 | sunos4*)
|
---|
9506 | version_type=sunos
|
---|
9507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
9508 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
9509 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9510 | shlibpath_overrides_runpath=yes
|
---|
9511 | if test "$with_gnu_ld" = yes; then
|
---|
9512 | need_lib_prefix=no
|
---|
9513 | fi
|
---|
9514 | need_version=yes
|
---|
9515 | ;;
|
---|
9516 |
|
---|
9517 | sysv4 | sysv4.3*)
|
---|
9518 | version_type=linux
|
---|
9519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9520 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9521 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9522 | case $host_vendor in
|
---|
9523 | sni)
|
---|
9524 | shlibpath_overrides_runpath=no
|
---|
9525 | need_lib_prefix=no
|
---|
9526 | export_dynamic_flag_spec='${wl}-Blargedynsym'
|
---|
9527 | runpath_var=LD_RUN_PATH
|
---|
9528 | ;;
|
---|
9529 | siemens)
|
---|
9530 | need_lib_prefix=no
|
---|
9531 | ;;
|
---|
9532 | motorola)
|
---|
9533 | need_lib_prefix=no
|
---|
9534 | need_version=no
|
---|
9535 | shlibpath_overrides_runpath=no
|
---|
9536 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
9537 | ;;
|
---|
9538 | esac
|
---|
9539 | ;;
|
---|
9540 |
|
---|
9541 | sysv4*MP*)
|
---|
9542 | if test -d /usr/nec ;then
|
---|
9543 | version_type=linux
|
---|
9544 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
---|
9545 | soname_spec='$libname${shared_ext}.$major'
|
---|
9546 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9547 | fi
|
---|
9548 | ;;
|
---|
9549 |
|
---|
9550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
9551 | version_type=freebsd-elf
|
---|
9552 | need_lib_prefix=no
|
---|
9553 | need_version=no
|
---|
9554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
9555 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9556 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9557 | hardcode_into_libs=yes
|
---|
9558 | if test "$with_gnu_ld" = yes; then
|
---|
9559 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
9560 | shlibpath_overrides_runpath=no
|
---|
9561 | else
|
---|
9562 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
9563 | shlibpath_overrides_runpath=yes
|
---|
9564 | case $host_os in
|
---|
9565 | sco3.2v5*)
|
---|
9566 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
9567 | ;;
|
---|
9568 | esac
|
---|
9569 | fi
|
---|
9570 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
9571 | ;;
|
---|
9572 |
|
---|
9573 | uts4*)
|
---|
9574 | version_type=linux
|
---|
9575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
9576 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
9577 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9578 | ;;
|
---|
9579 |
|
---|
9580 | *)
|
---|
9581 | dynamic_linker=no
|
---|
9582 | ;;
|
---|
9583 | esac
|
---|
9584 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
---|
9585 | echo "${ECHO_T}$dynamic_linker" >&6
|
---|
9586 | test "$dynamic_linker" = no && can_build_shared=no
|
---|
9587 |
|
---|
9588 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
9589 | if test "$GCC" = yes; then
|
---|
9590 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
9591 | fi
|
---|
9592 |
|
---|
9593 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
---|
9594 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
---|
9595 | hardcode_action=
|
---|
9596 | if test -n "$hardcode_libdir_flag_spec" || \
|
---|
9597 | test -n "$runpath_var" || \
|
---|
9598 | test "X$hardcode_automatic" = "Xyes" ; then
|
---|
9599 |
|
---|
9600 | # We can hardcode non-existant directories.
|
---|
9601 | if test "$hardcode_direct" != no &&
|
---|
9602 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
9603 | # have to relink, otherwise we might link with an installed library
|
---|
9604 | # when we should be linking with a yet-to-be-installed one
|
---|
9605 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
---|
9606 | test "$hardcode_minus_L" != no; then
|
---|
9607 | # Linking always hardcodes the temporary library directory.
|
---|
9608 | hardcode_action=relink
|
---|
9609 | else
|
---|
9610 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
9611 | hardcode_action=immediate
|
---|
9612 | fi
|
---|
9613 | else
|
---|
9614 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
9615 | # directories.
|
---|
9616 | hardcode_action=unsupported
|
---|
9617 | fi
|
---|
9618 | echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
---|
9619 | echo "${ECHO_T}$hardcode_action" >&6
|
---|
9620 |
|
---|
9621 | if test "$hardcode_action" = relink; then
|
---|
9622 | # Fast installation is not supported
|
---|
9623 | enable_fast_install=no
|
---|
9624 | elif test "$shlibpath_overrides_runpath" = yes ||
|
---|
9625 | test "$enable_shared" = no; then
|
---|
9626 | # Fast installation is not necessary
|
---|
9627 | enable_fast_install=needless
|
---|
9628 | fi
|
---|
9629 |
|
---|
9630 | striplib=
|
---|
9631 | old_striplib=
|
---|
9632 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
---|
9633 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
---|
9634 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
---|
9635 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
---|
9636 | test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
---|
9637 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
9638 | echo "${ECHO_T}yes" >&6
|
---|
9639 | else
|
---|
9640 | # FIXME - insert some real tests, host_os isn't really good enough
|
---|
9641 | case $host_os in
|
---|
9642 | darwin*)
|
---|
9643 | if test -n "$STRIP" ; then
|
---|
9644 | striplib="$STRIP -x"
|
---|
9645 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
9646 | echo "${ECHO_T}yes" >&6
|
---|
9647 | else
|
---|
9648 | echo "$as_me:$LINENO: result: no" >&5
|
---|
9649 | echo "${ECHO_T}no" >&6
|
---|
9650 | fi
|
---|
9651 | ;;
|
---|
9652 | *)
|
---|
9653 | echo "$as_me:$LINENO: result: no" >&5
|
---|
9654 | echo "${ECHO_T}no" >&6
|
---|
9655 | ;;
|
---|
9656 | esac
|
---|
9657 | fi
|
---|
9658 |
|
---|
9659 | if test "x$enable_dlopen" != xyes; then
|
---|
9660 | enable_dlopen=unknown
|
---|
9661 | enable_dlopen_self=unknown
|
---|
9662 | enable_dlopen_self_static=unknown
|
---|
9663 | else
|
---|
9664 | lt_cv_dlopen=no
|
---|
9665 | lt_cv_dlopen_libs=
|
---|
9666 |
|
---|
9667 | case $host_os in
|
---|
9668 | beos*)
|
---|
9669 | lt_cv_dlopen="load_add_on"
|
---|
9670 | lt_cv_dlopen_libs=
|
---|
9671 | lt_cv_dlopen_self=yes
|
---|
9672 | ;;
|
---|
9673 |
|
---|
9674 | mingw* | pw32*)
|
---|
9675 | lt_cv_dlopen="LoadLibrary"
|
---|
9676 | lt_cv_dlopen_libs=
|
---|
9677 | ;;
|
---|
9678 |
|
---|
9679 | cygwin*)
|
---|
9680 | lt_cv_dlopen="dlopen"
|
---|
9681 | lt_cv_dlopen_libs=
|
---|
9682 | ;;
|
---|
9683 |
|
---|
9684 | darwin*)
|
---|
9685 | # if libdl is installed we need to link against it
|
---|
9686 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
---|
9687 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
---|
9688 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
---|
9689 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9690 | else
|
---|
9691 | ac_check_lib_save_LIBS=$LIBS
|
---|
9692 | LIBS="-ldl $LIBS"
|
---|
9693 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9694 | /* confdefs.h. */
|
---|
9695 | _ACEOF
|
---|
9696 | cat confdefs.h >>conftest.$ac_ext
|
---|
9697 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9698 | /* end confdefs.h. */
|
---|
9699 |
|
---|
9700 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9701 | #ifdef __cplusplus
|
---|
9702 | extern "C"
|
---|
9703 | #endif
|
---|
9704 | /* We use char because int might match the return type of a gcc2
|
---|
9705 | builtin and then its argument prototype would still apply. */
|
---|
9706 | char dlopen ();
|
---|
9707 | int
|
---|
9708 | main ()
|
---|
9709 | {
|
---|
9710 | dlopen ();
|
---|
9711 | ;
|
---|
9712 | return 0;
|
---|
9713 | }
|
---|
9714 | _ACEOF
|
---|
9715 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9717 | (eval $ac_link) 2>conftest.er1
|
---|
9718 | ac_status=$?
|
---|
9719 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9720 | rm -f conftest.er1
|
---|
9721 | cat conftest.err >&5
|
---|
9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9723 | (exit $ac_status); } &&
|
---|
9724 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9725 | || test ! -s conftest.err'
|
---|
9726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9727 | (eval $ac_try) 2>&5
|
---|
9728 | ac_status=$?
|
---|
9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9730 | (exit $ac_status); }; } &&
|
---|
9731 | { ac_try='test -s conftest$ac_exeext'
|
---|
9732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9733 | (eval $ac_try) 2>&5
|
---|
9734 | ac_status=$?
|
---|
9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9736 | (exit $ac_status); }; }; then
|
---|
9737 | ac_cv_lib_dl_dlopen=yes
|
---|
9738 | else
|
---|
9739 | echo "$as_me: failed program was:" >&5
|
---|
9740 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9741 |
|
---|
9742 | ac_cv_lib_dl_dlopen=no
|
---|
9743 | fi
|
---|
9744 | rm -f conftest.err conftest.$ac_objext \
|
---|
9745 | conftest$ac_exeext conftest.$ac_ext
|
---|
9746 | LIBS=$ac_check_lib_save_LIBS
|
---|
9747 | fi
|
---|
9748 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
9749 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
---|
9750 | if test $ac_cv_lib_dl_dlopen = yes; then
|
---|
9751 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
---|
9752 | else
|
---|
9753 |
|
---|
9754 | lt_cv_dlopen="dyld"
|
---|
9755 | lt_cv_dlopen_libs=
|
---|
9756 | lt_cv_dlopen_self=yes
|
---|
9757 |
|
---|
9758 | fi
|
---|
9759 |
|
---|
9760 | ;;
|
---|
9761 |
|
---|
9762 | *)
|
---|
9763 | echo "$as_me:$LINENO: checking for shl_load" >&5
|
---|
9764 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
---|
9765 | if test "${ac_cv_func_shl_load+set}" = set; then
|
---|
9766 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9767 | else
|
---|
9768 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9769 | /* confdefs.h. */
|
---|
9770 | _ACEOF
|
---|
9771 | cat confdefs.h >>conftest.$ac_ext
|
---|
9772 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9773 | /* end confdefs.h. */
|
---|
9774 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
---|
9775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9776 | #define shl_load innocuous_shl_load
|
---|
9777 |
|
---|
9778 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9779 | which can conflict with char shl_load (); below.
|
---|
9780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9781 | <limits.h> exists even on freestanding compilers. */
|
---|
9782 |
|
---|
9783 | #ifdef __STDC__
|
---|
9784 | # include <limits.h>
|
---|
9785 | #else
|
---|
9786 | # include <assert.h>
|
---|
9787 | #endif
|
---|
9788 |
|
---|
9789 | #undef shl_load
|
---|
9790 |
|
---|
9791 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9792 | #ifdef __cplusplus
|
---|
9793 | extern "C"
|
---|
9794 | {
|
---|
9795 | #endif
|
---|
9796 | /* We use char because int might match the return type of a gcc2
|
---|
9797 | builtin and then its argument prototype would still apply. */
|
---|
9798 | char shl_load ();
|
---|
9799 | /* The GNU C library defines this for functions which it implements
|
---|
9800 | to always fail with ENOSYS. Some functions are actually named
|
---|
9801 | something starting with __ and the normal name is an alias. */
|
---|
9802 | #if defined (__stub_shl_load) || defined (__stub___shl_load)
|
---|
9803 | choke me
|
---|
9804 | #else
|
---|
9805 | char (*f) () = shl_load;
|
---|
9806 | #endif
|
---|
9807 | #ifdef __cplusplus
|
---|
9808 | }
|
---|
9809 | #endif
|
---|
9810 |
|
---|
9811 | int
|
---|
9812 | main ()
|
---|
9813 | {
|
---|
9814 | return f != shl_load;
|
---|
9815 | ;
|
---|
9816 | return 0;
|
---|
9817 | }
|
---|
9818 | _ACEOF
|
---|
9819 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9821 | (eval $ac_link) 2>conftest.er1
|
---|
9822 | ac_status=$?
|
---|
9823 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9824 | rm -f conftest.er1
|
---|
9825 | cat conftest.err >&5
|
---|
9826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9827 | (exit $ac_status); } &&
|
---|
9828 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9829 | || test ! -s conftest.err'
|
---|
9830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9831 | (eval $ac_try) 2>&5
|
---|
9832 | ac_status=$?
|
---|
9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9834 | (exit $ac_status); }; } &&
|
---|
9835 | { ac_try='test -s conftest$ac_exeext'
|
---|
9836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9837 | (eval $ac_try) 2>&5
|
---|
9838 | ac_status=$?
|
---|
9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9840 | (exit $ac_status); }; }; then
|
---|
9841 | ac_cv_func_shl_load=yes
|
---|
9842 | else
|
---|
9843 | echo "$as_me: failed program was:" >&5
|
---|
9844 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9845 |
|
---|
9846 | ac_cv_func_shl_load=no
|
---|
9847 | fi
|
---|
9848 | rm -f conftest.err conftest.$ac_objext \
|
---|
9849 | conftest$ac_exeext conftest.$ac_ext
|
---|
9850 | fi
|
---|
9851 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
---|
9852 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
---|
9853 | if test $ac_cv_func_shl_load = yes; then
|
---|
9854 | lt_cv_dlopen="shl_load"
|
---|
9855 | else
|
---|
9856 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
---|
9857 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
---|
9858 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
---|
9859 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9860 | else
|
---|
9861 | ac_check_lib_save_LIBS=$LIBS
|
---|
9862 | LIBS="-ldld $LIBS"
|
---|
9863 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9864 | /* confdefs.h. */
|
---|
9865 | _ACEOF
|
---|
9866 | cat confdefs.h >>conftest.$ac_ext
|
---|
9867 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9868 | /* end confdefs.h. */
|
---|
9869 |
|
---|
9870 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9871 | #ifdef __cplusplus
|
---|
9872 | extern "C"
|
---|
9873 | #endif
|
---|
9874 | /* We use char because int might match the return type of a gcc2
|
---|
9875 | builtin and then its argument prototype would still apply. */
|
---|
9876 | char shl_load ();
|
---|
9877 | int
|
---|
9878 | main ()
|
---|
9879 | {
|
---|
9880 | shl_load ();
|
---|
9881 | ;
|
---|
9882 | return 0;
|
---|
9883 | }
|
---|
9884 | _ACEOF
|
---|
9885 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9887 | (eval $ac_link) 2>conftest.er1
|
---|
9888 | ac_status=$?
|
---|
9889 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9890 | rm -f conftest.er1
|
---|
9891 | cat conftest.err >&5
|
---|
9892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9893 | (exit $ac_status); } &&
|
---|
9894 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9895 | || test ! -s conftest.err'
|
---|
9896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9897 | (eval $ac_try) 2>&5
|
---|
9898 | ac_status=$?
|
---|
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9900 | (exit $ac_status); }; } &&
|
---|
9901 | { ac_try='test -s conftest$ac_exeext'
|
---|
9902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9903 | (eval $ac_try) 2>&5
|
---|
9904 | ac_status=$?
|
---|
9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9906 | (exit $ac_status); }; }; then
|
---|
9907 | ac_cv_lib_dld_shl_load=yes
|
---|
9908 | else
|
---|
9909 | echo "$as_me: failed program was:" >&5
|
---|
9910 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9911 |
|
---|
9912 | ac_cv_lib_dld_shl_load=no
|
---|
9913 | fi
|
---|
9914 | rm -f conftest.err conftest.$ac_objext \
|
---|
9915 | conftest$ac_exeext conftest.$ac_ext
|
---|
9916 | LIBS=$ac_check_lib_save_LIBS
|
---|
9917 | fi
|
---|
9918 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
---|
9919 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
---|
9920 | if test $ac_cv_lib_dld_shl_load = yes; then
|
---|
9921 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
---|
9922 | else
|
---|
9923 | echo "$as_me:$LINENO: checking for dlopen" >&5
|
---|
9924 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
---|
9925 | if test "${ac_cv_func_dlopen+set}" = set; then
|
---|
9926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9927 | else
|
---|
9928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9929 | /* confdefs.h. */
|
---|
9930 | _ACEOF
|
---|
9931 | cat confdefs.h >>conftest.$ac_ext
|
---|
9932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9933 | /* end confdefs.h. */
|
---|
9934 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
---|
9935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9936 | #define dlopen innocuous_dlopen
|
---|
9937 |
|
---|
9938 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9939 | which can conflict with char dlopen (); below.
|
---|
9940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9941 | <limits.h> exists even on freestanding compilers. */
|
---|
9942 |
|
---|
9943 | #ifdef __STDC__
|
---|
9944 | # include <limits.h>
|
---|
9945 | #else
|
---|
9946 | # include <assert.h>
|
---|
9947 | #endif
|
---|
9948 |
|
---|
9949 | #undef dlopen
|
---|
9950 |
|
---|
9951 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
9952 | #ifdef __cplusplus
|
---|
9953 | extern "C"
|
---|
9954 | {
|
---|
9955 | #endif
|
---|
9956 | /* We use char because int might match the return type of a gcc2
|
---|
9957 | builtin and then its argument prototype would still apply. */
|
---|
9958 | char dlopen ();
|
---|
9959 | /* The GNU C library defines this for functions which it implements
|
---|
9960 | to always fail with ENOSYS. Some functions are actually named
|
---|
9961 | something starting with __ and the normal name is an alias. */
|
---|
9962 | #if defined (__stub_dlopen) || defined (__stub___dlopen)
|
---|
9963 | choke me
|
---|
9964 | #else
|
---|
9965 | char (*f) () = dlopen;
|
---|
9966 | #endif
|
---|
9967 | #ifdef __cplusplus
|
---|
9968 | }
|
---|
9969 | #endif
|
---|
9970 |
|
---|
9971 | int
|
---|
9972 | main ()
|
---|
9973 | {
|
---|
9974 | return f != dlopen;
|
---|
9975 | ;
|
---|
9976 | return 0;
|
---|
9977 | }
|
---|
9978 | _ACEOF
|
---|
9979 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
9981 | (eval $ac_link) 2>conftest.er1
|
---|
9982 | ac_status=$?
|
---|
9983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9984 | rm -f conftest.er1
|
---|
9985 | cat conftest.err >&5
|
---|
9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9987 | (exit $ac_status); } &&
|
---|
9988 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9989 | || test ! -s conftest.err'
|
---|
9990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9991 | (eval $ac_try) 2>&5
|
---|
9992 | ac_status=$?
|
---|
9993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9994 | (exit $ac_status); }; } &&
|
---|
9995 | { ac_try='test -s conftest$ac_exeext'
|
---|
9996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9997 | (eval $ac_try) 2>&5
|
---|
9998 | ac_status=$?
|
---|
9999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10000 | (exit $ac_status); }; }; then
|
---|
10001 | ac_cv_func_dlopen=yes
|
---|
10002 | else
|
---|
10003 | echo "$as_me: failed program was:" >&5
|
---|
10004 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10005 |
|
---|
10006 | ac_cv_func_dlopen=no
|
---|
10007 | fi
|
---|
10008 | rm -f conftest.err conftest.$ac_objext \
|
---|
10009 | conftest$ac_exeext conftest.$ac_ext
|
---|
10010 | fi
|
---|
10011 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
---|
10012 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
---|
10013 | if test $ac_cv_func_dlopen = yes; then
|
---|
10014 | lt_cv_dlopen="dlopen"
|
---|
10015 | else
|
---|
10016 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
---|
10017 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
---|
10018 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
---|
10019 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10020 | else
|
---|
10021 | ac_check_lib_save_LIBS=$LIBS
|
---|
10022 | LIBS="-ldl $LIBS"
|
---|
10023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10024 | /* confdefs.h. */
|
---|
10025 | _ACEOF
|
---|
10026 | cat confdefs.h >>conftest.$ac_ext
|
---|
10027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10028 | /* end confdefs.h. */
|
---|
10029 |
|
---|
10030 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10031 | #ifdef __cplusplus
|
---|
10032 | extern "C"
|
---|
10033 | #endif
|
---|
10034 | /* We use char because int might match the return type of a gcc2
|
---|
10035 | builtin and then its argument prototype would still apply. */
|
---|
10036 | char dlopen ();
|
---|
10037 | int
|
---|
10038 | main ()
|
---|
10039 | {
|
---|
10040 | dlopen ();
|
---|
10041 | ;
|
---|
10042 | return 0;
|
---|
10043 | }
|
---|
10044 | _ACEOF
|
---|
10045 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10047 | (eval $ac_link) 2>conftest.er1
|
---|
10048 | ac_status=$?
|
---|
10049 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10050 | rm -f conftest.er1
|
---|
10051 | cat conftest.err >&5
|
---|
10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10053 | (exit $ac_status); } &&
|
---|
10054 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10055 | || test ! -s conftest.err'
|
---|
10056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10057 | (eval $ac_try) 2>&5
|
---|
10058 | ac_status=$?
|
---|
10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10060 | (exit $ac_status); }; } &&
|
---|
10061 | { ac_try='test -s conftest$ac_exeext'
|
---|
10062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10063 | (eval $ac_try) 2>&5
|
---|
10064 | ac_status=$?
|
---|
10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10066 | (exit $ac_status); }; }; then
|
---|
10067 | ac_cv_lib_dl_dlopen=yes
|
---|
10068 | else
|
---|
10069 | echo "$as_me: failed program was:" >&5
|
---|
10070 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10071 |
|
---|
10072 | ac_cv_lib_dl_dlopen=no
|
---|
10073 | fi
|
---|
10074 | rm -f conftest.err conftest.$ac_objext \
|
---|
10075 | conftest$ac_exeext conftest.$ac_ext
|
---|
10076 | LIBS=$ac_check_lib_save_LIBS
|
---|
10077 | fi
|
---|
10078 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
10079 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
---|
10080 | if test $ac_cv_lib_dl_dlopen = yes; then
|
---|
10081 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
---|
10082 | else
|
---|
10083 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
---|
10084 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
---|
10085 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
---|
10086 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10087 | else
|
---|
10088 | ac_check_lib_save_LIBS=$LIBS
|
---|
10089 | LIBS="-lsvld $LIBS"
|
---|
10090 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10091 | /* confdefs.h. */
|
---|
10092 | _ACEOF
|
---|
10093 | cat confdefs.h >>conftest.$ac_ext
|
---|
10094 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10095 | /* end confdefs.h. */
|
---|
10096 |
|
---|
10097 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10098 | #ifdef __cplusplus
|
---|
10099 | extern "C"
|
---|
10100 | #endif
|
---|
10101 | /* We use char because int might match the return type of a gcc2
|
---|
10102 | builtin and then its argument prototype would still apply. */
|
---|
10103 | char dlopen ();
|
---|
10104 | int
|
---|
10105 | main ()
|
---|
10106 | {
|
---|
10107 | dlopen ();
|
---|
10108 | ;
|
---|
10109 | return 0;
|
---|
10110 | }
|
---|
10111 | _ACEOF
|
---|
10112 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10114 | (eval $ac_link) 2>conftest.er1
|
---|
10115 | ac_status=$?
|
---|
10116 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10117 | rm -f conftest.er1
|
---|
10118 | cat conftest.err >&5
|
---|
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10120 | (exit $ac_status); } &&
|
---|
10121 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10122 | || test ! -s conftest.err'
|
---|
10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10124 | (eval $ac_try) 2>&5
|
---|
10125 | ac_status=$?
|
---|
10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10127 | (exit $ac_status); }; } &&
|
---|
10128 | { ac_try='test -s conftest$ac_exeext'
|
---|
10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10130 | (eval $ac_try) 2>&5
|
---|
10131 | ac_status=$?
|
---|
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10133 | (exit $ac_status); }; }; then
|
---|
10134 | ac_cv_lib_svld_dlopen=yes
|
---|
10135 | else
|
---|
10136 | echo "$as_me: failed program was:" >&5
|
---|
10137 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10138 |
|
---|
10139 | ac_cv_lib_svld_dlopen=no
|
---|
10140 | fi
|
---|
10141 | rm -f conftest.err conftest.$ac_objext \
|
---|
10142 | conftest$ac_exeext conftest.$ac_ext
|
---|
10143 | LIBS=$ac_check_lib_save_LIBS
|
---|
10144 | fi
|
---|
10145 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
---|
10146 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
---|
10147 | if test $ac_cv_lib_svld_dlopen = yes; then
|
---|
10148 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
---|
10149 | else
|
---|
10150 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
---|
10151 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
---|
10152 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
---|
10153 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10154 | else
|
---|
10155 | ac_check_lib_save_LIBS=$LIBS
|
---|
10156 | LIBS="-ldld $LIBS"
|
---|
10157 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10158 | /* confdefs.h. */
|
---|
10159 | _ACEOF
|
---|
10160 | cat confdefs.h >>conftest.$ac_ext
|
---|
10161 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10162 | /* end confdefs.h. */
|
---|
10163 |
|
---|
10164 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10165 | #ifdef __cplusplus
|
---|
10166 | extern "C"
|
---|
10167 | #endif
|
---|
10168 | /* We use char because int might match the return type of a gcc2
|
---|
10169 | builtin and then its argument prototype would still apply. */
|
---|
10170 | char dld_link ();
|
---|
10171 | int
|
---|
10172 | main ()
|
---|
10173 | {
|
---|
10174 | dld_link ();
|
---|
10175 | ;
|
---|
10176 | return 0;
|
---|
10177 | }
|
---|
10178 | _ACEOF
|
---|
10179 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10181 | (eval $ac_link) 2>conftest.er1
|
---|
10182 | ac_status=$?
|
---|
10183 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10184 | rm -f conftest.er1
|
---|
10185 | cat conftest.err >&5
|
---|
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10187 | (exit $ac_status); } &&
|
---|
10188 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10189 | || test ! -s conftest.err'
|
---|
10190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10191 | (eval $ac_try) 2>&5
|
---|
10192 | ac_status=$?
|
---|
10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10194 | (exit $ac_status); }; } &&
|
---|
10195 | { ac_try='test -s conftest$ac_exeext'
|
---|
10196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10197 | (eval $ac_try) 2>&5
|
---|
10198 | ac_status=$?
|
---|
10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10200 | (exit $ac_status); }; }; then
|
---|
10201 | ac_cv_lib_dld_dld_link=yes
|
---|
10202 | else
|
---|
10203 | echo "$as_me: failed program was:" >&5
|
---|
10204 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10205 |
|
---|
10206 | ac_cv_lib_dld_dld_link=no
|
---|
10207 | fi
|
---|
10208 | rm -f conftest.err conftest.$ac_objext \
|
---|
10209 | conftest$ac_exeext conftest.$ac_ext
|
---|
10210 | LIBS=$ac_check_lib_save_LIBS
|
---|
10211 | fi
|
---|
10212 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
---|
10213 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
---|
10214 | if test $ac_cv_lib_dld_dld_link = yes; then
|
---|
10215 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
---|
10216 | fi
|
---|
10217 |
|
---|
10218 |
|
---|
10219 | fi
|
---|
10220 |
|
---|
10221 |
|
---|
10222 | fi
|
---|
10223 |
|
---|
10224 |
|
---|
10225 | fi
|
---|
10226 |
|
---|
10227 |
|
---|
10228 | fi
|
---|
10229 |
|
---|
10230 |
|
---|
10231 | fi
|
---|
10232 |
|
---|
10233 | ;;
|
---|
10234 | esac
|
---|
10235 |
|
---|
10236 | if test "x$lt_cv_dlopen" != xno; then
|
---|
10237 | enable_dlopen=yes
|
---|
10238 | else
|
---|
10239 | enable_dlopen=no
|
---|
10240 | fi
|
---|
10241 |
|
---|
10242 | case $lt_cv_dlopen in
|
---|
10243 | dlopen)
|
---|
10244 | save_CPPFLAGS="$CPPFLAGS"
|
---|
10245 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
---|
10246 |
|
---|
10247 | save_LDFLAGS="$LDFLAGS"
|
---|
10248 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
---|
10249 |
|
---|
10250 | save_LIBS="$LIBS"
|
---|
10251 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
---|
10252 |
|
---|
10253 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
---|
10254 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
---|
10255 | if test "${lt_cv_dlopen_self+set}" = set; then
|
---|
10256 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10257 | else
|
---|
10258 | if test "$cross_compiling" = yes; then :
|
---|
10259 | lt_cv_dlopen_self=cross
|
---|
10260 | else
|
---|
10261 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
10262 | lt_status=$lt_dlunknown
|
---|
10263 | cat > conftest.$ac_ext <<EOF
|
---|
10264 | #line 10264 "configure"
|
---|
10265 | #include "confdefs.h"
|
---|
10266 |
|
---|
10267 | #if HAVE_DLFCN_H
|
---|
10268 | #include <dlfcn.h>
|
---|
10269 | #endif
|
---|
10270 |
|
---|
10271 | #include <stdio.h>
|
---|
10272 |
|
---|
10273 | #ifdef RTLD_GLOBAL
|
---|
10274 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
10275 | #else
|
---|
10276 | # ifdef DL_GLOBAL
|
---|
10277 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
10278 | # else
|
---|
10279 | # define LT_DLGLOBAL 0
|
---|
10280 | # endif
|
---|
10281 | #endif
|
---|
10282 |
|
---|
10283 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
10284 | find out it does not work in some platform. */
|
---|
10285 | #ifndef LT_DLLAZY_OR_NOW
|
---|
10286 | # ifdef RTLD_LAZY
|
---|
10287 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
10288 | # else
|
---|
10289 | # ifdef DL_LAZY
|
---|
10290 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
10291 | # else
|
---|
10292 | # ifdef RTLD_NOW
|
---|
10293 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
10294 | # else
|
---|
10295 | # ifdef DL_NOW
|
---|
10296 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
10297 | # else
|
---|
10298 | # define LT_DLLAZY_OR_NOW 0
|
---|
10299 | # endif
|
---|
10300 | # endif
|
---|
10301 | # endif
|
---|
10302 | # endif
|
---|
10303 | #endif
|
---|
10304 |
|
---|
10305 | #ifdef __cplusplus
|
---|
10306 | extern "C" void exit (int);
|
---|
10307 | #endif
|
---|
10308 |
|
---|
10309 | void fnord() { int i=42;}
|
---|
10310 | int main ()
|
---|
10311 | {
|
---|
10312 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
10313 | int status = $lt_dlunknown;
|
---|
10314 |
|
---|
10315 | if (self)
|
---|
10316 | {
|
---|
10317 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
10318 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
10319 | /* dlclose (self); */
|
---|
10320 | }
|
---|
10321 | else
|
---|
10322 | puts (dlerror ());
|
---|
10323 |
|
---|
10324 | exit (status);
|
---|
10325 | }
|
---|
10326 | EOF
|
---|
10327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10328 | (eval $ac_link) 2>&5
|
---|
10329 | ac_status=$?
|
---|
10330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10331 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
---|
10332 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
10333 | lt_status=$?
|
---|
10334 | case x$lt_status in
|
---|
10335 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
---|
10336 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
---|
10337 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
---|
10338 | esac
|
---|
10339 | else :
|
---|
10340 | # compilation failed
|
---|
10341 | lt_cv_dlopen_self=no
|
---|
10342 | fi
|
---|
10343 | fi
|
---|
10344 | rm -fr conftest*
|
---|
10345 |
|
---|
10346 |
|
---|
10347 | fi
|
---|
10348 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
---|
10349 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
---|
10350 |
|
---|
10351 | if test "x$lt_cv_dlopen_self" = xyes; then
|
---|
10352 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
---|
10353 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
---|
10354 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
---|
10355 | if test "${lt_cv_dlopen_self_static+set}" = set; then
|
---|
10356 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10357 | else
|
---|
10358 | if test "$cross_compiling" = yes; then :
|
---|
10359 | lt_cv_dlopen_self_static=cross
|
---|
10360 | else
|
---|
10361 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
10362 | lt_status=$lt_dlunknown
|
---|
10363 | cat > conftest.$ac_ext <<EOF
|
---|
10364 | #line 10364 "configure"
|
---|
10365 | #include "confdefs.h"
|
---|
10366 |
|
---|
10367 | #if HAVE_DLFCN_H
|
---|
10368 | #include <dlfcn.h>
|
---|
10369 | #endif
|
---|
10370 |
|
---|
10371 | #include <stdio.h>
|
---|
10372 |
|
---|
10373 | #ifdef RTLD_GLOBAL
|
---|
10374 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
10375 | #else
|
---|
10376 | # ifdef DL_GLOBAL
|
---|
10377 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
10378 | # else
|
---|
10379 | # define LT_DLGLOBAL 0
|
---|
10380 | # endif
|
---|
10381 | #endif
|
---|
10382 |
|
---|
10383 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
10384 | find out it does not work in some platform. */
|
---|
10385 | #ifndef LT_DLLAZY_OR_NOW
|
---|
10386 | # ifdef RTLD_LAZY
|
---|
10387 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
10388 | # else
|
---|
10389 | # ifdef DL_LAZY
|
---|
10390 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
10391 | # else
|
---|
10392 | # ifdef RTLD_NOW
|
---|
10393 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
10394 | # else
|
---|
10395 | # ifdef DL_NOW
|
---|
10396 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
10397 | # else
|
---|
10398 | # define LT_DLLAZY_OR_NOW 0
|
---|
10399 | # endif
|
---|
10400 | # endif
|
---|
10401 | # endif
|
---|
10402 | # endif
|
---|
10403 | #endif
|
---|
10404 |
|
---|
10405 | #ifdef __cplusplus
|
---|
10406 | extern "C" void exit (int);
|
---|
10407 | #endif
|
---|
10408 |
|
---|
10409 | void fnord() { int i=42;}
|
---|
10410 | int main ()
|
---|
10411 | {
|
---|
10412 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
10413 | int status = $lt_dlunknown;
|
---|
10414 |
|
---|
10415 | if (self)
|
---|
10416 | {
|
---|
10417 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
10418 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
10419 | /* dlclose (self); */
|
---|
10420 | }
|
---|
10421 | else
|
---|
10422 | puts (dlerror ());
|
---|
10423 |
|
---|
10424 | exit (status);
|
---|
10425 | }
|
---|
10426 | EOF
|
---|
10427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10428 | (eval $ac_link) 2>&5
|
---|
10429 | ac_status=$?
|
---|
10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10431 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
---|
10432 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
10433 | lt_status=$?
|
---|
10434 | case x$lt_status in
|
---|
10435 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
10436 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
10437 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
---|
10438 | esac
|
---|
10439 | else :
|
---|
10440 | # compilation failed
|
---|
10441 | lt_cv_dlopen_self_static=no
|
---|
10442 | fi
|
---|
10443 | fi
|
---|
10444 | rm -fr conftest*
|
---|
10445 |
|
---|
10446 |
|
---|
10447 | fi
|
---|
10448 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
---|
10449 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
---|
10450 | fi
|
---|
10451 |
|
---|
10452 | CPPFLAGS="$save_CPPFLAGS"
|
---|
10453 | LDFLAGS="$save_LDFLAGS"
|
---|
10454 | LIBS="$save_LIBS"
|
---|
10455 | ;;
|
---|
10456 | esac
|
---|
10457 |
|
---|
10458 | case $lt_cv_dlopen_self in
|
---|
10459 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
---|
10460 | *) enable_dlopen_self=unknown ;;
|
---|
10461 | esac
|
---|
10462 |
|
---|
10463 | case $lt_cv_dlopen_self_static in
|
---|
10464 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
---|
10465 | *) enable_dlopen_self_static=unknown ;;
|
---|
10466 | esac
|
---|
10467 | fi
|
---|
10468 |
|
---|
10469 |
|
---|
10470 | # Report which library types will actually be built
|
---|
10471 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
---|
10472 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
---|
10473 | echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
---|
10474 | echo "${ECHO_T}$can_build_shared" >&6
|
---|
10475 |
|
---|
10476 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
---|
10477 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
|
---|
10478 | test "$can_build_shared" = "no" && enable_shared=no
|
---|
10479 |
|
---|
10480 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
10481 | # are all built from PIC.
|
---|
10482 | case $host_os in
|
---|
10483 | aix3*)
|
---|
10484 | test "$enable_shared" = yes && enable_static=no
|
---|
10485 | if test -n "$RANLIB"; then
|
---|
10486 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
10487 | postinstall_cmds='$RANLIB $lib'
|
---|
10488 | fi
|
---|
10489 | ;;
|
---|
10490 |
|
---|
10491 | aix4* | aix5*)
|
---|
10492 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
---|
10493 | test "$enable_shared" = yes && enable_static=no
|
---|
10494 | fi
|
---|
10495 | ;;
|
---|
10496 | esac
|
---|
10497 | echo "$as_me:$LINENO: result: $enable_shared" >&5
|
---|
10498 | echo "${ECHO_T}$enable_shared" >&6
|
---|
10499 |
|
---|
10500 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
---|
10501 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
|
---|
10502 | # Make sure either enable_shared or enable_static is yes.
|
---|
10503 | test "$enable_shared" = yes || enable_static=yes
|
---|
10504 | echo "$as_me:$LINENO: result: $enable_static" >&5
|
---|
10505 | echo "${ECHO_T}$enable_static" >&6
|
---|
10506 |
|
---|
10507 | # The else clause should only fire when bootstrapping the
|
---|
10508 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
---|
10509 | # with your package, and you will get complaints that there are
|
---|
10510 | # no rules to generate ltmain.sh.
|
---|
10511 | if test -f "$ltmain"; then
|
---|
10512 | # See if we are running on zsh, and set the options which allow our commands through
|
---|
10513 | # without removal of \ escapes.
|
---|
10514 | if test -n "${ZSH_VERSION+set}" ; then
|
---|
10515 | setopt NO_GLOB_SUBST
|
---|
10516 | fi
|
---|
10517 | # Now quote all the things that may contain metacharacters while being
|
---|
10518 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
---|
10519 | # variables and quote the copies for generation of the libtool script.
|
---|
10520 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
---|
10521 | SED SHELL STRIP \
|
---|
10522 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
---|
10523 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
---|
10524 | deplibs_check_method reload_flag reload_cmds need_locks \
|
---|
10525 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
---|
10526 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
10527 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
---|
10528 | old_postinstall_cmds old_postuninstall_cmds \
|
---|
10529 | compiler \
|
---|
10530 | CC \
|
---|
10531 | LD \
|
---|
10532 | lt_prog_compiler_wl \
|
---|
10533 | lt_prog_compiler_pic \
|
---|
10534 | lt_prog_compiler_static \
|
---|
10535 | lt_prog_compiler_no_builtin_flag \
|
---|
10536 | export_dynamic_flag_spec \
|
---|
10537 | thread_safe_flag_spec \
|
---|
10538 | whole_archive_flag_spec \
|
---|
10539 | enable_shared_with_static_runtimes \
|
---|
10540 | old_archive_cmds \
|
---|
10541 | old_archive_from_new_cmds \
|
---|
10542 | predep_objects \
|
---|
10543 | postdep_objects \
|
---|
10544 | predeps \
|
---|
10545 | postdeps \
|
---|
10546 | compiler_lib_search_path \
|
---|
10547 | archive_cmds \
|
---|
10548 | archive_expsym_cmds \
|
---|
10549 | postinstall_cmds \
|
---|
10550 | postuninstall_cmds \
|
---|
10551 | old_archive_from_expsyms_cmds \
|
---|
10552 | allow_undefined_flag \
|
---|
10553 | no_undefined_flag \
|
---|
10554 | export_symbols_cmds \
|
---|
10555 | hardcode_libdir_flag_spec \
|
---|
10556 | hardcode_libdir_flag_spec_ld \
|
---|
10557 | hardcode_libdir_separator \
|
---|
10558 | hardcode_automatic \
|
---|
10559 | module_cmds \
|
---|
10560 | module_expsym_cmds \
|
---|
10561 | lt_cv_prog_compiler_c_o \
|
---|
10562 | exclude_expsyms \
|
---|
10563 | include_expsyms; do
|
---|
10564 |
|
---|
10565 | case $var in
|
---|
10566 | old_archive_cmds | \
|
---|
10567 | old_archive_from_new_cmds | \
|
---|
10568 | archive_cmds | \
|
---|
10569 | archive_expsym_cmds | \
|
---|
10570 | module_cmds | \
|
---|
10571 | module_expsym_cmds | \
|
---|
10572 | old_archive_from_expsyms_cmds | \
|
---|
10573 | export_symbols_cmds | \
|
---|
10574 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
---|
10575 | postinstall_cmds | postuninstall_cmds | \
|
---|
10576 | old_postinstall_cmds | old_postuninstall_cmds | \
|
---|
10577 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
---|
10578 | # Double-quote double-evaled strings.
|
---|
10579 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
---|
10580 | ;;
|
---|
10581 | *)
|
---|
10582 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
---|
10583 | ;;
|
---|
10584 | esac
|
---|
10585 | done
|
---|
10586 |
|
---|
10587 | case $lt_echo in
|
---|
10588 | *'\$0 --fallback-echo"')
|
---|
10589 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
---|
10590 | ;;
|
---|
10591 | esac
|
---|
10592 |
|
---|
10593 | cfgfile="${ofile}T"
|
---|
10594 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
---|
10595 | $rm -f "$cfgfile"
|
---|
10596 | { echo "$as_me:$LINENO: creating $ofile" >&5
|
---|
10597 | echo "$as_me: creating $ofile" >&6;}
|
---|
10598 |
|
---|
10599 | cat <<__EOF__ >> "$cfgfile"
|
---|
10600 | #! $SHELL
|
---|
10601 |
|
---|
10602 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
---|
10603 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
---|
10604 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
---|
10605 | #
|
---|
10606 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
---|
10607 | # Free Software Foundation, Inc.
|
---|
10608 | #
|
---|
10609 | # This file is part of GNU Libtool:
|
---|
10610 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
---|
10611 | #
|
---|
10612 | # This program is free software; you can redistribute it and/or modify
|
---|
10613 | # it under the terms of the GNU General Public License as published by
|
---|
10614 | # the Free Software Foundation; either version 2 of the License, or
|
---|
10615 | # (at your option) any later version.
|
---|
10616 | #
|
---|
10617 | # This program is distributed in the hope that it will be useful, but
|
---|
10618 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
10619 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
10620 | # General Public License for more details.
|
---|
10621 | #
|
---|
10622 | # You should have received a copy of the GNU General Public License
|
---|
10623 | # along with this program; if not, write to the Free Software
|
---|
10624 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
---|
10625 | #
|
---|
10626 | # As a special exception to the GNU General Public License, if you
|
---|
10627 | # distribute this file as part of a program that contains a
|
---|
10628 | # configuration script generated by Autoconf, you may include it under
|
---|
10629 | # the same distribution terms that you use for the rest of that program.
|
---|
10630 |
|
---|
10631 | # A sed program that does not truncate output.
|
---|
10632 | SED=$lt_SED
|
---|
10633 |
|
---|
10634 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
---|
10635 | Xsed="$SED -e 1s/^X//"
|
---|
10636 |
|
---|
10637 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
---|
10638 | # if CDPATH is set.
|
---|
10639 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
10640 |
|
---|
10641 | # The names of the tagged configurations supported by this script.
|
---|
10642 | available_tags=
|
---|
10643 |
|
---|
10644 | # ### BEGIN LIBTOOL CONFIG
|
---|
10645 |
|
---|
10646 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
10647 |
|
---|
10648 | # Shell to use when invoking shell scripts.
|
---|
10649 | SHELL=$lt_SHELL
|
---|
10650 |
|
---|
10651 | # Whether or not to build shared libraries.
|
---|
10652 | build_libtool_libs=$enable_shared
|
---|
10653 |
|
---|
10654 | # Whether or not to build static libraries.
|
---|
10655 | build_old_libs=$enable_static
|
---|
10656 |
|
---|
10657 | # Whether or not to add -lc for building shared libraries.
|
---|
10658 | build_libtool_need_lc=$archive_cmds_need_lc
|
---|
10659 |
|
---|
10660 | # Whether or not to disallow shared libs when runtime libs are static
|
---|
10661 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
---|
10662 |
|
---|
10663 | # Whether or not to optimize for fast installation.
|
---|
10664 | fast_install=$enable_fast_install
|
---|
10665 |
|
---|
10666 | # The host system.
|
---|
10667 | host_alias=$host_alias
|
---|
10668 | host=$host
|
---|
10669 | host_os=$host_os
|
---|
10670 |
|
---|
10671 | # The build system.
|
---|
10672 | build_alias=$build_alias
|
---|
10673 | build=$build
|
---|
10674 | build_os=$build_os
|
---|
10675 |
|
---|
10676 | # An echo program that does not interpret backslashes.
|
---|
10677 | echo=$lt_echo
|
---|
10678 |
|
---|
10679 | # The archiver.
|
---|
10680 | AR=$lt_AR
|
---|
10681 | AR_FLAGS=$lt_AR_FLAGS
|
---|
10682 |
|
---|
10683 | # A C compiler.
|
---|
10684 | LTCC=$lt_LTCC
|
---|
10685 |
|
---|
10686 | # LTCC compiler flags.
|
---|
10687 | LTCFLAGS=$lt_LTCFLAGS
|
---|
10688 |
|
---|
10689 | # A language-specific compiler.
|
---|
10690 | CC=$lt_compiler
|
---|
10691 |
|
---|
10692 | # Is the compiler the GNU C compiler?
|
---|
10693 | with_gcc=$GCC
|
---|
10694 |
|
---|
10695 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
|
---|
10696 | gcc_ver=\`gcc -dumpversion\`
|
---|
10697 |
|
---|
10698 | # An ERE matcher.
|
---|
10699 | EGREP=$lt_EGREP
|
---|
10700 |
|
---|
10701 | # The linker used to build libraries.
|
---|
10702 | LD=$lt_LD
|
---|
10703 |
|
---|
10704 | # Whether we need hard or soft links.
|
---|
10705 | LN_S=$lt_LN_S
|
---|
10706 |
|
---|
10707 | # A BSD-compatible nm program.
|
---|
10708 | NM=$lt_NM
|
---|
10709 |
|
---|
10710 | # A symbol stripping program
|
---|
10711 | STRIP=$lt_STRIP
|
---|
10712 |
|
---|
10713 | # Used to examine libraries when file_magic_cmd begins "file"
|
---|
10714 | MAGIC_CMD=$MAGIC_CMD
|
---|
10715 |
|
---|
10716 | # Used on cygwin: DLL creation program.
|
---|
10717 | DLLTOOL="$DLLTOOL"
|
---|
10718 |
|
---|
10719 | # Used on cygwin: object dumper.
|
---|
10720 | OBJDUMP="$OBJDUMP"
|
---|
10721 |
|
---|
10722 | # Used on cygwin: assembler.
|
---|
10723 | AS="$AS"
|
---|
10724 |
|
---|
10725 | # The name of the directory that contains temporary libtool files.
|
---|
10726 | objdir=$objdir
|
---|
10727 |
|
---|
10728 | # How to create reloadable object files.
|
---|
10729 | reload_flag=$lt_reload_flag
|
---|
10730 | reload_cmds=$lt_reload_cmds
|
---|
10731 |
|
---|
10732 | # How to pass a linker flag through the compiler.
|
---|
10733 | wl=$lt_lt_prog_compiler_wl
|
---|
10734 |
|
---|
10735 | # Object file suffix (normally "o").
|
---|
10736 | objext="$ac_objext"
|
---|
10737 |
|
---|
10738 | # Old archive suffix (normally "a").
|
---|
10739 | libext="$libext"
|
---|
10740 |
|
---|
10741 | # Shared library suffix (normally ".so").
|
---|
10742 | shrext_cmds='$shrext_cmds'
|
---|
10743 |
|
---|
10744 | # Executable file suffix (normally "").
|
---|
10745 | exeext="$exeext"
|
---|
10746 |
|
---|
10747 | # Additional compiler flags for building library objects.
|
---|
10748 | pic_flag=$lt_lt_prog_compiler_pic
|
---|
10749 | pic_mode=$pic_mode
|
---|
10750 |
|
---|
10751 | # What is the maximum length of a command?
|
---|
10752 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
10753 |
|
---|
10754 | # Does compiler simultaneously support -c and -o options?
|
---|
10755 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
---|
10756 |
|
---|
10757 | # Must we lock files when doing compilation?
|
---|
10758 | need_locks=$lt_need_locks
|
---|
10759 |
|
---|
10760 | # Do we need the lib prefix for modules?
|
---|
10761 | need_lib_prefix=$need_lib_prefix
|
---|
10762 |
|
---|
10763 | # Do we need a version for libraries?
|
---|
10764 | need_version=$need_version
|
---|
10765 |
|
---|
10766 | # Whether dlopen is supported.
|
---|
10767 | dlopen_support=$enable_dlopen
|
---|
10768 |
|
---|
10769 | # Whether dlopen of programs is supported.
|
---|
10770 | dlopen_self=$enable_dlopen_self
|
---|
10771 |
|
---|
10772 | # Whether dlopen of statically linked programs is supported.
|
---|
10773 | dlopen_self_static=$enable_dlopen_self_static
|
---|
10774 |
|
---|
10775 | # Compiler flag to prevent dynamic linking.
|
---|
10776 | link_static_flag=$lt_lt_prog_compiler_static
|
---|
10777 |
|
---|
10778 | # Compiler flag to turn off builtin functions.
|
---|
10779 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
---|
10780 |
|
---|
10781 | # Compiler flag to allow reflexive dlopens.
|
---|
10782 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
---|
10783 |
|
---|
10784 | # Compiler flag to generate shared objects directly from archives.
|
---|
10785 | whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
---|
10786 |
|
---|
10787 | # Compiler flag to generate thread-safe objects.
|
---|
10788 | thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
---|
10789 |
|
---|
10790 | # Library versioning type.
|
---|
10791 | version_type=$version_type
|
---|
10792 |
|
---|
10793 | # Format of library name prefix.
|
---|
10794 | libname_spec=$lt_libname_spec
|
---|
10795 |
|
---|
10796 | # List of archive names. First name is the real one, the rest are links.
|
---|
10797 | # The last name is the one that the linker finds with -lNAME.
|
---|
10798 | library_names_spec=$lt_library_names_spec
|
---|
10799 |
|
---|
10800 | # The coded name of the library, if different from the real name.
|
---|
10801 | soname_spec=$lt_soname_spec
|
---|
10802 |
|
---|
10803 | # Commands used to build and install an old-style archive.
|
---|
10804 | RANLIB=$lt_RANLIB
|
---|
10805 | old_archive_cmds=$lt_old_archive_cmds
|
---|
10806 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
10807 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
10808 |
|
---|
10809 | # Create an old-style archive from a shared archive.
|
---|
10810 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
---|
10811 |
|
---|
10812 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
10813 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
---|
10814 |
|
---|
10815 | # Commands used to build and install a shared archive.
|
---|
10816 | archive_cmds=$lt_archive_cmds
|
---|
10817 | archive_expsym_cmds=$lt_archive_expsym_cmds
|
---|
10818 | postinstall_cmds=$lt_postinstall_cmds
|
---|
10819 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
10820 |
|
---|
10821 | # Commands used to build a loadable module (assumed same as above if empty)
|
---|
10822 | module_cmds=$lt_module_cmds
|
---|
10823 | module_expsym_cmds=$lt_module_expsym_cmds
|
---|
10824 |
|
---|
10825 | # Commands to strip libraries.
|
---|
10826 | old_striplib=$lt_old_striplib
|
---|
10827 | striplib=$lt_striplib
|
---|
10828 |
|
---|
10829 | # Dependencies to place before the objects being linked to create a
|
---|
10830 | # shared library.
|
---|
10831 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
10832 |
|
---|
10833 | # Dependencies to place after the objects being linked to create a
|
---|
10834 | # shared library.
|
---|
10835 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
10836 |
|
---|
10837 | # Dependencies to place before the objects being linked to create a
|
---|
10838 | # shared library.
|
---|
10839 | predeps=$lt_predeps
|
---|
10840 |
|
---|
10841 | # Dependencies to place after the objects being linked to create a
|
---|
10842 | # shared library.
|
---|
10843 | postdeps=$lt_postdeps
|
---|
10844 |
|
---|
10845 | # The library search path used internally by the compiler when linking
|
---|
10846 | # a shared library.
|
---|
10847 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
10848 |
|
---|
10849 | # Method to check whether dependent libraries are shared objects.
|
---|
10850 | deplibs_check_method=$lt_deplibs_check_method
|
---|
10851 |
|
---|
10852 | # Command to use when deplibs_check_method == file_magic.
|
---|
10853 | file_magic_cmd=$lt_file_magic_cmd
|
---|
10854 |
|
---|
10855 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
10856 | allow_undefined_flag=$lt_allow_undefined_flag
|
---|
10857 |
|
---|
10858 | # Flag that forces no undefined symbols.
|
---|
10859 | no_undefined_flag=$lt_no_undefined_flag
|
---|
10860 |
|
---|
10861 | # Commands used to finish a libtool library installation in a directory.
|
---|
10862 | finish_cmds=$lt_finish_cmds
|
---|
10863 |
|
---|
10864 | # Same as above, but a single script fragment to be evaled but not shown.
|
---|
10865 | finish_eval=$lt_finish_eval
|
---|
10866 |
|
---|
10867 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
10868 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
10869 |
|
---|
10870 | # Transform the output of nm in a proper C declaration
|
---|
10871 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
10872 |
|
---|
10873 | # Transform the output of nm in a C name address pair
|
---|
10874 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
10875 |
|
---|
10876 | # This is the shared library runtime path variable.
|
---|
10877 | runpath_var=$runpath_var
|
---|
10878 |
|
---|
10879 | # This is the shared library path variable.
|
---|
10880 | shlibpath_var=$shlibpath_var
|
---|
10881 |
|
---|
10882 | # Is shlibpath searched before the hard-coded library search path?
|
---|
10883 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
10884 |
|
---|
10885 | # How to hardcode a shared library path into an executable.
|
---|
10886 | hardcode_action=$hardcode_action
|
---|
10887 |
|
---|
10888 | # Whether we should hardcode library paths into libraries.
|
---|
10889 | hardcode_into_libs=$hardcode_into_libs
|
---|
10890 |
|
---|
10891 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
10892 | # This must work even if \$libdir does not exist.
|
---|
10893 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
---|
10894 |
|
---|
10895 | # If ld is used when linking, flag to hardcode \$libdir into
|
---|
10896 | # a binary during linking. This must work even if \$libdir does
|
---|
10897 | # not exist.
|
---|
10898 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
---|
10899 |
|
---|
10900 | # Whether we need a single -rpath flag with a separated argument.
|
---|
10901 | hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
---|
10902 |
|
---|
10903 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
---|
10904 | # resulting binary.
|
---|
10905 | hardcode_direct=$hardcode_direct
|
---|
10906 |
|
---|
10907 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
---|
10908 | # resulting binary.
|
---|
10909 | hardcode_minus_L=$hardcode_minus_L
|
---|
10910 |
|
---|
10911 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
---|
10912 | # the resulting binary.
|
---|
10913 | hardcode_shlibpath_var=$hardcode_shlibpath_var
|
---|
10914 |
|
---|
10915 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
---|
10916 | # and all subsequent libraries and executables linked against it.
|
---|
10917 | hardcode_automatic=$hardcode_automatic
|
---|
10918 |
|
---|
10919 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
10920 | # restored at relink time.
|
---|
10921 | variables_saved_for_relink="$variables_saved_for_relink"
|
---|
10922 |
|
---|
10923 | # Whether libtool must link a program against all its dependency libraries.
|
---|
10924 | link_all_deplibs=$link_all_deplibs
|
---|
10925 |
|
---|
10926 | # Compile-time system search path for libraries
|
---|
10927 | 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"\`
|
---|
10928 |
|
---|
10929 | # Run-time system search path for libraries
|
---|
10930 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
---|
10931 |
|
---|
10932 | # Fix the shell variable \$srcfile for the compiler.
|
---|
10933 | fix_srcfile_path="$fix_srcfile_path"
|
---|
10934 |
|
---|
10935 | # Set to yes if exported symbols are required.
|
---|
10936 | always_export_symbols=$always_export_symbols
|
---|
10937 |
|
---|
10938 | # The commands to list exported symbols.
|
---|
10939 | export_symbols_cmds=$lt_export_symbols_cmds
|
---|
10940 |
|
---|
10941 | # The commands to extract the exported symbol list from a shared archive.
|
---|
10942 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
10943 |
|
---|
10944 | # Symbols that should not be listed in the preloaded symbols.
|
---|
10945 | exclude_expsyms=$lt_exclude_expsyms
|
---|
10946 |
|
---|
10947 | # Symbols that must always be exported.
|
---|
10948 | include_expsyms=$lt_include_expsyms
|
---|
10949 |
|
---|
10950 | # ### END LIBTOOL CONFIG
|
---|
10951 |
|
---|
10952 | __EOF__
|
---|
10953 |
|
---|
10954 |
|
---|
10955 | case $host_os in
|
---|
10956 | aix3*)
|
---|
10957 | cat <<\EOF >> "$cfgfile"
|
---|
10958 |
|
---|
10959 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
10960 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
10961 | # vanish in a puff of smoke.
|
---|
10962 | if test "X${COLLECT_NAMES+set}" != Xset; then
|
---|
10963 | COLLECT_NAMES=
|
---|
10964 | export COLLECT_NAMES
|
---|
10965 | fi
|
---|
10966 | EOF
|
---|
10967 | ;;
|
---|
10968 | esac
|
---|
10969 |
|
---|
10970 | # We use sed instead of cat because bash on DJGPP gets confused if
|
---|
10971 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
---|
10972 | # text mode, it properly converts lines to CR/LF. This bash problem
|
---|
10973 | # is reportedly fixed, but why not run on old versions too?
|
---|
10974 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
---|
10975 |
|
---|
10976 | mv -f "$cfgfile" "$ofile" || \
|
---|
10977 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
---|
10978 | chmod +x "$ofile"
|
---|
10979 |
|
---|
10980 | else
|
---|
10981 | # If there is no Makefile yet, we rely on a make rule to execute
|
---|
10982 | # `config.status --recheck' to rerun these tests and create the
|
---|
10983 | # libtool script then.
|
---|
10984 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
---|
10985 | if test -f "$ltmain_in"; then
|
---|
10986 | test -f Makefile && make "$ltmain"
|
---|
10987 | fi
|
---|
10988 | fi
|
---|
10989 |
|
---|
10990 |
|
---|
10991 | ac_ext=c
|
---|
10992 | ac_cpp='$CPP $CPPFLAGS'
|
---|
10993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
10994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
10995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
10996 |
|
---|
10997 | CC="$lt_save_CC"
|
---|
10998 |
|
---|
10999 |
|
---|
11000 | # Check whether --with-tags or --without-tags was given.
|
---|
11001 | if test "${with_tags+set}" = set; then
|
---|
11002 | withval="$with_tags"
|
---|
11003 | tagnames="$withval"
|
---|
11004 | fi;
|
---|
11005 |
|
---|
11006 | if test -f "$ltmain" && test -n "$tagnames"; then
|
---|
11007 | if test ! -f "${ofile}"; then
|
---|
11008 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
---|
11009 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
---|
11010 | fi
|
---|
11011 |
|
---|
11012 | if test -z "$LTCC"; then
|
---|
11013 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
---|
11014 | if test -z "$LTCC"; then
|
---|
11015 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
|
---|
11016 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
|
---|
11017 | else
|
---|
11018 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
---|
11019 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
---|
11020 | fi
|
---|
11021 | fi
|
---|
11022 | if test -z "$LTCFLAGS"; then
|
---|
11023 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
---|
11024 | fi
|
---|
11025 |
|
---|
11026 | # Extract list of available tagged configurations in $ofile.
|
---|
11027 | # Note that this assumes the entire list is on one line.
|
---|
11028 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
---|
11029 |
|
---|
11030 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
---|
11031 | for tagname in $tagnames; do
|
---|
11032 | IFS="$lt_save_ifs"
|
---|
11033 | # Check whether tagname contains only valid characters
|
---|
11034 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
|
---|
11035 | "") ;;
|
---|
11036 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
|
---|
11037 | echo "$as_me: error: invalid tag name: $tagname" >&2;}
|
---|
11038 | { (exit 1); exit 1; }; }
|
---|
11039 | ;;
|
---|
11040 | esac
|
---|
11041 |
|
---|
11042 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
---|
11043 | then
|
---|
11044 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
|
---|
11045 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
|
---|
11046 | { (exit 1); exit 1; }; }
|
---|
11047 | fi
|
---|
11048 |
|
---|
11049 | # Update the list of available tags.
|
---|
11050 | if test -n "$tagname"; then
|
---|
11051 | echo appending configuration tag \"$tagname\" to $ofile
|
---|
11052 |
|
---|
11053 | case $tagname in
|
---|
11054 | CXX)
|
---|
11055 | if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
---|
11056 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
---|
11057 | (test "X$CXX" != "Xg++"))) ; then
|
---|
11058 | ac_ext=cc
|
---|
11059 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
11060 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
11061 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
11062 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
11063 |
|
---|
11064 |
|
---|
11065 |
|
---|
11066 |
|
---|
11067 | archive_cmds_need_lc_CXX=no
|
---|
11068 | allow_undefined_flag_CXX=
|
---|
11069 | always_export_symbols_CXX=no
|
---|
11070 | archive_expsym_cmds_CXX=
|
---|
11071 | export_dynamic_flag_spec_CXX=
|
---|
11072 | hardcode_direct_CXX=no
|
---|
11073 | hardcode_libdir_flag_spec_CXX=
|
---|
11074 | hardcode_libdir_flag_spec_ld_CXX=
|
---|
11075 | hardcode_libdir_separator_CXX=
|
---|
11076 | hardcode_minus_L_CXX=no
|
---|
11077 | hardcode_shlibpath_var_CXX=unsupported
|
---|
11078 | hardcode_automatic_CXX=no
|
---|
11079 | module_cmds_CXX=
|
---|
11080 | module_expsym_cmds_CXX=
|
---|
11081 | link_all_deplibs_CXX=unknown
|
---|
11082 | old_archive_cmds_CXX=$old_archive_cmds
|
---|
11083 | no_undefined_flag_CXX=
|
---|
11084 | whole_archive_flag_spec_CXX=
|
---|
11085 | enable_shared_with_static_runtimes_CXX=no
|
---|
11086 |
|
---|
11087 | # Dependencies to place before and after the object being linked:
|
---|
11088 | predep_objects_CXX=
|
---|
11089 | postdep_objects_CXX=
|
---|
11090 | predeps_CXX=
|
---|
11091 | postdeps_CXX=
|
---|
11092 | compiler_lib_search_path_CXX=
|
---|
11093 |
|
---|
11094 | # Source file extension for C++ test sources.
|
---|
11095 | ac_ext=cpp
|
---|
11096 |
|
---|
11097 | # Object file extension for compiled C++ test sources.
|
---|
11098 | objext=o
|
---|
11099 | objext_CXX=$objext
|
---|
11100 |
|
---|
11101 | # Code to be used in simple compile tests
|
---|
11102 | lt_simple_compile_test_code="int some_variable = 0;\n"
|
---|
11103 |
|
---|
11104 | # Code to be used in simple link tests
|
---|
11105 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
---|
11106 |
|
---|
11107 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
---|
11108 |
|
---|
11109 | # If no C compiler was specified, use CC.
|
---|
11110 | LTCC=${LTCC-"$CC"}
|
---|
11111 |
|
---|
11112 | # If no C compiler flags were specified, use CFLAGS.
|
---|
11113 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
11114 |
|
---|
11115 | # Allow CC to be a program name with arguments.
|
---|
11116 | compiler=$CC
|
---|
11117 |
|
---|
11118 |
|
---|
11119 | # save warnings/boilerplate of simple test code
|
---|
11120 | ac_outfile=conftest.$ac_objext
|
---|
11121 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
11122 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
11123 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
11124 | $rm conftest*
|
---|
11125 |
|
---|
11126 | ac_outfile=conftest.$ac_objext
|
---|
11127 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
11128 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
11129 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
11130 | $rm conftest*
|
---|
11131 |
|
---|
11132 |
|
---|
11133 | # Allow CC to be a program name with arguments.
|
---|
11134 | lt_save_CC=$CC
|
---|
11135 | lt_save_LD=$LD
|
---|
11136 | lt_save_GCC=$GCC
|
---|
11137 | GCC=$GXX
|
---|
11138 | lt_save_with_gnu_ld=$with_gnu_ld
|
---|
11139 | lt_save_path_LD=$lt_cv_path_LD
|
---|
11140 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
---|
11141 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
---|
11142 | else
|
---|
11143 | $as_unset lt_cv_prog_gnu_ld
|
---|
11144 | fi
|
---|
11145 | if test -n "${lt_cv_path_LDCXX+set}"; then
|
---|
11146 | lt_cv_path_LD=$lt_cv_path_LDCXX
|
---|
11147 | else
|
---|
11148 | $as_unset lt_cv_path_LD
|
---|
11149 | fi
|
---|
11150 | test -z "${LDCXX+set}" || LD=$LDCXX
|
---|
11151 | CC=${CXX-"c++"}
|
---|
11152 | compiler=$CC
|
---|
11153 | compiler_CXX=$CC
|
---|
11154 | for cc_temp in $compiler""; do
|
---|
11155 | case $cc_temp in
|
---|
11156 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
11157 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
11158 | \-*) ;;
|
---|
11159 | *) break;;
|
---|
11160 | esac
|
---|
11161 | done
|
---|
11162 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
11163 |
|
---|
11164 |
|
---|
11165 | # We don't want -fno-exception wen compiling C++ code, so set the
|
---|
11166 | # no_builtin_flag separately
|
---|
11167 | if test "$GXX" = yes; then
|
---|
11168 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
|
---|
11169 | else
|
---|
11170 | lt_prog_compiler_no_builtin_flag_CXX=
|
---|
11171 | fi
|
---|
11172 |
|
---|
11173 | if test "$GXX" = yes; then
|
---|
11174 | # Set up default GNU C++ configuration
|
---|
11175 |
|
---|
11176 |
|
---|
11177 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
11178 | if test "${with_gnu_ld+set}" = set; then
|
---|
11179 | withval="$with_gnu_ld"
|
---|
11180 | test "$withval" = no || with_gnu_ld=yes
|
---|
11181 | else
|
---|
11182 | with_gnu_ld=no
|
---|
11183 | fi;
|
---|
11184 | ac_prog=ld
|
---|
11185 | if test "$GCC" = yes; then
|
---|
11186 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
11187 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
---|
11188 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
|
---|
11189 | case $host in
|
---|
11190 | *-*-mingw*)
|
---|
11191 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
11192 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
11193 | *)
|
---|
11194 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
11195 | esac
|
---|
11196 | case $ac_prog in
|
---|
11197 | # Accept absolute paths.
|
---|
11198 | [\\/]* | ?:[\\/]*)
|
---|
11199 | re_direlt='/[^/][^/]*/\.\./'
|
---|
11200 | # Canonicalize the pathname of ld
|
---|
11201 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
---|
11202 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
11203 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
11204 | done
|
---|
11205 | test -z "$LD" && LD="$ac_prog"
|
---|
11206 | ;;
|
---|
11207 | "")
|
---|
11208 | # If it fails, then pretend we aren't using GCC.
|
---|
11209 | ac_prog=ld
|
---|
11210 | ;;
|
---|
11211 | *)
|
---|
11212 | # If it is relative, then search for the first ld in PATH.
|
---|
11213 | with_gnu_ld=unknown
|
---|
11214 | ;;
|
---|
11215 | esac
|
---|
11216 | elif test "$with_gnu_ld" = yes; then
|
---|
11217 | echo "$as_me:$LINENO: checking for GNU ld" >&5
|
---|
11218 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
---|
11219 | else
|
---|
11220 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
---|
11221 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
---|
11222 | fi
|
---|
11223 | if test "${lt_cv_path_LD+set}" = set; then
|
---|
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11225 | else
|
---|
11226 | if test -z "$LD"; then
|
---|
11227 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
---|
11228 | for ac_dir in $PATH; do
|
---|
11229 | IFS="$lt_save_ifs"
|
---|
11230 | test -z "$ac_dir" && ac_dir=.
|
---|
11231 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
11232 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
11233 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
11234 | # but apparently some variants of GNU ld only accept -v.
|
---|
11235 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
11236 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
11237 | *GNU* | *'with BFD'*)
|
---|
11238 | test "$with_gnu_ld" != no && break
|
---|
11239 | ;;
|
---|
11240 | *)
|
---|
11241 | test "$with_gnu_ld" != yes && break
|
---|
11242 | ;;
|
---|
11243 | esac
|
---|
11244 | fi
|
---|
11245 | done
|
---|
11246 | IFS="$lt_save_ifs"
|
---|
11247 | else
|
---|
11248 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
11249 | fi
|
---|
11250 | fi
|
---|
11251 |
|
---|
11252 | LD="$lt_cv_path_LD"
|
---|
11253 | if test -n "$LD"; then
|
---|
11254 | echo "$as_me:$LINENO: result: $LD" >&5
|
---|
11255 | echo "${ECHO_T}$LD" >&6
|
---|
11256 | else
|
---|
11257 | echo "$as_me:$LINENO: result: no" >&5
|
---|
11258 | echo "${ECHO_T}no" >&6
|
---|
11259 | fi
|
---|
11260 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
---|
11261 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
---|
11262 | { (exit 1); exit 1; }; }
|
---|
11263 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
---|
11264 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
---|
11265 | if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
---|
11266 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11267 | else
|
---|
11268 | # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
11269 | case `$LD -v 2>&1 </dev/null` in
|
---|
11270 | *GNU* | *'with BFD'*)
|
---|
11271 | lt_cv_prog_gnu_ld=yes
|
---|
11272 | ;;
|
---|
11273 | *)
|
---|
11274 | lt_cv_prog_gnu_ld=no
|
---|
11275 | ;;
|
---|
11276 | esac
|
---|
11277 | fi
|
---|
11278 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
---|
11279 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
|
---|
11280 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
11281 |
|
---|
11282 |
|
---|
11283 |
|
---|
11284 | # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
---|
11285 | # archiving commands below assume that GNU ld is being used.
|
---|
11286 | if test "$with_gnu_ld" = yes; then
|
---|
11287 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
11288 | 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'
|
---|
11289 |
|
---|
11290 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
---|
11291 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
---|
11292 |
|
---|
11293 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
11294 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
---|
11295 | # investigate it a little bit more. (MM)
|
---|
11296 | wlarc='${wl}'
|
---|
11297 |
|
---|
11298 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
11299 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
---|
11300 | grep 'no-whole-archive' > /dev/null; then
|
---|
11301 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
---|
11302 | else
|
---|
11303 | whole_archive_flag_spec_CXX=
|
---|
11304 | fi
|
---|
11305 | else
|
---|
11306 | with_gnu_ld=no
|
---|
11307 | wlarc=
|
---|
11308 |
|
---|
11309 | # A generic and very simple default shared library creation
|
---|
11310 | # command for GNU C++ for the case where it uses the native
|
---|
11311 | # linker, instead of GNU ld. If possible, this setting should
|
---|
11312 | # overridden to take advantage of the native linker features on
|
---|
11313 | # the platform it is being used on.
|
---|
11314 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
---|
11315 | fi
|
---|
11316 |
|
---|
11317 | # Commands to make compiler produce verbose output that lists
|
---|
11318 | # what "hidden" libraries, object files and flags are used when
|
---|
11319 | # linking a shared library.
|
---|
11320 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
---|
11321 |
|
---|
11322 | else
|
---|
11323 | GXX=no
|
---|
11324 | with_gnu_ld=no
|
---|
11325 | wlarc=
|
---|
11326 | fi
|
---|
11327 |
|
---|
11328 | # PORTME: fill in a description of your system's C++ link characteristics
|
---|
11329 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
11330 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
---|
11331 | ld_shlibs_CXX=yes
|
---|
11332 | case $host_os in
|
---|
11333 | aix3*)
|
---|
11334 | # FIXME: insert proper C++ library support
|
---|
11335 | ld_shlibs_CXX=no
|
---|
11336 | ;;
|
---|
11337 | aix4* | aix5*)
|
---|
11338 | if test "$host_cpu" = ia64; then
|
---|
11339 | # On IA64, the linker does run time linking by default, so we don't
|
---|
11340 | # have to do anything special.
|
---|
11341 | aix_use_runtimelinking=no
|
---|
11342 | exp_sym_flag='-Bexport'
|
---|
11343 | no_entry_flag=""
|
---|
11344 | else
|
---|
11345 | aix_use_runtimelinking=no
|
---|
11346 |
|
---|
11347 | # Test if we are trying to use run time linking or normal
|
---|
11348 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
11349 | # need to do runtime linking.
|
---|
11350 | case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
---|
11351 | for ld_flag in $LDFLAGS; do
|
---|
11352 | case $ld_flag in
|
---|
11353 | *-brtl*)
|
---|
11354 | aix_use_runtimelinking=yes
|
---|
11355 | break
|
---|
11356 | ;;
|
---|
11357 | esac
|
---|
11358 | done
|
---|
11359 | ;;
|
---|
11360 | esac
|
---|
11361 |
|
---|
11362 | exp_sym_flag='-bexport'
|
---|
11363 | no_entry_flag='-bnoentry'
|
---|
11364 | fi
|
---|
11365 |
|
---|
11366 | # When large executables or shared objects are built, AIX ld can
|
---|
11367 | # have problems creating the table of contents. If linking a library
|
---|
11368 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
11369 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
11370 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
11371 |
|
---|
11372 | archive_cmds_CXX=''
|
---|
11373 | hardcode_direct_CXX=yes
|
---|
11374 | hardcode_libdir_separator_CXX=':'
|
---|
11375 | link_all_deplibs_CXX=yes
|
---|
11376 |
|
---|
11377 | if test "$GXX" = yes; then
|
---|
11378 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
11379 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
11380 | # below for broken collect2 doesn't work under 4.3+
|
---|
11381 | collect2name=`${CC} -print-prog-name=collect2`
|
---|
11382 | if test -f "$collect2name" && \
|
---|
11383 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
---|
11384 | then
|
---|
11385 | # We have reworked collect2
|
---|
11386 | hardcode_direct_CXX=yes
|
---|
11387 | else
|
---|
11388 | # We have old collect2
|
---|
11389 | hardcode_direct_CXX=unsupported
|
---|
11390 | # It fails to find uninstalled libraries when the uninstalled
|
---|
11391 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
11392 | # to unsupported forces relinking
|
---|
11393 | hardcode_minus_L_CXX=yes
|
---|
11394 | hardcode_libdir_flag_spec_CXX='-L$libdir'
|
---|
11395 | hardcode_libdir_separator_CXX=
|
---|
11396 | fi
|
---|
11397 | ;;
|
---|
11398 | esac
|
---|
11399 | shared_flag='-shared'
|
---|
11400 | if test "$aix_use_runtimelinking" = yes; then
|
---|
11401 | shared_flag="$shared_flag "'${wl}-G'
|
---|
11402 | fi
|
---|
11403 | else
|
---|
11404 | # not using gcc
|
---|
11405 | if test "$host_cpu" = ia64; then
|
---|
11406 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
11407 | # chokes on -Wl,-G. The following line is correct:
|
---|
11408 | shared_flag='-G'
|
---|
11409 | else
|
---|
11410 | if test "$aix_use_runtimelinking" = yes; then
|
---|
11411 | shared_flag='${wl}-G'
|
---|
11412 | else
|
---|
11413 | shared_flag='${wl}-bM:SRE'
|
---|
11414 | fi
|
---|
11415 | fi
|
---|
11416 | fi
|
---|
11417 |
|
---|
11418 | # It seems that -bexpall does not export symbols beginning with
|
---|
11419 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
11420 | always_export_symbols_CXX=yes
|
---|
11421 | if test "$aix_use_runtimelinking" = yes; then
|
---|
11422 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
11423 | # -berok will link without error, but may produce a broken library.
|
---|
11424 | allow_undefined_flag_CXX='-berok'
|
---|
11425 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
11426 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11427 | /* confdefs.h. */
|
---|
11428 | _ACEOF
|
---|
11429 | cat confdefs.h >>conftest.$ac_ext
|
---|
11430 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11431 | /* end confdefs.h. */
|
---|
11432 |
|
---|
11433 | int
|
---|
11434 | main ()
|
---|
11435 | {
|
---|
11436 |
|
---|
11437 | ;
|
---|
11438 | return 0;
|
---|
11439 | }
|
---|
11440 | _ACEOF
|
---|
11441 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
11442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
11443 | (eval $ac_link) 2>conftest.er1
|
---|
11444 | ac_status=$?
|
---|
11445 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11446 | rm -f conftest.er1
|
---|
11447 | cat conftest.err >&5
|
---|
11448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11449 | (exit $ac_status); } &&
|
---|
11450 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
11451 | || test ! -s conftest.err'
|
---|
11452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11453 | (eval $ac_try) 2>&5
|
---|
11454 | ac_status=$?
|
---|
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11456 | (exit $ac_status); }; } &&
|
---|
11457 | { ac_try='test -s conftest$ac_exeext'
|
---|
11458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11459 | (eval $ac_try) 2>&5
|
---|
11460 | ac_status=$?
|
---|
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11462 | (exit $ac_status); }; }; then
|
---|
11463 |
|
---|
11464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
11465 | }'`
|
---|
11466 | # Check for a 64-bit object if we didn't find anything.
|
---|
11467 | 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; }
|
---|
11468 | }'`; fi
|
---|
11469 | else
|
---|
11470 | echo "$as_me: failed program was:" >&5
|
---|
11471 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11472 |
|
---|
11473 | fi
|
---|
11474 | rm -f conftest.err conftest.$ac_objext \
|
---|
11475 | conftest$ac_exeext conftest.$ac_ext
|
---|
11476 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
11477 |
|
---|
11478 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
11479 |
|
---|
11480 | 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"
|
---|
11481 | else
|
---|
11482 | if test "$host_cpu" = ia64; then
|
---|
11483 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
---|
11484 | allow_undefined_flag_CXX="-z nodefs"
|
---|
11485 | 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"
|
---|
11486 | else
|
---|
11487 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
11488 | cat >conftest.$ac_ext <<_ACEOF
|
---|
11489 | /* confdefs.h. */
|
---|
11490 | _ACEOF
|
---|
11491 | cat confdefs.h >>conftest.$ac_ext
|
---|
11492 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
11493 | /* end confdefs.h. */
|
---|
11494 |
|
---|
11495 | int
|
---|
11496 | main ()
|
---|
11497 | {
|
---|
11498 |
|
---|
11499 | ;
|
---|
11500 | return 0;
|
---|
11501 | }
|
---|
11502 | _ACEOF
|
---|
11503 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
11504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
11505 | (eval $ac_link) 2>conftest.er1
|
---|
11506 | ac_status=$?
|
---|
11507 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
11508 | rm -f conftest.er1
|
---|
11509 | cat conftest.err >&5
|
---|
11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11511 | (exit $ac_status); } &&
|
---|
11512 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
11513 | || test ! -s conftest.err'
|
---|
11514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11515 | (eval $ac_try) 2>&5
|
---|
11516 | ac_status=$?
|
---|
11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11518 | (exit $ac_status); }; } &&
|
---|
11519 | { ac_try='test -s conftest$ac_exeext'
|
---|
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
11521 | (eval $ac_try) 2>&5
|
---|
11522 | ac_status=$?
|
---|
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11524 | (exit $ac_status); }; }; then
|
---|
11525 |
|
---|
11526 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
11527 | }'`
|
---|
11528 | # Check for a 64-bit object if we didn't find anything.
|
---|
11529 | 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; }
|
---|
11530 | }'`; fi
|
---|
11531 | else
|
---|
11532 | echo "$as_me: failed program was:" >&5
|
---|
11533 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
11534 |
|
---|
11535 | fi
|
---|
11536 | rm -f conftest.err conftest.$ac_objext \
|
---|
11537 | conftest$ac_exeext conftest.$ac_ext
|
---|
11538 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
11539 |
|
---|
11540 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
11541 | # Warning - without using the other run time loading flags,
|
---|
11542 | # -berok will link without error, but may produce a broken library.
|
---|
11543 | no_undefined_flag_CXX=' ${wl}-bernotok'
|
---|
11544 | allow_undefined_flag_CXX=' ${wl}-berok'
|
---|
11545 | # Exported symbols can be pulled into shared objects from archives
|
---|
11546 | whole_archive_flag_spec_CXX='$convenience'
|
---|
11547 | archive_cmds_need_lc_CXX=yes
|
---|
11548 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
11549 | 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'
|
---|
11550 | fi
|
---|
11551 | fi
|
---|
11552 | ;;
|
---|
11553 |
|
---|
11554 | beos*)
|
---|
11555 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
11556 | allow_undefined_flag_CXX=unsupported
|
---|
11557 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
11558 | # support --undefined. This deserves some investigation. FIXME
|
---|
11559 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
11560 | else
|
---|
11561 | ld_shlibs_CXX=no
|
---|
11562 | fi
|
---|
11563 | ;;
|
---|
11564 |
|
---|
11565 | chorus*)
|
---|
11566 | case $cc_basename in
|
---|
11567 | *)
|
---|
11568 | # FIXME: insert proper C++ library support
|
---|
11569 | ld_shlibs_CXX=no
|
---|
11570 | ;;
|
---|
11571 | esac
|
---|
11572 | ;;
|
---|
11573 |
|
---|
11574 | cygwin* | mingw* | pw32*)
|
---|
11575 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
---|
11576 | # as there is no search path for DLLs.
|
---|
11577 | hardcode_libdir_flag_spec_CXX='-L$libdir'
|
---|
11578 | allow_undefined_flag_CXX=unsupported
|
---|
11579 | always_export_symbols_CXX=no
|
---|
11580 | enable_shared_with_static_runtimes_CXX=yes
|
---|
11581 |
|
---|
11582 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
---|
11583 | 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'
|
---|
11584 | # If the export-symbols file already is a .def file (1st line
|
---|
11585 | # is EXPORTS), use it as is; otherwise, prepend...
|
---|
11586 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
---|
11587 | cp $export_symbols $output_objdir/$soname.def;
|
---|
11588 | else
|
---|
11589 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
11590 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
11591 | fi~
|
---|
11592 | $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'
|
---|
11593 | else
|
---|
11594 | ld_shlibs_CXX=no
|
---|
11595 | fi
|
---|
11596 | ;;
|
---|
11597 | darwin* | rhapsody*)
|
---|
11598 | case $host_os in
|
---|
11599 | rhapsody* | darwin1.[012])
|
---|
11600 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
---|
11601 | ;;
|
---|
11602 | *) # Darwin 1.3 on
|
---|
11603 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
---|
11604 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
11605 | else
|
---|
11606 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
---|
11607 | 10.[012])
|
---|
11608 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
11609 | ;;
|
---|
11610 | 10.*)
|
---|
11611 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
---|
11612 | ;;
|
---|
11613 | esac
|
---|
11614 | fi
|
---|
11615 | ;;
|
---|
11616 | esac
|
---|
11617 | archive_cmds_need_lc_CXX=no
|
---|
11618 | hardcode_direct_CXX=no
|
---|
11619 | hardcode_automatic_CXX=yes
|
---|
11620 | hardcode_shlibpath_var_CXX=unsupported
|
---|
11621 | whole_archive_flag_spec_CXX=''
|
---|
11622 | link_all_deplibs_CXX=yes
|
---|
11623 |
|
---|
11624 | if test "$GXX" = yes ; then
|
---|
11625 | lt_int_apple_cc_single_mod=no
|
---|
11626 | output_verbose_link_cmd='echo'
|
---|
11627 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
---|
11628 | lt_int_apple_cc_single_mod=yes
|
---|
11629 | fi
|
---|
11630 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
---|
11631 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
---|
11632 | else
|
---|
11633 | 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'
|
---|
11634 | fi
|
---|
11635 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
11636 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
11637 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
---|
11638 | 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}'
|
---|
11639 | else
|
---|
11640 | 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}'
|
---|
11641 | fi
|
---|
11642 | 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}'
|
---|
11643 | else
|
---|
11644 | case $cc_basename in
|
---|
11645 | xlc*)
|
---|
11646 | output_verbose_link_cmd='echo'
|
---|
11647 | 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'
|
---|
11648 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
11649 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
11650 | 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}'
|
---|
11651 | 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}'
|
---|
11652 | ;;
|
---|
11653 | *)
|
---|
11654 | ld_shlibs_CXX=no
|
---|
11655 | ;;
|
---|
11656 | esac
|
---|
11657 | fi
|
---|
11658 | ;;
|
---|
11659 |
|
---|
11660 | dgux*)
|
---|
11661 | case $cc_basename in
|
---|
11662 | ec++*)
|
---|
11663 | # FIXME: insert proper C++ library support
|
---|
11664 | ld_shlibs_CXX=no
|
---|
11665 | ;;
|
---|
11666 | ghcx*)
|
---|
11667 | # Green Hills C++ Compiler
|
---|
11668 | # FIXME: insert proper C++ library support
|
---|
11669 | ld_shlibs_CXX=no
|
---|
11670 | ;;
|
---|
11671 | *)
|
---|
11672 | # FIXME: insert proper C++ library support
|
---|
11673 | ld_shlibs_CXX=no
|
---|
11674 | ;;
|
---|
11675 | esac
|
---|
11676 | ;;
|
---|
11677 | freebsd[12]*)
|
---|
11678 | # C++ shared libraries reported to be fairly broken before switch to ELF
|
---|
11679 | ld_shlibs_CXX=no
|
---|
11680 | ;;
|
---|
11681 | freebsd-elf*)
|
---|
11682 | archive_cmds_need_lc_CXX=no
|
---|
11683 | ;;
|
---|
11684 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
11685 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
---|
11686 | # conventions
|
---|
11687 | ld_shlibs_CXX=yes
|
---|
11688 | ;;
|
---|
11689 | gnu*)
|
---|
11690 | ;;
|
---|
11691 | hpux9*)
|
---|
11692 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
---|
11693 | hardcode_libdir_separator_CXX=:
|
---|
11694 | export_dynamic_flag_spec_CXX='${wl}-E'
|
---|
11695 | hardcode_direct_CXX=yes
|
---|
11696 | hardcode_minus_L_CXX=yes # Not in the search PATH,
|
---|
11697 | # but as the default
|
---|
11698 | # location of the library.
|
---|
11699 |
|
---|
11700 | case $cc_basename in
|
---|
11701 | CC*)
|
---|
11702 | # FIXME: insert proper C++ library support
|
---|
11703 | ld_shlibs_CXX=no
|
---|
11704 | ;;
|
---|
11705 | aCC*)
|
---|
11706 | 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'
|
---|
11707 | # Commands to make compiler produce verbose output that lists
|
---|
11708 | # what "hidden" libraries, object files and flags are used when
|
---|
11709 | # linking a shared library.
|
---|
11710 | #
|
---|
11711 | # There doesn't appear to be a way to prevent this compiler from
|
---|
11712 | # explicitly linking system object files so we need to strip them
|
---|
11713 | # from the output so that they don't get included in the library
|
---|
11714 | # dependencies.
|
---|
11715 | 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'
|
---|
11716 | ;;
|
---|
11717 | *)
|
---|
11718 | if test "$GXX" = yes; then
|
---|
11719 | 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'
|
---|
11720 | else
|
---|
11721 | # FIXME: insert proper C++ library support
|
---|
11722 | ld_shlibs_CXX=no
|
---|
11723 | fi
|
---|
11724 | ;;
|
---|
11725 | esac
|
---|
11726 | ;;
|
---|
11727 | hpux10*|hpux11*)
|
---|
11728 | if test $with_gnu_ld = no; then
|
---|
11729 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
---|
11730 | hardcode_libdir_separator_CXX=:
|
---|
11731 |
|
---|
11732 | case $host_cpu in
|
---|
11733 | hppa*64*|ia64*)
|
---|
11734 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
|
---|
11735 | ;;
|
---|
11736 | *)
|
---|
11737 | export_dynamic_flag_spec_CXX='${wl}-E'
|
---|
11738 | ;;
|
---|
11739 | esac
|
---|
11740 | fi
|
---|
11741 | case $host_cpu in
|
---|
11742 | hppa*64*|ia64*)
|
---|
11743 | hardcode_direct_CXX=no
|
---|
11744 | hardcode_shlibpath_var_CXX=no
|
---|
11745 | ;;
|
---|
11746 | *)
|
---|
11747 | hardcode_direct_CXX=yes
|
---|
11748 | hardcode_minus_L_CXX=yes # Not in the search PATH,
|
---|
11749 | # but as the default
|
---|
11750 | # location of the library.
|
---|
11751 | ;;
|
---|
11752 | esac
|
---|
11753 |
|
---|
11754 | case $cc_basename in
|
---|
11755 | CC*)
|
---|
11756 | # FIXME: insert proper C++ library support
|
---|
11757 | ld_shlibs_CXX=no
|
---|
11758 | ;;
|
---|
11759 | aCC*)
|
---|
11760 | case $host_cpu in
|
---|
11761 | hppa*64*)
|
---|
11762 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
11763 | ;;
|
---|
11764 | ia64*)
|
---|
11765 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
11766 | ;;
|
---|
11767 | *)
|
---|
11768 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
11769 | ;;
|
---|
11770 | esac
|
---|
11771 | # Commands to make compiler produce verbose output that lists
|
---|
11772 | # what "hidden" libraries, object files and flags are used when
|
---|
11773 | # linking a shared library.
|
---|
11774 | #
|
---|
11775 | # There doesn't appear to be a way to prevent this compiler from
|
---|
11776 | # explicitly linking system object files so we need to strip them
|
---|
11777 | # from the output so that they don't get included in the library
|
---|
11778 | # dependencies.
|
---|
11779 | 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'
|
---|
11780 | ;;
|
---|
11781 | *)
|
---|
11782 | if test "$GXX" = yes; then
|
---|
11783 | if test $with_gnu_ld = no; then
|
---|
11784 | case $host_cpu in
|
---|
11785 | hppa*64*)
|
---|
11786 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
11787 | ;;
|
---|
11788 | ia64*)
|
---|
11789 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
11790 | ;;
|
---|
11791 | *)
|
---|
11792 | 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'
|
---|
11793 | ;;
|
---|
11794 | esac
|
---|
11795 | fi
|
---|
11796 | else
|
---|
11797 | # FIXME: insert proper C++ library support
|
---|
11798 | ld_shlibs_CXX=no
|
---|
11799 | fi
|
---|
11800 | ;;
|
---|
11801 | esac
|
---|
11802 | ;;
|
---|
11803 | interix3*)
|
---|
11804 | hardcode_direct_CXX=no
|
---|
11805 | hardcode_shlibpath_var_CXX=no
|
---|
11806 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
---|
11807 | export_dynamic_flag_spec_CXX='${wl}-E'
|
---|
11808 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
11809 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
11810 | # default) and relocated if they conflict, which is a slow very memory
|
---|
11811 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
11812 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
11813 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
11814 | 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'
|
---|
11815 | 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'
|
---|
11816 | ;;
|
---|
11817 | irix5* | irix6*)
|
---|
11818 | case $cc_basename in
|
---|
11819 | CC*)
|
---|
11820 | # SGI C++
|
---|
11821 | 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'
|
---|
11822 |
|
---|
11823 | # Archives containing C++ object files must be created using
|
---|
11824 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
---|
11825 | # necessary to make sure instantiated templates are included
|
---|
11826 | # in the archive.
|
---|
11827 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
---|
11828 | ;;
|
---|
11829 | *)
|
---|
11830 | if test "$GXX" = yes; then
|
---|
11831 | if test "$with_gnu_ld" = no; then
|
---|
11832 | 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'
|
---|
11833 | else
|
---|
11834 | 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'
|
---|
11835 | fi
|
---|
11836 | fi
|
---|
11837 | link_all_deplibs_CXX=yes
|
---|
11838 | ;;
|
---|
11839 | esac
|
---|
11840 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
---|
11841 | hardcode_libdir_separator_CXX=:
|
---|
11842 | ;;
|
---|
11843 | linux*)
|
---|
11844 | case $cc_basename in
|
---|
11845 | KCC*)
|
---|
11846 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
---|
11847 |
|
---|
11848 | # KCC will only create a shared library if the output file
|
---|
11849 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
---|
11850 | # to its proper name (with version) after linking.
|
---|
11851 | 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'
|
---|
11852 | 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'
|
---|
11853 | # Commands to make compiler produce verbose output that lists
|
---|
11854 | # what "hidden" libraries, object files and flags are used when
|
---|
11855 | # linking a shared library.
|
---|
11856 | #
|
---|
11857 | # There doesn't appear to be a way to prevent this compiler from
|
---|
11858 | # explicitly linking system object files so we need to strip them
|
---|
11859 | # from the output so that they don't get included in the library
|
---|
11860 | # dependencies.
|
---|
11861 | 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'
|
---|
11862 |
|
---|
11863 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
|
---|
11864 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
---|
11865 |
|
---|
11866 | # Archives containing C++ object files must be created using
|
---|
11867 | # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
---|
11868 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
---|
11869 | ;;
|
---|
11870 | icpc*)
|
---|
11871 | # Intel C++
|
---|
11872 | with_gnu_ld=yes
|
---|
11873 | # version 8.0 and above of icpc choke on multiply defined symbols
|
---|
11874 | # if we add $predep_objects and $postdep_objects, however 7.1 and
|
---|
11875 | # earlier do not add the objects themselves.
|
---|
11876 | case `$CC -V 2>&1` in
|
---|
11877 | *"Version 7."*)
|
---|
11878 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
11879 | 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'
|
---|
11880 | ;;
|
---|
11881 | *) # Version 8.0 or newer
|
---|
11882 | tmp_idyn=
|
---|
11883 | case $host_cpu in
|
---|
11884 | ia64*) tmp_idyn=' -i_dynamic';;
|
---|
11885 | esac
|
---|
11886 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
11887 | 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'
|
---|
11888 | ;;
|
---|
11889 | esac
|
---|
11890 | archive_cmds_need_lc_CXX=no
|
---|
11891 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
---|
11892 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
---|
11893 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
---|
11894 | ;;
|
---|
11895 | pgCC*)
|
---|
11896 | # Portland Group C++ compiler
|
---|
11897 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
---|
11898 | 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'
|
---|
11899 |
|
---|
11900 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
---|
11901 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
---|
11902 | 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'
|
---|
11903 | ;;
|
---|
11904 | cxx*)
|
---|
11905 | # Compaq C++
|
---|
11906 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
11907 | 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'
|
---|
11908 |
|
---|
11909 | runpath_var=LD_RUN_PATH
|
---|
11910 | hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
---|
11911 | hardcode_libdir_separator_CXX=:
|
---|
11912 |
|
---|
11913 | # Commands to make compiler produce verbose output that lists
|
---|
11914 | # what "hidden" libraries, object files and flags are used when
|
---|
11915 | # linking a shared library.
|
---|
11916 | #
|
---|
11917 | # There doesn't appear to be a way to prevent this compiler from
|
---|
11918 | # explicitly linking system object files so we need to strip them
|
---|
11919 | # from the output so that they don't get included in the library
|
---|
11920 | # dependencies.
|
---|
11921 | 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'
|
---|
11922 | ;;
|
---|
11923 | esac
|
---|
11924 | ;;
|
---|
11925 | lynxos*)
|
---|
11926 | # FIXME: insert proper C++ library support
|
---|
11927 | ld_shlibs_CXX=no
|
---|
11928 | ;;
|
---|
11929 | m88k*)
|
---|
11930 | # FIXME: insert proper C++ library support
|
---|
11931 | ld_shlibs_CXX=no
|
---|
11932 | ;;
|
---|
11933 | mvs*)
|
---|
11934 | case $cc_basename in
|
---|
11935 | cxx*)
|
---|
11936 | # FIXME: insert proper C++ library support
|
---|
11937 | ld_shlibs_CXX=no
|
---|
11938 | ;;
|
---|
11939 | *)
|
---|
11940 | # FIXME: insert proper C++ library support
|
---|
11941 | ld_shlibs_CXX=no
|
---|
11942 | ;;
|
---|
11943 | esac
|
---|
11944 | ;;
|
---|
11945 | netbsd*)
|
---|
11946 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
11947 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
---|
11948 | wlarc=
|
---|
11949 | hardcode_libdir_flag_spec_CXX='-R$libdir'
|
---|
11950 | hardcode_direct_CXX=yes
|
---|
11951 | hardcode_shlibpath_var_CXX=no
|
---|
11952 | fi
|
---|
11953 | # Workaround some broken pre-1.5 toolchains
|
---|
11954 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
---|
11955 | ;;
|
---|
11956 | openbsd2*)
|
---|
11957 | # C++ shared libraries are fairly broken
|
---|
11958 | ld_shlibs_CXX=no
|
---|
11959 | ;;
|
---|
11960 | openbsd*)
|
---|
11961 | hardcode_direct_CXX=yes
|
---|
11962 | hardcode_shlibpath_var_CXX=no
|
---|
11963 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
---|
11964 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
---|
11965 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
11966 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
---|
11967 | export_dynamic_flag_spec_CXX='${wl}-E'
|
---|
11968 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
---|
11969 | fi
|
---|
11970 | output_verbose_link_cmd='echo'
|
---|
11971 | ;;
|
---|
11972 | osf3*)
|
---|
11973 | case $cc_basename in
|
---|
11974 | KCC*)
|
---|
11975 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
---|
11976 |
|
---|
11977 | # KCC will only create a shared library if the output file
|
---|
11978 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
---|
11979 | # to its proper name (with version) after linking.
|
---|
11980 | 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'
|
---|
11981 |
|
---|
11982 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
---|
11983 | hardcode_libdir_separator_CXX=:
|
---|
11984 |
|
---|
11985 | # Archives containing C++ object files must be created using
|
---|
11986 | # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
---|
11987 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
---|
11988 |
|
---|
11989 | ;;
|
---|
11990 | RCC*)
|
---|
11991 | # Rational C++ 2.4.1
|
---|
11992 | # FIXME: insert proper C++ library support
|
---|
11993 | ld_shlibs_CXX=no
|
---|
11994 | ;;
|
---|
11995 | cxx*)
|
---|
11996 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
---|
11997 | 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'
|
---|
11998 |
|
---|
11999 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
---|
12000 | hardcode_libdir_separator_CXX=:
|
---|
12001 |
|
---|
12002 | # Commands to make compiler produce verbose output that lists
|
---|
12003 | # what "hidden" libraries, object files and flags are used when
|
---|
12004 | # linking a shared library.
|
---|
12005 | #
|
---|
12006 | # There doesn't appear to be a way to prevent this compiler from
|
---|
12007 | # explicitly linking system object files so we need to strip them
|
---|
12008 | # from the output so that they don't get included in the library
|
---|
12009 | # dependencies.
|
---|
12010 | 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'
|
---|
12011 | ;;
|
---|
12012 | *)
|
---|
12013 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
---|
12014 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
---|
12015 | 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'
|
---|
12016 |
|
---|
12017 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
---|
12018 | hardcode_libdir_separator_CXX=:
|
---|
12019 |
|
---|
12020 | # Commands to make compiler produce verbose output that lists
|
---|
12021 | # what "hidden" libraries, object files and flags are used when
|
---|
12022 | # linking a shared library.
|
---|
12023 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
---|
12024 |
|
---|
12025 | else
|
---|
12026 | # FIXME: insert proper C++ library support
|
---|
12027 | ld_shlibs_CXX=no
|
---|
12028 | fi
|
---|
12029 | ;;
|
---|
12030 | esac
|
---|
12031 | ;;
|
---|
12032 | osf4* | osf5*)
|
---|
12033 | case $cc_basename in
|
---|
12034 | KCC*)
|
---|
12035 | # Kuck and Associates, Inc. (KAI) C++ Compiler
|
---|
12036 |
|
---|
12037 | # KCC will only create a shared library if the output file
|
---|
12038 | # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
---|
12039 | # to its proper name (with version) after linking.
|
---|
12040 | 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'
|
---|
12041 |
|
---|
12042 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
---|
12043 | hardcode_libdir_separator_CXX=:
|
---|
12044 |
|
---|
12045 | # Archives containing C++ object files must be created using
|
---|
12046 | # the KAI C++ compiler.
|
---|
12047 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
|
---|
12048 | ;;
|
---|
12049 | RCC*)
|
---|
12050 | # Rational C++ 2.4.1
|
---|
12051 | # FIXME: insert proper C++ library support
|
---|
12052 | ld_shlibs_CXX=no
|
---|
12053 | ;;
|
---|
12054 | cxx*)
|
---|
12055 | allow_undefined_flag_CXX=' -expect_unresolved \*'
|
---|
12056 | 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'
|
---|
12057 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
---|
12058 | echo "-hidden">> $lib.exp~
|
---|
12059 | $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~
|
---|
12060 | $rm $lib.exp'
|
---|
12061 |
|
---|
12062 | hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
---|
12063 | hardcode_libdir_separator_CXX=:
|
---|
12064 |
|
---|
12065 | # Commands to make compiler produce verbose output that lists
|
---|
12066 | # what "hidden" libraries, object files and flags are used when
|
---|
12067 | # linking a shared library.
|
---|
12068 | #
|
---|
12069 | # There doesn't appear to be a way to prevent this compiler from
|
---|
12070 | # explicitly linking system object files so we need to strip them
|
---|
12071 | # from the output so that they don't get included in the library
|
---|
12072 | # dependencies.
|
---|
12073 | 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'
|
---|
12074 | ;;
|
---|
12075 | *)
|
---|
12076 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
---|
12077 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
---|
12078 | 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'
|
---|
12079 |
|
---|
12080 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
---|
12081 | hardcode_libdir_separator_CXX=:
|
---|
12082 |
|
---|
12083 | # Commands to make compiler produce verbose output that lists
|
---|
12084 | # what "hidden" libraries, object files and flags are used when
|
---|
12085 | # linking a shared library.
|
---|
12086 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
---|
12087 |
|
---|
12088 | else
|
---|
12089 | # FIXME: insert proper C++ library support
|
---|
12090 | ld_shlibs_CXX=no
|
---|
12091 | fi
|
---|
12092 | ;;
|
---|
12093 | esac
|
---|
12094 | ;;
|
---|
12095 | psos*)
|
---|
12096 | # FIXME: insert proper C++ library support
|
---|
12097 | ld_shlibs_CXX=no
|
---|
12098 | ;;
|
---|
12099 | sunos4*)
|
---|
12100 | case $cc_basename in
|
---|
12101 | CC*)
|
---|
12102 | # Sun C++ 4.x
|
---|
12103 | # FIXME: insert proper C++ library support
|
---|
12104 | ld_shlibs_CXX=no
|
---|
12105 | ;;
|
---|
12106 | lcc*)
|
---|
12107 | # Lucid
|
---|
12108 | # FIXME: insert proper C++ library support
|
---|
12109 | ld_shlibs_CXX=no
|
---|
12110 | ;;
|
---|
12111 | *)
|
---|
12112 | # FIXME: insert proper C++ library support
|
---|
12113 | ld_shlibs_CXX=no
|
---|
12114 | ;;
|
---|
12115 | esac
|
---|
12116 | ;;
|
---|
12117 | solaris*)
|
---|
12118 | case $cc_basename in
|
---|
12119 | CC*)
|
---|
12120 | # Sun C++ 4.2, 5.x and Centerline C++
|
---|
12121 | archive_cmds_need_lc_CXX=yes
|
---|
12122 | no_undefined_flag_CXX=' -zdefs'
|
---|
12123 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
---|
12124 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
12125 | $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'
|
---|
12126 |
|
---|
12127 | hardcode_libdir_flag_spec_CXX='-R$libdir'
|
---|
12128 | hardcode_shlibpath_var_CXX=no
|
---|
12129 | case $host_os in
|
---|
12130 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
12131 | *)
|
---|
12132 | # The C++ compiler is used as linker so we must use $wl
|
---|
12133 | # flag to pass the commands to the underlying system
|
---|
12134 | # linker. We must also pass each convience library through
|
---|
12135 | # to the system linker between allextract/defaultextract.
|
---|
12136 | # The C++ compiler will combine linker options so we
|
---|
12137 | # cannot just pass the convience library names through
|
---|
12138 | # without $wl.
|
---|
12139 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
12140 | 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'
|
---|
12141 | ;;
|
---|
12142 | esac
|
---|
12143 | link_all_deplibs_CXX=yes
|
---|
12144 |
|
---|
12145 | output_verbose_link_cmd='echo'
|
---|
12146 |
|
---|
12147 | # Archives containing C++ object files must be created using
|
---|
12148 | # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
---|
12149 | # necessary to make sure instantiated templates are included
|
---|
12150 | # in the archive.
|
---|
12151 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
---|
12152 | ;;
|
---|
12153 | gcx*)
|
---|
12154 | # Green Hills C++ Compiler
|
---|
12155 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
---|
12156 |
|
---|
12157 | # The C++ compiler must be used to create the archive.
|
---|
12158 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
---|
12159 | ;;
|
---|
12160 | *)
|
---|
12161 | # GNU C++ compiler with Solaris linker
|
---|
12162 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
---|
12163 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
---|
12164 | if $CC --version | grep -v '^2\.7' > /dev/null; then
|
---|
12165 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
---|
12166 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
12167 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
---|
12168 |
|
---|
12169 | # Commands to make compiler produce verbose output that lists
|
---|
12170 | # what "hidden" libraries, object files and flags are used when
|
---|
12171 | # linking a shared library.
|
---|
12172 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
---|
12173 | else
|
---|
12174 | # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
---|
12175 | # platform.
|
---|
12176 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
---|
12177 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
12178 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
---|
12179 |
|
---|
12180 | # Commands to make compiler produce verbose output that lists
|
---|
12181 | # what "hidden" libraries, object files and flags are used when
|
---|
12182 | # linking a shared library.
|
---|
12183 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
---|
12184 | fi
|
---|
12185 |
|
---|
12186 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
---|
12187 | fi
|
---|
12188 | ;;
|
---|
12189 | esac
|
---|
12190 | ;;
|
---|
12191 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
12192 | no_undefined_flag_CXX='${wl}-z,text'
|
---|
12193 | archive_cmds_need_lc_CXX=no
|
---|
12194 | hardcode_shlibpath_var_CXX=no
|
---|
12195 | runpath_var='LD_RUN_PATH'
|
---|
12196 |
|
---|
12197 | case $cc_basename in
|
---|
12198 | CC*)
|
---|
12199 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12200 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12201 | ;;
|
---|
12202 | *)
|
---|
12203 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12204 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12205 | ;;
|
---|
12206 | esac
|
---|
12207 | ;;
|
---|
12208 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
12209 | # Note: We can NOT use -z defs as we might desire, because we do not
|
---|
12210 | # link with -lc, and that would cause any symbols used from libc to
|
---|
12211 | # always be unresolved, which means just about no library would
|
---|
12212 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
12213 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
12214 | # as -z defs.
|
---|
12215 | # For security reasons, it is highly recommended that you always
|
---|
12216 | # use absolute paths for naming shared libraries, and exclude the
|
---|
12217 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
12218 | # requires that you compile everything twice, which is a pain.
|
---|
12219 | # So that behaviour is only enabled if SCOABSPATH is set to a
|
---|
12220 | # non-empty value in the environment. Most likely only useful for
|
---|
12221 | # creating official distributions of packages.
|
---|
12222 | # This is a hack until libtool officially supports absolute path
|
---|
12223 | # names for shared libraries.
|
---|
12224 | no_undefined_flag_CXX='${wl}-z,text'
|
---|
12225 | allow_undefined_flag_CXX='${wl}-z,nodefs'
|
---|
12226 | archive_cmds_need_lc_CXX=no
|
---|
12227 | hardcode_shlibpath_var_CXX=no
|
---|
12228 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
---|
12229 | hardcode_libdir_separator_CXX=':'
|
---|
12230 | link_all_deplibs_CXX=yes
|
---|
12231 | export_dynamic_flag_spec_CXX='${wl}-Bexport'
|
---|
12232 | runpath_var='LD_RUN_PATH'
|
---|
12233 |
|
---|
12234 | case $cc_basename in
|
---|
12235 | CC*)
|
---|
12236 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12237 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12238 | ;;
|
---|
12239 | *)
|
---|
12240 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12241 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
12242 | ;;
|
---|
12243 | esac
|
---|
12244 | ;;
|
---|
12245 | tandem*)
|
---|
12246 | case $cc_basename in
|
---|
12247 | NCC*)
|
---|
12248 | # NonStop-UX NCC 3.20
|
---|
12249 | # FIXME: insert proper C++ library support
|
---|
12250 | ld_shlibs_CXX=no
|
---|
12251 | ;;
|
---|
12252 | *)
|
---|
12253 | # FIXME: insert proper C++ library support
|
---|
12254 | ld_shlibs_CXX=no
|
---|
12255 | ;;
|
---|
12256 | esac
|
---|
12257 | ;;
|
---|
12258 | vxworks*)
|
---|
12259 | # FIXME: insert proper C++ library support
|
---|
12260 | ld_shlibs_CXX=no
|
---|
12261 | ;;
|
---|
12262 | *)
|
---|
12263 | # FIXME: insert proper C++ library support
|
---|
12264 | ld_shlibs_CXX=no
|
---|
12265 | ;;
|
---|
12266 | esac
|
---|
12267 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
---|
12268 | echo "${ECHO_T}$ld_shlibs_CXX" >&6
|
---|
12269 | test "$ld_shlibs_CXX" = no && can_build_shared=no
|
---|
12270 |
|
---|
12271 | GCC_CXX="$GXX"
|
---|
12272 | LD_CXX="$LD"
|
---|
12273 |
|
---|
12274 |
|
---|
12275 | cat > conftest.$ac_ext <<EOF
|
---|
12276 | class Foo
|
---|
12277 | {
|
---|
12278 | public:
|
---|
12279 | Foo (void) { a = 0; }
|
---|
12280 | private:
|
---|
12281 | int a;
|
---|
12282 | };
|
---|
12283 | EOF
|
---|
12284 |
|
---|
12285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
12286 | (eval $ac_compile) 2>&5
|
---|
12287 | ac_status=$?
|
---|
12288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12289 | (exit $ac_status); }; then
|
---|
12290 | # Parse the compiler output and extract the necessary
|
---|
12291 | # objects, libraries and library flags.
|
---|
12292 |
|
---|
12293 | # Sentinel used to keep track of whether or not we are before
|
---|
12294 | # the conftest object file.
|
---|
12295 | pre_test_object_deps_done=no
|
---|
12296 |
|
---|
12297 | # The `*' in the case matches for architectures that use `case' in
|
---|
12298 | # $output_verbose_cmd can trigger glob expansion during the loop
|
---|
12299 | # eval without this substitution.
|
---|
12300 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
---|
12301 |
|
---|
12302 | for p in `eval $output_verbose_link_cmd`; do
|
---|
12303 | case $p in
|
---|
12304 |
|
---|
12305 | -L* | -R* | -l*)
|
---|
12306 | # Some compilers place space between "-{L,R}" and the path.
|
---|
12307 | # Remove the space.
|
---|
12308 | if test $p = "-L" \
|
---|
12309 | || test $p = "-R"; then
|
---|
12310 | prev=$p
|
---|
12311 | continue
|
---|
12312 | else
|
---|
12313 | prev=
|
---|
12314 | fi
|
---|
12315 |
|
---|
12316 | if test "$pre_test_object_deps_done" = no; then
|
---|
12317 | case $p in
|
---|
12318 | -L* | -R*)
|
---|
12319 | # Internal compiler library paths should come after those
|
---|
12320 | # provided the user. The postdeps already come after the
|
---|
12321 | # user supplied libs so there is no need to process them.
|
---|
12322 | if test -z "$compiler_lib_search_path_CXX"; then
|
---|
12323 | compiler_lib_search_path_CXX="${prev}${p}"
|
---|
12324 | else
|
---|
12325 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
|
---|
12326 | fi
|
---|
12327 | ;;
|
---|
12328 | # The "-l" case would never come before the object being
|
---|
12329 | # linked, so don't bother handling this case.
|
---|
12330 | esac
|
---|
12331 | else
|
---|
12332 | if test -z "$postdeps_CXX"; then
|
---|
12333 | postdeps_CXX="${prev}${p}"
|
---|
12334 | else
|
---|
12335 | postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
---|
12336 | fi
|
---|
12337 | fi
|
---|
12338 | ;;
|
---|
12339 |
|
---|
12340 | *.$objext)
|
---|
12341 | # This assumes that the test object file only shows up
|
---|
12342 | # once in the compiler output.
|
---|
12343 | if test "$p" = "conftest.$objext"; then
|
---|
12344 | pre_test_object_deps_done=yes
|
---|
12345 | continue
|
---|
12346 | fi
|
---|
12347 |
|
---|
12348 | if test "$pre_test_object_deps_done" = no; then
|
---|
12349 | if test -z "$predep_objects_CXX"; then
|
---|
12350 | predep_objects_CXX="$p"
|
---|
12351 | else
|
---|
12352 | predep_objects_CXX="$predep_objects_CXX $p"
|
---|
12353 | fi
|
---|
12354 | else
|
---|
12355 | if test -z "$postdep_objects_CXX"; then
|
---|
12356 | postdep_objects_CXX="$p"
|
---|
12357 | else
|
---|
12358 | postdep_objects_CXX="$postdep_objects_CXX $p"
|
---|
12359 | fi
|
---|
12360 | fi
|
---|
12361 | ;;
|
---|
12362 |
|
---|
12363 | *) ;; # Ignore the rest.
|
---|
12364 |
|
---|
12365 | esac
|
---|
12366 | done
|
---|
12367 |
|
---|
12368 | # Clean up.
|
---|
12369 | rm -f a.out a.exe
|
---|
12370 | else
|
---|
12371 | echo "libtool.m4: error: problem compiling CXX test program"
|
---|
12372 | fi
|
---|
12373 |
|
---|
12374 | $rm -f confest.$objext
|
---|
12375 |
|
---|
12376 | # PORTME: override above test on systems where it is broken
|
---|
12377 | case $host_os in
|
---|
12378 | interix3*)
|
---|
12379 | # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
---|
12380 | # hack all around it, let's just trust "g++" to DTRT.
|
---|
12381 | predep_objects_CXX=
|
---|
12382 | postdep_objects_CXX=
|
---|
12383 | postdeps_CXX=
|
---|
12384 | ;;
|
---|
12385 |
|
---|
12386 | solaris*)
|
---|
12387 | case $cc_basename in
|
---|
12388 | CC*)
|
---|
12389 | # Adding this requires a known-good setup of shared libraries for
|
---|
12390 | # Sun compiler versions before 5.6, else PIC objects from an old
|
---|
12391 | # archive will be linked into the output, leading to subtle bugs.
|
---|
12392 | postdeps_CXX='-lCstd -lCrun'
|
---|
12393 | ;;
|
---|
12394 | esac
|
---|
12395 | ;;
|
---|
12396 | esac
|
---|
12397 |
|
---|
12398 |
|
---|
12399 | case " $postdeps_CXX " in
|
---|
12400 | *" -lc "*) archive_cmds_need_lc_CXX=no ;;
|
---|
12401 | esac
|
---|
12402 |
|
---|
12403 | lt_prog_compiler_wl_CXX=
|
---|
12404 | lt_prog_compiler_pic_CXX=
|
---|
12405 | lt_prog_compiler_static_CXX=
|
---|
12406 |
|
---|
12407 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
---|
12408 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
---|
12409 |
|
---|
12410 | # C++ specific cases for pic, static, wl, etc.
|
---|
12411 | if test "$GXX" = yes; then
|
---|
12412 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12413 | lt_prog_compiler_static_CXX='-static'
|
---|
12414 |
|
---|
12415 | case $host_os in
|
---|
12416 | aix*)
|
---|
12417 | # All AIX code is PIC.
|
---|
12418 | if test "$host_cpu" = ia64; then
|
---|
12419 | # AIX 5 now supports IA64 processor
|
---|
12420 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12421 | fi
|
---|
12422 | ;;
|
---|
12423 | amigaos*)
|
---|
12424 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
12425 | # adding the `-m68020' flag to GCC prevents building anything better,
|
---|
12426 | # like `-m68040'.
|
---|
12427 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
---|
12428 | ;;
|
---|
12429 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
12430 | # PIC is the default for these OSes.
|
---|
12431 | ;;
|
---|
12432 | mingw* | os2* | pw32*)
|
---|
12433 | # This hack is so that the source file can tell whether it is being
|
---|
12434 | # built for inclusion in a dll (and should export symbols for example).
|
---|
12435 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
---|
12436 | ;;
|
---|
12437 | darwin* | rhapsody*)
|
---|
12438 | # PIC is the default on this platform
|
---|
12439 | # Common symbols not allowed in MH_DYLIB files
|
---|
12440 | lt_prog_compiler_pic_CXX='-fno-common'
|
---|
12441 | ;;
|
---|
12442 | *djgpp*)
|
---|
12443 | # DJGPP does not support shared libraries at all
|
---|
12444 | lt_prog_compiler_pic_CXX=
|
---|
12445 | ;;
|
---|
12446 | interix3*)
|
---|
12447 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
12448 | # Instead, we relocate shared libraries at runtime.
|
---|
12449 | ;;
|
---|
12450 | sysv4*MP*)
|
---|
12451 | if test -d /usr/nec; then
|
---|
12452 | lt_prog_compiler_pic_CXX=-Kconform_pic
|
---|
12453 | fi
|
---|
12454 | ;;
|
---|
12455 | hpux*)
|
---|
12456 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
12457 | # not for PA HP-UX.
|
---|
12458 | case $host_cpu in
|
---|
12459 | hppa*64*|ia64*)
|
---|
12460 | ;;
|
---|
12461 | *)
|
---|
12462 | lt_prog_compiler_pic_CXX='-fPIC'
|
---|
12463 | ;;
|
---|
12464 | esac
|
---|
12465 | ;;
|
---|
12466 | *)
|
---|
12467 | lt_prog_compiler_pic_CXX='-fPIC'
|
---|
12468 | ;;
|
---|
12469 | esac
|
---|
12470 | else
|
---|
12471 | case $host_os in
|
---|
12472 | aix4* | aix5*)
|
---|
12473 | # All AIX code is PIC.
|
---|
12474 | if test "$host_cpu" = ia64; then
|
---|
12475 | # AIX 5 now supports IA64 processor
|
---|
12476 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12477 | else
|
---|
12478 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
|
---|
12479 | fi
|
---|
12480 | ;;
|
---|
12481 | chorus*)
|
---|
12482 | case $cc_basename in
|
---|
12483 | cxch68*)
|
---|
12484 | # Green Hills C++ Compiler
|
---|
12485 | # _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"
|
---|
12486 | ;;
|
---|
12487 | esac
|
---|
12488 | ;;
|
---|
12489 | darwin*)
|
---|
12490 | # PIC is the default on this platform
|
---|
12491 | # Common symbols not allowed in MH_DYLIB files
|
---|
12492 | case $cc_basename in
|
---|
12493 | xlc*)
|
---|
12494 | lt_prog_compiler_pic_CXX='-qnocommon'
|
---|
12495 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12496 | ;;
|
---|
12497 | esac
|
---|
12498 | ;;
|
---|
12499 | dgux*)
|
---|
12500 | case $cc_basename in
|
---|
12501 | ec++*)
|
---|
12502 | lt_prog_compiler_pic_CXX='-KPIC'
|
---|
12503 | ;;
|
---|
12504 | ghcx*)
|
---|
12505 | # Green Hills C++ Compiler
|
---|
12506 | lt_prog_compiler_pic_CXX='-pic'
|
---|
12507 | ;;
|
---|
12508 | *)
|
---|
12509 | ;;
|
---|
12510 | esac
|
---|
12511 | ;;
|
---|
12512 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
12513 | # FreeBSD uses GNU C++
|
---|
12514 | ;;
|
---|
12515 | hpux9* | hpux10* | hpux11*)
|
---|
12516 | case $cc_basename in
|
---|
12517 | CC*)
|
---|
12518 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12519 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
---|
12520 | if test "$host_cpu" != ia64; then
|
---|
12521 | lt_prog_compiler_pic_CXX='+Z'
|
---|
12522 | fi
|
---|
12523 | ;;
|
---|
12524 | aCC*)
|
---|
12525 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12526 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
---|
12527 | case $host_cpu in
|
---|
12528 | hppa*64*|ia64*)
|
---|
12529 | # +Z the default
|
---|
12530 | ;;
|
---|
12531 | *)
|
---|
12532 | lt_prog_compiler_pic_CXX='+Z'
|
---|
12533 | ;;
|
---|
12534 | esac
|
---|
12535 | ;;
|
---|
12536 | *)
|
---|
12537 | ;;
|
---|
12538 | esac
|
---|
12539 | ;;
|
---|
12540 | interix*)
|
---|
12541 | # This is c89, which is MS Visual C++ (no shared libs)
|
---|
12542 | # Anyone wants to do a port?
|
---|
12543 | ;;
|
---|
12544 | irix5* | irix6* | nonstopux*)
|
---|
12545 | case $cc_basename in
|
---|
12546 | CC*)
|
---|
12547 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12548 | lt_prog_compiler_static_CXX='-non_shared'
|
---|
12549 | # CC pic flag -KPIC is the default.
|
---|
12550 | ;;
|
---|
12551 | *)
|
---|
12552 | ;;
|
---|
12553 | esac
|
---|
12554 | ;;
|
---|
12555 | linux*)
|
---|
12556 | case $cc_basename in
|
---|
12557 | KCC*)
|
---|
12558 | # KAI C++ Compiler
|
---|
12559 | lt_prog_compiler_wl_CXX='--backend -Wl,'
|
---|
12560 | lt_prog_compiler_pic_CXX='-fPIC'
|
---|
12561 | ;;
|
---|
12562 | icpc* | ecpc*)
|
---|
12563 | # Intel C++
|
---|
12564 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12565 | lt_prog_compiler_pic_CXX='-KPIC'
|
---|
12566 | lt_prog_compiler_static_CXX='-static'
|
---|
12567 | ;;
|
---|
12568 | pgCC*)
|
---|
12569 | # Portland Group C++ compiler.
|
---|
12570 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12571 | lt_prog_compiler_pic_CXX='-fpic'
|
---|
12572 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12573 | ;;
|
---|
12574 | cxx*)
|
---|
12575 | # Compaq C++
|
---|
12576 | # Make sure the PIC flag is empty. It appears that all Alpha
|
---|
12577 | # Linux and Compaq Tru64 Unix objects are PIC.
|
---|
12578 | lt_prog_compiler_pic_CXX=
|
---|
12579 | lt_prog_compiler_static_CXX='-non_shared'
|
---|
12580 | ;;
|
---|
12581 | *)
|
---|
12582 | ;;
|
---|
12583 | esac
|
---|
12584 | ;;
|
---|
12585 | lynxos*)
|
---|
12586 | ;;
|
---|
12587 | m88k*)
|
---|
12588 | ;;
|
---|
12589 | mvs*)
|
---|
12590 | case $cc_basename in
|
---|
12591 | cxx*)
|
---|
12592 | lt_prog_compiler_pic_CXX='-W c,exportall'
|
---|
12593 | ;;
|
---|
12594 | *)
|
---|
12595 | ;;
|
---|
12596 | esac
|
---|
12597 | ;;
|
---|
12598 | netbsd*)
|
---|
12599 | ;;
|
---|
12600 | osf3* | osf4* | osf5*)
|
---|
12601 | case $cc_basename in
|
---|
12602 | KCC*)
|
---|
12603 | lt_prog_compiler_wl_CXX='--backend -Wl,'
|
---|
12604 | ;;
|
---|
12605 | RCC*)
|
---|
12606 | # Rational C++ 2.4.1
|
---|
12607 | lt_prog_compiler_pic_CXX='-pic'
|
---|
12608 | ;;
|
---|
12609 | cxx*)
|
---|
12610 | # Digital/Compaq C++
|
---|
12611 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12612 | # Make sure the PIC flag is empty. It appears that all Alpha
|
---|
12613 | # Linux and Compaq Tru64 Unix objects are PIC.
|
---|
12614 | lt_prog_compiler_pic_CXX=
|
---|
12615 | lt_prog_compiler_static_CXX='-non_shared'
|
---|
12616 | ;;
|
---|
12617 | *)
|
---|
12618 | ;;
|
---|
12619 | esac
|
---|
12620 | ;;
|
---|
12621 | psos*)
|
---|
12622 | ;;
|
---|
12623 | solaris*)
|
---|
12624 | case $cc_basename in
|
---|
12625 | CC*)
|
---|
12626 | # Sun C++ 4.2, 5.x and Centerline C++
|
---|
12627 | lt_prog_compiler_pic_CXX='-KPIC'
|
---|
12628 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12629 | lt_prog_compiler_wl_CXX='-Qoption ld '
|
---|
12630 | ;;
|
---|
12631 | gcx*)
|
---|
12632 | # Green Hills C++ Compiler
|
---|
12633 | lt_prog_compiler_pic_CXX='-PIC'
|
---|
12634 | ;;
|
---|
12635 | *)
|
---|
12636 | ;;
|
---|
12637 | esac
|
---|
12638 | ;;
|
---|
12639 | sunos4*)
|
---|
12640 | case $cc_basename in
|
---|
12641 | CC*)
|
---|
12642 | # Sun C++ 4.x
|
---|
12643 | lt_prog_compiler_pic_CXX='-pic'
|
---|
12644 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12645 | ;;
|
---|
12646 | lcc*)
|
---|
12647 | # Lucid
|
---|
12648 | lt_prog_compiler_pic_CXX='-pic'
|
---|
12649 | ;;
|
---|
12650 | *)
|
---|
12651 | ;;
|
---|
12652 | esac
|
---|
12653 | ;;
|
---|
12654 | tandem*)
|
---|
12655 | case $cc_basename in
|
---|
12656 | NCC*)
|
---|
12657 | # NonStop-UX NCC 3.20
|
---|
12658 | lt_prog_compiler_pic_CXX='-KPIC'
|
---|
12659 | ;;
|
---|
12660 | *)
|
---|
12661 | ;;
|
---|
12662 | esac
|
---|
12663 | ;;
|
---|
12664 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
12665 | case $cc_basename in
|
---|
12666 | CC*)
|
---|
12667 | lt_prog_compiler_wl_CXX='-Wl,'
|
---|
12668 | lt_prog_compiler_pic_CXX='-KPIC'
|
---|
12669 | lt_prog_compiler_static_CXX='-Bstatic'
|
---|
12670 | ;;
|
---|
12671 | esac
|
---|
12672 | ;;
|
---|
12673 | vxworks*)
|
---|
12674 | ;;
|
---|
12675 | *)
|
---|
12676 | lt_prog_compiler_can_build_shared_CXX=no
|
---|
12677 | ;;
|
---|
12678 | esac
|
---|
12679 | fi
|
---|
12680 |
|
---|
12681 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
|
---|
12682 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
|
---|
12683 |
|
---|
12684 | #
|
---|
12685 | # Check to make sure the PIC flag actually works.
|
---|
12686 | #
|
---|
12687 | if test -n "$lt_prog_compiler_pic_CXX"; then
|
---|
12688 |
|
---|
12689 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
|
---|
12690 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
|
---|
12691 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
|
---|
12692 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12693 | else
|
---|
12694 | lt_prog_compiler_pic_works_CXX=no
|
---|
12695 | ac_outfile=conftest.$ac_objext
|
---|
12696 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
12697 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
---|
12698 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
12699 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
12700 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
12701 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
12702 | # The option is referenced via a variable to avoid confusing sed.
|
---|
12703 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
12704 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
12705 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
12706 | -e 's:$: $lt_compiler_flag:'`
|
---|
12707 | (eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
|
---|
12708 | (eval "$lt_compile" 2>conftest.err)
|
---|
12709 | ac_status=$?
|
---|
12710 | cat conftest.err >&5
|
---|
12711 | echo "$as_me:12711: \$? = $ac_status" >&5
|
---|
12712 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
12713 | # The compiler can only warn and ignore the option if not recognized
|
---|
12714 | # So say no if there are warnings other than the usual output.
|
---|
12715 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
12716 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
12717 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
12718 | lt_prog_compiler_pic_works_CXX=yes
|
---|
12719 | fi
|
---|
12720 | fi
|
---|
12721 | $rm conftest*
|
---|
12722 |
|
---|
12723 | fi
|
---|
12724 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
|
---|
12725 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
|
---|
12726 |
|
---|
12727 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
|
---|
12728 | case $lt_prog_compiler_pic_CXX in
|
---|
12729 | "" | " "*) ;;
|
---|
12730 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
|
---|
12731 | esac
|
---|
12732 | else
|
---|
12733 | lt_prog_compiler_pic_CXX=
|
---|
12734 | lt_prog_compiler_can_build_shared_CXX=no
|
---|
12735 | fi
|
---|
12736 |
|
---|
12737 | fi
|
---|
12738 | case $host_os in
|
---|
12739 | # For platforms which do not support PIC, -DPIC is meaningless:
|
---|
12740 | *djgpp*)
|
---|
12741 | lt_prog_compiler_pic_CXX=
|
---|
12742 | ;;
|
---|
12743 | *)
|
---|
12744 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
---|
12745 | ;;
|
---|
12746 | esac
|
---|
12747 |
|
---|
12748 | #
|
---|
12749 | # Check to make sure the static flag actually works.
|
---|
12750 | #
|
---|
12751 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
|
---|
12752 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
12753 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
---|
12754 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
|
---|
12755 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12756 | else
|
---|
12757 | lt_prog_compiler_static_works_CXX=no
|
---|
12758 | save_LDFLAGS="$LDFLAGS"
|
---|
12759 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
12760 | printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
12761 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
12762 | # The linker can only warn and ignore the option if not recognized
|
---|
12763 | # So say no if there are warnings
|
---|
12764 | if test -s conftest.err; then
|
---|
12765 | # Append any errors to the config.log.
|
---|
12766 | cat conftest.err 1>&5
|
---|
12767 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
---|
12768 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
12769 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
12770 | lt_prog_compiler_static_works_CXX=yes
|
---|
12771 | fi
|
---|
12772 | else
|
---|
12773 | lt_prog_compiler_static_works_CXX=yes
|
---|
12774 | fi
|
---|
12775 | fi
|
---|
12776 | $rm conftest*
|
---|
12777 | LDFLAGS="$save_LDFLAGS"
|
---|
12778 |
|
---|
12779 | fi
|
---|
12780 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
|
---|
12781 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
|
---|
12782 |
|
---|
12783 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
|
---|
12784 | :
|
---|
12785 | else
|
---|
12786 | lt_prog_compiler_static_CXX=
|
---|
12787 | fi
|
---|
12788 |
|
---|
12789 |
|
---|
12790 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
12791 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
---|
12792 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
---|
12793 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
12794 | else
|
---|
12795 | lt_cv_prog_compiler_c_o_CXX=no
|
---|
12796 | $rm -r conftest 2>/dev/null
|
---|
12797 | mkdir conftest
|
---|
12798 | cd conftest
|
---|
12799 | mkdir out
|
---|
12800 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
12801 |
|
---|
12802 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
12803 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
12804 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
12805 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
12806 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
12807 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
12808 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
12809 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
12810 | -e 's:$: $lt_compiler_flag:'`
|
---|
12811 | (eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
|
---|
12812 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
12813 | ac_status=$?
|
---|
12814 | cat out/conftest.err >&5
|
---|
12815 | echo "$as_me:12815: \$? = $ac_status" >&5
|
---|
12816 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
12817 | then
|
---|
12818 | # The compiler can only warn and ignore the option if not recognized
|
---|
12819 | # So say no if there are warnings
|
---|
12820 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
---|
12821 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
12822 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
12823 | lt_cv_prog_compiler_c_o_CXX=yes
|
---|
12824 | fi
|
---|
12825 | fi
|
---|
12826 | chmod u+w . 2>&5
|
---|
12827 | $rm conftest*
|
---|
12828 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
12829 | # template instantiation
|
---|
12830 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
---|
12831 | $rm out/* && rmdir out
|
---|
12832 | cd ..
|
---|
12833 | rmdir conftest
|
---|
12834 | $rm conftest*
|
---|
12835 |
|
---|
12836 | fi
|
---|
12837 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
|
---|
12838 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
|
---|
12839 |
|
---|
12840 |
|
---|
12841 | hard_links="nottested"
|
---|
12842 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
|
---|
12843 | # do not overwrite the value of need_locks provided by the user
|
---|
12844 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
---|
12845 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
---|
12846 | hard_links=yes
|
---|
12847 | $rm conftest*
|
---|
12848 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
12849 | touch conftest.a
|
---|
12850 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
12851 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
12852 | echo "$as_me:$LINENO: result: $hard_links" >&5
|
---|
12853 | echo "${ECHO_T}$hard_links" >&6
|
---|
12854 | if test "$hard_links" = no; then
|
---|
12855 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
---|
12856 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
---|
12857 | need_locks=warn
|
---|
12858 | fi
|
---|
12859 | else
|
---|
12860 | need_locks=no
|
---|
12861 | fi
|
---|
12862 |
|
---|
12863 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
12864 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
---|
12865 |
|
---|
12866 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
12867 | case $host_os in
|
---|
12868 | aix4* | aix5*)
|
---|
12869 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
12870 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
---|
12871 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
---|
12872 | 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'
|
---|
12873 | else
|
---|
12874 | 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'
|
---|
12875 | fi
|
---|
12876 | ;;
|
---|
12877 | pw32*)
|
---|
12878 | export_symbols_cmds_CXX="$ltdll_cmds"
|
---|
12879 | ;;
|
---|
12880 | cygwin* | mingw*)
|
---|
12881 | 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'
|
---|
12882 | ;;
|
---|
12883 | *)
|
---|
12884 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
12885 | ;;
|
---|
12886 | esac
|
---|
12887 |
|
---|
12888 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
---|
12889 | echo "${ECHO_T}$ld_shlibs_CXX" >&6
|
---|
12890 | test "$ld_shlibs_CXX" = no && can_build_shared=no
|
---|
12891 |
|
---|
12892 | #
|
---|
12893 | # Do we need to explicitly link libc?
|
---|
12894 | #
|
---|
12895 | case "x$archive_cmds_need_lc_CXX" in
|
---|
12896 | x|xyes)
|
---|
12897 | # Assume -lc should be added
|
---|
12898 | archive_cmds_need_lc_CXX=yes
|
---|
12899 |
|
---|
12900 | if test "$enable_shared" = yes && test "$GCC" = yes; then
|
---|
12901 | case $archive_cmds_CXX in
|
---|
12902 | *'~'*)
|
---|
12903 | # FIXME: we may have to deal with multi-command sequences.
|
---|
12904 | ;;
|
---|
12905 | '$CC '*)
|
---|
12906 | # Test whether the compiler implicitly links with -lc since on some
|
---|
12907 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
12908 | # to ld, don't add -lc before -lgcc.
|
---|
12909 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
---|
12910 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
---|
12911 | $rm conftest*
|
---|
12912 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
12913 |
|
---|
12914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
12915 | (eval $ac_compile) 2>&5
|
---|
12916 | ac_status=$?
|
---|
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12918 | (exit $ac_status); } 2>conftest.err; then
|
---|
12919 | soname=conftest
|
---|
12920 | lib=conftest
|
---|
12921 | libobjs=conftest.$ac_objext
|
---|
12922 | deplibs=
|
---|
12923 | wl=$lt_prog_compiler_wl_CXX
|
---|
12924 | pic_flag=$lt_prog_compiler_pic_CXX
|
---|
12925 | compiler_flags=-v
|
---|
12926 | linker_flags=-v
|
---|
12927 | verstring=
|
---|
12928 | output_objdir=.
|
---|
12929 | libname=conftest
|
---|
12930 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
|
---|
12931 | allow_undefined_flag_CXX=
|
---|
12932 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
---|
12933 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
12934 | ac_status=$?
|
---|
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12936 | (exit $ac_status); }
|
---|
12937 | then
|
---|
12938 | archive_cmds_need_lc_CXX=no
|
---|
12939 | else
|
---|
12940 | archive_cmds_need_lc_CXX=yes
|
---|
12941 | fi
|
---|
12942 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
|
---|
12943 | else
|
---|
12944 | cat conftest.err 1>&5
|
---|
12945 | fi
|
---|
12946 | $rm conftest*
|
---|
12947 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
|
---|
12948 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
|
---|
12949 | ;;
|
---|
12950 | esac
|
---|
12951 | fi
|
---|
12952 | ;;
|
---|
12953 | esac
|
---|
12954 |
|
---|
12955 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
---|
12956 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
---|
12957 | library_names_spec=
|
---|
12958 | libname_spec='lib$name'
|
---|
12959 | soname_spec=
|
---|
12960 | shrext_cmds=".so"
|
---|
12961 | postinstall_cmds=
|
---|
12962 | postuninstall_cmds=
|
---|
12963 | finish_cmds=
|
---|
12964 | finish_eval=
|
---|
12965 | shlibpath_var=
|
---|
12966 | shlibpath_overrides_runpath=unknown
|
---|
12967 | version_type=none
|
---|
12968 | dynamic_linker="$host_os ld.so"
|
---|
12969 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
12970 | if test "$GCC" = yes; then
|
---|
12971 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
12972 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
---|
12973 | # if the path contains ";" then we assume it to be the separator
|
---|
12974 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
12975 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
12976 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
12977 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
12978 | else
|
---|
12979 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
12980 | fi
|
---|
12981 | else
|
---|
12982 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
12983 | fi
|
---|
12984 | need_lib_prefix=unknown
|
---|
12985 | hardcode_into_libs=no
|
---|
12986 |
|
---|
12987 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
12988 | # flags to be left without arguments
|
---|
12989 | need_version=unknown
|
---|
12990 |
|
---|
12991 | case $host_os in
|
---|
12992 | aix3*)
|
---|
12993 | version_type=linux
|
---|
12994 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
---|
12995 | shlibpath_var=LIBPATH
|
---|
12996 |
|
---|
12997 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
12998 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
12999 | ;;
|
---|
13000 |
|
---|
13001 | aix4* | aix5*)
|
---|
13002 | version_type=linux
|
---|
13003 | need_lib_prefix=no
|
---|
13004 | need_version=no
|
---|
13005 | hardcode_into_libs=yes
|
---|
13006 | if test "$host_cpu" = ia64; then
|
---|
13007 | # AIX 5 supports IA64
|
---|
13008 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
---|
13009 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13010 | else
|
---|
13011 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
13012 | # for dependence libraries. The import file would start with
|
---|
13013 | # the line `#! .'. This would cause the generated library to
|
---|
13014 | # depend on `.', always an invalid library. This was fixed in
|
---|
13015 | # development snapshots of GCC prior to 3.0.
|
---|
13016 | case $host_os in
|
---|
13017 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
13018 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
13019 | echo ' yes '
|
---|
13020 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
---|
13021 | :
|
---|
13022 | else
|
---|
13023 | can_build_shared=no
|
---|
13024 | fi
|
---|
13025 | ;;
|
---|
13026 | esac
|
---|
13027 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
---|
13028 | # soname into executable. Probably we can add versioning support to
|
---|
13029 | # collect2, so additional links can be useful in future.
|
---|
13030 | if test "$aix_use_runtimelinking" = yes; then
|
---|
13031 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
13032 | # instead of lib<name>.a to let people know that these are not
|
---|
13033 | # typical AIX shared libraries.
|
---|
13034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13035 | else
|
---|
13036 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
13037 | # and later when we are not doing run time linking.
|
---|
13038 | library_names_spec='${libname}${release}.a $libname.a'
|
---|
13039 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13040 | fi
|
---|
13041 | shlibpath_var=LIBPATH
|
---|
13042 | fi
|
---|
13043 | ;;
|
---|
13044 |
|
---|
13045 | amigaos*)
|
---|
13046 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
13047 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
13048 | 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'
|
---|
13049 | ;;
|
---|
13050 |
|
---|
13051 | beos*)
|
---|
13052 | library_names_spec='${libname}${shared_ext}'
|
---|
13053 | dynamic_linker="$host_os ld.so"
|
---|
13054 | shlibpath_var=LIBRARY_PATH
|
---|
13055 | ;;
|
---|
13056 |
|
---|
13057 | bsdi[45]*)
|
---|
13058 | version_type=linux
|
---|
13059 | need_version=no
|
---|
13060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13061 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13062 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
13063 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13064 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
13065 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
13066 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
13067 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
13068 | # libtool to hard-code these into programs
|
---|
13069 | ;;
|
---|
13070 |
|
---|
13071 | cygwin* | mingw* | pw32*)
|
---|
13072 | version_type=windows
|
---|
13073 | shrext_cmds=".dll"
|
---|
13074 | need_version=no
|
---|
13075 | need_lib_prefix=no
|
---|
13076 |
|
---|
13077 | case $GCC,$host_os in
|
---|
13078 | yes,cygwin* | yes,mingw* | yes,pw32*)
|
---|
13079 | library_names_spec='$libname.dll.a'
|
---|
13080 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
13081 | postinstall_cmds='base_file=`basename \${file}`~
|
---|
13082 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
---|
13083 | dldir=$destdir/`dirname \$dlpath`~
|
---|
13084 | test -d \$dldir || mkdir -p \$dldir~
|
---|
13085 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
13086 | chmod a+x \$dldir/$dlname'
|
---|
13087 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
13088 | dlpath=$dir/\$dldll~
|
---|
13089 | $rm \$dlpath'
|
---|
13090 | shlibpath_overrides_runpath=yes
|
---|
13091 |
|
---|
13092 | case $host_os in
|
---|
13093 | cygwin*)
|
---|
13094 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
13095 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
13096 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
---|
13097 | ;;
|
---|
13098 | mingw*)
|
---|
13099 | # MinGW DLLs use traditional 'lib' prefix
|
---|
13100 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
13101 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
13102 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
---|
13103 | # It is most probably a Windows format PATH printed by
|
---|
13104 | # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
---|
13105 | # path with ; separators, and with drive letters. We can handle the
|
---|
13106 | # drive letters (cygwin fileutils understands them), so leave them,
|
---|
13107 | # especially as we might pass files found there to a mingw objdump,
|
---|
13108 | # which wouldn't understand a cygwinified path. Ahh.
|
---|
13109 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
13110 | else
|
---|
13111 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
13112 | fi
|
---|
13113 | ;;
|
---|
13114 | pw32*)
|
---|
13115 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
13116 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
13117 | ;;
|
---|
13118 | esac
|
---|
13119 | ;;
|
---|
13120 |
|
---|
13121 | *)
|
---|
13122 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
---|
13123 | ;;
|
---|
13124 | esac
|
---|
13125 | dynamic_linker='Win32 ld.exe'
|
---|
13126 | # FIXME: first we should search . and the directory the executable is in
|
---|
13127 | shlibpath_var=PATH
|
---|
13128 | ;;
|
---|
13129 |
|
---|
13130 | darwin* | rhapsody*)
|
---|
13131 | dynamic_linker="$host_os dyld"
|
---|
13132 | version_type=darwin
|
---|
13133 | need_lib_prefix=no
|
---|
13134 | need_version=no
|
---|
13135 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
---|
13136 | soname_spec='${libname}${release}${major}$shared_ext'
|
---|
13137 | shlibpath_overrides_runpath=yes
|
---|
13138 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
13139 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
13140 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
---|
13141 | if test "$GCC" = yes; then
|
---|
13142 | 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"`
|
---|
13143 | else
|
---|
13144 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
---|
13145 | fi
|
---|
13146 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
13147 | ;;
|
---|
13148 |
|
---|
13149 | dgux*)
|
---|
13150 | version_type=linux
|
---|
13151 | need_lib_prefix=no
|
---|
13152 | need_version=no
|
---|
13153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
---|
13154 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13155 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13156 | ;;
|
---|
13157 |
|
---|
13158 | freebsd1*)
|
---|
13159 | dynamic_linker=no
|
---|
13160 | ;;
|
---|
13161 |
|
---|
13162 | kfreebsd*-gnu)
|
---|
13163 | version_type=linux
|
---|
13164 | need_lib_prefix=no
|
---|
13165 | need_version=no
|
---|
13166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
13167 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13168 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13169 | shlibpath_overrides_runpath=no
|
---|
13170 | hardcode_into_libs=yes
|
---|
13171 | dynamic_linker='GNU ld.so'
|
---|
13172 | ;;
|
---|
13173 |
|
---|
13174 | freebsd* | dragonfly*)
|
---|
13175 | # DragonFly does not have aout. When/if they implement a new
|
---|
13176 | # versioning mechanism, adjust this.
|
---|
13177 | if test -x /usr/bin/objformat; then
|
---|
13178 | objformat=`/usr/bin/objformat`
|
---|
13179 | else
|
---|
13180 | case $host_os in
|
---|
13181 | freebsd[123]*) objformat=aout ;;
|
---|
13182 | *) objformat=elf ;;
|
---|
13183 | esac
|
---|
13184 | fi
|
---|
13185 | version_type=freebsd-$objformat
|
---|
13186 | case $version_type in
|
---|
13187 | freebsd-elf*)
|
---|
13188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
13189 | need_version=no
|
---|
13190 | need_lib_prefix=no
|
---|
13191 | ;;
|
---|
13192 | freebsd-*)
|
---|
13193 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
---|
13194 | need_version=yes
|
---|
13195 | ;;
|
---|
13196 | esac
|
---|
13197 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13198 | case $host_os in
|
---|
13199 | freebsd2*)
|
---|
13200 | shlibpath_overrides_runpath=yes
|
---|
13201 | ;;
|
---|
13202 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
13203 | shlibpath_overrides_runpath=yes
|
---|
13204 | hardcode_into_libs=yes
|
---|
13205 | ;;
|
---|
13206 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
13207 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
13208 | shlibpath_overrides_runpath=no
|
---|
13209 | hardcode_into_libs=yes
|
---|
13210 | ;;
|
---|
13211 | freebsd*) # from 4.6 on
|
---|
13212 | shlibpath_overrides_runpath=yes
|
---|
13213 | hardcode_into_libs=yes
|
---|
13214 | ;;
|
---|
13215 | esac
|
---|
13216 | ;;
|
---|
13217 |
|
---|
13218 | gnu*)
|
---|
13219 | version_type=linux
|
---|
13220 | need_lib_prefix=no
|
---|
13221 | need_version=no
|
---|
13222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
---|
13223 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13224 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13225 | hardcode_into_libs=yes
|
---|
13226 | ;;
|
---|
13227 |
|
---|
13228 | hpux9* | hpux10* | hpux11*)
|
---|
13229 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
13230 | # link against other versions.
|
---|
13231 | version_type=sunos
|
---|
13232 | need_lib_prefix=no
|
---|
13233 | need_version=no
|
---|
13234 | case $host_cpu in
|
---|
13235 | ia64*)
|
---|
13236 | shrext_cmds='.so'
|
---|
13237 | hardcode_into_libs=yes
|
---|
13238 | dynamic_linker="$host_os dld.so"
|
---|
13239 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13240 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
13241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13242 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13243 | if test "X$HPUX_IA64_MODE" = X32; then
|
---|
13244 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
13245 | else
|
---|
13246 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
13247 | fi
|
---|
13248 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
13249 | ;;
|
---|
13250 | hppa*64*)
|
---|
13251 | shrext_cmds='.sl'
|
---|
13252 | hardcode_into_libs=yes
|
---|
13253 | dynamic_linker="$host_os dld.sl"
|
---|
13254 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
13255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
13256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13257 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13258 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
13259 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
13260 | ;;
|
---|
13261 | *)
|
---|
13262 | shrext_cmds='.sl'
|
---|
13263 | dynamic_linker="$host_os dld.sl"
|
---|
13264 | shlibpath_var=SHLIB_PATH
|
---|
13265 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
13266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13267 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13268 | ;;
|
---|
13269 | esac
|
---|
13270 | # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
---|
13271 | postinstall_cmds='chmod 555 $lib'
|
---|
13272 | ;;
|
---|
13273 |
|
---|
13274 | interix3*)
|
---|
13275 | version_type=linux
|
---|
13276 | need_lib_prefix=no
|
---|
13277 | need_version=no
|
---|
13278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
13279 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13280 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
13281 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13282 | shlibpath_overrides_runpath=no
|
---|
13283 | hardcode_into_libs=yes
|
---|
13284 | ;;
|
---|
13285 |
|
---|
13286 | irix5* | irix6* | nonstopux*)
|
---|
13287 | case $host_os in
|
---|
13288 | nonstopux*) version_type=nonstopux ;;
|
---|
13289 | *)
|
---|
13290 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
13291 | version_type=linux
|
---|
13292 | else
|
---|
13293 | version_type=irix
|
---|
13294 | fi ;;
|
---|
13295 | esac
|
---|
13296 | need_lib_prefix=no
|
---|
13297 | need_version=no
|
---|
13298 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
13300 | case $host_os in
|
---|
13301 | irix5* | nonstopux*)
|
---|
13302 | libsuff= shlibsuff=
|
---|
13303 | ;;
|
---|
13304 | *)
|
---|
13305 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
13306 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
13307 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
13308 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
13309 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
13310 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
13311 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
13312 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
13313 | esac
|
---|
13314 | ;;
|
---|
13315 | esac
|
---|
13316 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
13317 | shlibpath_overrides_runpath=no
|
---|
13318 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
---|
13319 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
---|
13320 | hardcode_into_libs=yes
|
---|
13321 | ;;
|
---|
13322 |
|
---|
13323 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
13324 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
13325 | dynamic_linker=no
|
---|
13326 | ;;
|
---|
13327 |
|
---|
13328 | # This must be Linux ELF.
|
---|
13329 | linux*)
|
---|
13330 | version_type=linux
|
---|
13331 | need_lib_prefix=no
|
---|
13332 | need_version=no
|
---|
13333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13334 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13335 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
13336 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13337 | shlibpath_overrides_runpath=no
|
---|
13338 | # This implies no fast_install, which is unacceptable.
|
---|
13339 | # Some rework will be needed to allow for fast_install
|
---|
13340 | # before this can be enabled.
|
---|
13341 | hardcode_into_libs=yes
|
---|
13342 |
|
---|
13343 | # find out which ABI we are using
|
---|
13344 | libsuff=
|
---|
13345 | case "$host_cpu" in
|
---|
13346 | x86_64*|s390x*|powerpc64*)
|
---|
13347 | echo '#line 13347 "configure"' > conftest.$ac_ext
|
---|
13348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
13349 | (eval $ac_compile) 2>&5
|
---|
13350 | ac_status=$?
|
---|
13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13352 | (exit $ac_status); }; then
|
---|
13353 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
13354 | *64-bit*)
|
---|
13355 | libsuff=64
|
---|
13356 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
---|
13357 | ;;
|
---|
13358 | esac
|
---|
13359 | fi
|
---|
13360 | rm -rf conftest*
|
---|
13361 | ;;
|
---|
13362 | esac
|
---|
13363 |
|
---|
13364 | # Append ld.so.conf contents to the search path
|
---|
13365 | if test -f /etc/ld.so.conf; then
|
---|
13366 | 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' ' '`
|
---|
13367 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
---|
13368 | fi
|
---|
13369 |
|
---|
13370 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
13371 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
13372 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
13373 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
13374 | # people can always --disable-shared, the test was removed, and we
|
---|
13375 | # assume the GNU/Linux dynamic linker is in use.
|
---|
13376 | dynamic_linker='GNU/Linux ld.so'
|
---|
13377 | ;;
|
---|
13378 |
|
---|
13379 | knetbsd*-gnu)
|
---|
13380 | version_type=linux
|
---|
13381 | need_lib_prefix=no
|
---|
13382 | need_version=no
|
---|
13383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
13384 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13385 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13386 | shlibpath_overrides_runpath=no
|
---|
13387 | hardcode_into_libs=yes
|
---|
13388 | dynamic_linker='GNU ld.so'
|
---|
13389 | ;;
|
---|
13390 |
|
---|
13391 | netbsd*)
|
---|
13392 | version_type=sunos
|
---|
13393 | need_lib_prefix=no
|
---|
13394 | need_version=no
|
---|
13395 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
13396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
13397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
13398 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
13399 | else
|
---|
13400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
13401 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13402 | dynamic_linker='NetBSD ld.elf_so'
|
---|
13403 | fi
|
---|
13404 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13405 | shlibpath_overrides_runpath=yes
|
---|
13406 | hardcode_into_libs=yes
|
---|
13407 | ;;
|
---|
13408 |
|
---|
13409 | newsos6)
|
---|
13410 | version_type=linux
|
---|
13411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13412 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13413 | shlibpath_overrides_runpath=yes
|
---|
13414 | ;;
|
---|
13415 |
|
---|
13416 | nto-qnx*)
|
---|
13417 | version_type=linux
|
---|
13418 | need_lib_prefix=no
|
---|
13419 | need_version=no
|
---|
13420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13421 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13422 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13423 | shlibpath_overrides_runpath=yes
|
---|
13424 | ;;
|
---|
13425 |
|
---|
13426 | openbsd*)
|
---|
13427 | version_type=sunos
|
---|
13428 | sys_lib_dlsearch_path_spec="/usr/lib"
|
---|
13429 | need_lib_prefix=no
|
---|
13430 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
---|
13431 | case $host_os in
|
---|
13432 | openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
---|
13433 | *) need_version=no ;;
|
---|
13434 | esac
|
---|
13435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
13436 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
13437 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13438 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
13439 | case $host_os in
|
---|
13440 | openbsd2.[89] | openbsd2.[89].*)
|
---|
13441 | shlibpath_overrides_runpath=no
|
---|
13442 | ;;
|
---|
13443 | *)
|
---|
13444 | shlibpath_overrides_runpath=yes
|
---|
13445 | ;;
|
---|
13446 | esac
|
---|
13447 | else
|
---|
13448 | shlibpath_overrides_runpath=yes
|
---|
13449 | fi
|
---|
13450 | ;;
|
---|
13451 |
|
---|
13452 | os2*)
|
---|
13453 | libname_spec='$name'
|
---|
13454 | shrext_cmds=".dll"
|
---|
13455 | need_lib_prefix=no
|
---|
13456 | library_names_spec='$libname${shared_ext} $libname.a'
|
---|
13457 | dynamic_linker='OS/2 ld.exe'
|
---|
13458 | shlibpath_var=LIBPATH
|
---|
13459 | ;;
|
---|
13460 |
|
---|
13461 | osf3* | osf4* | osf5*)
|
---|
13462 | version_type=osf
|
---|
13463 | need_lib_prefix=no
|
---|
13464 | need_version=no
|
---|
13465 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13467 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13468 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
13469 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
---|
13470 | ;;
|
---|
13471 |
|
---|
13472 | solaris*)
|
---|
13473 | version_type=linux
|
---|
13474 | need_lib_prefix=no
|
---|
13475 | need_version=no
|
---|
13476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13477 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13478 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13479 | shlibpath_overrides_runpath=yes
|
---|
13480 | hardcode_into_libs=yes
|
---|
13481 | # ldd complains unless libraries are executable
|
---|
13482 | postinstall_cmds='chmod +x $lib'
|
---|
13483 | ;;
|
---|
13484 |
|
---|
13485 | sunos4*)
|
---|
13486 | version_type=sunos
|
---|
13487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
13488 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
13489 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13490 | shlibpath_overrides_runpath=yes
|
---|
13491 | if test "$with_gnu_ld" = yes; then
|
---|
13492 | need_lib_prefix=no
|
---|
13493 | fi
|
---|
13494 | need_version=yes
|
---|
13495 | ;;
|
---|
13496 |
|
---|
13497 | sysv4 | sysv4.3*)
|
---|
13498 | version_type=linux
|
---|
13499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13500 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13501 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13502 | case $host_vendor in
|
---|
13503 | sni)
|
---|
13504 | shlibpath_overrides_runpath=no
|
---|
13505 | need_lib_prefix=no
|
---|
13506 | export_dynamic_flag_spec='${wl}-Blargedynsym'
|
---|
13507 | runpath_var=LD_RUN_PATH
|
---|
13508 | ;;
|
---|
13509 | siemens)
|
---|
13510 | need_lib_prefix=no
|
---|
13511 | ;;
|
---|
13512 | motorola)
|
---|
13513 | need_lib_prefix=no
|
---|
13514 | need_version=no
|
---|
13515 | shlibpath_overrides_runpath=no
|
---|
13516 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
13517 | ;;
|
---|
13518 | esac
|
---|
13519 | ;;
|
---|
13520 |
|
---|
13521 | sysv4*MP*)
|
---|
13522 | if test -d /usr/nec ;then
|
---|
13523 | version_type=linux
|
---|
13524 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
---|
13525 | soname_spec='$libname${shared_ext}.$major'
|
---|
13526 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13527 | fi
|
---|
13528 | ;;
|
---|
13529 |
|
---|
13530 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
13531 | version_type=freebsd-elf
|
---|
13532 | need_lib_prefix=no
|
---|
13533 | need_version=no
|
---|
13534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
13535 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13536 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13537 | hardcode_into_libs=yes
|
---|
13538 | if test "$with_gnu_ld" = yes; then
|
---|
13539 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
13540 | shlibpath_overrides_runpath=no
|
---|
13541 | else
|
---|
13542 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
13543 | shlibpath_overrides_runpath=yes
|
---|
13544 | case $host_os in
|
---|
13545 | sco3.2v5*)
|
---|
13546 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
13547 | ;;
|
---|
13548 | esac
|
---|
13549 | fi
|
---|
13550 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
13551 | ;;
|
---|
13552 |
|
---|
13553 | uts4*)
|
---|
13554 | version_type=linux
|
---|
13555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
13556 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
13557 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13558 | ;;
|
---|
13559 |
|
---|
13560 | *)
|
---|
13561 | dynamic_linker=no
|
---|
13562 | ;;
|
---|
13563 | esac
|
---|
13564 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
---|
13565 | echo "${ECHO_T}$dynamic_linker" >&6
|
---|
13566 | test "$dynamic_linker" = no && can_build_shared=no
|
---|
13567 |
|
---|
13568 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
13569 | if test "$GCC" = yes; then
|
---|
13570 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
13571 | fi
|
---|
13572 |
|
---|
13573 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
---|
13574 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
---|
13575 | hardcode_action_CXX=
|
---|
13576 | if test -n "$hardcode_libdir_flag_spec_CXX" || \
|
---|
13577 | test -n "$runpath_var_CXX" || \
|
---|
13578 | test "X$hardcode_automatic_CXX" = "Xyes" ; then
|
---|
13579 |
|
---|
13580 | # We can hardcode non-existant directories.
|
---|
13581 | if test "$hardcode_direct_CXX" != no &&
|
---|
13582 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
13583 | # have to relink, otherwise we might link with an installed library
|
---|
13584 | # when we should be linking with a yet-to-be-installed one
|
---|
13585 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
|
---|
13586 | test "$hardcode_minus_L_CXX" != no; then
|
---|
13587 | # Linking always hardcodes the temporary library directory.
|
---|
13588 | hardcode_action_CXX=relink
|
---|
13589 | else
|
---|
13590 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
13591 | hardcode_action_CXX=immediate
|
---|
13592 | fi
|
---|
13593 | else
|
---|
13594 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
13595 | # directories.
|
---|
13596 | hardcode_action_CXX=unsupported
|
---|
13597 | fi
|
---|
13598 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
|
---|
13599 | echo "${ECHO_T}$hardcode_action_CXX" >&6
|
---|
13600 |
|
---|
13601 | if test "$hardcode_action_CXX" = relink; then
|
---|
13602 | # Fast installation is not supported
|
---|
13603 | enable_fast_install=no
|
---|
13604 | elif test "$shlibpath_overrides_runpath" = yes ||
|
---|
13605 | test "$enable_shared" = no; then
|
---|
13606 | # Fast installation is not necessary
|
---|
13607 | enable_fast_install=needless
|
---|
13608 | fi
|
---|
13609 |
|
---|
13610 |
|
---|
13611 | # The else clause should only fire when bootstrapping the
|
---|
13612 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
---|
13613 | # with your package, and you will get complaints that there are
|
---|
13614 | # no rules to generate ltmain.sh.
|
---|
13615 | if test -f "$ltmain"; then
|
---|
13616 | # See if we are running on zsh, and set the options which allow our commands through
|
---|
13617 | # without removal of \ escapes.
|
---|
13618 | if test -n "${ZSH_VERSION+set}" ; then
|
---|
13619 | setopt NO_GLOB_SUBST
|
---|
13620 | fi
|
---|
13621 | # Now quote all the things that may contain metacharacters while being
|
---|
13622 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
---|
13623 | # variables and quote the copies for generation of the libtool script.
|
---|
13624 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
---|
13625 | SED SHELL STRIP \
|
---|
13626 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
---|
13627 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
---|
13628 | deplibs_check_method reload_flag reload_cmds need_locks \
|
---|
13629 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
---|
13630 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
13631 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
---|
13632 | old_postinstall_cmds old_postuninstall_cmds \
|
---|
13633 | compiler_CXX \
|
---|
13634 | CC_CXX \
|
---|
13635 | LD_CXX \
|
---|
13636 | lt_prog_compiler_wl_CXX \
|
---|
13637 | lt_prog_compiler_pic_CXX \
|
---|
13638 | lt_prog_compiler_static_CXX \
|
---|
13639 | lt_prog_compiler_no_builtin_flag_CXX \
|
---|
13640 | export_dynamic_flag_spec_CXX \
|
---|
13641 | thread_safe_flag_spec_CXX \
|
---|
13642 | whole_archive_flag_spec_CXX \
|
---|
13643 | enable_shared_with_static_runtimes_CXX \
|
---|
13644 | old_archive_cmds_CXX \
|
---|
13645 | old_archive_from_new_cmds_CXX \
|
---|
13646 | predep_objects_CXX \
|
---|
13647 | postdep_objects_CXX \
|
---|
13648 | predeps_CXX \
|
---|
13649 | postdeps_CXX \
|
---|
13650 | compiler_lib_search_path_CXX \
|
---|
13651 | archive_cmds_CXX \
|
---|
13652 | archive_expsym_cmds_CXX \
|
---|
13653 | postinstall_cmds_CXX \
|
---|
13654 | postuninstall_cmds_CXX \
|
---|
13655 | old_archive_from_expsyms_cmds_CXX \
|
---|
13656 | allow_undefined_flag_CXX \
|
---|
13657 | no_undefined_flag_CXX \
|
---|
13658 | export_symbols_cmds_CXX \
|
---|
13659 | hardcode_libdir_flag_spec_CXX \
|
---|
13660 | hardcode_libdir_flag_spec_ld_CXX \
|
---|
13661 | hardcode_libdir_separator_CXX \
|
---|
13662 | hardcode_automatic_CXX \
|
---|
13663 | module_cmds_CXX \
|
---|
13664 | module_expsym_cmds_CXX \
|
---|
13665 | lt_cv_prog_compiler_c_o_CXX \
|
---|
13666 | exclude_expsyms_CXX \
|
---|
13667 | include_expsyms_CXX; do
|
---|
13668 |
|
---|
13669 | case $var in
|
---|
13670 | old_archive_cmds_CXX | \
|
---|
13671 | old_archive_from_new_cmds_CXX | \
|
---|
13672 | archive_cmds_CXX | \
|
---|
13673 | archive_expsym_cmds_CXX | \
|
---|
13674 | module_cmds_CXX | \
|
---|
13675 | module_expsym_cmds_CXX | \
|
---|
13676 | old_archive_from_expsyms_cmds_CXX | \
|
---|
13677 | export_symbols_cmds_CXX | \
|
---|
13678 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
---|
13679 | postinstall_cmds | postuninstall_cmds | \
|
---|
13680 | old_postinstall_cmds | old_postuninstall_cmds | \
|
---|
13681 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
---|
13682 | # Double-quote double-evaled strings.
|
---|
13683 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
---|
13684 | ;;
|
---|
13685 | *)
|
---|
13686 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
---|
13687 | ;;
|
---|
13688 | esac
|
---|
13689 | done
|
---|
13690 |
|
---|
13691 | case $lt_echo in
|
---|
13692 | *'\$0 --fallback-echo"')
|
---|
13693 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
---|
13694 | ;;
|
---|
13695 | esac
|
---|
13696 |
|
---|
13697 | cfgfile="$ofile"
|
---|
13698 |
|
---|
13699 | cat <<__EOF__ >> "$cfgfile"
|
---|
13700 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
---|
13701 |
|
---|
13702 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
13703 |
|
---|
13704 | # Shell to use when invoking shell scripts.
|
---|
13705 | SHELL=$lt_SHELL
|
---|
13706 |
|
---|
13707 | # Whether or not to build shared libraries.
|
---|
13708 | build_libtool_libs=$enable_shared
|
---|
13709 |
|
---|
13710 | # Whether or not to build static libraries.
|
---|
13711 | build_old_libs=$enable_static
|
---|
13712 |
|
---|
13713 | # Whether or not to add -lc for building shared libraries.
|
---|
13714 | build_libtool_need_lc=$archive_cmds_need_lc_CXX
|
---|
13715 |
|
---|
13716 | # Whether or not to disallow shared libs when runtime libs are static
|
---|
13717 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
|
---|
13718 |
|
---|
13719 | # Whether or not to optimize for fast installation.
|
---|
13720 | fast_install=$enable_fast_install
|
---|
13721 |
|
---|
13722 | # The host system.
|
---|
13723 | host_alias=$host_alias
|
---|
13724 | host=$host
|
---|
13725 | host_os=$host_os
|
---|
13726 |
|
---|
13727 | # The build system.
|
---|
13728 | build_alias=$build_alias
|
---|
13729 | build=$build
|
---|
13730 | build_os=$build_os
|
---|
13731 |
|
---|
13732 | # An echo program that does not interpret backslashes.
|
---|
13733 | echo=$lt_echo
|
---|
13734 |
|
---|
13735 | # The archiver.
|
---|
13736 | AR=$lt_AR
|
---|
13737 | AR_FLAGS=$lt_AR_FLAGS
|
---|
13738 |
|
---|
13739 | # A C compiler.
|
---|
13740 | LTCC=$lt_LTCC
|
---|
13741 |
|
---|
13742 | # LTCC compiler flags.
|
---|
13743 | LTCFLAGS=$lt_LTCFLAGS
|
---|
13744 |
|
---|
13745 | # A language-specific compiler.
|
---|
13746 | CC=$lt_compiler_CXX
|
---|
13747 |
|
---|
13748 | # Is the compiler the GNU C compiler?
|
---|
13749 | with_gcc=$GCC_CXX
|
---|
13750 |
|
---|
13751 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
|
---|
13752 | gcc_ver=\`gcc -dumpversion\`
|
---|
13753 |
|
---|
13754 | # An ERE matcher.
|
---|
13755 | EGREP=$lt_EGREP
|
---|
13756 |
|
---|
13757 | # The linker used to build libraries.
|
---|
13758 | LD=$lt_LD_CXX
|
---|
13759 |
|
---|
13760 | # Whether we need hard or soft links.
|
---|
13761 | LN_S=$lt_LN_S
|
---|
13762 |
|
---|
13763 | # A BSD-compatible nm program.
|
---|
13764 | NM=$lt_NM
|
---|
13765 |
|
---|
13766 | # A symbol stripping program
|
---|
13767 | STRIP=$lt_STRIP
|
---|
13768 |
|
---|
13769 | # Used to examine libraries when file_magic_cmd begins "file"
|
---|
13770 | MAGIC_CMD=$MAGIC_CMD
|
---|
13771 |
|
---|
13772 | # Used on cygwin: DLL creation program.
|
---|
13773 | DLLTOOL="$DLLTOOL"
|
---|
13774 |
|
---|
13775 | # Used on cygwin: object dumper.
|
---|
13776 | OBJDUMP="$OBJDUMP"
|
---|
13777 |
|
---|
13778 | # Used on cygwin: assembler.
|
---|
13779 | AS="$AS"
|
---|
13780 |
|
---|
13781 | # The name of the directory that contains temporary libtool files.
|
---|
13782 | objdir=$objdir
|
---|
13783 |
|
---|
13784 | # How to create reloadable object files.
|
---|
13785 | reload_flag=$lt_reload_flag
|
---|
13786 | reload_cmds=$lt_reload_cmds
|
---|
13787 |
|
---|
13788 | # How to pass a linker flag through the compiler.
|
---|
13789 | wl=$lt_lt_prog_compiler_wl_CXX
|
---|
13790 |
|
---|
13791 | # Object file suffix (normally "o").
|
---|
13792 | objext="$ac_objext"
|
---|
13793 |
|
---|
13794 | # Old archive suffix (normally "a").
|
---|
13795 | libext="$libext"
|
---|
13796 |
|
---|
13797 | # Shared library suffix (normally ".so").
|
---|
13798 | shrext_cmds='$shrext_cmds'
|
---|
13799 |
|
---|
13800 | # Executable file suffix (normally "").
|
---|
13801 | exeext="$exeext"
|
---|
13802 |
|
---|
13803 | # Additional compiler flags for building library objects.
|
---|
13804 | pic_flag=$lt_lt_prog_compiler_pic_CXX
|
---|
13805 | pic_mode=$pic_mode
|
---|
13806 |
|
---|
13807 | # What is the maximum length of a command?
|
---|
13808 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
13809 |
|
---|
13810 | # Does compiler simultaneously support -c and -o options?
|
---|
13811 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
|
---|
13812 |
|
---|
13813 | # Must we lock files when doing compilation?
|
---|
13814 | need_locks=$lt_need_locks
|
---|
13815 |
|
---|
13816 | # Do we need the lib prefix for modules?
|
---|
13817 | need_lib_prefix=$need_lib_prefix
|
---|
13818 |
|
---|
13819 | # Do we need a version for libraries?
|
---|
13820 | need_version=$need_version
|
---|
13821 |
|
---|
13822 | # Whether dlopen is supported.
|
---|
13823 | dlopen_support=$enable_dlopen
|
---|
13824 |
|
---|
13825 | # Whether dlopen of programs is supported.
|
---|
13826 | dlopen_self=$enable_dlopen_self
|
---|
13827 |
|
---|
13828 | # Whether dlopen of statically linked programs is supported.
|
---|
13829 | dlopen_self_static=$enable_dlopen_self_static
|
---|
13830 |
|
---|
13831 | # Compiler flag to prevent dynamic linking.
|
---|
13832 | link_static_flag=$lt_lt_prog_compiler_static_CXX
|
---|
13833 |
|
---|
13834 | # Compiler flag to turn off builtin functions.
|
---|
13835 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
---|
13836 |
|
---|
13837 | # Compiler flag to allow reflexive dlopens.
|
---|
13838 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
|
---|
13839 |
|
---|
13840 | # Compiler flag to generate shared objects directly from archives.
|
---|
13841 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
|
---|
13842 |
|
---|
13843 | # Compiler flag to generate thread-safe objects.
|
---|
13844 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
|
---|
13845 |
|
---|
13846 | # Library versioning type.
|
---|
13847 | version_type=$version_type
|
---|
13848 |
|
---|
13849 | # Format of library name prefix.
|
---|
13850 | libname_spec=$lt_libname_spec
|
---|
13851 |
|
---|
13852 | # List of archive names. First name is the real one, the rest are links.
|
---|
13853 | # The last name is the one that the linker finds with -lNAME.
|
---|
13854 | library_names_spec=$lt_library_names_spec
|
---|
13855 |
|
---|
13856 | # The coded name of the library, if different from the real name.
|
---|
13857 | soname_spec=$lt_soname_spec
|
---|
13858 |
|
---|
13859 | # Commands used to build and install an old-style archive.
|
---|
13860 | RANLIB=$lt_RANLIB
|
---|
13861 | old_archive_cmds=$lt_old_archive_cmds_CXX
|
---|
13862 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
13863 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
13864 |
|
---|
13865 | # Create an old-style archive from a shared archive.
|
---|
13866 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
|
---|
13867 |
|
---|
13868 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
13869 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
|
---|
13870 |
|
---|
13871 | # Commands used to build and install a shared archive.
|
---|
13872 | archive_cmds=$lt_archive_cmds_CXX
|
---|
13873 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
|
---|
13874 | postinstall_cmds=$lt_postinstall_cmds
|
---|
13875 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
13876 |
|
---|
13877 | # Commands used to build a loadable module (assumed same as above if empty)
|
---|
13878 | module_cmds=$lt_module_cmds_CXX
|
---|
13879 | module_expsym_cmds=$lt_module_expsym_cmds_CXX
|
---|
13880 |
|
---|
13881 | # Commands to strip libraries.
|
---|
13882 | old_striplib=$lt_old_striplib
|
---|
13883 | striplib=$lt_striplib
|
---|
13884 |
|
---|
13885 | # Dependencies to place before the objects being linked to create a
|
---|
13886 | # shared library.
|
---|
13887 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
13888 |
|
---|
13889 | # Dependencies to place after the objects being linked to create a
|
---|
13890 | # shared library.
|
---|
13891 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
13892 |
|
---|
13893 | # Dependencies to place before the objects being linked to create a
|
---|
13894 | # shared library.
|
---|
13895 | predeps=$lt_predeps_CXX
|
---|
13896 |
|
---|
13897 | # Dependencies to place after the objects being linked to create a
|
---|
13898 | # shared library.
|
---|
13899 | postdeps=$lt_postdeps_CXX
|
---|
13900 |
|
---|
13901 | # The library search path used internally by the compiler when linking
|
---|
13902 | # a shared library.
|
---|
13903 | 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"\`
|
---|
13904 |
|
---|
13905 | # Method to check whether dependent libraries are shared objects.
|
---|
13906 | deplibs_check_method=$lt_deplibs_check_method
|
---|
13907 |
|
---|
13908 | # Command to use when deplibs_check_method == file_magic.
|
---|
13909 | file_magic_cmd=$lt_file_magic_cmd
|
---|
13910 |
|
---|
13911 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
13912 | allow_undefined_flag=$lt_allow_undefined_flag_CXX
|
---|
13913 |
|
---|
13914 | # Flag that forces no undefined symbols.
|
---|
13915 | no_undefined_flag=$lt_no_undefined_flag_CXX
|
---|
13916 |
|
---|
13917 | # Commands used to finish a libtool library installation in a directory.
|
---|
13918 | finish_cmds=$lt_finish_cmds
|
---|
13919 |
|
---|
13920 | # Same as above, but a single script fragment to be evaled but not shown.
|
---|
13921 | finish_eval=$lt_finish_eval
|
---|
13922 |
|
---|
13923 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
13924 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
13925 |
|
---|
13926 | # Transform the output of nm in a proper C declaration
|
---|
13927 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
13928 |
|
---|
13929 | # Transform the output of nm in a C name address pair
|
---|
13930 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
13931 |
|
---|
13932 | # This is the shared library runtime path variable.
|
---|
13933 | runpath_var=$runpath_var
|
---|
13934 |
|
---|
13935 | # This is the shared library path variable.
|
---|
13936 | shlibpath_var=$shlibpath_var
|
---|
13937 |
|
---|
13938 | # Is shlibpath searched before the hard-coded library search path?
|
---|
13939 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
13940 |
|
---|
13941 | # How to hardcode a shared library path into an executable.
|
---|
13942 | hardcode_action=$hardcode_action_CXX
|
---|
13943 |
|
---|
13944 | # Whether we should hardcode library paths into libraries.
|
---|
13945 | hardcode_into_libs=$hardcode_into_libs
|
---|
13946 |
|
---|
13947 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
13948 | # This must work even if \$libdir does not exist.
|
---|
13949 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
|
---|
13950 |
|
---|
13951 | # If ld is used when linking, flag to hardcode \$libdir into
|
---|
13952 | # a binary during linking. This must work even if \$libdir does
|
---|
13953 | # not exist.
|
---|
13954 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
|
---|
13955 |
|
---|
13956 | # Whether we need a single -rpath flag with a separated argument.
|
---|
13957 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
|
---|
13958 |
|
---|
13959 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
---|
13960 | # resulting binary.
|
---|
13961 | hardcode_direct=$hardcode_direct_CXX
|
---|
13962 |
|
---|
13963 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
---|
13964 | # resulting binary.
|
---|
13965 | hardcode_minus_L=$hardcode_minus_L_CXX
|
---|
13966 |
|
---|
13967 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
---|
13968 | # the resulting binary.
|
---|
13969 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
|
---|
13970 |
|
---|
13971 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
---|
13972 | # and all subsequent libraries and executables linked against it.
|
---|
13973 | hardcode_automatic=$hardcode_automatic_CXX
|
---|
13974 |
|
---|
13975 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
13976 | # restored at relink time.
|
---|
13977 | variables_saved_for_relink="$variables_saved_for_relink"
|
---|
13978 |
|
---|
13979 | # Whether libtool must link a program against all its dependency libraries.
|
---|
13980 | link_all_deplibs=$link_all_deplibs_CXX
|
---|
13981 |
|
---|
13982 | # Compile-time system search path for libraries
|
---|
13983 | 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"\`
|
---|
13984 |
|
---|
13985 | # Run-time system search path for libraries
|
---|
13986 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
---|
13987 |
|
---|
13988 | # Fix the shell variable \$srcfile for the compiler.
|
---|
13989 | fix_srcfile_path="$fix_srcfile_path_CXX"
|
---|
13990 |
|
---|
13991 | # Set to yes if exported symbols are required.
|
---|
13992 | always_export_symbols=$always_export_symbols_CXX
|
---|
13993 |
|
---|
13994 | # The commands to list exported symbols.
|
---|
13995 | export_symbols_cmds=$lt_export_symbols_cmds_CXX
|
---|
13996 |
|
---|
13997 | # The commands to extract the exported symbol list from a shared archive.
|
---|
13998 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
13999 |
|
---|
14000 | # Symbols that should not be listed in the preloaded symbols.
|
---|
14001 | exclude_expsyms=$lt_exclude_expsyms_CXX
|
---|
14002 |
|
---|
14003 | # Symbols that must always be exported.
|
---|
14004 | include_expsyms=$lt_include_expsyms_CXX
|
---|
14005 |
|
---|
14006 | # ### END LIBTOOL TAG CONFIG: $tagname
|
---|
14007 |
|
---|
14008 | __EOF__
|
---|
14009 |
|
---|
14010 |
|
---|
14011 | else
|
---|
14012 | # If there is no Makefile yet, we rely on a make rule to execute
|
---|
14013 | # `config.status --recheck' to rerun these tests and create the
|
---|
14014 | # libtool script then.
|
---|
14015 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
---|
14016 | if test -f "$ltmain_in"; then
|
---|
14017 | test -f Makefile && make "$ltmain"
|
---|
14018 | fi
|
---|
14019 | fi
|
---|
14020 |
|
---|
14021 |
|
---|
14022 | ac_ext=c
|
---|
14023 | ac_cpp='$CPP $CPPFLAGS'
|
---|
14024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
14025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
14026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
14027 |
|
---|
14028 | CC=$lt_save_CC
|
---|
14029 | LDCXX=$LD
|
---|
14030 | LD=$lt_save_LD
|
---|
14031 | GCC=$lt_save_GCC
|
---|
14032 | with_gnu_ldcxx=$with_gnu_ld
|
---|
14033 | with_gnu_ld=$lt_save_with_gnu_ld
|
---|
14034 | lt_cv_path_LDCXX=$lt_cv_path_LD
|
---|
14035 | lt_cv_path_LD=$lt_save_path_LD
|
---|
14036 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
---|
14037 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
---|
14038 |
|
---|
14039 | else
|
---|
14040 | tagname=""
|
---|
14041 | fi
|
---|
14042 | ;;
|
---|
14043 |
|
---|
14044 | F77)
|
---|
14045 | if test -n "$F77" && test "X$F77" != "Xno"; then
|
---|
14046 |
|
---|
14047 | ac_ext=f
|
---|
14048 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
---|
14049 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
14050 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
---|
14051 |
|
---|
14052 |
|
---|
14053 | archive_cmds_need_lc_F77=no
|
---|
14054 | allow_undefined_flag_F77=
|
---|
14055 | always_export_symbols_F77=no
|
---|
14056 | archive_expsym_cmds_F77=
|
---|
14057 | export_dynamic_flag_spec_F77=
|
---|
14058 | hardcode_direct_F77=no
|
---|
14059 | hardcode_libdir_flag_spec_F77=
|
---|
14060 | hardcode_libdir_flag_spec_ld_F77=
|
---|
14061 | hardcode_libdir_separator_F77=
|
---|
14062 | hardcode_minus_L_F77=no
|
---|
14063 | hardcode_automatic_F77=no
|
---|
14064 | module_cmds_F77=
|
---|
14065 | module_expsym_cmds_F77=
|
---|
14066 | link_all_deplibs_F77=unknown
|
---|
14067 | old_archive_cmds_F77=$old_archive_cmds
|
---|
14068 | no_undefined_flag_F77=
|
---|
14069 | whole_archive_flag_spec_F77=
|
---|
14070 | enable_shared_with_static_runtimes_F77=no
|
---|
14071 |
|
---|
14072 | # Source file extension for f77 test sources.
|
---|
14073 | ac_ext=f
|
---|
14074 |
|
---|
14075 | # Object file extension for compiled f77 test sources.
|
---|
14076 | objext=o
|
---|
14077 | objext_F77=$objext
|
---|
14078 |
|
---|
14079 | # Code to be used in simple compile tests
|
---|
14080 | lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
---|
14081 |
|
---|
14082 | # Code to be used in simple link tests
|
---|
14083 | lt_simple_link_test_code=" program t\n end\n"
|
---|
14084 |
|
---|
14085 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
---|
14086 |
|
---|
14087 | # If no C compiler was specified, use CC.
|
---|
14088 | LTCC=${LTCC-"$CC"}
|
---|
14089 |
|
---|
14090 | # If no C compiler flags were specified, use CFLAGS.
|
---|
14091 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
14092 |
|
---|
14093 | # Allow CC to be a program name with arguments.
|
---|
14094 | compiler=$CC
|
---|
14095 |
|
---|
14096 |
|
---|
14097 | # save warnings/boilerplate of simple test code
|
---|
14098 | ac_outfile=conftest.$ac_objext
|
---|
14099 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
14100 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
14101 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
14102 | $rm conftest*
|
---|
14103 |
|
---|
14104 | ac_outfile=conftest.$ac_objext
|
---|
14105 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
14106 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
14107 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
14108 | $rm conftest*
|
---|
14109 |
|
---|
14110 |
|
---|
14111 | # Allow CC to be a program name with arguments.
|
---|
14112 | lt_save_CC="$CC"
|
---|
14113 | CC=${F77-"f77"}
|
---|
14114 | compiler=$CC
|
---|
14115 | compiler_F77=$CC
|
---|
14116 | for cc_temp in $compiler""; do
|
---|
14117 | case $cc_temp in
|
---|
14118 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
14119 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
14120 | \-*) ;;
|
---|
14121 | *) break;;
|
---|
14122 | esac
|
---|
14123 | done
|
---|
14124 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
14125 |
|
---|
14126 |
|
---|
14127 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
---|
14128 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
---|
14129 | echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
---|
14130 | echo "${ECHO_T}$can_build_shared" >&6
|
---|
14131 |
|
---|
14132 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
---|
14133 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
|
---|
14134 | test "$can_build_shared" = "no" && enable_shared=no
|
---|
14135 |
|
---|
14136 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
14137 | # are all built from PIC.
|
---|
14138 | case $host_os in
|
---|
14139 | aix3*)
|
---|
14140 | test "$enable_shared" = yes && enable_static=no
|
---|
14141 | if test -n "$RANLIB"; then
|
---|
14142 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
14143 | postinstall_cmds='$RANLIB $lib'
|
---|
14144 | fi
|
---|
14145 | ;;
|
---|
14146 | aix4* | aix5*)
|
---|
14147 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
---|
14148 | test "$enable_shared" = yes && enable_static=no
|
---|
14149 | fi
|
---|
14150 | ;;
|
---|
14151 | esac
|
---|
14152 | echo "$as_me:$LINENO: result: $enable_shared" >&5
|
---|
14153 | echo "${ECHO_T}$enable_shared" >&6
|
---|
14154 |
|
---|
14155 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
---|
14156 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
|
---|
14157 | # Make sure either enable_shared or enable_static is yes.
|
---|
14158 | test "$enable_shared" = yes || enable_static=yes
|
---|
14159 | echo "$as_me:$LINENO: result: $enable_static" >&5
|
---|
14160 | echo "${ECHO_T}$enable_static" >&6
|
---|
14161 |
|
---|
14162 | GCC_F77="$G77"
|
---|
14163 | LD_F77="$LD"
|
---|
14164 |
|
---|
14165 | lt_prog_compiler_wl_F77=
|
---|
14166 | lt_prog_compiler_pic_F77=
|
---|
14167 | lt_prog_compiler_static_F77=
|
---|
14168 |
|
---|
14169 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
---|
14170 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
---|
14171 |
|
---|
14172 | if test "$GCC" = yes; then
|
---|
14173 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14174 | lt_prog_compiler_static_F77='-static'
|
---|
14175 |
|
---|
14176 | case $host_os in
|
---|
14177 | aix*)
|
---|
14178 | # All AIX code is PIC.
|
---|
14179 | if test "$host_cpu" = ia64; then
|
---|
14180 | # AIX 5 now supports IA64 processor
|
---|
14181 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14182 | fi
|
---|
14183 | ;;
|
---|
14184 |
|
---|
14185 | amigaos*)
|
---|
14186 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
14187 | # adding the `-m68020' flag to GCC prevents building anything better,
|
---|
14188 | # like `-m68040'.
|
---|
14189 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
---|
14190 | ;;
|
---|
14191 |
|
---|
14192 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
14193 | # PIC is the default for these OSes.
|
---|
14194 | ;;
|
---|
14195 |
|
---|
14196 | mingw* | pw32* | os2*)
|
---|
14197 | # This hack is so that the source file can tell whether it is being
|
---|
14198 | # built for inclusion in a dll (and should export symbols for example).
|
---|
14199 | lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
---|
14200 | ;;
|
---|
14201 |
|
---|
14202 | darwin* | rhapsody*)
|
---|
14203 | # PIC is the default on this platform
|
---|
14204 | # Common symbols not allowed in MH_DYLIB files
|
---|
14205 | lt_prog_compiler_pic_F77='-fno-common'
|
---|
14206 | ;;
|
---|
14207 |
|
---|
14208 | interix3*)
|
---|
14209 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
14210 | # Instead, we relocate shared libraries at runtime.
|
---|
14211 | ;;
|
---|
14212 |
|
---|
14213 | msdosdjgpp*)
|
---|
14214 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
14215 | # on systems that don't support them.
|
---|
14216 | lt_prog_compiler_can_build_shared_F77=no
|
---|
14217 | enable_shared=no
|
---|
14218 | ;;
|
---|
14219 |
|
---|
14220 | sysv4*MP*)
|
---|
14221 | if test -d /usr/nec; then
|
---|
14222 | lt_prog_compiler_pic_F77=-Kconform_pic
|
---|
14223 | fi
|
---|
14224 | ;;
|
---|
14225 |
|
---|
14226 | hpux*)
|
---|
14227 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
14228 | # not for PA HP-UX.
|
---|
14229 | case $host_cpu in
|
---|
14230 | hppa*64*|ia64*)
|
---|
14231 | # +Z the default
|
---|
14232 | ;;
|
---|
14233 | *)
|
---|
14234 | lt_prog_compiler_pic_F77='-fPIC'
|
---|
14235 | ;;
|
---|
14236 | esac
|
---|
14237 | ;;
|
---|
14238 |
|
---|
14239 | *)
|
---|
14240 | lt_prog_compiler_pic_F77='-fPIC'
|
---|
14241 | ;;
|
---|
14242 | esac
|
---|
14243 | else
|
---|
14244 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
14245 | case $host_os in
|
---|
14246 | aix*)
|
---|
14247 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14248 | if test "$host_cpu" = ia64; then
|
---|
14249 | # AIX 5 now supports IA64 processor
|
---|
14250 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14251 | else
|
---|
14252 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
---|
14253 | fi
|
---|
14254 | ;;
|
---|
14255 | darwin*)
|
---|
14256 | # PIC is the default on this platform
|
---|
14257 | # Common symbols not allowed in MH_DYLIB files
|
---|
14258 | case $cc_basename in
|
---|
14259 | xlc*)
|
---|
14260 | lt_prog_compiler_pic_F77='-qnocommon'
|
---|
14261 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14262 | ;;
|
---|
14263 | esac
|
---|
14264 | ;;
|
---|
14265 |
|
---|
14266 | mingw* | pw32* | os2*)
|
---|
14267 | # This hack is so that the source file can tell whether it is being
|
---|
14268 | # built for inclusion in a dll (and should export symbols for example).
|
---|
14269 | lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
---|
14270 | ;;
|
---|
14271 |
|
---|
14272 | hpux9* | hpux10* | hpux11*)
|
---|
14273 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14274 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
14275 | # not for PA HP-UX.
|
---|
14276 | case $host_cpu in
|
---|
14277 | hppa*64*|ia64*)
|
---|
14278 | # +Z the default
|
---|
14279 | ;;
|
---|
14280 | *)
|
---|
14281 | lt_prog_compiler_pic_F77='+Z'
|
---|
14282 | ;;
|
---|
14283 | esac
|
---|
14284 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
14285 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
---|
14286 | ;;
|
---|
14287 |
|
---|
14288 | irix5* | irix6* | nonstopux*)
|
---|
14289 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14290 | # PIC (with -KPIC) is the default.
|
---|
14291 | lt_prog_compiler_static_F77='-non_shared'
|
---|
14292 | ;;
|
---|
14293 |
|
---|
14294 | newsos6)
|
---|
14295 | lt_prog_compiler_pic_F77='-KPIC'
|
---|
14296 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14297 | ;;
|
---|
14298 |
|
---|
14299 | linux*)
|
---|
14300 | case $cc_basename in
|
---|
14301 | icc* | ecc*)
|
---|
14302 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14303 | lt_prog_compiler_pic_F77='-KPIC'
|
---|
14304 | lt_prog_compiler_static_F77='-static'
|
---|
14305 | ;;
|
---|
14306 | pgcc* | pgf77* | pgf90* | pgf95*)
|
---|
14307 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
14308 | # which looks to be a dead project)
|
---|
14309 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14310 | lt_prog_compiler_pic_F77='-fpic'
|
---|
14311 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14312 | ;;
|
---|
14313 | ccc*)
|
---|
14314 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14315 | # All Alpha code is PIC.
|
---|
14316 | lt_prog_compiler_static_F77='-non_shared'
|
---|
14317 | ;;
|
---|
14318 | esac
|
---|
14319 | ;;
|
---|
14320 |
|
---|
14321 | osf3* | osf4* | osf5*)
|
---|
14322 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14323 | # All OSF/1 code is PIC.
|
---|
14324 | lt_prog_compiler_static_F77='-non_shared'
|
---|
14325 | ;;
|
---|
14326 |
|
---|
14327 | solaris*)
|
---|
14328 | lt_prog_compiler_pic_F77='-KPIC'
|
---|
14329 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14330 | case $cc_basename in
|
---|
14331 | f77* | f90* | f95*)
|
---|
14332 | lt_prog_compiler_wl_F77='-Qoption ld ';;
|
---|
14333 | *)
|
---|
14334 | lt_prog_compiler_wl_F77='-Wl,';;
|
---|
14335 | esac
|
---|
14336 | ;;
|
---|
14337 |
|
---|
14338 | sunos4*)
|
---|
14339 | lt_prog_compiler_wl_F77='-Qoption ld '
|
---|
14340 | lt_prog_compiler_pic_F77='-PIC'
|
---|
14341 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14342 | ;;
|
---|
14343 |
|
---|
14344 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
14345 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14346 | lt_prog_compiler_pic_F77='-KPIC'
|
---|
14347 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14348 | ;;
|
---|
14349 |
|
---|
14350 | sysv4*MP*)
|
---|
14351 | if test -d /usr/nec ;then
|
---|
14352 | lt_prog_compiler_pic_F77='-Kconform_pic'
|
---|
14353 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14354 | fi
|
---|
14355 | ;;
|
---|
14356 |
|
---|
14357 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
14358 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14359 | lt_prog_compiler_pic_F77='-KPIC'
|
---|
14360 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14361 | ;;
|
---|
14362 |
|
---|
14363 | unicos*)
|
---|
14364 | lt_prog_compiler_wl_F77='-Wl,'
|
---|
14365 | lt_prog_compiler_can_build_shared_F77=no
|
---|
14366 | ;;
|
---|
14367 |
|
---|
14368 | uts4*)
|
---|
14369 | lt_prog_compiler_pic_F77='-pic'
|
---|
14370 | lt_prog_compiler_static_F77='-Bstatic'
|
---|
14371 | ;;
|
---|
14372 |
|
---|
14373 | *)
|
---|
14374 | lt_prog_compiler_can_build_shared_F77=no
|
---|
14375 | ;;
|
---|
14376 | esac
|
---|
14377 | fi
|
---|
14378 |
|
---|
14379 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
|
---|
14380 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
|
---|
14381 |
|
---|
14382 | #
|
---|
14383 | # Check to make sure the PIC flag actually works.
|
---|
14384 | #
|
---|
14385 | if test -n "$lt_prog_compiler_pic_F77"; then
|
---|
14386 |
|
---|
14387 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
---|
14388 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
|
---|
14389 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
|
---|
14390 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
14391 | else
|
---|
14392 | lt_prog_compiler_pic_works_F77=no
|
---|
14393 | ac_outfile=conftest.$ac_objext
|
---|
14394 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
14395 | lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
---|
14396 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
14397 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
14398 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
14399 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
14400 | # The option is referenced via a variable to avoid confusing sed.
|
---|
14401 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
14402 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
14403 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
14404 | -e 's:$: $lt_compiler_flag:'`
|
---|
14405 | (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
|
---|
14406 | (eval "$lt_compile" 2>conftest.err)
|
---|
14407 | ac_status=$?
|
---|
14408 | cat conftest.err >&5
|
---|
14409 | echo "$as_me:14409: \$? = $ac_status" >&5
|
---|
14410 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
14411 | # The compiler can only warn and ignore the option if not recognized
|
---|
14412 | # So say no if there are warnings other than the usual output.
|
---|
14413 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
14414 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
14415 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
14416 | lt_prog_compiler_pic_works_F77=yes
|
---|
14417 | fi
|
---|
14418 | fi
|
---|
14419 | $rm conftest*
|
---|
14420 |
|
---|
14421 | fi
|
---|
14422 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
|
---|
14423 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
|
---|
14424 |
|
---|
14425 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
|
---|
14426 | case $lt_prog_compiler_pic_F77 in
|
---|
14427 | "" | " "*) ;;
|
---|
14428 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
---|
14429 | esac
|
---|
14430 | else
|
---|
14431 | lt_prog_compiler_pic_F77=
|
---|
14432 | lt_prog_compiler_can_build_shared_F77=no
|
---|
14433 | fi
|
---|
14434 |
|
---|
14435 | fi
|
---|
14436 | case $host_os in
|
---|
14437 | # For platforms which do not support PIC, -DPIC is meaningless:
|
---|
14438 | *djgpp*)
|
---|
14439 | lt_prog_compiler_pic_F77=
|
---|
14440 | ;;
|
---|
14441 | *)
|
---|
14442 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
---|
14443 | ;;
|
---|
14444 | esac
|
---|
14445 |
|
---|
14446 | #
|
---|
14447 | # Check to make sure the static flag actually works.
|
---|
14448 | #
|
---|
14449 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
---|
14450 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
14451 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
---|
14452 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then
|
---|
14453 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
14454 | else
|
---|
14455 | lt_prog_compiler_static_works_F77=no
|
---|
14456 | save_LDFLAGS="$LDFLAGS"
|
---|
14457 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
14458 | printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
14459 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
14460 | # The linker can only warn and ignore the option if not recognized
|
---|
14461 | # So say no if there are warnings
|
---|
14462 | if test -s conftest.err; then
|
---|
14463 | # Append any errors to the config.log.
|
---|
14464 | cat conftest.err 1>&5
|
---|
14465 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
---|
14466 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
14467 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
14468 | lt_prog_compiler_static_works_F77=yes
|
---|
14469 | fi
|
---|
14470 | else
|
---|
14471 | lt_prog_compiler_static_works_F77=yes
|
---|
14472 | fi
|
---|
14473 | fi
|
---|
14474 | $rm conftest*
|
---|
14475 | LDFLAGS="$save_LDFLAGS"
|
---|
14476 |
|
---|
14477 | fi
|
---|
14478 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
|
---|
14479 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
|
---|
14480 |
|
---|
14481 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then
|
---|
14482 | :
|
---|
14483 | else
|
---|
14484 | lt_prog_compiler_static_F77=
|
---|
14485 | fi
|
---|
14486 |
|
---|
14487 |
|
---|
14488 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
14489 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
---|
14490 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
---|
14491 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
14492 | else
|
---|
14493 | lt_cv_prog_compiler_c_o_F77=no
|
---|
14494 | $rm -r conftest 2>/dev/null
|
---|
14495 | mkdir conftest
|
---|
14496 | cd conftest
|
---|
14497 | mkdir out
|
---|
14498 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
14499 |
|
---|
14500 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
14501 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
14502 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
14503 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
14504 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
14505 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
14506 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
14507 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
14508 | -e 's:$: $lt_compiler_flag:'`
|
---|
14509 | (eval echo "\"\$as_me:14509: $lt_compile\"" >&5)
|
---|
14510 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
14511 | ac_status=$?
|
---|
14512 | cat out/conftest.err >&5
|
---|
14513 | echo "$as_me:14513: \$? = $ac_status" >&5
|
---|
14514 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
14515 | then
|
---|
14516 | # The compiler can only warn and ignore the option if not recognized
|
---|
14517 | # So say no if there are warnings
|
---|
14518 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
---|
14519 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
14520 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
14521 | lt_cv_prog_compiler_c_o_F77=yes
|
---|
14522 | fi
|
---|
14523 | fi
|
---|
14524 | chmod u+w . 2>&5
|
---|
14525 | $rm conftest*
|
---|
14526 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
14527 | # template instantiation
|
---|
14528 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
---|
14529 | $rm out/* && rmdir out
|
---|
14530 | cd ..
|
---|
14531 | rmdir conftest
|
---|
14532 | $rm conftest*
|
---|
14533 |
|
---|
14534 | fi
|
---|
14535 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
---|
14536 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
|
---|
14537 |
|
---|
14538 |
|
---|
14539 | hard_links="nottested"
|
---|
14540 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
---|
14541 | # do not overwrite the value of need_locks provided by the user
|
---|
14542 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
---|
14543 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
---|
14544 | hard_links=yes
|
---|
14545 | $rm conftest*
|
---|
14546 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
14547 | touch conftest.a
|
---|
14548 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
14549 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
14550 | echo "$as_me:$LINENO: result: $hard_links" >&5
|
---|
14551 | echo "${ECHO_T}$hard_links" >&6
|
---|
14552 | if test "$hard_links" = no; then
|
---|
14553 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
---|
14554 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
---|
14555 | need_locks=warn
|
---|
14556 | fi
|
---|
14557 | else
|
---|
14558 | need_locks=no
|
---|
14559 | fi
|
---|
14560 |
|
---|
14561 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
14562 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
---|
14563 |
|
---|
14564 | runpath_var=
|
---|
14565 | allow_undefined_flag_F77=
|
---|
14566 | enable_shared_with_static_runtimes_F77=no
|
---|
14567 | archive_cmds_F77=
|
---|
14568 | archive_expsym_cmds_F77=
|
---|
14569 | old_archive_From_new_cmds_F77=
|
---|
14570 | old_archive_from_expsyms_cmds_F77=
|
---|
14571 | export_dynamic_flag_spec_F77=
|
---|
14572 | whole_archive_flag_spec_F77=
|
---|
14573 | thread_safe_flag_spec_F77=
|
---|
14574 | hardcode_libdir_flag_spec_F77=
|
---|
14575 | hardcode_libdir_flag_spec_ld_F77=
|
---|
14576 | hardcode_libdir_separator_F77=
|
---|
14577 | hardcode_direct_F77=no
|
---|
14578 | hardcode_minus_L_F77=no
|
---|
14579 | hardcode_shlibpath_var_F77=unsupported
|
---|
14580 | link_all_deplibs_F77=unknown
|
---|
14581 | hardcode_automatic_F77=no
|
---|
14582 | module_cmds_F77=
|
---|
14583 | module_expsym_cmds_F77=
|
---|
14584 | always_export_symbols_F77=no
|
---|
14585 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
14586 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
14587 | # included in the symbol list
|
---|
14588 | include_expsyms_F77=
|
---|
14589 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
14590 | # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
---|
14591 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
---|
14592 | # as well as any symbol that contains `d'.
|
---|
14593 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
|
---|
14594 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
14595 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
14596 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
14597 | # rely on this symbol name, it's probably fine to never include it in
|
---|
14598 | # preloaded symbol tables.
|
---|
14599 | extract_expsyms_cmds=
|
---|
14600 | # Just being paranoid about ensuring that cc_basename is set.
|
---|
14601 | for cc_temp in $compiler""; do
|
---|
14602 | case $cc_temp in
|
---|
14603 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
14604 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
14605 | \-*) ;;
|
---|
14606 | *) break;;
|
---|
14607 | esac
|
---|
14608 | done
|
---|
14609 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
14610 |
|
---|
14611 | case $host_os in
|
---|
14612 | cygwin* | mingw* | pw32*)
|
---|
14613 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
14614 | # When not using gcc, we currently assume that we are using
|
---|
14615 | # Microsoft Visual C++.
|
---|
14616 | if test "$GCC" != yes; then
|
---|
14617 | with_gnu_ld=no
|
---|
14618 | fi
|
---|
14619 | ;;
|
---|
14620 | interix*)
|
---|
14621 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
14622 | with_gnu_ld=yes
|
---|
14623 | ;;
|
---|
14624 | openbsd*)
|
---|
14625 | with_gnu_ld=no
|
---|
14626 | ;;
|
---|
14627 | esac
|
---|
14628 |
|
---|
14629 | ld_shlibs_F77=yes
|
---|
14630 | if test "$with_gnu_ld" = yes; then
|
---|
14631 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
14632 | wlarc='${wl}'
|
---|
14633 |
|
---|
14634 | # Set some defaults for GNU ld with shared library support. These
|
---|
14635 | # are reset later if shared libraries are not supported. Putting them
|
---|
14636 | # here allows them to be overridden if necessary.
|
---|
14637 | runpath_var=LD_RUN_PATH
|
---|
14638 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
|
---|
14639 | export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
---|
14640 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
14641 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
---|
14642 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
---|
14643 | else
|
---|
14644 | whole_archive_flag_spec_F77=
|
---|
14645 | fi
|
---|
14646 | supports_anon_versioning=no
|
---|
14647 | case `$LD -v 2>/dev/null` in
|
---|
14648 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
14649 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
14650 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
14651 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
14652 | *) supports_anon_versioning=yes ;;
|
---|
14653 | esac
|
---|
14654 |
|
---|
14655 | # See if GNU ld supports shared libraries.
|
---|
14656 | case $host_os in
|
---|
14657 | aix3* | aix4* | aix5*)
|
---|
14658 | # On AIX/PPC, the GNU linker is very broken
|
---|
14659 | if test "$host_cpu" != ia64; then
|
---|
14660 | ld_shlibs_F77=no
|
---|
14661 | cat <<EOF 1>&2
|
---|
14662 |
|
---|
14663 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
---|
14664 | *** to be unable to reliably create shared libraries on AIX.
|
---|
14665 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
14666 | *** really care for shared libraries, you may want to modify your PATH
|
---|
14667 | *** so that a non-GNU linker is found, and then restart.
|
---|
14668 |
|
---|
14669 | EOF
|
---|
14670 | fi
|
---|
14671 | ;;
|
---|
14672 |
|
---|
14673 | amigaos*)
|
---|
14674 | 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)'
|
---|
14675 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
14676 | hardcode_minus_L_F77=yes
|
---|
14677 |
|
---|
14678 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
---|
14679 | # that the semantics of dynamic libraries on AmigaOS, at least up
|
---|
14680 | # to version 4, is to share data among multiple programs linked
|
---|
14681 | # with the same dynamic library. Since this doesn't match the
|
---|
14682 | # behavior of shared libraries on other platforms, we can't use
|
---|
14683 | # them.
|
---|
14684 | ld_shlibs_F77=no
|
---|
14685 | ;;
|
---|
14686 |
|
---|
14687 | beos*)
|
---|
14688 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
14689 | allow_undefined_flag_F77=unsupported
|
---|
14690 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
14691 | # support --undefined. This deserves some investigation. FIXME
|
---|
14692 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
14693 | else
|
---|
14694 | ld_shlibs_F77=no
|
---|
14695 | fi
|
---|
14696 | ;;
|
---|
14697 |
|
---|
14698 | cygwin* | mingw* | pw32*)
|
---|
14699 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
---|
14700 | # as there is no search path for DLLs.
|
---|
14701 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
14702 | allow_undefined_flag_F77=unsupported
|
---|
14703 | always_export_symbols_F77=no
|
---|
14704 | enable_shared_with_static_runtimes_F77=yes
|
---|
14705 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
14706 |
|
---|
14707 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
---|
14708 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
14709 | # If the export-symbols file already is a .def file (1st line
|
---|
14710 | # is EXPORTS), use it as is; otherwise, prepend...
|
---|
14711 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
---|
14712 | cp $export_symbols $output_objdir/$soname.def;
|
---|
14713 | else
|
---|
14714 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
14715 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
14716 | fi~
|
---|
14717 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
14718 | else
|
---|
14719 | ld_shlibs_F77=no
|
---|
14720 | fi
|
---|
14721 | ;;
|
---|
14722 |
|
---|
14723 | interix3*)
|
---|
14724 | hardcode_direct_F77=no
|
---|
14725 | hardcode_shlibpath_var_F77=no
|
---|
14726 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
---|
14727 | export_dynamic_flag_spec_F77='${wl}-E'
|
---|
14728 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
14729 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
14730 | # default) and relocated if they conflict, which is a slow very memory
|
---|
14731 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
14732 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
14733 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
14734 | 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'
|
---|
14735 | 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'
|
---|
14736 | ;;
|
---|
14737 |
|
---|
14738 | linux*)
|
---|
14739 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
14740 | tmp_addflag=
|
---|
14741 | case $cc_basename,$host_cpu in
|
---|
14742 | pgcc*) # Portland Group C compiler
|
---|
14743 | 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'
|
---|
14744 | tmp_addflag=' $pic_flag'
|
---|
14745 | ;;
|
---|
14746 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
---|
14747 | 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'
|
---|
14748 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
14749 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
14750 | tmp_addflag=' -i_dynamic' ;;
|
---|
14751 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
14752 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
14753 | ifc* | ifort*) # Intel Fortran compiler
|
---|
14754 | tmp_addflag=' -nofor_main' ;;
|
---|
14755 | esac
|
---|
14756 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
14757 |
|
---|
14758 | if test $supports_anon_versioning = yes; then
|
---|
14759 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
---|
14760 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
14761 | $echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
14762 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
---|
14763 | fi
|
---|
14764 | else
|
---|
14765 | ld_shlibs_F77=no
|
---|
14766 | fi
|
---|
14767 | ;;
|
---|
14768 |
|
---|
14769 | netbsd*)
|
---|
14770 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
14771 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
14772 | wlarc=
|
---|
14773 | else
|
---|
14774 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
14775 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
14776 | fi
|
---|
14777 | ;;
|
---|
14778 |
|
---|
14779 | solaris*)
|
---|
14780 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
---|
14781 | ld_shlibs_F77=no
|
---|
14782 | cat <<EOF 1>&2
|
---|
14783 |
|
---|
14784 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
14785 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
14786 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
14787 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
14788 | *** your PATH or compiler configuration so that the native linker is
|
---|
14789 | *** used, and then restart.
|
---|
14790 |
|
---|
14791 | EOF
|
---|
14792 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
14793 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
14794 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
14795 | else
|
---|
14796 | ld_shlibs_F77=no
|
---|
14797 | fi
|
---|
14798 | ;;
|
---|
14799 |
|
---|
14800 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
14801 | case `$LD -v 2>&1` in
|
---|
14802 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
14803 | ld_shlibs_F77=no
|
---|
14804 | cat <<_LT_EOF 1>&2
|
---|
14805 |
|
---|
14806 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
---|
14807 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
14808 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
14809 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
14810 | *** your PATH or compiler configuration so that the native linker is
|
---|
14811 | *** used, and then restart.
|
---|
14812 |
|
---|
14813 | _LT_EOF
|
---|
14814 | ;;
|
---|
14815 | *)
|
---|
14816 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
14817 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
---|
14818 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
---|
14819 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
---|
14820 | else
|
---|
14821 | ld_shlibs_F77=no
|
---|
14822 | fi
|
---|
14823 | ;;
|
---|
14824 | esac
|
---|
14825 | ;;
|
---|
14826 |
|
---|
14827 | sunos4*)
|
---|
14828 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
14829 | wlarc=
|
---|
14830 | hardcode_direct_F77=yes
|
---|
14831 | hardcode_shlibpath_var_F77=no
|
---|
14832 | ;;
|
---|
14833 |
|
---|
14834 | *)
|
---|
14835 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
14836 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
14837 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
14838 | else
|
---|
14839 | ld_shlibs_F77=no
|
---|
14840 | fi
|
---|
14841 | ;;
|
---|
14842 | esac
|
---|
14843 |
|
---|
14844 | if test "$ld_shlibs_F77" = no; then
|
---|
14845 | runpath_var=
|
---|
14846 | hardcode_libdir_flag_spec_F77=
|
---|
14847 | export_dynamic_flag_spec_F77=
|
---|
14848 | whole_archive_flag_spec_F77=
|
---|
14849 | fi
|
---|
14850 | else
|
---|
14851 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
14852 | case $host_os in
|
---|
14853 | aix3*)
|
---|
14854 | allow_undefined_flag_F77=unsupported
|
---|
14855 | always_export_symbols_F77=yes
|
---|
14856 | 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'
|
---|
14857 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
14858 | # are no directories specified by -L.
|
---|
14859 | hardcode_minus_L_F77=yes
|
---|
14860 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
---|
14861 | # Neither direct hardcoding nor static linking is supported with a
|
---|
14862 | # broken collect2.
|
---|
14863 | hardcode_direct_F77=unsupported
|
---|
14864 | fi
|
---|
14865 | ;;
|
---|
14866 |
|
---|
14867 | aix4* | aix5*)
|
---|
14868 | if test "$host_cpu" = ia64; then
|
---|
14869 | # On IA64, the linker does run time linking by default, so we don't
|
---|
14870 | # have to do anything special.
|
---|
14871 | aix_use_runtimelinking=no
|
---|
14872 | exp_sym_flag='-Bexport'
|
---|
14873 | no_entry_flag=""
|
---|
14874 | else
|
---|
14875 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
14876 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
---|
14877 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
---|
14878 | 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'
|
---|
14879 | else
|
---|
14880 | 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'
|
---|
14881 | fi
|
---|
14882 | aix_use_runtimelinking=no
|
---|
14883 |
|
---|
14884 | # Test if we are trying to use run time linking or normal
|
---|
14885 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
14886 | # need to do runtime linking.
|
---|
14887 | case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
---|
14888 | for ld_flag in $LDFLAGS; do
|
---|
14889 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
---|
14890 | aix_use_runtimelinking=yes
|
---|
14891 | break
|
---|
14892 | fi
|
---|
14893 | done
|
---|
14894 | ;;
|
---|
14895 | esac
|
---|
14896 |
|
---|
14897 | exp_sym_flag='-bexport'
|
---|
14898 | no_entry_flag='-bnoentry'
|
---|
14899 | fi
|
---|
14900 |
|
---|
14901 | # When large executables or shared objects are built, AIX ld can
|
---|
14902 | # have problems creating the table of contents. If linking a library
|
---|
14903 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
14904 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
14905 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
14906 |
|
---|
14907 | archive_cmds_F77=''
|
---|
14908 | hardcode_direct_F77=yes
|
---|
14909 | hardcode_libdir_separator_F77=':'
|
---|
14910 | link_all_deplibs_F77=yes
|
---|
14911 |
|
---|
14912 | if test "$GCC" = yes; then
|
---|
14913 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
14914 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
14915 | # below for broken collect2 doesn't work under 4.3+
|
---|
14916 | collect2name=`${CC} -print-prog-name=collect2`
|
---|
14917 | if test -f "$collect2name" && \
|
---|
14918 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
---|
14919 | then
|
---|
14920 | # We have reworked collect2
|
---|
14921 | hardcode_direct_F77=yes
|
---|
14922 | else
|
---|
14923 | # We have old collect2
|
---|
14924 | hardcode_direct_F77=unsupported
|
---|
14925 | # It fails to find uninstalled libraries when the uninstalled
|
---|
14926 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
14927 | # to unsupported forces relinking
|
---|
14928 | hardcode_minus_L_F77=yes
|
---|
14929 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
14930 | hardcode_libdir_separator_F77=
|
---|
14931 | fi
|
---|
14932 | ;;
|
---|
14933 | esac
|
---|
14934 | shared_flag='-shared'
|
---|
14935 | if test "$aix_use_runtimelinking" = yes; then
|
---|
14936 | shared_flag="$shared_flag "'${wl}-G'
|
---|
14937 | fi
|
---|
14938 | else
|
---|
14939 | # not using gcc
|
---|
14940 | if test "$host_cpu" = ia64; then
|
---|
14941 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
14942 | # chokes on -Wl,-G. The following line is correct:
|
---|
14943 | shared_flag='-G'
|
---|
14944 | else
|
---|
14945 | if test "$aix_use_runtimelinking" = yes; then
|
---|
14946 | shared_flag='${wl}-G'
|
---|
14947 | else
|
---|
14948 | shared_flag='${wl}-bM:SRE'
|
---|
14949 | fi
|
---|
14950 | fi
|
---|
14951 | fi
|
---|
14952 |
|
---|
14953 | # It seems that -bexpall does not export symbols beginning with
|
---|
14954 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
14955 | always_export_symbols_F77=yes
|
---|
14956 | if test "$aix_use_runtimelinking" = yes; then
|
---|
14957 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
14958 | # -berok will link without error, but may produce a broken library.
|
---|
14959 | allow_undefined_flag_F77='-berok'
|
---|
14960 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
14961 | cat >conftest.$ac_ext <<_ACEOF
|
---|
14962 | program main
|
---|
14963 |
|
---|
14964 | end
|
---|
14965 | _ACEOF
|
---|
14966 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
14967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
14968 | (eval $ac_link) 2>conftest.er1
|
---|
14969 | ac_status=$?
|
---|
14970 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
14971 | rm -f conftest.er1
|
---|
14972 | cat conftest.err >&5
|
---|
14973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
14974 | (exit $ac_status); } &&
|
---|
14975 | { ac_try='test -z "$ac_f77_werror_flag"
|
---|
14976 | || test ! -s conftest.err'
|
---|
14977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
14978 | (eval $ac_try) 2>&5
|
---|
14979 | ac_status=$?
|
---|
14980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
14981 | (exit $ac_status); }; } &&
|
---|
14982 | { ac_try='test -s conftest$ac_exeext'
|
---|
14983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
14984 | (eval $ac_try) 2>&5
|
---|
14985 | ac_status=$?
|
---|
14986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
14987 | (exit $ac_status); }; }; then
|
---|
14988 |
|
---|
14989 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
14990 | }'`
|
---|
14991 | # Check for a 64-bit object if we didn't find anything.
|
---|
14992 | 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; }
|
---|
14993 | }'`; fi
|
---|
14994 | else
|
---|
14995 | echo "$as_me: failed program was:" >&5
|
---|
14996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
14997 |
|
---|
14998 | fi
|
---|
14999 | rm -f conftest.err conftest.$ac_objext \
|
---|
15000 | conftest$ac_exeext conftest.$ac_ext
|
---|
15001 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
15002 |
|
---|
15003 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
15004 | 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"
|
---|
15005 | else
|
---|
15006 | if test "$host_cpu" = ia64; then
|
---|
15007 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
---|
15008 | allow_undefined_flag_F77="-z nodefs"
|
---|
15009 | 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"
|
---|
15010 | else
|
---|
15011 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
15012 | cat >conftest.$ac_ext <<_ACEOF
|
---|
15013 | program main
|
---|
15014 |
|
---|
15015 | end
|
---|
15016 | _ACEOF
|
---|
15017 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
15018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
15019 | (eval $ac_link) 2>conftest.er1
|
---|
15020 | ac_status=$?
|
---|
15021 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
15022 | rm -f conftest.er1
|
---|
15023 | cat conftest.err >&5
|
---|
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15025 | (exit $ac_status); } &&
|
---|
15026 | { ac_try='test -z "$ac_f77_werror_flag"
|
---|
15027 | || test ! -s conftest.err'
|
---|
15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
15029 | (eval $ac_try) 2>&5
|
---|
15030 | ac_status=$?
|
---|
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15032 | (exit $ac_status); }; } &&
|
---|
15033 | { ac_try='test -s conftest$ac_exeext'
|
---|
15034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
15035 | (eval $ac_try) 2>&5
|
---|
15036 | ac_status=$?
|
---|
15037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15038 | (exit $ac_status); }; }; then
|
---|
15039 |
|
---|
15040 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
15041 | }'`
|
---|
15042 | # Check for a 64-bit object if we didn't find anything.
|
---|
15043 | 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; }
|
---|
15044 | }'`; fi
|
---|
15045 | else
|
---|
15046 | echo "$as_me: failed program was:" >&5
|
---|
15047 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
15048 |
|
---|
15049 | fi
|
---|
15050 | rm -f conftest.err conftest.$ac_objext \
|
---|
15051 | conftest$ac_exeext conftest.$ac_ext
|
---|
15052 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
15053 |
|
---|
15054 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
15055 | # Warning - without using the other run time loading flags,
|
---|
15056 | # -berok will link without error, but may produce a broken library.
|
---|
15057 | no_undefined_flag_F77=' ${wl}-bernotok'
|
---|
15058 | allow_undefined_flag_F77=' ${wl}-berok'
|
---|
15059 | # Exported symbols can be pulled into shared objects from archives
|
---|
15060 | whole_archive_flag_spec_F77='$convenience'
|
---|
15061 | archive_cmds_need_lc_F77=yes
|
---|
15062 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
15063 | 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'
|
---|
15064 | fi
|
---|
15065 | fi
|
---|
15066 | ;;
|
---|
15067 |
|
---|
15068 | amigaos*)
|
---|
15069 | 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)'
|
---|
15070 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
15071 | hardcode_minus_L_F77=yes
|
---|
15072 | # see comment about different semantics on the GNU ld section
|
---|
15073 | ld_shlibs_F77=no
|
---|
15074 | ;;
|
---|
15075 |
|
---|
15076 | bsdi[45]*)
|
---|
15077 | export_dynamic_flag_spec_F77=-rdynamic
|
---|
15078 | ;;
|
---|
15079 |
|
---|
15080 | cygwin* | mingw* | pw32*)
|
---|
15081 | # When not using gcc, we currently assume that we are using
|
---|
15082 | # Microsoft Visual C++.
|
---|
15083 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
15084 | # no search path for DLLs.
|
---|
15085 | hardcode_libdir_flag_spec_F77=' '
|
---|
15086 | allow_undefined_flag_F77=unsupported
|
---|
15087 | # Tell ltmain to make .lib files, not .a files.
|
---|
15088 | libext=lib
|
---|
15089 | # Tell ltmain to make .dll files, not .so files.
|
---|
15090 | shrext_cmds=".dll"
|
---|
15091 | # FIXME: Setting linknames here is a bad hack.
|
---|
15092 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
15093 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
15094 | old_archive_From_new_cmds_F77='true'
|
---|
15095 | # FIXME: Should let the user specify the lib program.
|
---|
15096 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
---|
15097 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
---|
15098 | enable_shared_with_static_runtimes_F77=yes
|
---|
15099 | ;;
|
---|
15100 |
|
---|
15101 | darwin* | rhapsody*)
|
---|
15102 | case $host_os in
|
---|
15103 | rhapsody* | darwin1.[012])
|
---|
15104 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
---|
15105 | ;;
|
---|
15106 | *) # Darwin 1.3 on
|
---|
15107 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
---|
15108 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
15109 | else
|
---|
15110 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
---|
15111 | 10.[012])
|
---|
15112 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
15113 | ;;
|
---|
15114 | 10.*)
|
---|
15115 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
---|
15116 | ;;
|
---|
15117 | esac
|
---|
15118 | fi
|
---|
15119 | ;;
|
---|
15120 | esac
|
---|
15121 | archive_cmds_need_lc_F77=no
|
---|
15122 | hardcode_direct_F77=no
|
---|
15123 | hardcode_automatic_F77=yes
|
---|
15124 | hardcode_shlibpath_var_F77=unsupported
|
---|
15125 | whole_archive_flag_spec_F77=''
|
---|
15126 | link_all_deplibs_F77=yes
|
---|
15127 | if test "$GCC" = yes ; then
|
---|
15128 | output_verbose_link_cmd='echo'
|
---|
15129 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
---|
15130 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
15131 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
15132 | 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}'
|
---|
15133 | 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}'
|
---|
15134 | else
|
---|
15135 | case $cc_basename in
|
---|
15136 | xlc*)
|
---|
15137 | output_verbose_link_cmd='echo'
|
---|
15138 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
---|
15139 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
15140 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
15141 | 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}'
|
---|
15142 | 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}'
|
---|
15143 | ;;
|
---|
15144 | *)
|
---|
15145 | ld_shlibs_F77=no
|
---|
15146 | ;;
|
---|
15147 | esac
|
---|
15148 | fi
|
---|
15149 | ;;
|
---|
15150 |
|
---|
15151 | dgux*)
|
---|
15152 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15153 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
15154 | hardcode_shlibpath_var_F77=no
|
---|
15155 | ;;
|
---|
15156 |
|
---|
15157 | freebsd1*)
|
---|
15158 | ld_shlibs_F77=no
|
---|
15159 | ;;
|
---|
15160 |
|
---|
15161 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
15162 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
15163 | # does not break anything, and helps significantly (at the cost of a little
|
---|
15164 | # extra space).
|
---|
15165 | freebsd2.2*)
|
---|
15166 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
15167 | hardcode_libdir_flag_spec_F77='-R$libdir'
|
---|
15168 | hardcode_direct_F77=yes
|
---|
15169 | hardcode_shlibpath_var_F77=no
|
---|
15170 | ;;
|
---|
15171 |
|
---|
15172 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
15173 | freebsd2*)
|
---|
15174 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
15175 | hardcode_direct_F77=yes
|
---|
15176 | hardcode_minus_L_F77=yes
|
---|
15177 | hardcode_shlibpath_var_F77=no
|
---|
15178 | ;;
|
---|
15179 |
|
---|
15180 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
15181 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
15182 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15183 | hardcode_libdir_flag_spec_F77='-R$libdir'
|
---|
15184 | hardcode_direct_F77=yes
|
---|
15185 | hardcode_shlibpath_var_F77=no
|
---|
15186 | ;;
|
---|
15187 |
|
---|
15188 | hpux9*)
|
---|
15189 | if test "$GCC" = yes; then
|
---|
15190 | 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'
|
---|
15191 | else
|
---|
15192 | 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'
|
---|
15193 | fi
|
---|
15194 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
---|
15195 | hardcode_libdir_separator_F77=:
|
---|
15196 | hardcode_direct_F77=yes
|
---|
15197 |
|
---|
15198 | # hardcode_minus_L: Not really in the search PATH,
|
---|
15199 | # but as the default location of the library.
|
---|
15200 | hardcode_minus_L_F77=yes
|
---|
15201 | export_dynamic_flag_spec_F77='${wl}-E'
|
---|
15202 | ;;
|
---|
15203 |
|
---|
15204 | hpux10*)
|
---|
15205 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
15206 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15207 | else
|
---|
15208 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
15209 | fi
|
---|
15210 | if test "$with_gnu_ld" = no; then
|
---|
15211 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
---|
15212 | hardcode_libdir_separator_F77=:
|
---|
15213 |
|
---|
15214 | hardcode_direct_F77=yes
|
---|
15215 | export_dynamic_flag_spec_F77='${wl}-E'
|
---|
15216 |
|
---|
15217 | # hardcode_minus_L: Not really in the search PATH,
|
---|
15218 | # but as the default location of the library.
|
---|
15219 | hardcode_minus_L_F77=yes
|
---|
15220 | fi
|
---|
15221 | ;;
|
---|
15222 |
|
---|
15223 | hpux11*)
|
---|
15224 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
15225 | case $host_cpu in
|
---|
15226 | hppa*64*)
|
---|
15227 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15228 | ;;
|
---|
15229 | ia64*)
|
---|
15230 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15231 | ;;
|
---|
15232 | *)
|
---|
15233 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15234 | ;;
|
---|
15235 | esac
|
---|
15236 | else
|
---|
15237 | case $host_cpu in
|
---|
15238 | hppa*64*)
|
---|
15239 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15240 | ;;
|
---|
15241 | ia64*)
|
---|
15242 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15243 | ;;
|
---|
15244 | *)
|
---|
15245 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15246 | ;;
|
---|
15247 | esac
|
---|
15248 | fi
|
---|
15249 | if test "$with_gnu_ld" = no; then
|
---|
15250 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
---|
15251 | hardcode_libdir_separator_F77=:
|
---|
15252 |
|
---|
15253 | case $host_cpu in
|
---|
15254 | hppa*64*|ia64*)
|
---|
15255 | hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
---|
15256 | hardcode_direct_F77=no
|
---|
15257 | hardcode_shlibpath_var_F77=no
|
---|
15258 | ;;
|
---|
15259 | *)
|
---|
15260 | hardcode_direct_F77=yes
|
---|
15261 | export_dynamic_flag_spec_F77='${wl}-E'
|
---|
15262 |
|
---|
15263 | # hardcode_minus_L: Not really in the search PATH,
|
---|
15264 | # but as the default location of the library.
|
---|
15265 | hardcode_minus_L_F77=yes
|
---|
15266 | ;;
|
---|
15267 | esac
|
---|
15268 | fi
|
---|
15269 | ;;
|
---|
15270 |
|
---|
15271 | irix5* | irix6* | nonstopux*)
|
---|
15272 | if test "$GCC" = yes; then
|
---|
15273 | 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'
|
---|
15274 | else
|
---|
15275 | 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'
|
---|
15276 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
|
---|
15277 | fi
|
---|
15278 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
---|
15279 | hardcode_libdir_separator_F77=:
|
---|
15280 | link_all_deplibs_F77=yes
|
---|
15281 | ;;
|
---|
15282 |
|
---|
15283 | netbsd*)
|
---|
15284 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
15285 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
15286 | else
|
---|
15287 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
15288 | fi
|
---|
15289 | hardcode_libdir_flag_spec_F77='-R$libdir'
|
---|
15290 | hardcode_direct_F77=yes
|
---|
15291 | hardcode_shlibpath_var_F77=no
|
---|
15292 | ;;
|
---|
15293 |
|
---|
15294 | newsos6)
|
---|
15295 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15296 | hardcode_direct_F77=yes
|
---|
15297 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
---|
15298 | hardcode_libdir_separator_F77=:
|
---|
15299 | hardcode_shlibpath_var_F77=no
|
---|
15300 | ;;
|
---|
15301 |
|
---|
15302 | openbsd*)
|
---|
15303 | hardcode_direct_F77=yes
|
---|
15304 | hardcode_shlibpath_var_F77=no
|
---|
15305 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
15306 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15307 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
---|
15308 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
---|
15309 | export_dynamic_flag_spec_F77='${wl}-E'
|
---|
15310 | else
|
---|
15311 | case $host_os in
|
---|
15312 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
---|
15313 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
15314 | hardcode_libdir_flag_spec_F77='-R$libdir'
|
---|
15315 | ;;
|
---|
15316 | *)
|
---|
15317 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15318 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
---|
15319 | ;;
|
---|
15320 | esac
|
---|
15321 | fi
|
---|
15322 | ;;
|
---|
15323 |
|
---|
15324 | os2*)
|
---|
15325 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
15326 | hardcode_minus_L_F77=yes
|
---|
15327 | allow_undefined_flag_F77=unsupported
|
---|
15328 | 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'
|
---|
15329 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
---|
15330 | ;;
|
---|
15331 |
|
---|
15332 | osf3*)
|
---|
15333 | if test "$GCC" = yes; then
|
---|
15334 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
---|
15335 | 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'
|
---|
15336 | else
|
---|
15337 | allow_undefined_flag_F77=' -expect_unresolved \*'
|
---|
15338 | 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'
|
---|
15339 | fi
|
---|
15340 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
---|
15341 | hardcode_libdir_separator_F77=:
|
---|
15342 | ;;
|
---|
15343 |
|
---|
15344 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
15345 | if test "$GCC" = yes; then
|
---|
15346 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
---|
15347 | 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'
|
---|
15348 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
---|
15349 | else
|
---|
15350 | allow_undefined_flag_F77=' -expect_unresolved \*'
|
---|
15351 | 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'
|
---|
15352 | 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~
|
---|
15353 | $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'
|
---|
15354 |
|
---|
15355 | # Both c and cxx compiler support -rpath directly
|
---|
15356 | hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
---|
15357 | fi
|
---|
15358 | hardcode_libdir_separator_F77=:
|
---|
15359 | ;;
|
---|
15360 |
|
---|
15361 | solaris*)
|
---|
15362 | no_undefined_flag_F77=' -z text'
|
---|
15363 | if test "$GCC" = yes; then
|
---|
15364 | wlarc='${wl}'
|
---|
15365 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15366 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
15367 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
---|
15368 | else
|
---|
15369 | wlarc=''
|
---|
15370 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15371 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
15372 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
---|
15373 | fi
|
---|
15374 | hardcode_libdir_flag_spec_F77='-R$libdir'
|
---|
15375 | hardcode_shlibpath_var_F77=no
|
---|
15376 | case $host_os in
|
---|
15377 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
15378 | *)
|
---|
15379 | # The compiler driver will combine linker options so we
|
---|
15380 | # cannot just pass the convience library names through
|
---|
15381 | # without $wl, iff we do not link with $LD.
|
---|
15382 | # Luckily, gcc supports the same syntax we need for Sun Studio.
|
---|
15383 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
15384 | case $wlarc in
|
---|
15385 | '')
|
---|
15386 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
|
---|
15387 | *)
|
---|
15388 | 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' ;;
|
---|
15389 | esac ;;
|
---|
15390 | esac
|
---|
15391 | link_all_deplibs_F77=yes
|
---|
15392 | ;;
|
---|
15393 |
|
---|
15394 | sunos4*)
|
---|
15395 | if test "x$host_vendor" = xsequent; then
|
---|
15396 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
15397 | # files that make .init and .fini sections work.
|
---|
15398 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15399 | else
|
---|
15400 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
15401 | fi
|
---|
15402 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
15403 | hardcode_direct_F77=yes
|
---|
15404 | hardcode_minus_L_F77=yes
|
---|
15405 | hardcode_shlibpath_var_F77=no
|
---|
15406 | ;;
|
---|
15407 |
|
---|
15408 | sysv4)
|
---|
15409 | case $host_vendor in
|
---|
15410 | sni)
|
---|
15411 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15412 | hardcode_direct_F77=yes # is this really true???
|
---|
15413 | ;;
|
---|
15414 | siemens)
|
---|
15415 | ## LD is ld it makes a PLAMLIB
|
---|
15416 | ## CC just makes a GrossModule.
|
---|
15417 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
15418 | reload_cmds_F77='$CC -r -o $output$reload_objs'
|
---|
15419 | hardcode_direct_F77=no
|
---|
15420 | ;;
|
---|
15421 | motorola)
|
---|
15422 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15423 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
---|
15424 | ;;
|
---|
15425 | esac
|
---|
15426 | runpath_var='LD_RUN_PATH'
|
---|
15427 | hardcode_shlibpath_var_F77=no
|
---|
15428 | ;;
|
---|
15429 |
|
---|
15430 | sysv4.3*)
|
---|
15431 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15432 | hardcode_shlibpath_var_F77=no
|
---|
15433 | export_dynamic_flag_spec_F77='-Bexport'
|
---|
15434 | ;;
|
---|
15435 |
|
---|
15436 | sysv4*MP*)
|
---|
15437 | if test -d /usr/nec; then
|
---|
15438 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15439 | hardcode_shlibpath_var_F77=no
|
---|
15440 | runpath_var=LD_RUN_PATH
|
---|
15441 | hardcode_runpath_var=yes
|
---|
15442 | ld_shlibs_F77=yes
|
---|
15443 | fi
|
---|
15444 | ;;
|
---|
15445 |
|
---|
15446 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
---|
15447 | no_undefined_flag_F77='${wl}-z,text'
|
---|
15448 | archive_cmds_need_lc_F77=no
|
---|
15449 | hardcode_shlibpath_var_F77=no
|
---|
15450 | runpath_var='LD_RUN_PATH'
|
---|
15451 |
|
---|
15452 | if test "$GCC" = yes; then
|
---|
15453 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15454 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15455 | else
|
---|
15456 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15457 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15458 | fi
|
---|
15459 | ;;
|
---|
15460 |
|
---|
15461 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
15462 | # Note: We can NOT use -z defs as we might desire, because we do not
|
---|
15463 | # link with -lc, and that would cause any symbols used from libc to
|
---|
15464 | # always be unresolved, which means just about no library would
|
---|
15465 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
15466 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
15467 | # as -z defs.
|
---|
15468 | no_undefined_flag_F77='${wl}-z,text'
|
---|
15469 | allow_undefined_flag_F77='${wl}-z,nodefs'
|
---|
15470 | archive_cmds_need_lc_F77=no
|
---|
15471 | hardcode_shlibpath_var_F77=no
|
---|
15472 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
---|
15473 | hardcode_libdir_separator_F77=':'
|
---|
15474 | link_all_deplibs_F77=yes
|
---|
15475 | export_dynamic_flag_spec_F77='${wl}-Bexport'
|
---|
15476 | runpath_var='LD_RUN_PATH'
|
---|
15477 |
|
---|
15478 | if test "$GCC" = yes; then
|
---|
15479 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15480 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15481 | else
|
---|
15482 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15483 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
15484 | fi
|
---|
15485 | ;;
|
---|
15486 |
|
---|
15487 | uts4*)
|
---|
15488 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
15489 | hardcode_libdir_flag_spec_F77='-L$libdir'
|
---|
15490 | hardcode_shlibpath_var_F77=no
|
---|
15491 | ;;
|
---|
15492 |
|
---|
15493 | *)
|
---|
15494 | ld_shlibs_F77=no
|
---|
15495 | ;;
|
---|
15496 | esac
|
---|
15497 | fi
|
---|
15498 |
|
---|
15499 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
---|
15500 | echo "${ECHO_T}$ld_shlibs_F77" >&6
|
---|
15501 | test "$ld_shlibs_F77" = no && can_build_shared=no
|
---|
15502 |
|
---|
15503 | #
|
---|
15504 | # Do we need to explicitly link libc?
|
---|
15505 | #
|
---|
15506 | case "x$archive_cmds_need_lc_F77" in
|
---|
15507 | x|xyes)
|
---|
15508 | # Assume -lc should be added
|
---|
15509 | archive_cmds_need_lc_F77=yes
|
---|
15510 |
|
---|
15511 | if test "$enable_shared" = yes && test "$GCC" = yes; then
|
---|
15512 | case $archive_cmds_F77 in
|
---|
15513 | *'~'*)
|
---|
15514 | # FIXME: we may have to deal with multi-command sequences.
|
---|
15515 | ;;
|
---|
15516 | '$CC '*)
|
---|
15517 | # Test whether the compiler implicitly links with -lc since on some
|
---|
15518 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
15519 | # to ld, don't add -lc before -lgcc.
|
---|
15520 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
---|
15521 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
---|
15522 | $rm conftest*
|
---|
15523 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
15524 |
|
---|
15525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
15526 | (eval $ac_compile) 2>&5
|
---|
15527 | ac_status=$?
|
---|
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15529 | (exit $ac_status); } 2>conftest.err; then
|
---|
15530 | soname=conftest
|
---|
15531 | lib=conftest
|
---|
15532 | libobjs=conftest.$ac_objext
|
---|
15533 | deplibs=
|
---|
15534 | wl=$lt_prog_compiler_wl_F77
|
---|
15535 | pic_flag=$lt_prog_compiler_pic_F77
|
---|
15536 | compiler_flags=-v
|
---|
15537 | linker_flags=-v
|
---|
15538 | verstring=
|
---|
15539 | output_objdir=.
|
---|
15540 | libname=conftest
|
---|
15541 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
---|
15542 | allow_undefined_flag_F77=
|
---|
15543 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
---|
15544 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
15545 | ac_status=$?
|
---|
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15547 | (exit $ac_status); }
|
---|
15548 | then
|
---|
15549 | archive_cmds_need_lc_F77=no
|
---|
15550 | else
|
---|
15551 | archive_cmds_need_lc_F77=yes
|
---|
15552 | fi
|
---|
15553 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
---|
15554 | else
|
---|
15555 | cat conftest.err 1>&5
|
---|
15556 | fi
|
---|
15557 | $rm conftest*
|
---|
15558 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
|
---|
15559 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
|
---|
15560 | ;;
|
---|
15561 | esac
|
---|
15562 | fi
|
---|
15563 | ;;
|
---|
15564 | esac
|
---|
15565 |
|
---|
15566 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
---|
15567 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
---|
15568 | library_names_spec=
|
---|
15569 | libname_spec='lib$name'
|
---|
15570 | soname_spec=
|
---|
15571 | shrext_cmds=".so"
|
---|
15572 | postinstall_cmds=
|
---|
15573 | postuninstall_cmds=
|
---|
15574 | finish_cmds=
|
---|
15575 | finish_eval=
|
---|
15576 | shlibpath_var=
|
---|
15577 | shlibpath_overrides_runpath=unknown
|
---|
15578 | version_type=none
|
---|
15579 | dynamic_linker="$host_os ld.so"
|
---|
15580 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
15581 | if test "$GCC" = yes; then
|
---|
15582 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
15583 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
---|
15584 | # if the path contains ";" then we assume it to be the separator
|
---|
15585 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
15586 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
15587 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
15588 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
15589 | else
|
---|
15590 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
15591 | fi
|
---|
15592 | else
|
---|
15593 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
15594 | fi
|
---|
15595 | need_lib_prefix=unknown
|
---|
15596 | hardcode_into_libs=no
|
---|
15597 |
|
---|
15598 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
15599 | # flags to be left without arguments
|
---|
15600 | need_version=unknown
|
---|
15601 |
|
---|
15602 | case $host_os in
|
---|
15603 | aix3*)
|
---|
15604 | version_type=linux
|
---|
15605 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
---|
15606 | shlibpath_var=LIBPATH
|
---|
15607 |
|
---|
15608 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
15609 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15610 | ;;
|
---|
15611 |
|
---|
15612 | aix4* | aix5*)
|
---|
15613 | version_type=linux
|
---|
15614 | need_lib_prefix=no
|
---|
15615 | need_version=no
|
---|
15616 | hardcode_into_libs=yes
|
---|
15617 | if test "$host_cpu" = ia64; then
|
---|
15618 | # AIX 5 supports IA64
|
---|
15619 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
---|
15620 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15621 | else
|
---|
15622 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
15623 | # for dependence libraries. The import file would start with
|
---|
15624 | # the line `#! .'. This would cause the generated library to
|
---|
15625 | # depend on `.', always an invalid library. This was fixed in
|
---|
15626 | # development snapshots of GCC prior to 3.0.
|
---|
15627 | case $host_os in
|
---|
15628 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
15629 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
15630 | echo ' yes '
|
---|
15631 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
---|
15632 | :
|
---|
15633 | else
|
---|
15634 | can_build_shared=no
|
---|
15635 | fi
|
---|
15636 | ;;
|
---|
15637 | esac
|
---|
15638 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
---|
15639 | # soname into executable. Probably we can add versioning support to
|
---|
15640 | # collect2, so additional links can be useful in future.
|
---|
15641 | if test "$aix_use_runtimelinking" = yes; then
|
---|
15642 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
15643 | # instead of lib<name>.a to let people know that these are not
|
---|
15644 | # typical AIX shared libraries.
|
---|
15645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15646 | else
|
---|
15647 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
15648 | # and later when we are not doing run time linking.
|
---|
15649 | library_names_spec='${libname}${release}.a $libname.a'
|
---|
15650 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15651 | fi
|
---|
15652 | shlibpath_var=LIBPATH
|
---|
15653 | fi
|
---|
15654 | ;;
|
---|
15655 |
|
---|
15656 | amigaos*)
|
---|
15657 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
15658 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
15659 | 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'
|
---|
15660 | ;;
|
---|
15661 |
|
---|
15662 | beos*)
|
---|
15663 | library_names_spec='${libname}${shared_ext}'
|
---|
15664 | dynamic_linker="$host_os ld.so"
|
---|
15665 | shlibpath_var=LIBRARY_PATH
|
---|
15666 | ;;
|
---|
15667 |
|
---|
15668 | bsdi[45]*)
|
---|
15669 | version_type=linux
|
---|
15670 | need_version=no
|
---|
15671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15672 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15673 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
15674 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15675 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
15676 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
15677 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
15678 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
15679 | # libtool to hard-code these into programs
|
---|
15680 | ;;
|
---|
15681 |
|
---|
15682 | cygwin* | mingw* | pw32*)
|
---|
15683 | version_type=windows
|
---|
15684 | shrext_cmds=".dll"
|
---|
15685 | need_version=no
|
---|
15686 | need_lib_prefix=no
|
---|
15687 |
|
---|
15688 | case $GCC,$host_os in
|
---|
15689 | yes,cygwin* | yes,mingw* | yes,pw32*)
|
---|
15690 | library_names_spec='$libname.dll.a'
|
---|
15691 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
15692 | postinstall_cmds='base_file=`basename \${file}`~
|
---|
15693 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
---|
15694 | dldir=$destdir/`dirname \$dlpath`~
|
---|
15695 | test -d \$dldir || mkdir -p \$dldir~
|
---|
15696 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
15697 | chmod a+x \$dldir/$dlname'
|
---|
15698 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
15699 | dlpath=$dir/\$dldll~
|
---|
15700 | $rm \$dlpath'
|
---|
15701 | shlibpath_overrides_runpath=yes
|
---|
15702 |
|
---|
15703 | case $host_os in
|
---|
15704 | cygwin*)
|
---|
15705 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
15706 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
15707 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
---|
15708 | ;;
|
---|
15709 | mingw*)
|
---|
15710 | # MinGW DLLs use traditional 'lib' prefix
|
---|
15711 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
15712 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
15713 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
---|
15714 | # It is most probably a Windows format PATH printed by
|
---|
15715 | # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
---|
15716 | # path with ; separators, and with drive letters. We can handle the
|
---|
15717 | # drive letters (cygwin fileutils understands them), so leave them,
|
---|
15718 | # especially as we might pass files found there to a mingw objdump,
|
---|
15719 | # which wouldn't understand a cygwinified path. Ahh.
|
---|
15720 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
15721 | else
|
---|
15722 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
15723 | fi
|
---|
15724 | ;;
|
---|
15725 | pw32*)
|
---|
15726 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
15727 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
15728 | ;;
|
---|
15729 | esac
|
---|
15730 | ;;
|
---|
15731 |
|
---|
15732 | *)
|
---|
15733 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
---|
15734 | ;;
|
---|
15735 | esac
|
---|
15736 | dynamic_linker='Win32 ld.exe'
|
---|
15737 | # FIXME: first we should search . and the directory the executable is in
|
---|
15738 | shlibpath_var=PATH
|
---|
15739 | ;;
|
---|
15740 |
|
---|
15741 | darwin* | rhapsody*)
|
---|
15742 | dynamic_linker="$host_os dyld"
|
---|
15743 | version_type=darwin
|
---|
15744 | need_lib_prefix=no
|
---|
15745 | need_version=no
|
---|
15746 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
---|
15747 | soname_spec='${libname}${release}${major}$shared_ext'
|
---|
15748 | shlibpath_overrides_runpath=yes
|
---|
15749 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
15750 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
15751 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
---|
15752 | if test "$GCC" = yes; then
|
---|
15753 | 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"`
|
---|
15754 | else
|
---|
15755 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
---|
15756 | fi
|
---|
15757 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
15758 | ;;
|
---|
15759 |
|
---|
15760 | dgux*)
|
---|
15761 | version_type=linux
|
---|
15762 | need_lib_prefix=no
|
---|
15763 | need_version=no
|
---|
15764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
---|
15765 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15766 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15767 | ;;
|
---|
15768 |
|
---|
15769 | freebsd1*)
|
---|
15770 | dynamic_linker=no
|
---|
15771 | ;;
|
---|
15772 |
|
---|
15773 | kfreebsd*-gnu)
|
---|
15774 | version_type=linux
|
---|
15775 | need_lib_prefix=no
|
---|
15776 | need_version=no
|
---|
15777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
15778 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15779 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15780 | shlibpath_overrides_runpath=no
|
---|
15781 | hardcode_into_libs=yes
|
---|
15782 | dynamic_linker='GNU ld.so'
|
---|
15783 | ;;
|
---|
15784 |
|
---|
15785 | freebsd* | dragonfly*)
|
---|
15786 | # DragonFly does not have aout. When/if they implement a new
|
---|
15787 | # versioning mechanism, adjust this.
|
---|
15788 | if test -x /usr/bin/objformat; then
|
---|
15789 | objformat=`/usr/bin/objformat`
|
---|
15790 | else
|
---|
15791 | case $host_os in
|
---|
15792 | freebsd[123]*) objformat=aout ;;
|
---|
15793 | *) objformat=elf ;;
|
---|
15794 | esac
|
---|
15795 | fi
|
---|
15796 | version_type=freebsd-$objformat
|
---|
15797 | case $version_type in
|
---|
15798 | freebsd-elf*)
|
---|
15799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
15800 | need_version=no
|
---|
15801 | need_lib_prefix=no
|
---|
15802 | ;;
|
---|
15803 | freebsd-*)
|
---|
15804 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
---|
15805 | need_version=yes
|
---|
15806 | ;;
|
---|
15807 | esac
|
---|
15808 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15809 | case $host_os in
|
---|
15810 | freebsd2*)
|
---|
15811 | shlibpath_overrides_runpath=yes
|
---|
15812 | ;;
|
---|
15813 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
15814 | shlibpath_overrides_runpath=yes
|
---|
15815 | hardcode_into_libs=yes
|
---|
15816 | ;;
|
---|
15817 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
15818 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
15819 | shlibpath_overrides_runpath=no
|
---|
15820 | hardcode_into_libs=yes
|
---|
15821 | ;;
|
---|
15822 | freebsd*) # from 4.6 on
|
---|
15823 | shlibpath_overrides_runpath=yes
|
---|
15824 | hardcode_into_libs=yes
|
---|
15825 | ;;
|
---|
15826 | esac
|
---|
15827 | ;;
|
---|
15828 |
|
---|
15829 | gnu*)
|
---|
15830 | version_type=linux
|
---|
15831 | need_lib_prefix=no
|
---|
15832 | need_version=no
|
---|
15833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
---|
15834 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15835 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15836 | hardcode_into_libs=yes
|
---|
15837 | ;;
|
---|
15838 |
|
---|
15839 | hpux9* | hpux10* | hpux11*)
|
---|
15840 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
15841 | # link against other versions.
|
---|
15842 | version_type=sunos
|
---|
15843 | need_lib_prefix=no
|
---|
15844 | need_version=no
|
---|
15845 | case $host_cpu in
|
---|
15846 | ia64*)
|
---|
15847 | shrext_cmds='.so'
|
---|
15848 | hardcode_into_libs=yes
|
---|
15849 | dynamic_linker="$host_os dld.so"
|
---|
15850 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15851 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
15852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15853 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15854 | if test "X$HPUX_IA64_MODE" = X32; then
|
---|
15855 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
15856 | else
|
---|
15857 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
15858 | fi
|
---|
15859 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
15860 | ;;
|
---|
15861 | hppa*64*)
|
---|
15862 | shrext_cmds='.sl'
|
---|
15863 | hardcode_into_libs=yes
|
---|
15864 | dynamic_linker="$host_os dld.sl"
|
---|
15865 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
15866 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
15867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15868 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15869 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
15870 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
15871 | ;;
|
---|
15872 | *)
|
---|
15873 | shrext_cmds='.sl'
|
---|
15874 | dynamic_linker="$host_os dld.sl"
|
---|
15875 | shlibpath_var=SHLIB_PATH
|
---|
15876 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
15877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15878 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15879 | ;;
|
---|
15880 | esac
|
---|
15881 | # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
---|
15882 | postinstall_cmds='chmod 555 $lib'
|
---|
15883 | ;;
|
---|
15884 |
|
---|
15885 | interix3*)
|
---|
15886 | version_type=linux
|
---|
15887 | need_lib_prefix=no
|
---|
15888 | need_version=no
|
---|
15889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
15890 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15891 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
15892 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15893 | shlibpath_overrides_runpath=no
|
---|
15894 | hardcode_into_libs=yes
|
---|
15895 | ;;
|
---|
15896 |
|
---|
15897 | irix5* | irix6* | nonstopux*)
|
---|
15898 | case $host_os in
|
---|
15899 | nonstopux*) version_type=nonstopux ;;
|
---|
15900 | *)
|
---|
15901 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
15902 | version_type=linux
|
---|
15903 | else
|
---|
15904 | version_type=irix
|
---|
15905 | fi ;;
|
---|
15906 | esac
|
---|
15907 | need_lib_prefix=no
|
---|
15908 | need_version=no
|
---|
15909 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
15911 | case $host_os in
|
---|
15912 | irix5* | nonstopux*)
|
---|
15913 | libsuff= shlibsuff=
|
---|
15914 | ;;
|
---|
15915 | *)
|
---|
15916 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
15917 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
15918 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
15919 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
15920 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
15921 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
15922 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
15923 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
15924 | esac
|
---|
15925 | ;;
|
---|
15926 | esac
|
---|
15927 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
15928 | shlibpath_overrides_runpath=no
|
---|
15929 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
---|
15930 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
---|
15931 | hardcode_into_libs=yes
|
---|
15932 | ;;
|
---|
15933 |
|
---|
15934 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
15935 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
15936 | dynamic_linker=no
|
---|
15937 | ;;
|
---|
15938 |
|
---|
15939 | # This must be Linux ELF.
|
---|
15940 | linux*)
|
---|
15941 | version_type=linux
|
---|
15942 | need_lib_prefix=no
|
---|
15943 | need_version=no
|
---|
15944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
15945 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15946 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
15947 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15948 | shlibpath_overrides_runpath=no
|
---|
15949 | # This implies no fast_install, which is unacceptable.
|
---|
15950 | # Some rework will be needed to allow for fast_install
|
---|
15951 | # before this can be enabled.
|
---|
15952 | hardcode_into_libs=yes
|
---|
15953 |
|
---|
15954 | # find out which ABI we are using
|
---|
15955 | libsuff=
|
---|
15956 | case "$host_cpu" in
|
---|
15957 | x86_64*|s390x*|powerpc64*)
|
---|
15958 | echo '#line 15958 "configure"' > conftest.$ac_ext
|
---|
15959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
15960 | (eval $ac_compile) 2>&5
|
---|
15961 | ac_status=$?
|
---|
15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15963 | (exit $ac_status); }; then
|
---|
15964 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
15965 | *64-bit*)
|
---|
15966 | libsuff=64
|
---|
15967 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
---|
15968 | ;;
|
---|
15969 | esac
|
---|
15970 | fi
|
---|
15971 | rm -rf conftest*
|
---|
15972 | ;;
|
---|
15973 | esac
|
---|
15974 |
|
---|
15975 | # Append ld.so.conf contents to the search path
|
---|
15976 | if test -f /etc/ld.so.conf; then
|
---|
15977 | 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' ' '`
|
---|
15978 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
---|
15979 | fi
|
---|
15980 |
|
---|
15981 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
15982 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
15983 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
15984 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
15985 | # people can always --disable-shared, the test was removed, and we
|
---|
15986 | # assume the GNU/Linux dynamic linker is in use.
|
---|
15987 | dynamic_linker='GNU/Linux ld.so'
|
---|
15988 | ;;
|
---|
15989 |
|
---|
15990 | knetbsd*-gnu)
|
---|
15991 | version_type=linux
|
---|
15992 | need_lib_prefix=no
|
---|
15993 | need_version=no
|
---|
15994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
15995 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
15996 | shlibpath_var=LD_LIBRARY_PATH
|
---|
15997 | shlibpath_overrides_runpath=no
|
---|
15998 | hardcode_into_libs=yes
|
---|
15999 | dynamic_linker='GNU ld.so'
|
---|
16000 | ;;
|
---|
16001 |
|
---|
16002 | netbsd*)
|
---|
16003 | version_type=sunos
|
---|
16004 | need_lib_prefix=no
|
---|
16005 | need_version=no
|
---|
16006 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
16007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
16008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
16009 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
16010 | else
|
---|
16011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
16012 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16013 | dynamic_linker='NetBSD ld.elf_so'
|
---|
16014 | fi
|
---|
16015 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16016 | shlibpath_overrides_runpath=yes
|
---|
16017 | hardcode_into_libs=yes
|
---|
16018 | ;;
|
---|
16019 |
|
---|
16020 | newsos6)
|
---|
16021 | version_type=linux
|
---|
16022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16023 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16024 | shlibpath_overrides_runpath=yes
|
---|
16025 | ;;
|
---|
16026 |
|
---|
16027 | nto-qnx*)
|
---|
16028 | version_type=linux
|
---|
16029 | need_lib_prefix=no
|
---|
16030 | need_version=no
|
---|
16031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16032 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16033 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16034 | shlibpath_overrides_runpath=yes
|
---|
16035 | ;;
|
---|
16036 |
|
---|
16037 | openbsd*)
|
---|
16038 | version_type=sunos
|
---|
16039 | sys_lib_dlsearch_path_spec="/usr/lib"
|
---|
16040 | need_lib_prefix=no
|
---|
16041 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
---|
16042 | case $host_os in
|
---|
16043 | openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
---|
16044 | *) need_version=no ;;
|
---|
16045 | esac
|
---|
16046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
16047 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
16048 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16049 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
16050 | case $host_os in
|
---|
16051 | openbsd2.[89] | openbsd2.[89].*)
|
---|
16052 | shlibpath_overrides_runpath=no
|
---|
16053 | ;;
|
---|
16054 | *)
|
---|
16055 | shlibpath_overrides_runpath=yes
|
---|
16056 | ;;
|
---|
16057 | esac
|
---|
16058 | else
|
---|
16059 | shlibpath_overrides_runpath=yes
|
---|
16060 | fi
|
---|
16061 | ;;
|
---|
16062 |
|
---|
16063 | os2*)
|
---|
16064 | libname_spec='$name'
|
---|
16065 | shrext_cmds=".dll"
|
---|
16066 | need_lib_prefix=no
|
---|
16067 | library_names_spec='$libname${shared_ext} $libname.a'
|
---|
16068 | dynamic_linker='OS/2 ld.exe'
|
---|
16069 | shlibpath_var=LIBPATH
|
---|
16070 | ;;
|
---|
16071 |
|
---|
16072 | osf3* | osf4* | osf5*)
|
---|
16073 | version_type=osf
|
---|
16074 | need_lib_prefix=no
|
---|
16075 | need_version=no
|
---|
16076 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16078 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16079 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
16080 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
---|
16081 | ;;
|
---|
16082 |
|
---|
16083 | solaris*)
|
---|
16084 | version_type=linux
|
---|
16085 | need_lib_prefix=no
|
---|
16086 | need_version=no
|
---|
16087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16088 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16089 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16090 | shlibpath_overrides_runpath=yes
|
---|
16091 | hardcode_into_libs=yes
|
---|
16092 | # ldd complains unless libraries are executable
|
---|
16093 | postinstall_cmds='chmod +x $lib'
|
---|
16094 | ;;
|
---|
16095 |
|
---|
16096 | sunos4*)
|
---|
16097 | version_type=sunos
|
---|
16098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
16099 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
16100 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16101 | shlibpath_overrides_runpath=yes
|
---|
16102 | if test "$with_gnu_ld" = yes; then
|
---|
16103 | need_lib_prefix=no
|
---|
16104 | fi
|
---|
16105 | need_version=yes
|
---|
16106 | ;;
|
---|
16107 |
|
---|
16108 | sysv4 | sysv4.3*)
|
---|
16109 | version_type=linux
|
---|
16110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16111 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16112 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16113 | case $host_vendor in
|
---|
16114 | sni)
|
---|
16115 | shlibpath_overrides_runpath=no
|
---|
16116 | need_lib_prefix=no
|
---|
16117 | export_dynamic_flag_spec='${wl}-Blargedynsym'
|
---|
16118 | runpath_var=LD_RUN_PATH
|
---|
16119 | ;;
|
---|
16120 | siemens)
|
---|
16121 | need_lib_prefix=no
|
---|
16122 | ;;
|
---|
16123 | motorola)
|
---|
16124 | need_lib_prefix=no
|
---|
16125 | need_version=no
|
---|
16126 | shlibpath_overrides_runpath=no
|
---|
16127 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
16128 | ;;
|
---|
16129 | esac
|
---|
16130 | ;;
|
---|
16131 |
|
---|
16132 | sysv4*MP*)
|
---|
16133 | if test -d /usr/nec ;then
|
---|
16134 | version_type=linux
|
---|
16135 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
---|
16136 | soname_spec='$libname${shared_ext}.$major'
|
---|
16137 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16138 | fi
|
---|
16139 | ;;
|
---|
16140 |
|
---|
16141 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
16142 | version_type=freebsd-elf
|
---|
16143 | need_lib_prefix=no
|
---|
16144 | need_version=no
|
---|
16145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
16146 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16147 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16148 | hardcode_into_libs=yes
|
---|
16149 | if test "$with_gnu_ld" = yes; then
|
---|
16150 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
16151 | shlibpath_overrides_runpath=no
|
---|
16152 | else
|
---|
16153 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
16154 | shlibpath_overrides_runpath=yes
|
---|
16155 | case $host_os in
|
---|
16156 | sco3.2v5*)
|
---|
16157 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
16158 | ;;
|
---|
16159 | esac
|
---|
16160 | fi
|
---|
16161 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
16162 | ;;
|
---|
16163 |
|
---|
16164 | uts4*)
|
---|
16165 | version_type=linux
|
---|
16166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
16167 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
16168 | shlibpath_var=LD_LIBRARY_PATH
|
---|
16169 | ;;
|
---|
16170 |
|
---|
16171 | *)
|
---|
16172 | dynamic_linker=no
|
---|
16173 | ;;
|
---|
16174 | esac
|
---|
16175 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
---|
16176 | echo "${ECHO_T}$dynamic_linker" >&6
|
---|
16177 | test "$dynamic_linker" = no && can_build_shared=no
|
---|
16178 |
|
---|
16179 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
16180 | if test "$GCC" = yes; then
|
---|
16181 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
16182 | fi
|
---|
16183 |
|
---|
16184 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
---|
16185 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
---|
16186 | hardcode_action_F77=
|
---|
16187 | if test -n "$hardcode_libdir_flag_spec_F77" || \
|
---|
16188 | test -n "$runpath_var_F77" || \
|
---|
16189 | test "X$hardcode_automatic_F77" = "Xyes" ; then
|
---|
16190 |
|
---|
16191 | # We can hardcode non-existant directories.
|
---|
16192 | if test "$hardcode_direct_F77" != no &&
|
---|
16193 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
16194 | # have to relink, otherwise we might link with an installed library
|
---|
16195 | # when we should be linking with a yet-to-be-installed one
|
---|
16196 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
---|
16197 | test "$hardcode_minus_L_F77" != no; then
|
---|
16198 | # Linking always hardcodes the temporary library directory.
|
---|
16199 | hardcode_action_F77=relink
|
---|
16200 | else
|
---|
16201 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
16202 | hardcode_action_F77=immediate
|
---|
16203 | fi
|
---|
16204 | else
|
---|
16205 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
16206 | # directories.
|
---|
16207 | hardcode_action_F77=unsupported
|
---|
16208 | fi
|
---|
16209 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
|
---|
16210 | echo "${ECHO_T}$hardcode_action_F77" >&6
|
---|
16211 |
|
---|
16212 | if test "$hardcode_action_F77" = relink; then
|
---|
16213 | # Fast installation is not supported
|
---|
16214 | enable_fast_install=no
|
---|
16215 | elif test "$shlibpath_overrides_runpath" = yes ||
|
---|
16216 | test "$enable_shared" = no; then
|
---|
16217 | # Fast installation is not necessary
|
---|
16218 | enable_fast_install=needless
|
---|
16219 | fi
|
---|
16220 |
|
---|
16221 |
|
---|
16222 | # The else clause should only fire when bootstrapping the
|
---|
16223 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
---|
16224 | # with your package, and you will get complaints that there are
|
---|
16225 | # no rules to generate ltmain.sh.
|
---|
16226 | if test -f "$ltmain"; then
|
---|
16227 | # See if we are running on zsh, and set the options which allow our commands through
|
---|
16228 | # without removal of \ escapes.
|
---|
16229 | if test -n "${ZSH_VERSION+set}" ; then
|
---|
16230 | setopt NO_GLOB_SUBST
|
---|
16231 | fi
|
---|
16232 | # Now quote all the things that may contain metacharacters while being
|
---|
16233 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
---|
16234 | # variables and quote the copies for generation of the libtool script.
|
---|
16235 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
---|
16236 | SED SHELL STRIP \
|
---|
16237 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
---|
16238 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
---|
16239 | deplibs_check_method reload_flag reload_cmds need_locks \
|
---|
16240 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
---|
16241 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
16242 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
---|
16243 | old_postinstall_cmds old_postuninstall_cmds \
|
---|
16244 | compiler_F77 \
|
---|
16245 | CC_F77 \
|
---|
16246 | LD_F77 \
|
---|
16247 | lt_prog_compiler_wl_F77 \
|
---|
16248 | lt_prog_compiler_pic_F77 \
|
---|
16249 | lt_prog_compiler_static_F77 \
|
---|
16250 | lt_prog_compiler_no_builtin_flag_F77 \
|
---|
16251 | export_dynamic_flag_spec_F77 \
|
---|
16252 | thread_safe_flag_spec_F77 \
|
---|
16253 | whole_archive_flag_spec_F77 \
|
---|
16254 | enable_shared_with_static_runtimes_F77 \
|
---|
16255 | old_archive_cmds_F77 \
|
---|
16256 | old_archive_from_new_cmds_F77 \
|
---|
16257 | predep_objects_F77 \
|
---|
16258 | postdep_objects_F77 \
|
---|
16259 | predeps_F77 \
|
---|
16260 | postdeps_F77 \
|
---|
16261 | compiler_lib_search_path_F77 \
|
---|
16262 | archive_cmds_F77 \
|
---|
16263 | archive_expsym_cmds_F77 \
|
---|
16264 | postinstall_cmds_F77 \
|
---|
16265 | postuninstall_cmds_F77 \
|
---|
16266 | old_archive_from_expsyms_cmds_F77 \
|
---|
16267 | allow_undefined_flag_F77 \
|
---|
16268 | no_undefined_flag_F77 \
|
---|
16269 | export_symbols_cmds_F77 \
|
---|
16270 | hardcode_libdir_flag_spec_F77 \
|
---|
16271 | hardcode_libdir_flag_spec_ld_F77 \
|
---|
16272 | hardcode_libdir_separator_F77 \
|
---|
16273 | hardcode_automatic_F77 \
|
---|
16274 | module_cmds_F77 \
|
---|
16275 | module_expsym_cmds_F77 \
|
---|
16276 | lt_cv_prog_compiler_c_o_F77 \
|
---|
16277 | exclude_expsyms_F77 \
|
---|
16278 | include_expsyms_F77; do
|
---|
16279 |
|
---|
16280 | case $var in
|
---|
16281 | old_archive_cmds_F77 | \
|
---|
16282 | old_archive_from_new_cmds_F77 | \
|
---|
16283 | archive_cmds_F77 | \
|
---|
16284 | archive_expsym_cmds_F77 | \
|
---|
16285 | module_cmds_F77 | \
|
---|
16286 | module_expsym_cmds_F77 | \
|
---|
16287 | old_archive_from_expsyms_cmds_F77 | \
|
---|
16288 | export_symbols_cmds_F77 | \
|
---|
16289 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
---|
16290 | postinstall_cmds | postuninstall_cmds | \
|
---|
16291 | old_postinstall_cmds | old_postuninstall_cmds | \
|
---|
16292 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
---|
16293 | # Double-quote double-evaled strings.
|
---|
16294 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
---|
16295 | ;;
|
---|
16296 | *)
|
---|
16297 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
---|
16298 | ;;
|
---|
16299 | esac
|
---|
16300 | done
|
---|
16301 |
|
---|
16302 | case $lt_echo in
|
---|
16303 | *'\$0 --fallback-echo"')
|
---|
16304 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
---|
16305 | ;;
|
---|
16306 | esac
|
---|
16307 |
|
---|
16308 | cfgfile="$ofile"
|
---|
16309 |
|
---|
16310 | cat <<__EOF__ >> "$cfgfile"
|
---|
16311 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
---|
16312 |
|
---|
16313 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
16314 |
|
---|
16315 | # Shell to use when invoking shell scripts.
|
---|
16316 | SHELL=$lt_SHELL
|
---|
16317 |
|
---|
16318 | # Whether or not to build shared libraries.
|
---|
16319 | build_libtool_libs=$enable_shared
|
---|
16320 |
|
---|
16321 | # Whether or not to build static libraries.
|
---|
16322 | build_old_libs=$enable_static
|
---|
16323 |
|
---|
16324 | # Whether or not to add -lc for building shared libraries.
|
---|
16325 | build_libtool_need_lc=$archive_cmds_need_lc_F77
|
---|
16326 |
|
---|
16327 | # Whether or not to disallow shared libs when runtime libs are static
|
---|
16328 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
---|
16329 |
|
---|
16330 | # Whether or not to optimize for fast installation.
|
---|
16331 | fast_install=$enable_fast_install
|
---|
16332 |
|
---|
16333 | # The host system.
|
---|
16334 | host_alias=$host_alias
|
---|
16335 | host=$host
|
---|
16336 | host_os=$host_os
|
---|
16337 |
|
---|
16338 | # The build system.
|
---|
16339 | build_alias=$build_alias
|
---|
16340 | build=$build
|
---|
16341 | build_os=$build_os
|
---|
16342 |
|
---|
16343 | # An echo program that does not interpret backslashes.
|
---|
16344 | echo=$lt_echo
|
---|
16345 |
|
---|
16346 | # The archiver.
|
---|
16347 | AR=$lt_AR
|
---|
16348 | AR_FLAGS=$lt_AR_FLAGS
|
---|
16349 |
|
---|
16350 | # A C compiler.
|
---|
16351 | LTCC=$lt_LTCC
|
---|
16352 |
|
---|
16353 | # LTCC compiler flags.
|
---|
16354 | LTCFLAGS=$lt_LTCFLAGS
|
---|
16355 |
|
---|
16356 | # A language-specific compiler.
|
---|
16357 | CC=$lt_compiler_F77
|
---|
16358 |
|
---|
16359 | # Is the compiler the GNU C compiler?
|
---|
16360 | with_gcc=$GCC_F77
|
---|
16361 |
|
---|
16362 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
|
---|
16363 | gcc_ver=\`gcc -dumpversion\`
|
---|
16364 |
|
---|
16365 | # An ERE matcher.
|
---|
16366 | EGREP=$lt_EGREP
|
---|
16367 |
|
---|
16368 | # The linker used to build libraries.
|
---|
16369 | LD=$lt_LD_F77
|
---|
16370 |
|
---|
16371 | # Whether we need hard or soft links.
|
---|
16372 | LN_S=$lt_LN_S
|
---|
16373 |
|
---|
16374 | # A BSD-compatible nm program.
|
---|
16375 | NM=$lt_NM
|
---|
16376 |
|
---|
16377 | # A symbol stripping program
|
---|
16378 | STRIP=$lt_STRIP
|
---|
16379 |
|
---|
16380 | # Used to examine libraries when file_magic_cmd begins "file"
|
---|
16381 | MAGIC_CMD=$MAGIC_CMD
|
---|
16382 |
|
---|
16383 | # Used on cygwin: DLL creation program.
|
---|
16384 | DLLTOOL="$DLLTOOL"
|
---|
16385 |
|
---|
16386 | # Used on cygwin: object dumper.
|
---|
16387 | OBJDUMP="$OBJDUMP"
|
---|
16388 |
|
---|
16389 | # Used on cygwin: assembler.
|
---|
16390 | AS="$AS"
|
---|
16391 |
|
---|
16392 | # The name of the directory that contains temporary libtool files.
|
---|
16393 | objdir=$objdir
|
---|
16394 |
|
---|
16395 | # How to create reloadable object files.
|
---|
16396 | reload_flag=$lt_reload_flag
|
---|
16397 | reload_cmds=$lt_reload_cmds
|
---|
16398 |
|
---|
16399 | # How to pass a linker flag through the compiler.
|
---|
16400 | wl=$lt_lt_prog_compiler_wl_F77
|
---|
16401 |
|
---|
16402 | # Object file suffix (normally "o").
|
---|
16403 | objext="$ac_objext"
|
---|
16404 |
|
---|
16405 | # Old archive suffix (normally "a").
|
---|
16406 | libext="$libext"
|
---|
16407 |
|
---|
16408 | # Shared library suffix (normally ".so").
|
---|
16409 | shrext_cmds='$shrext_cmds'
|
---|
16410 |
|
---|
16411 | # Executable file suffix (normally "").
|
---|
16412 | exeext="$exeext"
|
---|
16413 |
|
---|
16414 | # Additional compiler flags for building library objects.
|
---|
16415 | pic_flag=$lt_lt_prog_compiler_pic_F77
|
---|
16416 | pic_mode=$pic_mode
|
---|
16417 |
|
---|
16418 | # What is the maximum length of a command?
|
---|
16419 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
16420 |
|
---|
16421 | # Does compiler simultaneously support -c and -o options?
|
---|
16422 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
---|
16423 |
|
---|
16424 | # Must we lock files when doing compilation?
|
---|
16425 | need_locks=$lt_need_locks
|
---|
16426 |
|
---|
16427 | # Do we need the lib prefix for modules?
|
---|
16428 | need_lib_prefix=$need_lib_prefix
|
---|
16429 |
|
---|
16430 | # Do we need a version for libraries?
|
---|
16431 | need_version=$need_version
|
---|
16432 |
|
---|
16433 | # Whether dlopen is supported.
|
---|
16434 | dlopen_support=$enable_dlopen
|
---|
16435 |
|
---|
16436 | # Whether dlopen of programs is supported.
|
---|
16437 | dlopen_self=$enable_dlopen_self
|
---|
16438 |
|
---|
16439 | # Whether dlopen of statically linked programs is supported.
|
---|
16440 | dlopen_self_static=$enable_dlopen_self_static
|
---|
16441 |
|
---|
16442 | # Compiler flag to prevent dynamic linking.
|
---|
16443 | link_static_flag=$lt_lt_prog_compiler_static_F77
|
---|
16444 |
|
---|
16445 | # Compiler flag to turn off builtin functions.
|
---|
16446 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
---|
16447 |
|
---|
16448 | # Compiler flag to allow reflexive dlopens.
|
---|
16449 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
---|
16450 |
|
---|
16451 | # Compiler flag to generate shared objects directly from archives.
|
---|
16452 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
---|
16453 |
|
---|
16454 | # Compiler flag to generate thread-safe objects.
|
---|
16455 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
|
---|
16456 |
|
---|
16457 | # Library versioning type.
|
---|
16458 | version_type=$version_type
|
---|
16459 |
|
---|
16460 | # Format of library name prefix.
|
---|
16461 | libname_spec=$lt_libname_spec
|
---|
16462 |
|
---|
16463 | # List of archive names. First name is the real one, the rest are links.
|
---|
16464 | # The last name is the one that the linker finds with -lNAME.
|
---|
16465 | library_names_spec=$lt_library_names_spec
|
---|
16466 |
|
---|
16467 | # The coded name of the library, if different from the real name.
|
---|
16468 | soname_spec=$lt_soname_spec
|
---|
16469 |
|
---|
16470 | # Commands used to build and install an old-style archive.
|
---|
16471 | RANLIB=$lt_RANLIB
|
---|
16472 | old_archive_cmds=$lt_old_archive_cmds_F77
|
---|
16473 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
16474 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
16475 |
|
---|
16476 | # Create an old-style archive from a shared archive.
|
---|
16477 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
---|
16478 |
|
---|
16479 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
16480 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
---|
16481 |
|
---|
16482 | # Commands used to build and install a shared archive.
|
---|
16483 | archive_cmds=$lt_archive_cmds_F77
|
---|
16484 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
---|
16485 | postinstall_cmds=$lt_postinstall_cmds
|
---|
16486 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
16487 |
|
---|
16488 | # Commands used to build a loadable module (assumed same as above if empty)
|
---|
16489 | module_cmds=$lt_module_cmds_F77
|
---|
16490 | module_expsym_cmds=$lt_module_expsym_cmds_F77
|
---|
16491 |
|
---|
16492 | # Commands to strip libraries.
|
---|
16493 | old_striplib=$lt_old_striplib
|
---|
16494 | striplib=$lt_striplib
|
---|
16495 |
|
---|
16496 | # Dependencies to place before the objects being linked to create a
|
---|
16497 | # shared library.
|
---|
16498 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
16499 |
|
---|
16500 | # Dependencies to place after the objects being linked to create a
|
---|
16501 | # shared library.
|
---|
16502 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
16503 |
|
---|
16504 | # Dependencies to place before the objects being linked to create a
|
---|
16505 | # shared library.
|
---|
16506 | predeps=$lt_predeps_F77
|
---|
16507 |
|
---|
16508 | # Dependencies to place after the objects being linked to create a
|
---|
16509 | # shared library.
|
---|
16510 | postdeps=$lt_postdeps_F77
|
---|
16511 |
|
---|
16512 | # The library search path used internally by the compiler when linking
|
---|
16513 | # a shared library.
|
---|
16514 | 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"\`
|
---|
16515 |
|
---|
16516 | # Method to check whether dependent libraries are shared objects.
|
---|
16517 | deplibs_check_method=$lt_deplibs_check_method
|
---|
16518 |
|
---|
16519 | # Command to use when deplibs_check_method == file_magic.
|
---|
16520 | file_magic_cmd=$lt_file_magic_cmd
|
---|
16521 |
|
---|
16522 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
16523 | allow_undefined_flag=$lt_allow_undefined_flag_F77
|
---|
16524 |
|
---|
16525 | # Flag that forces no undefined symbols.
|
---|
16526 | no_undefined_flag=$lt_no_undefined_flag_F77
|
---|
16527 |
|
---|
16528 | # Commands used to finish a libtool library installation in a directory.
|
---|
16529 | finish_cmds=$lt_finish_cmds
|
---|
16530 |
|
---|
16531 | # Same as above, but a single script fragment to be evaled but not shown.
|
---|
16532 | finish_eval=$lt_finish_eval
|
---|
16533 |
|
---|
16534 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
16535 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
16536 |
|
---|
16537 | # Transform the output of nm in a proper C declaration
|
---|
16538 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
16539 |
|
---|
16540 | # Transform the output of nm in a C name address pair
|
---|
16541 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
16542 |
|
---|
16543 | # This is the shared library runtime path variable.
|
---|
16544 | runpath_var=$runpath_var
|
---|
16545 |
|
---|
16546 | # This is the shared library path variable.
|
---|
16547 | shlibpath_var=$shlibpath_var
|
---|
16548 |
|
---|
16549 | # Is shlibpath searched before the hard-coded library search path?
|
---|
16550 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
16551 |
|
---|
16552 | # How to hardcode a shared library path into an executable.
|
---|
16553 | hardcode_action=$hardcode_action_F77
|
---|
16554 |
|
---|
16555 | # Whether we should hardcode library paths into libraries.
|
---|
16556 | hardcode_into_libs=$hardcode_into_libs
|
---|
16557 |
|
---|
16558 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
16559 | # This must work even if \$libdir does not exist.
|
---|
16560 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
---|
16561 |
|
---|
16562 | # If ld is used when linking, flag to hardcode \$libdir into
|
---|
16563 | # a binary during linking. This must work even if \$libdir does
|
---|
16564 | # not exist.
|
---|
16565 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
|
---|
16566 |
|
---|
16567 | # Whether we need a single -rpath flag with a separated argument.
|
---|
16568 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
---|
16569 |
|
---|
16570 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
---|
16571 | # resulting binary.
|
---|
16572 | hardcode_direct=$hardcode_direct_F77
|
---|
16573 |
|
---|
16574 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
---|
16575 | # resulting binary.
|
---|
16576 | hardcode_minus_L=$hardcode_minus_L_F77
|
---|
16577 |
|
---|
16578 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
---|
16579 | # the resulting binary.
|
---|
16580 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
---|
16581 |
|
---|
16582 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
---|
16583 | # and all subsequent libraries and executables linked against it.
|
---|
16584 | hardcode_automatic=$hardcode_automatic_F77
|
---|
16585 |
|
---|
16586 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
16587 | # restored at relink time.
|
---|
16588 | variables_saved_for_relink="$variables_saved_for_relink"
|
---|
16589 |
|
---|
16590 | # Whether libtool must link a program against all its dependency libraries.
|
---|
16591 | link_all_deplibs=$link_all_deplibs_F77
|
---|
16592 |
|
---|
16593 | # Compile-time system search path for libraries
|
---|
16594 | 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"\`
|
---|
16595 |
|
---|
16596 | # Run-time system search path for libraries
|
---|
16597 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
---|
16598 |
|
---|
16599 | # Fix the shell variable \$srcfile for the compiler.
|
---|
16600 | fix_srcfile_path="$fix_srcfile_path_F77"
|
---|
16601 |
|
---|
16602 | # Set to yes if exported symbols are required.
|
---|
16603 | always_export_symbols=$always_export_symbols_F77
|
---|
16604 |
|
---|
16605 | # The commands to list exported symbols.
|
---|
16606 | export_symbols_cmds=$lt_export_symbols_cmds_F77
|
---|
16607 |
|
---|
16608 | # The commands to extract the exported symbol list from a shared archive.
|
---|
16609 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
16610 |
|
---|
16611 | # Symbols that should not be listed in the preloaded symbols.
|
---|
16612 | exclude_expsyms=$lt_exclude_expsyms_F77
|
---|
16613 |
|
---|
16614 | # Symbols that must always be exported.
|
---|
16615 | include_expsyms=$lt_include_expsyms_F77
|
---|
16616 |
|
---|
16617 | # ### END LIBTOOL TAG CONFIG: $tagname
|
---|
16618 |
|
---|
16619 | __EOF__
|
---|
16620 |
|
---|
16621 |
|
---|
16622 | else
|
---|
16623 | # If there is no Makefile yet, we rely on a make rule to execute
|
---|
16624 | # `config.status --recheck' to rerun these tests and create the
|
---|
16625 | # libtool script then.
|
---|
16626 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
---|
16627 | if test -f "$ltmain_in"; then
|
---|
16628 | test -f Makefile && make "$ltmain"
|
---|
16629 | fi
|
---|
16630 | fi
|
---|
16631 |
|
---|
16632 |
|
---|
16633 | ac_ext=c
|
---|
16634 | ac_cpp='$CPP $CPPFLAGS'
|
---|
16635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
16636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
16637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
16638 |
|
---|
16639 | CC="$lt_save_CC"
|
---|
16640 |
|
---|
16641 | else
|
---|
16642 | tagname=""
|
---|
16643 | fi
|
---|
16644 | ;;
|
---|
16645 |
|
---|
16646 | GCJ)
|
---|
16647 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
---|
16648 |
|
---|
16649 |
|
---|
16650 |
|
---|
16651 | # Source file extension for Java test sources.
|
---|
16652 | ac_ext=java
|
---|
16653 |
|
---|
16654 | # Object file extension for compiled Java test sources.
|
---|
16655 | objext=o
|
---|
16656 | objext_GCJ=$objext
|
---|
16657 |
|
---|
16658 | # Code to be used in simple compile tests
|
---|
16659 | lt_simple_compile_test_code="class foo {}\n"
|
---|
16660 |
|
---|
16661 | # Code to be used in simple link tests
|
---|
16662 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
---|
16663 |
|
---|
16664 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
---|
16665 |
|
---|
16666 | # If no C compiler was specified, use CC.
|
---|
16667 | LTCC=${LTCC-"$CC"}
|
---|
16668 |
|
---|
16669 | # If no C compiler flags were specified, use CFLAGS.
|
---|
16670 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
16671 |
|
---|
16672 | # Allow CC to be a program name with arguments.
|
---|
16673 | compiler=$CC
|
---|
16674 |
|
---|
16675 |
|
---|
16676 | # save warnings/boilerplate of simple test code
|
---|
16677 | ac_outfile=conftest.$ac_objext
|
---|
16678 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
16679 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
16680 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
16681 | $rm conftest*
|
---|
16682 |
|
---|
16683 | ac_outfile=conftest.$ac_objext
|
---|
16684 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
16685 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
16686 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
16687 | $rm conftest*
|
---|
16688 |
|
---|
16689 |
|
---|
16690 | # Allow CC to be a program name with arguments.
|
---|
16691 | lt_save_CC="$CC"
|
---|
16692 | CC=${GCJ-"gcj"}
|
---|
16693 | compiler=$CC
|
---|
16694 | compiler_GCJ=$CC
|
---|
16695 | for cc_temp in $compiler""; do
|
---|
16696 | case $cc_temp in
|
---|
16697 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
16698 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
16699 | \-*) ;;
|
---|
16700 | *) break;;
|
---|
16701 | esac
|
---|
16702 | done
|
---|
16703 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
16704 |
|
---|
16705 |
|
---|
16706 | # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
---|
16707 | archive_cmds_need_lc_GCJ=no
|
---|
16708 |
|
---|
16709 | old_archive_cmds_GCJ=$old_archive_cmds
|
---|
16710 |
|
---|
16711 |
|
---|
16712 | lt_prog_compiler_no_builtin_flag_GCJ=
|
---|
16713 |
|
---|
16714 | if test "$GCC" = yes; then
|
---|
16715 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
|
---|
16716 |
|
---|
16717 |
|
---|
16718 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
16719 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
|
---|
16720 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
---|
16721 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
16722 | else
|
---|
16723 | lt_cv_prog_compiler_rtti_exceptions=no
|
---|
16724 | ac_outfile=conftest.$ac_objext
|
---|
16725 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
16726 | lt_compiler_flag="-fno-rtti -fno-exceptions"
|
---|
16727 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
16728 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
16729 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
16730 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
16731 | # The option is referenced via a variable to avoid confusing sed.
|
---|
16732 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
16733 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
16734 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
16735 | -e 's:$: $lt_compiler_flag:'`
|
---|
16736 | (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
|
---|
16737 | (eval "$lt_compile" 2>conftest.err)
|
---|
16738 | ac_status=$?
|
---|
16739 | cat conftest.err >&5
|
---|
16740 | echo "$as_me:16740: \$? = $ac_status" >&5
|
---|
16741 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
16742 | # The compiler can only warn and ignore the option if not recognized
|
---|
16743 | # So say no if there are warnings other than the usual output.
|
---|
16744 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
16745 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
16746 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
16747 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
16748 | fi
|
---|
16749 | fi
|
---|
16750 | $rm conftest*
|
---|
16751 |
|
---|
16752 | fi
|
---|
16753 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
16754 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
|
---|
16755 |
|
---|
16756 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
---|
16757 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
|
---|
16758 | else
|
---|
16759 | :
|
---|
16760 | fi
|
---|
16761 |
|
---|
16762 | fi
|
---|
16763 |
|
---|
16764 | lt_prog_compiler_wl_GCJ=
|
---|
16765 | lt_prog_compiler_pic_GCJ=
|
---|
16766 | lt_prog_compiler_static_GCJ=
|
---|
16767 |
|
---|
16768 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
---|
16769 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
---|
16770 |
|
---|
16771 | if test "$GCC" = yes; then
|
---|
16772 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16773 | lt_prog_compiler_static_GCJ='-static'
|
---|
16774 |
|
---|
16775 | case $host_os in
|
---|
16776 | aix*)
|
---|
16777 | # All AIX code is PIC.
|
---|
16778 | if test "$host_cpu" = ia64; then
|
---|
16779 | # AIX 5 now supports IA64 processor
|
---|
16780 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16781 | fi
|
---|
16782 | ;;
|
---|
16783 |
|
---|
16784 | amigaos*)
|
---|
16785 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
16786 | # adding the `-m68020' flag to GCC prevents building anything better,
|
---|
16787 | # like `-m68040'.
|
---|
16788 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
---|
16789 | ;;
|
---|
16790 |
|
---|
16791 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
16792 | # PIC is the default for these OSes.
|
---|
16793 | ;;
|
---|
16794 |
|
---|
16795 | mingw* | pw32* | os2*)
|
---|
16796 | # This hack is so that the source file can tell whether it is being
|
---|
16797 | # built for inclusion in a dll (and should export symbols for example).
|
---|
16798 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
---|
16799 | ;;
|
---|
16800 |
|
---|
16801 | darwin* | rhapsody*)
|
---|
16802 | # PIC is the default on this platform
|
---|
16803 | # Common symbols not allowed in MH_DYLIB files
|
---|
16804 | lt_prog_compiler_pic_GCJ='-fno-common'
|
---|
16805 | ;;
|
---|
16806 |
|
---|
16807 | interix3*)
|
---|
16808 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
16809 | # Instead, we relocate shared libraries at runtime.
|
---|
16810 | ;;
|
---|
16811 |
|
---|
16812 | msdosdjgpp*)
|
---|
16813 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
16814 | # on systems that don't support them.
|
---|
16815 | lt_prog_compiler_can_build_shared_GCJ=no
|
---|
16816 | enable_shared=no
|
---|
16817 | ;;
|
---|
16818 |
|
---|
16819 | sysv4*MP*)
|
---|
16820 | if test -d /usr/nec; then
|
---|
16821 | lt_prog_compiler_pic_GCJ=-Kconform_pic
|
---|
16822 | fi
|
---|
16823 | ;;
|
---|
16824 |
|
---|
16825 | hpux*)
|
---|
16826 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
16827 | # not for PA HP-UX.
|
---|
16828 | case $host_cpu in
|
---|
16829 | hppa*64*|ia64*)
|
---|
16830 | # +Z the default
|
---|
16831 | ;;
|
---|
16832 | *)
|
---|
16833 | lt_prog_compiler_pic_GCJ='-fPIC'
|
---|
16834 | ;;
|
---|
16835 | esac
|
---|
16836 | ;;
|
---|
16837 |
|
---|
16838 | *)
|
---|
16839 | lt_prog_compiler_pic_GCJ='-fPIC'
|
---|
16840 | ;;
|
---|
16841 | esac
|
---|
16842 | else
|
---|
16843 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
16844 | case $host_os in
|
---|
16845 | aix*)
|
---|
16846 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16847 | if test "$host_cpu" = ia64; then
|
---|
16848 | # AIX 5 now supports IA64 processor
|
---|
16849 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16850 | else
|
---|
16851 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
|
---|
16852 | fi
|
---|
16853 | ;;
|
---|
16854 | darwin*)
|
---|
16855 | # PIC is the default on this platform
|
---|
16856 | # Common symbols not allowed in MH_DYLIB files
|
---|
16857 | case $cc_basename in
|
---|
16858 | xlc*)
|
---|
16859 | lt_prog_compiler_pic_GCJ='-qnocommon'
|
---|
16860 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16861 | ;;
|
---|
16862 | esac
|
---|
16863 | ;;
|
---|
16864 |
|
---|
16865 | mingw* | pw32* | os2*)
|
---|
16866 | # This hack is so that the source file can tell whether it is being
|
---|
16867 | # built for inclusion in a dll (and should export symbols for example).
|
---|
16868 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
---|
16869 | ;;
|
---|
16870 |
|
---|
16871 | hpux9* | hpux10* | hpux11*)
|
---|
16872 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16873 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
16874 | # not for PA HP-UX.
|
---|
16875 | case $host_cpu in
|
---|
16876 | hppa*64*|ia64*)
|
---|
16877 | # +Z the default
|
---|
16878 | ;;
|
---|
16879 | *)
|
---|
16880 | lt_prog_compiler_pic_GCJ='+Z'
|
---|
16881 | ;;
|
---|
16882 | esac
|
---|
16883 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
16884 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
|
---|
16885 | ;;
|
---|
16886 |
|
---|
16887 | irix5* | irix6* | nonstopux*)
|
---|
16888 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16889 | # PIC (with -KPIC) is the default.
|
---|
16890 | lt_prog_compiler_static_GCJ='-non_shared'
|
---|
16891 | ;;
|
---|
16892 |
|
---|
16893 | newsos6)
|
---|
16894 | lt_prog_compiler_pic_GCJ='-KPIC'
|
---|
16895 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16896 | ;;
|
---|
16897 |
|
---|
16898 | linux*)
|
---|
16899 | case $cc_basename in
|
---|
16900 | icc* | ecc*)
|
---|
16901 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16902 | lt_prog_compiler_pic_GCJ='-KPIC'
|
---|
16903 | lt_prog_compiler_static_GCJ='-static'
|
---|
16904 | ;;
|
---|
16905 | pgcc* | pgf77* | pgf90* | pgf95*)
|
---|
16906 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
16907 | # which looks to be a dead project)
|
---|
16908 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16909 | lt_prog_compiler_pic_GCJ='-fpic'
|
---|
16910 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16911 | ;;
|
---|
16912 | ccc*)
|
---|
16913 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16914 | # All Alpha code is PIC.
|
---|
16915 | lt_prog_compiler_static_GCJ='-non_shared'
|
---|
16916 | ;;
|
---|
16917 | esac
|
---|
16918 | ;;
|
---|
16919 |
|
---|
16920 | osf3* | osf4* | osf5*)
|
---|
16921 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16922 | # All OSF/1 code is PIC.
|
---|
16923 | lt_prog_compiler_static_GCJ='-non_shared'
|
---|
16924 | ;;
|
---|
16925 |
|
---|
16926 | solaris*)
|
---|
16927 | lt_prog_compiler_pic_GCJ='-KPIC'
|
---|
16928 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16929 | case $cc_basename in
|
---|
16930 | f77* | f90* | f95*)
|
---|
16931 | lt_prog_compiler_wl_GCJ='-Qoption ld ';;
|
---|
16932 | *)
|
---|
16933 | lt_prog_compiler_wl_GCJ='-Wl,';;
|
---|
16934 | esac
|
---|
16935 | ;;
|
---|
16936 |
|
---|
16937 | sunos4*)
|
---|
16938 | lt_prog_compiler_wl_GCJ='-Qoption ld '
|
---|
16939 | lt_prog_compiler_pic_GCJ='-PIC'
|
---|
16940 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16941 | ;;
|
---|
16942 |
|
---|
16943 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
16944 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16945 | lt_prog_compiler_pic_GCJ='-KPIC'
|
---|
16946 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16947 | ;;
|
---|
16948 |
|
---|
16949 | sysv4*MP*)
|
---|
16950 | if test -d /usr/nec ;then
|
---|
16951 | lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
---|
16952 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16953 | fi
|
---|
16954 | ;;
|
---|
16955 |
|
---|
16956 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
16957 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16958 | lt_prog_compiler_pic_GCJ='-KPIC'
|
---|
16959 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16960 | ;;
|
---|
16961 |
|
---|
16962 | unicos*)
|
---|
16963 | lt_prog_compiler_wl_GCJ='-Wl,'
|
---|
16964 | lt_prog_compiler_can_build_shared_GCJ=no
|
---|
16965 | ;;
|
---|
16966 |
|
---|
16967 | uts4*)
|
---|
16968 | lt_prog_compiler_pic_GCJ='-pic'
|
---|
16969 | lt_prog_compiler_static_GCJ='-Bstatic'
|
---|
16970 | ;;
|
---|
16971 |
|
---|
16972 | *)
|
---|
16973 | lt_prog_compiler_can_build_shared_GCJ=no
|
---|
16974 | ;;
|
---|
16975 | esac
|
---|
16976 | fi
|
---|
16977 |
|
---|
16978 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
|
---|
16979 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
|
---|
16980 |
|
---|
16981 | #
|
---|
16982 | # Check to make sure the PIC flag actually works.
|
---|
16983 | #
|
---|
16984 | if test -n "$lt_prog_compiler_pic_GCJ"; then
|
---|
16985 |
|
---|
16986 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
|
---|
16987 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
|
---|
16988 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
|
---|
16989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
16990 | else
|
---|
16991 | lt_prog_compiler_pic_works_GCJ=no
|
---|
16992 | ac_outfile=conftest.$ac_objext
|
---|
16993 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
16994 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
---|
16995 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
16996 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
16997 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
16998 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
16999 | # The option is referenced via a variable to avoid confusing sed.
|
---|
17000 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
17001 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
17002 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
17003 | -e 's:$: $lt_compiler_flag:'`
|
---|
17004 | (eval echo "\"\$as_me:17004: $lt_compile\"" >&5)
|
---|
17005 | (eval "$lt_compile" 2>conftest.err)
|
---|
17006 | ac_status=$?
|
---|
17007 | cat conftest.err >&5
|
---|
17008 | echo "$as_me:17008: \$? = $ac_status" >&5
|
---|
17009 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
17010 | # The compiler can only warn and ignore the option if not recognized
|
---|
17011 | # So say no if there are warnings other than the usual output.
|
---|
17012 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
---|
17013 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
17014 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
17015 | lt_prog_compiler_pic_works_GCJ=yes
|
---|
17016 | fi
|
---|
17017 | fi
|
---|
17018 | $rm conftest*
|
---|
17019 |
|
---|
17020 | fi
|
---|
17021 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
|
---|
17022 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
|
---|
17023 |
|
---|
17024 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
|
---|
17025 | case $lt_prog_compiler_pic_GCJ in
|
---|
17026 | "" | " "*) ;;
|
---|
17027 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
|
---|
17028 | esac
|
---|
17029 | else
|
---|
17030 | lt_prog_compiler_pic_GCJ=
|
---|
17031 | lt_prog_compiler_can_build_shared_GCJ=no
|
---|
17032 | fi
|
---|
17033 |
|
---|
17034 | fi
|
---|
17035 | case $host_os in
|
---|
17036 | # For platforms which do not support PIC, -DPIC is meaningless:
|
---|
17037 | *djgpp*)
|
---|
17038 | lt_prog_compiler_pic_GCJ=
|
---|
17039 | ;;
|
---|
17040 | *)
|
---|
17041 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
|
---|
17042 | ;;
|
---|
17043 | esac
|
---|
17044 |
|
---|
17045 | #
|
---|
17046 | # Check to make sure the static flag actually works.
|
---|
17047 | #
|
---|
17048 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
|
---|
17049 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
17050 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
---|
17051 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
|
---|
17052 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
17053 | else
|
---|
17054 | lt_prog_compiler_static_works_GCJ=no
|
---|
17055 | save_LDFLAGS="$LDFLAGS"
|
---|
17056 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
17057 | printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
17058 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
17059 | # The linker can only warn and ignore the option if not recognized
|
---|
17060 | # So say no if there are warnings
|
---|
17061 | if test -s conftest.err; then
|
---|
17062 | # Append any errors to the config.log.
|
---|
17063 | cat conftest.err 1>&5
|
---|
17064 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
---|
17065 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
17066 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
17067 | lt_prog_compiler_static_works_GCJ=yes
|
---|
17068 | fi
|
---|
17069 | else
|
---|
17070 | lt_prog_compiler_static_works_GCJ=yes
|
---|
17071 | fi
|
---|
17072 | fi
|
---|
17073 | $rm conftest*
|
---|
17074 | LDFLAGS="$save_LDFLAGS"
|
---|
17075 |
|
---|
17076 | fi
|
---|
17077 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
|
---|
17078 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
|
---|
17079 |
|
---|
17080 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
|
---|
17081 | :
|
---|
17082 | else
|
---|
17083 | lt_prog_compiler_static_GCJ=
|
---|
17084 | fi
|
---|
17085 |
|
---|
17086 |
|
---|
17087 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
17088 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
---|
17089 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
---|
17090 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
17091 | else
|
---|
17092 | lt_cv_prog_compiler_c_o_GCJ=no
|
---|
17093 | $rm -r conftest 2>/dev/null
|
---|
17094 | mkdir conftest
|
---|
17095 | cd conftest
|
---|
17096 | mkdir out
|
---|
17097 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
17098 |
|
---|
17099 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
17100 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
17101 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
17102 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
17103 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
17104 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
17105 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
17106 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
17107 | -e 's:$: $lt_compiler_flag:'`
|
---|
17108 | (eval echo "\"\$as_me:17108: $lt_compile\"" >&5)
|
---|
17109 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
17110 | ac_status=$?
|
---|
17111 | cat out/conftest.err >&5
|
---|
17112 | echo "$as_me:17112: \$? = $ac_status" >&5
|
---|
17113 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
17114 | then
|
---|
17115 | # The compiler can only warn and ignore the option if not recognized
|
---|
17116 | # So say no if there are warnings
|
---|
17117 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
---|
17118 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
17119 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
17120 | lt_cv_prog_compiler_c_o_GCJ=yes
|
---|
17121 | fi
|
---|
17122 | fi
|
---|
17123 | chmod u+w . 2>&5
|
---|
17124 | $rm conftest*
|
---|
17125 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
17126 | # template instantiation
|
---|
17127 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
---|
17128 | $rm out/* && rmdir out
|
---|
17129 | cd ..
|
---|
17130 | rmdir conftest
|
---|
17131 | $rm conftest*
|
---|
17132 |
|
---|
17133 | fi
|
---|
17134 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
|
---|
17135 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
|
---|
17136 |
|
---|
17137 |
|
---|
17138 | hard_links="nottested"
|
---|
17139 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
|
---|
17140 | # do not overwrite the value of need_locks provided by the user
|
---|
17141 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
---|
17142 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
---|
17143 | hard_links=yes
|
---|
17144 | $rm conftest*
|
---|
17145 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
17146 | touch conftest.a
|
---|
17147 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
17148 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
17149 | echo "$as_me:$LINENO: result: $hard_links" >&5
|
---|
17150 | echo "${ECHO_T}$hard_links" >&6
|
---|
17151 | if test "$hard_links" = no; then
|
---|
17152 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
---|
17153 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
---|
17154 | need_locks=warn
|
---|
17155 | fi
|
---|
17156 | else
|
---|
17157 | need_locks=no
|
---|
17158 | fi
|
---|
17159 |
|
---|
17160 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
17161 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
---|
17162 |
|
---|
17163 | runpath_var=
|
---|
17164 | allow_undefined_flag_GCJ=
|
---|
17165 | enable_shared_with_static_runtimes_GCJ=no
|
---|
17166 | archive_cmds_GCJ=
|
---|
17167 | archive_expsym_cmds_GCJ=
|
---|
17168 | old_archive_From_new_cmds_GCJ=
|
---|
17169 | old_archive_from_expsyms_cmds_GCJ=
|
---|
17170 | export_dynamic_flag_spec_GCJ=
|
---|
17171 | whole_archive_flag_spec_GCJ=
|
---|
17172 | thread_safe_flag_spec_GCJ=
|
---|
17173 | hardcode_libdir_flag_spec_GCJ=
|
---|
17174 | hardcode_libdir_flag_spec_ld_GCJ=
|
---|
17175 | hardcode_libdir_separator_GCJ=
|
---|
17176 | hardcode_direct_GCJ=no
|
---|
17177 | hardcode_minus_L_GCJ=no
|
---|
17178 | hardcode_shlibpath_var_GCJ=unsupported
|
---|
17179 | link_all_deplibs_GCJ=unknown
|
---|
17180 | hardcode_automatic_GCJ=no
|
---|
17181 | module_cmds_GCJ=
|
---|
17182 | module_expsym_cmds_GCJ=
|
---|
17183 | always_export_symbols_GCJ=no
|
---|
17184 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
17185 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
17186 | # included in the symbol list
|
---|
17187 | include_expsyms_GCJ=
|
---|
17188 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
17189 | # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
---|
17190 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
---|
17191 | # as well as any symbol that contains `d'.
|
---|
17192 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
|
---|
17193 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
17194 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
17195 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
17196 | # rely on this symbol name, it's probably fine to never include it in
|
---|
17197 | # preloaded symbol tables.
|
---|
17198 | extract_expsyms_cmds=
|
---|
17199 | # Just being paranoid about ensuring that cc_basename is set.
|
---|
17200 | for cc_temp in $compiler""; do
|
---|
17201 | case $cc_temp in
|
---|
17202 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
17203 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
17204 | \-*) ;;
|
---|
17205 | *) break;;
|
---|
17206 | esac
|
---|
17207 | done
|
---|
17208 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
17209 |
|
---|
17210 | case $host_os in
|
---|
17211 | cygwin* | mingw* | pw32*)
|
---|
17212 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
17213 | # When not using gcc, we currently assume that we are using
|
---|
17214 | # Microsoft Visual C++.
|
---|
17215 | if test "$GCC" != yes; then
|
---|
17216 | with_gnu_ld=no
|
---|
17217 | fi
|
---|
17218 | ;;
|
---|
17219 | interix*)
|
---|
17220 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
17221 | with_gnu_ld=yes
|
---|
17222 | ;;
|
---|
17223 | openbsd*)
|
---|
17224 | with_gnu_ld=no
|
---|
17225 | ;;
|
---|
17226 | esac
|
---|
17227 |
|
---|
17228 | ld_shlibs_GCJ=yes
|
---|
17229 | if test "$with_gnu_ld" = yes; then
|
---|
17230 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
17231 | wlarc='${wl}'
|
---|
17232 |
|
---|
17233 | # Set some defaults for GNU ld with shared library support. These
|
---|
17234 | # are reset later if shared libraries are not supported. Putting them
|
---|
17235 | # here allows them to be overridden if necessary.
|
---|
17236 | runpath_var=LD_RUN_PATH
|
---|
17237 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
|
---|
17238 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
|
---|
17239 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
17240 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
---|
17241 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
---|
17242 | else
|
---|
17243 | whole_archive_flag_spec_GCJ=
|
---|
17244 | fi
|
---|
17245 | supports_anon_versioning=no
|
---|
17246 | case `$LD -v 2>/dev/null` in
|
---|
17247 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
17248 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
17249 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
17250 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
17251 | *) supports_anon_versioning=yes ;;
|
---|
17252 | esac
|
---|
17253 |
|
---|
17254 | # See if GNU ld supports shared libraries.
|
---|
17255 | case $host_os in
|
---|
17256 | aix3* | aix4* | aix5*)
|
---|
17257 | # On AIX/PPC, the GNU linker is very broken
|
---|
17258 | if test "$host_cpu" != ia64; then
|
---|
17259 | ld_shlibs_GCJ=no
|
---|
17260 | cat <<EOF 1>&2
|
---|
17261 |
|
---|
17262 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
---|
17263 | *** to be unable to reliably create shared libraries on AIX.
|
---|
17264 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
17265 | *** really care for shared libraries, you may want to modify your PATH
|
---|
17266 | *** so that a non-GNU linker is found, and then restart.
|
---|
17267 |
|
---|
17268 | EOF
|
---|
17269 | fi
|
---|
17270 | ;;
|
---|
17271 |
|
---|
17272 | amigaos*)
|
---|
17273 | 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)'
|
---|
17274 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17275 | hardcode_minus_L_GCJ=yes
|
---|
17276 |
|
---|
17277 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
---|
17278 | # that the semantics of dynamic libraries on AmigaOS, at least up
|
---|
17279 | # to version 4, is to share data among multiple programs linked
|
---|
17280 | # with the same dynamic library. Since this doesn't match the
|
---|
17281 | # behavior of shared libraries on other platforms, we can't use
|
---|
17282 | # them.
|
---|
17283 | ld_shlibs_GCJ=no
|
---|
17284 | ;;
|
---|
17285 |
|
---|
17286 | beos*)
|
---|
17287 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
17288 | allow_undefined_flag_GCJ=unsupported
|
---|
17289 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
17290 | # support --undefined. This deserves some investigation. FIXME
|
---|
17291 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
17292 | else
|
---|
17293 | ld_shlibs_GCJ=no
|
---|
17294 | fi
|
---|
17295 | ;;
|
---|
17296 |
|
---|
17297 | cygwin* | mingw* | pw32*)
|
---|
17298 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
|
---|
17299 | # as there is no search path for DLLs.
|
---|
17300 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17301 | allow_undefined_flag_GCJ=unsupported
|
---|
17302 | always_export_symbols_GCJ=no
|
---|
17303 | enable_shared_with_static_runtimes_GCJ=yes
|
---|
17304 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
17305 |
|
---|
17306 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
---|
17307 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
17308 | # If the export-symbols file already is a .def file (1st line
|
---|
17309 | # is EXPORTS), use it as is; otherwise, prepend...
|
---|
17310 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
---|
17311 | cp $export_symbols $output_objdir/$soname.def;
|
---|
17312 | else
|
---|
17313 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
17314 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
17315 | fi~
|
---|
17316 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
17317 | else
|
---|
17318 | ld_shlibs_GCJ=no
|
---|
17319 | fi
|
---|
17320 | ;;
|
---|
17321 |
|
---|
17322 | interix3*)
|
---|
17323 | hardcode_direct_GCJ=no
|
---|
17324 | hardcode_shlibpath_var_GCJ=no
|
---|
17325 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
---|
17326 | export_dynamic_flag_spec_GCJ='${wl}-E'
|
---|
17327 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
17328 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
17329 | # default) and relocated if they conflict, which is a slow very memory
|
---|
17330 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
17331 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
17332 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
17333 | 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'
|
---|
17334 | 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'
|
---|
17335 | ;;
|
---|
17336 |
|
---|
17337 | linux*)
|
---|
17338 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
17339 | tmp_addflag=
|
---|
17340 | case $cc_basename,$host_cpu in
|
---|
17341 | pgcc*) # Portland Group C compiler
|
---|
17342 | 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'
|
---|
17343 | tmp_addflag=' $pic_flag'
|
---|
17344 | ;;
|
---|
17345 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
---|
17346 | 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'
|
---|
17347 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
17348 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
17349 | tmp_addflag=' -i_dynamic' ;;
|
---|
17350 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
17351 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
17352 | ifc* | ifort*) # Intel Fortran compiler
|
---|
17353 | tmp_addflag=' -nofor_main' ;;
|
---|
17354 | esac
|
---|
17355 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
17356 |
|
---|
17357 | if test $supports_anon_versioning = yes; then
|
---|
17358 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
---|
17359 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
17360 | $echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
17361 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
---|
17362 | fi
|
---|
17363 | else
|
---|
17364 | ld_shlibs_GCJ=no
|
---|
17365 | fi
|
---|
17366 | ;;
|
---|
17367 |
|
---|
17368 | netbsd*)
|
---|
17369 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
17370 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
17371 | wlarc=
|
---|
17372 | else
|
---|
17373 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
17374 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
17375 | fi
|
---|
17376 | ;;
|
---|
17377 |
|
---|
17378 | solaris*)
|
---|
17379 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
---|
17380 | ld_shlibs_GCJ=no
|
---|
17381 | cat <<EOF 1>&2
|
---|
17382 |
|
---|
17383 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
17384 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
17385 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
17386 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
17387 | *** your PATH or compiler configuration so that the native linker is
|
---|
17388 | *** used, and then restart.
|
---|
17389 |
|
---|
17390 | EOF
|
---|
17391 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
17392 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
17393 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
17394 | else
|
---|
17395 | ld_shlibs_GCJ=no
|
---|
17396 | fi
|
---|
17397 | ;;
|
---|
17398 |
|
---|
17399 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
17400 | case `$LD -v 2>&1` in
|
---|
17401 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
17402 | ld_shlibs_GCJ=no
|
---|
17403 | cat <<_LT_EOF 1>&2
|
---|
17404 |
|
---|
17405 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
---|
17406 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
17407 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
17408 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
17409 | *** your PATH or compiler configuration so that the native linker is
|
---|
17410 | *** used, and then restart.
|
---|
17411 |
|
---|
17412 | _LT_EOF
|
---|
17413 | ;;
|
---|
17414 | *)
|
---|
17415 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
17416 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
---|
17417 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
---|
17418 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
---|
17419 | else
|
---|
17420 | ld_shlibs_GCJ=no
|
---|
17421 | fi
|
---|
17422 | ;;
|
---|
17423 | esac
|
---|
17424 | ;;
|
---|
17425 |
|
---|
17426 | sunos4*)
|
---|
17427 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
17428 | wlarc=
|
---|
17429 | hardcode_direct_GCJ=yes
|
---|
17430 | hardcode_shlibpath_var_GCJ=no
|
---|
17431 | ;;
|
---|
17432 |
|
---|
17433 | *)
|
---|
17434 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
---|
17435 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
---|
17436 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
17437 | else
|
---|
17438 | ld_shlibs_GCJ=no
|
---|
17439 | fi
|
---|
17440 | ;;
|
---|
17441 | esac
|
---|
17442 |
|
---|
17443 | if test "$ld_shlibs_GCJ" = no; then
|
---|
17444 | runpath_var=
|
---|
17445 | hardcode_libdir_flag_spec_GCJ=
|
---|
17446 | export_dynamic_flag_spec_GCJ=
|
---|
17447 | whole_archive_flag_spec_GCJ=
|
---|
17448 | fi
|
---|
17449 | else
|
---|
17450 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
17451 | case $host_os in
|
---|
17452 | aix3*)
|
---|
17453 | allow_undefined_flag_GCJ=unsupported
|
---|
17454 | always_export_symbols_GCJ=yes
|
---|
17455 | 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'
|
---|
17456 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
17457 | # are no directories specified by -L.
|
---|
17458 | hardcode_minus_L_GCJ=yes
|
---|
17459 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
---|
17460 | # Neither direct hardcoding nor static linking is supported with a
|
---|
17461 | # broken collect2.
|
---|
17462 | hardcode_direct_GCJ=unsupported
|
---|
17463 | fi
|
---|
17464 | ;;
|
---|
17465 |
|
---|
17466 | aix4* | aix5*)
|
---|
17467 | if test "$host_cpu" = ia64; then
|
---|
17468 | # On IA64, the linker does run time linking by default, so we don't
|
---|
17469 | # have to do anything special.
|
---|
17470 | aix_use_runtimelinking=no
|
---|
17471 | exp_sym_flag='-Bexport'
|
---|
17472 | no_entry_flag=""
|
---|
17473 | else
|
---|
17474 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
17475 | # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
---|
17476 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
---|
17477 | 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'
|
---|
17478 | else
|
---|
17479 | 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'
|
---|
17480 | fi
|
---|
17481 | aix_use_runtimelinking=no
|
---|
17482 |
|
---|
17483 | # Test if we are trying to use run time linking or normal
|
---|
17484 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
17485 | # need to do runtime linking.
|
---|
17486 | case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
---|
17487 | for ld_flag in $LDFLAGS; do
|
---|
17488 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
---|
17489 | aix_use_runtimelinking=yes
|
---|
17490 | break
|
---|
17491 | fi
|
---|
17492 | done
|
---|
17493 | ;;
|
---|
17494 | esac
|
---|
17495 |
|
---|
17496 | exp_sym_flag='-bexport'
|
---|
17497 | no_entry_flag='-bnoentry'
|
---|
17498 | fi
|
---|
17499 |
|
---|
17500 | # When large executables or shared objects are built, AIX ld can
|
---|
17501 | # have problems creating the table of contents. If linking a library
|
---|
17502 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
17503 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
17504 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
17505 |
|
---|
17506 | archive_cmds_GCJ=''
|
---|
17507 | hardcode_direct_GCJ=yes
|
---|
17508 | hardcode_libdir_separator_GCJ=':'
|
---|
17509 | link_all_deplibs_GCJ=yes
|
---|
17510 |
|
---|
17511 | if test "$GCC" = yes; then
|
---|
17512 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
17513 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
17514 | # below for broken collect2 doesn't work under 4.3+
|
---|
17515 | collect2name=`${CC} -print-prog-name=collect2`
|
---|
17516 | if test -f "$collect2name" && \
|
---|
17517 | strings "$collect2name" | grep resolve_lib_name >/dev/null
|
---|
17518 | then
|
---|
17519 | # We have reworked collect2
|
---|
17520 | hardcode_direct_GCJ=yes
|
---|
17521 | else
|
---|
17522 | # We have old collect2
|
---|
17523 | hardcode_direct_GCJ=unsupported
|
---|
17524 | # It fails to find uninstalled libraries when the uninstalled
|
---|
17525 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
17526 | # to unsupported forces relinking
|
---|
17527 | hardcode_minus_L_GCJ=yes
|
---|
17528 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17529 | hardcode_libdir_separator_GCJ=
|
---|
17530 | fi
|
---|
17531 | ;;
|
---|
17532 | esac
|
---|
17533 | shared_flag='-shared'
|
---|
17534 | if test "$aix_use_runtimelinking" = yes; then
|
---|
17535 | shared_flag="$shared_flag "'${wl}-G'
|
---|
17536 | fi
|
---|
17537 | else
|
---|
17538 | # not using gcc
|
---|
17539 | if test "$host_cpu" = ia64; then
|
---|
17540 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
17541 | # chokes on -Wl,-G. The following line is correct:
|
---|
17542 | shared_flag='-G'
|
---|
17543 | else
|
---|
17544 | if test "$aix_use_runtimelinking" = yes; then
|
---|
17545 | shared_flag='${wl}-G'
|
---|
17546 | else
|
---|
17547 | shared_flag='${wl}-bM:SRE'
|
---|
17548 | fi
|
---|
17549 | fi
|
---|
17550 | fi
|
---|
17551 |
|
---|
17552 | # It seems that -bexpall does not export symbols beginning with
|
---|
17553 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
17554 | always_export_symbols_GCJ=yes
|
---|
17555 | if test "$aix_use_runtimelinking" = yes; then
|
---|
17556 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
17557 | # -berok will link without error, but may produce a broken library.
|
---|
17558 | allow_undefined_flag_GCJ='-berok'
|
---|
17559 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
17560 | cat >conftest.$ac_ext <<_ACEOF
|
---|
17561 | /* confdefs.h. */
|
---|
17562 | _ACEOF
|
---|
17563 | cat confdefs.h >>conftest.$ac_ext
|
---|
17564 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
17565 | /* end confdefs.h. */
|
---|
17566 |
|
---|
17567 | int
|
---|
17568 | main ()
|
---|
17569 | {
|
---|
17570 |
|
---|
17571 | ;
|
---|
17572 | return 0;
|
---|
17573 | }
|
---|
17574 | _ACEOF
|
---|
17575 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
17576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
17577 | (eval $ac_link) 2>conftest.er1
|
---|
17578 | ac_status=$?
|
---|
17579 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
17580 | rm -f conftest.er1
|
---|
17581 | cat conftest.err >&5
|
---|
17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17583 | (exit $ac_status); } &&
|
---|
17584 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
17585 | || test ! -s conftest.err'
|
---|
17586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
17587 | (eval $ac_try) 2>&5
|
---|
17588 | ac_status=$?
|
---|
17589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17590 | (exit $ac_status); }; } &&
|
---|
17591 | { ac_try='test -s conftest$ac_exeext'
|
---|
17592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
17593 | (eval $ac_try) 2>&5
|
---|
17594 | ac_status=$?
|
---|
17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17596 | (exit $ac_status); }; }; then
|
---|
17597 |
|
---|
17598 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
17599 | }'`
|
---|
17600 | # Check for a 64-bit object if we didn't find anything.
|
---|
17601 | 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; }
|
---|
17602 | }'`; fi
|
---|
17603 | else
|
---|
17604 | echo "$as_me: failed program was:" >&5
|
---|
17605 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
17606 |
|
---|
17607 | fi
|
---|
17608 | rm -f conftest.err conftest.$ac_objext \
|
---|
17609 | conftest$ac_exeext conftest.$ac_ext
|
---|
17610 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
17611 |
|
---|
17612 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
17613 | 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"
|
---|
17614 | else
|
---|
17615 | if test "$host_cpu" = ia64; then
|
---|
17616 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
---|
17617 | allow_undefined_flag_GCJ="-z nodefs"
|
---|
17618 | 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"
|
---|
17619 | else
|
---|
17620 | # Determine the default libpath from the value encoded in an empty executable.
|
---|
17621 | cat >conftest.$ac_ext <<_ACEOF
|
---|
17622 | /* confdefs.h. */
|
---|
17623 | _ACEOF
|
---|
17624 | cat confdefs.h >>conftest.$ac_ext
|
---|
17625 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
17626 | /* end confdefs.h. */
|
---|
17627 |
|
---|
17628 | int
|
---|
17629 | main ()
|
---|
17630 | {
|
---|
17631 |
|
---|
17632 | ;
|
---|
17633 | return 0;
|
---|
17634 | }
|
---|
17635 | _ACEOF
|
---|
17636 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
17637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
17638 | (eval $ac_link) 2>conftest.er1
|
---|
17639 | ac_status=$?
|
---|
17640 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
17641 | rm -f conftest.er1
|
---|
17642 | cat conftest.err >&5
|
---|
17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17644 | (exit $ac_status); } &&
|
---|
17645 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
17646 | || test ! -s conftest.err'
|
---|
17647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
17648 | (eval $ac_try) 2>&5
|
---|
17649 | ac_status=$?
|
---|
17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17651 | (exit $ac_status); }; } &&
|
---|
17652 | { ac_try='test -s conftest$ac_exeext'
|
---|
17653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
17654 | (eval $ac_try) 2>&5
|
---|
17655 | ac_status=$?
|
---|
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17657 | (exit $ac_status); }; }; then
|
---|
17658 |
|
---|
17659 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
---|
17660 | }'`
|
---|
17661 | # Check for a 64-bit object if we didn't find anything.
|
---|
17662 | 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; }
|
---|
17663 | }'`; fi
|
---|
17664 | else
|
---|
17665 | echo "$as_me: failed program was:" >&5
|
---|
17666 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
17667 |
|
---|
17668 | fi
|
---|
17669 | rm -f conftest.err conftest.$ac_objext \
|
---|
17670 | conftest$ac_exeext conftest.$ac_ext
|
---|
17671 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
---|
17672 |
|
---|
17673 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
---|
17674 | # Warning - without using the other run time loading flags,
|
---|
17675 | # -berok will link without error, but may produce a broken library.
|
---|
17676 | no_undefined_flag_GCJ=' ${wl}-bernotok'
|
---|
17677 | allow_undefined_flag_GCJ=' ${wl}-berok'
|
---|
17678 | # Exported symbols can be pulled into shared objects from archives
|
---|
17679 | whole_archive_flag_spec_GCJ='$convenience'
|
---|
17680 | archive_cmds_need_lc_GCJ=yes
|
---|
17681 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
17682 | 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'
|
---|
17683 | fi
|
---|
17684 | fi
|
---|
17685 | ;;
|
---|
17686 |
|
---|
17687 | amigaos*)
|
---|
17688 | 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)'
|
---|
17689 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17690 | hardcode_minus_L_GCJ=yes
|
---|
17691 | # see comment about different semantics on the GNU ld section
|
---|
17692 | ld_shlibs_GCJ=no
|
---|
17693 | ;;
|
---|
17694 |
|
---|
17695 | bsdi[45]*)
|
---|
17696 | export_dynamic_flag_spec_GCJ=-rdynamic
|
---|
17697 | ;;
|
---|
17698 |
|
---|
17699 | cygwin* | mingw* | pw32*)
|
---|
17700 | # When not using gcc, we currently assume that we are using
|
---|
17701 | # Microsoft Visual C++.
|
---|
17702 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
17703 | # no search path for DLLs.
|
---|
17704 | hardcode_libdir_flag_spec_GCJ=' '
|
---|
17705 | allow_undefined_flag_GCJ=unsupported
|
---|
17706 | # Tell ltmain to make .lib files, not .a files.
|
---|
17707 | libext=lib
|
---|
17708 | # Tell ltmain to make .dll files, not .so files.
|
---|
17709 | shrext_cmds=".dll"
|
---|
17710 | # FIXME: Setting linknames here is a bad hack.
|
---|
17711 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
17712 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
17713 | old_archive_From_new_cmds_GCJ='true'
|
---|
17714 | # FIXME: Should let the user specify the lib program.
|
---|
17715 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
---|
17716 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
---|
17717 | enable_shared_with_static_runtimes_GCJ=yes
|
---|
17718 | ;;
|
---|
17719 |
|
---|
17720 | darwin* | rhapsody*)
|
---|
17721 | case $host_os in
|
---|
17722 | rhapsody* | darwin1.[012])
|
---|
17723 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
---|
17724 | ;;
|
---|
17725 | *) # Darwin 1.3 on
|
---|
17726 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
---|
17727 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
17728 | else
|
---|
17729 | case ${MACOSX_DEPLOYMENT_TARGET} in
|
---|
17730 | 10.[012])
|
---|
17731 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
---|
17732 | ;;
|
---|
17733 | 10.*)
|
---|
17734 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
---|
17735 | ;;
|
---|
17736 | esac
|
---|
17737 | fi
|
---|
17738 | ;;
|
---|
17739 | esac
|
---|
17740 | archive_cmds_need_lc_GCJ=no
|
---|
17741 | hardcode_direct_GCJ=no
|
---|
17742 | hardcode_automatic_GCJ=yes
|
---|
17743 | hardcode_shlibpath_var_GCJ=unsupported
|
---|
17744 | whole_archive_flag_spec_GCJ=''
|
---|
17745 | link_all_deplibs_GCJ=yes
|
---|
17746 | if test "$GCC" = yes ; then
|
---|
17747 | output_verbose_link_cmd='echo'
|
---|
17748 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
---|
17749 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
17750 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
17751 | 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}'
|
---|
17752 | 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}'
|
---|
17753 | else
|
---|
17754 | case $cc_basename in
|
---|
17755 | xlc*)
|
---|
17756 | output_verbose_link_cmd='echo'
|
---|
17757 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
---|
17758 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
---|
17759 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
---|
17760 | 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}'
|
---|
17761 | 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}'
|
---|
17762 | ;;
|
---|
17763 | *)
|
---|
17764 | ld_shlibs_GCJ=no
|
---|
17765 | ;;
|
---|
17766 | esac
|
---|
17767 | fi
|
---|
17768 | ;;
|
---|
17769 |
|
---|
17770 | dgux*)
|
---|
17771 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
17772 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17773 | hardcode_shlibpath_var_GCJ=no
|
---|
17774 | ;;
|
---|
17775 |
|
---|
17776 | freebsd1*)
|
---|
17777 | ld_shlibs_GCJ=no
|
---|
17778 | ;;
|
---|
17779 |
|
---|
17780 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
17781 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
17782 | # does not break anything, and helps significantly (at the cost of a little
|
---|
17783 | # extra space).
|
---|
17784 | freebsd2.2*)
|
---|
17785 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
17786 | hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
---|
17787 | hardcode_direct_GCJ=yes
|
---|
17788 | hardcode_shlibpath_var_GCJ=no
|
---|
17789 | ;;
|
---|
17790 |
|
---|
17791 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
17792 | freebsd2*)
|
---|
17793 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
17794 | hardcode_direct_GCJ=yes
|
---|
17795 | hardcode_minus_L_GCJ=yes
|
---|
17796 | hardcode_shlibpath_var_GCJ=no
|
---|
17797 | ;;
|
---|
17798 |
|
---|
17799 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
17800 | freebsd* | kfreebsd*-gnu | dragonfly*)
|
---|
17801 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17802 | hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
---|
17803 | hardcode_direct_GCJ=yes
|
---|
17804 | hardcode_shlibpath_var_GCJ=no
|
---|
17805 | ;;
|
---|
17806 |
|
---|
17807 | hpux9*)
|
---|
17808 | if test "$GCC" = yes; then
|
---|
17809 | 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'
|
---|
17810 | else
|
---|
17811 | 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'
|
---|
17812 | fi
|
---|
17813 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
---|
17814 | hardcode_libdir_separator_GCJ=:
|
---|
17815 | hardcode_direct_GCJ=yes
|
---|
17816 |
|
---|
17817 | # hardcode_minus_L: Not really in the search PATH,
|
---|
17818 | # but as the default location of the library.
|
---|
17819 | hardcode_minus_L_GCJ=yes
|
---|
17820 | export_dynamic_flag_spec_GCJ='${wl}-E'
|
---|
17821 | ;;
|
---|
17822 |
|
---|
17823 | hpux10*)
|
---|
17824 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
17825 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17826 | else
|
---|
17827 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
17828 | fi
|
---|
17829 | if test "$with_gnu_ld" = no; then
|
---|
17830 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
---|
17831 | hardcode_libdir_separator_GCJ=:
|
---|
17832 |
|
---|
17833 | hardcode_direct_GCJ=yes
|
---|
17834 | export_dynamic_flag_spec_GCJ='${wl}-E'
|
---|
17835 |
|
---|
17836 | # hardcode_minus_L: Not really in the search PATH,
|
---|
17837 | # but as the default location of the library.
|
---|
17838 | hardcode_minus_L_GCJ=yes
|
---|
17839 | fi
|
---|
17840 | ;;
|
---|
17841 |
|
---|
17842 | hpux11*)
|
---|
17843 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
---|
17844 | case $host_cpu in
|
---|
17845 | hppa*64*)
|
---|
17846 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17847 | ;;
|
---|
17848 | ia64*)
|
---|
17849 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17850 | ;;
|
---|
17851 | *)
|
---|
17852 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17853 | ;;
|
---|
17854 | esac
|
---|
17855 | else
|
---|
17856 | case $host_cpu in
|
---|
17857 | hppa*64*)
|
---|
17858 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17859 | ;;
|
---|
17860 | ia64*)
|
---|
17861 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17862 | ;;
|
---|
17863 | *)
|
---|
17864 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17865 | ;;
|
---|
17866 | esac
|
---|
17867 | fi
|
---|
17868 | if test "$with_gnu_ld" = no; then
|
---|
17869 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
---|
17870 | hardcode_libdir_separator_GCJ=:
|
---|
17871 |
|
---|
17872 | case $host_cpu in
|
---|
17873 | hppa*64*|ia64*)
|
---|
17874 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
---|
17875 | hardcode_direct_GCJ=no
|
---|
17876 | hardcode_shlibpath_var_GCJ=no
|
---|
17877 | ;;
|
---|
17878 | *)
|
---|
17879 | hardcode_direct_GCJ=yes
|
---|
17880 | export_dynamic_flag_spec_GCJ='${wl}-E'
|
---|
17881 |
|
---|
17882 | # hardcode_minus_L: Not really in the search PATH,
|
---|
17883 | # but as the default location of the library.
|
---|
17884 | hardcode_minus_L_GCJ=yes
|
---|
17885 | ;;
|
---|
17886 | esac
|
---|
17887 | fi
|
---|
17888 | ;;
|
---|
17889 |
|
---|
17890 | irix5* | irix6* | nonstopux*)
|
---|
17891 | if test "$GCC" = yes; then
|
---|
17892 | 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'
|
---|
17893 | else
|
---|
17894 | 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'
|
---|
17895 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
|
---|
17896 | fi
|
---|
17897 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
---|
17898 | hardcode_libdir_separator_GCJ=:
|
---|
17899 | link_all_deplibs_GCJ=yes
|
---|
17900 | ;;
|
---|
17901 |
|
---|
17902 | netbsd*)
|
---|
17903 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
17904 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
17905 | else
|
---|
17906 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
17907 | fi
|
---|
17908 | hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
---|
17909 | hardcode_direct_GCJ=yes
|
---|
17910 | hardcode_shlibpath_var_GCJ=no
|
---|
17911 | ;;
|
---|
17912 |
|
---|
17913 | newsos6)
|
---|
17914 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
17915 | hardcode_direct_GCJ=yes
|
---|
17916 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
---|
17917 | hardcode_libdir_separator_GCJ=:
|
---|
17918 | hardcode_shlibpath_var_GCJ=no
|
---|
17919 | ;;
|
---|
17920 |
|
---|
17921 | openbsd*)
|
---|
17922 | hardcode_direct_GCJ=yes
|
---|
17923 | hardcode_shlibpath_var_GCJ=no
|
---|
17924 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
17925 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17926 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
---|
17927 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
---|
17928 | export_dynamic_flag_spec_GCJ='${wl}-E'
|
---|
17929 | else
|
---|
17930 | case $host_os in
|
---|
17931 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
---|
17932 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
17933 | hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
---|
17934 | ;;
|
---|
17935 | *)
|
---|
17936 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17937 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
---|
17938 | ;;
|
---|
17939 | esac
|
---|
17940 | fi
|
---|
17941 | ;;
|
---|
17942 |
|
---|
17943 | os2*)
|
---|
17944 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
17945 | hardcode_minus_L_GCJ=yes
|
---|
17946 | allow_undefined_flag_GCJ=unsupported
|
---|
17947 | 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'
|
---|
17948 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
---|
17949 | ;;
|
---|
17950 |
|
---|
17951 | osf3*)
|
---|
17952 | if test "$GCC" = yes; then
|
---|
17953 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
---|
17954 | 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'
|
---|
17955 | else
|
---|
17956 | allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
---|
17957 | 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'
|
---|
17958 | fi
|
---|
17959 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
---|
17960 | hardcode_libdir_separator_GCJ=:
|
---|
17961 | ;;
|
---|
17962 |
|
---|
17963 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
17964 | if test "$GCC" = yes; then
|
---|
17965 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
---|
17966 | 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'
|
---|
17967 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
---|
17968 | else
|
---|
17969 | allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
---|
17970 | 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'
|
---|
17971 | 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~
|
---|
17972 | $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'
|
---|
17973 |
|
---|
17974 | # Both c and cxx compiler support -rpath directly
|
---|
17975 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
---|
17976 | fi
|
---|
17977 | hardcode_libdir_separator_GCJ=:
|
---|
17978 | ;;
|
---|
17979 |
|
---|
17980 | solaris*)
|
---|
17981 | no_undefined_flag_GCJ=' -z text'
|
---|
17982 | if test "$GCC" = yes; then
|
---|
17983 | wlarc='${wl}'
|
---|
17984 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
17985 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
17986 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
---|
17987 | else
|
---|
17988 | wlarc=''
|
---|
17989 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
17990 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
---|
17991 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
---|
17992 | fi
|
---|
17993 | hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
---|
17994 | hardcode_shlibpath_var_GCJ=no
|
---|
17995 | case $host_os in
|
---|
17996 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
17997 | *)
|
---|
17998 | # The compiler driver will combine linker options so we
|
---|
17999 | # cannot just pass the convience library names through
|
---|
18000 | # without $wl, iff we do not link with $LD.
|
---|
18001 | # Luckily, gcc supports the same syntax we need for Sun Studio.
|
---|
18002 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
18003 | case $wlarc in
|
---|
18004 | '')
|
---|
18005 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
|
---|
18006 | *)
|
---|
18007 | 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' ;;
|
---|
18008 | esac ;;
|
---|
18009 | esac
|
---|
18010 | link_all_deplibs_GCJ=yes
|
---|
18011 | ;;
|
---|
18012 |
|
---|
18013 | sunos4*)
|
---|
18014 | if test "x$host_vendor" = xsequent; then
|
---|
18015 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
18016 | # files that make .init and .fini sections work.
|
---|
18017 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18018 | else
|
---|
18019 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
18020 | fi
|
---|
18021 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
18022 | hardcode_direct_GCJ=yes
|
---|
18023 | hardcode_minus_L_GCJ=yes
|
---|
18024 | hardcode_shlibpath_var_GCJ=no
|
---|
18025 | ;;
|
---|
18026 |
|
---|
18027 | sysv4)
|
---|
18028 | case $host_vendor in
|
---|
18029 | sni)
|
---|
18030 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
18031 | hardcode_direct_GCJ=yes # is this really true???
|
---|
18032 | ;;
|
---|
18033 | siemens)
|
---|
18034 | ## LD is ld it makes a PLAMLIB
|
---|
18035 | ## CC just makes a GrossModule.
|
---|
18036 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
18037 | reload_cmds_GCJ='$CC -r -o $output$reload_objs'
|
---|
18038 | hardcode_direct_GCJ=no
|
---|
18039 | ;;
|
---|
18040 | motorola)
|
---|
18041 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
18042 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
|
---|
18043 | ;;
|
---|
18044 | esac
|
---|
18045 | runpath_var='LD_RUN_PATH'
|
---|
18046 | hardcode_shlibpath_var_GCJ=no
|
---|
18047 | ;;
|
---|
18048 |
|
---|
18049 | sysv4.3*)
|
---|
18050 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
18051 | hardcode_shlibpath_var_GCJ=no
|
---|
18052 | export_dynamic_flag_spec_GCJ='-Bexport'
|
---|
18053 | ;;
|
---|
18054 |
|
---|
18055 | sysv4*MP*)
|
---|
18056 | if test -d /usr/nec; then
|
---|
18057 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
18058 | hardcode_shlibpath_var_GCJ=no
|
---|
18059 | runpath_var=LD_RUN_PATH
|
---|
18060 | hardcode_runpath_var=yes
|
---|
18061 | ld_shlibs_GCJ=yes
|
---|
18062 | fi
|
---|
18063 | ;;
|
---|
18064 |
|
---|
18065 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
---|
18066 | no_undefined_flag_GCJ='${wl}-z,text'
|
---|
18067 | archive_cmds_need_lc_GCJ=no
|
---|
18068 | hardcode_shlibpath_var_GCJ=no
|
---|
18069 | runpath_var='LD_RUN_PATH'
|
---|
18070 |
|
---|
18071 | if test "$GCC" = yes; then
|
---|
18072 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18073 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18074 | else
|
---|
18075 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18076 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18077 | fi
|
---|
18078 | ;;
|
---|
18079 |
|
---|
18080 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
18081 | # Note: We can NOT use -z defs as we might desire, because we do not
|
---|
18082 | # link with -lc, and that would cause any symbols used from libc to
|
---|
18083 | # always be unresolved, which means just about no library would
|
---|
18084 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
18085 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
18086 | # as -z defs.
|
---|
18087 | no_undefined_flag_GCJ='${wl}-z,text'
|
---|
18088 | allow_undefined_flag_GCJ='${wl}-z,nodefs'
|
---|
18089 | archive_cmds_need_lc_GCJ=no
|
---|
18090 | hardcode_shlibpath_var_GCJ=no
|
---|
18091 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
---|
18092 | hardcode_libdir_separator_GCJ=':'
|
---|
18093 | link_all_deplibs_GCJ=yes
|
---|
18094 | export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
---|
18095 | runpath_var='LD_RUN_PATH'
|
---|
18096 |
|
---|
18097 | if test "$GCC" = yes; then
|
---|
18098 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18099 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18100 | else
|
---|
18101 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18102 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
18103 | fi
|
---|
18104 | ;;
|
---|
18105 |
|
---|
18106 | uts4*)
|
---|
18107 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
18108 | hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
---|
18109 | hardcode_shlibpath_var_GCJ=no
|
---|
18110 | ;;
|
---|
18111 |
|
---|
18112 | *)
|
---|
18113 | ld_shlibs_GCJ=no
|
---|
18114 | ;;
|
---|
18115 | esac
|
---|
18116 | fi
|
---|
18117 |
|
---|
18118 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
---|
18119 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6
|
---|
18120 | test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
---|
18121 |
|
---|
18122 | #
|
---|
18123 | # Do we need to explicitly link libc?
|
---|
18124 | #
|
---|
18125 | case "x$archive_cmds_need_lc_GCJ" in
|
---|
18126 | x|xyes)
|
---|
18127 | # Assume -lc should be added
|
---|
18128 | archive_cmds_need_lc_GCJ=yes
|
---|
18129 |
|
---|
18130 | if test "$enable_shared" = yes && test "$GCC" = yes; then
|
---|
18131 | case $archive_cmds_GCJ in
|
---|
18132 | *'~'*)
|
---|
18133 | # FIXME: we may have to deal with multi-command sequences.
|
---|
18134 | ;;
|
---|
18135 | '$CC '*)
|
---|
18136 | # Test whether the compiler implicitly links with -lc since on some
|
---|
18137 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
18138 | # to ld, don't add -lc before -lgcc.
|
---|
18139 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
---|
18140 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
---|
18141 | $rm conftest*
|
---|
18142 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
18143 |
|
---|
18144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
18145 | (eval $ac_compile) 2>&5
|
---|
18146 | ac_status=$?
|
---|
18147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
18148 | (exit $ac_status); } 2>conftest.err; then
|
---|
18149 | soname=conftest
|
---|
18150 | lib=conftest
|
---|
18151 | libobjs=conftest.$ac_objext
|
---|
18152 | deplibs=
|
---|
18153 | wl=$lt_prog_compiler_wl_GCJ
|
---|
18154 | pic_flag=$lt_prog_compiler_pic_GCJ
|
---|
18155 | compiler_flags=-v
|
---|
18156 | linker_flags=-v
|
---|
18157 | verstring=
|
---|
18158 | output_objdir=.
|
---|
18159 | libname=conftest
|
---|
18160 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
|
---|
18161 | allow_undefined_flag_GCJ=
|
---|
18162 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
---|
18163 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
18164 | ac_status=$?
|
---|
18165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
18166 | (exit $ac_status); }
|
---|
18167 | then
|
---|
18168 | archive_cmds_need_lc_GCJ=no
|
---|
18169 | else
|
---|
18170 | archive_cmds_need_lc_GCJ=yes
|
---|
18171 | fi
|
---|
18172 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
|
---|
18173 | else
|
---|
18174 | cat conftest.err 1>&5
|
---|
18175 | fi
|
---|
18176 | $rm conftest*
|
---|
18177 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
|
---|
18178 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
|
---|
18179 | ;;
|
---|
18180 | esac
|
---|
18181 | fi
|
---|
18182 | ;;
|
---|
18183 | esac
|
---|
18184 |
|
---|
18185 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
---|
18186 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
---|
18187 | library_names_spec=
|
---|
18188 | libname_spec='lib$name'
|
---|
18189 | soname_spec=
|
---|
18190 | shrext_cmds=".so"
|
---|
18191 | postinstall_cmds=
|
---|
18192 | postuninstall_cmds=
|
---|
18193 | finish_cmds=
|
---|
18194 | finish_eval=
|
---|
18195 | shlibpath_var=
|
---|
18196 | shlibpath_overrides_runpath=unknown
|
---|
18197 | version_type=none
|
---|
18198 | dynamic_linker="$host_os ld.so"
|
---|
18199 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
18200 | if test "$GCC" = yes; then
|
---|
18201 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
18202 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
---|
18203 | # if the path contains ";" then we assume it to be the separator
|
---|
18204 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
18205 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
18206 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
18207 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
18208 | else
|
---|
18209 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
18210 | fi
|
---|
18211 | else
|
---|
18212 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
18213 | fi
|
---|
18214 | need_lib_prefix=unknown
|
---|
18215 | hardcode_into_libs=no
|
---|
18216 |
|
---|
18217 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
18218 | # flags to be left without arguments
|
---|
18219 | need_version=unknown
|
---|
18220 |
|
---|
18221 | case $host_os in
|
---|
18222 | aix3*)
|
---|
18223 | version_type=linux
|
---|
18224 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
---|
18225 | shlibpath_var=LIBPATH
|
---|
18226 |
|
---|
18227 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
18228 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18229 | ;;
|
---|
18230 |
|
---|
18231 | aix4* | aix5*)
|
---|
18232 | version_type=linux
|
---|
18233 | need_lib_prefix=no
|
---|
18234 | need_version=no
|
---|
18235 | hardcode_into_libs=yes
|
---|
18236 | if test "$host_cpu" = ia64; then
|
---|
18237 | # AIX 5 supports IA64
|
---|
18238 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
---|
18239 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18240 | else
|
---|
18241 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
18242 | # for dependence libraries. The import file would start with
|
---|
18243 | # the line `#! .'. This would cause the generated library to
|
---|
18244 | # depend on `.', always an invalid library. This was fixed in
|
---|
18245 | # development snapshots of GCC prior to 3.0.
|
---|
18246 | case $host_os in
|
---|
18247 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
18248 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
18249 | echo ' yes '
|
---|
18250 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
---|
18251 | :
|
---|
18252 | else
|
---|
18253 | can_build_shared=no
|
---|
18254 | fi
|
---|
18255 | ;;
|
---|
18256 | esac
|
---|
18257 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
---|
18258 | # soname into executable. Probably we can add versioning support to
|
---|
18259 | # collect2, so additional links can be useful in future.
|
---|
18260 | if test "$aix_use_runtimelinking" = yes; then
|
---|
18261 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
18262 | # instead of lib<name>.a to let people know that these are not
|
---|
18263 | # typical AIX shared libraries.
|
---|
18264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18265 | else
|
---|
18266 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
18267 | # and later when we are not doing run time linking.
|
---|
18268 | library_names_spec='${libname}${release}.a $libname.a'
|
---|
18269 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18270 | fi
|
---|
18271 | shlibpath_var=LIBPATH
|
---|
18272 | fi
|
---|
18273 | ;;
|
---|
18274 |
|
---|
18275 | amigaos*)
|
---|
18276 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
18277 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
18278 | 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'
|
---|
18279 | ;;
|
---|
18280 |
|
---|
18281 | beos*)
|
---|
18282 | library_names_spec='${libname}${shared_ext}'
|
---|
18283 | dynamic_linker="$host_os ld.so"
|
---|
18284 | shlibpath_var=LIBRARY_PATH
|
---|
18285 | ;;
|
---|
18286 |
|
---|
18287 | bsdi[45]*)
|
---|
18288 | version_type=linux
|
---|
18289 | need_version=no
|
---|
18290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18291 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18292 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
18293 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18294 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
18295 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
18296 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
18297 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
18298 | # libtool to hard-code these into programs
|
---|
18299 | ;;
|
---|
18300 |
|
---|
18301 | cygwin* | mingw* | pw32*)
|
---|
18302 | version_type=windows
|
---|
18303 | shrext_cmds=".dll"
|
---|
18304 | need_version=no
|
---|
18305 | need_lib_prefix=no
|
---|
18306 |
|
---|
18307 | case $GCC,$host_os in
|
---|
18308 | yes,cygwin* | yes,mingw* | yes,pw32*)
|
---|
18309 | library_names_spec='$libname.dll.a'
|
---|
18310 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
18311 | postinstall_cmds='base_file=`basename \${file}`~
|
---|
18312 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
---|
18313 | dldir=$destdir/`dirname \$dlpath`~
|
---|
18314 | test -d \$dldir || mkdir -p \$dldir~
|
---|
18315 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
18316 | chmod a+x \$dldir/$dlname'
|
---|
18317 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
18318 | dlpath=$dir/\$dldll~
|
---|
18319 | $rm \$dlpath'
|
---|
18320 | shlibpath_overrides_runpath=yes
|
---|
18321 |
|
---|
18322 | case $host_os in
|
---|
18323 | cygwin*)
|
---|
18324 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
18325 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
18326 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
---|
18327 | ;;
|
---|
18328 | mingw*)
|
---|
18329 | # MinGW DLLs use traditional 'lib' prefix
|
---|
18330 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
18331 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
---|
18332 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
---|
18333 | # It is most probably a Windows format PATH printed by
|
---|
18334 | # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
---|
18335 | # path with ; separators, and with drive letters. We can handle the
|
---|
18336 | # drive letters (cygwin fileutils understands them), so leave them,
|
---|
18337 | # especially as we might pass files found there to a mingw objdump,
|
---|
18338 | # which wouldn't understand a cygwinified path. Ahh.
|
---|
18339 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
18340 | else
|
---|
18341 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
18342 | fi
|
---|
18343 | ;;
|
---|
18344 | pw32*)
|
---|
18345 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
18346 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
---|
18347 | ;;
|
---|
18348 | esac
|
---|
18349 | ;;
|
---|
18350 |
|
---|
18351 | *)
|
---|
18352 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
---|
18353 | ;;
|
---|
18354 | esac
|
---|
18355 | dynamic_linker='Win32 ld.exe'
|
---|
18356 | # FIXME: first we should search . and the directory the executable is in
|
---|
18357 | shlibpath_var=PATH
|
---|
18358 | ;;
|
---|
18359 |
|
---|
18360 | darwin* | rhapsody*)
|
---|
18361 | dynamic_linker="$host_os dyld"
|
---|
18362 | version_type=darwin
|
---|
18363 | need_lib_prefix=no
|
---|
18364 | need_version=no
|
---|
18365 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
---|
18366 | soname_spec='${libname}${release}${major}$shared_ext'
|
---|
18367 | shlibpath_overrides_runpath=yes
|
---|
18368 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
18369 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
18370 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
---|
18371 | if test "$GCC" = yes; then
|
---|
18372 | 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"`
|
---|
18373 | else
|
---|
18374 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
---|
18375 | fi
|
---|
18376 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
18377 | ;;
|
---|
18378 |
|
---|
18379 | dgux*)
|
---|
18380 | version_type=linux
|
---|
18381 | need_lib_prefix=no
|
---|
18382 | need_version=no
|
---|
18383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
---|
18384 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18385 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18386 | ;;
|
---|
18387 |
|
---|
18388 | freebsd1*)
|
---|
18389 | dynamic_linker=no
|
---|
18390 | ;;
|
---|
18391 |
|
---|
18392 | kfreebsd*-gnu)
|
---|
18393 | version_type=linux
|
---|
18394 | need_lib_prefix=no
|
---|
18395 | need_version=no
|
---|
18396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
18397 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18398 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18399 | shlibpath_overrides_runpath=no
|
---|
18400 | hardcode_into_libs=yes
|
---|
18401 | dynamic_linker='GNU ld.so'
|
---|
18402 | ;;
|
---|
18403 |
|
---|
18404 | freebsd* | dragonfly*)
|
---|
18405 | # DragonFly does not have aout. When/if they implement a new
|
---|
18406 | # versioning mechanism, adjust this.
|
---|
18407 | if test -x /usr/bin/objformat; then
|
---|
18408 | objformat=`/usr/bin/objformat`
|
---|
18409 | else
|
---|
18410 | case $host_os in
|
---|
18411 | freebsd[123]*) objformat=aout ;;
|
---|
18412 | *) objformat=elf ;;
|
---|
18413 | esac
|
---|
18414 | fi
|
---|
18415 | version_type=freebsd-$objformat
|
---|
18416 | case $version_type in
|
---|
18417 | freebsd-elf*)
|
---|
18418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
18419 | need_version=no
|
---|
18420 | need_lib_prefix=no
|
---|
18421 | ;;
|
---|
18422 | freebsd-*)
|
---|
18423 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
---|
18424 | need_version=yes
|
---|
18425 | ;;
|
---|
18426 | esac
|
---|
18427 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18428 | case $host_os in
|
---|
18429 | freebsd2*)
|
---|
18430 | shlibpath_overrides_runpath=yes
|
---|
18431 | ;;
|
---|
18432 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
18433 | shlibpath_overrides_runpath=yes
|
---|
18434 | hardcode_into_libs=yes
|
---|
18435 | ;;
|
---|
18436 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
18437 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
18438 | shlibpath_overrides_runpath=no
|
---|
18439 | hardcode_into_libs=yes
|
---|
18440 | ;;
|
---|
18441 | freebsd*) # from 4.6 on
|
---|
18442 | shlibpath_overrides_runpath=yes
|
---|
18443 | hardcode_into_libs=yes
|
---|
18444 | ;;
|
---|
18445 | esac
|
---|
18446 | ;;
|
---|
18447 |
|
---|
18448 | gnu*)
|
---|
18449 | version_type=linux
|
---|
18450 | need_lib_prefix=no
|
---|
18451 | need_version=no
|
---|
18452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
---|
18453 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18454 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18455 | hardcode_into_libs=yes
|
---|
18456 | ;;
|
---|
18457 |
|
---|
18458 | hpux9* | hpux10* | hpux11*)
|
---|
18459 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
18460 | # link against other versions.
|
---|
18461 | version_type=sunos
|
---|
18462 | need_lib_prefix=no
|
---|
18463 | need_version=no
|
---|
18464 | case $host_cpu in
|
---|
18465 | ia64*)
|
---|
18466 | shrext_cmds='.so'
|
---|
18467 | hardcode_into_libs=yes
|
---|
18468 | dynamic_linker="$host_os dld.so"
|
---|
18469 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18470 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
18471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18472 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18473 | if test "X$HPUX_IA64_MODE" = X32; then
|
---|
18474 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
18475 | else
|
---|
18476 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
18477 | fi
|
---|
18478 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
18479 | ;;
|
---|
18480 | hppa*64*)
|
---|
18481 | shrext_cmds='.sl'
|
---|
18482 | hardcode_into_libs=yes
|
---|
18483 | dynamic_linker="$host_os dld.sl"
|
---|
18484 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
18485 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
18486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18487 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18488 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
18489 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
18490 | ;;
|
---|
18491 | *)
|
---|
18492 | shrext_cmds='.sl'
|
---|
18493 | dynamic_linker="$host_os dld.sl"
|
---|
18494 | shlibpath_var=SHLIB_PATH
|
---|
18495 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
18496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18497 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18498 | ;;
|
---|
18499 | esac
|
---|
18500 | # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
---|
18501 | postinstall_cmds='chmod 555 $lib'
|
---|
18502 | ;;
|
---|
18503 |
|
---|
18504 | interix3*)
|
---|
18505 | version_type=linux
|
---|
18506 | need_lib_prefix=no
|
---|
18507 | need_version=no
|
---|
18508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
18509 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18510 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
18511 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18512 | shlibpath_overrides_runpath=no
|
---|
18513 | hardcode_into_libs=yes
|
---|
18514 | ;;
|
---|
18515 |
|
---|
18516 | irix5* | irix6* | nonstopux*)
|
---|
18517 | case $host_os in
|
---|
18518 | nonstopux*) version_type=nonstopux ;;
|
---|
18519 | *)
|
---|
18520 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
18521 | version_type=linux
|
---|
18522 | else
|
---|
18523 | version_type=irix
|
---|
18524 | fi ;;
|
---|
18525 | esac
|
---|
18526 | need_lib_prefix=no
|
---|
18527 | need_version=no
|
---|
18528 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
18530 | case $host_os in
|
---|
18531 | irix5* | nonstopux*)
|
---|
18532 | libsuff= shlibsuff=
|
---|
18533 | ;;
|
---|
18534 | *)
|
---|
18535 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
18536 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
18537 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
18538 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
18539 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
18540 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
18541 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
18542 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
18543 | esac
|
---|
18544 | ;;
|
---|
18545 | esac
|
---|
18546 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
18547 | shlibpath_overrides_runpath=no
|
---|
18548 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
---|
18549 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
---|
18550 | hardcode_into_libs=yes
|
---|
18551 | ;;
|
---|
18552 |
|
---|
18553 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
18554 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
18555 | dynamic_linker=no
|
---|
18556 | ;;
|
---|
18557 |
|
---|
18558 | # This must be Linux ELF.
|
---|
18559 | linux*)
|
---|
18560 | version_type=linux
|
---|
18561 | need_lib_prefix=no
|
---|
18562 | need_version=no
|
---|
18563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18564 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18565 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
18566 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18567 | shlibpath_overrides_runpath=no
|
---|
18568 | # This implies no fast_install, which is unacceptable.
|
---|
18569 | # Some rework will be needed to allow for fast_install
|
---|
18570 | # before this can be enabled.
|
---|
18571 | hardcode_into_libs=yes
|
---|
18572 |
|
---|
18573 | # find out which ABI we are using
|
---|
18574 | libsuff=
|
---|
18575 | case "$host_cpu" in
|
---|
18576 | x86_64*|s390x*|powerpc64*)
|
---|
18577 | echo '#line 18577 "configure"' > conftest.$ac_ext
|
---|
18578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
18579 | (eval $ac_compile) 2>&5
|
---|
18580 | ac_status=$?
|
---|
18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
18582 | (exit $ac_status); }; then
|
---|
18583 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
18584 | *64-bit*)
|
---|
18585 | libsuff=64
|
---|
18586 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
---|
18587 | ;;
|
---|
18588 | esac
|
---|
18589 | fi
|
---|
18590 | rm -rf conftest*
|
---|
18591 | ;;
|
---|
18592 | esac
|
---|
18593 |
|
---|
18594 | # Append ld.so.conf contents to the search path
|
---|
18595 | if test -f /etc/ld.so.conf; then
|
---|
18596 | 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' ' '`
|
---|
18597 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
---|
18598 | fi
|
---|
18599 |
|
---|
18600 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
18601 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
18602 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
18603 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
18604 | # people can always --disable-shared, the test was removed, and we
|
---|
18605 | # assume the GNU/Linux dynamic linker is in use.
|
---|
18606 | dynamic_linker='GNU/Linux ld.so'
|
---|
18607 | ;;
|
---|
18608 |
|
---|
18609 | knetbsd*-gnu)
|
---|
18610 | version_type=linux
|
---|
18611 | need_lib_prefix=no
|
---|
18612 | need_version=no
|
---|
18613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
18614 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18615 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18616 | shlibpath_overrides_runpath=no
|
---|
18617 | hardcode_into_libs=yes
|
---|
18618 | dynamic_linker='GNU ld.so'
|
---|
18619 | ;;
|
---|
18620 |
|
---|
18621 | netbsd*)
|
---|
18622 | version_type=sunos
|
---|
18623 | need_lib_prefix=no
|
---|
18624 | need_version=no
|
---|
18625 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
---|
18626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
18627 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
18628 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
18629 | else
|
---|
18630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
18631 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18632 | dynamic_linker='NetBSD ld.elf_so'
|
---|
18633 | fi
|
---|
18634 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18635 | shlibpath_overrides_runpath=yes
|
---|
18636 | hardcode_into_libs=yes
|
---|
18637 | ;;
|
---|
18638 |
|
---|
18639 | newsos6)
|
---|
18640 | version_type=linux
|
---|
18641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18642 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18643 | shlibpath_overrides_runpath=yes
|
---|
18644 | ;;
|
---|
18645 |
|
---|
18646 | nto-qnx*)
|
---|
18647 | version_type=linux
|
---|
18648 | need_lib_prefix=no
|
---|
18649 | need_version=no
|
---|
18650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18651 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18652 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18653 | shlibpath_overrides_runpath=yes
|
---|
18654 | ;;
|
---|
18655 |
|
---|
18656 | openbsd*)
|
---|
18657 | version_type=sunos
|
---|
18658 | sys_lib_dlsearch_path_spec="/usr/lib"
|
---|
18659 | need_lib_prefix=no
|
---|
18660 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
---|
18661 | case $host_os in
|
---|
18662 | openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
---|
18663 | *) need_version=no ;;
|
---|
18664 | esac
|
---|
18665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
18666 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
18667 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18668 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
---|
18669 | case $host_os in
|
---|
18670 | openbsd2.[89] | openbsd2.[89].*)
|
---|
18671 | shlibpath_overrides_runpath=no
|
---|
18672 | ;;
|
---|
18673 | *)
|
---|
18674 | shlibpath_overrides_runpath=yes
|
---|
18675 | ;;
|
---|
18676 | esac
|
---|
18677 | else
|
---|
18678 | shlibpath_overrides_runpath=yes
|
---|
18679 | fi
|
---|
18680 | ;;
|
---|
18681 |
|
---|
18682 | os2*)
|
---|
18683 | libname_spec='$name'
|
---|
18684 | shrext_cmds=".dll"
|
---|
18685 | need_lib_prefix=no
|
---|
18686 | library_names_spec='$libname${shared_ext} $libname.a'
|
---|
18687 | dynamic_linker='OS/2 ld.exe'
|
---|
18688 | shlibpath_var=LIBPATH
|
---|
18689 | ;;
|
---|
18690 |
|
---|
18691 | osf3* | osf4* | osf5*)
|
---|
18692 | version_type=osf
|
---|
18693 | need_lib_prefix=no
|
---|
18694 | need_version=no
|
---|
18695 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18697 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18698 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
18699 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
---|
18700 | ;;
|
---|
18701 |
|
---|
18702 | solaris*)
|
---|
18703 | version_type=linux
|
---|
18704 | need_lib_prefix=no
|
---|
18705 | need_version=no
|
---|
18706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18707 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18708 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18709 | shlibpath_overrides_runpath=yes
|
---|
18710 | hardcode_into_libs=yes
|
---|
18711 | # ldd complains unless libraries are executable
|
---|
18712 | postinstall_cmds='chmod +x $lib'
|
---|
18713 | ;;
|
---|
18714 |
|
---|
18715 | sunos4*)
|
---|
18716 | version_type=sunos
|
---|
18717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
---|
18718 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
18719 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18720 | shlibpath_overrides_runpath=yes
|
---|
18721 | if test "$with_gnu_ld" = yes; then
|
---|
18722 | need_lib_prefix=no
|
---|
18723 | fi
|
---|
18724 | need_version=yes
|
---|
18725 | ;;
|
---|
18726 |
|
---|
18727 | sysv4 | sysv4.3*)
|
---|
18728 | version_type=linux
|
---|
18729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18730 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18731 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18732 | case $host_vendor in
|
---|
18733 | sni)
|
---|
18734 | shlibpath_overrides_runpath=no
|
---|
18735 | need_lib_prefix=no
|
---|
18736 | export_dynamic_flag_spec='${wl}-Blargedynsym'
|
---|
18737 | runpath_var=LD_RUN_PATH
|
---|
18738 | ;;
|
---|
18739 | siemens)
|
---|
18740 | need_lib_prefix=no
|
---|
18741 | ;;
|
---|
18742 | motorola)
|
---|
18743 | need_lib_prefix=no
|
---|
18744 | need_version=no
|
---|
18745 | shlibpath_overrides_runpath=no
|
---|
18746 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
18747 | ;;
|
---|
18748 | esac
|
---|
18749 | ;;
|
---|
18750 |
|
---|
18751 | sysv4*MP*)
|
---|
18752 | if test -d /usr/nec ;then
|
---|
18753 | version_type=linux
|
---|
18754 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
---|
18755 | soname_spec='$libname${shared_ext}.$major'
|
---|
18756 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18757 | fi
|
---|
18758 | ;;
|
---|
18759 |
|
---|
18760 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
18761 | version_type=freebsd-elf
|
---|
18762 | need_lib_prefix=no
|
---|
18763 | need_version=no
|
---|
18764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
---|
18765 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18766 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18767 | hardcode_into_libs=yes
|
---|
18768 | if test "$with_gnu_ld" = yes; then
|
---|
18769 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
18770 | shlibpath_overrides_runpath=no
|
---|
18771 | else
|
---|
18772 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
18773 | shlibpath_overrides_runpath=yes
|
---|
18774 | case $host_os in
|
---|
18775 | sco3.2v5*)
|
---|
18776 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
18777 | ;;
|
---|
18778 | esac
|
---|
18779 | fi
|
---|
18780 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
18781 | ;;
|
---|
18782 |
|
---|
18783 | uts4*)
|
---|
18784 | version_type=linux
|
---|
18785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
---|
18786 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
18787 | shlibpath_var=LD_LIBRARY_PATH
|
---|
18788 | ;;
|
---|
18789 |
|
---|
18790 | *)
|
---|
18791 | dynamic_linker=no
|
---|
18792 | ;;
|
---|
18793 | esac
|
---|
18794 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
---|
18795 | echo "${ECHO_T}$dynamic_linker" >&6
|
---|
18796 | test "$dynamic_linker" = no && can_build_shared=no
|
---|
18797 |
|
---|
18798 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
18799 | if test "$GCC" = yes; then
|
---|
18800 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
18801 | fi
|
---|
18802 |
|
---|
18803 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
---|
18804 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
---|
18805 | hardcode_action_GCJ=
|
---|
18806 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \
|
---|
18807 | test -n "$runpath_var_GCJ" || \
|
---|
18808 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then
|
---|
18809 |
|
---|
18810 | # We can hardcode non-existant directories.
|
---|
18811 | if test "$hardcode_direct_GCJ" != no &&
|
---|
18812 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
18813 | # have to relink, otherwise we might link with an installed library
|
---|
18814 | # when we should be linking with a yet-to-be-installed one
|
---|
18815 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
|
---|
18816 | test "$hardcode_minus_L_GCJ" != no; then
|
---|
18817 | # Linking always hardcodes the temporary library directory.
|
---|
18818 | hardcode_action_GCJ=relink
|
---|
18819 | else
|
---|
18820 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
18821 | hardcode_action_GCJ=immediate
|
---|
18822 | fi
|
---|
18823 | else
|
---|
18824 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
18825 | # directories.
|
---|
18826 | hardcode_action_GCJ=unsupported
|
---|
18827 | fi
|
---|
18828 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
|
---|
18829 | echo "${ECHO_T}$hardcode_action_GCJ" >&6
|
---|
18830 |
|
---|
18831 | if test "$hardcode_action_GCJ" = relink; then
|
---|
18832 | # Fast installation is not supported
|
---|
18833 | enable_fast_install=no
|
---|
18834 | elif test "$shlibpath_overrides_runpath" = yes ||
|
---|
18835 | test "$enable_shared" = no; then
|
---|
18836 | # Fast installation is not necessary
|
---|
18837 | enable_fast_install=needless
|
---|
18838 | fi
|
---|
18839 |
|
---|
18840 |
|
---|
18841 | # The else clause should only fire when bootstrapping the
|
---|
18842 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
---|
18843 | # with your package, and you will get complaints that there are
|
---|
18844 | # no rules to generate ltmain.sh.
|
---|
18845 | if test -f "$ltmain"; then
|
---|
18846 | # See if we are running on zsh, and set the options which allow our commands through
|
---|
18847 | # without removal of \ escapes.
|
---|
18848 | if test -n "${ZSH_VERSION+set}" ; then
|
---|
18849 | setopt NO_GLOB_SUBST
|
---|
18850 | fi
|
---|
18851 | # Now quote all the things that may contain metacharacters while being
|
---|
18852 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
---|
18853 | # variables and quote the copies for generation of the libtool script.
|
---|
18854 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
---|
18855 | SED SHELL STRIP \
|
---|
18856 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
---|
18857 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
---|
18858 | deplibs_check_method reload_flag reload_cmds need_locks \
|
---|
18859 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
---|
18860 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
18861 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
---|
18862 | old_postinstall_cmds old_postuninstall_cmds \
|
---|
18863 | compiler_GCJ \
|
---|
18864 | CC_GCJ \
|
---|
18865 | LD_GCJ \
|
---|
18866 | lt_prog_compiler_wl_GCJ \
|
---|
18867 | lt_prog_compiler_pic_GCJ \
|
---|
18868 | lt_prog_compiler_static_GCJ \
|
---|
18869 | lt_prog_compiler_no_builtin_flag_GCJ \
|
---|
18870 | export_dynamic_flag_spec_GCJ \
|
---|
18871 | thread_safe_flag_spec_GCJ \
|
---|
18872 | whole_archive_flag_spec_GCJ \
|
---|
18873 | enable_shared_with_static_runtimes_GCJ \
|
---|
18874 | old_archive_cmds_GCJ \
|
---|
18875 | old_archive_from_new_cmds_GCJ \
|
---|
18876 | predep_objects_GCJ \
|
---|
18877 | postdep_objects_GCJ \
|
---|
18878 | predeps_GCJ \
|
---|
18879 | postdeps_GCJ \
|
---|
18880 | compiler_lib_search_path_GCJ \
|
---|
18881 | archive_cmds_GCJ \
|
---|
18882 | archive_expsym_cmds_GCJ \
|
---|
18883 | postinstall_cmds_GCJ \
|
---|
18884 | postuninstall_cmds_GCJ \
|
---|
18885 | old_archive_from_expsyms_cmds_GCJ \
|
---|
18886 | allow_undefined_flag_GCJ \
|
---|
18887 | no_undefined_flag_GCJ \
|
---|
18888 | export_symbols_cmds_GCJ \
|
---|
18889 | hardcode_libdir_flag_spec_GCJ \
|
---|
18890 | hardcode_libdir_flag_spec_ld_GCJ \
|
---|
18891 | hardcode_libdir_separator_GCJ \
|
---|
18892 | hardcode_automatic_GCJ \
|
---|
18893 | module_cmds_GCJ \
|
---|
18894 | module_expsym_cmds_GCJ \
|
---|
18895 | lt_cv_prog_compiler_c_o_GCJ \
|
---|
18896 | exclude_expsyms_GCJ \
|
---|
18897 | include_expsyms_GCJ; do
|
---|
18898 |
|
---|
18899 | case $var in
|
---|
18900 | old_archive_cmds_GCJ | \
|
---|
18901 | old_archive_from_new_cmds_GCJ | \
|
---|
18902 | archive_cmds_GCJ | \
|
---|
18903 | archive_expsym_cmds_GCJ | \
|
---|
18904 | module_cmds_GCJ | \
|
---|
18905 | module_expsym_cmds_GCJ | \
|
---|
18906 | old_archive_from_expsyms_cmds_GCJ | \
|
---|
18907 | export_symbols_cmds_GCJ | \
|
---|
18908 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
---|
18909 | postinstall_cmds | postuninstall_cmds | \
|
---|
18910 | old_postinstall_cmds | old_postuninstall_cmds | \
|
---|
18911 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
---|
18912 | # Double-quote double-evaled strings.
|
---|
18913 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
---|
18914 | ;;
|
---|
18915 | *)
|
---|
18916 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
---|
18917 | ;;
|
---|
18918 | esac
|
---|
18919 | done
|
---|
18920 |
|
---|
18921 | case $lt_echo in
|
---|
18922 | *'\$0 --fallback-echo"')
|
---|
18923 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
---|
18924 | ;;
|
---|
18925 | esac
|
---|
18926 |
|
---|
18927 | cfgfile="$ofile"
|
---|
18928 |
|
---|
18929 | cat <<__EOF__ >> "$cfgfile"
|
---|
18930 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
---|
18931 |
|
---|
18932 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
18933 |
|
---|
18934 | # Shell to use when invoking shell scripts.
|
---|
18935 | SHELL=$lt_SHELL
|
---|
18936 |
|
---|
18937 | # Whether or not to build shared libraries.
|
---|
18938 | build_libtool_libs=$enable_shared
|
---|
18939 |
|
---|
18940 | # Whether or not to build static libraries.
|
---|
18941 | build_old_libs=$enable_static
|
---|
18942 |
|
---|
18943 | # Whether or not to add -lc for building shared libraries.
|
---|
18944 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ
|
---|
18945 |
|
---|
18946 | # Whether or not to disallow shared libs when runtime libs are static
|
---|
18947 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
|
---|
18948 |
|
---|
18949 | # Whether or not to optimize for fast installation.
|
---|
18950 | fast_install=$enable_fast_install
|
---|
18951 |
|
---|
18952 | # The host system.
|
---|
18953 | host_alias=$host_alias
|
---|
18954 | host=$host
|
---|
18955 | host_os=$host_os
|
---|
18956 |
|
---|
18957 | # The build system.
|
---|
18958 | build_alias=$build_alias
|
---|
18959 | build=$build
|
---|
18960 | build_os=$build_os
|
---|
18961 |
|
---|
18962 | # An echo program that does not interpret backslashes.
|
---|
18963 | echo=$lt_echo
|
---|
18964 |
|
---|
18965 | # The archiver.
|
---|
18966 | AR=$lt_AR
|
---|
18967 | AR_FLAGS=$lt_AR_FLAGS
|
---|
18968 |
|
---|
18969 | # A C compiler.
|
---|
18970 | LTCC=$lt_LTCC
|
---|
18971 |
|
---|
18972 | # LTCC compiler flags.
|
---|
18973 | LTCFLAGS=$lt_LTCFLAGS
|
---|
18974 |
|
---|
18975 | # A language-specific compiler.
|
---|
18976 | CC=$lt_compiler_GCJ
|
---|
18977 |
|
---|
18978 | # Is the compiler the GNU C compiler?
|
---|
18979 | with_gcc=$GCC_GCJ
|
---|
18980 |
|
---|
18981 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
|
---|
18982 | gcc_ver=\`gcc -dumpversion\`
|
---|
18983 |
|
---|
18984 | # An ERE matcher.
|
---|
18985 | EGREP=$lt_EGREP
|
---|
18986 |
|
---|
18987 | # The linker used to build libraries.
|
---|
18988 | LD=$lt_LD_GCJ
|
---|
18989 |
|
---|
18990 | # Whether we need hard or soft links.
|
---|
18991 | LN_S=$lt_LN_S
|
---|
18992 |
|
---|
18993 | # A BSD-compatible nm program.
|
---|
18994 | NM=$lt_NM
|
---|
18995 |
|
---|
18996 | # A symbol stripping program
|
---|
18997 | STRIP=$lt_STRIP
|
---|
18998 |
|
---|
18999 | # Used to examine libraries when file_magic_cmd begins "file"
|
---|
19000 | MAGIC_CMD=$MAGIC_CMD
|
---|
19001 |
|
---|
19002 | # Used on cygwin: DLL creation program.
|
---|
19003 | DLLTOOL="$DLLTOOL"
|
---|
19004 |
|
---|
19005 | # Used on cygwin: object dumper.
|
---|
19006 | OBJDUMP="$OBJDUMP"
|
---|
19007 |
|
---|
19008 | # Used on cygwin: assembler.
|
---|
19009 | AS="$AS"
|
---|
19010 |
|
---|
19011 | # The name of the directory that contains temporary libtool files.
|
---|
19012 | objdir=$objdir
|
---|
19013 |
|
---|
19014 | # How to create reloadable object files.
|
---|
19015 | reload_flag=$lt_reload_flag
|
---|
19016 | reload_cmds=$lt_reload_cmds
|
---|
19017 |
|
---|
19018 | # How to pass a linker flag through the compiler.
|
---|
19019 | wl=$lt_lt_prog_compiler_wl_GCJ
|
---|
19020 |
|
---|
19021 | # Object file suffix (normally "o").
|
---|
19022 | objext="$ac_objext"
|
---|
19023 |
|
---|
19024 | # Old archive suffix (normally "a").
|
---|
19025 | libext="$libext"
|
---|
19026 |
|
---|
19027 | # Shared library suffix (normally ".so").
|
---|
19028 | shrext_cmds='$shrext_cmds'
|
---|
19029 |
|
---|
19030 | # Executable file suffix (normally "").
|
---|
19031 | exeext="$exeext"
|
---|
19032 |
|
---|
19033 | # Additional compiler flags for building library objects.
|
---|
19034 | pic_flag=$lt_lt_prog_compiler_pic_GCJ
|
---|
19035 | pic_mode=$pic_mode
|
---|
19036 |
|
---|
19037 | # What is the maximum length of a command?
|
---|
19038 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
19039 |
|
---|
19040 | # Does compiler simultaneously support -c and -o options?
|
---|
19041 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
|
---|
19042 |
|
---|
19043 | # Must we lock files when doing compilation?
|
---|
19044 | need_locks=$lt_need_locks
|
---|
19045 |
|
---|
19046 | # Do we need the lib prefix for modules?
|
---|
19047 | need_lib_prefix=$need_lib_prefix
|
---|
19048 |
|
---|
19049 | # Do we need a version for libraries?
|
---|
19050 | need_version=$need_version
|
---|
19051 |
|
---|
19052 | # Whether dlopen is supported.
|
---|
19053 | dlopen_support=$enable_dlopen
|
---|
19054 |
|
---|
19055 | # Whether dlopen of programs is supported.
|
---|
19056 | dlopen_self=$enable_dlopen_self
|
---|
19057 |
|
---|
19058 | # Whether dlopen of statically linked programs is supported.
|
---|
19059 | dlopen_self_static=$enable_dlopen_self_static
|
---|
19060 |
|
---|
19061 | # Compiler flag to prevent dynamic linking.
|
---|
19062 | link_static_flag=$lt_lt_prog_compiler_static_GCJ
|
---|
19063 |
|
---|
19064 | # Compiler flag to turn off builtin functions.
|
---|
19065 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
|
---|
19066 |
|
---|
19067 | # Compiler flag to allow reflexive dlopens.
|
---|
19068 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
|
---|
19069 |
|
---|
19070 | # Compiler flag to generate shared objects directly from archives.
|
---|
19071 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
|
---|
19072 |
|
---|
19073 | # Compiler flag to generate thread-safe objects.
|
---|
19074 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
|
---|
19075 |
|
---|
19076 | # Library versioning type.
|
---|
19077 | version_type=$version_type
|
---|
19078 |
|
---|
19079 | # Format of library name prefix.
|
---|
19080 | libname_spec=$lt_libname_spec
|
---|
19081 |
|
---|
19082 | # List of archive names. First name is the real one, the rest are links.
|
---|
19083 | # The last name is the one that the linker finds with -lNAME.
|
---|
19084 | library_names_spec=$lt_library_names_spec
|
---|
19085 |
|
---|
19086 | # The coded name of the library, if different from the real name.
|
---|
19087 | soname_spec=$lt_soname_spec
|
---|
19088 |
|
---|
19089 | # Commands used to build and install an old-style archive.
|
---|
19090 | RANLIB=$lt_RANLIB
|
---|
19091 | old_archive_cmds=$lt_old_archive_cmds_GCJ
|
---|
19092 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
19093 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
19094 |
|
---|
19095 | # Create an old-style archive from a shared archive.
|
---|
19096 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
|
---|
19097 |
|
---|
19098 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
19099 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
|
---|
19100 |
|
---|
19101 | # Commands used to build and install a shared archive.
|
---|
19102 | archive_cmds=$lt_archive_cmds_GCJ
|
---|
19103 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
|
---|
19104 | postinstall_cmds=$lt_postinstall_cmds
|
---|
19105 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
19106 |
|
---|
19107 | # Commands used to build a loadable module (assumed same as above if empty)
|
---|
19108 | module_cmds=$lt_module_cmds_GCJ
|
---|
19109 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ
|
---|
19110 |
|
---|
19111 | # Commands to strip libraries.
|
---|
19112 | old_striplib=$lt_old_striplib
|
---|
19113 | striplib=$lt_striplib
|
---|
19114 |
|
---|
19115 | # Dependencies to place before the objects being linked to create a
|
---|
19116 | # shared library.
|
---|
19117 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
19118 |
|
---|
19119 | # Dependencies to place after the objects being linked to create a
|
---|
19120 | # shared library.
|
---|
19121 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
19122 |
|
---|
19123 | # Dependencies to place before the objects being linked to create a
|
---|
19124 | # shared library.
|
---|
19125 | predeps=$lt_predeps_GCJ
|
---|
19126 |
|
---|
19127 | # Dependencies to place after the objects being linked to create a
|
---|
19128 | # shared library.
|
---|
19129 | postdeps=$lt_postdeps_GCJ
|
---|
19130 |
|
---|
19131 | # The library search path used internally by the compiler when linking
|
---|
19132 | # a shared library.
|
---|
19133 | 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"\`
|
---|
19134 |
|
---|
19135 | # Method to check whether dependent libraries are shared objects.
|
---|
19136 | deplibs_check_method=$lt_deplibs_check_method
|
---|
19137 |
|
---|
19138 | # Command to use when deplibs_check_method == file_magic.
|
---|
19139 | file_magic_cmd=$lt_file_magic_cmd
|
---|
19140 |
|
---|
19141 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
19142 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ
|
---|
19143 |
|
---|
19144 | # Flag that forces no undefined symbols.
|
---|
19145 | no_undefined_flag=$lt_no_undefined_flag_GCJ
|
---|
19146 |
|
---|
19147 | # Commands used to finish a libtool library installation in a directory.
|
---|
19148 | finish_cmds=$lt_finish_cmds
|
---|
19149 |
|
---|
19150 | # Same as above, but a single script fragment to be evaled but not shown.
|
---|
19151 | finish_eval=$lt_finish_eval
|
---|
19152 |
|
---|
19153 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
19154 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
19155 |
|
---|
19156 | # Transform the output of nm in a proper C declaration
|
---|
19157 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
19158 |
|
---|
19159 | # Transform the output of nm in a C name address pair
|
---|
19160 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
19161 |
|
---|
19162 | # This is the shared library runtime path variable.
|
---|
19163 | runpath_var=$runpath_var
|
---|
19164 |
|
---|
19165 | # This is the shared library path variable.
|
---|
19166 | shlibpath_var=$shlibpath_var
|
---|
19167 |
|
---|
19168 | # Is shlibpath searched before the hard-coded library search path?
|
---|
19169 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
19170 |
|
---|
19171 | # How to hardcode a shared library path into an executable.
|
---|
19172 | hardcode_action=$hardcode_action_GCJ
|
---|
19173 |
|
---|
19174 | # Whether we should hardcode library paths into libraries.
|
---|
19175 | hardcode_into_libs=$hardcode_into_libs
|
---|
19176 |
|
---|
19177 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
19178 | # This must work even if \$libdir does not exist.
|
---|
19179 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
|
---|
19180 |
|
---|
19181 | # If ld is used when linking, flag to hardcode \$libdir into
|
---|
19182 | # a binary during linking. This must work even if \$libdir does
|
---|
19183 | # not exist.
|
---|
19184 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
|
---|
19185 |
|
---|
19186 | # Whether we need a single -rpath flag with a separated argument.
|
---|
19187 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
|
---|
19188 |
|
---|
19189 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
---|
19190 | # resulting binary.
|
---|
19191 | hardcode_direct=$hardcode_direct_GCJ
|
---|
19192 |
|
---|
19193 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
---|
19194 | # resulting binary.
|
---|
19195 | hardcode_minus_L=$hardcode_minus_L_GCJ
|
---|
19196 |
|
---|
19197 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
---|
19198 | # the resulting binary.
|
---|
19199 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
|
---|
19200 |
|
---|
19201 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
---|
19202 | # and all subsequent libraries and executables linked against it.
|
---|
19203 | hardcode_automatic=$hardcode_automatic_GCJ
|
---|
19204 |
|
---|
19205 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
19206 | # restored at relink time.
|
---|
19207 | variables_saved_for_relink="$variables_saved_for_relink"
|
---|
19208 |
|
---|
19209 | # Whether libtool must link a program against all its dependency libraries.
|
---|
19210 | link_all_deplibs=$link_all_deplibs_GCJ
|
---|
19211 |
|
---|
19212 | # Compile-time system search path for libraries
|
---|
19213 | 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"\`
|
---|
19214 |
|
---|
19215 | # Run-time system search path for libraries
|
---|
19216 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
---|
19217 |
|
---|
19218 | # Fix the shell variable \$srcfile for the compiler.
|
---|
19219 | fix_srcfile_path="$fix_srcfile_path_GCJ"
|
---|
19220 |
|
---|
19221 | # Set to yes if exported symbols are required.
|
---|
19222 | always_export_symbols=$always_export_symbols_GCJ
|
---|
19223 |
|
---|
19224 | # The commands to list exported symbols.
|
---|
19225 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ
|
---|
19226 |
|
---|
19227 | # The commands to extract the exported symbol list from a shared archive.
|
---|
19228 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
19229 |
|
---|
19230 | # Symbols that should not be listed in the preloaded symbols.
|
---|
19231 | exclude_expsyms=$lt_exclude_expsyms_GCJ
|
---|
19232 |
|
---|
19233 | # Symbols that must always be exported.
|
---|
19234 | include_expsyms=$lt_include_expsyms_GCJ
|
---|
19235 |
|
---|
19236 | # ### END LIBTOOL TAG CONFIG: $tagname
|
---|
19237 |
|
---|
19238 | __EOF__
|
---|
19239 |
|
---|
19240 |
|
---|
19241 | else
|
---|
19242 | # If there is no Makefile yet, we rely on a make rule to execute
|
---|
19243 | # `config.status --recheck' to rerun these tests and create the
|
---|
19244 | # libtool script then.
|
---|
19245 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
---|
19246 | if test -f "$ltmain_in"; then
|
---|
19247 | test -f Makefile && make "$ltmain"
|
---|
19248 | fi
|
---|
19249 | fi
|
---|
19250 |
|
---|
19251 |
|
---|
19252 | ac_ext=c
|
---|
19253 | ac_cpp='$CPP $CPPFLAGS'
|
---|
19254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
19255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
19256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
19257 |
|
---|
19258 | CC="$lt_save_CC"
|
---|
19259 |
|
---|
19260 | else
|
---|
19261 | tagname=""
|
---|
19262 | fi
|
---|
19263 | ;;
|
---|
19264 |
|
---|
19265 | RC)
|
---|
19266 |
|
---|
19267 |
|
---|
19268 |
|
---|
19269 | # Source file extension for RC test sources.
|
---|
19270 | ac_ext=rc
|
---|
19271 |
|
---|
19272 | # Object file extension for compiled RC test sources.
|
---|
19273 | objext=o
|
---|
19274 | objext_RC=$objext
|
---|
19275 |
|
---|
19276 | # Code to be used in simple compile tests
|
---|
19277 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
---|
19278 |
|
---|
19279 | # Code to be used in simple link tests
|
---|
19280 | lt_simple_link_test_code="$lt_simple_compile_test_code"
|
---|
19281 |
|
---|
19282 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
---|
19283 |
|
---|
19284 | # If no C compiler was specified, use CC.
|
---|
19285 | LTCC=${LTCC-"$CC"}
|
---|
19286 |
|
---|
19287 | # If no C compiler flags were specified, use CFLAGS.
|
---|
19288 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
19289 |
|
---|
19290 | # Allow CC to be a program name with arguments.
|
---|
19291 | compiler=$CC
|
---|
19292 |
|
---|
19293 |
|
---|
19294 | # save warnings/boilerplate of simple test code
|
---|
19295 | ac_outfile=conftest.$ac_objext
|
---|
19296 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
19297 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
19298 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
19299 | $rm conftest*
|
---|
19300 |
|
---|
19301 | ac_outfile=conftest.$ac_objext
|
---|
19302 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
19303 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
19304 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
19305 | $rm conftest*
|
---|
19306 |
|
---|
19307 |
|
---|
19308 | # Allow CC to be a program name with arguments.
|
---|
19309 | lt_save_CC="$CC"
|
---|
19310 | CC=${RC-"windres"}
|
---|
19311 | compiler=$CC
|
---|
19312 | compiler_RC=$CC
|
---|
19313 | for cc_temp in $compiler""; do
|
---|
19314 | case $cc_temp in
|
---|
19315 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
19316 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
19317 | \-*) ;;
|
---|
19318 | *) break;;
|
---|
19319 | esac
|
---|
19320 | done
|
---|
19321 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
---|
19322 |
|
---|
19323 | lt_cv_prog_compiler_c_o_RC=yes
|
---|
19324 |
|
---|
19325 | # The else clause should only fire when bootstrapping the
|
---|
19326 | # libtool distribution, otherwise you forgot to ship ltmain.sh
|
---|
19327 | # with your package, and you will get complaints that there are
|
---|
19328 | # no rules to generate ltmain.sh.
|
---|
19329 | if test -f "$ltmain"; then
|
---|
19330 | # See if we are running on zsh, and set the options which allow our commands through
|
---|
19331 | # without removal of \ escapes.
|
---|
19332 | if test -n "${ZSH_VERSION+set}" ; then
|
---|
19333 | setopt NO_GLOB_SUBST
|
---|
19334 | fi
|
---|
19335 | # Now quote all the things that may contain metacharacters while being
|
---|
19336 | # careful not to overquote the AC_SUBSTed values. We take copies of the
|
---|
19337 | # variables and quote the copies for generation of the libtool script.
|
---|
19338 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
---|
19339 | SED SHELL STRIP \
|
---|
19340 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
---|
19341 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
---|
19342 | deplibs_check_method reload_flag reload_cmds need_locks \
|
---|
19343 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
---|
19344 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
19345 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
---|
19346 | old_postinstall_cmds old_postuninstall_cmds \
|
---|
19347 | compiler_RC \
|
---|
19348 | CC_RC \
|
---|
19349 | LD_RC \
|
---|
19350 | lt_prog_compiler_wl_RC \
|
---|
19351 | lt_prog_compiler_pic_RC \
|
---|
19352 | lt_prog_compiler_static_RC \
|
---|
19353 | lt_prog_compiler_no_builtin_flag_RC \
|
---|
19354 | export_dynamic_flag_spec_RC \
|
---|
19355 | thread_safe_flag_spec_RC \
|
---|
19356 | whole_archive_flag_spec_RC \
|
---|
19357 | enable_shared_with_static_runtimes_RC \
|
---|
19358 | old_archive_cmds_RC \
|
---|
19359 | old_archive_from_new_cmds_RC \
|
---|
19360 | predep_objects_RC \
|
---|
19361 | postdep_objects_RC \
|
---|
19362 | predeps_RC \
|
---|
19363 | postdeps_RC \
|
---|
19364 | compiler_lib_search_path_RC \
|
---|
19365 | archive_cmds_RC \
|
---|
19366 | archive_expsym_cmds_RC \
|
---|
19367 | postinstall_cmds_RC \
|
---|
19368 | postuninstall_cmds_RC \
|
---|
19369 | old_archive_from_expsyms_cmds_RC \
|
---|
19370 | allow_undefined_flag_RC \
|
---|
19371 | no_undefined_flag_RC \
|
---|
19372 | export_symbols_cmds_RC \
|
---|
19373 | hardcode_libdir_flag_spec_RC \
|
---|
19374 | hardcode_libdir_flag_spec_ld_RC \
|
---|
19375 | hardcode_libdir_separator_RC \
|
---|
19376 | hardcode_automatic_RC \
|
---|
19377 | module_cmds_RC \
|
---|
19378 | module_expsym_cmds_RC \
|
---|
19379 | lt_cv_prog_compiler_c_o_RC \
|
---|
19380 | exclude_expsyms_RC \
|
---|
19381 | include_expsyms_RC; do
|
---|
19382 |
|
---|
19383 | case $var in
|
---|
19384 | old_archive_cmds_RC | \
|
---|
19385 | old_archive_from_new_cmds_RC | \
|
---|
19386 | archive_cmds_RC | \
|
---|
19387 | archive_expsym_cmds_RC | \
|
---|
19388 | module_cmds_RC | \
|
---|
19389 | module_expsym_cmds_RC | \
|
---|
19390 | old_archive_from_expsyms_cmds_RC | \
|
---|
19391 | export_symbols_cmds_RC | \
|
---|
19392 | extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
---|
19393 | postinstall_cmds | postuninstall_cmds | \
|
---|
19394 | old_postinstall_cmds | old_postuninstall_cmds | \
|
---|
19395 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
---|
19396 | # Double-quote double-evaled strings.
|
---|
19397 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
---|
19398 | ;;
|
---|
19399 | *)
|
---|
19400 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
---|
19401 | ;;
|
---|
19402 | esac
|
---|
19403 | done
|
---|
19404 |
|
---|
19405 | case $lt_echo in
|
---|
19406 | *'\$0 --fallback-echo"')
|
---|
19407 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
---|
19408 | ;;
|
---|
19409 | esac
|
---|
19410 |
|
---|
19411 | cfgfile="$ofile"
|
---|
19412 |
|
---|
19413 | cat <<__EOF__ >> "$cfgfile"
|
---|
19414 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
---|
19415 |
|
---|
19416 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
19417 |
|
---|
19418 | # Shell to use when invoking shell scripts.
|
---|
19419 | SHELL=$lt_SHELL
|
---|
19420 |
|
---|
19421 | # Whether or not to build shared libraries.
|
---|
19422 | build_libtool_libs=$enable_shared
|
---|
19423 |
|
---|
19424 | # Whether or not to build static libraries.
|
---|
19425 | build_old_libs=$enable_static
|
---|
19426 |
|
---|
19427 | # Whether or not to add -lc for building shared libraries.
|
---|
19428 | build_libtool_need_lc=$archive_cmds_need_lc_RC
|
---|
19429 |
|
---|
19430 | # Whether or not to disallow shared libs when runtime libs are static
|
---|
19431 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
|
---|
19432 |
|
---|
19433 | # Whether or not to optimize for fast installation.
|
---|
19434 | fast_install=$enable_fast_install
|
---|
19435 |
|
---|
19436 | # The host system.
|
---|
19437 | host_alias=$host_alias
|
---|
19438 | host=$host
|
---|
19439 | host_os=$host_os
|
---|
19440 |
|
---|
19441 | # The build system.
|
---|
19442 | build_alias=$build_alias
|
---|
19443 | build=$build
|
---|
19444 | build_os=$build_os
|
---|
19445 |
|
---|
19446 | # An echo program that does not interpret backslashes.
|
---|
19447 | echo=$lt_echo
|
---|
19448 |
|
---|
19449 | # The archiver.
|
---|
19450 | AR=$lt_AR
|
---|
19451 | AR_FLAGS=$lt_AR_FLAGS
|
---|
19452 |
|
---|
19453 | # A C compiler.
|
---|
19454 | LTCC=$lt_LTCC
|
---|
19455 |
|
---|
19456 | # LTCC compiler flags.
|
---|
19457 | LTCFLAGS=$lt_LTCFLAGS
|
---|
19458 |
|
---|
19459 | # A language-specific compiler.
|
---|
19460 | CC=$lt_compiler_RC
|
---|
19461 |
|
---|
19462 | # Is the compiler the GNU C compiler?
|
---|
19463 | with_gcc=$GCC_RC
|
---|
19464 |
|
---|
19465 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
|
---|
19466 | gcc_ver=\`gcc -dumpversion\`
|
---|
19467 |
|
---|
19468 | # An ERE matcher.
|
---|
19469 | EGREP=$lt_EGREP
|
---|
19470 |
|
---|
19471 | # The linker used to build libraries.
|
---|
19472 | LD=$lt_LD_RC
|
---|
19473 |
|
---|
19474 | # Whether we need hard or soft links.
|
---|
19475 | LN_S=$lt_LN_S
|
---|
19476 |
|
---|
19477 | # A BSD-compatible nm program.
|
---|
19478 | NM=$lt_NM
|
---|
19479 |
|
---|
19480 | # A symbol stripping program
|
---|
19481 | STRIP=$lt_STRIP
|
---|
19482 |
|
---|
19483 | # Used to examine libraries when file_magic_cmd begins "file"
|
---|
19484 | MAGIC_CMD=$MAGIC_CMD
|
---|
19485 |
|
---|
19486 | # Used on cygwin: DLL creation program.
|
---|
19487 | DLLTOOL="$DLLTOOL"
|
---|
19488 |
|
---|
19489 | # Used on cygwin: object dumper.
|
---|
19490 | OBJDUMP="$OBJDUMP"
|
---|
19491 |
|
---|
19492 | # Used on cygwin: assembler.
|
---|
19493 | AS="$AS"
|
---|
19494 |
|
---|
19495 | # The name of the directory that contains temporary libtool files.
|
---|
19496 | objdir=$objdir
|
---|
19497 |
|
---|
19498 | # How to create reloadable object files.
|
---|
19499 | reload_flag=$lt_reload_flag
|
---|
19500 | reload_cmds=$lt_reload_cmds
|
---|
19501 |
|
---|
19502 | # How to pass a linker flag through the compiler.
|
---|
19503 | wl=$lt_lt_prog_compiler_wl_RC
|
---|
19504 |
|
---|
19505 | # Object file suffix (normally "o").
|
---|
19506 | objext="$ac_objext"
|
---|
19507 |
|
---|
19508 | # Old archive suffix (normally "a").
|
---|
19509 | libext="$libext"
|
---|
19510 |
|
---|
19511 | # Shared library suffix (normally ".so").
|
---|
19512 | shrext_cmds='$shrext_cmds'
|
---|
19513 |
|
---|
19514 | # Executable file suffix (normally "").
|
---|
19515 | exeext="$exeext"
|
---|
19516 |
|
---|
19517 | # Additional compiler flags for building library objects.
|
---|
19518 | pic_flag=$lt_lt_prog_compiler_pic_RC
|
---|
19519 | pic_mode=$pic_mode
|
---|
19520 |
|
---|
19521 | # What is the maximum length of a command?
|
---|
19522 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
19523 |
|
---|
19524 | # Does compiler simultaneously support -c and -o options?
|
---|
19525 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
|
---|
19526 |
|
---|
19527 | # Must we lock files when doing compilation?
|
---|
19528 | need_locks=$lt_need_locks
|
---|
19529 |
|
---|
19530 | # Do we need the lib prefix for modules?
|
---|
19531 | need_lib_prefix=$need_lib_prefix
|
---|
19532 |
|
---|
19533 | # Do we need a version for libraries?
|
---|
19534 | need_version=$need_version
|
---|
19535 |
|
---|
19536 | # Whether dlopen is supported.
|
---|
19537 | dlopen_support=$enable_dlopen
|
---|
19538 |
|
---|
19539 | # Whether dlopen of programs is supported.
|
---|
19540 | dlopen_self=$enable_dlopen_self
|
---|
19541 |
|
---|
19542 | # Whether dlopen of statically linked programs is supported.
|
---|
19543 | dlopen_self_static=$enable_dlopen_self_static
|
---|
19544 |
|
---|
19545 | # Compiler flag to prevent dynamic linking.
|
---|
19546 | link_static_flag=$lt_lt_prog_compiler_static_RC
|
---|
19547 |
|
---|
19548 | # Compiler flag to turn off builtin functions.
|
---|
19549 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
|
---|
19550 |
|
---|
19551 | # Compiler flag to allow reflexive dlopens.
|
---|
19552 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
|
---|
19553 |
|
---|
19554 | # Compiler flag to generate shared objects directly from archives.
|
---|
19555 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
|
---|
19556 |
|
---|
19557 | # Compiler flag to generate thread-safe objects.
|
---|
19558 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
|
---|
19559 |
|
---|
19560 | # Library versioning type.
|
---|
19561 | version_type=$version_type
|
---|
19562 |
|
---|
19563 | # Format of library name prefix.
|
---|
19564 | libname_spec=$lt_libname_spec
|
---|
19565 |
|
---|
19566 | # List of archive names. First name is the real one, the rest are links.
|
---|
19567 | # The last name is the one that the linker finds with -lNAME.
|
---|
19568 | library_names_spec=$lt_library_names_spec
|
---|
19569 |
|
---|
19570 | # The coded name of the library, if different from the real name.
|
---|
19571 | soname_spec=$lt_soname_spec
|
---|
19572 |
|
---|
19573 | # Commands used to build and install an old-style archive.
|
---|
19574 | RANLIB=$lt_RANLIB
|
---|
19575 | old_archive_cmds=$lt_old_archive_cmds_RC
|
---|
19576 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
19577 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
19578 |
|
---|
19579 | # Create an old-style archive from a shared archive.
|
---|
19580 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
|
---|
19581 |
|
---|
19582 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
19583 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
|
---|
19584 |
|
---|
19585 | # Commands used to build and install a shared archive.
|
---|
19586 | archive_cmds=$lt_archive_cmds_RC
|
---|
19587 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC
|
---|
19588 | postinstall_cmds=$lt_postinstall_cmds
|
---|
19589 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
19590 |
|
---|
19591 | # Commands used to build a loadable module (assumed same as above if empty)
|
---|
19592 | module_cmds=$lt_module_cmds_RC
|
---|
19593 | module_expsym_cmds=$lt_module_expsym_cmds_RC
|
---|
19594 |
|
---|
19595 | # Commands to strip libraries.
|
---|
19596 | old_striplib=$lt_old_striplib
|
---|
19597 | striplib=$lt_striplib
|
---|
19598 |
|
---|
19599 | # Dependencies to place before the objects being linked to create a
|
---|
19600 | # shared library.
|
---|
19601 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
19602 |
|
---|
19603 | # Dependencies to place after the objects being linked to create a
|
---|
19604 | # shared library.
|
---|
19605 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
|
---|
19606 |
|
---|
19607 | # Dependencies to place before the objects being linked to create a
|
---|
19608 | # shared library.
|
---|
19609 | predeps=$lt_predeps_RC
|
---|
19610 |
|
---|
19611 | # Dependencies to place after the objects being linked to create a
|
---|
19612 | # shared library.
|
---|
19613 | postdeps=$lt_postdeps_RC
|
---|
19614 |
|
---|
19615 | # The library search path used internally by the compiler when linking
|
---|
19616 | # a shared library.
|
---|
19617 | 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"\`
|
---|
19618 |
|
---|
19619 | # Method to check whether dependent libraries are shared objects.
|
---|
19620 | deplibs_check_method=$lt_deplibs_check_method
|
---|
19621 |
|
---|
19622 | # Command to use when deplibs_check_method == file_magic.
|
---|
19623 | file_magic_cmd=$lt_file_magic_cmd
|
---|
19624 |
|
---|
19625 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
19626 | allow_undefined_flag=$lt_allow_undefined_flag_RC
|
---|
19627 |
|
---|
19628 | # Flag that forces no undefined symbols.
|
---|
19629 | no_undefined_flag=$lt_no_undefined_flag_RC
|
---|
19630 |
|
---|
19631 | # Commands used to finish a libtool library installation in a directory.
|
---|
19632 | finish_cmds=$lt_finish_cmds
|
---|
19633 |
|
---|
19634 | # Same as above, but a single script fragment to be evaled but not shown.
|
---|
19635 | finish_eval=$lt_finish_eval
|
---|
19636 |
|
---|
19637 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
19638 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
19639 |
|
---|
19640 | # Transform the output of nm in a proper C declaration
|
---|
19641 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
19642 |
|
---|
19643 | # Transform the output of nm in a C name address pair
|
---|
19644 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
19645 |
|
---|
19646 | # This is the shared library runtime path variable.
|
---|
19647 | runpath_var=$runpath_var
|
---|
19648 |
|
---|
19649 | # This is the shared library path variable.
|
---|
19650 | shlibpath_var=$shlibpath_var
|
---|
19651 |
|
---|
19652 | # Is shlibpath searched before the hard-coded library search path?
|
---|
19653 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
19654 |
|
---|
19655 | # How to hardcode a shared library path into an executable.
|
---|
19656 | hardcode_action=$hardcode_action_RC
|
---|
19657 |
|
---|
19658 | # Whether we should hardcode library paths into libraries.
|
---|
19659 | hardcode_into_libs=$hardcode_into_libs
|
---|
19660 |
|
---|
19661 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
19662 | # This must work even if \$libdir does not exist.
|
---|
19663 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
|
---|
19664 |
|
---|
19665 | # If ld is used when linking, flag to hardcode \$libdir into
|
---|
19666 | # a binary during linking. This must work even if \$libdir does
|
---|
19667 | # not exist.
|
---|
19668 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
|
---|
19669 |
|
---|
19670 | # Whether we need a single -rpath flag with a separated argument.
|
---|
19671 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
|
---|
19672 |
|
---|
19673 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
---|
19674 | # resulting binary.
|
---|
19675 | hardcode_direct=$hardcode_direct_RC
|
---|
19676 |
|
---|
19677 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
---|
19678 | # resulting binary.
|
---|
19679 | hardcode_minus_L=$hardcode_minus_L_RC
|
---|
19680 |
|
---|
19681 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
---|
19682 | # the resulting binary.
|
---|
19683 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
|
---|
19684 |
|
---|
19685 | # Set to yes if building a shared library automatically hardcodes DIR into the library
|
---|
19686 | # and all subsequent libraries and executables linked against it.
|
---|
19687 | hardcode_automatic=$hardcode_automatic_RC
|
---|
19688 |
|
---|
19689 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
19690 | # restored at relink time.
|
---|
19691 | variables_saved_for_relink="$variables_saved_for_relink"
|
---|
19692 |
|
---|
19693 | # Whether libtool must link a program against all its dependency libraries.
|
---|
19694 | link_all_deplibs=$link_all_deplibs_RC
|
---|
19695 |
|
---|
19696 | # Compile-time system search path for libraries
|
---|
19697 | 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"\`
|
---|
19698 |
|
---|
19699 | # Run-time system search path for libraries
|
---|
19700 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
---|
19701 |
|
---|
19702 | # Fix the shell variable \$srcfile for the compiler.
|
---|
19703 | fix_srcfile_path="$fix_srcfile_path_RC"
|
---|
19704 |
|
---|
19705 | # Set to yes if exported symbols are required.
|
---|
19706 | always_export_symbols=$always_export_symbols_RC
|
---|
19707 |
|
---|
19708 | # The commands to list exported symbols.
|
---|
19709 | export_symbols_cmds=$lt_export_symbols_cmds_RC
|
---|
19710 |
|
---|
19711 | # The commands to extract the exported symbol list from a shared archive.
|
---|
19712 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
19713 |
|
---|
19714 | # Symbols that should not be listed in the preloaded symbols.
|
---|
19715 | exclude_expsyms=$lt_exclude_expsyms_RC
|
---|
19716 |
|
---|
19717 | # Symbols that must always be exported.
|
---|
19718 | include_expsyms=$lt_include_expsyms_RC
|
---|
19719 |
|
---|
19720 | # ### END LIBTOOL TAG CONFIG: $tagname
|
---|
19721 |
|
---|
19722 | __EOF__
|
---|
19723 |
|
---|
19724 |
|
---|
19725 | else
|
---|
19726 | # If there is no Makefile yet, we rely on a make rule to execute
|
---|
19727 | # `config.status --recheck' to rerun these tests and create the
|
---|
19728 | # libtool script then.
|
---|
19729 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
---|
19730 | if test -f "$ltmain_in"; then
|
---|
19731 | test -f Makefile && make "$ltmain"
|
---|
19732 | fi
|
---|
19733 | fi
|
---|
19734 |
|
---|
19735 |
|
---|
19736 | ac_ext=c
|
---|
19737 | ac_cpp='$CPP $CPPFLAGS'
|
---|
19738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
19739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
19740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
19741 |
|
---|
19742 | CC="$lt_save_CC"
|
---|
19743 |
|
---|
19744 | ;;
|
---|
19745 |
|
---|
19746 | *)
|
---|
19747 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
|
---|
19748 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
|
---|
19749 | { (exit 1); exit 1; }; }
|
---|
19750 | ;;
|
---|
19751 | esac
|
---|
19752 |
|
---|
19753 | # Append the new tag name to the list of available tags.
|
---|
19754 | if test -n "$tagname" ; then
|
---|
19755 | available_tags="$available_tags $tagname"
|
---|
19756 | fi
|
---|
19757 | fi
|
---|
19758 | done
|
---|
19759 | IFS="$lt_save_ifs"
|
---|
19760 |
|
---|
19761 | # Now substitute the updated list of available tags.
|
---|
19762 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
---|
19763 | mv "${ofile}T" "$ofile"
|
---|
19764 | chmod +x "$ofile"
|
---|
19765 | else
|
---|
19766 | rm -f "${ofile}T"
|
---|
19767 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
|
---|
19768 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
|
---|
19769 | { (exit 1); exit 1; }; }
|
---|
19770 | fi
|
---|
19771 | fi
|
---|
19772 |
|
---|
19773 |
|
---|
19774 |
|
---|
19775 | # This can be used to rebuild libtool when needed
|
---|
19776 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
---|
19777 |
|
---|
19778 | # Always use our own libtool.
|
---|
19779 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
19780 |
|
---|
19781 | # Prevent multiple expansion
|
---|
19782 |
|
---|
19783 |
|
---|
19784 |
|
---|
19785 |
|
---|
19786 |
|
---|
19787 |
|
---|
19788 |
|
---|
19789 |
|
---|
19790 |
|
---|
19791 |
|
---|
19792 |
|
---|
19793 |
|
---|
19794 |
|
---|
19795 |
|
---|
19796 |
|
---|
19797 |
|
---|
19798 |
|
---|
19799 |
|
---|
19800 |
|
---|
19801 |
|
---|
19802 |
|
---|
19803 |
|
---|
19804 |
|
---|
19805 |
|
---|
19806 |
|
---|
19807 |
|
---|
19808 |
|
---|
19809 | for ac_header in sys/types.h sys/time.h stdlib.h unistd.h string.h
|
---|
19810 | do
|
---|
19811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
19812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
19813 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
19814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
19815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
19816 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
19817 | fi
|
---|
19818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
19819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
19820 | else
|
---|
19821 | # Is the header compilable?
|
---|
19822 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
19823 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
19824 | cat >conftest.$ac_ext <<_ACEOF
|
---|
19825 | /* confdefs.h. */
|
---|
19826 | _ACEOF
|
---|
19827 | cat confdefs.h >>conftest.$ac_ext
|
---|
19828 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
19829 | /* end confdefs.h. */
|
---|
19830 | $ac_includes_default
|
---|
19831 | #include <$ac_header>
|
---|
19832 | _ACEOF
|
---|
19833 | rm -f conftest.$ac_objext
|
---|
19834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
19835 | (eval $ac_compile) 2>conftest.er1
|
---|
19836 | ac_status=$?
|
---|
19837 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
19838 | rm -f conftest.er1
|
---|
19839 | cat conftest.err >&5
|
---|
19840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
19841 | (exit $ac_status); } &&
|
---|
19842 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
19843 | || test ! -s conftest.err'
|
---|
19844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
19845 | (eval $ac_try) 2>&5
|
---|
19846 | ac_status=$?
|
---|
19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
19848 | (exit $ac_status); }; } &&
|
---|
19849 | { ac_try='test -s conftest.$ac_objext'
|
---|
19850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
19851 | (eval $ac_try) 2>&5
|
---|
19852 | ac_status=$?
|
---|
19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
19854 | (exit $ac_status); }; }; then
|
---|
19855 | ac_header_compiler=yes
|
---|
19856 | else
|
---|
19857 | echo "$as_me: failed program was:" >&5
|
---|
19858 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
19859 |
|
---|
19860 | ac_header_compiler=no
|
---|
19861 | fi
|
---|
19862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
19863 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
19864 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
19865 |
|
---|
19866 | # Is the header present?
|
---|
19867 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
19868 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
19869 | cat >conftest.$ac_ext <<_ACEOF
|
---|
19870 | /* confdefs.h. */
|
---|
19871 | _ACEOF
|
---|
19872 | cat confdefs.h >>conftest.$ac_ext
|
---|
19873 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
19874 | /* end confdefs.h. */
|
---|
19875 | #include <$ac_header>
|
---|
19876 | _ACEOF
|
---|
19877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
19878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
19879 | ac_status=$?
|
---|
19880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
19881 | rm -f conftest.er1
|
---|
19882 | cat conftest.err >&5
|
---|
19883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
19884 | (exit $ac_status); } >/dev/null; then
|
---|
19885 | if test -s conftest.err; then
|
---|
19886 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
19887 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
19888 | else
|
---|
19889 | ac_cpp_err=
|
---|
19890 | fi
|
---|
19891 | else
|
---|
19892 | ac_cpp_err=yes
|
---|
19893 | fi
|
---|
19894 | if test -z "$ac_cpp_err"; then
|
---|
19895 | ac_header_preproc=yes
|
---|
19896 | else
|
---|
19897 | echo "$as_me: failed program was:" >&5
|
---|
19898 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
19899 |
|
---|
19900 | ac_header_preproc=no
|
---|
19901 | fi
|
---|
19902 | rm -f conftest.err conftest.$ac_ext
|
---|
19903 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
19904 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
19905 |
|
---|
19906 | # So? What about this header?
|
---|
19907 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
19908 | yes:no: )
|
---|
19909 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
19910 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
19911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
19912 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
19913 | ac_header_preproc=yes
|
---|
19914 | ;;
|
---|
19915 | no:yes:* )
|
---|
19916 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
19917 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
19918 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
19919 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
19920 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
19921 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
19922 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
19923 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
19924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
19925 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
19926 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
19927 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
19928 | (
|
---|
19929 | cat <<\_ASBOX
|
---|
19930 | ## ------------------------------------------ ##
|
---|
19931 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
19932 | ## ------------------------------------------ ##
|
---|
19933 | _ASBOX
|
---|
19934 | ) |
|
---|
19935 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
19936 | ;;
|
---|
19937 | esac
|
---|
19938 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
19939 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
19940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
19941 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
19942 | else
|
---|
19943 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
19944 | fi
|
---|
19945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
19946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
19947 |
|
---|
19948 | fi
|
---|
19949 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
19950 | cat >>confdefs.h <<_ACEOF
|
---|
19951 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
19952 | _ACEOF
|
---|
19953 |
|
---|
19954 | fi
|
---|
19955 |
|
---|
19956 | done
|
---|
19957 |
|
---|
19958 |
|
---|
19959 |
|
---|
19960 |
|
---|
19961 |
|
---|
19962 |
|
---|
19963 |
|
---|
19964 | for ac_header in ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h
|
---|
19965 | do
|
---|
19966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
19967 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
19968 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
19969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
19970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
19971 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
19972 | fi
|
---|
19973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
19974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
19975 | else
|
---|
19976 | # Is the header compilable?
|
---|
19977 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
19978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
19979 | cat >conftest.$ac_ext <<_ACEOF
|
---|
19980 | /* confdefs.h. */
|
---|
19981 | _ACEOF
|
---|
19982 | cat confdefs.h >>conftest.$ac_ext
|
---|
19983 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
19984 | /* end confdefs.h. */
|
---|
19985 | $ac_includes_default
|
---|
19986 | #include <$ac_header>
|
---|
19987 | _ACEOF
|
---|
19988 | rm -f conftest.$ac_objext
|
---|
19989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
19990 | (eval $ac_compile) 2>conftest.er1
|
---|
19991 | ac_status=$?
|
---|
19992 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
19993 | rm -f conftest.er1
|
---|
19994 | cat conftest.err >&5
|
---|
19995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
19996 | (exit $ac_status); } &&
|
---|
19997 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
19998 | || test ! -s conftest.err'
|
---|
19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20000 | (eval $ac_try) 2>&5
|
---|
20001 | ac_status=$?
|
---|
20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20003 | (exit $ac_status); }; } &&
|
---|
20004 | { ac_try='test -s conftest.$ac_objext'
|
---|
20005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20006 | (eval $ac_try) 2>&5
|
---|
20007 | ac_status=$?
|
---|
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20009 | (exit $ac_status); }; }; then
|
---|
20010 | ac_header_compiler=yes
|
---|
20011 | else
|
---|
20012 | echo "$as_me: failed program was:" >&5
|
---|
20013 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20014 |
|
---|
20015 | ac_header_compiler=no
|
---|
20016 | fi
|
---|
20017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
20018 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
20019 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
20020 |
|
---|
20021 | # Is the header present?
|
---|
20022 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
20023 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
20024 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20025 | /* confdefs.h. */
|
---|
20026 | _ACEOF
|
---|
20027 | cat confdefs.h >>conftest.$ac_ext
|
---|
20028 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20029 | /* end confdefs.h. */
|
---|
20030 | #include <$ac_header>
|
---|
20031 | _ACEOF
|
---|
20032 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
20033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
20034 | ac_status=$?
|
---|
20035 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20036 | rm -f conftest.er1
|
---|
20037 | cat conftest.err >&5
|
---|
20038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20039 | (exit $ac_status); } >/dev/null; then
|
---|
20040 | if test -s conftest.err; then
|
---|
20041 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
20042 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
20043 | else
|
---|
20044 | ac_cpp_err=
|
---|
20045 | fi
|
---|
20046 | else
|
---|
20047 | ac_cpp_err=yes
|
---|
20048 | fi
|
---|
20049 | if test -z "$ac_cpp_err"; then
|
---|
20050 | ac_header_preproc=yes
|
---|
20051 | else
|
---|
20052 | echo "$as_me: failed program was:" >&5
|
---|
20053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20054 |
|
---|
20055 | ac_header_preproc=no
|
---|
20056 | fi
|
---|
20057 | rm -f conftest.err conftest.$ac_ext
|
---|
20058 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
20059 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
20060 |
|
---|
20061 | # So? What about this header?
|
---|
20062 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
20063 | yes:no: )
|
---|
20064 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
20065 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
20066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
20067 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
20068 | ac_header_preproc=yes
|
---|
20069 | ;;
|
---|
20070 | no:yes:* )
|
---|
20071 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
20072 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
20073 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
20074 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
20075 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
20076 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
20077 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
20078 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
20079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
20080 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
20081 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
20082 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
20083 | (
|
---|
20084 | cat <<\_ASBOX
|
---|
20085 | ## ------------------------------------------ ##
|
---|
20086 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
20087 | ## ------------------------------------------ ##
|
---|
20088 | _ASBOX
|
---|
20089 | ) |
|
---|
20090 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
20091 | ;;
|
---|
20092 | esac
|
---|
20093 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
20094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
20095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
20096 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20097 | else
|
---|
20098 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
20099 | fi
|
---|
20100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
20101 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
20102 |
|
---|
20103 | fi
|
---|
20104 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
20105 | cat >>confdefs.h <<_ACEOF
|
---|
20106 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
20107 | _ACEOF
|
---|
20108 |
|
---|
20109 | fi
|
---|
20110 |
|
---|
20111 | done
|
---|
20112 |
|
---|
20113 |
|
---|
20114 |
|
---|
20115 |
|
---|
20116 |
|
---|
20117 |
|
---|
20118 | for ac_header in sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h
|
---|
20119 | do
|
---|
20120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
20121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
20122 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
20123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
20124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
20125 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20126 | fi
|
---|
20127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
20128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
20129 | else
|
---|
20130 | # Is the header compilable?
|
---|
20131 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
20132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
20133 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20134 | /* confdefs.h. */
|
---|
20135 | _ACEOF
|
---|
20136 | cat confdefs.h >>conftest.$ac_ext
|
---|
20137 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20138 | /* end confdefs.h. */
|
---|
20139 | $ac_includes_default
|
---|
20140 | #include <$ac_header>
|
---|
20141 | _ACEOF
|
---|
20142 | rm -f conftest.$ac_objext
|
---|
20143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
20144 | (eval $ac_compile) 2>conftest.er1
|
---|
20145 | ac_status=$?
|
---|
20146 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20147 | rm -f conftest.er1
|
---|
20148 | cat conftest.err >&5
|
---|
20149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20150 | (exit $ac_status); } &&
|
---|
20151 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20152 | || test ! -s conftest.err'
|
---|
20153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20154 | (eval $ac_try) 2>&5
|
---|
20155 | ac_status=$?
|
---|
20156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20157 | (exit $ac_status); }; } &&
|
---|
20158 | { ac_try='test -s conftest.$ac_objext'
|
---|
20159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20160 | (eval $ac_try) 2>&5
|
---|
20161 | ac_status=$?
|
---|
20162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20163 | (exit $ac_status); }; }; then
|
---|
20164 | ac_header_compiler=yes
|
---|
20165 | else
|
---|
20166 | echo "$as_me: failed program was:" >&5
|
---|
20167 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20168 |
|
---|
20169 | ac_header_compiler=no
|
---|
20170 | fi
|
---|
20171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
20172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
20173 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
20174 |
|
---|
20175 | # Is the header present?
|
---|
20176 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
20177 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
20178 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20179 | /* confdefs.h. */
|
---|
20180 | _ACEOF
|
---|
20181 | cat confdefs.h >>conftest.$ac_ext
|
---|
20182 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20183 | /* end confdefs.h. */
|
---|
20184 | #include <$ac_header>
|
---|
20185 | _ACEOF
|
---|
20186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
20187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
20188 | ac_status=$?
|
---|
20189 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20190 | rm -f conftest.er1
|
---|
20191 | cat conftest.err >&5
|
---|
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20193 | (exit $ac_status); } >/dev/null; then
|
---|
20194 | if test -s conftest.err; then
|
---|
20195 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
20196 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
20197 | else
|
---|
20198 | ac_cpp_err=
|
---|
20199 | fi
|
---|
20200 | else
|
---|
20201 | ac_cpp_err=yes
|
---|
20202 | fi
|
---|
20203 | if test -z "$ac_cpp_err"; then
|
---|
20204 | ac_header_preproc=yes
|
---|
20205 | else
|
---|
20206 | echo "$as_me: failed program was:" >&5
|
---|
20207 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20208 |
|
---|
20209 | ac_header_preproc=no
|
---|
20210 | fi
|
---|
20211 | rm -f conftest.err conftest.$ac_ext
|
---|
20212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
20213 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
20214 |
|
---|
20215 | # So? What about this header?
|
---|
20216 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
20217 | yes:no: )
|
---|
20218 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
20219 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
20220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
20221 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
20222 | ac_header_preproc=yes
|
---|
20223 | ;;
|
---|
20224 | no:yes:* )
|
---|
20225 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
20226 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
20227 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
20228 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
20229 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
20230 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
20231 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
20232 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
20233 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
20234 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
20235 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
20236 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
20237 | (
|
---|
20238 | cat <<\_ASBOX
|
---|
20239 | ## ------------------------------------------ ##
|
---|
20240 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
20241 | ## ------------------------------------------ ##
|
---|
20242 | _ASBOX
|
---|
20243 | ) |
|
---|
20244 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
20245 | ;;
|
---|
20246 | esac
|
---|
20247 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
20248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
20249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
20250 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20251 | else
|
---|
20252 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
20253 | fi
|
---|
20254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
20255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
20256 |
|
---|
20257 | fi
|
---|
20258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
20259 | cat >>confdefs.h <<_ACEOF
|
---|
20260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
20261 | _ACEOF
|
---|
20262 |
|
---|
20263 | fi
|
---|
20264 |
|
---|
20265 | done
|
---|
20266 |
|
---|
20267 |
|
---|
20268 |
|
---|
20269 | for ac_func in stat _stat
|
---|
20270 | do
|
---|
20271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
20272 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
20273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
20274 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
20275 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20276 | else
|
---|
20277 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20278 | /* confdefs.h. */
|
---|
20279 | _ACEOF
|
---|
20280 | cat confdefs.h >>conftest.$ac_ext
|
---|
20281 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20282 | /* end confdefs.h. */
|
---|
20283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
20284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
20285 | #define $ac_func innocuous_$ac_func
|
---|
20286 |
|
---|
20287 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
20288 | which can conflict with char $ac_func (); below.
|
---|
20289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
20290 | <limits.h> exists even on freestanding compilers. */
|
---|
20291 |
|
---|
20292 | #ifdef __STDC__
|
---|
20293 | # include <limits.h>
|
---|
20294 | #else
|
---|
20295 | # include <assert.h>
|
---|
20296 | #endif
|
---|
20297 |
|
---|
20298 | #undef $ac_func
|
---|
20299 |
|
---|
20300 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20301 | #ifdef __cplusplus
|
---|
20302 | extern "C"
|
---|
20303 | {
|
---|
20304 | #endif
|
---|
20305 | /* We use char because int might match the return type of a gcc2
|
---|
20306 | builtin and then its argument prototype would still apply. */
|
---|
20307 | char $ac_func ();
|
---|
20308 | /* The GNU C library defines this for functions which it implements
|
---|
20309 | to always fail with ENOSYS. Some functions are actually named
|
---|
20310 | something starting with __ and the normal name is an alias. */
|
---|
20311 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
20312 | choke me
|
---|
20313 | #else
|
---|
20314 | char (*f) () = $ac_func;
|
---|
20315 | #endif
|
---|
20316 | #ifdef __cplusplus
|
---|
20317 | }
|
---|
20318 | #endif
|
---|
20319 |
|
---|
20320 | int
|
---|
20321 | main ()
|
---|
20322 | {
|
---|
20323 | return f != $ac_func;
|
---|
20324 | ;
|
---|
20325 | return 0;
|
---|
20326 | }
|
---|
20327 | _ACEOF
|
---|
20328 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20330 | (eval $ac_link) 2>conftest.er1
|
---|
20331 | ac_status=$?
|
---|
20332 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20333 | rm -f conftest.er1
|
---|
20334 | cat conftest.err >&5
|
---|
20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20336 | (exit $ac_status); } &&
|
---|
20337 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20338 | || test ! -s conftest.err'
|
---|
20339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20340 | (eval $ac_try) 2>&5
|
---|
20341 | ac_status=$?
|
---|
20342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20343 | (exit $ac_status); }; } &&
|
---|
20344 | { ac_try='test -s conftest$ac_exeext'
|
---|
20345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20346 | (eval $ac_try) 2>&5
|
---|
20347 | ac_status=$?
|
---|
20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20349 | (exit $ac_status); }; }; then
|
---|
20350 | eval "$as_ac_var=yes"
|
---|
20351 | else
|
---|
20352 | echo "$as_me: failed program was:" >&5
|
---|
20353 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20354 |
|
---|
20355 | eval "$as_ac_var=no"
|
---|
20356 | fi
|
---|
20357 | rm -f conftest.err conftest.$ac_objext \
|
---|
20358 | conftest$ac_exeext conftest.$ac_ext
|
---|
20359 | fi
|
---|
20360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
20361 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
20362 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
20363 | cat >>confdefs.h <<_ACEOF
|
---|
20364 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
20365 | _ACEOF
|
---|
20366 |
|
---|
20367 | fi
|
---|
20368 | done
|
---|
20369 |
|
---|
20370 | echo "$as_me:$LINENO: checking for isnan" >&5
|
---|
20371 | echo $ECHO_N "checking for isnan... $ECHO_C" >&6
|
---|
20372 | if test "${ac_cv_func_isnan+set}" = set; then
|
---|
20373 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20374 | else
|
---|
20375 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20376 | /* confdefs.h. */
|
---|
20377 | _ACEOF
|
---|
20378 | cat confdefs.h >>conftest.$ac_ext
|
---|
20379 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20380 | /* end confdefs.h. */
|
---|
20381 | /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
|
---|
20382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
20383 | #define isnan innocuous_isnan
|
---|
20384 |
|
---|
20385 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
20386 | which can conflict with char isnan (); below.
|
---|
20387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
20388 | <limits.h> exists even on freestanding compilers. */
|
---|
20389 |
|
---|
20390 | #ifdef __STDC__
|
---|
20391 | # include <limits.h>
|
---|
20392 | #else
|
---|
20393 | # include <assert.h>
|
---|
20394 | #endif
|
---|
20395 |
|
---|
20396 | #undef isnan
|
---|
20397 |
|
---|
20398 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20399 | #ifdef __cplusplus
|
---|
20400 | extern "C"
|
---|
20401 | {
|
---|
20402 | #endif
|
---|
20403 | /* We use char because int might match the return type of a gcc2
|
---|
20404 | builtin and then its argument prototype would still apply. */
|
---|
20405 | char isnan ();
|
---|
20406 | /* The GNU C library defines this for functions which it implements
|
---|
20407 | to always fail with ENOSYS. Some functions are actually named
|
---|
20408 | something starting with __ and the normal name is an alias. */
|
---|
20409 | #if defined (__stub_isnan) || defined (__stub___isnan)
|
---|
20410 | choke me
|
---|
20411 | #else
|
---|
20412 | char (*f) () = isnan;
|
---|
20413 | #endif
|
---|
20414 | #ifdef __cplusplus
|
---|
20415 | }
|
---|
20416 | #endif
|
---|
20417 |
|
---|
20418 | int
|
---|
20419 | main ()
|
---|
20420 | {
|
---|
20421 | return f != isnan;
|
---|
20422 | ;
|
---|
20423 | return 0;
|
---|
20424 | }
|
---|
20425 | _ACEOF
|
---|
20426 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20428 | (eval $ac_link) 2>conftest.er1
|
---|
20429 | ac_status=$?
|
---|
20430 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20431 | rm -f conftest.er1
|
---|
20432 | cat conftest.err >&5
|
---|
20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20434 | (exit $ac_status); } &&
|
---|
20435 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20436 | || test ! -s conftest.err'
|
---|
20437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20438 | (eval $ac_try) 2>&5
|
---|
20439 | ac_status=$?
|
---|
20440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20441 | (exit $ac_status); }; } &&
|
---|
20442 | { ac_try='test -s conftest$ac_exeext'
|
---|
20443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20444 | (eval $ac_try) 2>&5
|
---|
20445 | ac_status=$?
|
---|
20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20447 | (exit $ac_status); }; }; then
|
---|
20448 | ac_cv_func_isnan=yes
|
---|
20449 | else
|
---|
20450 | echo "$as_me: failed program was:" >&5
|
---|
20451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20452 |
|
---|
20453 | ac_cv_func_isnan=no
|
---|
20454 | fi
|
---|
20455 | rm -f conftest.err conftest.$ac_objext \
|
---|
20456 | conftest$ac_exeext conftest.$ac_ext
|
---|
20457 | fi
|
---|
20458 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
|
---|
20459 | echo "${ECHO_T}$ac_cv_func_isnan" >&6
|
---|
20460 | if test $ac_cv_func_isnan = yes; then
|
---|
20461 | :
|
---|
20462 | else
|
---|
20463 | echo "$as_me:$LINENO: checking for isnan in -lm" >&5
|
---|
20464 | echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6
|
---|
20465 | if test "${ac_cv_lib_m_isnan+set}" = set; then
|
---|
20466 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20467 | else
|
---|
20468 | ac_check_lib_save_LIBS=$LIBS
|
---|
20469 | LIBS="-lm $LIBS"
|
---|
20470 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20471 | /* confdefs.h. */
|
---|
20472 | _ACEOF
|
---|
20473 | cat confdefs.h >>conftest.$ac_ext
|
---|
20474 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20475 | /* end confdefs.h. */
|
---|
20476 |
|
---|
20477 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20478 | #ifdef __cplusplus
|
---|
20479 | extern "C"
|
---|
20480 | #endif
|
---|
20481 | /* We use char because int might match the return type of a gcc2
|
---|
20482 | builtin and then its argument prototype would still apply. */
|
---|
20483 | char isnan ();
|
---|
20484 | int
|
---|
20485 | main ()
|
---|
20486 | {
|
---|
20487 | isnan ();
|
---|
20488 | ;
|
---|
20489 | return 0;
|
---|
20490 | }
|
---|
20491 | _ACEOF
|
---|
20492 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20494 | (eval $ac_link) 2>conftest.er1
|
---|
20495 | ac_status=$?
|
---|
20496 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20497 | rm -f conftest.er1
|
---|
20498 | cat conftest.err >&5
|
---|
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20500 | (exit $ac_status); } &&
|
---|
20501 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20502 | || test ! -s conftest.err'
|
---|
20503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20504 | (eval $ac_try) 2>&5
|
---|
20505 | ac_status=$?
|
---|
20506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20507 | (exit $ac_status); }; } &&
|
---|
20508 | { ac_try='test -s conftest$ac_exeext'
|
---|
20509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20510 | (eval $ac_try) 2>&5
|
---|
20511 | ac_status=$?
|
---|
20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20513 | (exit $ac_status); }; }; then
|
---|
20514 | ac_cv_lib_m_isnan=yes
|
---|
20515 | else
|
---|
20516 | echo "$as_me: failed program was:" >&5
|
---|
20517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20518 |
|
---|
20519 | ac_cv_lib_m_isnan=no
|
---|
20520 | fi
|
---|
20521 | rm -f conftest.err conftest.$ac_objext \
|
---|
20522 | conftest$ac_exeext conftest.$ac_ext
|
---|
20523 | LIBS=$ac_check_lib_save_LIBS
|
---|
20524 | fi
|
---|
20525 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
|
---|
20526 | echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6
|
---|
20527 | if test $ac_cv_lib_m_isnan = yes; then
|
---|
20528 | M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
|
---|
20529 | #define HAVE_ISNAN 1
|
---|
20530 | _ACEOF
|
---|
20531 |
|
---|
20532 | fi
|
---|
20533 |
|
---|
20534 | fi
|
---|
20535 |
|
---|
20536 |
|
---|
20537 | echo "$as_me:$LINENO: checking for isinf" >&5
|
---|
20538 | echo $ECHO_N "checking for isinf... $ECHO_C" >&6
|
---|
20539 | if test "${ac_cv_func_isinf+set}" = set; then
|
---|
20540 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20541 | else
|
---|
20542 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20543 | /* confdefs.h. */
|
---|
20544 | _ACEOF
|
---|
20545 | cat confdefs.h >>conftest.$ac_ext
|
---|
20546 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20547 | /* end confdefs.h. */
|
---|
20548 | /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
|
---|
20549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
20550 | #define isinf innocuous_isinf
|
---|
20551 |
|
---|
20552 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
20553 | which can conflict with char isinf (); below.
|
---|
20554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
20555 | <limits.h> exists even on freestanding compilers. */
|
---|
20556 |
|
---|
20557 | #ifdef __STDC__
|
---|
20558 | # include <limits.h>
|
---|
20559 | #else
|
---|
20560 | # include <assert.h>
|
---|
20561 | #endif
|
---|
20562 |
|
---|
20563 | #undef isinf
|
---|
20564 |
|
---|
20565 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20566 | #ifdef __cplusplus
|
---|
20567 | extern "C"
|
---|
20568 | {
|
---|
20569 | #endif
|
---|
20570 | /* We use char because int might match the return type of a gcc2
|
---|
20571 | builtin and then its argument prototype would still apply. */
|
---|
20572 | char isinf ();
|
---|
20573 | /* The GNU C library defines this for functions which it implements
|
---|
20574 | to always fail with ENOSYS. Some functions are actually named
|
---|
20575 | something starting with __ and the normal name is an alias. */
|
---|
20576 | #if defined (__stub_isinf) || defined (__stub___isinf)
|
---|
20577 | choke me
|
---|
20578 | #else
|
---|
20579 | char (*f) () = isinf;
|
---|
20580 | #endif
|
---|
20581 | #ifdef __cplusplus
|
---|
20582 | }
|
---|
20583 | #endif
|
---|
20584 |
|
---|
20585 | int
|
---|
20586 | main ()
|
---|
20587 | {
|
---|
20588 | return f != isinf;
|
---|
20589 | ;
|
---|
20590 | return 0;
|
---|
20591 | }
|
---|
20592 | _ACEOF
|
---|
20593 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20595 | (eval $ac_link) 2>conftest.er1
|
---|
20596 | ac_status=$?
|
---|
20597 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20598 | rm -f conftest.er1
|
---|
20599 | cat conftest.err >&5
|
---|
20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20601 | (exit $ac_status); } &&
|
---|
20602 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20603 | || test ! -s conftest.err'
|
---|
20604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20605 | (eval $ac_try) 2>&5
|
---|
20606 | ac_status=$?
|
---|
20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20608 | (exit $ac_status); }; } &&
|
---|
20609 | { ac_try='test -s conftest$ac_exeext'
|
---|
20610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20611 | (eval $ac_try) 2>&5
|
---|
20612 | ac_status=$?
|
---|
20613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20614 | (exit $ac_status); }; }; then
|
---|
20615 | ac_cv_func_isinf=yes
|
---|
20616 | else
|
---|
20617 | echo "$as_me: failed program was:" >&5
|
---|
20618 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20619 |
|
---|
20620 | ac_cv_func_isinf=no
|
---|
20621 | fi
|
---|
20622 | rm -f conftest.err conftest.$ac_objext \
|
---|
20623 | conftest$ac_exeext conftest.$ac_ext
|
---|
20624 | fi
|
---|
20625 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
|
---|
20626 | echo "${ECHO_T}$ac_cv_func_isinf" >&6
|
---|
20627 | if test $ac_cv_func_isinf = yes; then
|
---|
20628 | :
|
---|
20629 | else
|
---|
20630 | echo "$as_me:$LINENO: checking for isinf in -lm" >&5
|
---|
20631 | echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6
|
---|
20632 | if test "${ac_cv_lib_m_isinf+set}" = set; then
|
---|
20633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20634 | else
|
---|
20635 | ac_check_lib_save_LIBS=$LIBS
|
---|
20636 | LIBS="-lm $LIBS"
|
---|
20637 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20638 | /* confdefs.h. */
|
---|
20639 | _ACEOF
|
---|
20640 | cat confdefs.h >>conftest.$ac_ext
|
---|
20641 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20642 | /* end confdefs.h. */
|
---|
20643 |
|
---|
20644 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20645 | #ifdef __cplusplus
|
---|
20646 | extern "C"
|
---|
20647 | #endif
|
---|
20648 | /* We use char because int might match the return type of a gcc2
|
---|
20649 | builtin and then its argument prototype would still apply. */
|
---|
20650 | char isinf ();
|
---|
20651 | int
|
---|
20652 | main ()
|
---|
20653 | {
|
---|
20654 | isinf ();
|
---|
20655 | ;
|
---|
20656 | return 0;
|
---|
20657 | }
|
---|
20658 | _ACEOF
|
---|
20659 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20661 | (eval $ac_link) 2>conftest.er1
|
---|
20662 | ac_status=$?
|
---|
20663 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20664 | rm -f conftest.er1
|
---|
20665 | cat conftest.err >&5
|
---|
20666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20667 | (exit $ac_status); } &&
|
---|
20668 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20669 | || test ! -s conftest.err'
|
---|
20670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20671 | (eval $ac_try) 2>&5
|
---|
20672 | ac_status=$?
|
---|
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20674 | (exit $ac_status); }; } &&
|
---|
20675 | { ac_try='test -s conftest$ac_exeext'
|
---|
20676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20677 | (eval $ac_try) 2>&5
|
---|
20678 | ac_status=$?
|
---|
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20680 | (exit $ac_status); }; }; then
|
---|
20681 | ac_cv_lib_m_isinf=yes
|
---|
20682 | else
|
---|
20683 | echo "$as_me: failed program was:" >&5
|
---|
20684 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20685 |
|
---|
20686 | ac_cv_lib_m_isinf=no
|
---|
20687 | fi
|
---|
20688 | rm -f conftest.err conftest.$ac_objext \
|
---|
20689 | conftest$ac_exeext conftest.$ac_ext
|
---|
20690 | LIBS=$ac_check_lib_save_LIBS
|
---|
20691 | fi
|
---|
20692 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
|
---|
20693 | echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6
|
---|
20694 | if test $ac_cv_lib_m_isinf = yes; then
|
---|
20695 | M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
|
---|
20696 | #define HAVE_ISINF 1
|
---|
20697 | _ACEOF
|
---|
20698 |
|
---|
20699 | fi
|
---|
20700 |
|
---|
20701 | fi
|
---|
20702 |
|
---|
20703 |
|
---|
20704 | echo "$as_me:$LINENO: checking for pow" >&5
|
---|
20705 | echo $ECHO_N "checking for pow... $ECHO_C" >&6
|
---|
20706 | if test "${ac_cv_func_pow+set}" = set; then
|
---|
20707 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20708 | else
|
---|
20709 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20710 | /* confdefs.h. */
|
---|
20711 | _ACEOF
|
---|
20712 | cat confdefs.h >>conftest.$ac_ext
|
---|
20713 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20714 | /* end confdefs.h. */
|
---|
20715 | /* Define pow to an innocuous variant, in case <limits.h> declares pow.
|
---|
20716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
20717 | #define pow innocuous_pow
|
---|
20718 |
|
---|
20719 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
20720 | which can conflict with char pow (); below.
|
---|
20721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
20722 | <limits.h> exists even on freestanding compilers. */
|
---|
20723 |
|
---|
20724 | #ifdef __STDC__
|
---|
20725 | # include <limits.h>
|
---|
20726 | #else
|
---|
20727 | # include <assert.h>
|
---|
20728 | #endif
|
---|
20729 |
|
---|
20730 | #undef pow
|
---|
20731 |
|
---|
20732 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20733 | #ifdef __cplusplus
|
---|
20734 | extern "C"
|
---|
20735 | {
|
---|
20736 | #endif
|
---|
20737 | /* We use char because int might match the return type of a gcc2
|
---|
20738 | builtin and then its argument prototype would still apply. */
|
---|
20739 | char pow ();
|
---|
20740 | /* The GNU C library defines this for functions which it implements
|
---|
20741 | to always fail with ENOSYS. Some functions are actually named
|
---|
20742 | something starting with __ and the normal name is an alias. */
|
---|
20743 | #if defined (__stub_pow) || defined (__stub___pow)
|
---|
20744 | choke me
|
---|
20745 | #else
|
---|
20746 | char (*f) () = pow;
|
---|
20747 | #endif
|
---|
20748 | #ifdef __cplusplus
|
---|
20749 | }
|
---|
20750 | #endif
|
---|
20751 |
|
---|
20752 | int
|
---|
20753 | main ()
|
---|
20754 | {
|
---|
20755 | return f != pow;
|
---|
20756 | ;
|
---|
20757 | return 0;
|
---|
20758 | }
|
---|
20759 | _ACEOF
|
---|
20760 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20762 | (eval $ac_link) 2>conftest.er1
|
---|
20763 | ac_status=$?
|
---|
20764 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20765 | rm -f conftest.er1
|
---|
20766 | cat conftest.err >&5
|
---|
20767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20768 | (exit $ac_status); } &&
|
---|
20769 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20770 | || test ! -s conftest.err'
|
---|
20771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20772 | (eval $ac_try) 2>&5
|
---|
20773 | ac_status=$?
|
---|
20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20775 | (exit $ac_status); }; } &&
|
---|
20776 | { ac_try='test -s conftest$ac_exeext'
|
---|
20777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20778 | (eval $ac_try) 2>&5
|
---|
20779 | ac_status=$?
|
---|
20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20781 | (exit $ac_status); }; }; then
|
---|
20782 | ac_cv_func_pow=yes
|
---|
20783 | else
|
---|
20784 | echo "$as_me: failed program was:" >&5
|
---|
20785 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20786 |
|
---|
20787 | ac_cv_func_pow=no
|
---|
20788 | fi
|
---|
20789 | rm -f conftest.err conftest.$ac_objext \
|
---|
20790 | conftest$ac_exeext conftest.$ac_ext
|
---|
20791 | fi
|
---|
20792 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
|
---|
20793 | echo "${ECHO_T}$ac_cv_func_pow" >&6
|
---|
20794 | if test $ac_cv_func_pow = yes; then
|
---|
20795 | :
|
---|
20796 | else
|
---|
20797 | echo "$as_me:$LINENO: checking for pow in -lm" >&5
|
---|
20798 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
|
---|
20799 | if test "${ac_cv_lib_m_pow+set}" = set; then
|
---|
20800 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20801 | else
|
---|
20802 | ac_check_lib_save_LIBS=$LIBS
|
---|
20803 | LIBS="-lm $LIBS"
|
---|
20804 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20805 | /* confdefs.h. */
|
---|
20806 | _ACEOF
|
---|
20807 | cat confdefs.h >>conftest.$ac_ext
|
---|
20808 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20809 | /* end confdefs.h. */
|
---|
20810 |
|
---|
20811 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20812 | #ifdef __cplusplus
|
---|
20813 | extern "C"
|
---|
20814 | #endif
|
---|
20815 | /* We use char because int might match the return type of a gcc2
|
---|
20816 | builtin and then its argument prototype would still apply. */
|
---|
20817 | char pow ();
|
---|
20818 | int
|
---|
20819 | main ()
|
---|
20820 | {
|
---|
20821 | pow ();
|
---|
20822 | ;
|
---|
20823 | return 0;
|
---|
20824 | }
|
---|
20825 | _ACEOF
|
---|
20826 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20828 | (eval $ac_link) 2>conftest.er1
|
---|
20829 | ac_status=$?
|
---|
20830 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20831 | rm -f conftest.er1
|
---|
20832 | cat conftest.err >&5
|
---|
20833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20834 | (exit $ac_status); } &&
|
---|
20835 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20836 | || test ! -s conftest.err'
|
---|
20837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20838 | (eval $ac_try) 2>&5
|
---|
20839 | ac_status=$?
|
---|
20840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20841 | (exit $ac_status); }; } &&
|
---|
20842 | { ac_try='test -s conftest$ac_exeext'
|
---|
20843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20844 | (eval $ac_try) 2>&5
|
---|
20845 | ac_status=$?
|
---|
20846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20847 | (exit $ac_status); }; }; then
|
---|
20848 | ac_cv_lib_m_pow=yes
|
---|
20849 | else
|
---|
20850 | echo "$as_me: failed program was:" >&5
|
---|
20851 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20852 |
|
---|
20853 | ac_cv_lib_m_pow=no
|
---|
20854 | fi
|
---|
20855 | rm -f conftest.err conftest.$ac_objext \
|
---|
20856 | conftest$ac_exeext conftest.$ac_ext
|
---|
20857 | LIBS=$ac_check_lib_save_LIBS
|
---|
20858 | fi
|
---|
20859 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
|
---|
20860 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
|
---|
20861 | if test $ac_cv_lib_m_pow = yes; then
|
---|
20862 | M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
|
---|
20863 | #define HAVE_POW 1
|
---|
20864 | _ACEOF
|
---|
20865 |
|
---|
20866 | fi
|
---|
20867 |
|
---|
20868 | fi
|
---|
20869 |
|
---|
20870 |
|
---|
20871 | echo "$as_me:$LINENO: checking for floor" >&5
|
---|
20872 | echo $ECHO_N "checking for floor... $ECHO_C" >&6
|
---|
20873 | if test "${ac_cv_func_floor+set}" = set; then
|
---|
20874 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20875 | else
|
---|
20876 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20877 | /* confdefs.h. */
|
---|
20878 | _ACEOF
|
---|
20879 | cat confdefs.h >>conftest.$ac_ext
|
---|
20880 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20881 | /* end confdefs.h. */
|
---|
20882 | /* Define floor to an innocuous variant, in case <limits.h> declares floor.
|
---|
20883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
20884 | #define floor innocuous_floor
|
---|
20885 |
|
---|
20886 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
20887 | which can conflict with char floor (); below.
|
---|
20888 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
20889 | <limits.h> exists even on freestanding compilers. */
|
---|
20890 |
|
---|
20891 | #ifdef __STDC__
|
---|
20892 | # include <limits.h>
|
---|
20893 | #else
|
---|
20894 | # include <assert.h>
|
---|
20895 | #endif
|
---|
20896 |
|
---|
20897 | #undef floor
|
---|
20898 |
|
---|
20899 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20900 | #ifdef __cplusplus
|
---|
20901 | extern "C"
|
---|
20902 | {
|
---|
20903 | #endif
|
---|
20904 | /* We use char because int might match the return type of a gcc2
|
---|
20905 | builtin and then its argument prototype would still apply. */
|
---|
20906 | char floor ();
|
---|
20907 | /* The GNU C library defines this for functions which it implements
|
---|
20908 | to always fail with ENOSYS. Some functions are actually named
|
---|
20909 | something starting with __ and the normal name is an alias. */
|
---|
20910 | #if defined (__stub_floor) || defined (__stub___floor)
|
---|
20911 | choke me
|
---|
20912 | #else
|
---|
20913 | char (*f) () = floor;
|
---|
20914 | #endif
|
---|
20915 | #ifdef __cplusplus
|
---|
20916 | }
|
---|
20917 | #endif
|
---|
20918 |
|
---|
20919 | int
|
---|
20920 | main ()
|
---|
20921 | {
|
---|
20922 | return f != floor;
|
---|
20923 | ;
|
---|
20924 | return 0;
|
---|
20925 | }
|
---|
20926 | _ACEOF
|
---|
20927 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20929 | (eval $ac_link) 2>conftest.er1
|
---|
20930 | ac_status=$?
|
---|
20931 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20932 | rm -f conftest.er1
|
---|
20933 | cat conftest.err >&5
|
---|
20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20935 | (exit $ac_status); } &&
|
---|
20936 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
20937 | || test ! -s conftest.err'
|
---|
20938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20939 | (eval $ac_try) 2>&5
|
---|
20940 | ac_status=$?
|
---|
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20942 | (exit $ac_status); }; } &&
|
---|
20943 | { ac_try='test -s conftest$ac_exeext'
|
---|
20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
20945 | (eval $ac_try) 2>&5
|
---|
20946 | ac_status=$?
|
---|
20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
20948 | (exit $ac_status); }; }; then
|
---|
20949 | ac_cv_func_floor=yes
|
---|
20950 | else
|
---|
20951 | echo "$as_me: failed program was:" >&5
|
---|
20952 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
20953 |
|
---|
20954 | ac_cv_func_floor=no
|
---|
20955 | fi
|
---|
20956 | rm -f conftest.err conftest.$ac_objext \
|
---|
20957 | conftest$ac_exeext conftest.$ac_ext
|
---|
20958 | fi
|
---|
20959 | echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5
|
---|
20960 | echo "${ECHO_T}$ac_cv_func_floor" >&6
|
---|
20961 | if test $ac_cv_func_floor = yes; then
|
---|
20962 | :
|
---|
20963 | else
|
---|
20964 | echo "$as_me:$LINENO: checking for floor in -lm" >&5
|
---|
20965 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
|
---|
20966 | if test "${ac_cv_lib_m_floor+set}" = set; then
|
---|
20967 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
20968 | else
|
---|
20969 | ac_check_lib_save_LIBS=$LIBS
|
---|
20970 | LIBS="-lm $LIBS"
|
---|
20971 | cat >conftest.$ac_ext <<_ACEOF
|
---|
20972 | /* confdefs.h. */
|
---|
20973 | _ACEOF
|
---|
20974 | cat confdefs.h >>conftest.$ac_ext
|
---|
20975 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
20976 | /* end confdefs.h. */
|
---|
20977 |
|
---|
20978 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
20979 | #ifdef __cplusplus
|
---|
20980 | extern "C"
|
---|
20981 | #endif
|
---|
20982 | /* We use char because int might match the return type of a gcc2
|
---|
20983 | builtin and then its argument prototype would still apply. */
|
---|
20984 | char floor ();
|
---|
20985 | int
|
---|
20986 | main ()
|
---|
20987 | {
|
---|
20988 | floor ();
|
---|
20989 | ;
|
---|
20990 | return 0;
|
---|
20991 | }
|
---|
20992 | _ACEOF
|
---|
20993 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
20994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
20995 | (eval $ac_link) 2>conftest.er1
|
---|
20996 | ac_status=$?
|
---|
20997 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
20998 | rm -f conftest.er1
|
---|
20999 | cat conftest.err >&5
|
---|
21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21001 | (exit $ac_status); } &&
|
---|
21002 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21003 | || test ! -s conftest.err'
|
---|
21004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21005 | (eval $ac_try) 2>&5
|
---|
21006 | ac_status=$?
|
---|
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21008 | (exit $ac_status); }; } &&
|
---|
21009 | { ac_try='test -s conftest$ac_exeext'
|
---|
21010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21011 | (eval $ac_try) 2>&5
|
---|
21012 | ac_status=$?
|
---|
21013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21014 | (exit $ac_status); }; }; then
|
---|
21015 | ac_cv_lib_m_floor=yes
|
---|
21016 | else
|
---|
21017 | echo "$as_me: failed program was:" >&5
|
---|
21018 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21019 |
|
---|
21020 | ac_cv_lib_m_floor=no
|
---|
21021 | fi
|
---|
21022 | rm -f conftest.err conftest.$ac_objext \
|
---|
21023 | conftest$ac_exeext conftest.$ac_ext
|
---|
21024 | LIBS=$ac_check_lib_save_LIBS
|
---|
21025 | fi
|
---|
21026 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
|
---|
21027 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
|
---|
21028 | if test $ac_cv_lib_m_floor = yes; then
|
---|
21029 | M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
|
---|
21030 | #define HAVE_FLOOR 1
|
---|
21031 | _ACEOF
|
---|
21032 |
|
---|
21033 | fi
|
---|
21034 |
|
---|
21035 | fi
|
---|
21036 |
|
---|
21037 |
|
---|
21038 | echo "$as_me:$LINENO: checking for fabs" >&5
|
---|
21039 | echo $ECHO_N "checking for fabs... $ECHO_C" >&6
|
---|
21040 | if test "${ac_cv_func_fabs+set}" = set; then
|
---|
21041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21042 | else
|
---|
21043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
21044 | /* confdefs.h. */
|
---|
21045 | _ACEOF
|
---|
21046 | cat confdefs.h >>conftest.$ac_ext
|
---|
21047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
21048 | /* end confdefs.h. */
|
---|
21049 | /* Define fabs to an innocuous variant, in case <limits.h> declares fabs.
|
---|
21050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
21051 | #define fabs innocuous_fabs
|
---|
21052 |
|
---|
21053 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
21054 | which can conflict with char fabs (); below.
|
---|
21055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
21056 | <limits.h> exists even on freestanding compilers. */
|
---|
21057 |
|
---|
21058 | #ifdef __STDC__
|
---|
21059 | # include <limits.h>
|
---|
21060 | #else
|
---|
21061 | # include <assert.h>
|
---|
21062 | #endif
|
---|
21063 |
|
---|
21064 | #undef fabs
|
---|
21065 |
|
---|
21066 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
21067 | #ifdef __cplusplus
|
---|
21068 | extern "C"
|
---|
21069 | {
|
---|
21070 | #endif
|
---|
21071 | /* We use char because int might match the return type of a gcc2
|
---|
21072 | builtin and then its argument prototype would still apply. */
|
---|
21073 | char fabs ();
|
---|
21074 | /* The GNU C library defines this for functions which it implements
|
---|
21075 | to always fail with ENOSYS. Some functions are actually named
|
---|
21076 | something starting with __ and the normal name is an alias. */
|
---|
21077 | #if defined (__stub_fabs) || defined (__stub___fabs)
|
---|
21078 | choke me
|
---|
21079 | #else
|
---|
21080 | char (*f) () = fabs;
|
---|
21081 | #endif
|
---|
21082 | #ifdef __cplusplus
|
---|
21083 | }
|
---|
21084 | #endif
|
---|
21085 |
|
---|
21086 | int
|
---|
21087 | main ()
|
---|
21088 | {
|
---|
21089 | return f != fabs;
|
---|
21090 | ;
|
---|
21091 | return 0;
|
---|
21092 | }
|
---|
21093 | _ACEOF
|
---|
21094 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
21095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
21096 | (eval $ac_link) 2>conftest.er1
|
---|
21097 | ac_status=$?
|
---|
21098 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
21099 | rm -f conftest.er1
|
---|
21100 | cat conftest.err >&5
|
---|
21101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21102 | (exit $ac_status); } &&
|
---|
21103 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21104 | || test ! -s conftest.err'
|
---|
21105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21106 | (eval $ac_try) 2>&5
|
---|
21107 | ac_status=$?
|
---|
21108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21109 | (exit $ac_status); }; } &&
|
---|
21110 | { ac_try='test -s conftest$ac_exeext'
|
---|
21111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21112 | (eval $ac_try) 2>&5
|
---|
21113 | ac_status=$?
|
---|
21114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21115 | (exit $ac_status); }; }; then
|
---|
21116 | ac_cv_func_fabs=yes
|
---|
21117 | else
|
---|
21118 | echo "$as_me: failed program was:" >&5
|
---|
21119 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21120 |
|
---|
21121 | ac_cv_func_fabs=no
|
---|
21122 | fi
|
---|
21123 | rm -f conftest.err conftest.$ac_objext \
|
---|
21124 | conftest$ac_exeext conftest.$ac_ext
|
---|
21125 | fi
|
---|
21126 | echo "$as_me:$LINENO: result: $ac_cv_func_fabs" >&5
|
---|
21127 | echo "${ECHO_T}$ac_cv_func_fabs" >&6
|
---|
21128 | if test $ac_cv_func_fabs = yes; then
|
---|
21129 | :
|
---|
21130 | else
|
---|
21131 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5
|
---|
21132 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
|
---|
21133 | if test "${ac_cv_lib_m_fabs+set}" = set; then
|
---|
21134 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21135 | else
|
---|
21136 | ac_check_lib_save_LIBS=$LIBS
|
---|
21137 | LIBS="-lm $LIBS"
|
---|
21138 | cat >conftest.$ac_ext <<_ACEOF
|
---|
21139 | /* confdefs.h. */
|
---|
21140 | _ACEOF
|
---|
21141 | cat confdefs.h >>conftest.$ac_ext
|
---|
21142 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
21143 | /* end confdefs.h. */
|
---|
21144 |
|
---|
21145 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
21146 | #ifdef __cplusplus
|
---|
21147 | extern "C"
|
---|
21148 | #endif
|
---|
21149 | /* We use char because int might match the return type of a gcc2
|
---|
21150 | builtin and then its argument prototype would still apply. */
|
---|
21151 | char fabs ();
|
---|
21152 | int
|
---|
21153 | main ()
|
---|
21154 | {
|
---|
21155 | fabs ();
|
---|
21156 | ;
|
---|
21157 | return 0;
|
---|
21158 | }
|
---|
21159 | _ACEOF
|
---|
21160 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
21161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
21162 | (eval $ac_link) 2>conftest.er1
|
---|
21163 | ac_status=$?
|
---|
21164 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
21165 | rm -f conftest.er1
|
---|
21166 | cat conftest.err >&5
|
---|
21167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21168 | (exit $ac_status); } &&
|
---|
21169 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21170 | || test ! -s conftest.err'
|
---|
21171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21172 | (eval $ac_try) 2>&5
|
---|
21173 | ac_status=$?
|
---|
21174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21175 | (exit $ac_status); }; } &&
|
---|
21176 | { ac_try='test -s conftest$ac_exeext'
|
---|
21177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21178 | (eval $ac_try) 2>&5
|
---|
21179 | ac_status=$?
|
---|
21180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21181 | (exit $ac_status); }; }; then
|
---|
21182 | ac_cv_lib_m_fabs=yes
|
---|
21183 | else
|
---|
21184 | echo "$as_me: failed program was:" >&5
|
---|
21185 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21186 |
|
---|
21187 | ac_cv_lib_m_fabs=no
|
---|
21188 | fi
|
---|
21189 | rm -f conftest.err conftest.$ac_objext \
|
---|
21190 | conftest$ac_exeext conftest.$ac_ext
|
---|
21191 | LIBS=$ac_check_lib_save_LIBS
|
---|
21192 | fi
|
---|
21193 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
|
---|
21194 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
|
---|
21195 | if test $ac_cv_lib_m_fabs = yes; then
|
---|
21196 | M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
|
---|
21197 | #define HAVE_FABS 1
|
---|
21198 | _ACEOF
|
---|
21199 |
|
---|
21200 | fi
|
---|
21201 |
|
---|
21202 | fi
|
---|
21203 |
|
---|
21204 |
|
---|
21205 | for ac_func in gettimeofday
|
---|
21206 | do
|
---|
21207 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
21208 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
21209 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
21210 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
21211 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21212 | else
|
---|
21213 | cat >conftest.$ac_ext <<_ACEOF
|
---|
21214 | /* confdefs.h. */
|
---|
21215 | _ACEOF
|
---|
21216 | cat confdefs.h >>conftest.$ac_ext
|
---|
21217 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
21218 | /* end confdefs.h. */
|
---|
21219 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
21220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
21221 | #define $ac_func innocuous_$ac_func
|
---|
21222 |
|
---|
21223 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
21224 | which can conflict with char $ac_func (); below.
|
---|
21225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
21226 | <limits.h> exists even on freestanding compilers. */
|
---|
21227 |
|
---|
21228 | #ifdef __STDC__
|
---|
21229 | # include <limits.h>
|
---|
21230 | #else
|
---|
21231 | # include <assert.h>
|
---|
21232 | #endif
|
---|
21233 |
|
---|
21234 | #undef $ac_func
|
---|
21235 |
|
---|
21236 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
21237 | #ifdef __cplusplus
|
---|
21238 | extern "C"
|
---|
21239 | {
|
---|
21240 | #endif
|
---|
21241 | /* We use char because int might match the return type of a gcc2
|
---|
21242 | builtin and then its argument prototype would still apply. */
|
---|
21243 | char $ac_func ();
|
---|
21244 | /* The GNU C library defines this for functions which it implements
|
---|
21245 | to always fail with ENOSYS. Some functions are actually named
|
---|
21246 | something starting with __ and the normal name is an alias. */
|
---|
21247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
21248 | choke me
|
---|
21249 | #else
|
---|
21250 | char (*f) () = $ac_func;
|
---|
21251 | #endif
|
---|
21252 | #ifdef __cplusplus
|
---|
21253 | }
|
---|
21254 | #endif
|
---|
21255 |
|
---|
21256 | int
|
---|
21257 | main ()
|
---|
21258 | {
|
---|
21259 | return f != $ac_func;
|
---|
21260 | ;
|
---|
21261 | return 0;
|
---|
21262 | }
|
---|
21263 | _ACEOF
|
---|
21264 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
21265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
21266 | (eval $ac_link) 2>conftest.er1
|
---|
21267 | ac_status=$?
|
---|
21268 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
21269 | rm -f conftest.er1
|
---|
21270 | cat conftest.err >&5
|
---|
21271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21272 | (exit $ac_status); } &&
|
---|
21273 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21274 | || test ! -s conftest.err'
|
---|
21275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21276 | (eval $ac_try) 2>&5
|
---|
21277 | ac_status=$?
|
---|
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21279 | (exit $ac_status); }; } &&
|
---|
21280 | { ac_try='test -s conftest$ac_exeext'
|
---|
21281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21282 | (eval $ac_try) 2>&5
|
---|
21283 | ac_status=$?
|
---|
21284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21285 | (exit $ac_status); }; }; then
|
---|
21286 | eval "$as_ac_var=yes"
|
---|
21287 | else
|
---|
21288 | echo "$as_me: failed program was:" >&5
|
---|
21289 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21290 |
|
---|
21291 | eval "$as_ac_var=no"
|
---|
21292 | fi
|
---|
21293 | rm -f conftest.err conftest.$ac_objext \
|
---|
21294 | conftest$ac_exeext conftest.$ac_ext
|
---|
21295 | fi
|
---|
21296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
21297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
21298 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
21299 | cat >>confdefs.h <<_ACEOF
|
---|
21300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
21301 | _ACEOF
|
---|
21302 |
|
---|
21303 | fi
|
---|
21304 | done
|
---|
21305 |
|
---|
21306 |
|
---|
21307 |
|
---|
21308 |
|
---|
21309 |
|
---|
21310 |
|
---|
21311 |
|
---|
21312 |
|
---|
21313 | for ac_func in mktime localtime localtime_r asctime time gmtime_r ftime
|
---|
21314 | do
|
---|
21315 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
21316 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
21317 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
21318 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
21319 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21320 | else
|
---|
21321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
21322 | /* confdefs.h. */
|
---|
21323 | _ACEOF
|
---|
21324 | cat confdefs.h >>conftest.$ac_ext
|
---|
21325 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
21326 | /* end confdefs.h. */
|
---|
21327 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
21328 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
21329 | #define $ac_func innocuous_$ac_func
|
---|
21330 |
|
---|
21331 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
21332 | which can conflict with char $ac_func (); below.
|
---|
21333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
21334 | <limits.h> exists even on freestanding compilers. */
|
---|
21335 |
|
---|
21336 | #ifdef __STDC__
|
---|
21337 | # include <limits.h>
|
---|
21338 | #else
|
---|
21339 | # include <assert.h>
|
---|
21340 | #endif
|
---|
21341 |
|
---|
21342 | #undef $ac_func
|
---|
21343 |
|
---|
21344 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
21345 | #ifdef __cplusplus
|
---|
21346 | extern "C"
|
---|
21347 | {
|
---|
21348 | #endif
|
---|
21349 | /* We use char because int might match the return type of a gcc2
|
---|
21350 | builtin and then its argument prototype would still apply. */
|
---|
21351 | char $ac_func ();
|
---|
21352 | /* The GNU C library defines this for functions which it implements
|
---|
21353 | to always fail with ENOSYS. Some functions are actually named
|
---|
21354 | something starting with __ and the normal name is an alias. */
|
---|
21355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
21356 | choke me
|
---|
21357 | #else
|
---|
21358 | char (*f) () = $ac_func;
|
---|
21359 | #endif
|
---|
21360 | #ifdef __cplusplus
|
---|
21361 | }
|
---|
21362 | #endif
|
---|
21363 |
|
---|
21364 | int
|
---|
21365 | main ()
|
---|
21366 | {
|
---|
21367 | return f != $ac_func;
|
---|
21368 | ;
|
---|
21369 | return 0;
|
---|
21370 | }
|
---|
21371 | _ACEOF
|
---|
21372 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
21373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
21374 | (eval $ac_link) 2>conftest.er1
|
---|
21375 | ac_status=$?
|
---|
21376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
21377 | rm -f conftest.er1
|
---|
21378 | cat conftest.err >&5
|
---|
21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21380 | (exit $ac_status); } &&
|
---|
21381 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21382 | || test ! -s conftest.err'
|
---|
21383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21384 | (eval $ac_try) 2>&5
|
---|
21385 | ac_status=$?
|
---|
21386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21387 | (exit $ac_status); }; } &&
|
---|
21388 | { ac_try='test -s conftest$ac_exeext'
|
---|
21389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21390 | (eval $ac_try) 2>&5
|
---|
21391 | ac_status=$?
|
---|
21392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21393 | (exit $ac_status); }; }; then
|
---|
21394 | eval "$as_ac_var=yes"
|
---|
21395 | else
|
---|
21396 | echo "$as_me: failed program was:" >&5
|
---|
21397 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21398 |
|
---|
21399 | eval "$as_ac_var=no"
|
---|
21400 | fi
|
---|
21401 | rm -f conftest.err conftest.$ac_objext \
|
---|
21402 | conftest$ac_exeext conftest.$ac_ext
|
---|
21403 | fi
|
---|
21404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
21405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
21406 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
21407 | cat >>confdefs.h <<_ACEOF
|
---|
21408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
21409 | _ACEOF
|
---|
21410 |
|
---|
21411 | fi
|
---|
21412 | done
|
---|
21413 |
|
---|
21414 |
|
---|
21415 |
|
---|
21416 |
|
---|
21417 |
|
---|
21418 |
|
---|
21419 |
|
---|
21420 |
|
---|
21421 |
|
---|
21422 |
|
---|
21423 | for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
|
---|
21424 | do
|
---|
21425 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
21426 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
21427 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
21428 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
21429 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21430 | else
|
---|
21431 | cat >conftest.$ac_ext <<_ACEOF
|
---|
21432 | /* confdefs.h. */
|
---|
21433 | _ACEOF
|
---|
21434 | cat confdefs.h >>conftest.$ac_ext
|
---|
21435 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
21436 | /* end confdefs.h. */
|
---|
21437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
21438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
21439 | #define $ac_func innocuous_$ac_func
|
---|
21440 |
|
---|
21441 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
21442 | which can conflict with char $ac_func (); below.
|
---|
21443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
21444 | <limits.h> exists even on freestanding compilers. */
|
---|
21445 |
|
---|
21446 | #ifdef __STDC__
|
---|
21447 | # include <limits.h>
|
---|
21448 | #else
|
---|
21449 | # include <assert.h>
|
---|
21450 | #endif
|
---|
21451 |
|
---|
21452 | #undef $ac_func
|
---|
21453 |
|
---|
21454 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
21455 | #ifdef __cplusplus
|
---|
21456 | extern "C"
|
---|
21457 | {
|
---|
21458 | #endif
|
---|
21459 | /* We use char because int might match the return type of a gcc2
|
---|
21460 | builtin and then its argument prototype would still apply. */
|
---|
21461 | char $ac_func ();
|
---|
21462 | /* The GNU C library defines this for functions which it implements
|
---|
21463 | to always fail with ENOSYS. Some functions are actually named
|
---|
21464 | something starting with __ and the normal name is an alias. */
|
---|
21465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
21466 | choke me
|
---|
21467 | #else
|
---|
21468 | char (*f) () = $ac_func;
|
---|
21469 | #endif
|
---|
21470 | #ifdef __cplusplus
|
---|
21471 | }
|
---|
21472 | #endif
|
---|
21473 |
|
---|
21474 | int
|
---|
21475 | main ()
|
---|
21476 | {
|
---|
21477 | return f != $ac_func;
|
---|
21478 | ;
|
---|
21479 | return 0;
|
---|
21480 | }
|
---|
21481 | _ACEOF
|
---|
21482 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
21483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
21484 | (eval $ac_link) 2>conftest.er1
|
---|
21485 | ac_status=$?
|
---|
21486 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
21487 | rm -f conftest.er1
|
---|
21488 | cat conftest.err >&5
|
---|
21489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21490 | (exit $ac_status); } &&
|
---|
21491 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
21492 | || test ! -s conftest.err'
|
---|
21493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21494 | (eval $ac_try) 2>&5
|
---|
21495 | ac_status=$?
|
---|
21496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21497 | (exit $ac_status); }; } &&
|
---|
21498 | { ac_try='test -s conftest$ac_exeext'
|
---|
21499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
21500 | (eval $ac_try) 2>&5
|
---|
21501 | ac_status=$?
|
---|
21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
21503 | (exit $ac_status); }; }; then
|
---|
21504 | eval "$as_ac_var=yes"
|
---|
21505 | else
|
---|
21506 | echo "$as_me: failed program was:" >&5
|
---|
21507 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
21508 |
|
---|
21509 | eval "$as_ac_var=no"
|
---|
21510 | fi
|
---|
21511 | rm -f conftest.err conftest.$ac_objext \
|
---|
21512 | conftest$ac_exeext conftest.$ac_ext
|
---|
21513 | fi
|
---|
21514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
21515 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
21516 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
21517 | cat >>confdefs.h <<_ACEOF
|
---|
21518 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
21519 | _ACEOF
|
---|
21520 |
|
---|
21521 | else
|
---|
21522 | NEED_TRIO=1
|
---|
21523 | fi
|
---|
21524 | done
|
---|
21525 |
|
---|
21526 |
|
---|
21527 |
|
---|
21528 | if test "${NEED_TRIO}" = "1" ; then
|
---|
21529 | echo Reusing trio library for string functions
|
---|
21530 | WITH_TRIO=1
|
---|
21531 | else
|
---|
21532 | WITH_TRIO=0
|
---|
21533 | fi
|
---|
21534 |
|
---|
21535 |
|
---|
21536 |
|
---|
21537 |
|
---|
21538 |
|
---|
21539 | # Extract the first word of "perl", so it can be a program name with args.
|
---|
21540 | set dummy perl; ac_word=$2
|
---|
21541 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
21542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
21543 | if test "${ac_cv_prog_PERL+set}" = set; then
|
---|
21544 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21545 | else
|
---|
21546 | if test -n "$PERL"; then
|
---|
21547 | ac_cv_prog_PERL="$PERL" # Let the user override the test.
|
---|
21548 | else
|
---|
21549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
21550 | for as_dir in $PATH
|
---|
21551 | do
|
---|
21552 | IFS=$as_save_IFS
|
---|
21553 | test -z "$as_dir" && as_dir=.
|
---|
21554 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
21555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
21556 | ac_cv_prog_PERL="perl"
|
---|
21557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
21558 | break 2
|
---|
21559 | fi
|
---|
21560 | done
|
---|
21561 | done
|
---|
21562 |
|
---|
21563 | test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
|
---|
21564 | fi
|
---|
21565 | fi
|
---|
21566 | PERL=$ac_cv_prog_PERL
|
---|
21567 | if test -n "$PERL"; then
|
---|
21568 | echo "$as_me:$LINENO: result: $PERL" >&5
|
---|
21569 | echo "${ECHO_T}$PERL" >&6
|
---|
21570 | else
|
---|
21571 | echo "$as_me:$LINENO: result: no" >&5
|
---|
21572 | echo "${ECHO_T}no" >&6
|
---|
21573 | fi
|
---|
21574 |
|
---|
21575 |
|
---|
21576 |
|
---|
21577 | if test "$PERL" != "false"; then
|
---|
21578 | WITH_PERL_TRUE=
|
---|
21579 | WITH_PERL_FALSE='#'
|
---|
21580 | else
|
---|
21581 | WITH_PERL_TRUE='#'
|
---|
21582 | WITH_PERL_FALSE=
|
---|
21583 | fi
|
---|
21584 |
|
---|
21585 |
|
---|
21586 |
|
---|
21587 | PYTHON_VERSION=
|
---|
21588 | PYTHON_INCLUDES=
|
---|
21589 | PYTHON_SITE_PACKAGES=
|
---|
21590 | pythondir=
|
---|
21591 |
|
---|
21592 | # Check whether --with-python or --without-python was given.
|
---|
21593 | if test "${with_python+set}" = set; then
|
---|
21594 | withval="$with_python"
|
---|
21595 |
|
---|
21596 | fi;
|
---|
21597 | if test "$with_python" != "no" ; then
|
---|
21598 | if test -x "$with_python/bin/python"
|
---|
21599 | then
|
---|
21600 | echo Found python in $with_python/bin/python
|
---|
21601 | PYTHON="$with_python/bin/python"
|
---|
21602 | else
|
---|
21603 | if test -x "$with_python"
|
---|
21604 | then
|
---|
21605 | echo Found python in $with_python
|
---|
21606 | PYTHON="$with_python"
|
---|
21607 | else
|
---|
21608 | if test -x "$PYTHON"
|
---|
21609 | then
|
---|
21610 | echo Found python in environment PYTHON=$PYTHON
|
---|
21611 | with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
---|
21612 | else
|
---|
21613 | # Extract the first word of "python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
|
---|
21614 | set dummy python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
|
---|
21615 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
21616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
21617 | if test "${ac_cv_path_PYTHON+set}" = set; then
|
---|
21618 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21619 | else
|
---|
21620 | case $PYTHON in
|
---|
21621 | [\\/]* | ?:[\\/]*)
|
---|
21622 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
|
---|
21623 | ;;
|
---|
21624 | *)
|
---|
21625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
21626 | for as_dir in $PATH
|
---|
21627 | do
|
---|
21628 | IFS=$as_save_IFS
|
---|
21629 | test -z "$as_dir" && as_dir=.
|
---|
21630 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
21631 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
21632 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
|
---|
21633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
21634 | break 2
|
---|
21635 | fi
|
---|
21636 | done
|
---|
21637 | done
|
---|
21638 |
|
---|
21639 | ;;
|
---|
21640 | esac
|
---|
21641 | fi
|
---|
21642 | PYTHON=$ac_cv_path_PYTHON
|
---|
21643 |
|
---|
21644 | if test -n "$PYTHON"; then
|
---|
21645 | echo "$as_me:$LINENO: result: $PYTHON" >&5
|
---|
21646 | echo "${ECHO_T}$PYTHON" >&6
|
---|
21647 | else
|
---|
21648 | echo "$as_me:$LINENO: result: no" >&5
|
---|
21649 | echo "${ECHO_T}no" >&6
|
---|
21650 | fi
|
---|
21651 |
|
---|
21652 | fi
|
---|
21653 | fi
|
---|
21654 | fi
|
---|
21655 | if test "$PYTHON" != ""
|
---|
21656 | then
|
---|
21657 | echo "PYTHON is pointing at $PYTHON"
|
---|
21658 | PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
|
---|
21659 | echo Found Python version $PYTHON_VERSION
|
---|
21660 | LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1
|
---|
21661 | except: print 0"`
|
---|
21662 | if test "$LIBXML2_PYTHON" = "1"
|
---|
21663 | then
|
---|
21664 | echo Found libxml2-python module
|
---|
21665 | else
|
---|
21666 | echo Warning: Missing libxml2-python
|
---|
21667 | fi
|
---|
21668 | fi
|
---|
21669 | if test "$PYTHON_VERSION" != ""
|
---|
21670 | then
|
---|
21671 | if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
|
---|
21672 | -d $with_python/lib/python$PYTHON_VERSION/site-packages
|
---|
21673 | then
|
---|
21674 | PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
|
---|
21675 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
---|
21676 | else
|
---|
21677 | if test -r $prefix/include/python$PYTHON_VERSION/Python.h
|
---|
21678 | then
|
---|
21679 | PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
|
---|
21680 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
---|
21681 | else
|
---|
21682 | if test -r /usr/include/python$PYTHON_VERSION/Python.h
|
---|
21683 | then
|
---|
21684 | PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
|
---|
21685 | PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
---|
21686 | else
|
---|
21687 | echo could not find python$PYTHON_VERSION/Python.h
|
---|
21688 | fi
|
---|
21689 | fi
|
---|
21690 | if test ! -d "$PYTHON_SITE_PACKAGES"
|
---|
21691 | then
|
---|
21692 | PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
|
---|
21693 | fi
|
---|
21694 | fi
|
---|
21695 | fi
|
---|
21696 | if test "$with_python" != ""
|
---|
21697 | then
|
---|
21698 | pythondir='$(PYTHON_SITE_PACKAGES)'
|
---|
21699 | else
|
---|
21700 | pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
|
---|
21701 | fi
|
---|
21702 | fi
|
---|
21703 |
|
---|
21704 |
|
---|
21705 | if test "$PYTHON_INCLUDES" != ""; then
|
---|
21706 | WITH_PYTHON_TRUE=
|
---|
21707 | WITH_PYTHON_FALSE='#'
|
---|
21708 | else
|
---|
21709 | WITH_PYTHON_TRUE='#'
|
---|
21710 | WITH_PYTHON_FALSE=
|
---|
21711 | fi
|
---|
21712 |
|
---|
21713 | if test "$PYTHON_INCLUDES" != ""
|
---|
21714 | then
|
---|
21715 | PYTHON_SUBDIR=python
|
---|
21716 | else
|
---|
21717 | PYTHON_SUBDIR=
|
---|
21718 | fi
|
---|
21719 |
|
---|
21720 |
|
---|
21721 |
|
---|
21722 |
|
---|
21723 | # Check whether --with-crypto or --without-crypto was given.
|
---|
21724 | if test "${with_crypto+set}" = set; then
|
---|
21725 | withval="$with_crypto"
|
---|
21726 |
|
---|
21727 | fi;
|
---|
21728 | WITH_CRYPTO=0
|
---|
21729 | if test "$with_crypto" = "no" ; then
|
---|
21730 | echo Disabling crypto support
|
---|
21731 | LIBGCRYPT_CFLAGS=""
|
---|
21732 | LIBGCRYPT_LIBS=""
|
---|
21733 | else
|
---|
21734 | # Extract the first word of "libgcrypt-config", so it can be a program name with args.
|
---|
21735 | set dummy libgcrypt-config; ac_word=$2
|
---|
21736 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
21737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
21738 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
|
---|
21739 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
21740 | else
|
---|
21741 | case $LIBGCRYPT_CONFIG in
|
---|
21742 | [\\/]* | ?:[\\/]*)
|
---|
21743 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
|
---|
21744 | ;;
|
---|
21745 | *)
|
---|
21746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
21747 | for as_dir in $PATH
|
---|
21748 | do
|
---|
21749 | IFS=$as_save_IFS
|
---|
21750 | test -z "$as_dir" && as_dir=.
|
---|
21751 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
21752 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
21753 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
21754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
21755 | break 2
|
---|
21756 | fi
|
---|
21757 | done
|
---|
21758 | done
|
---|
21759 |
|
---|
21760 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
|
---|
21761 | ;;
|
---|
21762 | esac
|
---|
21763 | fi
|
---|
21764 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
|
---|
21765 |
|
---|
21766 | if test -n "$LIBGCRYPT_CONFIG"; then
|
---|
21767 | echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
|
---|
21768 | echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
|
---|
21769 | else
|
---|
21770 | echo "$as_me:$LINENO: result: no" >&5
|
---|
21771 | echo "${ECHO_T}no" >&6
|
---|
21772 | fi
|
---|
21773 |
|
---|
21774 | if test "$LIBGCRYPT_CONFIG" != "no" ; then
|
---|
21775 | LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
|
---|
21776 | if test `echo $LIBGCRYPT_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -lt `echo "1.1.42" | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
|
---|
21777 | then
|
---|
21778 | LIBGCRYPT_CFLAGS=""
|
---|
21779 | LIBGCRYPT_LIBS=""
|
---|
21780 | echo gcrypt library version < 1.1.42 - Crypto extensions will not be available.
|
---|
21781 | else
|
---|
21782 | LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
|
---|
21783 | LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
|
---|
21784 |
|
---|
21785 | cat >>confdefs.h <<\_ACEOF
|
---|
21786 | #define HAVE_GCRYPT 1
|
---|
21787 | _ACEOF
|
---|
21788 |
|
---|
21789 | echo Crypto extensions will be available.
|
---|
21790 | WITH_CRYPTO=1
|
---|
21791 | fi
|
---|
21792 | else
|
---|
21793 | LIBGCRYPT_CFLAGS=""
|
---|
21794 | LIBGCRYPT_LIBS=""
|
---|
21795 | echo Crypto extensions will not be available. Install libgcrypt and reconfigure to make available.
|
---|
21796 | fi
|
---|
21797 | fi
|
---|
21798 |
|
---|
21799 |
|
---|
21800 |
|
---|
21801 |
|
---|
21802 | if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ] || \
|
---|
21803 | [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]
|
---|
21804 | then
|
---|
21805 | if test "${with_mem_debug}" = "" ;
|
---|
21806 | then
|
---|
21807 | with_mem_debug="yes"
|
---|
21808 | fi
|
---|
21809 | CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline "
|
---|
21810 | if test "`uname -m`" != "x86_64" ;
|
---|
21811 | then
|
---|
21812 | STATIC_BINARIES="-static"
|
---|
21813 | else
|
---|
21814 | STATIC_BINARIES=
|
---|
21815 | fi
|
---|
21816 | if test "$LOGNAME" = "veillard"
|
---|
21817 | then
|
---|
21818 | LIBXML_SRC="/u/veillard/XML"
|
---|
21819 | EXTRA_LIBS="$EXTRA_LIBS -ldl"
|
---|
21820 | fi
|
---|
21821 | else
|
---|
21822 | STATIC_BINARIES=
|
---|
21823 | fi
|
---|
21824 |
|
---|
21825 |
|
---|
21826 |
|
---|
21827 | # Check whether --with-debug or --without-debug was given.
|
---|
21828 | if test "${with_debug+set}" = set; then
|
---|
21829 | withval="$with_debug"
|
---|
21830 |
|
---|
21831 | fi;
|
---|
21832 | if test "$with_debug" = "no" ; then
|
---|
21833 | echo Disabling debug support
|
---|
21834 | WITH_XSLT_DEBUG=0
|
---|
21835 | else
|
---|
21836 | WITH_XSLT_DEBUG=1
|
---|
21837 | fi
|
---|
21838 |
|
---|
21839 |
|
---|
21840 |
|
---|
21841 | # Check whether --with-mem_debug or --without-mem_debug was given.
|
---|
21842 | if test "${with_mem_debug+set}" = set; then
|
---|
21843 | withval="$with_mem_debug"
|
---|
21844 |
|
---|
21845 | fi;
|
---|
21846 | if test "$with_mem_debug" = "yes" ; then
|
---|
21847 | echo Enabling memory debug support
|
---|
21848 | WITH_MEM_DEBUG=1
|
---|
21849 | else
|
---|
21850 | WITH_MEM_DEBUG=0
|
---|
21851 | fi
|
---|
21852 |
|
---|
21853 |
|
---|
21854 |
|
---|
21855 | # Check whether --with-with_debugger or --without-with_debugger was given.
|
---|
21856 | if test "${with_with_debugger+set}" = set; then
|
---|
21857 | withval="$with_with_debugger"
|
---|
21858 |
|
---|
21859 | fi;
|
---|
21860 | if test "$with_debugger" = "no" ; then
|
---|
21861 | echo Disabling debugger
|
---|
21862 | WITH_DEBUGGER=0
|
---|
21863 | else
|
---|
21864 | echo Enabling debugger
|
---|
21865 | WITH_DEBUGGER=1
|
---|
21866 | cat >>confdefs.h <<\_ACEOF
|
---|
21867 | #define WITH_DEBUGGER 1
|
---|
21868 | _ACEOF
|
---|
21869 |
|
---|
21870 | fi
|
---|
21871 |
|
---|
21872 |
|
---|
21873 |
|
---|
21874 | LIBXML_CONFIG_PREFIX=""
|
---|
21875 | LIBXML_SRC=""
|
---|
21876 |
|
---|
21877 |
|
---|
21878 | # Check whether --with-libxml-prefix or --without-libxml-prefix was given.
|
---|
21879 | if test "${with_libxml_prefix+set}" = set; then
|
---|
21880 | withval="$with_libxml_prefix"
|
---|
21881 | LIBXML_CONFIG_PREFIX=$withval
|
---|
21882 |
|
---|
21883 | fi;
|
---|
21884 |
|
---|
21885 |
|
---|
21886 | # Check whether --with-libxml-include-prefix or --without-libxml-include-prefix was given.
|
---|
21887 | if test "${with_libxml_include_prefix+set}" = set; then
|
---|
21888 | withval="$with_libxml_include_prefix"
|
---|
21889 | LIBXML_CFLAGS="-I$withval"
|
---|
21890 |
|
---|
21891 | fi;
|
---|
21892 |
|
---|
21893 |
|
---|
21894 | # Check whether --with-libxml-libs-prefix or --without-libxml-libs-prefix was given.
|
---|
21895 | if test "${with_libxml_libs_prefix+set}" = set; then
|
---|
21896 | withval="$with_libxml_libs_prefix"
|
---|
21897 | LIBXML_LIBS="-L$withval"
|
---|
21898 |
|
---|
21899 | fi;
|
---|
21900 |
|
---|
21901 |
|
---|
21902 | # Check whether --with-libxml-src or --without-libxml-src was given.
|
---|
21903 | if test "${with_libxml_src+set}" = set; then
|
---|
21904 | withval="$with_libxml_src"
|
---|
21905 | LIBXML_SRC="$withval"
|
---|
21906 |
|
---|
21907 | fi;
|
---|
21908 |
|
---|
21909 |
|
---|
21910 |
|
---|
21911 |
|
---|
21912 | echo "$as_me:$LINENO: checking for libxml libraries >= $LIBXML_REQUIRED_VERSION" >&5
|
---|
21913 | echo $ECHO_N "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... $ECHO_C" >&6
|
---|
21914 | if test "x$LIBXML_CONFIG_PREFIX" != "x"
|
---|
21915 | then
|
---|
21916 | XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config
|
---|
21917 | else
|
---|
21918 | XML_CONFIG=xml2-config
|
---|
21919 | fi
|
---|
21920 |
|
---|
21921 | if test "${GCC}" != "yes" ; then
|
---|
21922 | case "${host}" in
|
---|
21923 | *-*-hpux* )
|
---|
21924 | CFLAGS="${CFLAGS} -Wp,-H30000"
|
---|
21925 | ;;
|
---|
21926 | *-dec-osf* )
|
---|
21927 | CFLAGS="${CFLAGS} -ieee"
|
---|
21928 | ;;
|
---|
21929 | esac
|
---|
21930 | else
|
---|
21931 | CFLAGS="${CFLAGS} -Wall"
|
---|
21932 | case "${host}" in
|
---|
21933 | alpha*-*-linux* )
|
---|
21934 | CFLAGS="${CFLAGS} -mieee"
|
---|
21935 | ;;
|
---|
21936 | alpha*-*-osf* )
|
---|
21937 | CFLAGS="${CFLAGS} -mieee"
|
---|
21938 | ;;
|
---|
21939 | esac
|
---|
21940 | fi
|
---|
21941 |
|
---|
21942 |
|
---|
21943 | if test "x$LIBXML_SRC" != "x"
|
---|
21944 | then
|
---|
21945 | CWD=`pwd`
|
---|
21946 | if cd $LIBXML_SRC
|
---|
21947 | then
|
---|
21948 | SRC_DIR=`pwd`
|
---|
21949 | XML_CONFIG=${SRC_DIR}/xml2-config
|
---|
21950 | LIBXML_CFLAGS="-I${SRC_DIR}/include"
|
---|
21951 | LIBXML_LIBS="-L${SRC_DIR}"
|
---|
21952 | cd $CWD
|
---|
21953 | else
|
---|
21954 | { { echo "$as_me:$LINENO: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&5
|
---|
21955 | echo "$as_me: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&2;}
|
---|
21956 | { (exit 1); exit 1; }; }
|
---|
21957 | fi
|
---|
21958 | fi
|
---|
21959 |
|
---|
21960 |
|
---|
21961 | if ${XML_CONFIG} --libs print > /dev/null 2>&1
|
---|
21962 | then
|
---|
21963 | XMLVERS=`$XML_CONFIG --version`
|
---|
21964 | if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
|
---|
21965 | then
|
---|
21966 | LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
|
---|
21967 | LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
|
---|
21968 | echo "$as_me:$LINENO: result: $XMLVERS found" >&5
|
---|
21969 | echo "${ECHO_T}$XMLVERS found" >&6
|
---|
21970 | else
|
---|
21971 | { { echo "$as_me:$LINENO: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&5
|
---|
21972 | echo "$as_me: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&2;}
|
---|
21973 | { (exit 1); exit 1; }; }
|
---|
21974 | fi
|
---|
21975 | else
|
---|
21976 | { { echo "$as_me:$LINENO: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&5
|
---|
21977 | echo "$as_me: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&2;}
|
---|
21978 | { (exit 1); exit 1; }; }
|
---|
21979 | fi
|
---|
21980 |
|
---|
21981 |
|
---|
21982 |
|
---|
21983 |
|
---|
21984 |
|
---|
21985 |
|
---|
21986 |
|
---|
21987 | # Check whether --with-plugins or --without-plugins was given.
|
---|
21988 | if test "${with_plugins+set}" = set; then
|
---|
21989 | withval="$with_plugins"
|
---|
21990 |
|
---|
21991 | fi;
|
---|
21992 | if test "$with_plugins" = ""
|
---|
21993 | then
|
---|
21994 | with_plugins=yes
|
---|
21995 | fi
|
---|
21996 |
|
---|
21997 | echo "$as_me:$LINENO: checking whether shared libraries will be built (required for plugins)" >&5
|
---|
21998 | echo $ECHO_N "checking whether shared libraries will be built (required for plugins)... $ECHO_C" >&6
|
---|
21999 | if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then
|
---|
22000 | echo "$as_me:$LINENO: result: no" >&5
|
---|
22001 | echo "${ECHO_T}no" >&6
|
---|
22002 | { echo "$as_me:$LINENO: WARNING: Disabling plugin support." >&5
|
---|
22003 | echo "$as_me: WARNING: Disabling plugin support." >&2;}
|
---|
22004 | { echo "$as_me:$LINENO: WARNING: Plugins require that shared libraries be built." >&5
|
---|
22005 | echo "$as_me: WARNING: Plugins require that shared libraries be built." >&2;}
|
---|
22006 | with_plugins=no
|
---|
22007 | else
|
---|
22008 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
22009 | echo "${ECHO_T}yes" >&6
|
---|
22010 | fi
|
---|
22011 |
|
---|
22012 | if test "$with_plugins" = "yes" ; then
|
---|
22013 | echo "$as_me:$LINENO: checking libxml2 module support" >&5
|
---|
22014 | echo $ECHO_N "checking libxml2 module support... $ECHO_C" >&6
|
---|
22015 | WITH_MODULES="`$XML_CONFIG --modules`"
|
---|
22016 | if test "${WITH_MODULES}" = "1"; then
|
---|
22017 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
22018 | echo "${ECHO_T}yes" >&6
|
---|
22019 | else
|
---|
22020 | echo "$as_me:$LINENO: result: no" >&5
|
---|
22021 | echo "${ECHO_T}no" >&6
|
---|
22022 | WITH_MODULES="0"
|
---|
22023 | fi
|
---|
22024 | else
|
---|
22025 | WITH_MODULES="0"
|
---|
22026 | fi
|
---|
22027 |
|
---|
22028 |
|
---|
22029 |
|
---|
22030 |
|
---|
22031 | if test "$WITH_MODULES" = "1"; then
|
---|
22032 | WITH_MODULES_TRUE=
|
---|
22033 | WITH_MODULES_FALSE='#'
|
---|
22034 | else
|
---|
22035 | WITH_MODULES_TRUE='#'
|
---|
22036 | WITH_MODULES_FALSE=
|
---|
22037 | fi
|
---|
22038 |
|
---|
22039 |
|
---|
22040 | module_prefix=$prefix
|
---|
22041 | test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix
|
---|
22042 | LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins"
|
---|
22043 |
|
---|
22044 |
|
---|
22045 | if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
|
---|
22046 | if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ;
|
---|
22047 | then
|
---|
22048 | LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz"
|
---|
22049 | fi
|
---|
22050 | DV_LINK="1"
|
---|
22051 | XSLTPROCDV="xsltproc.dv"
|
---|
22052 | INSTALLED_XSLT_LIB=""
|
---|
22053 | LIBXML_SRC="$HOME/XML/"
|
---|
22054 | fi
|
---|
22055 |
|
---|
22056 | WIN32_EXTRA_LIBADD=
|
---|
22057 | WIN32_EXTRA_LDFLAGS=
|
---|
22058 | case "$host" in
|
---|
22059 | *-*-mingw*)
|
---|
22060 | WIN32_EXTRA_LIBADD="-lwsock32"
|
---|
22061 | WIN32_EXTRA_LDFLAGS="-no-undefined"
|
---|
22062 |
|
---|
22063 | cat >>confdefs.h <<\_ACEOF
|
---|
22064 | #define _WINSOCKAPI_ 1
|
---|
22065 | _ACEOF
|
---|
22066 |
|
---|
22067 |
|
---|
22068 | cat >>confdefs.h <<\_ACEOF
|
---|
22069 | #define snprintf _snprintf
|
---|
22070 | _ACEOF
|
---|
22071 |
|
---|
22072 |
|
---|
22073 | cat >>confdefs.h <<\_ACEOF
|
---|
22074 | #define vsnprintf _vsnprintf
|
---|
22075 | _ACEOF
|
---|
22076 |
|
---|
22077 | ;;
|
---|
22078 | esac
|
---|
22079 |
|
---|
22080 |
|
---|
22081 |
|
---|
22082 |
|
---|
22083 |
|
---|
22084 |
|
---|
22085 |
|
---|
22086 |
|
---|
22087 |
|
---|
22088 |
|
---|
22089 |
|
---|
22090 |
|
---|
22091 |
|
---|
22092 |
|
---|
22093 | XSLT_LIBDIR='-L${libdir}'
|
---|
22094 | XSLT_INCLUDEDIR='-I${includedir}'
|
---|
22095 | XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
|
---|
22096 |
|
---|
22097 |
|
---|
22098 |
|
---|
22099 |
|
---|
22100 | EXSLT_LIBDIR='-L${libdir}'
|
---|
22101 | EXSLT_INCLUDEDIR='-I${includedir}'
|
---|
22102 | EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS"
|
---|
22103 |
|
---|
22104 |
|
---|
22105 |
|
---|
22106 |
|
---|
22107 | EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS"
|
---|
22108 |
|
---|
22109 |
|
---|
22110 |
|
---|
22111 |
|
---|
22112 | RELDATE=`date +'%a %b %e %Y'`
|
---|
22113 |
|
---|
22114 |
|
---|
22115 | ( cd $srcdir
|
---|
22116 | rm -f COPYING.LIB COPYING
|
---|
22117 | $LN_S Copyright COPYING
|
---|
22118 | )
|
---|
22119 |
|
---|
22120 |
|
---|
22121 | ac_config_files="$ac_config_files Makefile libxslt.pc libexslt.pc libxslt/Makefile libxslt/xsltconfig.h libxslt/xsltwin32config.h libexslt/Makefile libexslt/exsltconfig.h xsltproc/Makefile python/Makefile python/tests/Makefile tests/Makefile tests/docs/Makefile tests/REC1/Makefile tests/REC2/Makefile tests/REC/Makefile tests/general/Makefile tests/reports/Makefile tests/extensions/Makefile tests/namespaces/Makefile tests/keys/Makefile tests/numbers/Makefile tests/documents/Makefile tests/xmlspec/Makefile tests/multiple/Makefile tests/xinclude/Makefile tests/XSLTMark/Makefile tests/docbook/Makefile tests/exslt/Makefile tests/exslt/common/Makefile tests/exslt/functions/Makefile tests/exslt/math/Makefile tests/exslt/sets/Makefile tests/exslt/strings/Makefile tests/exslt/date/Makefile tests/exslt/dynamic/Makefile tests/plugins/Makefile doc/Makefile xslt-config libxslt.spec"
|
---|
22122 | cat >confcache <<\_ACEOF
|
---|
22123 | # This file is a shell script that caches the results of configure
|
---|
22124 | # tests run on this system so they can be shared between configure
|
---|
22125 | # scripts and configure runs, see configure's option --config-cache.
|
---|
22126 | # It is not useful on other systems. If it contains results you don't
|
---|
22127 | # want to keep, you may remove or edit it.
|
---|
22128 | #
|
---|
22129 | # config.status only pays attention to the cache file if you give it
|
---|
22130 | # the --recheck option to rerun configure.
|
---|
22131 | #
|
---|
22132 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
22133 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
22134 | # following values.
|
---|
22135 |
|
---|
22136 | _ACEOF
|
---|
22137 |
|
---|
22138 | # The following way of writing the cache mishandles newlines in values,
|
---|
22139 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
22140 | # So, don't put newlines in cache variables' values.
|
---|
22141 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
22142 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
22143 | {
|
---|
22144 | (set) 2>&1 |
|
---|
22145 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
22146 | *ac_space=\ *)
|
---|
22147 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
22148 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
22149 | sed -n \
|
---|
22150 | "s/'/'\\\\''/g;
|
---|
22151 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
22152 | ;;
|
---|
22153 | *)
|
---|
22154 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
22155 | sed -n \
|
---|
22156 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
22157 | ;;
|
---|
22158 | esac;
|
---|
22159 | } |
|
---|
22160 | sed '
|
---|
22161 | t clear
|
---|
22162 | : clear
|
---|
22163 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
22164 | t end
|
---|
22165 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
22166 | : end' >>confcache
|
---|
22167 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
22168 | if test -w $cache_file; then
|
---|
22169 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
22170 | cat confcache >$cache_file
|
---|
22171 | else
|
---|
22172 | echo "not updating unwritable cache $cache_file"
|
---|
22173 | fi
|
---|
22174 | fi
|
---|
22175 | rm -f confcache
|
---|
22176 |
|
---|
22177 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
22178 | # Let make expand exec_prefix.
|
---|
22179 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
22180 |
|
---|
22181 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
22182 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
22183 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
22184 | # (actually we leave an empty line to preserve line numbers).
|
---|
22185 | if test "x$srcdir" = x.; then
|
---|
22186 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
22187 | s/:*\$(srcdir):*/:/;
|
---|
22188 | s/:*\${srcdir}:*/:/;
|
---|
22189 | s/:*@srcdir@:*/:/;
|
---|
22190 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
22191 | s/:*$//;
|
---|
22192 | s/^[^=]*=[ ]*$//;
|
---|
22193 | }'
|
---|
22194 | fi
|
---|
22195 |
|
---|
22196 | DEFS=-DHAVE_CONFIG_H
|
---|
22197 |
|
---|
22198 | ac_libobjs=
|
---|
22199 | ac_ltlibobjs=
|
---|
22200 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
22201 | # 1. Remove the extension, and $U if already installed.
|
---|
22202 | ac_i=`echo "$ac_i" |
|
---|
22203 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
22204 | # 2. Add them.
|
---|
22205 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
22206 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
22207 | done
|
---|
22208 | LIBOBJS=$ac_libobjs
|
---|
22209 |
|
---|
22210 | LTLIBOBJS=$ac_ltlibobjs
|
---|
22211 |
|
---|
22212 |
|
---|
22213 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
22214 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
---|
22215 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22216 | echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
---|
22217 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22218 | { (exit 1); exit 1; }; }
|
---|
22219 | fi
|
---|
22220 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
22221 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
---|
22222 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22223 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
---|
22224 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22225 | { (exit 1); exit 1; }; }
|
---|
22226 | fi
|
---|
22227 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
22228 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
---|
22229 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22230 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
---|
22231 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22232 | { (exit 1); exit 1; }; }
|
---|
22233 | fi
|
---|
22234 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
---|
22235 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
---|
22236 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22237 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
---|
22238 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22239 | { (exit 1); exit 1; }; }
|
---|
22240 | fi
|
---|
22241 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
|
---|
22242 | { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
|
---|
22243 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22244 | echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
|
---|
22245 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22246 | { (exit 1); exit 1; }; }
|
---|
22247 | fi
|
---|
22248 | if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
|
---|
22249 | { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
|
---|
22250 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22251 | echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
|
---|
22252 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22253 | { (exit 1); exit 1; }; }
|
---|
22254 | fi
|
---|
22255 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
|
---|
22256 | { { echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
|
---|
22257 | Usually this means the macro was only invoked conditionally." >&5
|
---|
22258 | echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
|
---|
22259 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
22260 | { (exit 1); exit 1; }; }
|
---|
22261 | fi
|
---|
22262 |
|
---|
22263 | : ${CONFIG_STATUS=./config.status}
|
---|
22264 | ac_clean_files_save=$ac_clean_files
|
---|
22265 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
22266 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
22267 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
22268 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
22269 | #! $SHELL
|
---|
22270 | # Generated by $as_me.
|
---|
22271 | # Run this file to recreate the current configuration.
|
---|
22272 | # Compiler output produced by configure, useful for debugging
|
---|
22273 | # configure, is in config.log if it exists.
|
---|
22274 |
|
---|
22275 | debug=false
|
---|
22276 | ac_cs_recheck=false
|
---|
22277 | ac_cs_silent=false
|
---|
22278 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
22279 | _ACEOF
|
---|
22280 |
|
---|
22281 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22282 | ## --------------------- ##
|
---|
22283 | ## M4sh Initialization. ##
|
---|
22284 | ## --------------------- ##
|
---|
22285 |
|
---|
22286 | # Be Bourne compatible
|
---|
22287 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
22288 | emulate sh
|
---|
22289 | NULLCMD=:
|
---|
22290 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
22291 | # is contrary to our usage. Disable this feature.
|
---|
22292 | alias -g '${1+"$@"}'='"$@"'
|
---|
22293 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
22294 | set -o posix
|
---|
22295 | fi
|
---|
22296 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
22297 |
|
---|
22298 | # Support unset when possible.
|
---|
22299 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
22300 | as_unset=unset
|
---|
22301 | else
|
---|
22302 | as_unset=false
|
---|
22303 | fi
|
---|
22304 |
|
---|
22305 |
|
---|
22306 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
22307 | $as_unset ENV MAIL MAILPATH
|
---|
22308 | PS1='$ '
|
---|
22309 | PS2='> '
|
---|
22310 | PS4='+ '
|
---|
22311 |
|
---|
22312 | # NLS nuisances.
|
---|
22313 | for as_var in \
|
---|
22314 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
22315 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
22316 | LC_TELEPHONE LC_TIME
|
---|
22317 | do
|
---|
22318 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
22319 | eval $as_var=C; export $as_var
|
---|
22320 | else
|
---|
22321 | $as_unset $as_var
|
---|
22322 | fi
|
---|
22323 | done
|
---|
22324 |
|
---|
22325 | # Required to use basename.
|
---|
22326 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
22327 | as_expr=expr
|
---|
22328 | else
|
---|
22329 | as_expr=false
|
---|
22330 | fi
|
---|
22331 |
|
---|
22332 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
22333 | as_basename=basename
|
---|
22334 | else
|
---|
22335 | as_basename=false
|
---|
22336 | fi
|
---|
22337 |
|
---|
22338 |
|
---|
22339 | # Name of the executable.
|
---|
22340 | as_me=`$as_basename "$0" ||
|
---|
22341 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
22342 | X"$0" : 'X\(//\)$' \| \
|
---|
22343 | X"$0" : 'X\(/\)$' \| \
|
---|
22344 | . : '\(.\)' 2>/dev/null ||
|
---|
22345 | echo X/"$0" |
|
---|
22346 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
22347 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
22348 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
22349 | s/.*/./; q'`
|
---|
22350 |
|
---|
22351 |
|
---|
22352 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
22353 | # Avoid depending upon Character Ranges.
|
---|
22354 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
22355 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
22356 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
22357 | as_cr_digits='0123456789'
|
---|
22358 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
22359 |
|
---|
22360 | # The user is always right.
|
---|
22361 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
22362 | echo "#! /bin/sh" >conf$$.sh
|
---|
22363 | echo "exit 0" >>conf$$.sh
|
---|
22364 | chmod +x conf$$.sh
|
---|
22365 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
22366 | PATH_SEPARATOR=';'
|
---|
22367 | else
|
---|
22368 | PATH_SEPARATOR=:
|
---|
22369 | fi
|
---|
22370 | rm -f conf$$.sh
|
---|
22371 | fi
|
---|
22372 |
|
---|
22373 |
|
---|
22374 | as_lineno_1=$LINENO
|
---|
22375 | as_lineno_2=$LINENO
|
---|
22376 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
22377 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
22378 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
22379 | # Find who we are. Look in the path if we contain no path at all
|
---|
22380 | # relative or not.
|
---|
22381 | case $0 in
|
---|
22382 | *[\\/]* ) as_myself=$0 ;;
|
---|
22383 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
22384 | for as_dir in $PATH
|
---|
22385 | do
|
---|
22386 | IFS=$as_save_IFS
|
---|
22387 | test -z "$as_dir" && as_dir=.
|
---|
22388 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
22389 | done
|
---|
22390 |
|
---|
22391 | ;;
|
---|
22392 | esac
|
---|
22393 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
22394 | # in which case we are not to be found in the path.
|
---|
22395 | if test "x$as_myself" = x; then
|
---|
22396 | as_myself=$0
|
---|
22397 | fi
|
---|
22398 | if test ! -f "$as_myself"; then
|
---|
22399 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
22400 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
22401 | { (exit 1); exit 1; }; }
|
---|
22402 | fi
|
---|
22403 | case $CONFIG_SHELL in
|
---|
22404 | '')
|
---|
22405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
22406 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
22407 | do
|
---|
22408 | IFS=$as_save_IFS
|
---|
22409 | test -z "$as_dir" && as_dir=.
|
---|
22410 | for as_base in sh bash ksh sh5; do
|
---|
22411 | case $as_dir in
|
---|
22412 | /*)
|
---|
22413 | if ("$as_dir/$as_base" -c '
|
---|
22414 | as_lineno_1=$LINENO
|
---|
22415 | as_lineno_2=$LINENO
|
---|
22416 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
22417 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
22418 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
22419 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
22420 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
22421 | CONFIG_SHELL=$as_dir/$as_base
|
---|
22422 | export CONFIG_SHELL
|
---|
22423 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
22424 | fi;;
|
---|
22425 | esac
|
---|
22426 | done
|
---|
22427 | done
|
---|
22428 | ;;
|
---|
22429 | esac
|
---|
22430 |
|
---|
22431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
22432 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
22433 | # line-number line before each line; the second 'sed' does the real
|
---|
22434 | # work. The second script uses 'N' to pair each line-number line
|
---|
22435 | # with the numbered line, and appends trailing '-' during
|
---|
22436 | # substitution so that $LINENO is not a special case at line end.
|
---|
22437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
22438 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
22439 | sed '=' <$as_myself |
|
---|
22440 | sed '
|
---|
22441 | N
|
---|
22442 | s,$,-,
|
---|
22443 | : loop
|
---|
22444 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
22445 | t loop
|
---|
22446 | s,-$,,
|
---|
22447 | s,^['$as_cr_digits']*\n,,
|
---|
22448 | ' >$as_me.lineno &&
|
---|
22449 | chmod +x $as_me.lineno ||
|
---|
22450 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
22451 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
22452 | { (exit 1); exit 1; }; }
|
---|
22453 |
|
---|
22454 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
22455 | # (the dirname of $[0] is not the place where we might find the
|
---|
22456 | # original and so on. Autoconf is especially sensible to this).
|
---|
22457 | . ./$as_me.lineno
|
---|
22458 | # Exit status is that of the last command.
|
---|
22459 | exit
|
---|
22460 | }
|
---|
22461 |
|
---|
22462 |
|
---|
22463 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
22464 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
22465 | ' ECHO_T=' ' ;;
|
---|
22466 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
22467 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
22468 | esac
|
---|
22469 |
|
---|
22470 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
22471 | as_expr=expr
|
---|
22472 | else
|
---|
22473 | as_expr=false
|
---|
22474 | fi
|
---|
22475 |
|
---|
22476 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
22477 | echo >conf$$.file
|
---|
22478 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
22479 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
22480 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
22481 | if test -f conf$$.exe; then
|
---|
22482 | # Don't use ln at all; we don't have any links
|
---|
22483 | as_ln_s='cp -p'
|
---|
22484 | else
|
---|
22485 | as_ln_s='ln -s'
|
---|
22486 | fi
|
---|
22487 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
22488 | as_ln_s=ln
|
---|
22489 | else
|
---|
22490 | as_ln_s='cp -p'
|
---|
22491 | fi
|
---|
22492 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
22493 |
|
---|
22494 | if mkdir -p . 2>/dev/null; then
|
---|
22495 | as_mkdir_p=:
|
---|
22496 | else
|
---|
22497 | test -d ./-p && rmdir ./-p
|
---|
22498 | as_mkdir_p=false
|
---|
22499 | fi
|
---|
22500 |
|
---|
22501 | as_executable_p="test -f"
|
---|
22502 |
|
---|
22503 | # Sed expression to map a string onto a valid CPP name.
|
---|
22504 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
22505 |
|
---|
22506 | # Sed expression to map a string onto a valid variable name.
|
---|
22507 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
22508 |
|
---|
22509 |
|
---|
22510 | # IFS
|
---|
22511 | # We need space, tab and new line, in precisely that order.
|
---|
22512 | as_nl='
|
---|
22513 | '
|
---|
22514 | IFS=" $as_nl"
|
---|
22515 |
|
---|
22516 | # CDPATH.
|
---|
22517 | $as_unset CDPATH
|
---|
22518 |
|
---|
22519 | exec 6>&1
|
---|
22520 |
|
---|
22521 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
22522 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
22523 | # values after options handling. Logging --version etc. is OK.
|
---|
22524 | exec 5>>config.log
|
---|
22525 | {
|
---|
22526 | echo
|
---|
22527 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
22528 | ## Running $as_me. ##
|
---|
22529 | _ASBOX
|
---|
22530 | } >&5
|
---|
22531 | cat >&5 <<_CSEOF
|
---|
22532 |
|
---|
22533 | This file was extended by $as_me, which was
|
---|
22534 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
22535 |
|
---|
22536 | CONFIG_FILES = $CONFIG_FILES
|
---|
22537 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
22538 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
22539 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
22540 | $ $0 $@
|
---|
22541 |
|
---|
22542 | _CSEOF
|
---|
22543 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
22544 | echo >&5
|
---|
22545 | _ACEOF
|
---|
22546 |
|
---|
22547 | # Files that config.status was made for.
|
---|
22548 | if test -n "$ac_config_files"; then
|
---|
22549 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
22550 | fi
|
---|
22551 |
|
---|
22552 | if test -n "$ac_config_headers"; then
|
---|
22553 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
22554 | fi
|
---|
22555 |
|
---|
22556 | if test -n "$ac_config_links"; then
|
---|
22557 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
22558 | fi
|
---|
22559 |
|
---|
22560 | if test -n "$ac_config_commands"; then
|
---|
22561 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
22562 | fi
|
---|
22563 |
|
---|
22564 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22565 |
|
---|
22566 | ac_cs_usage="\
|
---|
22567 | \`$as_me' instantiates files from templates according to the
|
---|
22568 | current configuration.
|
---|
22569 |
|
---|
22570 | Usage: $0 [OPTIONS] [FILE]...
|
---|
22571 |
|
---|
22572 | -h, --help print this help, then exit
|
---|
22573 | -V, --version print version number, then exit
|
---|
22574 | -q, --quiet do not print progress messages
|
---|
22575 | -d, --debug don't remove temporary files
|
---|
22576 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
22577 | --file=FILE[:TEMPLATE]
|
---|
22578 | instantiate the configuration file FILE
|
---|
22579 | --header=FILE[:TEMPLATE]
|
---|
22580 | instantiate the configuration header FILE
|
---|
22581 |
|
---|
22582 | Configuration files:
|
---|
22583 | $config_files
|
---|
22584 |
|
---|
22585 | Configuration headers:
|
---|
22586 | $config_headers
|
---|
22587 |
|
---|
22588 | Configuration commands:
|
---|
22589 | $config_commands
|
---|
22590 |
|
---|
22591 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
22592 | _ACEOF
|
---|
22593 |
|
---|
22594 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
22595 | ac_cs_version="\\
|
---|
22596 | config.status
|
---|
22597 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
22598 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
22599 |
|
---|
22600 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
22601 | This config.status script is free software; the Free Software Foundation
|
---|
22602 | gives unlimited permission to copy, distribute and modify it."
|
---|
22603 | srcdir=$srcdir
|
---|
22604 | INSTALL="$INSTALL"
|
---|
22605 | _ACEOF
|
---|
22606 |
|
---|
22607 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22608 | # If no file are specified by the user, then we need to provide default
|
---|
22609 | # value. By we need to know if files were specified by the user.
|
---|
22610 | ac_need_defaults=:
|
---|
22611 | while test $# != 0
|
---|
22612 | do
|
---|
22613 | case $1 in
|
---|
22614 | --*=*)
|
---|
22615 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
22616 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
22617 | ac_shift=:
|
---|
22618 | ;;
|
---|
22619 | -*)
|
---|
22620 | ac_option=$1
|
---|
22621 | ac_optarg=$2
|
---|
22622 | ac_shift=shift
|
---|
22623 | ;;
|
---|
22624 | *) # This is not an option, so the user has probably given explicit
|
---|
22625 | # arguments.
|
---|
22626 | ac_option=$1
|
---|
22627 | ac_need_defaults=false;;
|
---|
22628 | esac
|
---|
22629 |
|
---|
22630 | case $ac_option in
|
---|
22631 | # Handling of the options.
|
---|
22632 | _ACEOF
|
---|
22633 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22634 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
22635 | ac_cs_recheck=: ;;
|
---|
22636 | --version | --vers* | -V )
|
---|
22637 | echo "$ac_cs_version"; exit 0 ;;
|
---|
22638 | --he | --h)
|
---|
22639 | # Conflict between --help and --header
|
---|
22640 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
22641 | Try \`$0 --help' for more information." >&5
|
---|
22642 | echo "$as_me: error: ambiguous option: $1
|
---|
22643 | Try \`$0 --help' for more information." >&2;}
|
---|
22644 | { (exit 1); exit 1; }; };;
|
---|
22645 | --help | --hel | -h )
|
---|
22646 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
22647 | --debug | --d* | -d )
|
---|
22648 | debug=: ;;
|
---|
22649 | --file | --fil | --fi | --f )
|
---|
22650 | $ac_shift
|
---|
22651 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
22652 | ac_need_defaults=false;;
|
---|
22653 | --header | --heade | --head | --hea )
|
---|
22654 | $ac_shift
|
---|
22655 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
22656 | ac_need_defaults=false;;
|
---|
22657 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
22658 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
22659 | ac_cs_silent=: ;;
|
---|
22660 |
|
---|
22661 | # This is an error.
|
---|
22662 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
22663 | Try \`$0 --help' for more information." >&5
|
---|
22664 | echo "$as_me: error: unrecognized option: $1
|
---|
22665 | Try \`$0 --help' for more information." >&2;}
|
---|
22666 | { (exit 1); exit 1; }; } ;;
|
---|
22667 |
|
---|
22668 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
22669 |
|
---|
22670 | esac
|
---|
22671 | shift
|
---|
22672 | done
|
---|
22673 |
|
---|
22674 | ac_configure_extra_args=
|
---|
22675 |
|
---|
22676 | if $ac_cs_silent; then
|
---|
22677 | exec 6>/dev/null
|
---|
22678 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
22679 | fi
|
---|
22680 |
|
---|
22681 | _ACEOF
|
---|
22682 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
22683 | if \$ac_cs_recheck; then
|
---|
22684 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
22685 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
22686 | fi
|
---|
22687 |
|
---|
22688 | _ACEOF
|
---|
22689 |
|
---|
22690 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
22691 | #
|
---|
22692 | # INIT-COMMANDS section.
|
---|
22693 | #
|
---|
22694 |
|
---|
22695 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
---|
22696 |
|
---|
22697 | _ACEOF
|
---|
22698 |
|
---|
22699 |
|
---|
22700 |
|
---|
22701 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22702 | for ac_config_target in $ac_config_targets
|
---|
22703 | do
|
---|
22704 | case "$ac_config_target" in
|
---|
22705 | # Handling of arguments.
|
---|
22706 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
22707 | "libxslt.pc" ) CONFIG_FILES="$CONFIG_FILES libxslt.pc" ;;
|
---|
22708 | "libexslt.pc" ) CONFIG_FILES="$CONFIG_FILES libexslt.pc" ;;
|
---|
22709 | "libxslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxslt/Makefile" ;;
|
---|
22710 | "libxslt/xsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltconfig.h" ;;
|
---|
22711 | "libxslt/xsltwin32config.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltwin32config.h" ;;
|
---|
22712 | "libexslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libexslt/Makefile" ;;
|
---|
22713 | "libexslt/exsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libexslt/exsltconfig.h" ;;
|
---|
22714 | "xsltproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES xsltproc/Makefile" ;;
|
---|
22715 | "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
|
---|
22716 | "python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
|
---|
22717 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
|
---|
22718 | "tests/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docs/Makefile" ;;
|
---|
22719 | "tests/REC1/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC1/Makefile" ;;
|
---|
22720 | "tests/REC2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC2/Makefile" ;;
|
---|
22721 | "tests/REC/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC/Makefile" ;;
|
---|
22722 | "tests/general/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/general/Makefile" ;;
|
---|
22723 | "tests/reports/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/reports/Makefile" ;;
|
---|
22724 | "tests/extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/extensions/Makefile" ;;
|
---|
22725 | "tests/namespaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/namespaces/Makefile" ;;
|
---|
22726 | "tests/keys/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/keys/Makefile" ;;
|
---|
22727 | "tests/numbers/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/numbers/Makefile" ;;
|
---|
22728 | "tests/documents/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/documents/Makefile" ;;
|
---|
22729 | "tests/xmlspec/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xmlspec/Makefile" ;;
|
---|
22730 | "tests/multiple/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/multiple/Makefile" ;;
|
---|
22731 | "tests/xinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xinclude/Makefile" ;;
|
---|
22732 | "tests/XSLTMark/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/XSLTMark/Makefile" ;;
|
---|
22733 | "tests/docbook/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docbook/Makefile" ;;
|
---|
22734 | "tests/exslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/Makefile" ;;
|
---|
22735 | "tests/exslt/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/common/Makefile" ;;
|
---|
22736 | "tests/exslt/functions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/functions/Makefile" ;;
|
---|
22737 | "tests/exslt/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/math/Makefile" ;;
|
---|
22738 | "tests/exslt/sets/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/sets/Makefile" ;;
|
---|
22739 | "tests/exslt/strings/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/strings/Makefile" ;;
|
---|
22740 | "tests/exslt/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/date/Makefile" ;;
|
---|
22741 | "tests/exslt/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/dynamic/Makefile" ;;
|
---|
22742 | "tests/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/plugins/Makefile" ;;
|
---|
22743 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
---|
22744 | "xslt-config" ) CONFIG_FILES="$CONFIG_FILES xslt-config" ;;
|
---|
22745 | "libxslt.spec" ) CONFIG_FILES="$CONFIG_FILES libxslt.spec" ;;
|
---|
22746 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
22747 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
22748 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
22749 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
22750 | { (exit 1); exit 1; }; };;
|
---|
22751 | esac
|
---|
22752 | done
|
---|
22753 |
|
---|
22754 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
22755 | # then the envvar interface is used. Set only those that are not.
|
---|
22756 | # We use the long form for the default assignment because of an extremely
|
---|
22757 | # bizarre bug on SunOS 4.1.3.
|
---|
22758 | if $ac_need_defaults; then
|
---|
22759 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
22760 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
22761 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
22762 | fi
|
---|
22763 |
|
---|
22764 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
22765 | # simply because there is no reason to put it here, and in addition,
|
---|
22766 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
22767 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
22768 | $debug ||
|
---|
22769 | {
|
---|
22770 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
22771 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
22772 | }
|
---|
22773 |
|
---|
22774 | # Create a (secure) tmp directory for tmp files.
|
---|
22775 |
|
---|
22776 | {
|
---|
22777 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
22778 | test -n "$tmp" && test -d "$tmp"
|
---|
22779 | } ||
|
---|
22780 | {
|
---|
22781 | tmp=./confstat$$-$RANDOM
|
---|
22782 | (umask 077 && mkdir $tmp)
|
---|
22783 | } ||
|
---|
22784 | {
|
---|
22785 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
22786 | { (exit 1); exit 1; }
|
---|
22787 | }
|
---|
22788 |
|
---|
22789 | _ACEOF
|
---|
22790 |
|
---|
22791 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
22792 |
|
---|
22793 | #
|
---|
22794 | # CONFIG_FILES section.
|
---|
22795 | #
|
---|
22796 |
|
---|
22797 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
22798 | # This happens for instance when ./config.status config.h
|
---|
22799 | if test -n "\$CONFIG_FILES"; then
|
---|
22800 | # Protect against being on the right side of a sed subst in config.status.
|
---|
22801 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
22802 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
22803 | s,@SHELL@,$SHELL,;t t
|
---|
22804 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
22805 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
22806 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
22807 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
22808 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
22809 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
22810 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
22811 | s,@prefix@,$prefix,;t t
|
---|
22812 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
22813 | s,@bindir@,$bindir,;t t
|
---|
22814 | s,@sbindir@,$sbindir,;t t
|
---|
22815 | s,@libexecdir@,$libexecdir,;t t
|
---|
22816 | s,@datadir@,$datadir,;t t
|
---|
22817 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
22818 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
22819 | s,@localstatedir@,$localstatedir,;t t
|
---|
22820 | s,@libdir@,$libdir,;t t
|
---|
22821 | s,@includedir@,$includedir,;t t
|
---|
22822 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
22823 | s,@infodir@,$infodir,;t t
|
---|
22824 | s,@mandir@,$mandir,;t t
|
---|
22825 | s,@build_alias@,$build_alias,;t t
|
---|
22826 | s,@host_alias@,$host_alias,;t t
|
---|
22827 | s,@target_alias@,$target_alias,;t t
|
---|
22828 | s,@DEFS@,$DEFS,;t t
|
---|
22829 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
22830 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
22831 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
22832 | s,@LIBS@,$LIBS,;t t
|
---|
22833 | s,@build@,$build,;t t
|
---|
22834 | s,@build_cpu@,$build_cpu,;t t
|
---|
22835 | s,@build_vendor@,$build_vendor,;t t
|
---|
22836 | s,@build_os@,$build_os,;t t
|
---|
22837 | s,@host@,$host,;t t
|
---|
22838 | s,@host_cpu@,$host_cpu,;t t
|
---|
22839 | s,@host_vendor@,$host_vendor,;t t
|
---|
22840 | s,@host_os@,$host_os,;t t
|
---|
22841 | s,@LIBXSLT_MAJOR_VERSION@,$LIBXSLT_MAJOR_VERSION,;t t
|
---|
22842 | s,@LIBXSLT_MINOR_VERSION@,$LIBXSLT_MINOR_VERSION,;t t
|
---|
22843 | s,@LIBXSLT_MICRO_VERSION@,$LIBXSLT_MICRO_VERSION,;t t
|
---|
22844 | s,@LIBXSLT_VERSION@,$LIBXSLT_VERSION,;t t
|
---|
22845 | s,@LIBXSLT_VERSION_INFO@,$LIBXSLT_VERSION_INFO,;t t
|
---|
22846 | s,@LIBXSLT_VERSION_NUMBER@,$LIBXSLT_VERSION_NUMBER,;t t
|
---|
22847 | s,@LIBXSLT_VERSION_EXTRA@,$LIBXSLT_VERSION_EXTRA,;t t
|
---|
22848 | s,@LIBXSLT_MAJOR_MINOR_VERSION@,$LIBXSLT_MAJOR_MINOR_VERSION,;t t
|
---|
22849 | s,@LIBEXSLT_MAJOR_VERSION@,$LIBEXSLT_MAJOR_VERSION,;t t
|
---|
22850 | s,@LIBEXSLT_MINOR_VERSION@,$LIBEXSLT_MINOR_VERSION,;t t
|
---|
22851 | s,@LIBEXSLT_MICRO_VERSION@,$LIBEXSLT_MICRO_VERSION,;t t
|
---|
22852 | s,@LIBEXSLT_VERSION@,$LIBEXSLT_VERSION,;t t
|
---|
22853 | s,@LIBEXSLT_VERSION_INFO@,$LIBEXSLT_VERSION_INFO,;t t
|
---|
22854 | s,@LIBEXSLT_VERSION_NUMBER@,$LIBEXSLT_VERSION_NUMBER,;t t
|
---|
22855 | s,@LIBEXSLT_VERSION_EXTRA@,$LIBEXSLT_VERSION_EXTRA,;t t
|
---|
22856 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
22857 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
22858 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
22859 | s,@CYGPATH_W@,$CYGPATH_W,;t t
|
---|
22860 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
22861 | s,@VERSION@,$VERSION,;t t
|
---|
22862 | s,@ACLOCAL@,$ACLOCAL,;t t
|
---|
22863 | s,@AUTOCONF@,$AUTOCONF,;t t
|
---|
22864 | s,@AUTOMAKE@,$AUTOMAKE,;t t
|
---|
22865 | s,@AUTOHEADER@,$AUTOHEADER,;t t
|
---|
22866 | s,@MAKEINFO@,$MAKEINFO,;t t
|
---|
22867 | s,@install_sh@,$install_sh,;t t
|
---|
22868 | s,@STRIP@,$STRIP,;t t
|
---|
22869 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
---|
22870 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
---|
22871 | s,@mkdir_p@,$mkdir_p,;t t
|
---|
22872 | s,@AWK@,$AWK,;t t
|
---|
22873 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
22874 | s,@am__leading_dot@,$am__leading_dot,;t t
|
---|
22875 | s,@AMTAR@,$AMTAR,;t t
|
---|
22876 | s,@am__tar@,$am__tar,;t t
|
---|
22877 | s,@am__untar@,$am__untar,;t t
|
---|
22878 | s,@HTML_DIR@,$HTML_DIR,;t t
|
---|
22879 | s,@CC@,$CC,;t t
|
---|
22880 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
22881 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
22882 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
22883 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
22884 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
22885 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
22886 | s,@DEPDIR@,$DEPDIR,;t t
|
---|
22887 | s,@am__include@,$am__include,;t t
|
---|
22888 | s,@am__quote@,$am__quote,;t t
|
---|
22889 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
|
---|
22890 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
|
---|
22891 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
|
---|
22892 | s,@CCDEPMODE@,$CCDEPMODE,;t t
|
---|
22893 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
|
---|
22894 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
|
---|
22895 | s,@CPP@,$CPP,;t t
|
---|
22896 | s,@RM@,$RM,;t t
|
---|
22897 | s,@MV@,$MV,;t t
|
---|
22898 | s,@TAR@,$TAR,;t t
|
---|
22899 | s,@EGREP@,$EGREP,;t t
|
---|
22900 | s,@SED@,$SED,;t t
|
---|
22901 | s,@LN_S@,$LN_S,;t t
|
---|
22902 | s,@ECHO@,$ECHO,;t t
|
---|
22903 | s,@AR@,$AR,;t t
|
---|
22904 | s,@ac_ct_AR@,$ac_ct_AR,;t t
|
---|
22905 | s,@RANLIB@,$RANLIB,;t t
|
---|
22906 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
22907 | s,@CXX@,$CXX,;t t
|
---|
22908 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
22909 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
22910 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t
|
---|
22911 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
|
---|
22912 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
|
---|
22913 | s,@CXXCPP@,$CXXCPP,;t t
|
---|
22914 | s,@F77@,$F77,;t t
|
---|
22915 | s,@FFLAGS@,$FFLAGS,;t t
|
---|
22916 | s,@ac_ct_F77@,$ac_ct_F77,;t t
|
---|
22917 | s,@LIBTOOL@,$LIBTOOL,;t t
|
---|
22918 | s,@WITH_TRIO@,$WITH_TRIO,;t t
|
---|
22919 | s,@PERL@,$PERL,;t t
|
---|
22920 | s,@WITH_PERL_TRUE@,$WITH_PERL_TRUE,;t t
|
---|
22921 | s,@WITH_PERL_FALSE@,$WITH_PERL_FALSE,;t t
|
---|
22922 | s,@PYTHON@,$PYTHON,;t t
|
---|
22923 | s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
|
---|
22924 | s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
|
---|
22925 | s,@pythondir@,$pythondir,;t t
|
---|
22926 | s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t
|
---|
22927 | s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
|
---|
22928 | s,@WITH_CRYPTO@,$WITH_CRYPTO,;t t
|
---|
22929 | s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
|
---|
22930 | s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
|
---|
22931 | s,@STATIC_BINARIES@,$STATIC_BINARIES,;t t
|
---|
22932 | s,@WITH_XSLT_DEBUG@,$WITH_XSLT_DEBUG,;t t
|
---|
22933 | s,@WITH_MEM_DEBUG@,$WITH_MEM_DEBUG,;t t
|
---|
22934 | s,@WITH_DEBUGGER@,$WITH_DEBUGGER,;t t
|
---|
22935 | s,@LIBXML_SRC@,$LIBXML_SRC,;t t
|
---|
22936 | s,@LIBXML_REQUIRED_VERSION@,$LIBXML_REQUIRED_VERSION,;t t
|
---|
22937 | s,@WITH_MODULES@,$WITH_MODULES,;t t
|
---|
22938 | s,@WITH_MODULES_TRUE@,$WITH_MODULES_TRUE,;t t
|
---|
22939 | s,@WITH_MODULES_FALSE@,$WITH_MODULES_FALSE,;t t
|
---|
22940 | s,@LIBXSLT_DEFAULT_PLUGINS_PATH@,$LIBXSLT_DEFAULT_PLUGINS_PATH,;t t
|
---|
22941 | s,@WIN32_EXTRA_LIBADD@,$WIN32_EXTRA_LIBADD,;t t
|
---|
22942 | s,@WIN32_EXTRA_LDFLAGS@,$WIN32_EXTRA_LDFLAGS,;t t
|
---|
22943 | s,@XSLTPROCDV@,$XSLTPROCDV,;t t
|
---|
22944 | s,@PYTHONSODV@,$PYTHONSODV,;t t
|
---|
22945 | s,@XML_CONFIG@,$XML_CONFIG,;t t
|
---|
22946 | s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t
|
---|
22947 | s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t
|
---|
22948 | s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
|
---|
22949 | s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
|
---|
22950 | s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
|
---|
22951 | s,@XSLT_LIBDIR@,$XSLT_LIBDIR,;t t
|
---|
22952 | s,@XSLT_INCLUDEDIR@,$XSLT_INCLUDEDIR,;t t
|
---|
22953 | s,@XSLT_LIBS@,$XSLT_LIBS,;t t
|
---|
22954 | s,@EXSLT_LIBDIR@,$EXSLT_LIBDIR,;t t
|
---|
22955 | s,@EXSLT_INCLUDEDIR@,$EXSLT_INCLUDEDIR,;t t
|
---|
22956 | s,@EXSLT_LIBS@,$EXSLT_LIBS,;t t
|
---|
22957 | s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
|
---|
22958 | s,@M_LIBS@,$M_LIBS,;t t
|
---|
22959 | s,@RELDATE@,$RELDATE,;t t
|
---|
22960 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
22961 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
22962 | CEOF
|
---|
22963 |
|
---|
22964 | _ACEOF
|
---|
22965 |
|
---|
22966 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
22967 | # Split the substitutions into bite-sized pieces for seds with
|
---|
22968 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
22969 | ac_max_sed_lines=48
|
---|
22970 | ac_sed_frag=1 # Number of current file.
|
---|
22971 | ac_beg=1 # First line for current file.
|
---|
22972 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
22973 | ac_more_lines=:
|
---|
22974 | ac_sed_cmds=
|
---|
22975 | while $ac_more_lines; do
|
---|
22976 | if test $ac_beg -gt 1; then
|
---|
22977 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
22978 | else
|
---|
22979 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
22980 | fi
|
---|
22981 | if test ! -s $tmp/subs.frag; then
|
---|
22982 | ac_more_lines=false
|
---|
22983 | else
|
---|
22984 | # The purpose of the label and of the branching condition is to
|
---|
22985 | # speed up the sed processing (if there are no `@' at all, there
|
---|
22986 | # is no need to browse any of the substitutions).
|
---|
22987 | # These are the two extra sed commands mentioned above.
|
---|
22988 | (echo ':t
|
---|
22989 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
22990 | if test -z "$ac_sed_cmds"; then
|
---|
22991 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
22992 | else
|
---|
22993 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
22994 | fi
|
---|
22995 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
22996 | ac_beg=$ac_end
|
---|
22997 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
22998 | fi
|
---|
22999 | done
|
---|
23000 | if test -z "$ac_sed_cmds"; then
|
---|
23001 | ac_sed_cmds=cat
|
---|
23002 | fi
|
---|
23003 | fi # test -n "$CONFIG_FILES"
|
---|
23004 |
|
---|
23005 | _ACEOF
|
---|
23006 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23007 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
23008 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
23009 | case $ac_file in
|
---|
23010 | - | *:- | *:-:* ) # input from stdin
|
---|
23011 | cat >$tmp/stdin
|
---|
23012 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
23013 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
23014 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
23015 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
23016 | * ) ac_file_in=$ac_file.in ;;
|
---|
23017 | esac
|
---|
23018 |
|
---|
23019 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
23020 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
23021 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23022 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
23023 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
23024 | X"$ac_file" : 'X\(/\)' \| \
|
---|
23025 | . : '\(.\)' 2>/dev/null ||
|
---|
23026 | echo X"$ac_file" |
|
---|
23027 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23028 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23029 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23030 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23031 | s/.*/./; q'`
|
---|
23032 | { if $as_mkdir_p; then
|
---|
23033 | mkdir -p "$ac_dir"
|
---|
23034 | else
|
---|
23035 | as_dir="$ac_dir"
|
---|
23036 | as_dirs=
|
---|
23037 | while test ! -d "$as_dir"; do
|
---|
23038 | as_dirs="$as_dir $as_dirs"
|
---|
23039 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
23040 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23041 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
23042 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
23043 | X"$as_dir" : 'X\(/\)' \| \
|
---|
23044 | . : '\(.\)' 2>/dev/null ||
|
---|
23045 | echo X"$as_dir" |
|
---|
23046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23047 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23048 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23049 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23050 | s/.*/./; q'`
|
---|
23051 | done
|
---|
23052 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
23053 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
23054 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
23055 | { (exit 1); exit 1; }; }; }
|
---|
23056 |
|
---|
23057 | ac_builddir=.
|
---|
23058 |
|
---|
23059 | if test "$ac_dir" != .; then
|
---|
23060 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
23061 | # A "../" for each directory in $ac_dir_suffix.
|
---|
23062 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
23063 | else
|
---|
23064 | ac_dir_suffix= ac_top_builddir=
|
---|
23065 | fi
|
---|
23066 |
|
---|
23067 | case $srcdir in
|
---|
23068 | .) # No --srcdir option. We are building in place.
|
---|
23069 | ac_srcdir=.
|
---|
23070 | if test -z "$ac_top_builddir"; then
|
---|
23071 | ac_top_srcdir=.
|
---|
23072 | else
|
---|
23073 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
23074 | fi ;;
|
---|
23075 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
23076 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
23077 | ac_top_srcdir=$srcdir ;;
|
---|
23078 | *) # Relative path.
|
---|
23079 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
23080 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
23081 | esac
|
---|
23082 |
|
---|
23083 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
23084 | # the directories may not exist.
|
---|
23085 | case `pwd` in
|
---|
23086 | .) ac_abs_builddir="$ac_dir";;
|
---|
23087 | *)
|
---|
23088 | case "$ac_dir" in
|
---|
23089 | .) ac_abs_builddir=`pwd`;;
|
---|
23090 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
23091 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
23092 | esac;;
|
---|
23093 | esac
|
---|
23094 | case $ac_abs_builddir in
|
---|
23095 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
23096 | *)
|
---|
23097 | case ${ac_top_builddir}. in
|
---|
23098 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
23099 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
23100 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
23101 | esac;;
|
---|
23102 | esac
|
---|
23103 | case $ac_abs_builddir in
|
---|
23104 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
23105 | *)
|
---|
23106 | case $ac_srcdir in
|
---|
23107 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
23108 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
23109 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
23110 | esac;;
|
---|
23111 | esac
|
---|
23112 | case $ac_abs_builddir in
|
---|
23113 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
23114 | *)
|
---|
23115 | case $ac_top_srcdir in
|
---|
23116 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
23117 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
23118 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
23119 | esac;;
|
---|
23120 | esac
|
---|
23121 |
|
---|
23122 |
|
---|
23123 | case $INSTALL in
|
---|
23124 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
23125 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
23126 | esac
|
---|
23127 |
|
---|
23128 | if test x"$ac_file" != x-; then
|
---|
23129 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
23130 | echo "$as_me: creating $ac_file" >&6;}
|
---|
23131 | rm -f "$ac_file"
|
---|
23132 | fi
|
---|
23133 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
23134 | # use $as_me), people would be surprised to read:
|
---|
23135 | # /* config.h. Generated by config.status. */
|
---|
23136 | if test x"$ac_file" = x-; then
|
---|
23137 | configure_input=
|
---|
23138 | else
|
---|
23139 | configure_input="$ac_file. "
|
---|
23140 | fi
|
---|
23141 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
23142 | sed 's,.*/,,'` by configure."
|
---|
23143 |
|
---|
23144 | # First look for the input files in the build tree, otherwise in the
|
---|
23145 | # src tree.
|
---|
23146 | ac_file_inputs=`IFS=:
|
---|
23147 | for f in $ac_file_in; do
|
---|
23148 | case $f in
|
---|
23149 | -) echo $tmp/stdin ;;
|
---|
23150 | [\\/$]*)
|
---|
23151 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
23152 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
23153 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
23154 | { (exit 1); exit 1; }; }
|
---|
23155 | echo "$f";;
|
---|
23156 | *) # Relative
|
---|
23157 | if test -f "$f"; then
|
---|
23158 | # Build tree
|
---|
23159 | echo "$f"
|
---|
23160 | elif test -f "$srcdir/$f"; then
|
---|
23161 | # Source tree
|
---|
23162 | echo "$srcdir/$f"
|
---|
23163 | else
|
---|
23164 | # /dev/null tree
|
---|
23165 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
23166 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
23167 | { (exit 1); exit 1; }; }
|
---|
23168 | fi;;
|
---|
23169 | esac
|
---|
23170 | done` || { (exit 1); exit 1; }
|
---|
23171 | _ACEOF
|
---|
23172 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
23173 | sed "$ac_vpsub
|
---|
23174 | $extrasub
|
---|
23175 | _ACEOF
|
---|
23176 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23177 | :t
|
---|
23178 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
23179 | s,@configure_input@,$configure_input,;t t
|
---|
23180 | s,@srcdir@,$ac_srcdir,;t t
|
---|
23181 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
23182 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
23183 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
23184 | s,@builddir@,$ac_builddir,;t t
|
---|
23185 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
23186 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
23187 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
23188 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
23189 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
23190 | rm -f $tmp/stdin
|
---|
23191 | if test x"$ac_file" != x-; then
|
---|
23192 | mv $tmp/out $ac_file
|
---|
23193 | else
|
---|
23194 | cat $tmp/out
|
---|
23195 | rm -f $tmp/out
|
---|
23196 | fi
|
---|
23197 |
|
---|
23198 | done
|
---|
23199 | _ACEOF
|
---|
23200 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23201 |
|
---|
23202 | #
|
---|
23203 | # CONFIG_HEADER section.
|
---|
23204 | #
|
---|
23205 |
|
---|
23206 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
23207 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
23208 | #
|
---|
23209 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
23210 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
23211 | ac_dB='[ ].*$,\1#\2'
|
---|
23212 | ac_dC=' '
|
---|
23213 | ac_dD=',;t'
|
---|
23214 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
23215 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
23216 | ac_uB='$,\1#\2define\3'
|
---|
23217 | ac_uC=' '
|
---|
23218 | ac_uD=',;t'
|
---|
23219 |
|
---|
23220 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
23221 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
23222 | case $ac_file in
|
---|
23223 | - | *:- | *:-:* ) # input from stdin
|
---|
23224 | cat >$tmp/stdin
|
---|
23225 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
23226 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
23227 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
23228 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
23229 | * ) ac_file_in=$ac_file.in ;;
|
---|
23230 | esac
|
---|
23231 |
|
---|
23232 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
23233 | echo "$as_me: creating $ac_file" >&6;}
|
---|
23234 |
|
---|
23235 | # First look for the input files in the build tree, otherwise in the
|
---|
23236 | # src tree.
|
---|
23237 | ac_file_inputs=`IFS=:
|
---|
23238 | for f in $ac_file_in; do
|
---|
23239 | case $f in
|
---|
23240 | -) echo $tmp/stdin ;;
|
---|
23241 | [\\/$]*)
|
---|
23242 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
23243 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
23244 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
23245 | { (exit 1); exit 1; }; }
|
---|
23246 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
23247 | echo "$f";;
|
---|
23248 | *) # Relative
|
---|
23249 | if test -f "$f"; then
|
---|
23250 | # Build tree
|
---|
23251 | echo "$f"
|
---|
23252 | elif test -f "$srcdir/$f"; then
|
---|
23253 | # Source tree
|
---|
23254 | echo "$srcdir/$f"
|
---|
23255 | else
|
---|
23256 | # /dev/null tree
|
---|
23257 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
23258 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
23259 | { (exit 1); exit 1; }; }
|
---|
23260 | fi;;
|
---|
23261 | esac
|
---|
23262 | done` || { (exit 1); exit 1; }
|
---|
23263 | # Remove the trailing spaces.
|
---|
23264 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
23265 |
|
---|
23266 | _ACEOF
|
---|
23267 |
|
---|
23268 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
23269 | # `conftest.undefs', that substitutes the proper values into
|
---|
23270 | # config.h.in to produce config.h. The first handles `#define'
|
---|
23271 | # templates, and the second `#undef' templates.
|
---|
23272 | # And first: Protect against being on the right side of a sed subst in
|
---|
23273 | # config.status. Protect against being in an unquoted here document
|
---|
23274 | # in config.status.
|
---|
23275 | rm -f conftest.defines conftest.undefs
|
---|
23276 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
23277 | # Putting comments in sed scripts is not portable.
|
---|
23278 | #
|
---|
23279 | # `end' is used to avoid that the second main sed command (meant for
|
---|
23280 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
23281 | # See the Autoconf documentation for `clear'.
|
---|
23282 | cat >confdef2sed.sed <<\_ACEOF
|
---|
23283 | s/[\\&,]/\\&/g
|
---|
23284 | s,[\\$`],\\&,g
|
---|
23285 | t clear
|
---|
23286 | : clear
|
---|
23287 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
23288 | t end
|
---|
23289 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
23290 | : end
|
---|
23291 | _ACEOF
|
---|
23292 | # If some macros were called several times there might be several times
|
---|
23293 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
23294 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
23295 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
23296 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
23297 | rm -f confdef2sed.sed
|
---|
23298 |
|
---|
23299 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
23300 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
23301 | # on some systems where configure will not decide to define it.
|
---|
23302 | cat >>conftest.undefs <<\_ACEOF
|
---|
23303 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
23304 | _ACEOF
|
---|
23305 |
|
---|
23306 | # Break up conftest.defines because some shells have a limit on the size
|
---|
23307 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
23308 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
23309 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
23310 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
23311 | echo ' :' >>$CONFIG_STATUS
|
---|
23312 | rm -f conftest.tail
|
---|
23313 | while grep . conftest.defines >/dev/null
|
---|
23314 | do
|
---|
23315 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
23316 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
23317 | # Speed up: don't consider the non `#define' lines.
|
---|
23318 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
23319 | # Work around the forget-to-reset-the-flag bug.
|
---|
23320 | echo 't clr' >>$CONFIG_STATUS
|
---|
23321 | echo ': clr' >>$CONFIG_STATUS
|
---|
23322 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
23323 | echo 'CEOF
|
---|
23324 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
23325 | rm -f $tmp/in
|
---|
23326 | mv $tmp/out $tmp/in
|
---|
23327 | ' >>$CONFIG_STATUS
|
---|
23328 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
23329 | rm -f conftest.defines
|
---|
23330 | mv conftest.tail conftest.defines
|
---|
23331 | done
|
---|
23332 | rm -f conftest.defines
|
---|
23333 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
23334 | echo >>$CONFIG_STATUS
|
---|
23335 |
|
---|
23336 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
23337 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
23338 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
23339 | rm -f conftest.tail
|
---|
23340 | while grep . conftest.undefs >/dev/null
|
---|
23341 | do
|
---|
23342 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
23343 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
23344 | # Speed up: don't consider the non `#undef'
|
---|
23345 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
23346 | # Work around the forget-to-reset-the-flag bug.
|
---|
23347 | echo 't clr' >>$CONFIG_STATUS
|
---|
23348 | echo ': clr' >>$CONFIG_STATUS
|
---|
23349 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
23350 | echo 'CEOF
|
---|
23351 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
23352 | rm -f $tmp/in
|
---|
23353 | mv $tmp/out $tmp/in
|
---|
23354 | ' >>$CONFIG_STATUS
|
---|
23355 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
23356 | rm -f conftest.undefs
|
---|
23357 | mv conftest.tail conftest.undefs
|
---|
23358 | done
|
---|
23359 | rm -f conftest.undefs
|
---|
23360 |
|
---|
23361 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23362 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
23363 | # use $as_me), people would be surprised to read:
|
---|
23364 | # /* config.h. Generated by config.status. */
|
---|
23365 | if test x"$ac_file" = x-; then
|
---|
23366 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
23367 | else
|
---|
23368 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
23369 | fi
|
---|
23370 | cat $tmp/in >>$tmp/config.h
|
---|
23371 | rm -f $tmp/in
|
---|
23372 | if test x"$ac_file" != x-; then
|
---|
23373 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
23374 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
23375 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
23376 | else
|
---|
23377 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
23378 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23379 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
23380 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
23381 | X"$ac_file" : 'X\(/\)' \| \
|
---|
23382 | . : '\(.\)' 2>/dev/null ||
|
---|
23383 | echo X"$ac_file" |
|
---|
23384 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23385 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23386 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23387 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23388 | s/.*/./; q'`
|
---|
23389 | { if $as_mkdir_p; then
|
---|
23390 | mkdir -p "$ac_dir"
|
---|
23391 | else
|
---|
23392 | as_dir="$ac_dir"
|
---|
23393 | as_dirs=
|
---|
23394 | while test ! -d "$as_dir"; do
|
---|
23395 | as_dirs="$as_dir $as_dirs"
|
---|
23396 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
23397 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23398 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
23399 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
23400 | X"$as_dir" : 'X\(/\)' \| \
|
---|
23401 | . : '\(.\)' 2>/dev/null ||
|
---|
23402 | echo X"$as_dir" |
|
---|
23403 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23404 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23405 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23406 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23407 | s/.*/./; q'`
|
---|
23408 | done
|
---|
23409 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
23410 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
23411 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
23412 | { (exit 1); exit 1; }; }; }
|
---|
23413 |
|
---|
23414 | rm -f $ac_file
|
---|
23415 | mv $tmp/config.h $ac_file
|
---|
23416 | fi
|
---|
23417 | else
|
---|
23418 | cat $tmp/config.h
|
---|
23419 | rm -f $tmp/config.h
|
---|
23420 | fi
|
---|
23421 | # Compute $ac_file's index in $config_headers.
|
---|
23422 | _am_stamp_count=1
|
---|
23423 | for _am_header in $config_headers :; do
|
---|
23424 | case $_am_header in
|
---|
23425 | $ac_file | $ac_file:* )
|
---|
23426 | break ;;
|
---|
23427 | * )
|
---|
23428 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
23429 | esac
|
---|
23430 | done
|
---|
23431 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
|
---|
23432 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23433 | X$ac_file : 'X\(//\)[^/]' \| \
|
---|
23434 | X$ac_file : 'X\(//\)$' \| \
|
---|
23435 | X$ac_file : 'X\(/\)' \| \
|
---|
23436 | . : '\(.\)' 2>/dev/null ||
|
---|
23437 | echo X$ac_file |
|
---|
23438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23439 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23440 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23441 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23442 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
23443 | done
|
---|
23444 | _ACEOF
|
---|
23445 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23446 |
|
---|
23447 | #
|
---|
23448 | # CONFIG_COMMANDS section.
|
---|
23449 | #
|
---|
23450 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
23451 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
23452 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
23453 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
23454 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23455 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
23456 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
23457 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
23458 | . : '\(.\)' 2>/dev/null ||
|
---|
23459 | echo X"$ac_dest" |
|
---|
23460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23461 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23462 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23463 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23464 | s/.*/./; q'`
|
---|
23465 | { if $as_mkdir_p; then
|
---|
23466 | mkdir -p "$ac_dir"
|
---|
23467 | else
|
---|
23468 | as_dir="$ac_dir"
|
---|
23469 | as_dirs=
|
---|
23470 | while test ! -d "$as_dir"; do
|
---|
23471 | as_dirs="$as_dir $as_dirs"
|
---|
23472 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
23473 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23474 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
23475 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
23476 | X"$as_dir" : 'X\(/\)' \| \
|
---|
23477 | . : '\(.\)' 2>/dev/null ||
|
---|
23478 | echo X"$as_dir" |
|
---|
23479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23480 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23481 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23482 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23483 | s/.*/./; q'`
|
---|
23484 | done
|
---|
23485 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
23486 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
23487 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
23488 | { (exit 1); exit 1; }; }; }
|
---|
23489 |
|
---|
23490 | ac_builddir=.
|
---|
23491 |
|
---|
23492 | if test "$ac_dir" != .; then
|
---|
23493 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
23494 | # A "../" for each directory in $ac_dir_suffix.
|
---|
23495 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
23496 | else
|
---|
23497 | ac_dir_suffix= ac_top_builddir=
|
---|
23498 | fi
|
---|
23499 |
|
---|
23500 | case $srcdir in
|
---|
23501 | .) # No --srcdir option. We are building in place.
|
---|
23502 | ac_srcdir=.
|
---|
23503 | if test -z "$ac_top_builddir"; then
|
---|
23504 | ac_top_srcdir=.
|
---|
23505 | else
|
---|
23506 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
23507 | fi ;;
|
---|
23508 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
23509 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
23510 | ac_top_srcdir=$srcdir ;;
|
---|
23511 | *) # Relative path.
|
---|
23512 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
23513 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
23514 | esac
|
---|
23515 |
|
---|
23516 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
23517 | # the directories may not exist.
|
---|
23518 | case `pwd` in
|
---|
23519 | .) ac_abs_builddir="$ac_dir";;
|
---|
23520 | *)
|
---|
23521 | case "$ac_dir" in
|
---|
23522 | .) ac_abs_builddir=`pwd`;;
|
---|
23523 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
23524 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
23525 | esac;;
|
---|
23526 | esac
|
---|
23527 | case $ac_abs_builddir in
|
---|
23528 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
23529 | *)
|
---|
23530 | case ${ac_top_builddir}. in
|
---|
23531 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
23532 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
23533 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
23534 | esac;;
|
---|
23535 | esac
|
---|
23536 | case $ac_abs_builddir in
|
---|
23537 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
23538 | *)
|
---|
23539 | case $ac_srcdir in
|
---|
23540 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
23541 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
23542 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
23543 | esac;;
|
---|
23544 | esac
|
---|
23545 | case $ac_abs_builddir in
|
---|
23546 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
23547 | *)
|
---|
23548 | case $ac_top_srcdir in
|
---|
23549 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
23550 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
23551 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
23552 | esac;;
|
---|
23553 | esac
|
---|
23554 |
|
---|
23555 |
|
---|
23556 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
23557 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
23558 | case $ac_dest in
|
---|
23559 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
---|
23560 | # Strip MF so we end up with the name of the file.
|
---|
23561 | mf=`echo "$mf" | sed -e 's/:.*$//'`
|
---|
23562 | # Check whether this is an Automake generated Makefile or not.
|
---|
23563 | # We used to match only the files named `Makefile.in', but
|
---|
23564 | # some people rename them; so instead we look at the file content.
|
---|
23565 | # Grep'ing the first line is not enough: some people post-process
|
---|
23566 | # each Makefile.in and add a new line on top of each file to say so.
|
---|
23567 | # So let's grep whole file.
|
---|
23568 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
---|
23569 | dirpart=`(dirname "$mf") 2>/dev/null ||
|
---|
23570 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23571 | X"$mf" : 'X\(//\)[^/]' \| \
|
---|
23572 | X"$mf" : 'X\(//\)$' \| \
|
---|
23573 | X"$mf" : 'X\(/\)' \| \
|
---|
23574 | . : '\(.\)' 2>/dev/null ||
|
---|
23575 | echo X"$mf" |
|
---|
23576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23577 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23578 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23579 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23580 | s/.*/./; q'`
|
---|
23581 | else
|
---|
23582 | continue
|
---|
23583 | fi
|
---|
23584 | # Extract the definition of DEPDIR, am__include, and am__quote
|
---|
23585 | # from the Makefile without running `make'.
|
---|
23586 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
---|
23587 | test -z "$DEPDIR" && continue
|
---|
23588 | am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
---|
23589 | test -z "am__include" && continue
|
---|
23590 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
---|
23591 | # When using ansi2knr, U may be empty or an underscore; expand it
|
---|
23592 | U=`sed -n 's/^U = //p' < "$mf"`
|
---|
23593 | # Find all dependency output files, they are included files with
|
---|
23594 | # $(DEPDIR) in their names. We invoke sed twice because it is the
|
---|
23595 | # simplest approach to changing $(DEPDIR) to its actual value in the
|
---|
23596 | # expansion.
|
---|
23597 | for file in `sed -n "
|
---|
23598 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
---|
23599 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
---|
23600 | # Make sure the directory exists.
|
---|
23601 | test -f "$dirpart/$file" && continue
|
---|
23602 | fdir=`(dirname "$file") 2>/dev/null ||
|
---|
23603 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23604 | X"$file" : 'X\(//\)[^/]' \| \
|
---|
23605 | X"$file" : 'X\(//\)$' \| \
|
---|
23606 | X"$file" : 'X\(/\)' \| \
|
---|
23607 | . : '\(.\)' 2>/dev/null ||
|
---|
23608 | echo X"$file" |
|
---|
23609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23611 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23612 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23613 | s/.*/./; q'`
|
---|
23614 | { if $as_mkdir_p; then
|
---|
23615 | mkdir -p $dirpart/$fdir
|
---|
23616 | else
|
---|
23617 | as_dir=$dirpart/$fdir
|
---|
23618 | as_dirs=
|
---|
23619 | while test ! -d "$as_dir"; do
|
---|
23620 | as_dirs="$as_dir $as_dirs"
|
---|
23621 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
23622 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
23623 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
23624 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
23625 | X"$as_dir" : 'X\(/\)' \| \
|
---|
23626 | . : '\(.\)' 2>/dev/null ||
|
---|
23627 | echo X"$as_dir" |
|
---|
23628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
23629 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
23630 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
23631 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
23632 | s/.*/./; q'`
|
---|
23633 | done
|
---|
23634 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
23635 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
|
---|
23636 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
|
---|
23637 | { (exit 1); exit 1; }; }; }
|
---|
23638 |
|
---|
23639 | # echo "creating $dirpart/$file"
|
---|
23640 | echo '# dummy' > "$dirpart/$file"
|
---|
23641 | done
|
---|
23642 | done
|
---|
23643 | ;;
|
---|
23644 | esac
|
---|
23645 | done
|
---|
23646 | _ACEOF
|
---|
23647 |
|
---|
23648 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
23649 |
|
---|
23650 | { (exit 0); exit 0; }
|
---|
23651 | _ACEOF
|
---|
23652 | chmod +x $CONFIG_STATUS
|
---|
23653 | ac_clean_files=$ac_clean_files_save
|
---|
23654 |
|
---|
23655 |
|
---|
23656 | # configure is writing to config.log, and then calls config.status.
|
---|
23657 | # config.status does its own redirection, appending to config.log.
|
---|
23658 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
23659 | # by configure, so config.status won't be able to write to it; its
|
---|
23660 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
23661 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
23662 | # appended to by config.status. When coming back to configure, we
|
---|
23663 | # need to make the FD available again.
|
---|
23664 | if test "$no_create" != yes; then
|
---|
23665 | ac_cs_success=:
|
---|
23666 | ac_config_status_args=
|
---|
23667 | test "$silent" = yes &&
|
---|
23668 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
23669 | exec 5>/dev/null
|
---|
23670 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
23671 | exec 5>>config.log
|
---|
23672 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
23673 | # would make configure fail if this is the last instruction.
|
---|
23674 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
23675 | fi
|
---|
23676 |
|
---|